C8051F120/1/2/3/4/5/6/7
Rev. 1.2
77
Figure 6.11. ADC0 Data Word Example
10-bit ADC0 Data Word appears in the ADC0 Data Word Registers as follows:
ADC0H[1:0]:ADC0L[7:0], if AD0LJST = 0
(ADC0H[7:2] will be sign-extension of ADC0H.1 for a differential reading, otherwise =
000000b).
ADC0H[7:0]:ADC0L[7:6], if AD0LJST = 1
(ADC0L[5:0] = 00b).
Example: ADC0 Data Word Conversion Map, AIN0.0 Input in Single-Ended Mode
(AMX0CF = 0x00, AMX0SL = 0x00)
Example: ADC0 Data Word Conversion Map, AIN0.0-AIN0.1 Differential Input Pair
(AMX0CF = 0x01, AMX0SL = 0x00)
For AD0LJST = 0:
; ‘n’ = 10 for Single-Ended; ‘n’= 9 for Differential.
AIN0.0-AGND
(Volts)
ADC0H:ADC0L
(AD0LJST = 0)
ADC0H:ADC0L
(AD0LJST = 1)
VREF * (1023/1024)
0x03FF
0xFFC0
VREF / 2
0x0800
0x8000
VREF * (511/1024)
0x01FF
0x7FC0
0
0x0000
0x0000
AIN0.0-AIN0.1
(Volts)
ADC0H:ADC0L
(AD0LJST = 0)
ADC0H:ADC0L
(AD0LJST = 1)
VREF * (511/512)
0x01FF
0x7FC0
VREF / 2
0x0100
0x4000
VREF * (1/512)
0x0001
0x0040
0
0x0000
0x0000
-VREF * (1/512)
0xFFFF (-1d)
0xFFC0
-VREF / 2
0xFF00 (-256d)
0xC000
-VREF
0xFE00 (-512d)
0x8000
Code
Vin
Gain
VREF
---------------
×
2
n
×
=
Summary of Contents for C8051F120
Page 2: ...C8051F120 1 2 3 4 5 6 7 2 Rev 1 2 Notes ...
Page 8: ...C8051F120 1 2 3 4 5 6 7 8 Rev 1 2 26 2 Flash Programming Commands 318 26 3 Debug Support 321 ...
Page 16: ...C8051F120 1 2 3 4 5 6 7 16 Rev 1 2 Notes ...
Page 48: ...C8051F120 1 2 3 4 5 6 7 48 Rev 1 2 ...
Page 98: ...C8051F120 1 2 3 4 5 6 7 98 Rev 1 2 ...
Page 106: ...C8051F120 1 2 3 4 5 6 7 106 Rev 1 2 Notes ...
Page 183: ...C8051F120 1 2 3 4 5 6 7 Rev 1 2 183 Notes ...
Page 184: ...C8051F120 1 2 3 4 5 6 7 184 Rev 1 2 ...
Page 214: ...C8051F120 1 2 3 4 5 6 7 214 Rev 1 2 Notes ...