AT90CAN128-16AE ATMEL Corporation, AT90CAN128-16AE Datasheet - Page 276

no-image

AT90CAN128-16AE

Manufacturer Part Number
AT90CAN128-16AE
Description
8-bit Avr Microcontroller With 128K Bytes of Isp Flash And CAN Controller.flash (Kbytes) 128 Vcc (V) 2.7-5.5 EEPROM (Kbytes) 4 SRAM (bytes) 4K CAN (mess. Obj.) 15
Manufacturer
ATMEL Corporation
Datasheet
276
AT90CAN128
Table 99. Correlation Between Input Voltage and Output Codes
Example 1:
Example 2:
V
V
V
...
V
V
V
...
V
V
V
ADCn
ADCm
ADCm
ADCm
ADCm
ADCm
ADCm
ADCm
ADCm
+ 0.999 V
+ 0.998 V
+ 0.001 V
- 0.001 V
- 0.999 V
- V
+ V
ADMUX = 0xED (ADC3 - ADC2, 10x gain, 2.56V reference, left adjusted result)
Voltage on ADC3 is 300 mV, voltage on ADC2 is 500 mV.
ADCR = 512 * 10 * (300 - 500) / 2560 = -400 = 0x270
ADCL will thus read 0x00, and ADCH will read 0x9C.
Writing zero to ADLAR right adjusts the result: ADCL = 0x70, ADCH = 0x02.
ADMUX = 0xFB (ADC3 - ADC2, 1x gain, 2.56V reference, left adjusted result)
Voltage on ADC3 is 300 mV, voltage on ADC2 is 500 mV.
ADCR = 512 * 1 * (300 - 500) / 2560 = -41 = 0x029
ADCL will thus read 0x40, and ADCH will read 0x0A.
Writing zero to ADLAR right adjusts the result: ADCL = 0x00, ADCH = 0x29.
REF
REF
/GAIN
/GAIN
REF
REF
REF
REF
REF
/GAIN
/GAIN
/GAIN
/GAIN
/GAIN
Read code
0x1FE
0x1FF
0x1FF
0x3FF
0x001
0x000
0x201
0x200
...
...
Corresponding decimal value
511
511
510
...
1
0
-1
...
-511
-512
.
4250C–CAN–03/04

Related parts for AT90CAN128-16AE