Treat FTM output pin as GPIO?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Treat FTM output pin as GPIO?

887 次查看
aberger
Senior Contributor I

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. 

标签 (1)
标记 (2)
0 项奖励
回复
1 回复

765 次查看
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 项奖励
回复