ePWM Registers
2095
SPNU563A – March 2018
Copyright © 2018, Texas Instruments Incorporated
Enhanced Pulse Width Modulator (ePWM) Module
35.4.6.3 Event-Trigger Prescale Register (ETPS)
Figure 35-87. Event-Trigger Prescale Register (ETPS) [offset = 36h]
15
14
13
12
11
10
9
8
SOCBCNT
SOCBPRD
SOCACNT
SOCAPRD
R-0
R/W-0
R-0
R/W-0
7
4
3
2
1
0
Reserved
INTCNT
INTPRD
R-0
R-0
R/W-0
LEGEND: R/W = Read/Write; R = Read only; -
n
= value after reset
Table 35-47. Event-Trigger Prescale Register (ETPS) Field Descriptions
Bits
Name
Value
Description
15-14
SOCBCNT
ePWM ADC Start-of-Conversion B Event (EPWMxSOCB) Counter Register.
These bits indicate how many selected ETSEL[SOCBSEL] events have occurred.
0
No events have occurred.
1h
1 event has occurred.
2h
2 events have occurred.
3h
3 events have occurred.
13-12
SOCBPRD
ePWM ADC Start-of-Conversion B Event (EPWMxSOCB) Period Select.
These bits determine how many selected ETSEL[SOCBSEL] events need to occur before an
EPWMxSOCB pulse is generated. To be generated, the pulse must be enabled (ETSEL[SOCBEN]
= 1). The SOCB pulse will be generated even if the status flag is set from a previous start of
conversion (ETFLG[SOCB] = 1). Once the SOCB pulse is generated, the ETPS[SOCBCNT] bits will
automatically be cleared.
0
Disable the SOCB event counter. No EPWMxSOCB pulse will be generated.
1h
Generate the EPWMxSOCB pulse on the first event: ETPS[SOCBCNT] = 0,1.
2h
Generate the EPWMxSOCB pulse on the second event: ETPS[SOCBCNT] = 1,0.
3h
Generate the EPWMxSOCB pulse on the third event: ETPS[SOCBCNT] = 1,1.
11-10
SOCACNT
ePWM ADC Start-of-Conversion A Event (EPWMxSOCA) Counter Register.
These bits indicate how many selected ETSEL[SOCASEL] events have occurred.
0
No events have occurred.
1h
1 event has occurred.
2h
2 events have occurred.
3h
3 events have occurred.
9-8
SOCAPRD
ePWM ADC Start-of-Conversion A Event (EPWMxSOCA) Period Select.
These bits determine how many selected ETSEL[SOCASEL] events need to occur before an
EPWMxSOCA pulse is generated. To be generated, the pulse must be enabled (ETSEL[SOCAEN]
= 1). The SOCA pulse will be generated even if the status flag is set from a previous start of
conversion (ETFLG[SOCA] = 1). Once the SOCA pulse is generated, the ETPS[SOCACNT] bits will
automatically be cleared.
0
Disable the SOCA event counter. No EPWMxSOCA pulse will be generated.
1h
Generate the EPWMxSOCA pulse on the first event: ETPS[SOCACNT] = 0,1.
2h
Generate the EPWMxSOCA pulse on the second event: ETPS[SOCACNT] = 1,0.
3h
Generate the EPWMxSOCA pulse on the third event: ETPS[SOCACNT] = 1,1.
7-4
Reserved
0
Reserved