29.8.7 Channel n

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..7]
Reset: 0x00000000
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 000000 
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.

ValueEvent GeneratorDescription
0x00NONENo event generator selected
0x01OSCCTRL_CFDClock Failure Detection
0x02OSC32KCTRL_CFDClock Failure Detection
0x03RTC CMP0Compare 0 (mode 0 and 1) or Alarm 0 (mode 2)
0x04RTC CMP1Compare 1
0x05RTC_TAMPERTamper Detection
0x06RTC OVFOverflow
0x07RTC PER0Period 0
0x08RTC PER1Period 1
0x09RTC PER2Period 2
0x0ARTC PER3Period 3
0x0BRTC PER4Period 4
0x0CRTC PER5Period 5
0x0DRTC PER6Period 6
0x0ERTC PER7Period 7
0x0FEIC EXTINT0External Interrupt 0
0x10EIC EXTINT1External Interrupt 1
0x11EIC EXTINT2External Interrupt 2
0x12EIC EXTINT3External Interrupt 3
0x13EIC EXTINT4External Interrupt 4
0x14EIC EXTINT5External Interrupt 5
0x15EIC EXTINT6External Interrupt 6
0x16EIC EXTINT7External Interrupt 7
0x17EIC EXTINT8External Interrupt 8
0x18EIC EXTINT9External Interrupt 9
0x19EIC EXTINT10External Interrupt 10
0x1AEIC EXTINT11External Interrupt 11
0x1BEIC EXTINT12External Interrupt 12
0x1CEIC EXTINT13External Interrupt 13
0x1DEIC EXTINT14External Interrupt 14
0x1EEIC EXTINT15External Interrupt 15
0x1FDMAC CH0Channel 0
0x20DMAC CH1Channel 1
0x21DMAC CH2Channel 2
0x22DMAC CH3Channel 3
0x23TCC0_OVFOverflow
0x24TCC0_TRGTrig
0x25TCC0_CNTCounter
0x26TCC0_MC0Match/Capture 0
0x27TCC0_MC0Match/Capture 1
0x28TCC0_MC0Match/Capture 2
0x29TCC0_MC0Match/Capture 3
0x2ATC0 OVFOverflow/Underflow
0x2BTC0 MC0Match/Capture 0
0x2CTC0 MC0Match/Capture 1
0x2DTC1 OVFOverflow/Underflow
0x2ETC1 MC0Match/Capture 0
0x2FTC1 MC0Match/Capture 1
0x30TC2 OVFOverflow/Underflow
0x31TC2 MC0Match/Capture 0
0x32TC2 MC0Match/Capture 1
0x33TC3 OVFOverflow/Underflow
0x34TC3 MC0Match/Capture 0
0x35TC3 MC0Match/Capture 1
0x36ADC RESRDYResult Ready
0x37ADC WINMONWindow Monitor
0x38AC COMP0Comparator 0
0x39AC COMP1Comparator 1
0x3AAC WIN0Window 0
0x3BPTC EOCEnd of Conversion
0x3CPTC WCOMPWindow Comparator
0x3DSLCD_FC0Frame Counter 0 overflow
0x3ESCLD_FC1Frame Counter 1 overflow
0x3FSLCD_FC2Frame Counter 2 overflow
0x41TRNG READYData Ready
0x42CCL LUTOUT0CCL output
0x43CCL LUTOUT1CCL output
0x44CCL LUTOUT2CCL output
0x45CCL LUTOUT3CCL output
0x46PAC ACCERRAccess Error
0x47-0x7FReserved