AM2634: Multicore CMPSS -> EPWM trip configuration in syscfg

Part Number: AM2634

Tool/software:

Hi!

I am currently setting up CMPSS and PWMXBAR in one core, and I have my EPWM periph set up in a different core.

From the example - https://dev.ti.com/tirex/content/mcu_plus_sdk_am263x_10_01_00_31/docs/api_guide_am263x/EXAMPLES_DRIVERS_CMPSS_ASYNCHRONOUS_TRIP.html

It shows PWMXBAR 3 being used. I dont know why necessarily PWMXBAR 3 is being used, would be good to understand.

But my main question is what in my EPWM periph on the second core do i need to configure to ensure PWMXBAR 3 (which will route CMPSS H/L trigger) will route to the EPWM?

Note, I want any PWMXBAR trigger to trip the EPWM and I do not want the EPWM to recover (i.e. i think i want one-shot).

What in EPWM trip zone and digital compare should be set to achieve this? And where in the EPWM configurations does it specify that PWMXBAR 3 will trigger this vs PWMXBAR 4,5, etc?

Thanks!

  • But my main question is what in my EPWM periph on the second core do i need to configure to ensure PWMXBAR 3 (which will route CMPSS H/L trigger) will route to the EPWM?

    It is not mandetory to use XBAR3, you can use any other XBAR instance,a s long as it is routed to PWM.

  • But my main question is what in my EPWM periph on the second core do i need to configure to ensure PWMXBAR 3 (which will route CMPSS H/L trigger) will route to the EPWM?

    Note, I want any PWMXBAR trigger to trip the EPWM and I do not want the EPWM to recover (i.e. i think i want one-shot).

    As for multi-core architecture, since PWM to XBAR is an HW connection, it can work with multiple cores also i.e you can set up PWM in one core and CMPSS, XBAR in the second core,

    You can follow the same configuration sequence as provided in the example

  • Hi Nilabh, this did not answer the question I was looking for:

    what in my EPWM periph on the second core do i need to configure to ensure PWMXBAR 3 (which will route CMPSS H/L trigger) will route to the EPWM?

    Basically what in the EPWM configuration routes the PWMXBAR instance N to each EPWM?

    And how do I configure the EPWM to trip and latch when the PWMXBAR triggers? What one shot / digital compare settings need to be set?

  • Nilabh, 

    A solution:

    - PWM XBAR output instances are routed to trip inputs (i.e. pwmxbar 3 -> epwm trip input 4)

    - in the pwm config, the DC section

    • route DCAEVT1 DCA High to trip input 4
    • Condition For DC Output 1 A 

    - in the pwm config, the trip zone section

    • configure tza event and tzb event to what response you want when a trip occurs
    • disable all DCxEVTn Events
    • configure one shot source to use one shot DCAEVT1

    Thanks!