At 09:58 AM 2/26/2004 -0600, you wrote: >Hi All, > >I'm working with an 16f877. I would like to store data in upper program >memory. This data when be read and transmitted by the chip. > >What I'm looking for is a way to assign this data to memory locations at >design time. The data is too large to put in an array. It exceeds the >capacity of the RAM. It has to go in ROM. > >I'll basically be using the unused program memory as an eeprom, but I'd like >to have the data already there when the chip starts up, and not have to >write it to memory once it is running. > >Thanks for any ideas, >Jim Monteith Sure, it's not a problem. RTFM, DS33014G, specifically, section 5.1x You can even pack two 7 bit ASCII characters per 14-bit program word. If you do this on a product, and you have to write to program memory during operation, I suggest partitioning your ROM and write- protecting all the portion that has your code in it. Doing otherwise causes a certain amount of clench factor, IMHO. Best regards, Spehro Pefhany --"it's the network..." "The Journey is the reward" speff@interlog.com Info for manufacturers: http://www.trexon.com Embedded software/hardware/analog Info for designers: http://www.speff.com -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads