25.3.4 Events

The TCD can generate the events described in the following table:
Table 25-8. Event Generators in TCD
Generator NameDescriptionEvent TypeGenerating Clock DomainLength of Event
PeripheralEvent
TCDnCMPBCLRThe counter matches CMPBCLRPulseCLK_TCDOne CLK_TCD_CNT period
CMPASETThe counter matches CMPASET
CMPBSETThe counter matches CMPBSET
PROGEVProgrammable 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 25-9. Event Users and Available Event Actions in TCD
User NameDescriptionInput DetectionAsync/Sync
PeripheralInput
TCDnInput A/Input BStop the output, jump to the opposite compare cycle and waitLevelBoth
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 cycleEdge
Stop the output on the edge, maintain the frequency
Stop the output at level, maintain the frequencyLevel

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 TCD Inputs section. Refer to the EVSYS - Event System section for more details regarding event types and Event System configuration.