I've been trying to use DT_INTS-14 with a 16F877A. I'm getting errors when trying to compile. Code is as follows:
The errors I'm getting are:Code:DEFINE OSC 4 'Define LCD registers and bits Define LCD_DREG PORTD Define LCD_DBIT 4 Define LCD_RSREG PORTE Define LCD_RSBIT 0 Define LCD_EREG PORTE Define LCD_EBIT 1 'OPTION_REG.6 = 0 OPTION_REG.7=0 'ENABLE PORTB PULLUPS ADCON1 = 7 Low PORTE.2 Pause 100 'INCLUDE FILES FOR DT INTERRUPTS INCLUDE "DT_INTS-14.bas" INCLUDE "ReEnterPBP.bas" X VAR BYTE Y VAR BYTE Z VAR BYTE COUNTER VAR BYTE TAG VAR BYTE[26] INIT: 'INITIALIZE INTERRUPTS ASM INT_LIST macro ;IntSource,Label,Type,ResetFlag? INT_Handler RBC_INT, _BChange, PBP, yes endm INT_CREATE ENDASM @ INT_ENABLE RBC_INT START: COUNTER=0 MAIN: IF COUNTER=>26 THEN LCDOUT $FE,1,"COUNTER: ",DEC COUNTER LCDOUT $FE,$C0,STR TAG\15 COUNTER=0 ENDIF GOTO MAIN BChange: COUNTER=COUNTER+1 IF PORTB.0=0 THEN TAG[COUNTER]=0 ENDIF IF PORTB.1=0 THEN TAG[COUNTER]=1 ENDIF @ INT_RETURN
Error [113] c:(path)pbppic14.lib 1181: Symbol not previously defined (wsave)
Error [101] c:(path)code\lab-x1.asm 194: Error: (wsave variable not found,)
Error [101] c:(path)code\lab-x1.asm 258: Error: (" Add:" wsave VAR BYTE $70 SYSTEM)
Error [101] c:(path)code\lab-x1.asm 315: Error: (Chip has RAM in BANK1, but wsave1 was not found.)
etc
etc
Can somebody tell me what's wrong?
Thanks




Bookmarks