Hi
I'm using a PIC 12F629 with an active-high input on pin 4. I have a 10K pulldown resistor to ground connected to the pin, with a switch that takes the pin up to +5V when closed. In the software, I am using the port change interrupt to wake the PIC.
It all basically works fine, but I have found that if just I touch the input pin side of the switch with an ungrounded piece of wire then the interrupt triggers - suggesting that the pin is taken momentarily into logic high. I also found that when driving relays (via other pins and a darlington array), I get the occasional false trigger when a relay switches off.
Any idea what is going on here? Is 10K a bad choice of resistor - e.g. maybe too high so the pin is effectively floating? Are PIC inputs generally suseptible to noise?
Thanks!
I'm using a PIC 12F629 with an active-high input on pin 4. I have a 10K pulldown resistor to ground connected to the pin, with a switch that takes the pin up to +5V when closed. In the software, I am using the port change interrupt to wake the PIC.
It all basically works fine, but I have found that if just I touch the input pin side of the switch with an ungrounded piece of wire then the interrupt triggers - suggesting that the pin is taken momentarily into logic high. I also found that when driving relays (via other pins and a darlington array), I get the occasional false trigger when a relay switches off.
Any idea what is going on here? Is 10K a bad choice of resistor - e.g. maybe too high so the pin is effectively floating? Are PIC inputs generally suseptible to noise?
Thanks!