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.

Can I change the pwm frequency in TMS320F28032 on runtime?

Hi,

Can I change the PWM frequency and PWM width during running time by changing the period and CMPA value?

For example, after running 5ms, PWM setting is following:

 EPwm1Regs.TBPRD = 100;
 EPwm1Regs.CMPA.half.CMPA = 90;

then after running another 5ms, PWM setting is changed to the following:

EPwm1Regs.TBPRD = 1000;

EPwm1Regs.CMPA.half.CMPA = 900;

I am wondering if I need to change any setting in the firmware? From my waveform, it seems it doesn't follow it. The PWM signals are lost at 10ms, the resetting time.

Thanks,

Emily