EasyManuals Logo
Home>Texas Instruments>Accessories>28xxx

Texas Instruments 28xxx User Manual

Texas Instruments 28xxx
119 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #115 background imageLoading...
Page #115 background image
www.ti.com
4.8 Proper Interrupt Initialization Procedure
Proper Interrupt Initialization Procedure
When the ePWM peripheral clock is enabled it may be possible that interrupt flags may be set due to
spurious events due to the ePWM registers not being properly initialized. The proper procedure for
initializing the ePWM peripheral is as follows:
1. Disable Global Interrupts (CPU INTM flag)
2. Disable ePWM Interrupts
3. Initialize Peripheral Registers
4. Clear Any Spurious ePWM Flags (including PIEIFR)
5. Enable ePWM Interrupts
6. Enable Global Interrupts
Figure 4-27. Event-Trigger Force Register (ETFRC)
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 4-27. Event-Trigger Force Register (ETFRC) Field Descriptions
Bits Name Value Description
15-4 Reserved Reserved
3 SOCB SOCB Force Bit. The SOCB pulse will only be generated if the event is enabled in the
ETSEL register. The ETFLG[SOCB] flag bit will be set regardless.
0 Has no effect. Always reads back a 0.
1 Generates a pulse on EPWMxSOCB and sets the SOCBFLG bit. This bit is used for test
purposes.
2 SOCA SOCA Force Bit. The SOCA pulse will only be generated if the event is enabled in the
ETSEL register. The ETFLG[SOCA] flag bit will be set regardless.
0 Writing 0 to this bit will be ignored. Always reads back a 0.
1 Generates a pulse on EPWMxSOCA and set the SOCAFLG bit. This bit is used for test
purposes.
1 Reserved 0 Reserved
0 INT INT Force Bit. The interrupt will only be generated if the event is enabled in the ETSEL
register. The INT flag bit will be set regardless.
0 Writing 0 to this bit will be ignored. Always reads back a 0.
1 Generates an interrupt on EPWMxINT and set the INT flag bit. This bit is used for test
purposes.
SPRU791D November 2004 Revised October 2007 Registers 115
Submit Documentation Feedback

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments 28xxx and is the answer not in the manual?

Texas Instruments 28xxx Specifications

General IconGeneral
BrandTexas Instruments
Model28xxx
CategoryAccessories
LanguageEnglish

Related product manuals