EPWM IP remains mostly the same across F28 and F29 devices.
This is the summary of changes in the device related to EPWM :
In case of F28 devices, application could use the function EPWM_setupEPWMLinks to link the required set of registers across multiple EPWM instances. In F29 devices, this is implemented in a slightly different and easy to use manner. There is now a dedicated XLINK region in the memory map to support writes to any of the EPWM registers to reflect in other EPWM instances. Here are the steps to follow to use the XLINK feature in an F29 device :
EPWM_setCounterCompareValue(EPWM1XLINK_BASE, EPWM_COUNTER_COMPARE_A, CMPAVAL);
Any writes to the EPWMnXLINK_BASE memory region will write to all other EPWMs. If you only want to update an independent EPWM's register value then do not use the XLINK base memory mapped regions; use the individual base address instead. Eg: EPWM_setCounterCompareValue(EPWM1_BASE, EPWM_COUNTER_COMPARE_A, CMPAVAL);
F28 Function | F29 Function | Comments |
---|---|---|
EPWM_setupEPWMLinks | SysCtl_enableEPWMXLINK | Refer to the section XLINK Feature update |