33.7.8 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.
Symbol | Description | Symbol | Description | Symbol | Description |
---|---|---|---|---|---|
R | Readable bit | HC | Cleared by Hardware | (Grey cell) | Unimplemented |
W | Writable bit | HS | Set by Hardware | X | Bit is unknown at Reset |
K | Write to clear | S | Software settable bit | — | — |
Name: | CHANNELn |
Offset: | 0x20 + n*0x08 [n=0..7] |
Reset: | 0x00008000 |
Property: | PAC Write-Protection |
Bit | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | |
Access | |||||||||
Reset |
Bit | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | |
Access | |||||||||
Reset |
Bit | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | |
ONDEMAND | RUNSTDBY | EDGSEL[1:0] | PATH[1:0] | ||||||
Access | R/W | R/W | R/W | R/W | R/W | R/W | |||
Reset | 1 | 0 | 0 | 0 | 0 | 0 |
Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
EVGEN[7:0] | |||||||||
Access | R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | |
Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Bit 15 – ONDEMAND Generic Clock On Demand
Value | Description |
---|---|
0 | Generic clock for a channel is always on, if the channel is configured and generic clock source is enabled. |
1 | Generic 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.
Value | Description |
---|---|
0 | The channel is disabled in Standby Sleep mode. |
1 | The channel is not stopped in Standby Sleep mode and depends on the CHANNEL.ONDEMAND bit. |
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.
Value | Name | Description |
---|---|---|
0x0 | NO_EVT_OUTPUT | No event output when using the resynchronized or synchronous path |
0x1 | RISING_EDGE | Event detection only on the rising edge of the signal from the event generator |
0x2 | FALLING_EDGE | Event detection only on the falling edge of the signal from the event generator |
0x3 | BOTH_EDGES | Event 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.
- When resynchronized path is enabled, event inversion feature in peripherals must not be enabled (EVCTRL.xxxINV = 0.
- To avoid spurious EVSYS detections, EVSYS must be write protected by configuring the WRCTRL register in the PAC before being used.
Value | Name | Description |
---|---|---|
0x0 | ASYNCHRONOUS | Asynchronous path |
0x1 | RESYNCHRONIZED | Resynchronized path |
Other | - | Reserved |
Bits 7:0 – EVGEN[7:0] Event Generator Selection
These bits are used to choose the event generator to connect to the selected channel.
Module Name | Name of Generator | Value | Description |
---|---|---|---|
SUPC | SUPC LVDET | 1 | - |
OSCCTRL | XOSC FAIL | 2 | XOSC fail detection |
OSC32KCTRL | XOSC32K_FAIL | 3 | XOSC32K fail detection |
FREQM | DONE | 4 | - |
WINMON | 5 | Window Monitor | |
RTC | RTC-PERx | 6-13 | RTC period x=0..7 |
RTC-CMPx | 14-17 | RTC comparison x=0..3 | |
RTC-TAMPER | 18 | RTC tamper detection | |
RTC-OVF | 19 | RTC overflow | |
RTC-PERD | 20 | RTC Daily Period | |
EIC | EXTINTx | 21-36 | EIC external interrupt x=0..15 |
PAC | PAC_ACCERR | 37 | PAC Access. error |
DMA | DMAC_CHx | 38-53 | DMA channel x=0..15 |
TCC0 | OVF | 54 | TCC0 Overflow |
TRG | 55 | TCC0 Trigger Event | |
CNT | 56 | TCC0 Counter | |
MCx | 57-64 | TCC0 Match/Compare x=0..7 | |
TCC1 | OVF | 65 | TCC1 Overflow |
TRG | 66 | TCC1 Trigger Event | |
CNT | 67 | TCC1 Counter | |
MCx | 68-75 | TCC1 Match/Compare x=0..7 | |
TCC2 | OVF | 76 | TCC2 Overflow |
TRG | 77 | TCC2 Trigger Event | |
CNT | 78 | TCC2 Counter | |
MCx | 79- 84 | TCC2 Match/Compare x=0..5 | |
TCC3 | OVF | 85 | TCC3 Overflow |
TRG | 86 | TCC3 Trigger Event | |
CNT | 87 | TCC3 Counter | |
MCx | 88-89 | TCC3 Match/Compare x=0..1 | |
TCC4 | OVF | 90 | TCC4 Overflow |
TRG | 91 | TCC4 Trigger Event | |
CNT | 92 | TCC4 Counter | |
MCx | 93-94 | TCC4 Match/Compare x=0..1 | |
TCC5 | OVF | 95 | TCC5 Overflow |
TRG | 96 | TCC5 Trigger Event | |
CNT | 97 | TCC5 Counter | |
MCx | 98-99 | TCC5 Match/Compare x=0..1 | |
TCC6 | OVF | 100 | TCC6 Overflow |
TRG | 101 | TCC6 Trigger Event | |
CNT | 102 | TCC6 Counter | |
MCx | 103-104 | TCC6 Match/Compare x=0..1 | |
TCC7 | OVF | 105 | TCC7 Overflow |
TRG | 106 | TCC7 Trigger Event | |
CNT | 107 | TCC7 Counter | |
MCx | 108-109 | TCC7 Match/Compare x=0..1 | |
TCC8 | OVF | 110 | TCC8 Overflow |
TRG | 111 | TCC8 Trigger Event | |
CNT | 112 | TCC8Counter | |
MCx | 113-114 | TCC8 Match/Compare x=0..1 | |
TCC9 | OVF | 115 | TCC9 Overflow |
TRG | 116 | TCC9 Trigger Event | |
CNT | 117 | TCC9 Counter | |
MCx | 118-123 | TCC9 Match/Compare x=0..5 | |
ADC | ADCx RESRDY | 124-127 | ADCx Ready x=0..3 |
ADC CMPx | 128-131 | ADC Compare event x=0..3 | |
AC | AC COMPx | 132-133 | AC Comparator, x=0..1 |
AC WIN | 134 | AC0 Window | |
PTC | EOC | 135 | PTC end of Conversion |
WCOMP | 136 | PTC Window Compare | |
GMAC | TSU_CMP | 137 | GMAC Time stamp CMP |
TRNG | READY | 138 | TRNG ready |