18.3.6 ADC 1 Channel x Control Register

Note:
  1. These bits are used with Oversampling mode only when MODE[1:0] bits = ‘11’ and are ignored for all other sampling modes.
  2. For the correct operation this bit must be used only for the triggers TRG1SRC[4:0] = ’00100’ – ‘11111’.
  3. Early interrupts are only available for single sample operations (MODE[1:0] bits = ‘00’). Multi-sample operations ignore the EIEN bit and use normal interrupt timing.
  4. Do not use early interrupt if using DMA transfers; the data might not be ready. The early interrupt is asserted at the start of sampling.
Table 18-10. Register Bit Attribute Legend
SymbolDescriptionSymbolDescriptionSymbolDescription
RReadable bitHCCleared by Hardware(Gray cell)Unimplemented
WWritable bitHSSet by HardwareXBit is unknown at Reset
SSoftware settable bitnCore NumberxChannel number
Name: AD1CHxCON
Offset: 0x814, 0x82C, 0x844, 0x85C, 0x874, 0x88C, 0x8A4, 0x8BC, 0x8D4, 0x8EC, 0x904, 0x91C, 0x934, 0x94C, 0x964, 0x97C, 0x994, 0x9AC, 0x9C4, 0x9DC

Bit 3130292827262524 
 MODE[1:0]ACCNUM[1:0]ACCBRSTACCROTRG1POLEIEN 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 2322212019181716 
 TRG2SRC[4:0]CMPMOD[2:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 15141312111098 
 DIFFPINSEL[3:0]LEFTNINSEL[1:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 76543210 
 SAMC[2:0]TRG1SRC[4:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 

Bits 31:30 – MODE[1:0] Sampling Mode Selection bits

ValueDescription
11Oversampling of multiple samples defined by ACCNUM[1:0] bits. The first conversion is initiated by TRG1SRC[4:0] trigger and all other conversions are executed by TRG2SRC[4:0] trigger.
10Integration of multiple samples defined by: CNTx[15:0] bits (ADnCHxCNT[15:0]). The first conversion is initiated by TRG1SRC[4:0] trigger and all other conversions are executed by TRG2SRC[4:0] trigger.
01Window gated by TRG1SRC[4:0] source. In this mode the samples are accumulated when a signal selected by TRG1SRC[4:0] bits has an active level. All conversions are initiated by TRG2SRC[4:0] trigger. The number of conversions is limited by CNTx[15:0] bits (ADnCHxCNT[15:0]).
00Single sample initiated by TRG1SRC[4:0] trigger

Bits 29:28 – ACCNUM[1:0]  Oversampling Mode Number of Samples Selection bits (1)

ValueDescription
11256 samples, 16 bits result in ADnCHxDATA register
1064 samples, 15 bits result in ADnCHxDATA register
0116 samples, 14 bits result in ADnCHxDATA register
004 samples, 13 bits result in ADnCHxDATA register

Bit 27 – ACCBRST  Oversampling Burst Mode Enable bit (1)

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

Bit 26 – ACCRO Accumulator Roll-Over Enable bit

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

Bit 25 – TRG1POL  Starting Trigger Polarity Selection bit (2)

ValueDescription
1Active level of the signal selected by TRG1SRC[4:0] bits is low; a falling edge generates a conversion request
0Active level of the signal selected by TRG1SRC[4:0] bits is high; a rising edge generates a conversion request

Bit 24 – EIEN  Early Interrupt Enable bit (3)

ValueDescription
1Early interrupt is enabled
0Normal interrupt timing

Bits 23:19 – TRG2SRC[4:0] Multi-Sample Conversions Re-Trigger Source Selection bits

See Table 18-4 for device-specific selections.

Bits 18:16 – CMPMOD[2:0] Comparison Criteria Selection bits

ValueDescription
111-101Comparison disabled
100Conversion result is less or equal to (≤) ADnCHxCMPLO register
011Conversion result is greater than (>) ADnCHxCMPLO register
010Conversion result is in bounds of (≥) ADnCHxCMPLO and (≤) ADnCHxCMPHI
001Conversion result is out of bounds of (<) ADnCHxCMPLO or (>) ADnCHxCMPHI
000Comparison disabled

Bit 15 – DIFF Signed Result Format Enable bit

ValueDescription
1Differential Input mode; data is output as signed (two’s complement)
0Single-Ended Input mode; data is output as unsigned

Bits 14:11 – PINSEL[3:0] Analog Positive Input Selection for ADC bits

ValueDescription
1111ADxAN15
...
0001ADxAN1
0000ADxAN0

Bit 10 – LEFT Fractional Data Output Format Enable bit

ValueDescription
1Result in ADnDATAx register is aligned to the left (in the fractional format)
0Result in ADnDATAx register is aligned to the right

Bits 9:8 – NINSEL[1:0] Negative Analog Input Selection bit

ValueDescription
11ADxANN3
10ADxANN2
01ADxANN1
00Ground (VSS); single-ended mode

Bits 7:5 – SAMC[2:0] Sampling Time Selection bits (times listed for 80 MHz TAD clock)

ValueDescription
111

14.5 TAD (181.25 nS)

110

12.5 TAD (156.25 nS)

101

10.5 TAD (131.25 nS)

1008.5 TAD (106.25 nS)
0116.5 TAD ( 81.25 nS)
010

4.5 TAD ( 56.25 nS)

001

2.5 TAD ( 31.25 nS)

0000.5 TAD ( 6.25 nS)

Bits 4:0 – TRG1SRC[4:0] Trigger Source Selection bits

See Table 18-3 for device-specific selections.