ePWM Submodules
679
SPRUHE8E – October 2012 – Revised November 2019
Copyright © 2012–2019, Texas Instruments Incorporated
C28 Enhanced Pulse Width Modulator (ePWM) Module
Table 7-3. Submodule Configuration Parameters (continued)
Submodule
Configuration Parameter or Option
Trip-zone (TZ)
• Configure the ePWM module to react to one, all, or none of the trip-zone signals or digital
compare events.
• Specify the tripping action taken when a fault occurs:
–
Force EPWMxA and/or EPWMxB high
–
Force EPWMxA and/or EPWMxB low
–
Force EPWMxA and/or EPWMxB to a high-impedance state
–
Configure EPWMxA and/or EPWMxB to ignore any trip condition.
• Configure how often the ePWM will react to each trip-zone signal:
–
One-shot
–
Cycle-by-cycle
• Enable the trip-zone to initiate an interrupt.
• Bypass the trip-zone module entirely.
• Programmable option for Cycle-by-cycle trip clear
Event-trigger (ET)
• Enable the ePWM events that will trigger an interrupt.
• Enable ePWM events that will trigger an ADC start-of-conversion event.
• Specify the rate at which events cause triggers (every occurrence or every 2nd or up to 15th
occurrence)
• Poll, set, or clear event flags
Digital-compare (DC)
• Enables comparator (COMP) module outputs and trip zone signals which are configured using
the GPTRIP logic to create events and filtered events
• Specify event-filtering options to capture TBCTR counter or generate blanking window
Code examples are provided in the remainder of this document that show how to implement various
ePWM module configurations. These examples use the constant definitions in the device
EPwm_defines.h
file in the device-specific header file and peripheral examples software package.