ADC Registers
316
SNIU028A – February 2016 – Revised April 2016
Copyright © 2016, Texas Instruments Incorporated
ADC12 Overview
// Means: Enable Digital comparator 3 interrupt when exceeding upper limit at Local level
AdcRegs.ADCCOMPLIM[5].bit.LOWER_LIMIT = 0x0FA;
// Sets the lower limit to be compared to the sixth result register
//( Note: bit does not necessarily mean one bit, but a bits field of any length
CimRegs.REQMASK.bit. REQMASK_DIGI_COMP =1;
// Means: Enable Digital comparator interrupt at CPU(CIM) level.
8.18 ADC Registers
8.18.1 ADC Control Register (ADCCTRL)
Address 00040000
Figure 8-19. ADC Control Register (ADCCTRL)
31
24
EXT_TRIG_DLY
R/W-0000 0000
23
22
21
20
19
16
EXT_TRIG_GP
IO_VAL
EXT_TRIG_GP
IO_DIR
EXT_TRIG_GP
IO_EN
EXT_TRIG_EN
EXT_TRIG_SEL
R/W-0
R/W-0
R/W-0
R/W-0
R-0000
15
13
12
11
10
8
SAMPLING_SEL
ADC_SEL_REF
ADC_ROUND
BYPASS_EN
R/W-000
R/W-0
R/W-0
R/W-111
7
4
3
2
1
0
MAX_CONV
SINGLE_
SWEEP
SW_START
ADC_INT_EN
ADC_EN
R/W-0000
R/W-0
R/W-0
R/W-0
R/W-0
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset
Table 8-5. ADC Control Register (ADCCTRL) Register Field Descriptions
Bit
Field
Type
Reset
Description
31-24
EXT_TRIG_DLY
R/W
0000
0000
8-bit External ADC Trigger Delay configuration, LSB bit resolution equals period of
ADC Clock (High Frequency Oscillator Frequency divided by 4)
23
EXT_TRIG_GPIO_
VAL
R/W
0
Output value of ADC_EXT_TRIG pin when configured in GPIO mode
0 = ADC_EXT_TRIG pin driven low (Default)
1 = ADC_EXT_TRIG pin driven high
22
EXT_TRIG_GPIO_
DIR
R/W
0
Direction of ADC_EXT_TRIG pin when configured in GPIO mode
0 = ADC_EXT_TRIG pin configured as input (Default)
1 = ADC_EXT_TRIG pin configured as output
21
EXT_TRIG_GPIO_
EN
R/W
0
Configuration of ADC_EXT_TRIG pin
0 = ADC_EXT_TRIG pin configured in functional mode (Default)
1 = ADC_EXT_TRIG pin configured in GPIO mode
20
EXT_TRIG_EN
R/W
0
External Trigger Enable, conversions are started using the external trigger as
selectable by the EXT_TRIG_SEL bits.
0 = Disable External Trigger capability (Default)
1 = Enable External Trigger capability