>Isn't it possible to connect the ADC input pin temporary to Vref, or connect a 
>free ADC pin to Vref? This would provide you the maximum ADC reading.
>
>You made me have a few more ideas :-)


The absence of an ADRESH register is proof that the ADC can only have 8 bits.

At runtime, I could think of...


To distignuish between 10 and 12 bits, one could set the output to left 
justify, and take a hundred readings of a non-constant voltage. If for all the 
readings (ADRESL & 0b00111111) == 0, you can be sure the conversion is 10 bits 
and not 12. (Due to (quantization) noise, the least significant bit will not be 
0 for all of the conversions.)


Or, you can time a conversion: 10 bit takes 11Tad, 12 bit takes 13Tad.


The ADRESH:ADRESL registers are labeled read/writeable, maybe one can write all 
1's to the registers, do a conversion of a voltage higher than 1/2 ref., and 
see which of the upper bits have been cleared.

Greets,
Kiste

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/jallib?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to