Shop OBEX P1 Docs P2 Docs Learn Events
eeprom — Parallax Forums

eeprom

lmclarenlmclaren Posts: 104
edited 2011-06-26 19:52 in Propeller 1
Hi,
I need to store information across reboots that can be changed by the program. I have been looking at "settings" and it seems to be what i want. Just to be sure that i understand correctly....

On the Propeller Proto board there is a 64KB eeprom, is only the first 32K used for programs etc?
If I store data in the upper 32K, will it be left alone if I reprogram and load eeprom?
Can you program eeprom from the ide or must i do it via the prop by a program?

thanks

Lee

Comments

  • localrogerlocalroger Posts: 3,452
    edited 2011-06-25 05:41
    EEPROM above 32K is untouched by the IDE and can be used to your heart's content for nonvolatile settings, alternate boot images, or whatever. You do need to use a program to store and retrieve high EEPROM data as the IDE will not access it at all. Depending on what you're up to you might find the low level IIC functions for page read and write adequate and a bit simpler than the full settings object; you can collect all your settings together in a single DAT block and copy it to high EE and back in one big chunk.
  • lmclarenlmclaren Posts: 104
    edited 2011-06-26 19:52
    Thank You localroger.
Sign In or Register to comment.