BASIC stamp manual v2.2
5: BASIC Stamp Command Reference – END
BASIC Stamp Syntax and Reference Manual 2.2 • www.parallax.com • Page 187
END
BS1 BS2 BS2e BS2sx BS2p BS2pe BS2px
END
Function
End the program, placing the BASIC Stamp into low-power mode
indefinitely. This is equivalent to having a program that does not loop
continuously; once the BASIC Stamp reaches the end of the PBASIC
program, it enters low-power mode indefinitely. The END command is
optional.
Quick Facts
Table 5.23: END Quick Facts.
Note: Current measurements are
based on 5-volt power, no extra
loads, and 75°F ambient
temperature.
BS1 BS2 BS2e BS2sx BS2p BS2pe BS2px
Current
Draw During
Run
1 mA 3 mA 25 mA 60 mA 40 mA 15 mA 55 mA
Current
Draw During
Sleep
25 µA 50 µA 200 µA 500 µA 350 µA 36 µA 450 µA
Related
Commands
NAP and
SLEEP
NAP, SLEEP and STOP
NAP, SLEEP, STOP and
POLLWAIT
Explanation
END puts the BASIC Stamp into its inactive, low-power mode. In this
mode the Stamp's current draw (excluding loads driven by the I/O pins) is
reduced to the amount shown in Table 5.23. END keeps the BASIC Stamp
inactive until the reset line is activated, the power is cycled off and back on
or the PC downloads another program.
Just as with the SLEEP command, pins will retain their input or output
settings after the BASIC Stamp is deactivated by END. For example, if the
BASIC Stamp is powering an LED when END executes, the LED will stay
lit after END, but every 2.3 seconds, there will be a visible wink of the LED
as the output pin switches to the input direction for 18 ms (60 µs on the
BS2pe). (See the SLEEP command for more information).
1
A
ll
2