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问题

Expert 1250 points


想在中断里面交替调用下面两句

EPwm2Regs.AQCTLA.bit.CAD = AQ_SET; 
EPwm2Regs.AQCTLA.bit.CAU = AQ_CLEAR;

EPwm2Regs.AQCTLA.bit.CAD = AQ_CLEAR; 
EPwm2Regs.AQCTLA.bit.CAU =  AQ_SET;

就是改变波形的发生方式,这种做法会不会有什么问题,还有就是设置好,是不是下个周期才生效,还是马上生效