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

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

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

572 Views
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 Kudos
Reply
1 Reply

523 Views
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 Kudos
Reply