Shop OBEX P1 Docs P2 Docs Learn Events
BS2IC clear program — Parallax Forums

BS2IC clear program

slotcarzslotcarz Posts: 30
edited 2005-06-19 05:00 in BASIC Stamp
Which is the best code to use to clear the chip of programs? I have 1·erase programs but I saw another and can't seem to locate it. Or is there only one to do the task?
here is the one I have

DATA 0(2048)

thanks!
Jeff


·

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-06-18 15:11
    It's easier than that:

    · END

    The BASIC Stamp clears unused EE bytes to zero (use the Memory Map function to see this) unless you have a DATA statement that preserves them (this trick is useful if you want to load one program on top of another but have access to EE data stored by the first program).

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • slotcarzslotcarz Posts: 30
    edited 2005-06-18 23:02
    Thanks Jon
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-06-19 05:00
    Don't thank me too quickly ... I had a very long week in the California office and erred (yes, it happens...).· I did a quick test now that I'm home in Big D and found that I told a big fib -- but it wasn't deliberate.· The method you have is correct:

    · DATA 0 (2048)

    Sorry for the confusion.


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
Sign In or Register to comment.