Hi Guys,
I'm having some compiler issues when trying to create a program around DT's interrupts and elapsed timer. In the below code, if I comment outthen the program will compile.Code:@ INT_ENABLE TMR1_INT ; Enable Timer 1 Interrupts
Code:INCLUDE "DT_INTS-18.bas" INCLUDE "ReEnterPBP-18.bas" INCLUDE "Elapsed_INT-18.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 ENDASM @ INT_ENABLE TMR1_INT ; Enable Timer 1 Interrupts 'GOSUB ResetTime ' Reset Time to 0d-00:00:00.00 'GOSUB StartTimer ' Start the Elapsed Timer
This is the error dump MPLAB produces if I do not comment out that line.
ERROR: Unable to execute mpasmwin.Warning[205] C:\USERS\LAPTOP1\DOCUMENTS\MCS\94700-1 DUAL UV.ASM 2062 : Found directive in column 1. (endm)
Warning[206] C:\USERS\LAPTOP1\DOCUMENTS\MCS\94700-1 DUAL UV.ASM 2063 : Found call to macro in column 1. (INT_CREATE)
Warning[206] C:\USERS\LAPTOP1\DOCUMENTS\MCS\94700-1 DUAL UV.ASM 2061 : Found call to macro in column 1. (INT_Handler)
Error[116] C:\USERS\LAPTOP1\DOCUMENTS\MCS\94700-1 DUAL UV.ASM 616 : Address label duplicated or different in second pass (Z0001C)
Error[116] C:\USERS\LAPTOP1\DOCUMENTS\MCS\94700-1 DUAL UV.ASM 679 : Address label duplicated or different in second pass (Z0001D)
Error[116] C:\USERS\LAPTOP1\DOCUMENTS\MCS\94700-1 DUAL UV.ASM 732 : Address label duplicated or different in second pass (Z0001E)
Error[116] C:\USERS\LAPTOP1\DOCUMENTS\MCS\94700-1 DUAL UV.ASM 763 : Address label duplicated or different in second pass (Z0001F)
Any idea what I may be missing?
18F1320, int osc at 8MHZ, PBP 2.6A, MPLAB IDE 8.20a
Bookmarks