Can peripheral port in KE06z128 which has already configure be backed to GPIO port

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

Can peripheral port in KE06z128 which has already configure be backed to GPIO port

573件の閲覧回数
xuman
Contributor I

Hi, I have use the KE06z128 in my design. And I have configuer the PTA2,3 to UART0 in the Init() which I wrote. Now I need change the two pins to GPIO in the running time. Can I do this?

0 件の賞賛
返信
1 返信

524件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Hi xu man,

    Do you still want to use the UART0?

    If you don't want to use it, you can dis_initial the uart0, disable the uart0 clock gate in SIM_SCGC[UART0], then configure the GPIO function.

  Another way, you can try to modify the uart0 pin to PTB0, PTB1 in register SIM_PINSEL0[UART0PS], then configure the GPIO function.

  Please try it on your side, if you still have question, please let me know!


Have a great day,
Kerry

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

0 件の賞賛
返信