How big is your table? If < 256 bytes then: Just copy the index to EEADR Set RD in EECON1 Read the value in EEDATA Pretty simple. Bob Ammerman RAm Systems (contract development of high performance, high function, low-level software) ----- Original Message ----- From: adastra To: Sent: Sunday, October 22, 2000 4:15 AM Subject: [PIC]: How can I create a lookup table in '877 EEPROM? > I have an application which uses a standard "retlw" based lookup table. It > now turns out that the table data needs to be "user-changeable." I thought > I would just migrate the table to the EEPROM in the 16c877, but soon found > out that thr "retlw" scheme doesn't work in EEPROM due to the indirect > addressing used in the EEPROM block. > > I am thinking that the standard table can be used to point to an EEPROM > address (rather than the data value itself), but before I start down that > path, I thought I would ask if someone has some asm code to share that does > this. Seems to me that this must be a fairly common requirement, but I > couldn't find anything in the archives that addresses it. > > Any help or suggestions much appreciated. > > Foster > > -- > http://www.piclist.com#nomail Going offline? Don't AutoReply us! > use mailto:listserv@mitvma.mit.edu?body=SET%20PICList%20DIGEST > > > > -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! use mailto:listserv@mitvma.mit.edu?body=SET%20PICList%20DIGEST