Datasheet

Table Of Contents
Figure 26-14. Differential Measurement Range
0
Output Code
0x1FF
0x000
V
REF
/GAIN
Diffe re ntial Input
Volta ge (Volts)
0x3FF
0x200
- V
REF
/GAIN
Table 26-2. Correlation Between Input Voltage and Output Codes
V
ADCn
Read Code Corresponding decimal value
V
ADCm
+ V
REF
/GAIN 0x1FF 511
V
ADCm
+ 511/512 V
REF
/GAIN 0x1FF 511
V
ADCm
+ 510/512 V
REF
/GAIN 0x1FE 510
:. :. :.
V
ADCm
+ 1/512 V
REF
/GAIN 0x001 1
V
ADCm
0x000 0
V
ADCm
- 1/512 V
REF
/GAIN 0x3FF -1
:. :. :.
V
ADCm
- 511/512 V
REF
/GAIN 0x201 -511
V
ADCm
- V
REF
/GAIN 0x200 -512
Example:
ADMUX = 0xED (ADC3 - ADC2, 10x gain, 2.56V reference, left adjusted result)
Atmel ATmega32A [DATASHEET]
Atmel-8155I-ATmega32A_Datasheet_Complete-08/2016
270