Shop OBEX P1 Docs P2 Docs Learn Events
Writing to non-volatile memory — Parallax Forums

Writing to non-volatile memory

markaericmarkaeric Posts: 282
edited 2009-04-01 02:06 in General Discussion
I sure hope I'm wrong, but I presume I cannot write to program memory from within the running program, correct? It's a bummer to have to use an external eeprom just to store a few bytes of data. shakehead.gif

Comments

  • JonnyMacJonnyMac Posts: 9,412
    edited 2009-04-01 00:59
    But that is in fact the way it is with the SX -- if you need nonvolatile values then an external EEPROM is what you have to do. It's not hard, many of us do it quite frequently.
  • markaericmarkaeric Posts: 282
    edited 2009-04-01 01:03
    I'm using the SX48, and it looks like I was already going to be tight on I/Os.. Ah well, it looks like I'll just have to implement the external stuff a bit differently.
  • JonnyMacJonnyMac Posts: 9,412
    edited 2009-04-01 02:00
    That's a lot of pins to use -- perhaps there's an opportunity to free some up to give you two pins for an I2C buss. Maybe you're connecting to an SPI device that has an I2C equivalent; this maintains your function and gives you the buss.
  • markaericmarkaeric Posts: 282
    edited 2009-04-01 02:06
    Yeah, I got some SSP devices I can merge onto one buss, as well as do away with some other redundancies.
Sign In or Register to comment.