42.7.10 ADC0 Channel Configuration Registers 5 (ADC)

Table 42-16. Register Bit Attribute Legend
SymbolDescriptionSymbolDescriptionSymbolDescription
RReadable bitHCCleared by Hardware(Grey cell)Unimplemented
WWritable bitHSSet by HardwareXBit is unknown at Reset
KWrite to clearSSoftware settable bit
Name: CONFIG[0].CHNCFG5
Offset: 0x34
Reset: 0x00000000
Property: PAC Write-Protected, Enable-Protected

Bit 3130292827262524 
 TRGSRC15[3:0]TRGSRC14[3:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 2322212019181716 
 TRGSRC13[3:0]TRGSRC12[3:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 15141312111098 
 TRGSRC11[3:0]TRGSRC10[3:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 76543210 
 TRGSRC9[3:0]TRGSRC8[3:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00011001 

Bits 0:3, 4:7, 8:11, 12:15, 16:19, 20:23, 24:27, 28:31 – TRGSRCk Conversion Trigger Source for channel k

Bits 28-31: TRGSRC15 ADC0 Sample/Conversion Trigger Source for analog input channel ADC0_AIN15

Bits 24-27: TRGSRC14 ADC0 Sample/Conversion Trigger Source for analog input channel ADC0_AIN14

Bits 20-23: TRGSRC13 ADC0 Sample/Conversion Trigger Source for analog input channel ADC0_AIN13

Bits 16-19: TRGSRC12 ADC0 Sample/Conversion Trigger Source for analog input channel ADC0_AIN12

Bits 15-12: TRGSRC11 ADC0 Sample/Conversion Trigger Source for analog input channel ADC0_AIN11

Bits 11-8: TRGSRC10 ADC0 Sample/Conversion Trigger Source for analog input channel ADC0_AIN10

Bits 7-4: TRGSRC9 ADC0 Sample/Conversion Trigger Source for analog input channel ADC0_AIN9

Bits 3-0: TRGSRC8 ADC0 Sample/Conversion Trigger Source for analog input channel ADC0_AIN8

TRGSRCnDescription (Trigger events start ADC sample/conversion sequence)
0000No Trigger
0001

ADC0 Global Software Trigger.

(Requires CTRLB.GSWTRG =1, CTRLB.GSWTRG is self-clearing after trigger event.)

0010ADC0 Global Level Software Trigger (Requires CTRLB.LSWTRG=1)
0011ADC0 SCANTRG - Scan Trigger. (Requires CHNCFG20.CSSy be configured accordingly)
0100ADC0 STRIG Synchronous Trigger
0101-1111ADC0 Trigger Event(s) from Event System (EVSYS)

If CHNCFG5.TRGSRCy = 0b101 thru 0b1111:

Event System (EVSYS)ADC0
CHANNELx.EVGENCHANNELn.PATH(2)USERm.CHANNELCHNCFG5.TRGSRCy

User Selected

ADC0 Trigger Event Source

= 0x2

Asynchronous path

780b0101
790b0110
800b0111
810b1000
820b1001
830b1010
840b1011
850b1100
860b1101
870b1110
880b1111
Note:
  1. SCANTRG in turn requires programming of CORCTRL0.STRGSRC to select its trigger source. Also, the appropriate CHNCFG20.CSSy bit must be set to include channel “y” in the scan started by the STRIGn trigger.
  2. Requires EVCTRL0.STARTEI = 1 to enable any trigger event(s) from Event System (EVSYS).
  3. If using Event System (EVSYS) trigger for ADC, Asynchronous CHANNELn.PATH = 0x2 must be used to guarantee deterministic ADC sample/convert trigger timing.
  4. These bits are Enabled Protected (Writes are ignored when CTRLA.ENABLE = 1 returns a bus error).
  5. If CTRLB.SWCNVEN=1 and CTRLB.ADCORSEL=0x0, all of these register bits are ignored.