16.3.39 ADC 5 Channel n Control Register 1

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[5:0] = ‘00100’ - ‘11111’.
  3. Early interrupts are only available for single sample operations (MODE[1:0] bits = ‘00’). Multisample operations ignore the EIEN bit and use normal interrupt timing.
  4. Do not use an early interrupt if using DMA transfers; the data might not be ready. The early interrupt is asserted at the start of sampling.

Legend: n = ADC channel number (0-15); R = Readable bit; W = Writable bit

Name: AD5CHnCON1
Offset: 0x0D98, 0xDB8, 0xDD8, 0xDF8, 0xE18, 0xE38, 0xE58, 0xE78, 0xE98, 0xEB8, 0xED8, 0xEF8, 0xF18, 0xF38, 0xF58, 0xF78

Bit 3130292827262524 
 DIFFFRACNINSEL[1:0]PINSEL[3:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 0000xxxx 
Bit 2322212019181716 
 TRG1POLEIENIRQSELSAMC[4:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 15141312111098 
 ACCNUM[1:0]TRG2SRC[5:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 76543210 
 MODE[1:0]TRG1SRC[5:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000001 

Bit 31 – DIFF Differential Input Enable bit

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

Bit 30 – FRAC Fractional Data Output Format Enable bit

ValueDescription
1 Result in ADxCHxDATA and ADxCHnRES registers are aligned to the left (in the fractional format).
0 Result in ADxCHxDATA and ADxCHnRES registers are aligned to the right.

Bits 29:28 – NINSEL[1:0] Negative Analog Input Selection bits

The value of NINSEL[1:0] selects the negative analog input in the format ADxANNn, where x is the ADC instance and n is the NINSEL[1:0] value.

Examples:
  • NINSEL = 0x0 on ADC1 selects AD1ANN0 (AVSS ground reference)
  • NINSEL = 0x1 on ADC2 selects AD2ANN1
Refer to ADC Input Availability for the available negative analog inputs.

Bits 27:24 – PINSEL[3:0] Positive Analog Input Selection bits

The value of PINSEL[3:0] selects the positive analog input in the format ADxANn, where x is the ADC instance and n is the PINSEL[3:0] value.

Examples:
  • PINSEL = 0x0 on ADC1 selects AD1AN0
  • PINSEL = 0x3 on ADC2 selects AD2AN3
Refer to ADC Input Availability for the available positive analog inputs.

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

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

Bit 22 – EIEN  Early Interrupt Enable bit (3,4)

ValueDescription
1 Early interrupt is enabled.
0 Normal interrupt timing

Bit 21 – IRQSEL Channel Ready Interrupt Request Select bit

ValueDescription
1 The channel interrupt is generated when data is ready in the ADxCHnDATA register.
0 The channel interrupt is generated after each single conversion when result is ready in ADxCHnRES register.

Bits 20:16 – SAMC[4:0] Sampling Time Selection bits

ValueDescription
11111

62.5 TAD

11110

60.5 TAD

...
00010

4.5 TAD

00001

2.5 TAD

00000 0.5 TAD

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

ValueDescription
11 256 samples, 16 bits result in ADxCHnDATA register
10 64 samples, 15 bits result in ADxCHnDATA register
01 16 samples, 14 bits result in ADxCHnDATA register
00 Four samples, 13 bits result in ADxCHnDATA register

Bits 13:8 – TRG2SRC[5:0] Multisample Conversions Re-Trigger Source Selection bits

Refer to Table 16-4.

Bits 7:6 – MODE[1:0] Sampling Mode Selection bits

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

Bits 5:0 – TRG1SRC[5:0] Multisample Conversions Re-Trigger Source Selection bits

Refer to Table 16-4.