37.13.18 ADCCMPCON1 – ADC Digital Comparator 1 Control Register

This register controls the operation of Digital Comparator 1, including the generation of interrupts, comparison criteria to be used and provides status when a comparator event occurs.

Name: ADCCMPCON1
Offset: 0x280
Reset: 0x00000000
Property: -

Bit 3130292827262524 
 CVD_DATA[15:8] 
Access R/HS/HCR/HS/HCR/HS/HCR/HS/HCR/HS/HCR/HS/HCR/HS/HCR/HS/HC 
Reset 00000000 
Bit 2322212019181716 
 CVD_DATA[7:0] 
Access R/HS/HCR/HS/HCR/HS/HCR/HS/HCR/HS/HCR/HS/HCR/HS/HCR/HS/HC 
Reset 00000000 
Bit 15141312111098 
   CMPINID0[5:0] 
Access R/HS/HCR/HS/HCR/HS/HCR/HS/HCR/HS/HCR/HS/HC 
Reset 000000 
Bit 76543210 
 ENDCMPDCMPGIENDCMPEDIEBTWNIEHIHIIEHILOIELOHIIELOLO 
Access R/WR/WR/HS/HCR/WR/WR/WR/WR/W 
Reset 00000000 

Bits 31:16 – CVD_DATA[15:0] CVD Differential Output Data

In the CVD mode, this 16-bit field gets the CVD differential output data whenever a DCMPED interrupt is generated. The value in this field is ADCCON1.FRACT-compliant and always signed because it is the result of the subtraction between the CVD positive and negative measurements.

Bits 13:8 – CMPINID0[5:0] Comparator’s Analog Input ID (Identification) bits

When a DCMP interrupt is generated, this read only bit field contains the identification number of the analog input being monitored by the digital comparator #0.
Note: In normal ADC mode, only analog inputs [31:0] can be processed by the digital comparator module #0. The digital comparator #0 also supports the CVD mode, in which all second and third class channel IDs may be stored in the CMPINID0[5:0] field (which therefore must be 6 bit wide).
ValueDescription
11111

Reserved

...
...
...
10110 AN22 is being monitored
10101 AN21 is being monitored
10100 AN20 is being monitored
10011 AN19 is being monitored
10010 AN18 is being monitored
10001 AN17 is being monitored
10000 AN16 is being monitored
01111 AN15 is being monitored
01110 AN14 is being monitored
01101 AN13 is being monitored
01100 AN12 is being monitored
01011AN11 is being monitored
...
01000AN8 is being monitored
00111AN7 is being monitored
...
00001

AN1 is being monitored

00000AN0 is being monitored

Bit 7 – ENDCMP Digital Comparator 1 Enable bit

ValueDescription
1

Digital Comparator 1 is enabled

0

Digital Comparator 1 is not enabled, and the DCMPED status bit (ADCCMPCON[5]) is cleared

Bit 6 – DCMPGIEN Digital Comparator 1 Global Interrupt Enable bit

ValueDescription
1

A Digital Comparator 1 interrupt is generated when the DCMPED status bit (ADCCMPCON[5]) is set

0

A Digital Comparator 1 interrupt is disabled

Bit 5 – DCMPED Digital Comparator 1 Output True Event Status bit

The logical conditions where the digital comparator becomes True are defined by the IEBTWN, IEHIHI, IEHILO, IELOHI and IELOLO bits.

Note: This bit is cleared by reading the AINID[4:0] bits or by disabling the Digital Comparator module (by setting ENDCMP to ‘0’).
ValueDescription
1

Digital Comparator 1 output true event has occurred (output of comparator is ‘1’)

0

Digital Comparator 1 output is false (output of comparator is ‘0’)

Bit 4 – IEBTWN Between Low/High Digital Comparator 1 Event bit

ValueDescription
1

Generate a digital comparator event when DATA[31:0] is less than DCMPHI[15:0] and greater than DCMPLO[15:0]

0

Do not generate a digital comparator event

Bit 3 – IEHIHI High/High Digital Comparator 1 Event bit

ValueDescription
1

Generate a Digital Comparator 1 event when DCMPHI[15:0] bits are less than or equal to DATA[31:0] bits

0

Do not generate an event

Bit 2 – IEHILO High/Low Digital Comparator 1 Event bit

ValueDescription
1

Generate a Digital Comparator 1 event when DATA[31:0] bits are less than DCMPHI[15:0] bits

0

Do not generate an event

Bit 1 – IELOHI Low/High Digital Comparator 1 Event bit

ValueDescription
1

Generate a Digital Comparator 1 event when DCMPLO[15:0] bits are less than or equal to DATA[31:0] bits

0

Do not generate an event

Bit 0 – IELOLO Low/Low Digital Comparator 1 Event bit

ValueDescription
1

Generate a Digital Comparator 1 event when DATA[31:0] bits are less than DCMPLO[15:0] bits

0

Do not generate an event