This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

C2000 Launchpad pushbutton read delay

Hi,

I'm having issues with detecting a change in the pushbutton S3 on the C2000 Launchpad with the F28027 chip. The GPIO for the button is GPIO12. I've set it to be an input. 

When the button is pressed, the PB_state variable changes instantly to reflect a 1 value. However, when the button is released, the PB_state variable does not change back to 0 instantly. In fact, it can take as long as 5 seconds to return to its disengaged value. I am using CPU Timer 0 as an interrupt feeding an interrupt subroutine, but that subroutine only has a switch statement and no loops so it should not be dwelling in that long enough to cause a problem.

Can anyone provide any insight into what might be causing the GPIO reading to delay transitioning from 1 to 0 and not from 0 to 1?