28.6.7 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*0x04 [n=0..11]
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[6:0] 
Access R/WR/WR/WR/WR/WR/WR/W 
Reset 0000000 

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

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.

The path choice can be limited by the channel source, see the table in USERm.

ValueNameDescription
0x0SYNCHRONOUSSynchronous path
0x1RESYNCHRONIZEDResynchronized path
0x2ASYNCHRONOUSAsynchronous path
0x3-Reserved

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

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

Table 28-2. Event Generators (1)
ValueEvent GeneratorDescription
0x00NONENo event generator selected
0x01RTC PERDRTC Periodic daily event
0x02ReservedReserved
0x03OSCCTRL FAILXOSC Clock Failure
0x04OSC32KCTRL FAILXOSC32K Clock Failure
0x05RTC CMP0Compare 0 (mode 0 and 1) or Alarm 0 (mode 2)
0x06RTC CMP1Compare 1
0x07RTC OVFOverflow
0x08RTC PER0Period 0
0x09RTC PER1Period 1
0x0ARTC PER2Period 2
0x0BRTC PER3Period 3
0x0CRTC PER4Period 4
0x0DRTC PER5Period 5
0x0ERTC PER6Period 6
0x0FRTC PER7Period 7
0x10EIC EXTINT0External Interrupt 0
0x11EIC EXTINT1External Interrupt 1
0x12EIC EXTINT2External Interrupt 2
0x13EIC EXTINT3External Interrupt 3
0x14EIC EXTINT4External Interrupt 4
0x15EIC EXTINT5External Interrupt 5
0x16EIC EXTINT6External Interrupt 6
0x17EIC EXTINT7External Interrupt 7
0x18EIC EXTINT8External Interrupt 8
0x19EIC EXTINT9External Interrupt 9
0x1AEIC EXTINT10External Interrupt 10
0x1BEIC EXTINT11External Interrupt 11
0x1CEIC EXTINT12External Interrupt 12
0x1DEIC EXTINT13External Interrupt 13
0x1EEIC EXTINT14External Interrupt 14
0x1FEIC EXTINT15External Interrupt 15
0x20DMAC CH0Channel 0
0x21DMAC CH1Channel 1
0x22DMAC CH2Channel 2
0x23DMAC CH3Channel 3
0x24TCC0 OVFOverflow
0x25TCC0 TRGTrig
0x26TCC0 CNTCounter
0x27TCC0 MC0Match/Capture 1
0x28TCC0 MC1Match/Capture 1
0x29TCC0 MC2Match/Capture 2
0x2ATCC0 MC3Match/Capture 3
0x2BTCC1 OVFOverflow
0x2CTCC1 TRGTrig
0x2DTCC1 CNTCounter
0x2ETCC1 MC0Match/Capture 0
0x2FTCC1 MC1Match/Capture 1
0x30TCC2 OVFOverflow
0x31TCC2 TRGTrig
0x32TCC2 CNTCounter
0x33TCC2 MC0Match/Capture 0
0x34TCC2 MC1Match/Capture 1
0x35TC0 OVFOverflow/Underflow
0x36TC0 MC0Match/Capture 0
0x37TC0 MC1Match/Capture 1
0x38TC1 OVFOverflow/Underflow
0x39TC1 MC0Match/Capture 0
0x3ATC1 MC1Match/Capture 1
0x3BTC2 OVFOverflow/Underflow
0x3CTC2 MC1Match/Capture 0
0x3DTC2 MC0Match/Capture 1
0x3ETC3 OVFOverflow/Underflow
0x3FTC3 MC0Match/Capture 0
0x40TC3 MC1Match/Capture 1
0x41TC4 OVFOverflow/Underflow
0x42TC4 MC0Match/Capture 0
0x43TC4 MC1Match/Capture 1
0x44ADC0 RESRDYResult Ready
0x45ADC0 WINMONWindow Monitor
0x46ADC1 RESRDYResult Ready
0x47ADC1 WINMONWindow Monitor
0x48AC COMP0Comparator 0
0x49AC COMP1Comparator 1
0x4AAC COMP2Comparator 2
0x4BAC COMP3Comparator 3
0x4CAC WIN0Window 0
0x4DAC WIN1Window 1
0x4EDAC EMPTYData Buffer Empty
0x4FPTC EOCEnd of Conversion
0x50PTC WINCOMPWindow Comparator
0x51CCL LUTOUT0CCL output
0x52CCL LUTOUT1CCL output
0x53CCL LUTOUT2CCL output
0x54CCL LUTOUT3CCL output
0x55PAC ACCERRAccess Error
0x56-Reserved
0x57TC5 OVFOverflow/Underflow
0x58TC5 MC0Match/Capture 0
0x59TC5 MC1Match/Capture 1
0x5ATC6 OVFOverflow/Underflow
0x5BTC6 MC0Match/Capture 0
0x5CTC6 MC1Match/Capture 1
0x5DTC7 OVFOverflow/Underflow
0x5ETC7 MC0Match/Capture 0
0x5FTC7 MC1Match/Capture 1
0x60PDEC_OVFPDEC Overflow
0x61PDEC_ERRPDEC Error
0x62PDEC_DIRPDEC Direction
0x63PDEC_VLCPDEC VLC
0x64PDEC_MC0PDEC MC0
0x65PDEC_MC1PDEC MC1
0x66 - 0x7FReservedReserved
Note:
  1. Refer to the Configuration Summary chapter for the list of peripherals and peripheral instances present in each variant.