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.

CCS/TMS320F280049: Synchronize epwm1 to epwm3

Part Number: TMS320F280049


Tool/software: Code Composer Studio

EPWM_disablePhaseShiftLoad(base1);

   EPWM_setSyncOutPulseMode(base1,EPWM_SYNC_OUT_PULSE_ON_COUNTER_ZERO);

   EPWM_enablePhaseShiftLoad(EPWM2_BASE);

   EPWM_setSyncOutPulseMode(EPWM2_BASE,EPWM_SYNC_OUT_PULSE_ON_EPWMxSYNCIN);

   EPWM_enablePhaseShiftLoad(base3);

   EPWM_setSyncOutPulseMode(base3,EPWM_SYNC_OUT_PULSE_ON_EPWMxSYNCIN);

   EPWM_setPhaseShift(base3,2);

   EPWM_setCountModeAfterSync(base3, EPWM_COUNT_MODE_UP_AFTER_SYNC);

   SysCtl_setSyncInputConfig(SYSCTL_SYNC_IN_EPWM4 ,SYSCTL_SYNC_IN_SRC_EPWM1SYNCOUT);

These codes use for configure synchronize chain for ePWM1-ePWM3. But there are not any codes for connect EPWM1SYNCOUT to EPWM2SYNCIN. These signal are connectted by default? 

By default EPWM1 syncout is passed to EPWM2?

  • Hi,

    Xiaoyu Lv said:

    These codes use for configure synchronize chain for ePWM1-ePWM3. But there are not any codes for connect EPWM1SYNCOUT to EPWM2SYNCIN. These signal are connectted by default? 

    By default EPWM1 syncout is passed to EPWM2?


    Yes - these are connected by default. No separate configuration needed. Please refer to "Figure 18-7. Time-Base Counter Synchronization Scheme"
    Only in places where there is a Mux - explicit configuration is needed. Other places signals are connected by default.