Quote Originally Posted by HenrikOlsson View Post
Hi,
Perhaps not related to your problem but in the Alarm subroutine you have this:
Code:
GOTO Alarm         ' Jump over Subroutines, so they don't try to execute

'-------------------[ Begin Alarm Interrupt Handler ]-------------------- 
Alarm:
Which seems to not jump OVER the Alarm subroutine but rather TO it.
Henrik was on the right track. In mean time I received a separate notice from Darrel Taylor that cleared it all up. For the benefit of all of you who tried to help me and any future visitors to this thread, let me explain.
I had failed to create a JumpLocation label after the include file's subroutine and a GOTO JumpLocation statement ahead of the subroutines. Therefore, as Darrel explains it:
" DS1337_Setup.inc is being executed but it's being exeucted at the wrong time...On power up. The processor is resetting every 4.5 seconds, because that's how long the DS1337 routine takes with all the PAUSES in it.
At the end, it returns, but it was never called by a gosub and just fell-into the code from the start. So that RETURN resets the processor on a Stack Underflow, and hence repeated interrupts.
All include files MUST jump over their own code."

Hope this may help someone in the future avoid my learning curve on creating/using INCLUDE files.