Tom, Trying using the insert code option. Make it much easier to read. The command is:
The the () with [].Code:(code) blah blah blah (/code)
Tom, Trying using the insert code option. Make it much easier to read. The command is:
The the () with [].Code:(code) blah blah blah (/code)
Hi Tom,
You can try goto instead of gosub and change 'pause n' into
for i = 1 to n
pause 1
next i
everywhere except inside of the interrupt subroutinue. Of course, if statements within gosub takes several mill-seconds, then leave it is.
I use the above method in my project and it works. You may try it and let me know the result.
Once again, PBP is very latency interrupt implementation because it must finish the current statement execution before jumping into the interrupt subroutinue. So make sure the jobs within each statement take short time as possible as you can.
Yuantu Huang
Ahhhhh! I can't belive it. I'm embarrassed to say it was a leftover line of code from when I was trying to get it working originally. In the displayTime routine, I had a call to LOW 0. This would have changed the pin to be an output and therefore no longer would be triggered by the interrupt button. Doh!
Thank you everyone for all the help. You rock!
-Tom
Bookmarks