ATTINY26L8SU SL383 Atmel, ATTINY26L8SU SL383 Datasheet - Page 102

no-image

ATTINY26L8SU SL383

Manufacturer Part Number
ATTINY26L8SU SL383
Description
MCU 8-Bit ATtiny AVR RISC 2KB Flash 3.3V/5V 20-Pin SOIC T/R
Manufacturer
Atmel
Datasheet
102
ATtiny26(L)
Figure 56. Differential Measurement Range
Table 44. Correlation Between Input Voltage and Output Codes
Example:
ADMUX = 0xEB (ADC0 - ADC1, 20x gain, 2.56V reference, left adjusted result)
Voltage on ADC0 is 400 mV, voltage on ADC1 is 300 mV.
ADCR = 1024 * 20 * (400 - 300) / 2560 = 800 = 0x320
ADCL will thus read 0x00, and ADCH will read 0xC8. Writing zero to ADLAR right
adjusts the result: ADCL = 0x20, ADCH = 0x03.
V
V
V
...
V
V
V
ADCn
ADCm
ADCm
ADCm
ADCm
ADCm
+ (1023/1024) V
+ (1022/1024) V
+ (1/1024) V
+ V
REF
/GAIN
Output Code
REF
0x3FF
0x000
/GAIN
REF
REF
0
/GAIN
/GAIN
Read code
0x3FE
0x3FF
0x3FF
0x001
0x000
...
Corresponding decimal value
1023
1023
1022
...
1
0
V
REF
/GAIN Differential Input
Voltage (Volts)
1477J–AVR–06/07

Related parts for ATTINY26L8SU SL383