Shop OBEX P1 Docs P2 Docs Learn Events
EEPROM Problems. — Parallax Forums

EEPROM Problems.

chibillchibill Posts: 1
edited 2012-03-08 13:30 in BASIC Stamp
I am trying to make it so I have a card with EEPROM on it and when I plug it in IT will run A part of the program and log when it was used on the card.

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2012-03-08 13:30
    You will need some kind of real time clock (RTC) like a DS1302 or DS1307 or equivalent with a backup battery so it runs all the time. The program in the Stamp would read the clock when it starts, then read through the log on the EEPROM looking for an unused area to put the new entry, then write the time and date before starting the rest of the program. There are examples of the use of a RTC and an external EEPROM in the Nuts and Volts Columns. If you use a BS2p or BS2pe or BS2px, you could also use the built-in EEPROM very easily for logging. Look at the descriptions of the READ and WRITE statements for details.
Sign In or Register to comment.