PORTA question - frdm-kl26z

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

PORTA question - frdm-kl26z

ソリューションへジャンプ
1,146件の閲覧回数
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,074件の閲覧回数
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,075件の閲覧回数
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 件の賞賛
返信