Hi Fredrick,
In the Check_Buttons subroutine, there's 2 Goto Main statements.
You should use RETURN to exit a subroutine.
Using GOTO will cause the stack to overflow.
With 18F's a stack overflow can cause a Reset.
But with 16F's the stack just wraps around and seems to work, although it's probably not working 100%.
Bookmarks