14.3.2.3 Event Generators

Each event channel has several possible event generators, but only one can be selected at a time. The event generator for a channel is selected by writing to the respective Channel n Generator Selection (EVSYS.CHANNELn) register. By default, the channels are not connected to any event generator. For details on event generation, refer to the documentation of the corresponding peripheral.

A generated event is either synchronous or asynchronous to the device peripheral clock (CLK_PER). Asynchronous events can be generated outside the normal edges of the peripheral clock, making the system respond faster than the selected clock frequency would suggest. Asynchronous events can also be generated while the device is in a Sleep mode when the peripheral clock is not running.

Any generated event is classified as either a pulse event or a level event. In both cases, the event can be either synchronous or asynchronous, with properties according to the table below.

Table 14-1. Properties of Generated Events
Event TypeSync/AsyncDescription
PulseSyncAn event generated from CLK_PER that lasts one clock cycle
AsyncAn event generated from a clock other than CLK_PER lasting one clock cycle
LevelSyncAn event generated from CLK_PER that lasts multiple clock cycles
AsyncAn event generated without a clock (for example, a pin or a comparator), or an event generated from a clock, other than CLK_PER that lasts multiple clock cycles

The properties of both the generated event and the intended event user must be considered to ensure reliable and predictable operation.

The table below shows the available event generators for this device family.

Table 14-2. Event Generators
GeneratorEventGenerating Clock DomainLength of EventConstraints for Synchronous User
UPDISYNC characterCLK_PDIWaveform: SYNC char on PDI RX input synchronized to CLK_PDISynchronizing clock in user must be fast enough to ensure that the event is seen by the user
RTCOverflowCLK_RTCPulse: 1 * CLK_RTCNone
Compare MatchCLK_RTCPulse: 1 * CLK_RTC
PITRTC Prescaled clockCLK_RTCLevel
CCL-LUT LUT outputAsynchronousDepends on CCL configurationThe clock source used for CCL must be slower or equal to CLK_PER or input signals to CCL are stable for at least Tclk_per
ACComparator resultAsynchronousLevel: Typically ≥1 usThe frequency of input signals to AC must be ≤fclk_per to ensure that the event is seen by the synchronous user
ADCResult readyCLK_ADCPulse: 1 * CLK_PERNone
PORTPin inputAsynchronousLevel: Externally controlledThe input signal must be stable for longer than fclk_per
USARTUSART Baud clockTXCLKLevelNone
SPISPI Host clockSCKLevelNone
TCAOverflowCLK_PERPulse: 1 * CLK_PERNone
Underflow in split modeCLK_PERPulse: 1 * CLK_PER
Compare match ch 0CLK_PERPulse: 1 * CLK_PER
Compare match ch 1CLK_PERPulse: 1 * CLK_PER
Compare match ch 2CLK_PERPulse: 1 * CLK_PER
TCBCAPT interrupt flag setCLK_PERPulse: 1 * CLK_PERNone