AN228104 How to use trigger multiplexer in TRAVEO™ T2G Family
About this document
Scope and purpose
This application note describes trigger multiplexer for TRAVEO™ T2G family and explains how to route trigger signals from the source peripherals to the destinations.
Associated Part Family
Introduction
Every peripheral in the TRAVEO™ T2G device is interconnected using trigger signals. Trigger signals are means by which peripherals inform the occurrence of an event or transition to a different state. Trigger signals are used to initiate an action in other peripherals. For example, triggers can initiate data transfer over DMA (see section Triggering P-DMA transfer by TCPWM timer), conversion on SAR ADC (see sections Simultaneous ADC conversion on three SARs by single TCPWM timer and Triggering ADC conversion by TCPWM timer, or start a timer (see section Simultaneous starting of TCPWM timer by SW trigger. Trigger multiplexers are simple multiplexers that are designed to route these trigger signals from the source peripherals to the desired destinations.
In this application note, you will learn how to set up trigger routes from the source peripherals to the desired destinations.
To know more about the functionality and terminology used in this application note, see the "Trigger Multiplexer" chapter of the architecture technical reference manual (TRM).
Trigger multiplexer overview
The trigger inputs are output signals from the source peripheral. The trigger outputs are typically input signals to the destination peripheral. The trigger multiplexer multiplexes trigger input and trigger output.
Trigger multiplexer has two group types:
- Multiplexer-based group type (Group trigger)
- Connects a peripheral input trigger to multiple peripheral output triggers
- One-to-one-based group type (One-to-one trigger)
- Connects a peripheral input trigger to a specific output trigger
Each group type consists of multiple trigger groups (up to 16). Each group type is associated with the trigger inputs of a specific peripheral. Figure 1 shows the trigger multiplexer block diagram.
Figure 1. Trigger multiplexer block diagram
Trigger multiplexer has the following input and output signals:
-
TRIG_IN_MUX_x is the input trigger of group trigger. It has up to 256 input signals.
-
TRIG_IN_1TO1_x is the input trigger of one-to-one trigger.It has up to 256 input signals.
-
TRIG_OUT_MUX_x is the output trigger of group trigger. It has up to 256 output signals.
-
TRIG_OUT_1TO1_x is the output trigger of one-to-one trigger. It has up to 256 output signals.
Trigger multiplexer features SW trigger, inverted output trigger, and level or edge sensitive trigger.
SW trigger is initiated by SW and can trigger any signal in the trigger multiplexer. Inverted output specifies the polarity of output signals. Level or edge trigger specifies if the output trigger is treated as a level sensitive or edge sensitive trigger.
The suffix "x" represents the name of the peripheral block. Table 1 shows the output triggers and the input triggers of a group trigger that can be routed to each other, and the availability of routing in TRAVEO™ T2G device series. However, some combinations cannot be routed to some unit and channel numbers. For details on the units and channels of each peripheral, see the datasheets.
Table 1. Routing between output trigger and input trigger of group trigger by series
TRIG_OUT_MUX_x | TRIG_IN_MUX_x | CYT2B7 | CYT2B9 | CYT4BF | CYT4DN |
|---|---|---|---|---|---|
PDMA | PDMA | ✓ | ✓ | ✓ | ✓ |
MDMA | ✓ | ✓ | ✓ | ✓ | |
FAULT | ✓ | ✓ | ✓ | ✓ | |
CTI | ✓ | ✓ | ✓ | ✓ | |
EVTGEN | ✓ | ✓ | ✓ | ✓ | |
HSIOM | ✓ | ✓ | ✓ | ✓ | |
TCPWM | ✓ | ✓ | ✓ | ✓ | |
CAN0_TT | ✓ | ✓ | ✓ | ||
CAN1_TT | ✓ | ✓ | ✓ | ||
PASS_GEN | ✓ | ✓ | ✓ | ✓ | |
FLEXRAY_TT | ✓ | ||||
MDMA | MDMA | ✓ | ✓ | ||
TCPWM | ✓ | ✓ | |||
TCPWM | TCPWM | ✓ | ✓ | ✓ | ✓ |
CAN_TT | ✓ | ✓ | ✓ | ||
PDMA | ✓ | ✓ | ✓ | ✓ | |
MDMA | ✓ | ✓ | ✓ | ✓ | |
CTI | ✓ | ✓ | ✓ | ✓ | |
FAULT | ✓ | ✓ | ✓ | ✓ | |
PASS_GEN | ✓ | ✓ | ✓ | ✓ | |
HSIOM | ✓ | ✓ | ✓ | ✓ | |
SCB | ✓ | ✓ | ✓ | ✓ | |
SCB_I2C_SCL | ✓ | ✓ | ✓ | ✓ | |
CAN_DBG | ✓ | ✓ | ✓ | ✓ | |
CAN_FIFO | ✓ | ✓ | ✓ | ✓ | |
CXPI | ✓ | ✓ | |||
EVTGEN | ✓ | ✓ | ✓ | ✓ | |
SMIF | ✓ | ✓ | |||
I2S | ✓ | ✓ | |||
TDM | ✓ | ||||
SG | ✓ | ||||
PWM | ✓ | ||||
MIXER | ✓ | ||||
AUDIODAC | ✓ | ||||
FLEXRAY_TT | ✓ | ||||
FLEXRAY_IBUF | ✓ | ||||
FLEXRAY_OBUF | ✓ | ||||
PASS_GEN | PDMA | ✓ | ✓ | ✓ | ✓ |
CTI | ✓ | ✓ | |||
FAULT | ✓ | ✓ | |||
EVTGEN | ✓ | ✓ | ✓ | ✓ | |
PASS_GEN | ✓ | ✓ | |||
HSIOM | ✓ | ✓ | ✓ | ✓ | |
TCPWM | ✓ | ✓ | ✓ | ✓ | |
CAN_TT | CAN_TT | ✓ | ✓ | ✓ | ✓ |
FLEXRAY_TT | ✓ | ||||
FLEXRAY_TT | CAN_TT | ✓ | |||
FLEXRAY_TT | ✓ | ||||
HSIOM PERI_DEBUG_FREEZE PASS_DEBUG_FREEZE SRSSWDT_DEBUG FREEZE SRSS_MCWDT_DEBUG_FREEZE TCPWMDEBUG FREEZE | TR_GROUP[i]_OUTPUT | ✓ | ✓ | ✓ | ✓ |
I2S_DEBUG_FREEZE TDM_DEBUG_FREEZE SG_DEBUG_FREEZE PWM_DEBUG_FREEZE PWM_DEBUG_FREEZE MIXER_DEBUG_FREEZE AUDIODACDEBUG FREEZE | TR_GROUP[i]_OUTPUT | ✓ | |||
TR_GROUP[i]_INPUT | PDMA | ✓ | ✓ | ✓ | ✓ |
SCB | ✓ | ✓ | ✓ | ✓ | |
SCB_I2C_SCL | ✓ | ✓ | ✓ | ✓ | |
CAN_DBG | ✓ | ✓ | ✓ | ✓ | |
CAN_FIFO | ✓ | ✓ | ✓ | ✓ | |
CAN_TT | ✓ | ✓ | ✓ | ✓ | |
CTI | ✓ | ✓ | ✓ | ✓ | |
FAULT | ✓ | ✓ | ✓ | ✓ | |
TCPWM | ✓ |