BASIC stamp manual v2.2
5: BASIC Stamp Command Reference – STOP
BASIC Stamp Syntax and Reference Manual 2.2 • www.parallax.com • Page 447
STOP
BS1 BS2 BS2e BS2sx BS2p BS2pe BS2px
STOP
Function
Stop program execution.
Quick Facts
Table 5.120: STOP Quick Facts.
All BS2 Models
Related
Command
END
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."
Demo Program (STOP.bs2)
' STOP.bs2
' 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}
' {$PBASIC 2.5}
Main:
LOW 0 ' turn LED on
STOP ' stop program
All
2
NOTE: This example program can be
used with all BS2 models by changing
the $STAMP directive accordingly.
All
2