29.8.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[7:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
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

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 7:0 – EVGEN[7:0] Event Generator

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

Table 29-2. Event Generators
ValueEvent GeneratorDescription
0x00NONENo event generator selected
0x01OSCCTRL FAILXOSC Clock Failure
0x02OSC32KCTRL FAILXOSC32K Clock Failure
0x03RTC CMP0Compare 0 (mode 0 and 1) or Alarm 0 (mode 2)
0x04RTC CMP1Compare 1
0x05RTC OVFOverflow
0x06RTC PER0Period 0
0x07RTC PER1Period 1
0x08RTC PER2Period 2
0x09RTC PER3Period 3
0x0ARTC PER4Period 4
0x0BRTC PER5Period 5
0x0CRTC PER6Period 6
0x0DRTC PER7Period 7
0x0EEIC EXTINT0External Interrupt 0
0x0FEIC EXTINT1External Interrupt 1
0x10EIC EXTINT2External Interrupt 2
0x11EIC EXTINT3External Interrupt 3
0x12EIC EXTINT4External Interrupt 4
0x13EIC EXTINT5External Interrupt 5
0x14EIC EXTINT6External Interrupt 6
0x15EIC EXTINT7External Interrupt 7
0x16EIC EXTINT8External Interrupt 8
0x17EIC EXTINT9External Interrupt 9
0x18EIC EXTINT10External Interrupt 10
0x19EIC EXTINT11External Interrupt 11
0x1AEIC EXTINT12External Interrupt 12
0x1BEIC EXTINT13External Interrupt 13
0x1CEIC EXTINT14External Interrupt 14
0x1DEIC EXTINT15External Interrupt 15
0x1ETSENS WINMONWindow Monitor
0x1FDMAC CH0Channel 0
0x20DMAC CH1Channel 1
0x21DMAC CH2Channel 2
0x22DMAC CH3Channel 3
0x23TCC0 OVFOverflow
0x24TCC0 TRGTrig
0x25TCC0 CNTCounter
0x26TCC0 MC0Match/Capture 0
0x27TCC0 MC1Match/Capture 1
0x28TCC0 MC2Match/Capture 2
0x29TCC0 MC3Match/Capture 3
0x2ATCC1 OVFOverflow
0x2BTCC1 TRGTrig
0x2CTCC1 CNTCounter
0x2DTCC1 MC0Match/Capture 0
0x2ETCC1 MC1Match/Capture 1
0x2FTCC2 OVFOverflow
0x30TCC2 TRGTrig
0x31TCC2 CNTCounter
0x32TCC2 MC0Match/Capture 0
0x33TCC2 MC1Match/Capture 1
0x34TC0 OVFOverflow/Underflow
0x35TC0 MC0Match/Capture 0
0x36TC0 MC1Match/Capture 1
0x37TC1 OVFOverflow/Underflow
0x38TC1 MC0Match/Capture 0
0x39TC1 MC1Match/Capture 1
0x3ATC2 OVFOverflow/Underflow
0x3BTC2 MC0Match/Capture 0
0x3CTC2 MC1Match/Capture 1
0x3DTC3 OVFOverflow/Underflow
0x3ETC3 MC0Match/Capture 0
0x3FTC3 MC1Match/Capture 1
0x40TC4 OVFOverflow/Underflow
0x41TC4 MC0Match/Capture 0
0x42TC4 MC1Match/Capture 1
0x43ADC0 RESRDYResult Ready
0x44ADC0 WINMONWindow Monitor
0x45ADC1 RESRDYResult Ready
0x46ADC1 WINMONWindow Monitor
0x47SDADC RESRDYResult Ready
0x48SDADC WINMONWindow Monitor
0x49AC COMP0Comparator 0
0x4AAC COMP1Comparator 1
0x4BAC COMP2Comparator 2
0x4CAC COMP3Comparator 3
0x4DAC WIN0Window 0
0x4EAC WIN1Window 1
0x4FDAC EMPTYData Buffer Empty
0x50PTC EOCEnd of Conversion
0x51PTC WINCOMPWindow Comparator
0x52CCL LUTOUT0CCL output
0x53CCL LUTOUT1CCL output
0x54CCL LUTOUT2CCL output
0x55CCL LUT3CCL output
0x56PAC ACCERRAccess Error
0x57-Reserved
0x58TC5 OVFOverflow/Underflow
0x59TC5 MC0Match/Capture 0
0x5ATC5 MC1Match/Capture 1
0x5BTC6 OVFOverflow/Underflow
0x5CTC6 MC0Match/Capture 0
0x5DTC6 MC1Match/Capture 1
0x5ETC7 OVFOverflow/Underflow
0x5FTC7 MC0Match/Capture 0
0x60TC7 MC1Match/Capture 1
0x61 - 0xFF-Reserved