You must be doing something wrong. It works for me. I don't use ADIF,
however. Per the data sheets, page 197: "Starting a Conversion", I set
ADSC to Start Conversion, then poll waiting for ADSC to be cleared,
indicating conversion complete.
Cheers!
Show quoted textHide quoted text
-----Original Message-----
From: ereihani [mailto:ereihani@yahoo.com]
Sent: Sunday, June 06, 2004 10:16 PM
To: AVR-Chat@yahoogroups.com
Subject: [AVR-Chat] A big contrast(ADC)!
Hi,
I use ATMega16 1MHZ.I use polling (ADIF)
for adc,but when the flag is set adc conversion data registers are
not updated.what is goiong on?