OK - Once I am in the interrupt routine I need it to WAIT for a few seconds for the user to either click the BO again (in which case I'd do one thing), or click the B1, in which case I'd do something different.
My problem is I can't find a way to WAIT... Is it some sort of loop?
while RB0 <> pressed then do (do main routine stuff - read from port/convert)
* time out after 5 seconds and return
If RB1 is pressed then do (something)
if RB0 is pressed then do (something else)
wend
??
Bookmarks