33.7.8 Channel n Control

Important: For SAM L11 Non-Secure accesses, read and write accesses (RW*) are allowed only if the security attribution for the corresponding channel (CHANNELx) is set as Non-Secured in the NONSECCHAN register.

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.

Name: CHANNEL
Offset: 0x20 + n*0x08 [n=0..7]
Reset: 0x00008000
Property: PAC Write-Protection, Mix-Secure

Bit 3130292827262524 
          
Access  
Reset  
Bit 2322212019181716 
          
Access  
Reset  
Bit 15141312111098 
 ONDEMANDRUNSTDBY  EDGSEL[1:0]PATH[1:0] 
Access RW/RW*/RWRW/RW*/RWRW/RW*/RWRW/RW*/RWRW/RW*/RWRW/RW*/RW 
Reset 100000 
Bit 76543210 
   EVGEN[5:0] 
Access RW/RW*/RWRW/RW*/RWRW/RW*/RWRW/RW*/RWRW/RW*/RWRW/RW*/RW 
Reset 000000 

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, see the table in USERm.
Important: Only EVSYS channel 0 to 3 can be configured as synchronous or resynchronized.
ValueNameDescription
0x0SYNCHRONOUSSynchronous path
0x1RESYNCHRONIZEDResynchronized path
0x2ASYNCHRONOUSAsynchronous path
Other-Reserved

Bits 5:0 – EVGEN[5:0] Event Generator Selection

These bits are used to choose the event generator to connect to the selected channel.

Table 33-2. Event Generators
ValueEvent GeneratorDescription
0x00NONENo event generator selected
0x01CLKFAILXOSC clock failure detection (OSCCTRL)
0x02CLKFAILXOSC32K clock failure detection (OSC32KCTRL)
0x03BOD33DETSUPC BOD33 detection
0x04-0x0BPER0-7RTC period
0x0CALARM0RTC alarm
0x0C-0x0DCMP0-1RTC comparison
0x0ETAMPERRTC tamper detection
0x0FOVFRTC overflow
0x10PERDRTC periodic interval daily
0x11-0x18EXTINT0-7EIC external interrupt
0x19-0x1CCH0-3DMAC channel
0x1DOVFTC0 overflow
0x1E-0x1FMCX0-1TC0 match/compare
0x20OVFTC1 overflow
0x21-0x22MCX0-1TC1 match/compare
0x23OVFTC2 overflow
0x24-0x25MCX0-1TC2 match/compare
0x26RESRDYADC resolution ready
0x27WINMONADC window monitor
0x28-0x29COMP0-1AC comparator
0x2AWIN0AC window
0x2BEMPTYDAC empty
0x2CEOCPTC end of conversion
0x2DWCOMPPTC window comparator
0x2EDATARDYTRNG Data Ready
0x2F-0x30LUT0-1CCL LUT output
0x31ERRPAC access error