Tim wrote: >To read from my EEPROM inside the 'F628 I put the desired EE address in w >and call 'ReadEE' (see code snippet). > >I'll confirm the value in address 0x00 of the EE space equal to 0xAA, and >address 0x01 equal to 0x55 by looking at the EEPROM memory window. If I run >at 4Mhz and read the two addresses one after the other, 'ReadEE' sends back >0xAA each time. If I step through the program using the ICE2000, I'll get >the correct values: 0xAA, and 0x55. What gives? > >ReadEE > BANK1 > movwf EEADR ;Address to read > bsf EECON1,RD ;EE Read > movf EEDATA,w ;w = EEDATA > BANK0 > return Your EE read code is exactly what I use all the time. How are you writing to the EE ? Via MPLAB or programmatically ? Maybe the problem is in what happens just *after* ReadEE. Regards... -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu