![Texas Instruments TMS320x2823x Скачать руководство пользователя страница 113](http://html1.mh-extra.com/html/texas-instruments/tms320x2823x/tms320x2823x_reference-manual_1095205113.webp)
www.ti.com
Registers
4.8
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 PIEIFR)
7. Enable ePWM interrupts
8. Enable global interrupts
113
SPRUG04A – October 2008 – Revised July 2009
TMS320x2833x, 2823x Enhanced Pulse Width Modulator (ePWM) Module
© 2008–2009, Texas Instruments Incorporated