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.

AM2634: Regarding EPWM Output Pin Remapping for Customer Hardware Adaptation

Part Number: AM2634

Tool/software:

Hi experts,

Our customer has raised the following requirement regarding PWM PIN output. They would like to adapt their legacy code project to a new hardware configuration with minimal software changes.

Specifically, they want to remap EPWM1B from its original output on the D2 pin to the E4 pin, and EPWM4B from the E4 pin to the D2 pin. Is this feasible? Is there any internal logic routing block that can achieve this functionality? Essentially, this is a request to map EPWM outputs to different pins.

If this is not possible, are there any alternative solutions to achieve a similar result?

  • they want to remap EPWM1B from its original output on the D2 pin to the E4 pin, and EPWM4B from the E4 pin to the D2 pin. Is this feasible?

    No. Only EPWM4 can output to E4.

    are there any alternative solutions to achieve a similar result?

    I think this is an unavoidable software change. If you're using the ePWM drivers from TI SDK it should be possible to use the base address of EPWM4 instead of EPWM1 in most, if not, all calls from the application.

    One ePWM is much like another, except when considering any daisy-chained synchronisation between ePWMs.

  • Hello Lawrence,

    This expert is currently out of office due to holiday. Please expect a delay in response until their return next week.

    Best Regards,

    Allison

  • Hello Lawrence,

    The EPWM peripheral outputs are routed to device pins through the Pin Multiplexing module. Each peripheral signal has a set of fixed candidate pins it can be mapped to, but the mapping is not completely arbitrary. Because of this, there is no internal cross-routing block to directly swap EPWM1B with EPWM4B across arbitrary pins. Also, I don't see XBAROUT in the mentioned pins.

    You may consider swapping the EPWM modules in the firmware (i.e., configure EPWM4 to generate the waveform you previously used EPWM1 for, and vice versa).

    Best Regards,

    Masoud