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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
625 Views
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

Labels (1)
Tags (1)
1 Solution
449 Views
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

View solution in original post

2 Replies
449 Views
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 Kudos
450 Views
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