我在中断改变开关频率,也就是EPwm1Regs.TBPRD是变化,然后配置为 EPwm1Regs.CMPCTL.bit.LOADAMODE = CC_CTR_ZERO_PRD,在中断中改变占空比,会出现一个异常占空比,100%高电平的占空比,为什么呢?
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.
我在中断改变开关频率,也就是EPwm1Regs.TBPRD是变化,然后配置为 EPwm1Regs.CMPCTL.bit.LOADAMODE = CC_CTR_ZERO_PRD,在中断中改变占空比,会出现一个异常占空比,100%高电平的占空比,为什么呢?
可以看一下这个帖子中的问题,虽然起因不同,但有可能是类似的原因导致的:e2e.ti.com/.../tms320f280049c-variable-frequency-phase-shift-control-of-pwm
问题产生的原因相似吗?是否是因为影子寄存器加载错误导致的?