This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ds80c400 contiguous mode look uptable in rom

I have been working on the ds80c400 (in contiguous mode) an am trying to get a lookup table to be in rom.

normaly to do this I would define the table

const unsigned8 code font8X8[] =

but this does not seem to work in contiguous mode. when I do this font8x8 points to garbage .I have looked in the map file, and the address for the font8x8 is no where in my rom or ram space (everything above a15 is 0). I assume this I because CODE is limited to 64K.

if i do

const unsigned8 font8X8[] =

it places the table in xdata (in ram)

Any suggestions on how I can get my table into rom?

Parents Reply Children
  • that was basicly what I tried first.

    found the answer elsewhere...

    const unsigned8 far font8X8[] =

    places the data in HCONST (rather than CONST). It seem that UV2 does not map the CONST user class by default (which I don't want to use anyhow (64K limit issues)