24.8.2 Channel

Name: CHANNEL
Offset: 0x04
Reset: 0x00000000
Property: Write-Protected

Bit 3130292827262524 
     EDGSEL[1:0]PATH[1:0] 
Access R/WR/WR/WR/W 
Reset 0000 
Bit 2322212019181716 
  EVGEN[6:0] 
Access R/WR/WR/WR/WR/WR/WR/W 
Reset 0000000 
Bit 15141312111098 
        SWEVT 
Access R/W 
Reset 0 
Bit 76543210 
     CHANNEL[3:0] 
Access R/WR/WR/WR/W 
Reset 0000 

Bits 27:26 – 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.

EDGSEL[1:0]NameDescription
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 when using the resynchronized or synchronous path
0x2FALLING_EDGEEvent detection only on the falling edge of the signal from the event generator when using the resynchronized or synchronous path
0x3BOTH_EDGESEvent detection on rising and falling edges of the signal from the event generator when using the resynchronized or synchronous path

Bits 25:24 – PATH[1:0] Path Selection

These bits are used to choose the path to be used by the selected channel.

The path choice can be limited by the channel source.

PATH[1:0]NameDescription
0x0SYNCHRONOUSSynchronous path
0x1RESYNCHRONIZEDResynchronized path
0x2ASYNCHRONOUSAsynchronous path
0x3Reserved

Bits 22:16 – EVGEN[6:0] Event Generator Selection

These bits are used to choose which 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
0x0C

EIC EXTINT0

External 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
0x1CReserved
0x1DReserved
0x1EDMAC CH0Channel 0
0x1FDMAC CH1Channel 1
0x20DMAC CH2Channel 2
0x21DMAC CH3Channel 3
0x22TCC0 OVFOverflow
0x23TCC0 TRGTrig
0x24TCC0 CNTCounter
0x25TCC0_MCX0Match/Capture 0
0x26TCC0_MCX1Match/Capture 1
0x27TCC0_MCX2Match/Capture 2
0x28TCC0_MCX3Match/Capture 3
0x29TCC1 OVFOverflow
0x2ATCC1 TRGTrig
0x2BTCC1 CNTCounter
0x2CTCC1_MCX0Match/Capture 0
0x2DTCC1_MCX1Match/Capture 1
0x2ETCC2 OVFOverflow
0x2FTCC2 TRGTrig
0x30TCC2 CNTCounter
0x31TCC2_MCX0Match/Capture 0
0x32TCC2_MCX1Match/Capture 1
0x33TC3 OVFOverflow/Underflow
0x34TC3 MC0Match/Capture 0
0x35TC3 MC1Match/Capture 1
0x36TC4 OVFOverflow/Underflow
0x37TC4 MC0Match/Capture 0
0x38TC4 MC1Match/Capture 1
0x39TC5 OVFOverflow/Underflow
0x3ATC5 MC0Match/Capture 0
0x3BTC5 MC1Match/Capture 1
0x3C

TC6 OVF

Overflow/Underflow

0x3D

TC6 MC0

Match/Capture 0

0x3E

TC6 MC1

Match/Capture 1

0x3F

TC7 OVF

Overflow/Underflow

0x40

TC7 MC0

Match/Capture 0

0x41

TC7 MC1

Match/Capture 1

0x42ADC RESRDYResult Ready
0x43ADC WINMONWindow Monitor
0x44AC COMP0Comparator 0
0x45AC COMP1Comparator 1
0x46AC WIN0Window 0
0x47

DAC EMPTY

Data Buffer Empty

0x48

PTC EOC

End of Conversion

0x49

PTC WCOMP

Window Comparator

0x4A AC COMP2 Comparator 2
0x4BAC COMP3Comparator 3
0x4C AC WIN1Window 1
0x4D TCC3 OVFOverflow
0x4E TCC3 TRG Trigger
0x4F TCC3 CNTCounter
0x50 TCC3_MCX0Match/Capture 0
0x51 TCC3_MCX1Match/Capture 1
0x52 TCC3_MCX2Match/Capture 2
0x53 TCC3_MCX3Match/Capture 3
0x54-0x7FReservedReserved

Bit 8 – SWEVT Software Event

This bit is used to insert a software event on the channel selected by the CHANNEL.CHANNEL bit group.

This bit has the same behavior similar to an event.

This bit must be written together with CHANNEL.CHANNEL using a 16-bit write.

Writing a zero to this bit has no effect.

Writing a one to this bit will trigger a software event for the corresponding channel.

This bit will always return zero when read.

Bits 3:0 – CHANNEL[3:0] Channel Selection

These bits are used to select the channel to be set up or read from.