We need to use the PWM EP complementarily component.
In addition to put each pin independien way into a known state.
Serious frequency 40Khz
The micro MKE02Z64VQH4
Pines PTC0 - PTC1 and PTC2-PTC3.
Disable the pwm and access directly to the pins to change the status.
Thanks.
Carlos Pichardo
Hi CARLOS PICHARDO
After checking the requirements of your project we believe it is not possible to make use of the pins as GPIOs when the FTM2 module is active, this is because the peripheral modules have priority over the I/O, so when a peripheral is enabled, the associated I/O functions are disabled. If you want to control the pins as GPIOs you will have to disable the FTM2 module causing all of it channels to be disabled too.
Hope this information helps!
Best Regards
Jorge Alcala
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------