On 10/18/06, Thomas C. Sefranek wrote: > I am trying to implement a "C" based lookup table installed in program > memory. I envision it as a one dimensional array, address in, data out. > > I am lost in the # pragma romdata .... stuff. > And I believe there is a way to initialize it too? It might help to know what compiler you are using, and what sort of "addresses" and "data" you are using. For most compilers, using the CONST keyword will put the table into program memory instead of data ram. i.e. const long int powers_of_2[16] = { 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768 }; Bill -- Psst... Hey, you... Buddy... Want a kitten? straycatblues.petfinder.org -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist