does DEBUG stop the program if no PC?
charlieknox
Posts: 27
I have a simple program on a BS2, just on a breadboard with a home made serial cable (with no caps), a switch, and an LED, powered by a 9 volt battery with a 7805 regulator, also with no capacitors.··The program has·some DEBUG lines (it's at work, otherwise I'd attach it), and the program runs fine if the Stamp is hooked to the PC, and displaying data.· If the Stamp is not hooked to the PC, the program will not run (or stops when it gets to the first DEBUG.· If I attach the serial cable to the PC, the program will start fine.· If the PC is off, it won't work.· If I get the program going, hooked to the PC and running fine, if I unplug the serial cable, the program continues to run until the next DEBUG is encountered.· Apparently the BS2 editor does not need to be running, just the PC needs to be on and hooked up.· When the serial cable gets unhooked, the program ends at the next DEBUG.· When the Stamp is rehooked to the running PC, the program starts over from the beginning.
I guess I assumed that the program would continue to run regardless of whether the PC is hooked up, or on, or not.
Is this the way it is supposed to work?· I looked up the DEBUG command in the Help menu and the Stamp Manual, but didn't see anything about this (I may have missed it).
Thanks!
Charlie
I guess I assumed that the program would continue to run regardless of whether the PC is hooked up, or on, or not.
Is this the way it is supposed to work?· I looked up the DEBUG command in the Help menu and the Stamp Manual, but didn't see anything about this (I may have missed it).
Thanks!
Charlie
Comments
See the BS2 schematics at:
http://www.parallax.com/dl/docs/prod/schem/bs2.pdf
Though, in those even, I don't see a pull-up, so scratching my head a little, but sounds like the most likely problem.
-Martin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Martin Hebel
StampPlot - Graphical Data Acquisition and Control
AppBee -·2.4GHz Wireless Adapters & transceivers·for the BASIC Stamp & Other controllers·
·
··· The RESET (/RES) line is pulled HIGH internally by a 10K resistor.· You do not need to add an external pull-up resistor.· Is anything connected to the /RES line?· How about the ATN line (besides the serial cable)?· Does this happen if you disconnect the home-made cable from the breadboard?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
Do I need to install the two 0.1 uF capacitors on this line, as shown in the diagram Martin referred to in his message? I don't see a reference to the capacitors in the Basic Stamp Programming Manual 2.0C, on page 27, but will put them in if that will fix my problem.
Thanks again, Guys !!
Charlie
·
·· It sounds as if your cable me be unshielded and when there’s data on the SOUT line it cause the DTR line to be affected when the cable is not connected.· Adding the capacitors may help, but without knowing the specifics of the cable this is just a guess.· A correct connection diagram for the BASIC Stamps is listed in the BASIC Stamp Manual which is available as a free PDF download from our website.· Take care.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
Charlie
Glad to hear we could be of help.
-Martin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Martin Hebel
StampPlot - Graphical Data Acquisition and Control
AppBee -·2.4GHz Wireless Adapters & transceivers·for the BASIC Stamp & Other controllers·