16.3.59 ADC n Channel 7 Control Register 2

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

Name: ADnCH7CON2
Offset: 0x8FC, 0xAFC, 0xC3C, 0xD5C, 0xE7C

Bit 3130292827262524 
 ACCROACCBRSTCMPVALCMPMODE[1:0] ADCMPSTAT[9:0] 
Access R/WR/WR/WR/WR/WR/WR/W 
Reset 0000000 
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 Rollover Enable bit

The Rollover 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 multisample sequence.

Bit 30 – ACCBRST  Oversampling Burst Mode Enable bit

ValueDescription
1 The oversampling performed as a continuous noninterruptible burst when 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 ADnDATAx register is used for comparison.
0 The immediate conversion value in ADnRESx is used for comparison.

Bits 28:27 – CMPMODE[1:0] Comparison Mode Selection bits

ValueDescription
1 Accumulative violation is the basis for violation count per ADCMPCNT[9:0] bits.
0 Consecutive violation is the basis for 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 or equal to (≤) ADnCMPLOx register.
011
010 Conversion result is in 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 is selected.
1111111110 1022 comparisons matching the criteria is selected.
...
0000000011 Three comparisons matching the criteria is selected.
0000000010 Two comparisons matching the criteria is selected.
0000000001 One comparison matching the criteria.
0000000000 One comparison matching the criteria.