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.

TMS320F280049: ePWM module.

Part Number: TMS320F280049

Dears,

Could F280049 or relative 3rd generation C2000 has the sample code to change ePWM's period, phase shift and duty cycle at the same time in every cycle?

Br,

Hugh  

  • Hi Hugh,

    The most straightforward way to do this would be to generate an interrupt on PWM TBCTR=0, and write to the settings you mentioned in the ISR.

    However, if you have other interrupts in your system, it is possible that this ISR could get delayed.

    To resolve this, you may need to use the global load feature. This feature prevents the loading of any shadow registers into the active registers until a software trigger is perfomed.

    Let me know if you have any further questions.

    Thank you,

    Luke