Treat FTM output pin as GPIO?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Treat FTM output pin as GPIO?

466 Views
aberger
Contributor V

Is it possible to write to the output of an FTM pin on the K64? I have pin A12 set up as MuxAlt4 (i.e. as FTM0_CH1), and am ordinarily using Output Compare to set the pin. However, in certain instances, I would like to manually set the pin to high. Can I treat the pin as a GPIO pin to accomplish this?

I was hoping I could simply write to the GPIO PDOR register for that particular pin (which is PTC2), but doing so seems to have no effect on the pin output level. 

Labels (1)
Tags (2)
0 Kudos
1 Reply

344 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Please check the Initialization feature:

40.4.18 Initialization.png

FTMx_MODE[INIT].png

FTMx_OUTINIT.png

Best Regards,

Robin

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos