想用TZ来封锁PWM,但是发现虽然TZFLG[OST]置1了,还是有PWM输出。
配置如下:
EALLOW; EPwm1Regs.TZSEL.bit.OSHT1 = 1; EPwm1Regs.TZCTL.bit.TZA = 2; EPwm1Regs.TZCTL.bit.TZB = 3; EDIS;
封锁PWM:
EALLOW; EPwm1Regs.TZFRC.bit.OST = 1; EDIS;
请问问题可能出在哪呢?
谢谢!
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.