Datasheet

REV. 0
ADuC816
–27–
ADC0CON (Primary ADC Control Register)
Used to configure the Primary ADC for range, channel selection, external Ref enable, and unipolar or bipolar coding.
SFR Address D2H
Power-On Default Value 07H
Bit Addressable No
---0FERX1HC0HC0INU2NR1NR0NR
Table V. ADC0CON SFR Bit Designations
Bit Name Description
7 --- Reserved for Future Use.
6 XREF0 Primary ADC External Reference Select Bit.
Set by user to enable the Primary ADC to use the external reference via REFIN(+)/REFIN(–).
Cleared by user to enable the Primary ADC to use the internal bandgap reference (V
REF
= 1.25 V).
5 CH1 Primary ADC Channel Selection Bits.
4 CH0 Written by the user to select the differential input pairs used by the Primary ADC as follows:
CH1 CH0 Positive Input Negative Input
0 0 AIN1 AIN2
0 1 AIN3 AIN4
1 0 AIN2 AIN2 (Internal Short)
1 1 AIN3 AIN2
3 UNI0 Primary ADC Unipolar Bit.
Set by user to enable unipolar coding, i.e., zero differential input will result in 000000 hex output.
Cleared by user to enable bipolar coding, zero differential input will result in 800000 hex output.
2 RN2 Primary ADC Range Bits.
1 RN1 Written by the user to select the Primary ADC input range as follows:
0 RN0 RN2 RN1 RN0 Selected Primary ADC Input Range (V
REF
= 2.5 V)
000± 20 mV
001± 40 mV
010± 80 mV
011± 160 mV
100± 320 mV
101± 640 mV
110± 1.28 V
111± 2.56 V
REV. A