Atmega16 not working analog input 0-5V (by Marijano)
Hello,
I have tried to make simple application with Atmega16(in attachment).I dont now where is a problem,on output i have 5 leds ,pd2 led is always active(les then 1).On pa0 I have change voltage from 0 to 5V but nothing.Pin AVCC and VCC are connected to 5V and AREF is connected with cond. 0.1uF to 5V.Christal oscilator is 8MHz.Please,could you offer me some solutions(fuse bit settings,difrent ledder program,...)
Thanks in advance!!!
(no subject) (by Jonathan Westhues)
The A/D variable is 'Atemp', but the conditions are on 'temp'. This is the reason for the warning that you receive, and the reason your program doesn't work.
(no subject) (by Marijano)
Thanks,that was a problem(variable name),now is working..