Shop OBEX P1 Docs P2 Docs Learn Events
write command — Parallax Forums

write command

RobbanRobban Posts: 124
edited 2008-02-28 20:26 in BASIC Stamp
Hi!

isn´t it possible to overwrite a value when using the WRITE command.

like

write 240,123

and after a while

write 240,198

but when i read the 240 using READ command i still get the 123.

why? and what do i do wrong?

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2008-02-28 20:26
    When a Stamp executes a WRITE statement, it writes the new value to the EEPROM.
    If this does not appear be happening, there must be something else going on with
    your program. You'll have to post your whole program to get more specific help.
    If you repeatedly write to the same location, eventually that location will wear out and
    one or more bits will not be rewritable, but it takes a while for that to happen. The
    minimum number of writes is in excess of 100,000, but, if you're rewriting the location
    10 times a second, it would only take 3 hours to begin to have problems.
Sign In or Register to comment.