Hello,
I want to use only PWM2B and use PWM2A as an GPIO.
But if the pin 50 of PWM2A is set as GPIO and PWM2 is customized to use only PWM2B, the PWM2A channel still outputs the same PWM signal as PWM2B. Is there anything I missed?

Thanks!
Crane
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 want to use only PWM2B and use PWM2A as an GPIO.
But if the pin 50 of PWM2A is set as GPIO and PWM2 is customized to use only PWM2B, the PWM2A channel still outputs the same PWM signal as PWM2B. Is there anything I missed?

Thanks!
Crane
Hi Crane,
You should be able to use these pins independently (one for an EPWM signal and the other for a regular GPIO) depending on your GPIO configurations. When you are debugging, can you check the registers (with continuous refresh on) of GPAMUX1 and GPAGMUX1 to see the values for GPIO2 and GPIO3? Also, can you check the registers for EPWM2A and EPWM2B to verify they look as expect? You are not configuring EPWM2A, is that correct?
Best Regards,
Allison
Hi Allison,
Thank you for the reply. I realize that it works for PWM1, but not for PWM2. I thought it is relevant to the external circuit on my test board, but the external circuit for PWM1 and PWM2 are the same. I am still investigating. But at least I am sure the pin configuration is correct.
I am fixing the issue with the debugger now and then I will be able to check the registers value.
Regards,
Crane
Thanks for the response, Crane. Yes, feel free to update with any other findings when you are able to.
Best Regards,
Allison