GPIO0.trip
GPTRIP1SEL
0
63
EPWMx Module
EPWM2 Module
EPWM3 Module
TZ1
TZ2
TZ3
TRIPIN1
and
TZ1
TRIPIN2
and
TZ2
TRIPIN3
and
TZ3
TRIPIN4
TRIPIN5
TRIPIN6
TRIPIN7
TRIPIN8
TRIPIN9
TRIPIN10
TRIPIN1
1
TRIPIN12
Trip-Zone (TZ)
Submodule
Digital Compare (DC) Submodule
EPWM1 Module
GPTRIP2SEL
0
63
GPTRIP3SEL
0
63
GPTRIP4SEL
0
63
GPTRIP5SEL
0
63
GPTRIP6SEL
0
63
GPTRIP7SEL
0
63
GPTRIP8SEL
0
63
GPTRIP9SEL
0
63
GPTRIP10SEL
0
63
GPTRIP1
1SEL
0
63
GPTRIP12SEL
0
63
Async/
Sync
Sync + Qual
Async/
Sync
Sync + Qual
GPIO63.trip
PU
GPIOPUR
GPIO0
PU
GPIOPUR
GPIO63
GPTRIP1
GPTRIP2
GPTRIP3
GPTRIP4
GPTRIP5
GPTRIP6
GPTRIP7
GPTRIP8
GPTRIP9
GPTRIP10
GPTRIP11
GPTRIP12
ECAP1
ECAP2
ECAP3
ECAP4
ECAP5
ECAP6
XINT1
ADC
XINT2
XINT3
C28
PIE
SYNCIN
ePWM
0 = PU disabled (reset value)
1 = PU enabled
ADCEXTTRIG
ePWM Submodules
700
SPRUH22I – April 2012 – Revised November 2019
Copyright © 2012–2019, Texas Instruments Incorporated
C28 Enhanced Pulse Width Modulator (ePWM) Module
Figure 7-48. GPIO MUX-to-Trip Input Connectivity
On this device, any of the 64 GPIO pins can be flexibly mapped to be the trip-zone input and/or trip inputs
to the trip-zone submodule and digital compare submodule. The GPIO Trip Input Select (GPTRIPxSEL)
register defines which GPIO pins gets assigned to be the trip-zone inputs / trip inputs.
The digital compare (DC) submodule compares signals external to the ePWM module (for instance,
COMPxOUT signals from the analog comparators) to directly generate PWM events/actions which then
feed to the event-trigger, trip-zone, and time-base submodules. Additionally, blanking window functionality
is supported to filter noise or unwanted pulses from the DC event signals.
NOTE:
Enhanced trip input connectivity is specifically applicable to ePWM type 2. If a pin will be
used as a C28 GPIO, the correct bits must be set in the GPIOCSEL register. This register is
located in the M3 GPIO register space and more details can be found in the General-
Purpose Input/Output (GPIO) chapter of this TRM. Once the user configures the respective
pin as a C28 GPIO then the GPTRIPxSEL register which belongs to the GPTRIPx logic
should be used to configure that specific pin as an external trip input. The user is responsible
for driving correct state on the selected pin before enabling clock and configuring the trip
input for the respective ePWM peripheral to avoid spurious latch of TRIP signal
7.2.9.1
Purpose of the Digital Compare Submodule
The key functions of the digital compare submodule are:
•
Analog Comparator (COMP) module outputs fed though the GPTRIP logic externally using the GPIO
peripheral, internal PIE, ECC error signals , TZ1, TZ2, and TZ3 inputs generate Digital Compare A
High/Low (DCAH, DCAL) and Digital Compare B High/Low (DCBH, DCBL) signals.
•
DCAH/L and DCBH/L signals trigger events which can then either be filtered or fed directly to the trip-