Shop OBEX P1 Docs P2 Docs Learn Events
quick and easy memory? — Parallax Forums

quick and easy memory?

SexieWASDSexieWASD Posts: 41
edited 2009-07-29 14:52 in Propeller 1
I am making a PCB that will control many switches (1/0 logic) and a few SPI serial potentiometers. I would like to add some memory to be able to save the state of the switches serveral times over (10 or so) to be called later from a input high state, to set all of the outputs.

I don't have any experience with spin or propeller assembly, but I get the basics of programing, basic, lua, php, and some other application specific languages. What would be the easiest way to store these settings? I need maybe 1 kilobyte of space I predict so a 2GB sd card would be overkill, but mainly I'm looking to not spend a whole lot of time trying to figure out how to store the settings.

What would you suggest as being quick and easy? maybe you know of a good Prop object?

Comments

  • W9GFOW9GFO Posts: 4,010
    edited 2009-07-28 04:45
    I've been using the EEPROM object from the EEPROM Datalogging Application lab to store settings. It can save (backup) an array of values and read (restore) that same array.

    Rich H
  • Mike GreenMike Green Posts: 23,101
    edited 2009-07-28 04:58
    There are several objects that have I2C EEPROM read/write capability including "BS2 Functions", "i2cObjectV2", "Basic I2C Driver" and "Settings". All of these can use the end of the 1st 32K of EEPROM (where the program is stored) or any other attached EEPROM. For example, the Protoboard uses a 64K byte EEPROM of which only the 1st 32K is used for your program and the rest is undisturbed unless you explicitly include code to use it.
  • SexieWASDSexieWASD Posts: 41
    edited 2009-07-29 14:52
    Nice! I did not know I could do that, it should save some space on my board as well.
Sign In or Register to comment.