10.5.36 ADCDCCTL0 to ADCDCCTL7 Registers [reset = 0x0]
ADC Digital Comparator Control 0 (ADCDCCTL0), offset 0xE00
ADC Digital Comparator Control 1 (ADCDCCTL1), offset 0xE04
ADC Digital Comparator Control 2 (ADCDCCTL2), offset 0xE08
ADC Digital Comparator Control 3 (ADCDCCTL3), offset 0xE0C
ADC Digital Comparator Control 4 (ADCDCCTL4), offset 0xE10
ADC Digital Comparator Control 5 (ADCDCCTL5), offset 0xE14
ADC Digital Comparator Control 6 (ADCDCCTL6), offset 0xE18
ADC Digital Comparator Control 7 (ADCDCCTL7), offset 0xE1C
This register provides the comparison encodings that generate an interrupt or PWM trigger. See Section 21.3.6 for more information on using the ADC digital comparators to trigger a PWM generator.
ADCDCCTLn is shown in Figure 10-50 and described in Table 10-46.
Return to Summary Table.
Figure 10-50 ADCDCCTLn Register
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
RESERVED |
R-0x0 |
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
RESERVED |
CTE |
CTC |
CTM |
RESERVED |
CIE |
CIC |
CIM |
R-0x0 |
R/W-0x0 |
R/W-0x0 |
R/W-0x0 |
R-0x0 |
R/W-0x0 |
R/W-0x0 |
R/W-0x0 |
|
Table 10-46 ADCDCCTLn Register Field Descriptions
Bit |
Field |
Type |
Reset |
Description |
31-13 |
RESERVED |
R |
0x0 |
|
12 |
CTE |
R/W |
0x0 |
Comparison Trigger Enable.
0x0 = Disables the trigger function state machine. ADC conversion data is ignored by the trigger function.
0x1 = Enables the trigger function state machine. The ADC conversion data is used to determine if a trigger should be generated according to the programming of the CTC and CTM fields.
|
11-10 |
CTC |
R/W |
0x0 |
Comparison Trigger Condition.
This field specifies the operational region in which a trigger is generated when the ADC conversion data is compared against the values of COMP0 and COMP1.
The COMP0 and COMP1 fields are defined in the ADCDCCMPx registers.
0x0 = Low BandADC Data < COMP0 ≤ COMP1
0x1 = Mid BandCOMP0 < ADC Data ≤ COMP1
0x2 = Reserved
0x3 = High BandCOMP0 ≤ COMP1 ≤ ADC Data
|
9-8 |
CTM |
R/W |
0x0 |
Comparison Trigger Mode.
This field specifies the mode by which the trigger comparison is made.
0x0 = AlwaysThis mode generates a trigger every time the ADC conversion data falls within the selected operational region.
0x1 = OnceThis mode generates a trigger the first time that the ADC conversion data enters the selected operational region.
0x2 = Hysteresis AlwaysThis mode generates a trigger when the ADC conversion data falls within the selected operational region and continues to generate the trigger until the hysteresis condition is cleared by entering the opposite operational region.The hysteresis modes are only defined for CTC encodings of 0x0 and 0x3.
0x3 = Hysteresis OnceThis mode generates a trigger the first time that the ADC conversion data falls within the selected operational region. No additional triggers are generated until the hysteresis condition is cleared by entering the opposite operational region.The hysteresis modes are only defined for CTC encodings of 0x0 and 0x3.
|
7-5 |
RESERVED |
R |
0x0 |
|
4 |
CIE |
R/W |
0x0 |
Comparison Interrupt Enable.
0x0 = Disables the comparison interrupt. ADC conversion data has no effect on interrupt generation.
0x1 = Enables the comparison interrupt. The ADC conversion data is used to determine if an interrupt should be generated according to the programming of the CIC and CIM fields.
|
3-2 |
CIC |
R/W |
0x0 |
Comparison Interrupt Condition.
This field specifies the operational region in which an interrupt is generated when the ADC conversion data is compared against the values of COMP0 and COMP1.
The COMP0 and COMP1 fields are defined in the ADCDCCMPx registers.
0x0 = Low Band. ADC Data < COMP0 ≤ COMP1
0x1 = Mid Band. COMP0 ≤ ADC Data < COMP1
0x2 = Reserved
0x3 = High Band. COMP0 < COMP1 ≤ ADC Data
|
1-0 |
CIM |
R/W |
0x0 |
Comparison Interrupt Mode.
This field specifies the mode by which the interrupt comparison is made.
0x0 = Always. This mode generates an interrupt every time the ADC conversion data falls within the selected operational region.
0x1 = Once. This mode generates an interrupt the first time that the ADC conversion data enters the selected operational region.
0x2 = Hysteresis Always. This mode generates an interrupt when the ADC conversion data falls within the selected operational region and continues to generate the interrupt until the hysteresis condition is cleared by entering the opposite operational region.The hysteresis modes are only defined for CTC encodings of 0x0 and 0x3.
0x3 = Hysteresis Once. This mode generates an interrupt the first time that the ADC conversion data falls within the selected operational region. No additional interrupts are generated until the hysteresis condition is cleared by entering the opposite operational region.The hysteresis modes are only defined for CTC encodings of 0x0 and 0x3.
|