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

Name: CHANNEL
Offset: 0x20 + n*0x08 [n=0..31]
Reset: 0x00008000
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.

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 is 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 11 can be configured as synchronous or resynchronized.
ValueNameDescription
0x0SYNCHRONOUSSynchronous path
0x1RESYNCHRONIZEDResynchronized path
0x2ASYNCHRONOUSAsynchronous path
OtherReserved

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 30-2. Event Generator Selection
Value Name Description
0x00 None No event generator selected
0x01 - 0x08 RTC_PERx RTC period x=0..7
0x09 - 0x0C RTC_CMPx RTC comparison x=0..3
0x0D RTC_TAMPER RTC tamper detection
0x0E RTC_OVF RTC overflow
0x0F - 0x12 EIC_EXTINTx EIC external interrupt x=0..3
0x13 - 0x16 DMAC_CHx DMA channel x=0..3
0x17 PAC_ACCERR PAC Acc. error
0x18 TCC0_OVF TCC0 overflow
0x19 TCC0_TRG TCC0 trigger event
0x1A TCC0_CNT TCC0 counter
0x1B-0x20 TCC0_MCx TCC0 match/compare x=0..5
0x21 TCC1_OVF TCC1 overflow
0x22 TCC1_TRG TCC1 trigger event
0x23 TCC1_CNT TCC1 counter
0x24 - 0x29 TCC1_MCx TCC1 match/compare x=0..5
0x2A TCC2_OVF TCC2 overflow
0x2B TCC2_TRG TCC2 trigger event
0x2C TCC2_CNT TCC2 counter
0x2D - 0x2E TCC2_MCx TCC2 match/compare x=0..1
0x2F TC0_OVF TC0 overflow
0x30-0x31 TC0_MCx TC0 match/compare x=0..1
0x32 TC1_OVF TC1 overflow
0x33 - 0x34 TC1_MCx TC1 match/compare x=0..1
0x35 TC2_OVF TC2 overflow
0x36 - 0x37 TC2_MCx TC2 match/compare x=0..1
0x38 TC3_OVF TC3 overflow
0x39 - 0x3A TC3_MCx TC3 match/compare x=0..1
0x3B TC4_OVF TC4 overflow
0x3C - 0x3D TC4_MCx TC4 match/compare x=0..1
0x3E TC5_OVF TC5 overflow
0x3F - 0x40 TC5_MCx TC5 match/compare x=0..1
0x41 TC6_OVF TC6 overflow
0x42 - 0x43 TC6_MCx TC6 match/compare x=0..1
0x44 TC7_OVF TC7 overflow
0x45 - 0x46 TC7_MCx TC7 match/compare x=0..1
0x47 ADC_RESRDY ADC end-of-scan ready interrupt
0x48 - 0x49 Not used
0x4A - 0x4B AC_COMPx AC comparator, x=0..1
0x4C AC_WIN_0 AC0 window
0x4D Not used
0x4E - 0x4F CCL_LUTOUTx CCL LUTOUT x-0..1
0x50 ZB_TX_TS_ACTIVE ZB transmit packet active time
0x51 ZB_RX_TS_ACTIVE ZB receive packet active time