Scenario A:
A one-shot trip event on TZ1 pulls both
EPWM1A, EPWM1B low and also forces EPWM2A and EPWM2B high.
- Configure the ePWM1 registers as
follows:
- TZSEL[OSHT1] = 1: enables
TZ1 as a one-shot event source for ePWM1
- TZCTL[TZA] = 2: EPWM1A is forced
low on a trip event.
- TZCTL[TZB] = 2: EPWM1B is forced
low on a trip event.
- Configure the ePWM2 registers as
follows:
- TZSEL[OSHT1] = 1: enables
TZ1 as a one-shot event source for ePWM2
- TZCTL[TZA] = 1: EPWM2A is forced
high on a trip event.
- TZCTL[TZB] = 1: EPWM2B is forced
high on a trip event.
Scenario B:
A cycle-by-cycle event on TZ5 pulls both
EPWM1A, EPWM1B low.
A one-shot event on
TZ1 or TZ6 puts EPWM2A into a high impedance
state.
- Configure the ePWM1 registers as
follows:
- TZSEL[CBC5] = 1: enables
TZ5 as a cycle-by-cycle event source for ePWM1
- TZCTL[TZA] = 2: EPWM1A is forced
low on a trip event.
- TZCTL[TZB] = 2: EPWM1B is forced
low on a trip event.
- Configure the ePWM2 registers as
follows:
- TZSEL[OSHT1] = 1: enables
TZ1 as a one-shot event source for ePWM2
- TZSEL[OSHT6] = 1: enables
TZ6 as a one-shot event source for ePWM2
- TZCTL[TZA] = 0: EPWM2A is put into
a high-impedance state on a trip event.
- TZCTL[TZB] = 3: EPWM2B ignores the
trip event.
Note: When configuring the GPIOs and INPUT
X-BAR/EPWM X-BAR options, be aware that a change in the X-BAR input selections can cause an
unwanted event. Therefore, set up the GPIO and X-BAR input configurations before enabling
the ePWM Trip-Zone. If a requirement is to change the GPIO/X-BAR configurations while the
ePWM Trip-Zone is enabled, the user can turn off the TRIPs by clearing the TZSEL register
and reconfiguring the TRIP selection (TZSEL) after the INPUT XBAR selection is
changed.