|I have a couple of errors in MPASM that are troubling. I commmented the
offending lines out to assemble but of course that's a nowhere solution.
In the heading area I used _CONFIG FFF9. I tried it with 0xFFF9, h'FFF9',
etc. but still get error. FFF9 for a 16C74 is WDT=off, clock=xtal. I realize
that in MPSIM the SC instruction lets me change the clock cycle time and
there is a way to disable the WDT. But what does that have to do with MPASM?
As per datasheet for 16Cxx's when first enter interrupt routine must
SAVE_STATUS and SAVE_Wreg. A temp copy of Wreg must exist on page0 and page1
at the same relative location. I tried this as
W_tem EQU 0x20 ;page0 location of W_tem
W_tem EQU 0xA0 ;page1 location of W_tem.
The idea is that by restoring the STATUS reg first the correct bank can be
pointed to for retrieval of the current copy of the accumulator.
MPASM didn't like the second equate. So what am I doing wronnnnnng!
Mark Peterson <MITVMA.MIT.EDU> wrote: PICLIST
> I have a couple of errors in MPASM that are troubling. I commmented
> the offending lines out to assemble but of course that's a nowhere
> In the heading area I used _CONFIG FFF9. I tried it with 0xFFF9,
> h'FFF9', etc. but still get error.
Try it with TWO underscores instead of one.
Also, make sure that there's some white space to the left of the
directive; "__CONFIG" should NOT begin in column one.
You're attempting to redefine a symbol. This is illegal; each
symbol may be EQU'ed only once. Rename the second symbol
"W1_tem" or something. Your interrupt routine won't change;
it should still refer only to "W_tem".
Andrew Warren - ix.netcom.comfastfwd
Fast Forward Engineering, Vista, California
More... (looser matching)
- Last day of these posts
- In 1996
, 1997 only
- New search...