I am trying to use the instant interrupts to add the funnctionality of interrupts to my programs but I am having problems with the example that found on Darryl's site. I was trying to do the example with turning a LED on and off with an external interrupt but I am having some problems. I have downloaded the latest files form Darryl's site and have saved them to same folder. I have copied the code from hiw webpage also.
I am using PICBASIC Pro vers.2.46
I am using the PIC16F687.
I am getting the following errors
Error TOGGLE~1.ASM 490 : [224] local directive only for use in macros
Error TOGGLE~1.ASM 490 : [225] undefined symbol 'iflagreg'
Error TOGGLE~1.ASM 490 : [226] numeric constant or symbol name expected
Error TOGGLE~1.ASM 490 : [201] ')' expected
Error TOGGLE~1.ASM 490 : [300] too many errors
I commented out the Wsave's that were not needed. I have some experiece with writing programs in assembly and working with interrupts. I have looked through the include files to see if I could make sense of what is going on but I am having problems figuring it out.
Can you direct to anywhere that will give me more information about macros? Any suggestions? Thanks for your time and help.
Josh
EDIT
Looking at the datasheet for the 16F687 there IS an External interrupt on RA2 instead of RB0. There is a Port change interupt on both Port A and B. Do I have to modify the file to include the interrupt on PortA? I would want to place any available interrupt pin that I can.
Bookmarks