Since version 1.00 of DT_INTS-14, it is best if you DO NOT comment or un-comment lines in the include file.
Changing the include file can affect compiling with other chips that have different BANK configurations.
Instead, copy the wsave variables block from the file into your source code, and un-comment the lines that the compiler refers to in the errors.
Code:
;-- Place a copy of these variables in your Main program -------------------
;-- The compiler will tell you which lines to un-comment --
;-- Do Not un-comment these lines --
;---------------------------------------------------------------------------
;wsave 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
' --------------------------------------------------------------------------
The errors you posted indicated to ADD wsave, wsave1, wsave2 and wsave3.
It also indicated "OR" change to wsave VAR BYTE $70. If you add that line, you don't need the other wsaves.
So a simple ...
Code:
wsave VAR BYTE $70 SYSTEM
in your code will suffice.
Also, the 16F886 doesn't have a Low Voltage Detect circuit (LVD). So LVD_INT cannot be used.
Bookmarks