![Texas Instruments TMS320x2823x Reference Manual Download Page 61](http://html1.mh-extra.com/html/texas-instruments/tms320x2823x/tms320x2823x_reference-manual_1095205061.webp)
www.ti.com
ePWM Submodules
Table 19. Possible Actions On a Trip Event
TZCTL[TZA]
EPWMxA
Comment
and/or
and/or
TZCTL[TZB]
EPWMxB
0,0
High-Impedance
Tripped
0,1
Force to High State
Tripped
1,0
Force to Low State
Tripped
1,1
No Change
Do Nothing.
No change is made to the output.
Example 8. Trip-Zone Configurations
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 will be forced low on a trip event.
–
TZCTL[TZB] = 2: EPWM1B will be 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 will be forced high on a trip event.
–
TZCTL[TZB] = 1: EPWM2B will be 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 one-shot event source for ePWM1
–
TZCTL[TZA] = 2: EPWM1A will be forced low on a trip event.
–
TZCTL[TZB] = 2: EPWM1B will be 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 will be put into a high-impedance state on a trip event.
–
TZCTL[TZB] = 3: EPWM2B will ignore the trip event.
2.7.4
Generating Trip Event Interrupts
and
illustrate the trip-zone submodule control and interrupt logic, respectively.
61
SPRUG04A – October 2008 – Revised July 2009
TMS320x2833x, 2823x Enhanced Pulse Width Modulator (ePWM) Module
© 2008–2009, Texas Instruments Incorporated