42.7.17 ADC2 Channel Configuration Registers 1 (ADC)

Table 42-23. 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[2].CHNCFG1
Offset: 0x64
Reset: 0x00000000
Property: PAC Write-Protected, Enable-Protected

Bit 3130292827262524 
          
Access  
Reset  
Bit 2322212019181716 
  LVL6LVL5LVL4LVL3LVL2LVL1LVL0 
Access R/WR/WR/WR/WR/WR/WR/W 
Reset 0000000 
Bit 15141312111098 
          
Access  
Reset  
Bit 76543210 
  CHNCMPE6CHNCMPE5CHNCMPE4CHNCMPE3CHNCMPE2CHNCMPE1CHNCMPE0 
Access R/WR/WR/WR/WR/WR/WR/W 
Reset 0000000 

Bits 16, 17, 18, 19, 20, 21, 22 – LVLk Trigger Level for Input k

Bit 22 :LVL6 Scan Level Trigger mode select for ADC Module 2, analog internal TEMPERATURE SENSOR

Note: Before attempting to measure Temperature sensor it must first be enabled with SUPC.VREFCTRL.TSEN = 1.

Bit 21 :LVL5 Scan Level Trigger mode select for ADC Module 2, analog input ADC2_AIN5

Bit 20 :LVL4 Scan Level Trigger mode select for ADC Module 2, analog input ADC2_AIN4

Bit 19 :LVL3 Scan Level Trigger mode select for ADC Module 2, analog input ADC2_AIN3

Bit 18 :LVL2 Scan Level Trigger mode select for ADC Module 2, analog input ADC2_AIN2

Bit 17 :LVL1 Scan Level Trigger mode select for ADC Module 2, analog input ADC2_AIN1

Bit 16 :LVL0 Scan Level Trigger mode select for ADC Module 2, analog input ADC2_AIN0

Note:
  1. These bits are ignored if CTRLB.SWCNVEN=1 and CTRLB.ADCORSEL = 0.
  2. These bits are Enabled Protected (Writes are ignored when CTRLA.ENABLE = 1. Returns a bus error).
ValueDescription
0Rising edge scan trigger mode select. A rising edge trigger event will initiate a single but complete scan of all included scan channels defined in CHNCFG22.CSSy. (Default)
1Level scan trigger mode select. As long as the trigger event stays a logic high when the corresponding CHNCFG42 TRGSRCx = 0b0011, (SCANTRG - Scan Trigger Select), the entire scan will re-trigger continuously.

Bits 0, 1, 2, 3, 4, 5, 6 – CHNCMPEk Channel k Compare Enable

Bit 6 :CHNCMPE6 Enable digital comparator for processing ADC2 conversion results for internal TEMPERATURE SENSOR

Note: Before attempting to measure Temperature sensor it must first be enabled with SUPC.VREFCTRL.TSEN = 1.

Bit 5 :CHNCMPE5 Enable digital comparator for processing ADC2 conversion results for ADC2_AIN5

Bit 4 :CHNCMPE4 Enable digital comparator for processing ADC2 conversion results for ADC2_AIN4

Bit 3 :CHNCMPE3 Enable digital comparator for processing ADC2 conversion results for ADC2_AIN3

Bit 2 :CHNCMPE2 Enable digital comparator for processing ADC2 conversion results for ADC2_AIN2

Bit 1 :CHNCMPE1 Enable digital comparator for processing ADC2 conversion results for ADC2_AIN1

Bit 0 :CHNCMPE0 Enable digital comparator for processing ADC2 conversion results for ADC2_AIN0

Note:
  1. In addition to setting the CHNCMPENn bit in this register, the associated ADC2 Digital Comparator must be also properly configured in its Digital Comparator Control Register, CMPCTRL2 as well as EVCTRL2.CMPEO.
  2. These bits are ignored if CTRLB.SWCNVEN = 1 and CTRLB.ADCORSEL = 0 and are Enabled Protected (Writes are ignored when CTRLA.ENABLE = 1 returns a bus error).
ValueDescription
0ADC2 analog channel is not monitored by ADC2 internal digital comparator
1ADC2 analog channel conversion result is monitored by ADC2 internal digital comparator