22.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[7:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 15141312111098 
        SWEVT 
Access R/W 
Reset 0 
Bit 76543210 
 CHANNEL[7:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 

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
0x3-Reserved

Bits 23:16 – EVGEN[7: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
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
0x1CTC0 OVFOverflow/Underflow
0x1DTC0 MC0Match/Capture 0
0x1ETC0 MC1Match/Capture 1
0x1FTC1 OVFOverflow/Underflow
0x20TC1 MC0Match/Capture 0
0x21TC1 MC1Match/Capture 1
0x22TC2 OVFOverflow/Underflow
0x23TC2 MC0Match/Capture 0
0x24TC2 MC1Match/Capture 1
0x25TC3 OVFOverflow/Underflow
0x26TC3 MC0Match/Capture 0
0x27TC3 MC1Match/Capture 1
0x28TC4 OVFOverflow/Underflow
0x29TC4 MC0Match/Capture 0
0x2ATC4 MC1Match/Capture 1
0x2BTC5 OVFOverflow/Underflow
0x2CTC5 MC0Match/Capture 0
0x2DTC5 MC1Match/Capture 1
0x2ETC6 OVFOverflow/Underflow
0x2FTC6 MC0Match/Capture 0
0x30TC6 MC1Match/Capture 1
0x31TC7 OVFOverflow/Underflow
0x32TC7 MC0Match/Capture 0
0x33TC7 MC1Match/Capture 1
0x34ADC RESRDYResult Ready
0x35ADC WINMONWindow Monitor
0x36AC COMP0Comparator 0
0x37AC COMP1Comparator 1
0x38AC WIN0Window 0
0x39DAC EMPTYData Buffer Empty
0x3APTC EOCEnd of Conversion
0x3BPTC WCOMPWindow Comparator
0x3C-0x7FReserved-

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 7:0 – CHANNEL[7:0] Channel Selection

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

ValueChannel number
0x000
0x011
0x022
0x033
0x044
0x055
0x066
0x077
0x08-0xFFReserved