Datasheet

ADuC7033
Rev. B | Page 52 of 140
Voltage/Temperature Channel ADC Control Register
Name: ADC1CON
Address: 0xFFFF0510
Default Value: 0x0000
Access: Read/write
Function: The voltage/temperature channel ADC control MMR is a 16-bit register that is used to configure the V/T-ADC.
Note: When enabling/disabling the voltage/temperature ADC, the voltage attenuator must also be enabled/disabled via
HVCFG1[7].
Table 38. ADC1CON MMR Bit Designations
Bit Description
15 Voltage/Temperature Channel ADC Enable.
Set to 1 by user code to enable the V/T-ADC. When enabling/disabling the voltage channel, the voltage attenuator must
also be enabled/disabled via HVCFG1[7] if measuring battery voltage.
Clearing this bit to 0 powers down the V/T-ADC.
14, 13 VTEMP Current Source Enable.
00 = current sources off.
01 = enables 50 µA current source on VTEMP.
10 = enables 50 µA current source on GND_SW.
11 = enables 50 µA current source on both VTEMP and GND_SW.
12 to 10 Not Used. These bits are reserved for future functionality and should not be modified by user code.
9 Voltage/Temperature Channel ADC Output Coding.
Set to 1 by user code to configure V/T-ADC output coding as unipolar.
Cleared to 0 by user code to configure V/T-ADC output coding as twos complement.
8 Not Used. This bit is reserved for future functionality and should be written as 0 by user code.
7, 6 Voltage/Temperature Channel ADC Input Select.
00 = VBAT/24, AGND. VBAT attenuator selected.
01 = VTEMP, GND_SW. External temperature input selected, conversion result written to ADC2DAT.
10 = internal sensor. Internal temperature sensor input selected, conversion result written to ADC2DAT. The temperature
gradient is 0.33 mV/°C; this is only applicable to the internal temperature sensor.
11 = internal short. Shorted input.
5, 4 Voltage/Temperature Channel ADC Reference Select.
00 = internal, 1.2 V precision reference selected.
01 = external reference inputs (VREF, GND_SW) selected.
10 = external reference inputs divided-by-two (VREF, GND_SW)/2 selected. This allows an external reference up to
REG_AVDD.
11 = (REG_AVDD, AGND)/2 selected for the voltage channel. (REG_AVDD, GND_SW)/2 selected for the temperature
channel.
3 to 0 Not Used. These bits are reserved for future functionality and should not be written as 0 by user code.