Howdy,
I've encountered something interesting, which is sure to be educational for me.
My PIC18F45K22 is breadboarded with pin RE0 set as a digital input with an external 10k pullup, and a simple push button.
The pic is programed to blink an LED when I push the button.
When I energize the circuit, I can generally push the button once and the light will blink. Further attempts at pushing the button yield no response.
However, if I touch the metal part of the breadboard, or even the top of the pic chip surface, the light blinks every time I push the button.
I jumpered my meter to the IO pin to see how the voltage with the button depressed changed when I touch the board. The voltage was reduced from essentially zero, to -2 mV or so. When the button is not depressed, the pin voltage is ~4.7 V, as expected.
Any idea what is happening here?
Kind regards,
Eric
I've encountered something interesting, which is sure to be educational for me.
My PIC18F45K22 is breadboarded with pin RE0 set as a digital input with an external 10k pullup, and a simple push button.
The pic is programed to blink an LED when I push the button.
When I energize the circuit, I can generally push the button once and the light will blink. Further attempts at pushing the button yield no response.
However, if I touch the metal part of the breadboard, or even the top of the pic chip surface, the light blinks every time I push the button.
I jumpered my meter to the IO pin to see how the voltage with the button depressed changed when I touch the board. The voltage was reduced from essentially zero, to -2 mV or so. When the button is not depressed, the pin voltage is ~4.7 V, as expected.
Any idea what is happening here?
Kind regards,
Eric
Last edited: