Treat FTM output pin as GPIO?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Treat FTM output pin as GPIO?

890件の閲覧回数
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 返信

768件の閲覧回数
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 件の賞賛
返信