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 than 12, embeds resynchronous capabilities. The rest of available channels support only asynchronous path selection.
Important:
  1. When 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
0x0ASYNCHRONOUSAsynchronous path
0x1RESYNCHRONIZEDResynchronized 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 LVDET1 -
OSCCTRLXOSC FAIL2XOSC fail detection
OSC32KCTRLXOSC32K_FAIL3XOSC32K fail detection
FREQMDONE4-
WINMON5Window Monitor
RTCRTC-PERx6-13RTC period x=0..7
RTC-CMPx14-17RTC comparison x=0..3
RTC-TAMPER18RTC tamper detection
RTC-OVF19RTC overflow
RTC-PERD20RTC Daily Period
EICEXTINTx21-36EIC external interrupt x=0..15
PACPAC_ACCERR37PAC Access. error
DMADMAC_CHx38-53DMA channel x=0..15
TCC0OVF54TCC0 Overflow
TRG55TCC0 Trigger Event
CNT56TCC0 Counter
MCx57-64TCC0 Match/Compare x=0..7
TCC1OVF65TCC1 Overflow
TRG66TCC1 Trigger Event
CNT67TCC1 Counter
MCx68-75TCC1 Match/Compare x=0..7
TCC2OVF76TCC2 Overflow
TRG77TCC2 Trigger Event
CNT78TCC2 Counter
MCx79- 84TCC2 Match/Compare x=0..5
TCC3OVF85TCC3 Overflow
TRG86TCC3 Trigger Event
CNT87TCC3 Counter
MCx88-89TCC3 Match/Compare x=0..1
TCC4OVF90TCC4 Overflow
TRG91TCC4 Trigger Event
CNT92TCC4 Counter
MCx93-94TCC4 Match/Compare x=0..1
TCC5OVF95TCC5 Overflow
TRG96TCC5 Trigger Event
CNT97TCC5 Counter
MCx98-99TCC5 Match/Compare x=0..1
TCC6OVF100TCC6 Overflow
TRG101TCC6 Trigger Event
CNT102TCC6 Counter
MCx103-104TCC6 Match/Compare x=0..1
TCC7OVF105TCC7 Overflow
TRG106TCC7 Trigger Event
CNT107TCC7 Counter
MCx108-109TCC7 Match/Compare x=0..1
TCC8OVF110TCC8 Overflow
TRG111TCC8 Trigger Event
CNT112TCC8Counter
MCx113-114TCC8 Match/Compare x=0..1
TCC9OVF115TCC9 Overflow
TRG116TCC9 Trigger Event
CNT117TCC9 Counter
MCx118-123TCC9 Match/Compare x=0..5
ADCADCx RESRDY124-127ADCx Ready x=0..3
ADC CMPx128-131ADC Compare event x=0..3
ACAC COMPx132-133AC Comparator, x=0..1
AC WIN134AC0 Window
PTCEOC135PTC end of Conversion
WCOMP136PTC Window Compare
GMACTSU_CMP137GMAC Time stamp CMP
TRNGREADY138TRNG ready