[En-Nut-Discussion]Problem with ADC
Tim Tait
tim.tait1 at gmail.com
Tue May 23 18:29:08 CEST 2006
ADCRead() returns a 10 bit value (on the AVR).
Watch out for integer truncation in your math (ex 5 / 1024 = 0). You may
want to store values in units of mV instead of Volts.
You can set the ADC clock divisor with a limited range of values
describer in the AVR datasheet. Depending on the AVR main clock input,
it is possible set the ADC clock faster than the hardware actually supports.
Tim
Tommaso Fabbri wrote:
> can i set the clock of the adc?
> is vadc an int?
>
More information about the En-Nut-Discussion
mailing list