Table of Contents

Advertisement

2
2
e
2
2
e
NOTE: This is written for the BS2
but can be used for the BS2e,
BS2sx and BS2p also. Locate the
proper source code file or modify
the STAMP directive before
downloading to the BS2e, BS2sx or
BS2p.
5: BASIC Stamp Command Reference – STOP

STOP

2
2
STOP
sx
p
Function
Stop program execution.
Explanation
STOP prevents the BASIC Stamp from executing any further instructions
until it is reset. The following actions will reset the BASIC Stamp:
1.
Pressing and releasing the RESET button on the development
board.
2.
Driving the RES pin low then letting it float (high).
3.
Downloading a new program
4.
Disconnecting then reconnecting the power.
STOP differs from END in two respects:
1.
Stop does not put the BASIC Stamp into low-power mode. The
BASIC Stamp draws just as much current as if it were actively
running program instructions.
2.
The output glitch that occurs after a program has "ended" does not
occur after a program has "stopped."
2
2
Demo Program (STOP.bs2)
sx
p
' This program is similar to SLEEP.bs2 except that the LED will not blink since the BASIC
' Stamp does not go into low power mode. Use the circuit shown in the description of the
' SLEEP command for this example.
'{$STAMP BS2}
LOW 0
STOP
BS1
BS2
BS2e BS2sx BS2p
' Turn LED on
' Stop the program forever
BASIC Stamp Programming Manual 2.0c • www.parallaxinc.com • Page 321
'STAMP directive (specifies a BS2)

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the BASIC Stamp 2e and is the answer not in the manual?

Table of Contents