32.8.8 Channel n Control

This register allows the user to configure channel n. To write to this register, do a single, 32-bit write of all the configuration data.

Table 32-9. 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: CHANNELn
Offset: 0x20 + n*0x08 [n=0..7]
Reset: 0x00008000
Property: PAC Write-Protection

Bit 3130292827262524 
          
Access  
Reset  
Bit 2322212019181716 
          
Access  
Reset  
Bit 15141312111098 
 ONDEMANDRUNSTDBY  EDGSEL[1:0]PATH[1:0] 
Access R/WR/WR/WR/WR/WR/W 
Reset 100000 
Bit 76543210 
 EVGEN[7:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 

Bit 15 – ONDEMAND Generic Clock On Demand

ValueDescription
0Generic clock for a channel is always on, if the channel is configured and generic clock source is enabled.
1Generic clock is requested on demand while an event is handled

Bit 14 – RUNSTDBY Run in Standby

This bit is used to define the behavior during standby sleep mode.

ValueDescription
0The channel is disabled in standby sleep mode.
1The channel is not stopped in standby sleep mode and depends on the CHANNEL.ONDEMAND bit.

Bits 11:10 – EDGSEL[1:0] Edge Detection Selection

These bits set the type of edge detection to be used on the channel.

These bits must be written to zero when using the asynchronous path.

ValueNameDescription
0x0NO_EVT_OUTPUTNo event output when using the resynchronized or synchronous path
0x1RISING_EDGEEvent detection only on the rising edge of the signal from the event generator
0x2FALLING_EDGEEvent detection only on the falling edge of the signal from the event generator
0x3BOTH_EDGESEvent detection on rising and falling edges of the signal from the event generator

Bits 9:8 – PATH[1:0] Path Selection

These bits are used to choose which path will be used by the selected channel.

Note: The path choice can be limited by the channel source. Only a channel with an index less than12, embeds synchronous/resynchronous capabilities. The rest of available channels support only asynchronous path selection.
Important: When synchronous or resynchronized path is enabled, event inversion feature in peripherals must not be enabled (EVCTRL.xxxINV = 0.
Important: To avoid spurious EVSYS detections, EVSYS must be write protected by configuring the WRCTRL register in the PAC before being used.
ValueNameDescription
0x0SYNCHRONOUSSynchronous path
0x1RESYNCHRONIZEDResynchronized path
0x2ASYNCHRONOUSAsynchronous path
Other-Reserved

Bits 7:0 – EVGEN[7:0] Event Generator Selection

These bits are used to choose the event generator to connect to the selected channel.

Table 32-10. Event Generator (EVGEN) Mapping
Module Name Name of Generator Value Description
SUPCSUPC LVDET1Low Voltage Detection
OSCCTRLXOSC FAIL2XOSC fail detection
OSC32KCTRLXOSC32K_FAIL3XOSC32K fail detection
FREQMDONE4Measurement Done
WINMON5Window Monitor Condition Met
RTCRTC-PERx6-13RTC period x=0..7
PERD14RTC Daily Period
RTC-CMPx15-18RTC comparison x=0..3
RTC-TAMPER19RTC tamper detection
RTC-OVF20RTC overflow
EICEXTINTx21-36EIC external interrupt x=0..15
PACPAC_ACCERR37PAC Access Error
DMA0DMA0_CHx38-45DMA channel x=0…7
DMA1DMA1_CHx46-49DMA channel x=0…3
TCC0OVF50TCC0 Overflow
TRG51TCC0 Trigger Event
CNT52TCC0 Counter
MCx53-58TCC0 Match/Compare x=0..5
TCC1OVF 59TCC1 Overflow
TRG60TCC1 Trigger Event
CNT61TCC1 Counter
MCx62-67TCC1 Match/Compare x=0..5
TCC2OVF68TCC2 Overflow
TRG69TCC2 Trigger Event
CNT70TCC2 Counter
MCx71-76TCC2 Match/Compare x=0..5
TCC3OVF77TCC3 Overflow
TRG78TCC3 Trigger Event
CNT79TCC3 Counter
MCx80-85TCC3 Match/Compare x=0..5
TCC4OVF86TCC4 Overflow
TRG87TCC4 Trigger Event
CNT88TCC4 Counter
MCx89,90TCC4 Match/Compare x=0..1
TCC5OVF91TCC5 Overflow
TRG92TCC5 Trigger Event
CNT93TCC5 Counter
MCx94,95TCC5 Match/Compare x=0..1
TCC6OVF96TCC6 Overflow
TRG97TCC6 Trigger Event
CNT98TCC6 Counter
MCx99,100TCC6 Match/Compare x=0..1
TCC7OVF101TCC7 Overflow
TRG102TCC7 Trigger Event
CNT103TCC7 Counter
MCx104,105TCC7 Match/Compare x=0..1
ADCADC RESRDY106ADC Ready
ADC CMP107ADC Compare Event
ACAC COMPx108,109AC Comparator x=0..1
AC WIN110AC0 Window
PTCEOC111PTC end of Conversion
WCOMP112PTC Window Compare
SPI_IXSGEN113Frame Pulse (??)
CCLLUTOUT_x114-117LUTx Output, x=0…3
PDECDIR118Direction Output
ERR119Error Output
MCX_0121Match Channel 0
MCX_1122Match Channel 1
VLC123Velocity Output
ETHTSU_CMP124Time Stamp Unit (TSU) Compare
TRNGREADY125TRNG ready
Note:
  1. A = Asynchronous path, S = Synchronous path, R = Resynchronized path