stamp resets when reconnecting to PC
MTompson
Posts: 4
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
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 Savage
Parallax Engineering
·
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