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.

TMS320F28335: 如何在一个控制周期内两次更新CMPA CMPB值

Part Number: TMS320F28335
Other Parts Discussed in Thread: TIDM-02013

如何在一个控制周期内两次更新CMPA CMPB值,第一次更新时刻在周期初始时刻,第二次更新在CMPA CMPB等于TBCTR之后完成更新

现在我已将加载模式改为立即加载模式,当EPWM发生中断时完成第一次更新,但是第二次更新不知道应该安排在哪里,如果安排在定时器0中断里,会受到定时器0中断的中断周期的限制,难道安排在主函数里吗?希望工程师可以给出正确的代码建议,感谢!!!