Because of the Thanksgiving holiday in the U.S., TI E2E™ design support forum responses may be delayed the week of November 23.

F29H859TU-Q1: Simultaneous Multi-ePWM Parameter Loading on F29x

Part Number: F29H859TU-Q1
Other Parts Discussed in Thread: SYSCONFIG

Hi Team,
We are looking for a way to achieve simultaneous multi-ePWM parameter loading on F29x, similar to how AM263x works:
  • AM263x Behavior: Multiple ePWMs can be linked together in SysConfig, allowing different parameters to be loaded into different ePWM modules simultaneously using just a single line of code in main().image.png
  • F29x Observation:
    • XLINK broadcasts the same parameter to multiple ePWMs at the same time.
    • Global Load loads different parameters into different ePWMs simultaneously, but it appears to require multiple function calls
    • image.png

    (e.g., as seen in the SDK Global Load example, which also mixes in XLINK, causing some confusion).

    image.png
Question:
How can we implement the AM263x-like behavior on F29x—ideally with a single-line trigger/update? Since our switching frequency is high (300 kHz), we have very strict timing requirements for parameter updates.
 
Regards,
Jenney
 
  • Hi,

    Please refer to XLINK section in F29 TRM.

    https://www.ti.com/lit/ug/spruj79c/spruj79c.pdf#page=3807 

    F29 XLINK supports two scheme's - both legacy and new(type-5) XLINK scheme and both can also be used together to complement each other if needed.

    Thanks

  • Hi Prarthan,

    Could you help check whether below code can update PWM1-CMPA and PWM2-CMPA with different value at the same time ?

        SysCtl_enableEPWMXLINK(SYSCTL_EPWM1_XLINK);
        SysCtl_enableEPWMXLINK(SYSCTL_EPWM2_XLINK);
        SysCtl_enableEPWMXLINK(SYSCTL_EPWM3_XLINK);
        Interrupt_enableGlobal();
    EPWM_setCounterCompareValue(myEPWM1_BASE, EPWM_COUNTER_COMPARE_A, 100);
    EPWM_setCounterCompareValue(myEPWM2_BASE, EPWM_COUNTER_COMPARE_A, 50);
    EPWM_setGlobalLoadOneShotLatch(EPWM1XLINK_BASE);
    Regards,
    Jenney
  • Hi,

    There are legacy and new type-5 F29 XLINK feature that is explained in https://www.ti.com/lit/ug/spruj79c/spruj79c.pdf#page=3807 

    If you want to use XLINK same as AM263 XLINK you can use the legacy XLINK feature of F29 Type PWM which are same.

    Legacy XLINK registers are as shown in F29 PWM register section below : 

    In legacy just like you had done in AM263 you can link the GLDCTL2 register across PWM instances.

    In new TYPE-5 F29 XLINK Scheme you can do below : 

    Linking PWMs 1, 2, 3 using Driverlib results in

    SysCtl_enableEPWMXLINK(SYSCTL_EPWM1_XLINK | SYSCTL_EPWM2_XLINK | SYSCTL_EPWM3_XLINK);

    This will link all three PWM's and write to any instance will write to all PWMs at once.

    Thanks