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?
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!
-----------------------------------------------------------------------------------------------------------------------