Thank you Henrik !!
You are totally right that was the trouble.
Sorry I missed that, Slow learner I guess.
The PIC I'm Compiling for is a 16F877.
Thank you again for your help!
Larryd
Thank you Henrik !!
You are totally right that was the trouble.
Sorry I missed that, Slow learner I guess.
The PIC I'm Compiling for is a 16F877.
Thank you again for your help!
Larryd
This is very interesting as I have had the same exact problem (AFAIK), same pic, PBP 2.60 and added the extra lines of code as suggested and still got the same error. I opened up DT_INTS-14.bas and found the following
I am using MPLABX v1.95 under Windows 8.1 I have used Darrel Taylor's code in the past using this chip (IIRC) but using MPLAB 8.x under Windows XP and never had a problem (except for typo's!) I can compile other code with this setup that doesn't include the Instant Interrupts and this is the first time I have tried to use Darrel's code on my new setup. I'm wondering if in fact I may not have something set up in MPLAB-X correctly? Any suggestions appreciated. Chriswsave VAR BYTE $20 SYSTEM ' location for W if in bank0
'wsave VAR BYTE $70 SYSTEM ' alternate save location for W
' if using $70, comment wsave1-3
' --- IF any of these three lines cause an error ?? ------------------------
' Comment them out to fix the problem ----
' -- Which variables are needed, depends on the Chip you are using --
wsave1 VAR BYTE $A0 SYSTEM ' location for W if in bank1
wsave2 VAR BYTE $120 SYSTEM ' location for W if in bank2
wsave3 VAR BYTE $1A0 SYSTEM ' location for W if in bank3
Last edited by ChrisKiwi; - 23rd May 2014 at 04:03.
Bookmarks