SPRADL7 July   2025 F28E120SC

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1 Introduction
  5. 2 Key Differences Between EPWM and MCPWM
  6. 3 Time-Base Submodule Differences
    1. 3.1 Register Differences
    2. 3.2 Driverlib Differences
  7. 4 Counter-Compare Submodule Differences
    1. 4.1 Register Differences
    2. 4.2 Driverlib Differences
  8. 5 Action-Qualifier Submodule Differences
    1. 5.1 Register Differences
    2. 5.2 Driverlib Differences
  9. 6 Dead-Band Submodule Differences
    1. 6.1 Register Differences
    2. 6.2 Driverlib Differences
  10. 7 Trip-Zone Submodule Differences
    1. 7.1 Register Differences
    2. 7.2 Driverlib Differences
  11. 8 Event-Trigger Submodule Differences
    1. 8.1 Register Differences
    2. 8.2 Driverlib Differences
  12. 9 Global Load Differences
    1. 9.1 Register Differences
    2. 9.2 Driverlib Differences
  13. 10Summary
  14. 11References

Driverlib Differences

The driverlib differences between EPWM and MCPWM are listed in Table 3-2.

Table 3-2 Differences between EPWM and MCPWM

EPWM Function

MCPWM Function

Explanation

EPWM_clearTimeBaseCounterOverflowEvent

-

CTRMAX flag removed on MCPWM

EPWM_disableOneShotSync

-

One-Shot Sync Out feature removed on MCPWM

EPWM_enableOneShotSync

-

One-Shot Sync Out feature removed on MCPWM

EPWM_getTimeBaseCounterOverflowStatus

-

CTRMAX flag removed on MCPWM

EPWM_selectPeriodLoadEvent

-

TBPRD only loaded on CTR= 0 event

EPWM_setOneShotSyncOutTrigger

-

One-Shot Sync Out feature removed on MCPWM

EPWM_startOneShotSync

-

One-Shot Sync Out feature removed on MCPWM

EPWM_clearSyncEvent

MCPWM_clearSyncStatus

Function name change

EPWM_setClockPrescaler

MCPWM_setClockPrescaler

Number of arguments changed due to combination of clock-dividers

EPWM_disableSyncOutPulseSource

MCPWM_setSyncOutPulseMode

OR gate of enabled/disabled SYNCO signals replaced with mux

EPWM_enableSyncOutPulseSource

MCPWM_setSyncOutPulseMode

OR gate of enabled/disabled SYNCO signals replaced with mux

EPWM_getTimeBasePeriod

MCPWM_getTimeBasePeriodActive

Function name change to indicate TBPRD has a corresponding shadow register TBPRDS that is written to unless freeze loading is selected

EPWM_setTimeBasePeriod

MCPWM_setTimeBasePeriodActive

Function name change to indicate TBPRD has a corresponding shadow register TBPRDS that is read from unless freeze loading is selected

-

MCPWM_getTimeBasePeriodShadow

Addition of memory mapped TBPRD register

-

MCPWM_setSyncPulseSource

Addition of driverlib function to set SYNCPER source

-

MCPWM_setTimeBasePeriodShadow

Addition of memory mapped TBPRD register