22.3.4 Events

The TCD can generate the events described in the following table:
Table 22-8. Event Generators in TCD
Generator Name Description Event Type Generating Clock Domain Length of Event
Peripheral Event
TCDn CMPBCLR The counter matches CMPBCLR Pulse CLK_TCD One CLK_TCD_CNT period
CMPASET The counter matches CMPASET
CMPBSET The counter matches CMPBSET
PROGEV Programmable event output(1) One CLK_TCD_SYNC period
Note:
  1. The user can select the trigger and all the compare matches (including CMPACLR). Also, it is possible to delay the output event from 0 to 255 TCD delay cycles.

The three events based on the counter match directly generate event strobes that last for one clock cycle on the TCD counter clock. The programmable output event generates an event strobe that lasts for one clock cycle on the TCD synchronizer clock.

The TCD can receive the events described in the following table:
Table 22-9. Event Users and Available Event Actions in TCD
User Name Description Input Detection Async/Sync
Peripheral Input
TCDn Input A/ Input B Stop the output, jump to the opposite compare cycle and wait. Level Both
Stop the output, execute the opposite compare cycle and wait.
Stop the output, execute the opposite compare cycle while the Fault is active.
Stop all outputs, maintain the frequency.
Stop all outputs, execute dead time while the Fault is active.
Stop all outputs, jump to the next compare cycle and wait.
Stop all outputs, wait for software action.
Stop the output on the edge, jump to the next compare cycle. Edge
Stop the output on the edge, maintain the frequency.
Stop the output at level, maintain the frequency. Level

Input A and Input B are TCD event users that detect and act upon the input events. Additional information about input events and how to configure them can be found in the 22.3.3.4 TCD Inputs section. Refer to the Event System (EVSYS) section for more details regarding event types and Event System configuration.