[Icc-avr] Data table question
Richard Man
richard-lists at imagecraft.com
Wed Feb 13 16:52:53 PST 2008
Either a long __flash character array of 1200 bytes or 5x256 will
work. ICCAVR is Standard C so it has a lot less limitation in that sense.
At 03:45 PM 2/13/2008, Ira wrote:
>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
>
// richard (This email is for mailing lists. To reach me directly,
please use richard at imagecraft.com)
More information about the Icc-avr
mailing list