PORTA question - frdm-kl26z

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

PORTA question - frdm-kl26z

跳至解决方案
1,083 次查看
jayanthvasisht
Contributor II

Hi Everyone,

 

I want to use PTA1 gpio as an input pin and want the pin output to be 0. But by default it is high. It was used for LPSCI configuration and I have disabled it and used it as an input pin.

I have made sure, it used as a gpiopin and then used it as an input pin in the code. Could someone please advice why is pin high by default.

The schematic says ,the pin is used for UART1_TX which I have disabled it.

Here goes my piece of code.

PORT_HAL_SetMuxMode(PORTA,1u,kPortMuxAsGpio); and have used gpio river to set it as input pin.

 

Thanks and Regards

Jayanth BR

标签 (1)
0 项奖励
回复
1 解答
1,011 次查看
jayanthvasisht
Contributor II

Hi Everyone,

I could figure out the reason. It is connected to the opensda mcu via usb chip and is pulled high. Will be closing the question.

Regards

Jayanth BR

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,012 次查看
jayanthvasisht
Contributor II

Hi Everyone,

I could figure out the reason. It is connected to the opensda mcu via usb chip and is pulled high. Will be closing the question.

Regards

Jayanth BR

0 项奖励
回复