It sounds like the Stack is overflowing.
If the Timeout is being detected inside a subroutine. Make sure that it doesn't GOTO somewhere outside the subroutine.
Preferably, it should goto a label just before the RETURN for that routine. Or, just return directly from that spot.
Or, you can GOTO another routine to handle the timeout, ONLY IF that routine has a RETURN at the end
Bruce explained how it can work on a 16F and not on an 18F in this post
http://www.picbasic.co.uk/forum/show...=2686#post2686
<br>
Bookmarks