28123 Parallax Inc, 28123 Datasheet - Page 41

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
How ASCIIName.bs2 Works
Each letter in the
in the Debug Terminal.
66 is the ASCII code for capital “B”, 65 is the code for capital “A” and so on. 32 is the
code for a space between characters. Notice that each code number was separated with a
comma. The commas allow the one instance of
separate command. This is much easier to type than 12 separate
Your Turn – Exploring ASCII Code
The BASIC Stamp Manual Appendix A has a chart of ASCII code numbers and their
corresponding symbols. You can look up the corresponding code numbers to spell your
own name.
ACTIVITY #7: WHEN YOU’RE DONE
It’s important to disconnect the power from your BASIC Stamp and Board of Education
(or HomeWork Board). First, your batteries will last longer if the system is not drawing
power when you’re not using it. Second, soon you will build circuits on the Board of
Education or HomeWork Board prototyping area.
DEBUG 66,65,83,73,67,32,83,116,97,109,112,32,50
Save ASCIIName.bs2 as ASCIIRandom.bs2
Pick 12 random numbers between 32 and 127.
Replace the ASCII code numbers in the program with the numbers you chose.
Run your modified program to see what you get!
Save ASCIIRandom.bs2 as YourASCIIName.bs2
Look up the ASCII Chart in the BASIC Stamp Manual.
Modify the program to spell your own name.
Run the program to see if you spelled your name correctly.
If you did, good job, and save your program!
Circuit prototypes should never be left unattended with a battery or power supply
connected. Always disconnect the power from your Board of Education or HomeWork
Board before you walk away, even if you only plan on leaving it alone for a minute or two.
DEBUG
command corresponds to one ASCII code symbol that appeared
DEBUG
to execute each symbol as a
DEBUG
commands.

Related parts for 28123