ADCH and ADCL - buffered?


if start , adc conversion, setting adsc bit in adcsra, , shortly thereafter (before conversion finished) read adcl , adch (in proper order),

a) completed result previous conversion
or
b) half-completed result current conversion?

this should help.  from s26.3 atmega 1280 datasheet...

"if result left adjusted , no more 8-bit precision required, sufficient read
adch. otherwise, adcl must read first, adch, ensure content of data
registers belongs same conversion. once adcl read, adc access data registers
is blocked. means if adcl has been read, , conversion completes before adch is
read, neither register updated , result conversion lost. when adch read,
adc access adch , adcl registers re-enabled."


Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > ADCH and ADCL - buffered?


arduino

Comments

Popular posts from this blog

CAN'T INSTALL MAMBELFISH 1.5 FROM DIRECTORY - Joomla! Forum - community, help and support

error: expected initializer before 'void'

CPU load monitoring using GPIO and leds - Raspberry Pi Forums