Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - Atmega16 not working analog input 0-5V

(you are viewing a thread; or go back to list of threads)

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!!!
Mon Feb 14 2011, 09:55:43, download attachment bager.ld
(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.
Mon Feb 14 2011, 10:06:57
no subject (by simon)
Try this
Mon Feb 14 2011, 16:38:38, download attachment bager.ld
(no subject) (by Marijano)
Thanks,that was a problem(variable name),now is working..
Fri Feb 18 2011, 07:53:34
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):