Several versions of ELAPSED_INT seems to exist. One that predates the existance of DT-Ints and one which is supposed to work WITH DT-Ints. For the one that's using DT-Ints it looks like you also need to include ReEnterPBP.bas file. Here's an example by Darrel himself, from this thread:
Also, OSCFRQ = %11 can't be right but I suspect that it's the forum messing with the text.Code:INCLUDE "DT_INTS-14.bas" INCLUDE "ReEnterPBP.bas" INCLUDE "Elapsed_INT.bas" ; Elapsed Timer Routines ASM INT_LIST macro ; IntSource, Label, Type, ResetFlag? INT_Handler TMR1_INT, _ClockCount, PBP, yes endm INT_CREATE ; Creates the interrupt processor INT_ENABLE TMR1_INT ; Enable Timer 1 Interrupts ENDASM GOSUB ResetTime ' Reset Time to 0d-00:00:00.00 GOSUB StartTimer ' Start the Elapsed Timer Main: IF SecondsChanged = 1 THEN SecondsChanged = 0 LCDOUT $FE,2, DEC Days,"d-",DEC2 Hours,":",DEC2 Minutes,":",DEC2 Seconds ENDIF GOTO Main
When posting code, please use the proper code tags.
/Henrik.




Bookmarks