[Icc-avr] Data table question
Ira
ira at extrasensory.com
Wed Feb 13 15:45:44 PST 2008
I have an old project based on a 8 pin PIC that has a 1200 byte data
table I need to update it and add a second copy of that table and it
doesn't seem that Microchip makes an 8 pin processor with 8K of
flash. Atmel to the rescue! But how do I access that string:
can I just do something like this?
_flash char data[] = "dlkflsdjflds"
where the stuff after the equal is 1200 characters long and then
reference it with
data[1100]
It would just as easy to do it with 5 strings of 256 bytes it that
would work better in the world of ICCAVR.
On the PIC I just had 80 rows starting with dt followed by 16 numbers
which worked peachy but it's less clear how to do that here.
And if it matters, the tables are generated by a separate application
and need to be #included into the code by the end user.
Ira
More information about the Icc-avr
mailing list