SV: [Icc-avr] Data table question
Bengt Ragnemalm
benra at imt.liu.se
Wed Feb 13 22:51:04 PST 2008
Is it the size or the pin numbers you need? They will not be pin compatible
you know? If it is just size, there are packages that are much smaller than
a 8 pin DIL even if they have a lot more pins. The MLF package is the
smallest and there are both PIC:s and AVR:s with it. Of course I would use
an AVR but if it is a PIC project it may be smarter to stay with a PIC and
be able to reuse the old code.
/Bengt
> -----Ursprungligt meddelande-----
> Från: icc-avr-bounces at imagecraft.com [mailto:icc-avr-
> bounces at imagecraft.com] För Ira
> Skickat: den 14 februari 2008 00:46
> Till: icc-avr at imagecraft.com
> Ämne: [Icc-avr] Data table question
>
> 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
>
> _______________________________________________
> Icc-avr mailing list
> Icc-avr at imagecraft.com
> http://dragonsgate.net/mailman/listinfo/icc-avr
More information about the Icc-avr
mailing list