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.

TMS320F280039C: Changing ePWM settings on the fly

Part Number: TMS320F280039C

Hello,

I am working on a DC motor power converter that we are porting from an NXP part to the TI part above using C2000 and the CCS tool. In the application the low side voltage has to be raised to charge the charge pump capacitors. To do this we need the ePWM to work in stand alone mode while it charges the capacitor and then switch to complement mode once it is complete and ready to run in normal operating mode.

My question is what do I need to do to switch between these 2 ePWM modes as part of normal running behavior. I assume I need to stop the PWM and then change some of the ePWM settings driving the h-bridge but are there other steps necessary, special order of setting parameters,  existing examples, etc.?

Any help would be much appreciated!

Thanks,

Chris Tschappatt

  • Hi Chris,

    In short you want to change your ePWM behavior. You can utilize the shadow registers where you don't need to turn-off the ePWM. Typically to switch to all your new settings instantaneously using the global one-shot load functionality to ensure everything has transitioned properly. 

    Please refer Technical reference manual (20.4.7 onwards): https://www.ti.com/lit/TMS320F280039C_TRM

    NOTE: One-shot load mode should NOT be used when high-resolution mode is enabled.

    Best,

    Uttam Reddy Pailla