28123 Parallax Inc, 28123 Datasheet - Page 30

TEXT WHAT'S A MICROCONTROLLER

28123

Manufacturer Part Number
28123
Description
TEXT WHAT'S A MICROCONTROLLER
Manufacturer
Parallax Inc
Type
Programmingr
Datasheet

Specifications of 28123

Style
Book
Title
What's a Microcontroller?
Contents
Whats a Microcontroller? Text
Product
Microcontroller Accessories
Core Processor
PIC16C57c
Flash
128 Bytes
Operating Supply Voltage
9 V
Board Size
31 mm x 16 mm
Lead Free Status / RoHS Status
Not applicable / Not applicable
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 28123