Registers
785
SPRUH22I – April 2012 – Revised November 2019
Copyright © 2012–2019, Texas Instruments Incorporated
C28 Enhanced Pulse Width Modulator (ePWM) Module
Table 7-87. Event-Trigger SOC Pre-Scale Register (ETSOCPS) Field Descriptions (continued)
Bit
Field
Value
Description
7-4
SOCACNT2
EPWMxSOCA Counter 2
When ETPS[SOCPSSEL] = 1, these bits indicate how many selected events have occurred:
0000
No events
0001
1 event
0010
2 events
0011
3 events
0100
4 events
. . .
. . .
1111
15 events
3-0
SOCAPRD2
EPWMxSOCA Period 2 Select
When ETPS[SOCPSSEL] = 1, these bits select how many selected event need to occur before an
SOCA pulse is generated:
0000
Disable counter
0001
Generate interrupt on SOCACNT2 = 1 (first event)
0010
Generate interrupt on SOCACNT2 = 2 (second event)
0011
Generate interrupt on SOCACNT2 = 3 (third event)
0100
Generate interrupt on SOCACNT2 = 4 (fourth event)
. . .
. . .
1111
Generate interrupt on SOCACNT2 = 15 (fifteenth event)
Figure 7-136. Event-Trigger Flag Register (ETFLG)
15
8
Reserved
R-0
7
4
3
2
1
0
Reserved
SOCB
SOCA
Reserved
INT
R-0
R-0
R-0
R-0
R-0
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset
Table 7-88. Event-Trigger Flag Register (ETFLG) Field Descriptions
Bit
Field
Value
Description
15-4
Reserved
Reserved
3
SOCB
Latched ePWM ADC Start-of-Conversion B (EPWMxSOCB) Status Flag
0
Indicates no EPWMxSOCB event occurred
1
Indicates that a start of conversion pulse was generated on EPWMxSOCB. The EPWMxSOCB
output will continue to be generated even if the flag bit is set.
2
SOCA
Latched ePWM ADC Start-of-Conversion A (EPWMxSOCA) Status Flag
Unlike the ETFLG[INT] flag, the EPWMxSOCA output will continue to pulse even if the flag bit is
set.
0
Indicates no event occurred
1
Indicates that a start of conversion pulse was generated on EPWMxSOCA. The EPWMxSOCA
output will continue to be generated even if the flag bit is set.
1
Reserved
Reserved
0
INT
Latched ePWM Interrupt (EPWMx_INT) Status Flag
0
Indicates no event occurred
1
Indicates that an ePWMx interrupt (EWPMx_INT) was generated. No further interrupts will be
generated until the flag bit is cleared. Up to one interrupt can be pending while the ETFLG[INT] bit
is still set. If an interrupt is pending, it will not be generated until after the ETFLG[INT] bit is cleared.
Refer to
.