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.
Hello,
I am usign EPWM for inverter application. A and B outputs of EPWM gives inverted outputs to each other. (by setting Epwm1Regs.DBCTL.bit.POLSEL = 0x2)
At some moment in my code I should give both low outputs for EPWM A and B then revert them back to original configuration. What is the best way for this in terms of the safety and speed?
I thought two ways:
1.Arranging those pins as GPIO and set them to low.
2. Changing EPWM registers and duty to gave them low.
Thank you for any helps
Hello,
I strongly recommend looking at the Trip Zone submodule for this. If you are wanting to read from an external sensor/input then you can set the hardware to trip the PWM outputs low (or any state, it's configurable) automatically. If you're doing it through software, you can force it via the TZFRC register.
Regards,
Kris