darrel taylor's instant interrupt compiler error
hello everyone!!
i got the code of darrel taylor's instant interrupts and eagerly tried his program of toggling an led. but when i tried to compile it inside microcode studio using PIC16F84A as the target processor, i get an assembler error that says like this:
Error[113]c:\progra~1\mecani~1\mcs\instan~1.asm 115:Symbol not previously defined (PIR1)
When i compiled it with PIC16F628A,it was succesful but has no hex file generated. Do i need to comment out some lines in his DT_INTS-14.bas and ReEnterPBP.bas include files?
any suggestions or comments is highly appreciated. Thank you very much!!:)
darrel taylor's instant interrupt compiler error
a big thanks to you sir expert darrel taylor!!!:D
it's already working!!
thank you very much for the assistance!!
by the way,is EECON1 a register in the PIC?
thanks!!!
I am anable to compile it
Very likely I am missing somthing because I am unable to compile the DT_Ints-14 with 16F84A & 16F873 while 16F876 will compile with some warnings.
Here the simple code:
Code:
LED1 VAR PORTB.1
INCLUDE "DT_INTS-14.bas" ; Base Interrupt System
INCLUDE "ReEnterPBP.bas" ; Include if using PBP interrupts
ASM
INT_LIST macro ; IntSource, Label, Type, ResetFlag?
INT_Handler INT_INT, _ToggleLED1, PBP, yes
endm
INT_CREATE ; Creates the interrupt processor
ENDASM
@ INT_ENABLE INT_INT ; enable external (INT) interrupts
Main:
PAUSE 1
GOTO Main
'---[INT - interrupt handler]---------------------------------------------------
ToggleLED1:
TOGGLE LED1
@ INT_RETURN
These are the errors with 16F84A with "@PIR1 = EECON1" or w/o it (Flash 1024)
Quote:
ERROR: Variable wsave3 position request 416 beyond RAM_END 79.
ERROR: Variable wsave2 position request 288 beyond RAM_END 79.
ERROR: Variable wsave1 position request 160 beyond RAM_END 79.
These are the erros with 16F873 & 16F874 (Flash 4096)
Quote:
ERROR: Variable wsave3 position request 416 beyond RAM_END 255.
ERROR: Variable wsave2 position request 288 beyond RAM_END 255.
These are the warnings with 16F876 (Flash 8192)
Quote:
Warning[205]c:\..................................\led_int.asm 495:Found directive in column 1. (endm)
Warning[206]c:\..................................\led_int.asm 496:Found call to macro in column 1. (INT_CREATE)
Warning[206]c:\..................................\led_int.asm 494:Found call to macro in column 1. (INT_Handler)
I did not check if the above compilation was working or not ( the harware I had prepared was for 16F84A)
The only explanation I am giving is the ram space, but since others have used with success the 16F84A with the same program, that means that the problem is with my compiler (ver 2.47) or something wrong I am doing.
Any help will be greatly appreciated.
Al.