Tool/software: Code Composer Studio
Hello,
I am using EXTSYNCIN1 to synchronize my EPWM. The operating principle is listed below:
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.
Tool/software: Code Composer Studio
Hello,
I am using EXTSYNCIN1 to synchronize my EPWM. The operating principle is listed below:
Hi Qingxuan Ma,
The synchronization is fixed at active low. What you can do is use the GPIO inversion registers to make this work. Take a look at the GPAINV (pg 939) register in the TRM here:
www.ti.com/.../spruhm8g.pdf
Just a side note, there's nothing wrong with the way you are doing this now, but you can simplify it by eliminating GPIO4 and only using GPIO22. Just set GPIO22 to an output and toggle it directly. The Input X-Bar will always read the input buffer of the pin regardless of what mode it is in.
Regards,
Kris