Hi Chris, I don't have any code, but have you checked the EEPROM protect bit ( Bit 8 should be 1 ) in the config word? Heinz At 12:39 PM -0700 8/14/01, PD wrote: >Has anyone seen any examples that shows a routine to write multiple >ram locations to the eeprom, it would help me greatly. > >Thanks for any ideas on this. > >Chris > ----- Original Message ----- > From: PD > To: PICLIST@MITVMA.MIT.EDU > Sent: Monday, August 13, 2001 2:25 PM > Subject: [PIC]:trouble writing to eeprom on 16f628 > > > I have followed the Microchip examples and still can't get this to >work, I can read from the eeprom with no problems but can not get it >to write. I created a routine to read some values from the eeprom to >the RAM at the start of the program and then if the user changes any >values during use they are then written from RAM to the eeprom. If >I simulate it in MPLAB it works fine, I can provide examples of my >code if that helps any. > > Thanks > Chris > >-- >http://www.piclist.com hint: To leave the PICList >mailto:piclist-unsubscribe-request@mitvma.mit.edu -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu