PDA

View Full Version : Eeprom



atwoz
- 20th December 2007, 03:47
Is there a way to avoid losing the EEPROM data saved during the actual running of your pic when you reprogram it? Say I saved the number 17 on my eeprom location 0, when I reprogram my pic, I lose that 17. Is there a way to avoid losing it?

thanks!

atwoz
- 20th December 2007, 04:04
Sorry to bother, I found out how. Was messing around with my programmer and found a method, don't know if it's the right one but it works.

If anyone else has the same problem, just check out your programmer's program. There should be one box or one option that disables the writing on the eeprom. Disable it and load your new hex file, that should work.

sinoteq
- 20th December 2007, 04:05
Hi,
It depends on what SW and programer you are using. For example if you use MPLAB and ICD2 you can select under progammer options if you want the programmer to erase the internal ee2 when downloading a new program or if it should keep the old values in the ee2.
This is not a PIC related problem but a setting in your programming equipment.