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.

F28377D CLA操作外设寄存器

Other Parts Discussed in Thread: CONTROLSUITE

使用F28377D的CPU1.CLA1操作PWM寄存器的时候,操作不成功,有什么可能的原因,CLA1中函数执行没有问题,相关变量也能更新:

Epwm1Regs.CMPA.bit.CMPA=150;

或者

Epwm1Regs.CMPA.bit.CMPA=wAcDuty;//wAcDuty是在. cla文件里定义的全局变量,在线仿真可以看到其值更新

上述两种方法,均不能修改CMPA的值,但是在CCS中在线仿真修改CMPA值是可以的?