Datasheet

ADuC7033
Rev. B | Page 51 of 140
Current Channel ADC Control Register
Name: ADC0CON
Address: 0xFFFF050C
Default Value: 0x0000
Access: Read/write
Function: The current channel ADC control MMR is a 16-bit register that is used to configure the I-ADC.
Note: If the current ADC is reconfigured via ADC0CON, the voltage ADC and temperature ADC are also reset.
Table 37. ADC0CON MMR Bit Designations
Bit Description
15 Current Channel ADC Enable.
Set to 1 by user code to enable the I-ADC.
Clearing this bit to 0 powers down the I-ADC and resets the respective ADC ready bit in the ADCSTA MMR to 0.
14, 13 IIN Current Source Enable.
00 = current sources off.
01 = enables 50 A current source on IIN+.
10 = enables 50  A current source on IIN−.
11 = enables 50  A current source on both IIN− and IIN+.
12 to 10 Not Used. These bits are reserved for future functionality and should be written as zero.
9 Current Channel ADC Output Coding.
Set to 1 by user code to configure I-ADC output coding as unipolar.
Cleared to 0 by user code to configure I-ADC output coding as twos complement.
8 Not Used. This bit is reserved for future functionality and should be written as zero.
7, 6 Current Channel ADC Input Select.
00 = IIN+, IIN−.
01 = IIN−, IIN− = diagnostic, internal short configuration.
10 = VREF/136, 0 V, diagnostic, test voltage for gain settings ≤ 128. Note that if (REG_AVDD, AGND) divided-by-two
reference is selected, REG_AVDD is used for VREF in this mode. This leads to ADC0DAT scaled by two.
11 = not defined.
5, 4 Current Channel ADC Reference Select.
00 = internal, 1.2 V precision reference selected. In ADC low power mode, the voltage reference selection is controlled by
ADCMDE[5].
01 = external reference inputs (VREF, GND_SW) are selected.
10 = external reference inputs divided-by-two (VREF, GND_SW)/2 are selected, this allows an external reference up to
REG_AVDD.
11 = (REG_AVDD, AGND) divided-by-two selected.
3 to 0 Current Channel ADC Gain Select. Note that the nominal I-ADC full-scale input voltage = (VREF/gain).
0000 = I-ADC gain of 1.
0001 = I-ADC gain of 2.
0010 = I-ADC gain of 4.
0011 = I-ADC gain of 8.
0100 = I-ADC gain of 16.
0101 = I-ADC gain of 32.
0110 = I-ADC gain of 64.
0111 = I-ADC gain of 128.
1000 = I-ADC gain of 256.
1001 = I-ADC gain of 512.
1xxx = I-ADC gain is undefined.