-----Original Message----- From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf Of John Temples Sent: Thursday, October 19, 2006 11:54 AM To: Microcontroller discussion list - Public. Subject: Re: [PIC] C18 rom lookup table No, you do not need a #pragma idata or any other #pragma for this array in C18. The "rom" keyword is sufficient. Indeed! This works for me: rom int CAN_Id[80] = { 1, 3, 5, 0, 2, 4, 6, 0, 7, 9, 11, 0, 8, 10, 12, 0, 13, 15, 17, 0, 14, 16, 18, 0, 19, 21, 23, 0, 20, 22, 24, 0, 25, 27, 29, 0, 26, 28, 30, 0, 31, 33, 35, 0, 32, 34, 36, 0, 37, 39, 41, 0, 38, 40, 42, 0, 43, 45, 47, 0, 44, 46, 48, 0 }; I get the values in program memory. I checked! BTW: Thanks to all who tried to help. Tom * | __O Thomas C. Sefranek WA1RHP@ARRL.NET |_-\<,_ Amateur Radio Operator: WA1RHP (*)/ (*) Bicycle mobile on 145.41MHz PL74.4 ARRL Instructor, Technical Specialist, VE Contact. http://hamradio.cmcorp.com/inventory/Inventory.html http://www.harvardrepeater.org -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist