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.

TMS320F28384D: Change PWM switching frequency when it is running

Part Number: TMS320F28384D

Hello, 

We are working an LLC controller which needs to change the switching frequency when the converter runs. we using this the function of EPWM_setTimeBasePeriod to change the switching frequency and it does not work.

Could show me how to on line changing switching frequency? 

Best regards

Luyu

  • Hello Luyu,

    First, when you say it does not work, what do you mean?

    Second, adjusting the frequency is generally going to be a two step process- first, adjust the time-base period. Second, adjust the appropriate CMPx values that your Action Qualifier sub-module is using to control behavior, if there are any.

    Regards,

    Jason Osborn

  • Hi Joson Osborn 

    Thanks for your answer. I have solved this issue. The root cause is that I am using ePWM6. This Sync-in of ePWM6 is EPWM1 and EPWM1 has a fixed switching frequency.   The issue is solved by disabling the Sync-in of ePWM6.

    Best regards,

    Luyu