Shop OBEX P1 Docs P2 Docs Learn Events
stamp resets when reconnecting to PC — Parallax Forums

stamp resets when reconnecting to PC

MTompsonMTompson Posts: 4
edited 2010-04-29 04:53 in BASIC Stamp
I am running a program that I periodically check some numbers I'm sending out to DEBUG. I wanted to get rid of my LCD I had hooked up and simply use the DEBUG to check my numbers. The trouble is when I reconnect my board to my PC (via serial D9 to USB adapter) the program resets on the stamp! Any ideas on hard wiring any pins to stop this happening? Many thanks....

Comments

  • MTompsonMTompson Posts: 4
    edited 2010-04-25 08:46
    I did find this on the web:

    Unwanted resets from noise on the serial port ATN line
    top


    ================================================================

    Unwanted resets can occur when there are noise sources like motors or radios near the Stamp. Also, these resets can occur when the serial programming or data cable remains connected. Noise is coupled in through the sensitive ATN signal on physical pin 3 of the Stamp, pin 4 on the DB9 connector.

    I always put a 3.3kohm resistor and a 0.1uF capacitor in parallel with the ATN input. That's BS2 pin 3 to ground. found on pin 4 of the stamp. This usually cures the unwanted "reset" problem. It lowers the pin's input impedance from 20k down to 3k and filters short spikes. A capacitor in series with ATN can still be used to reset or wake up the system.

    DB9S ---||
    ;
    /\/\/---;
    pin4 0.22 | 3.3k |
    optional |
    ||
    |
    | 0.1 |
    atn ground

    webpage: http://www.emesystems.com/BS2rs232.htm#resets

    ================================================================

    I don't have a radio or any motors (although I intend to later) I am however using maths coprocessor and a realtime clock.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2010-04-27 18:44
    What you're experiencing is normal. The only way to prevent the Stamp Module from being reset would be to disconnect the ATN pin from connecting to the PC. This has been done in the past by using a socket and removing that pin from the socket. You then plug your BASIC Stamp Module into the socket and the socket into the one on the BoE (or whatever board you're using). This allows debug communication without resetting the Stamp Module, however you cannot program or ID the Stamp Module without removing the socket again. I hope this helps. Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage

    Parallax Engineering
    ·
  • sumdawgysumdawgy Posts: 167
    edited 2010-04-29 04:53
    Heh, i was just about to ask the same question.

    Hrm...now to decide plan to fix.....

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Before you criticize someone, walk a mile in his shoes. That way if he gets angry, he'll be a mile away and barefoot. - unknown
Sign In or Register to comment.