Registers
780
SPRUH22I – April 2012 – Revised November 2019
Copyright © 2012–2019, Texas Instruments Incorporated
C28 Enhanced Pulse Width Modulator (ePWM) Module
7.4.9 Event-Trigger Submodule Registers
through
and
through
describe the registers for the event-
trigger submodule.
Figure 7-132. Event-Trigger Selection Register (ETSEL)
15
14
12
11
10
8
SOCBEN
SOCBSEL
SOCAEN
SOCASEL
R/W-0
R/W-0
R/W-0
R/W-0
7
6
5
4
3
2
0
Reserved
INTSELCMP
SOCBSELCMP
SOCASELCMP
INTEN
INTSEL
R-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset
Table 7-84. Event-Trigger Selection Register (ETSEL) Field Descriptions
Bit
Field
Value
Description
15
SOCBEN
Enable the ADC Start of Conversion B (EPWMxSOCB) Pulse
0
Disable EPWMxSOCB.
1
Enable EPWMxSOCB pulse.
14-12
SOCBSEL
EPWMxSOCB Selection Options
These bits determine when a EPWMxSOCB pulse will be generated.
000
Enable DCBEVT1.soc event
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 SOCBSELCMP bit.
11
SOCAEN
Enable the ADC Start of Conversion A (EPWMxSOCA) Pulse
0
Disable EPWMxSOCA.
1
Enable EPWMxSOCA pulse.
10-8
SOCASEL
EPWMxSOCA Selection Options
These bits determine when a EPWMxSOCA pulse will be generated.
000
Enable DCAEVT1.soc event
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 SOCASELCMP bit.
7
Reserved
0
Reserved