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: The configuration of EPWM in 4.03SDK and 5.00SDK

Part Number: TMS320F280039C
Other Parts Discussed in Thread: SYSCONFIG, C2000WARE

Using CCS (12.4.0) SYSCONFIG (1.17.0) to configure the 280039C EPWM peripheral, the same sysconfig file can normally generate dead time when using the 4.03 SDK, and can not generate dead time when using the 5.00 SDK, and it is found that the 5.00 SDK has an extra part of code when initializing the configuration, resulting in the dead time configuration being invalid.

SYSCONFIG does not configure deadband shadow mode, and the corresponding register is not set directly in the 4.03 SDK. But in the 5.00 SDK,
The shadow register is configured first, then the dead time is configured, and finally the shadow register configuration is turned off. The simulation found that when the shadow register was closed in the last step, the dead time register value was cleared to zero, and the question was why did you turn on shadow mode first and then turn it off?

Thanks and look for your reply!

  • Hi Kailun,

    This is a configuration issue we have looked into and have fixed for our next c2000ware release.

    The shadow register is configured first, then the dead time is configured, and finally the shadow register configuration is turned off

    The shadow register configuration must be configured first, then the enabling / disabling of shadow register should be configured, then a write the the DBRED/DBFED.

    The correct configuration should be this if you are disabling shadow mode for RED/FED.

    EPWM_setRisingEdgeDelayCountShadowLoadMode();

    EPWM_disableRisingEdgeDelayCountShadowLoadMode(); 

    EPWM_setRisingEdgeDelayCount();

    The correct configuration should be this if you are enabling shadow mode for RED/FED.

    EPWM_setRisingEdgeDelayCountShadowLoadMode();

    EPWM_setRisingEdgeDelayCount();

    In order to enable shadow mode you will use this sysconfig option:

    Best,

    Ryan Ma