Registers
781
SPRUH22I – April 2012 – Revised November 2019
Copyright © 2012–2019, Texas Instruments Incorporated
C28 Enhanced Pulse Width Modulator (ePWM) Module
Table 7-84. Event-Trigger Selection Register (ETSEL) Field Descriptions (continued)
Bit
Field
Value
Description
6
INTSELCMP
EPWMxINT Compare Register Selection Options:
0
Enable event time-base counter equal to CMPA when the timer is incrementing / Enable event
time-base counter equal to CMPA when the timer is decrementing / Enable event: time-base
counter equal to CMPB when the timer is incrementing / Enable event: time-base counter equal to
CMPB when the timer is decrementing to INTSEL selection mux.
1
Enable event time-base counter equal to CMPC when the timer is incrementing / Enable event
time-base counter equal to CMPC when the timer is decrementing / Enable event: time-base
counter equal to CMPD when the timer is incrementing / Enable event: time-base counter equal to
CMPD when the timer is decrementing to INTSEL selection mux.
5
SOCBSELCMP
EPWMxSOCB Compare Register Selection Options:
0
Enable event time-base counter equal to CMPA when the timer is incrementing / Enable event
time-base counter equal to CMPA when the timer is decrementing / Enable event: time-base
counter equal to CMPB when the timer is incrementing / Enable event: time-base counter equal to
CMPB when the timer is decrementing to SOCBSEL selection mux.
1
Enable event time-base counter equal to CMPC when the timer is incrementing / Enable event
time-base counter equal to CMPC when the timer is decrementing / Enable event: time-base
counter equal to CMPD when the timer is incrementing / Enable event: time-base counter equal to
CMPD when the timer is decrementing to SOCBSEL selection mux.
4
SOCASELCMP
EPWMxSOCA Compare Register Selection Options:
0
Enable event time-base counter equal to CMPA when the timer is incrementing / Enable event
time-base counter equal to CMPA when the timer is decrementing / Enable event: time-base
counter equal to CMPB when the timer is incrementing / Enable event: time-base counter equal to
CMPB when the timer is decrementing to SOCASEL selection mux.
1
Enable event time-base counter equal to CMPC when the timer is incrementing / Enable event
time-base counter equal to CMPC when the timer is decrementing / Enable event: time-base
counter equal to CMPD when the timer is incrementing / Enable event: time-base counter equal to
CMPD when the timer is decrementing to SOCASEL selection mux.
3
INTEN
Enable ePWM Interrupt (EPWMx_INT) Generation
0
Disable EPWMx_INT generation
1
Enable EPWMx_INT generation
2-0
INTSEL
ePWM Interrupt (EPWMx_INT) Selection Options
000
Reserved
001
Enable event time-base counter equal to zero. (TBCTR = 0x00)
010
Enable event time-base counter equal to period (TBCTR = TBPRD)
011
Enable event time-base counter equal to zero or period (TBCTR = 0x00 or TBCTR = TBPRD). This
mode is useful in up-down count mode.
100
Enable event time-base counter equal to CMPA when the timer is incrementing or CMPC when the
timer is incrementing
101
Enable event time-base counter equal to CMPA when the timer is decrementing or CMPC when the
timer is decrementing
110
Enable event: time-base counter equal to CMPB when the timer is incrementing or CMPD when the
timer is incrementing
111
Enable event: time-base counter equal to CMPB when the timer is decrementing or CMPD when
the timer is decrementing (*) Event selected is determined by INTSELCMP bit.
Figure 7-133. Event-Trigger Prescale Register (ETPS)
15
14
13
12
11
10
9
8
SOCBCNT
SOCBPRD
SOCACNT
SOCAPRD
R-0
R/W-0
R-0
R/W-0
7
6
5
4
3
2
1
0
Reserved
SOCPSSEL
INTPSSEL
INTCNT
INTPRD
R-0
R/W-0
R/W-0
R-0
R/W-0
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset