Figure 6.5. Adc0 Data Word Example - Silicon Laboratories C8051F12 Series Manual

8k isp flash mcu
Table of Contents

Advertisement

C8051F120/1/2/3/4/5/6/7 C8051F130/1/2/3
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)
AIN0.0–AGND
ADC0H:ADC0L
(Volts)
VREF x (1023/1024)
VREF / 2
VREF x (511/1024)
0
Example: ADC0 Data Word Conversion Map, AIN0.0-AIN0.1 Differential Input Pair
(AMX0CF = 0x01, AMX0SL = 0x00)
AIN0.0–AIN0.1
ADC0H:ADC0L
(Volts)
VREF x (511/512)
VREF / 2
VREF x (1/512)
0
–VREF x (1/512)
–VREF / 2
0xFF00 (–256d)
–VREF
0xFE00 (–512d)
For AD0LJST = 0:
Gain
×
-------------- -
Code
=
Vin
VREF

Figure 6.5. ADC0 Data Word Example

ADC0H:ADC0L
(AD0LJST = 0)
(AD0LJST = 1)
0x03FF
0x0200
0x01FF
0x0000
ADC0H:ADC0L
(AD0LJST = 0)
(AD0LJST = 1)
0x01FF
0x0100
0x0001
0x0000
0xFFFF (–1d)
×
n
2
; 'n' = 10 for Single-Ended; 'n'= 9 for Differential.
Rev. 1.4
0xFFC0
0x8000
0x7FC0
0x0000
0x7FC0
0x4000
0x0040
0x0000
0xFFC0
0xC000
0x8000
83

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the C8051F12 Series and is the answer not in the manual?

Questions and answers

Table of Contents