Shop OBEX P1 Docs P2 Docs Learn Events
Disable reset the basic stamp? — Parallax Forums

Disable reset the basic stamp?

JetLeeJetLee Posts: 7
edited 2005-06-07 10:46 in BASIC Stamp
Hi,

I have an application using basic stamp·BS2p40 that requires the use of the built in serial port· for serial communications with a PC.
When we restart the PC, the reset line of BASIC stamp go high and low many times, which causes the BASIC reset many times.· Do we have any way to disable the reset line when we restart the computer?

Thanks,

Lee

Comments

  • Beau SchwabeBeau Schwabe Posts: 6,557
    edited 2005-06-06 23:06
    Lee,

    You can disconnect the DTR line going to the Stamps ATN line, but by doing this you will not be able to program the Stamp unless you reconnect.

    Will you be programming the Stamp from this computer?

    A manual switch would be one solution, another solution would be a software switch.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.
  • NewzedNewzed Posts: 2,503
    edited 2005-06-06 23:07
    Can't you just disconnect the serial connection until your PC stabilizes?· The Stamp is getting reset by lows to the ATN pin and there is no practical way to disconnect it.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Sid Weaver
    Need a bezel for your LCD?

    Newzed@aol.com
    ·
  • NewzedNewzed Posts: 2,503
    edited 2005-06-06 23:12
    Or better still, just remove the Stamp power until the PC stabilizes.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Sid Weaver
    Need a bezel for your LCD?

    Newzed@aol.com
    ·
  • JetLeeJetLee Posts: 7
    edited 2005-06-07 00:04
    Beau, since we deliver the system to the users, we cannot disconnect the DTR line or serial connection at all. We have thought about hard switch but the user might still forget how to switch it off before restart computer.

    Sid, how could we know the PC stabilized? If we know it, we can open/close the ATN to disable/enable the stamp or add a relay to romove the stamp power.

    Thanks so much for all supports.

    Lee
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-06-07 00:18
    Lee,

    If the end-user is not going to be reprogramming the BASIC Stamp then disconnecting the ATN pin as Beau suggests is the way to solve the problem. The DTR pin is used (via ATN) to reset the BASIC Stamp for reprogramming -- but that's the only thing it's used for. Disconnecting it after the Stamp is programmed will not affect serial communication on the programming port.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • NewzedNewzed Posts: 2,503
    edited 2005-06-07 00:20
    It appears Jon has the best solution - simply disconnect the ATN after you have programmed the Stamp.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Sid Weaver
    Need a bezel for your LCD?

    Newzed@aol.com
    ·
  • JetLeeJetLee Posts: 7
    edited 2005-06-07 00:42
    Jon,

    If the software needs to be updated in the future, we are planning to send SW to the end user to do that.
    Tks,

    Lee
  • ForrestForrest Posts: 1,341
    edited 2005-06-07 00:49
    How about a momentary contact switch (normally open) across the ATN line. Push and hold the switch to reprogram the Stamp.
  • Beau SchwabeBeau Schwabe Posts: 6,557
    edited 2005-06-07 05:23
    If you wanted to get tricky, you would not need to use a relay...· Just an external NPN transistor and a couple of resistors
    would do the trick.· Control it through the Printer port, or better yet... I will need to search my notes, but there are actually
    three pins on the COM port that you can directly control through software (on the PC side)

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.
    1533 x 821 - 26K
  • PLJackPLJack Posts: 398
    edited 2005-06-07 10:46
    I get the impression you are sending your customers the stamp mounted on the OEM dev board.
    This board also has a reset button your customers probably should not be using.

    Would it make more sense to build a small PC board that has a programming port AND an serial port for their computer.

    Or better yet, to avoid confusion / tech calls, a serial port and a 4 pin header with a programming adapter.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jack
Sign In or Register to comment.