Help![]()
Try adding:
ANSEL = 0 ' Analog select set to digital, pg 69 data sheet
ADCON0 = 0 ' A/D turned OFF, pg 68 of data sheet
Also, have you used a 10K resistor to pull down GPIO.1 so it reeds logic 0 until the switch is pressed and GPIO.1 is taken high
i'l try to add that and regarding the pull down yes i did placed a pulldown resistor
I'm not going to hammer on about how you must read the data sheets for these devices, I'll leave that to some of the others
Glad to of helped.
Bookmarks