Unable to read GPIO pin value using ReadPortbit and GetPinstate function despite setting Pindirection

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

Unable to read GPIO pin value using ReadPortbit and GetPinstate function despite setting Pindirection

ソリューションへジャンプ
634件の閲覧回数
arvindprasad
Contributor II

I am unable to read the GPIO pin value. I have set the direction correctly, I have even tried setting another GPIO pin HIGH and connecting it to the input GPIO pin, but the readPortbit and GetPinstate function still returns a  zero.#GPIO lpc43sxx #GPIO read

ラベル(1)
タグ(1)
1 解決策
458件の閲覧回数
arvindprasad
Contributor II

Hi

I am using an LPC 43s67 evaluation board. I fixed the issue

The input buffer is disabled by default. So i enabled it using the scu config.

Thank you

元の投稿で解決策を見る

2 返答(返信)
458件の閲覧回数
soledad
NXP Employee
NXP Employee

Hi,

Could you please let me know which device, board, IDE are you using?

Have a great day,
Sol

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

0 件の賞賛
459件の閲覧回数
arvindprasad
Contributor II

Hi

I am using an LPC 43s67 evaluation board. I fixed the issue

The input buffer is disabled by default. So i enabled it using the scu config.

Thank you