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.

C2000 epwm

Other Parts Discussed in Thread: CONTROLSUITE

hi,

   I'm working with TMS320F28025 piccolo launch pad. I need to know how to synchronize to all the 4 epwm signals. I have tried with the instructions  SysCtrlRegs.PCLKCR0.bit.TBCLKSYNC = 1; and EPwm1Regs.TBCTL.bit.SWFSYNC = 1; so please let know what instruction i should use. Please give me a detail explanation.

Thanks in Advance.

Regards,

Sukhashini.B

  • Hi,

    The TBCLKSYNC bit in the peripheral clock enable registers allows all users to globally synchronize all
    enabled ePWM modules to the time-base clock (TBCLK). When set, all enabled ePWM module clocks are
    started with the first rising edge of TBCLK aligned. For perfectly synchronized TBCLKs, the prescalers for
    each ePWM module must be set identically. Here are the steps:


    Regards,

    Gautam

  • Sukhashini.B,

    I would also recommend looking at the TBCTL.bit.PHSEN and TBCTL.SYNCOSEL bits and ensure that you've gotten them configured correctly.

    Taking a look at the PWM_1ch_Cnf.c file in the digital power library may help you.  It can be found in controlSUITE in the following location:
    controlSUITE\libs\app_libs\digital_power\f2802x_v3.4\CNF\


    Thank you,
    Brett