16.3.59 ADC n Channel 7 Control Register 2

Legend: n = ADC number; R = Readable bit; W = Writable bit

Name: ADnCH7CON2
Offset: 0x9FC, 0xB7C

Bit 3130292827262524 
 ACCROACCBRSTCMPVALCMPMODE[1:0] ADCMPSTAT[9:0] 
Access R/WR/WR/WR/WR/WR/W 
Reset 000000 
Bit 2322212019181716 
 ADCMPSTAT[9:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 15141312111098 
  CRITERIA[2:0]  ADCMPCNT[9:8] 
Access R/WR/WR/WR/WR/W 
Reset 00000 
Bit 76543210 
 ADCMPCNT[7:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 

Bit 31 – ACCRO Accumulator Roll-Over Enable bit

The Roll-Over must be enabled when the ADnACCx register is used.
ValueDescription
1 ADnDATAx accumulator is not cleared; it is allowed to roll-over.
0 ADnDATAx accumulator is cleared at the end of a multi-sample sequence.

Bit 30 – ACCBRST  Oversampling Burst Mode Enable bit

ValueDescription
1 The oversampling is performed as a continuous non-interruptible burst, during which all other conversion requests will be blocked out until the process is completed.
0 Oversampling can be interrupted by a high priority conversion request.

Bit 29 – CMPVAL Comparison Value Selection bit

ValueDescription
1 The channel data value in the ADnDATAx register is used for comparison.
0 The immediate conversion value in ADnRESx is used for comparison.

Bits 29:28 – CMPMODE[1:0] Comparison Mode Selection bit

ValueDescription
1 Accumulative violation is the basis for the violation count per ADCMPCNT[9:0] bits.
0 Consecutive violation is the basis for the violation count per ADCMPCNT[9:0] bits.

Bits 25:16 – ADCMPSTAT[9:0] Comparison Violation Count Status bits

These read-only register bits display the current violation count value based on CMPVAL and CMPMODE bit settings.

The corresponding CMPxRDY bit is set when the count reaches the value set in ADCMPCNT[9:0].

Bits 14:12 – CRITERIA[2:0] Comparison Criteria Selection bits

ValueDescription
111-101 Comparison is disabled.
100 Conversion result is less than or equal to (≤) the ADnCMPLOx register.
011
010 Conversion result is within bounds of (≥) ADnCMPLOx and (<=) ADnCMPHIx.
001 Conversion result is out of bounds of (<) ADnCMPLOx or (>) ADnCMPHIx.
000 Comparison is disabled.

Bits 9:0 – ADCMPCNT[9:0] Comparison Count bits

ValueDescription
1111111111 1023 comparisons matching the criteria are selected.
1111111110 1022 comparisons matching the criteria are selected.
...
0000000011 3 comparisons matching the criteria are selected.
0000000010 2 comparisons matching the criteria are selected.
0000000001 1 comparison matching the criteria is selected.
0000000000 1 comparison matching the criteria is selected.