SPRUJ79 November 2024 F29H850TU , F29H859TU-Q1
A channel is triggered by software, a trigger external to the SENT peripheral, or by another channel. See External Triggers for more details on the trigger sources for the SENT channels. The channel's done signal can be used to self-trigger, which allows continuous sampling of data. The use of another channel's done signal simplifies sequentially sampling sensors. When the SENT bus is idle and the trigger is received, the start of the pulse trigger is generated by the selected source from the TRIGSEL bitfield in the respective BC_TRIGSEL or Sn_TRIGSEL register (where n is 1 through 4). The trigger source from a channel is only valid when the channel's MTP_EN bit is set.
Note that because of the way the trigger connection is structured, all channels can be triggered by a single trigger, in which case the channels are serviced in a round-robin fashion. Valid trigger requests go through a round-robin to determine which channel trigger request is serviced, following this order of priority:
After choosing the channel to be serviced, the valid trigger source for each channel can be checked using the TRIG_REQ bits in the TPGENSTAT register. If there is a trigger received before a pulse-sensor-response sequence completes, an overflow error occurs on the channel.
Once the arbiter chooses the channel to be serviced, the channel's configuration data is loaded and the trigger pulse is generated if the SENT peripheral is in idle or disabled. There is no wait time for the first trigger pulse serviced because there is no flag for the last received frame. After the first trigger pulse, the counter starts counting until reaching a configured wait time value in the WAITTIME register. This is a global register which controls the idle time between the last rising edge of the RX frame to the start of the MTPG pulse. This register can be a value from 0 to 511 and is in terms of SENT ticks.
The trigger changes the direction of the pin to be an output until the pulse sequence completes. The SENT receiver is gated when the pulse is generated so the pulse is not treated as a SENT frame.
| Index | Signal |
|---|---|
| 0 | Disable (no hardware triggers) |
| 1 | Reserved |
| 2 | Reserved |
| 3 | Reserved |
| 4 | Reserved |
| 5 | Reserved |
| 6 | CPU1_TINT0 |
| 7 | CPU1_TINT1 |
| 8 | CPU1_TINT2 |
| 9 | CPU2_TINT0 |
| 10 | CPU2_TINT1 |
| 11 | CPU2_TINT2 |
| 12 | CPU3_TINT0 |
| 13 | CPU3_TINT1 |
| 14 | CPU3_TINT2 |
| 15-23 | Reserved |
| 24 | INPUTXBAR5 |
| 25 | INPUTXBAR11 |
| 26 | INPUTXBAR12 |
| 27 | INPUTXBAR13 |
| 28 | INPUTXBAR14 |
| 29 | INPUTXBAR15 |
| 30 | INPUTXBAR16 |
| 31 | EPWM1_ADCSOCA |
| 32 | EPWM1_ADCSOCB |
| 33 | EPWM2_ADCSOCA |
| 34 | EPWM2_ADCSOCB |
| 35 | EPWM3_ADCSOCA |
| 36 | EPWM3_ADCSOCB |
| 37 | EPWM4_ADCSOCA |
| 38 | EPWM4_ADCSOCB |
| 39 | EPWM5_ADCSOCA |
| 40 | EPWM5_ADCSOCB |
| 41 | EPWM6_ADCSOCA |
| 42 | EPWM6_ADCSOCB |
| 43 | EPWM7_ADCSOCA |
| 44 | EPWM7_ADCSOCB |
| 45 | EPWM8_ADCSOCA |
| 46 | EPWM8_ADCSOCB |
| 47 | EPWM9_ADCSOCA |
| 48 | EPWM9_ADCSOCB |
| 49 | EPWM10_ADCSOCA |
| 50 | EPWM10_ADCSOCB |
| 51 | EPWM11_ADCSOCA |
| 52 | EPWM11_ADCSOCB |
| 53 | EPWM12_ADCSOCA |
| 54 | EPWM12_ADCSOCB |
| 55 | EPWM13_ADCSOCA |
| 56 | EPWM13_ADCSOCB |
| 57 | EPWM14_ADCSOCA |
| 58 | EPWM14_ADCSOCB |
| 59 | EPWM15_ADCSOCA |
| 60 | EPWM15_ADCSOCB |
| 61 | EPWM16_ADCSOCA |
| 62 | EPWM16_ADCSOCB |
| 63 | EPWM17_ADCSOCA |
| 64 | EPWM17_ADCSOCB |
| 65 | EPWM18_ADCSOCA |
| 66 | EPWM18_ADCSOCB |
| 67-94 | Reserved |
| 95 | ECAP1_SOC |
| 96 | ECAP2_SOC |
| 97 | ECAP3_SOC |
| 98 | ECAP4_SOC |
| 99 | ECAP5_SOC |
| 100 | ECAP6_SOC |
| 101-127 | Reserved |