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.

TMS320F28035: tms320f28035- combining ePWMs

Part Number: TMS320F28035

Hello

Excuse me for this simple coding question: how to do logical OR operation on 2 ePWMs and output the result on a GPIO? We have enough unused GPIOs available.

I had to add this on a board  using a multifunction chip(74lvc1g99)...but would still prefer the coding approach to get the result.

Appreciate any help in the matter.

r

  • Hi Robin,

    If you're looking to implement a true logical OR, you likely will need to use an external logic device - at least for this device family. 

    If you want the resultant PWM output to trip cycle-by-cycle based on two input PWM inputs, that is likely possible.  You may be able to use something like the below.  You'd lose some GPIO pins in tying ePWM output GPIOs & tying them to TZn input GPIOs.  Note I have not tried this, but I think this is viable - however, there may be challenges that I'm not foreseeing.






    ===

    For newer device families, there are some additional features that may be able to be utilized to build an OR for more use-cases.  The INPUTXBAR & its ability to invert a signal, some OR gate capability before the DCTRIPSEL& the Digital Compare (DC) submodule, etc.

    Hopefully this helps & potentially gives you some ideas.


    Thank you,
    Brett

  • Bret

    thnx

    For now, 74LVC1G99 is in place.

    We have to get the OR version on too many  systems. So let us explore your line of thought with CLB

    -r