30.8.7 Channel

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: 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

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

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
0x01RTC CMP0Compare 0 (mode 0 and 1) or Alarm 0 (mode 2)
0x02RTC CMP1Compare 1
0x03RTC OVFOverflow
0x04RTC PER0Period 0
0x05RTC PER1Period 1
0x06RTC PER2Period 2
0x07RTC PER3Period 3
0x08RTC PER4Period 4
0x09RTC PER5Period 5
0x0ARTC PER6Period 6
0x0BRTC PER7Period 7
0x0CEIC EXTINT0External Interrupt 0
0x0DEIC EXTINT1External Interrupt 1
0x0EEIC EXTINT2External Interrupt 2
0x0FEIC EXTINT3External Interrupt 3
0x10EIC EXTINT4External Interrupt 4
0x11EIC EXTINT5External Interrupt 5
0x12EIC EXTINT6External Interrupt 6
0x13EIC EXTINT7External Interrupt 7
0x14EIC EXTINT8External Interrupt 8
0x15EIC EXTINT9External Interrupt 9
0x16EIC EXTINT10External Interrupt 10
0x17EIC EXTINT11External Interrupt 11
0x18EIC EXTINT12External Interrupt 12
0x19EIC EXTINT13External Interrupt 13
0x1AEIC EXTINT14External Interrupt 14
0x1BEIC EXTINT15External Interrupt 15
0x1CDMAC CH0Channel 0
0x1DDMAC CH1Channel 1
0x1EDMAC CH2Channel 2
0x1FDMAC CH3Channel 3
0x20DMAC CH4Channel 4
0x21DMAC CH5Channel 5
0x22DMAC CH6Channel 6
0x23DMAC CH7Channel 7
0x24TCC0 OVFOverflow
0x25TCC0 TRGTrig
0x26TCC0 CNTCounter
0x27TCC0_MCX0Match/Capture 0
0x28TCC0_MCX1Match/Capture 1
0x29TCC0_MCX2Match/Capture 2
0x2ATCC0_MCX3Match/Capture 3
0x2BTCC1 OVFOverflow
0x2CTCC1 TRGTrig
0x2DTCC1 CNTCounter
0x2ETCC1_MCX0Match/Capture 0
0x2FTCC1_MCX1Match/Capture 1
0x30TCC2 OVFOverflow
0x31TCC2 TRGTrig
0x32TCC2 CNTCounter
0x33TCC2_MCX0Match/Capture 0
0x34TCC2_MCX1Match/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 MC0Match/Capture 0
0x3DTC2 MC1Match/Capture 1
0x3ETC3 OVFOverflow/Underflow
0x3FTC3 MC0Match/Capture 0
0x40TC3 MC1Match/Capture 1
0x41TC4 OVFOverflow/Underflow
0x42TC4 MC0Match/Capture 0
0x43TC4 MC1Match/Capture 1
0x44ADC RESRDYResult Ready
0x45ADC WINMONWindow Monitor
0x46AC COMP0Comparator 0
0x47AC COMP1Comparator 1
0x48AC WIN0Window 0
0x49DAC EMPTY0Data Buffer Empty
0x4AEMPTY DAC 1Data Buffer Empty
0x4BPTC EOCEnd of Conversion
0x4CPTC WCOMPWindow Comparator
0x4DTRNG READYData Ready
0x4ECCL LUTOUT0CCL output
0x4FCCL LUTOUT1CCL output
0x50CCL LUTOUT2CCL output
0x51CCL LUTOUT3CCL output
0x52PAC ACCERRAccess Error
0x53-0x7FReserved