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 3-phase sample code

Part Number: TMS320F280049
Other Parts Discussed in Thread: C2000WARE

I'm looking for the sample code for three ePWM synchronization with 120 degree phase shift.  It is likely the application described on page 1691 on below document.

www.ti.com/.../sprui33a.pdf

I could not find any sampled code in C2000ware. It is OK that simply three ePWM run at 120 degree. TBPHS register is needed to use for our application.

Could you please inform me what is the best sample code for this application?

Regards,

Uchikoshi

  • Uchikoshi-San,

             Have you looked at the Digitalpower SDK? It may have some helpful examples.

    I didn't see a good example in C2000Ware but you should be able to find helpful functions in epwm.h. 

    For example:

    • EPWM_setPhaseShift
    • EPWM_setRisingEdgeDeadBandDelayInput
    • EPWM_setFallingEdgeDeadBandDelayInput

    Regards,
    Cody