BASIC stamp manual v2.2

Introduction to the BASIC Stamp
Page 14 BASIC Stamp Syntax and Reference Manual 2.2 www.parallax.com
Stamp 2 OEM is available in either an assembled form or a kit form. These
three packages are functionally equivalent.
In addition to the dual-inline and OEM packages, there are prototyping
boards available that feature a surface mounted BS2. Please check
www.parallax.com Products Development Boards for product
descriptions.
Pin Name Description
1 SOUT
Serial Out: connects to PC serial port RX pin (DB9 pin 2 / DB25
pin 3) for programming.
2 SIN
Serial In: connects to PC serial port TX pin (DB9 pin 3 / DB25 pin
2) for programming.
3 ATN
Attention: connects to PC serial port DTR pin (DB9 pin 4 / DB25
pin 20) for programming.
4 VSS
System ground: (same as pin 23) connects to PC serial port GND
pin (DB9 pin 5 / DB25 pin 7) for programming.
5-20 P0-P15
General-purpose I/O pins: each can sink 25 mA and source 20
mA. However, the total of all pins should not exceed 50 mA (sink)
and 40 mA (source) if using the internal 5-volt regulator. The total
per 8-pin groups (P0 – P7 or P8 – 15) should not exceed 50 mA
(sink) and 40 mA (source) if using an external 5-volt regulator.
21 VDD
5-volt DC input/output: if an unregulated voltage is applied to the
VIN pin, then this pin will output 5 volts. If no voltage is applied to
the VIN pin, then a regulated voltage between 4.5V and 5.5V
should be applied to this pin.
22 RES
Reset input/output: goes low when power supply is less than
approximately 4.2 volts, causing the BASIC Stamp to reset. Can
be driven low to force a reset. This pin is internally pulled high
and may be left disconnected if not needed. Do not drive high.
23 VSS
System ground: (same as pin 4) connects to power supply’s
ground (GND) terminal.
24 VIN
Unregulated power in: accepts 5.5 - 15 VDC (6-40 VDC on BS2-
IC Rev. e, f, and g), which is then internally regulated to 5 volts.
Must be left unconnected if 5 volts is applied to the VDD (+5V)
pin.
Table 1.2: BASIC Stamp 2 Pin
Descriptions.
See the "BASIC Stamp Programming Connections" section on page 27 for
more information on the required programming connections between the
PC and the BASIC Stamp.