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

跳至解决方案
1,302 次查看
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 解答
1,126 次查看
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 回复数
1,126 次查看
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 项奖励
回复
1,127 次查看
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