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.

Table 33-9. Register Bit Attribute Legend
SymbolDescriptionSymbolDescriptionSymbolDescription
RReadable bitHCCleared by Hardware(Grey cell)Unimplemented
WWritable bitHSSet by HardwareXBit is unknown at Reset
KWrite to clearSSoftware settable bit
Name: CHANNELn
Offset: 0x20 + n*0x08 [n=0..7]
Reset: 0x00008000
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 100000 
Bit 76543210 
 EVGEN[7:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 

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

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.

Note: The path choice can be limited by the channel source. Only a channel with an index less than12, embeds synchronous/resynchronous capabilities. The rest of available channels support only asynchronous path selection.
Important:
  1. When synchronous or resynchronized path is enabled, event inversion feature in peripherals must not be enabled (EVCTRL.xxxINV = 0.
  2. To avoid spurious EVSYS detections, EVSYS must be write protected by configuring the WRCTRL register in the PAC before being used.
ValueNameDescription
0x0SYNCHRONOUSSynchronous path
0x1RESYNCHRONIZEDResynchronized path
0x2ASYNCHRONOUSAsynchronous 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.

Table 33-10. EVENT GENERATOR (EVGEN) MAPPING
Module NameName of GeneratorValueDescription
SUPCSUPC LVDET0 -
OSCCTRLXOSC FAIL1XOSC fail detection
OSC32KCTRLXOSC32K_FAIL2XOSC32K fail detection
FREQMDONE3-
WINMON4 -
RTCRTC-PERx5-12RTC period x=0..7
RTC-CMPx13-16RTC comparison x=0..3
RTC-TAMPER17RTC tamper detection
RTC-OVF18RTC overflow
RTC-PERD19RTC Daily Period
EICEXTINTx20-35EIC external interrupt x=0..15
PACPAC_ACCERR36PAC Access. error
DMADMAC_CHx37-52DMA channel x=0..15
TCC0OVF53TCC0 Overflow
TRG54TCC0 Trigger Event
CNT55TCC0 Counter
MCx56-63TCC0 Match/Compare x=0..7
TCC1OVF64TCC1 Overflow
TRG65TCC1 Trigger Event
CNT66TCC1 Counter
MCx67-74TCC1 Match/Compare x=0..7
TCC2OVF75TCC2 Overflow
TRG76TCC2 Trigger Event
CNT77TCC2 Counter
MCx78- 83TCC2 Match/Compare x=0..5
TCC3OVF84TCC3 Overflow
TRG85TCC3 Trigger Event
CNT86TCC3 Counter
MCx87-88TCC3 Match/Compare x=0..1
TCC4OVF89TCC4 Overflow
TRG90TCC4 Trigger Event
CNT91TCC4 Counter
MCx92-93TCC4 Match/Compare x=0..1
TCC5OVF94TCC5 Overflow
TRG95TCC5 Trigger Event
CNT96TCC5 Counter
MCx97-98TCC5 Match/Compare x=0..1
TCC6OVF99TCC6 Overflow
TRG100TCC6 Trigger Event
CNT101TCC6 Counter
MCx102-103TCC6 Match/Compare x=0..1
TCC7OVF104TCC7 Overflow
TRG105TCC7 Trigger Event
CNT106TCC7 Counter
MCx107-108TCC7 Match/Compare x=0..1
TCC8OVF109TCC8 Overflow
TRG110TCC8 Trigger Event
CNT111TCC8Counter
MCx112-113TCC8 Match/Compare x=0..1
TCC9OVF114TCC9 Overflow
TRG115TCC9 Trigger Event
CNT116TCC9 Counter
MCx117-122TCC9 Match/Compare x=0..5
ADCADCx RESRDY123-126ADCx Ready x=0..3
ADC CMPx127-130ADC Compare event x=0..3
ACAC COMPx131-132AC Comparator, x=0..1
AC WIN133AC0 Window
PTCEOC134PTC end of Conversion
WCOMP135PTC Window Compare
GMACTSU_CMP136GMAC Time stamp CMP
TRNGREADY137TRNG ready
Note:
  1. A = Asynchronous path, S = Synchronous path, R = Resynchronized path