EasyManua.ls Logo

Parallax BASIC Stamp 2e - Page 296

Default Icon
353 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
SEROUT - BASIC Stamp Command Reference
Page 294 BASIC Stamp Programming Manual 2.0b www.parallaxinc.com
hex or binary text representations, or transmit strings of bytes from
variable arrays. These actions can be combined in any order in the
OutputData list.
Quick Facts
BS1 BS2 BS2e BS2sx BS2p
Units in Pace
and Timeout
n/a 1 ms 1 ms 400 µs 400 µs
Baud range
300, 600,
1200, and
2400 only
243 to 50K 243 to 50K 608 to 115.2K 608 to 115.2K
Baud limit with
flow control
n/a 19.2K 19.2K 19.2K 19.2K
I/O pins
available
0 - 7 0 15 0 - 15 0 - 15
0 15 (in
current I/O
block)
Other serial port
pins
n/a SOUT pin (physical pin 1) when Rpin = 16
Special cases
n/a
Fpin must be specified to use Timeout and Tlabel.
Pace cannot be specified at the same time as Timeout.
Explanation
One of the most popular forms of communication between electronic
devices is serial communication. There are two major types of serial
communication; asynchronous and synchronous. The SERIN and
SEROUT commands are used to receive and send asynchronous serial
data. See the SHIFTIN and SHIFTOUT command for information on the
synchronous method.
The following information is supplemental to what is discussed in the
SERIN command section. Please read through the SERIN command
section for additional information.
All BASIC Stamps (except the BS1) have a line driver on its SOUT pin
(Tpin = 16). See the "Hardware" section of the "Introduction to the BASIC
Stamps" chapter. The SOUT pin goes to a PC’s serial data-in pin on the
DB9 connector built into BASIC Stamp development boards. The
connector is wired to allow both programming and run-time serial
communication (unless you are using the Stamp 2 Carrier Board which is
only designed for programming). For the built-in serial port set the Tpin
argument to 16 in the SEROUT command.
SERIAL COMMUNICATION
BACKGROUND
.
Table 5.79: SEROUT Quick Facts.
2
e
2
sx
2
p
2
USING THE BUILT-IN SERIAL PORT ON
THE
BS2, BS2E, BS2SX AND BS2P.

Table of Contents

Related product manuals