Can't input pin be read that is also used as interrupt?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

An input port of a 20737 is defined as pull-up and interrupt (for a button).
Reading the input always returns the same value no matter whether the pin is connected to ground or not.
When not registering the interrupt the source, then the proper value is returned.

Any ideas how to solve this?

0 Likes
1 Solution
BoonT_56
Employee
Employee
500 likes received 250 likes received 100 likes received

You must first reconfigure the GPIO pin as an input, poll it, then reconfigure as interrupt. Let me know if the below thread helps.

GPIO Interrupt and sleep mode

View solution in original post

2 Replies
BoonT_56
Employee
Employee
500 likes received 250 likes received 100 likes received

You must first reconfigure the GPIO pin as an input, poll it, then reconfigure as interrupt. Let me know if the below thread helps.

GPIO Interrupt and sleep mode

Anonymous
Not applicable

Thanks !

That works

0 Likes