[SOLVED] Problem with reading the ADCH value when using the ADC of ATmega32

Status
Not open for further replies.

jayanthyk192

Full Member level 3
Joined
Sep 17, 2010
Messages
179
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,298
Activity points
2,580
Hi,

I was trying to use the adc of my atmega32 MC.i wrote a code in which the a/d conversion was being done and value sent serially to computer.adc not in free running but continuously converting.the serial data transmitted was only of the ADCL and i did'nt read the ADCH value at all.due to this the serial data(adcl) was not updated.but then i read the adch value along with adcl value.now the serial data started to change according to input and updated continuously.can anyone please tell me if they are designed in such a way that only after both registers are read the next value is updated or is it any other problem?

Thank you.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…