28122 Parallax Inc, 28122 Datasheet - Page 30

KIT WHAT'S A MICRO:PARTS ONLY

28122

Manufacturer Part Number
28122
Description
KIT WHAT'S A MICRO:PARTS ONLY
Manufacturer
Parallax Inc
Datasheet

Specifications of 28122

Accessory Type
Parts Kit
Product
Microcontroller Accessories
Core Processor
PIC16C57c
Flash
128 Bytes
Operating Supply Voltage
9 V
Board Size
31 mm x 16 mm
For Use With/related Products
Board of Education Full Kit
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
ACTIVITY #4: FIRST PROGRAM
The first program you will write and test will tell the BASIC Stamp to send a message to
your PC or laptop. Figure 1-33 shows how it sends a stream of ones and zeros to
communicate the text characters displayed by the PC or laptop. These ones and zeros are
called binary numbers. The BASIC Stamp Editor software has the ability to detect and
display these messages as you will soon see.
First Program
The program listings that you will type into the BASIC Stamp Editor and download to
the BASIC Stamp module will always be shown with a gray background like this:
Example Program: FirstProgram.bs2
' What's a Microcontroller - FirstProgram.bs2
' BASIC Stamp sends message to Debug Terminal.
' {$STAMP BS2}
' {$PBASIC 2.5}
DEBUG "Hello, it's me, your BASIC Stamp!"
END
Battery
9 Vdc
Sout
Sin
Vss
ATN
P0
P1
P2
P3
P4
P5
P6
P7
www.stampsinclass.com
1
U1
6-9VDC
Vin
Vss
Rst
Vdd
P15
P14
P13
P12
P11
P10
P9
P8
TM
Vs
P0
P2
P4
P6
P8
P1
P1
P1
Vd
Figure 1-33
Messages from the
BASIC Stamp module
to your Computer
The BASIC Stamp
module sends
characters to your PC
or laptop by
transmitting a stream
of binary ones and
zeros. The BASIC
Stamp Editor can
detect and convert
these binary codes to
characters and display
them.

Related parts for 28122