BASIC stamp manual v2.2
5: BASIC Stamp Command Reference – DEBUGIN
BASIC Stamp Syntax and Reference Manual 2.2 • www.parallax.com • Page 171
DEBUGIN
BS1 BS2 BS2e BS2sx BS2p BS2pe BS2px
DEBUGIN InputData { , InputData }
Function
Accept information from the user via the Debug Terminal within the
BASIC Stamp Editor program.
• InputData is list of variables and formatters that tells DEBUGIN what
to do with incoming data. DEBUGIN can store data in a variable or
array, interpret numeric text (decimal, binary, or hex) and store the
corresponding value in a variable, wait for a fixed or variable
sequence of bytes, or ignore a specified number of bytes. These
actions can be combined in any order in the InputData list.
Quick Facts
Table 5.14: DEBUGIN Quick
Facts.
BS2, BS2e, BS2sx, BS2p, BS2pe BS2px
Serial Protocol
Asynchronous 9600 baud N, 8, 1
Inverted Polarity, Raw Data
Asynchronous 19200 baud N, 8, 1
Inverted Polarity, Raw Data
Related
Commands
SERIN and DEBUG
Explanation
DEBUGIN provides a convenient way for your BASIC Stamp to accept
input from the user via the Debug Terminal. DEBUGIN can wait for, filter
and convert incoming data in powerful ways, using the same techniques
and modifiers as SERIN.
DEBUGIN is actually a special case of the SERIN instruction. It is set for
inverted (RS-232-compatible) serial input through the programming
connector (the SIN pin) at 9600 baud (19200 baud on BS2px), no parity, 8
data bits, and 1 stop bit.
For example:
DEBUGIN DEC1 myNum
All
2
NOTE: DEBUGIN requires the
$PBASIC 2.5 compiler directive.