Shop OBEX P1 Docs P2 Docs Learn Events
Clearing out Stamp Program Memory — Parallax Forums

Clearing out Stamp Program Memory

Jerry2Jerry2 Posts: 3
edited 2008-02-04 22:36 in BASIC Stamp
Hi,

I've been using BS2's for some time now. I like the quick and easy way they can be used to work out a concept to control and communicate with other devices so I am regularly plugging in new sensors and bits of circuitry to test things out. This is so useful that it has become a part of my ready-fire-aim-aim-fire development process.

The consequence of this process is that every time I power up a new circuit I have an unknown program in BS2 memory. The old program may have the pin directions wrong for the new circuit, and blow a pin driver.

So far, I have been pretty lucky. All (3) of my stamps have survived this treatment but I know this will not last.

I'm pretty sure that the best practice would be to erase the BS2 program memory when I finish each session but I can't quite figure out how to do this, so I am looking for ideas.

Thanks
Jerry

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2008-02-04 20:22
    Jerry,

    Every time I load the BASIC Stamp Editor I click the PBASIC directive, STAMP directive and type END. When I am done with any program I am working on I download this program, which essentially erases the old program and sets all pins to input. I hope this helps. Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • skylightskylight Posts: 1,915
    edited 2008-02-04 21:44
    Although as chris points out its easy to program a cleardown program wouldnt it be a nice feature of a future Basic editor to have a button marked clear or something like that which will do a complete job of writing and then auto downloading the necessary code·for you for conveinience sake.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2008-02-04 22:36
    Skylight,

    The way I do it the effect is essentially the same…Since the tab is always there I just select it and hit RUN. =) Instant program clear button.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
Sign In or Register to comment.