Quote Originally Posted by runrite View Post
Hi There thanks
I have done just that on the input I have
100k to ground permanently on GP0
the switch is wired in this order +5V 10K switch then GP0
still no luck
It just does nt want to check the input condition I have a relay conected via a transistor to the output
This is quite a puzzling problem
Your answer is just a little bit cryptic...
Have you gotten the blinky LED thing to work?
You have a relay connected to the output?
Does it have a 'flyback diode' connected across the coil?
Is the same power supply driving the PIC that's driving the relay coil?