31.7.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.

Name: CHANNELn
Offset: 0x20 + n*0x08 [n=0..31]
Reset: 0x00008000 for CHANNEL0-11, and 0x00000000 for CHANNEL12-31
Property: PAC Write-Protection

Bit 3130292827262524 
          
Access  
Reset  
Bit 2322212019181716 
          
Access  
Reset  
Bit 15141312111098 
 ONDEMANDRUNSTDBY  EDGSEL[1:0]PATH[1:0] 
Access RWRWRWRWRWRW 
Reset 100000 
Bit 76543210 
  EVGEN[6:0] 
Access RWRWRWRWRWRWRW 
Reset 0000000 

Bit 15 – ONDEMAND Generic Clock On Demand

This bit is used to determine whether the generic clock is requested.

This bit has no effect for channels when asynchronous path is selected or for channels with asynchronous support only.

This bit is always read zero for channels with asynchronous support only.

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, for a resynchronized channel.

This bit has no effect for channels when asynchronous path is selected or for channels with asynchronous support only.

This bit is always read zero for channels with asynchronous support only.

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, see the table in USERm.
Important: Only EVSYS channel 0 to 11 can be configured as synchronous or resynchronized.
ValueNameDescription
0x0SYNCHRONOUSSynchronous path
0x1RESYNCHRONIZEDResynchronized path
0x2ASYNCHRONOUSAsynchronous path
Other-Reserved

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

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

ValueNameDescription
0x00NONENo event generator selected
0x01 - 0x02OSCCTRL_XOSC_FAILxXOSC fail detection x=0..1
0x03OSC32KCTRL_XOSC32K_FAILXOSC32K fail detection
0x04 - 0x0BRTC_PERxRTC period x=0..7
0x0C - 0x0FRTC_CMPRTC comparison x=0..3
0x10RTC_TAMPERRTC tamper detection
0x11RTC_OVFRTC overflow
0x12 - 0x21EIC_EXTINTEIC external interrupt x=0..15
0x22 - 0x25DMAC_CHDMA channel x=0..3
0x26PAC_ACCERRPAC Acc. error
0x27Reserved-
0x28Reserved-
0x29TCC0_OVFTCC0 Overflow
0x2ATCC0_TRGTCC0 Trigger Event
0x2BTCC0_CNTTCC0 Counter
0x2C - 0x31TCC0_MCxTCC0 Match/Compare x=0..5
0x32TCC1_OVFTCC1 Overflow
0x33TCC1_TRGTCC1 Trigger Event
0x34TCC1_CNTTCC1 Counter
0x35 - 0x38TCC1_MCxTCC1 Match/Compare x=0..3
0x39TCC2_OVFTCC2 Overflow
0x3ATCC2_TRGTCC2 Trigger Event
0x3BTCC2_CNTTCC2 Counter
0x3C - 0x3ETCC2_MCxTCC2 Match/Compare x=0..2
0x3FTCC3_OVFTCC3 Overflow
0x40TCC3_TRGTCC3 Trigger Event
0x41TCC3_CNTTCC3 Counter
0x42 - 0x43TCC3_MCxTCC3 Match/Compare x=0..1
0x44TCC4_OVFTCC4 Overflow
0x45TCC4_TRGTCC4 Trigger Event
0x46TCC4_CNTTCC4 Counter
0x47 - 0x48TCC4_MCxTCC4 Match/Compare x=0..1
0x49TC0_OVFTC0 Overflow
0x4A - 0x4BTC0_MCxTC0 Match/Compare x=0..1
0x4CTC1_OVFTC1 Overflow
0x4D - 0x4ETC1_MCxTC1 Match/Compare x=0..1
0x4FTC2_OVFTC2 Overflow
0x50 - 0x51TC2_MCxTC2 Match/Compare x=0..1
0x52TC3_OVFTC3 Overflow
0x53 - 0x54TC3_MCxTC3 Match/Compare x=0..1
0x55TC4_OVFTC4 Overflow
0x56 - 0x57TC4_MCxTC4 Match/Compare x=0..1
0x58TC5_OVFTC5 Overflow
0x59 - 0x5ATC5_MCxTC5 Match/Compare x=0..1
0x5BTC6_OVFTC6 Overflow
0x5C - 0x5DTC6_MCxTC6 Match/Compare x=0..1
0x5ETC7_OVFTC7 Overflow
0x5F - 0x60TC7_MCxTC7 Match/Compare x=0..1
0x61PDEC_OVFPDEC Overflow
0x62PDEC_ERRPDEC Error
0x63PDEC_DIRPDEC Direction
0x64PDEC_VLCPDEC VLC
0x65 - 0x66PDEC_MCxPDEC MCx x=0..1
0x67ADC0_RESRDYADC0 RESRDY
0x68ADC0_WINMONADC0 Window Monitor
0x69ADC1_RESRDYADC1 RESRDY
0x6AADC1_WINMONADC1 Window Monitor
0x6B - 0x6CAC_COMPxAC Comparator, x=0..1
0x6DAC_WINAC0 Window
0x6E - 0x6FDAC_EMPTYxDAC empty, x=0..1
0x70 - 0x71DAC_RESRDYxDAC RSRDY, x=0..1
0x72GMAC_TSU_CMPGMAC Timestamp CMP
0x73TRNG_READYTRNG ready
0x74 - 0x77CCL_LUTOUTCCL LUTOUT
0x78-0x7FReservedReserved