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.
同意楼上的看法,您可以尝试以下代码
//Disable the PWM EALLOW; EpwmxRegs.TZFRC.bit.OST = 1; EpwmxRegs.TZCTL.bit.TZA = 0x02; // fOR FORCE low EpwmxRegs.TZCTL.bit.TZB = 0x02; //fOR fORCE loW EDIS; //Enable the PWM EALLOW; EpwmxRegs.TZCTL.bit.OST = 0x01; // fOR FORCE low EpwmxRegs.TZCTL.bit.OST = 0x01; //fOR fORCE loW EDIS;