34.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 34-10. 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..11]
Reset: 0x00008000
Property: RW

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[6:0] 
Access R/WR/WR/WR/WR/WR/WR/W 
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
0NO_EVT_OUTPUTNo event output when using the resynchronized or synchronous path
1RISING_EDGEEvent detection only on the rising edge of the signal from the event generator when using the resynchronized or synchronous path
2FALLING_EDGEEvent detection only on the falling edge of the signal from the event generator when using the resynchronized or synchronous path
3BOTH_EDGESEvent detection on rising and falling edges of the signal from the event generator when using the resynchronized or synchronous path

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 the "USERm" register.
Important: When resynchronized path is enabled, event inversion feature in peripherals must not be enabled (EVCTRL.xxxINV = 0.
ValueNameDescription
0x0ASYNCHRONOUSAsynchronous path
0x1RESYNCHRONIZEDResynchronized 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.

Table 34-11. Event Generators
ValueEvent GeneratorDescription
0x01SUPC_LVDETSUPC fail detection
0x02OSCCTRL_XOSC_FAILXOSC fail detection
0x03OSC32KCTRL_XOSC32K_FAILXOSC32K fail detection
0x04SUPC_BOD33DETSUPC BOD33 detection
0x06-0x0DRTC_PERxRTC period 0-7
0x0E-0x11RTC_CMPxRTC comparison x=0-3
0x12RTC_TAMPERRTC tamper detection
0x13RTC_OVFRTC overlow
0x14RTC_PERDRTC
0x15-0x24EIC_EXTINTxEIC external interrupt, x=0-15
0x25-0x28DMAC_CHxDMAC channel, x=0-3
0x29TC0_OVFTC0 overflow
0x2ATC0_TRGTC0 trigger
0x2BTC0_CNTTC0 count
0x2C-2DTC0_MCxTC0 match/compare, x=0-1
0x2ETC1_OVFTC1 overflow
0x2FTC1_TRGTC1 trigger
0x30TC1_CNTTC1 count
0x31-0x32TC1_MCxTC1 match/compare, x=0-1
0x33TC2_OVFTC2 overflow
0x34TC2_TRGTC2 trigger
0x35TC2_CNTTC2 count
0x36-0x37TC2_MCxTC2 match/compare
0x38TC3_OVFTC3 overflow
0x39TC3_TRGTC3 trigger
0x3ATC3_CNTTC3 count
0x3B-3CTC3_MCxTC3 match/compare, x=0-1
0x3DTC4_OVFTC4 overflow
0x3ETC4_TRGTC4 trigger
0x3FTC4_CNTTC4 count
0x40-0x41TC4_MCxTC4 match/compare, x=0-1
0x42TC5_OVFTC5 overflow
0x43TC5_TRGTC5 trigger
0x44TC5_CNTTC5 count
0x45-0x46TC5_MCxTC5 match/compare, x=0-1
0x47TC6_OVFTC6 overflow
0x48TC6_TRGTC6 trigger
0x49TC6_CNTTC6 count
0x4A-0x4BTC6_MCxTC6 match/compare, x=0-1
0x4CADC_CHRDYADC resolution ready
0x4DADC_CMPADC window monitor
0x4E-0x4FAC_COMPAC comparator
0x50AC_WIN0AC window
0x51PTC_EOCPTC end of conversion
0x52PTC_WCOMPPTC window comparator
0x53-0x56CCL0_LUTOUTCCL0 output, x=0-3
0x57-0x5ACCL1_LUTOUTCCL1 output, x=0-3