Offset(n)
Window(n)
Offset(n+1)
Window(n+1)
Period
Offset(n)
Window(n)
Offset(n+1)
Window(n+1)
Offset(n)
Window(n)
Offset(n+1)
Window(n+1)
TBCLK
CTR = PRD
or CTR = 0
BLANKWDW
BLANKWDW
BLANKWDW
ePWM Submodules
2054
SPNU563A – March 2018
Copyright © 2018, Texas Instruments Incorporated
Enhanced Pulse Width Modulator (ePWM) Module
Figure 35-50. Blanking Window Timing Diagram
35.2.10 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. Set TBCLKSYNC = 0
4. Initialize peripheral registers
5. Set TBCLKSYNC = 1
6. Clear any spurious ePWM flags (including interrupt flags)
7. Enable ePWM interrupts
8. Enable global interrupts