This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F280049: TIDM-02002案例中PWM的更新方式(希望对这个案例熟悉的人来回答)

Part Number: TMS320F280049
Other Parts Discussed in Thread: C2000WARE

C:\ti\c2000\C2000Ware_DigitalPower_SDK_3_02_00_00\solutions\tidm_02002

TI的这个案例中专门利用一个中断(ISR1)执行PWM相关参数(PRD、COMPA、COMPB....)寄存器的更新,环路计算是在另外一个中断(ISR2)中执行。

整套操作比较麻烦,而且会消耗不少的MCU时间。

为什么不在ISR2中断中完成环路计算后,直接使用使用PWM 的 Global Load功能进行PWM寄存器的更新?

这样中断也少了,不用嵌套;还节省了MCU运行时间。