Probably i don't understand the whole thing as it's suppose but here's what i suggest.
remove the diode and blah blah. Use only your keyboard.
You just want to monitor the ON switch right???
This switch is attach between RB.3 and RB.4 right???
NOW what about...
Code:
' define and blah blah
'
'
HIGH MAXPIN
LOW PORTB.3
OPTION_REG.7=0 'enable internal Pull-UP
While PORTB.4 : WEND ' wait untill ON button is pressed
LOW MAXPIN
This should work
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks