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.

单步运行不能调出PWM波为什么,

InitSysCtrl();
InitGpio();
DINT;
IER=0x0000;
IFR=0X0000;
InitPieVectTable();
InitPieCtrl();
ERTM;
EPwmSetup();
//DELAY_US(1000);
for(;;);

占空比给的是0.5,当我直接运行的时候会出现PWM波形,但是当我单步运行的时候确出不来PWM波形,以为是时间原因,后面加入延时函数之后也没有用。