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.
我想将EPWM模块的CMPA CMPB赋值由影子模式改为立即加载模式,将代码由:
EPwm1Regs.CMPCTL.all=0x0000;//cmpb影子装载,cmpa影子装载,均是过0装载
改为:
EPwm1Regs.CMPCTL.bit.SHDWAMODE = CC_IMMEDIATE;
EPwm1Regs.CMPCTL.bit.SHDWBMODE = CC_IMMEDIATE;
但是上机运行之后发现各波形出现很明显的毛刺,说明装载的时机还是有问题,我应该如何修改代码才能进行等效的修改(算法需要,必须得改为立即加载模式)