28.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: CHANNEL
Offset: 0x20 + n*0x08 [n=0..31]
Reset: 0x00008000
Property: PAC Write-Protection, Mix-Secure

Bit 3130292827262524 
          
Access  
Reset  
Bit 2322212019181716 
          
Access  
Reset  
Bit 15141312111098 
 ONDEMANDRUNSTDBY  EDGSEL[1:0]PATH[1:0] 
Access RWRWRWRWRWRW 
Reset 100000 
Bit 76543210 
 EVGEN[7:0] 
Access RWRWRWRWRWRWRWRW 
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 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 USERm from Related Links).
Important: Only EVSYS channel 0 to 3 can be configured as synchronous or resynchronized.
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 28-2. Event Generator Selection
ValueNameDescription
0x00 - 0x07RTC_PERxRTC period x=0..7
0x08 - 0x0BRTC_CMPxRTC comparison x=0..3
0x0CRTC_TAMPERRTC tamper detection
0x0DRTC_OVFRTC Overflow
0x0E - 0x11EIC_EXTINTxEIC external interrupt x=0..3
0x12 - 0x15DMAC_CHxDMA channel x=0..3
0x16PAC_ACCERRPAC Acc. error
0x17TCC0_OVFTCC0 Overflow
0x18TCC0_TRGTCC0 Trigger Event
0x19TCC0_CNTTCC0 Counter
0x1A-0x1FTCC0_MCxTCC0 Match/Compare x=0..5
0x20TCC1_OVFTCC1 Overflow
0x21TCC1_TRGTCC1 Trigger Event
0x22TCC1_CNTTCC1 Counter
0x23 - 0x28TCC1_MCxTCC1 Match/Compare x=0..5
0x29TCC2_OVFTCC2 Overflow
0x2ATCC2_TRGTCC2 Trigger Event
0x2BTCC2_CNTTCC2 Counter
0x2C - 0x2DTCC2_MCxTCC2 Match/Compare x=0..1
0x2ETC0_OVFTC0 Overflow
0x2F-0x30 TC0_MCxTC0 Match/Compare x=0..1
0x31TC1_OVFTC1 Overflow
0x32 - 0x33TC1_MCxTC1 Match/Compare x=0..1
0x34TC2_OVFTC2 Overflow
0x35 - 0x36TC2_MCxTC2 Match/Compare x=0..1
0x37TC3_OVFTC3 Overflow
0x38 - 0x39TC3_MCxTC3 Match/Compare x=0..1
0x3AADC_RESRDYADC End-Of-Scan Ready Interrupt
0x3B - 0x3CNot used
0x3D - 0x3EAC_COMPxAC Comparator, x=0..1
0x3FAC_WIN_0AC0 Window
0x40TRNG_READYTRNG ready
0x41 - 0x42CCL_LUTOUTxCCL LUTOUT x-0..1
0x43ZB_TX_TS_ACTIVEZigbee Transmit Packet Active time
0x44ZB_RX_TS_ACTIVEZigbee Receive Packet Active time