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.

TMS320F28379D: Variable frequency for EPWM

Part Number: TMS320F28379D

Hi,

I am working on F28379d board for motor control application, I have configured EPWM2 in up-down count mode at 50 kHz freq(TBPRD= 1000). I am trying to vary frequency (changing tbprd value) during runtime. I am updating tbprd and cmpa values in task1 defined in my cla file. While running a debug session, when i change tbprd value it gets updated in the register but the waveform doesn't change when checked on oscilloscope. I initialised my tbprd value at 1000 which corresponds to 50khz. If i try changing tbprd values to 900,800,700 or 600 my tbprd register value gets updated but waveform remains at 50khz. But when i try setting tbprd to 500, frequency changes correctly to 100khz. Can anyone point out what might be causing this issue?

Thanks,

Mohit