![background image](http://html1.mh-extra.com/html/texas-instruments/tms320x2823x/tms320x2823x_reference-manual_1095205109.webp)
www.ti.com
Registers
Table 44. Event-Trigger Selection Register (ETSEL) Field Descriptions
Bits
Name
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
Reserved
001
Enable event time-base counter equal to zero. (TBCTR = 0x0000)
010
Enable event time-base counter equal to period (TBCTR = TBPRD)
011
Reserved
100
Enable event time-base counter equal to CMPA when the timer is incrementing.
101
Enable event time-base counter equal to CMPA when the timer is decrementing.
110
Enable event: time-base counter equal to CMPB when the timer is incrementing.
111
Enable event: time-base counter equal to CMPB when the timer is decrementing.
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
Reserved
001
Enable event time-base counter equal to zero. (TBCTR = 0x0000)
010
Enable event time-base counter equal to period (TBCTR = TBPRD)
011
Reserved
100
Enable event time-base counter equal to CMPA when the timer is incrementing.
101
Enable event time-base counter equal to CMPA when the timer is decrementing.
110
Enable event: time-base counter equal to CMPB when the timer is incrementing.
111
Enable event: time-base counter equal to CMPB when the timer is decrementing.
7-4
Reserved
Reserved
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 = 0x0000)
010
Enable event time-base counter equal to period (TBCTR = TBPRD)
011
Reserved
100
Enable event time-base counter equal to CMPA when the timer is incrementing.
101
Enable event time-base counter equal to CMPA when the timer is decrementing.
110
Enable event: time-base counter equal to CMPB when the timer is incrementing.
111
Enable event: time-base counter equal to CMPB when the timer is decrementing.
Figure 87. 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
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
109
SPRUG04A – October 2008 – Revised July 2009
TMS320x2833x, 2823x Enhanced Pulse Width Modulator (ePWM) Module
© 2008–2009, Texas Instruments Incorporated