Any chance you have accidently fallen through to some sort of ERASE_ALL command during code startup? James Caska www.muvium.com uVM - 'Java Bred for Embedded' -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU] On Behalf Of Andre Thomas Sent: Monday, April 26, 2004 11:41 PM To: PICLIST@MITVMA.MIT.EDU Subject: Re: [PIC:] 18F2320 EEPROM Problems Perhaps something to do with initializing ? Write one byte and see if you can still read back the other 31 or so... Do they still return zero's ? -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU] On Behalf Of Scott Thomas Sent: Tuesday, April 27, 2004 6:16 AM To: PICLIST@MITVMA.MIT.EDU Subject: [PIC:] 18F2320 EEPROM Problems I am having some trouble with data retention on an 18F2320. I am writing 32 values to EEPROM starting at EEADR = 0. Immediately after writing the values I can read them into an array and everything works fine. However, if I perform a soft reset or a power off then back on I read all zero's from EEPROM. Have I missed something obvious? -- Thanks, Scott Thomas -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics ************************************************************ Scanned by @lantic IS Virus Control Service This message was scanned for viruses and dangerous content. @lantic Internet Services (Pty) Ltd. - http://www.lantic.net eScan for Windows-based PCs - http://www.escan.co.za If you have received a message marked in the subject line as [SPAM] please note that according to our MailScanner, this message has all the attributes of Unsolicited Commercial Email (UCE). If the message has however been marked incorrectly, please send a query to abuse@lantic.net ************************************************************ -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics