![Texas Instruments TMS320x2823x Скачать руководство пользователя страница 110](http://html1.mh-extra.com/html/texas-instruments/tms320x2823x/tms320x2823x_reference-manual_1095205110.webp)
Registers
www.ti.com
Table 45. Event-Trigger Prescale Register (ETPS) Field Descriptions
Bits
Name
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:
00
No events have occurred.
01
1 event has occurred.
10
2 events have occurred.
11
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.
00
Disable the SOCB event counter. No EPWMxSOCB pulse will be generated
01
Generate the EPWMxSOCB pulse on the first event: ETPS[SOCBCNT] = 0,1
10
Generate the EPWMxSOCB pulse on the second event: ETPS[SOCBCNT] = 1,0
11
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:
00
No events have occurred.
01
1 event has occurred.
10
2 events have occurred.
11
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.
00
Disable the SOCA event counter. No EPWMxSOCA pulse will be generated
01
Generate the EPWMxSOCA pulse on the first event: ETPS[SOCACNT] = 0,1
10
Generate the EPWMxSOCA pulse on the second event: ETPS[SOCACNT] = 1,0
11
Generate the EPWMxSOCA pulse on the third event: ETPS[SOCACNT] = 1,1
7-4
Reserved
Reserved
3-2
INTCNT
ePWM Interrupt Event (EPWMx_INT) Counter Register
These bits indicate how many selected ETSEL[INTSEL] events have occurred. These bits are
automatically cleared when an interrupt pulse is generated. If interrupts are disabled,
ETSEL[INT] = 0 or the interrupt flag is set, ETFLG[INT] = 1, the counter will stop counting
events when it reaches the period value ETPS[INTCNT] = ETPS[INTPRD].
00
No events have occurred.
01
1 event has occurred.
10
2 events have occurred.
11
3 events have occurred.
110 TMS320x2833x, 2823x Enhanced Pulse Width Modulator (ePWM) Module
SPRUG04A – October 2008 – Revised July 2009
© 2008–2009, Texas Instruments Incorporated