28123 Parallax Inc, 28123 Datasheet - Page 254

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
Selecting which Code Block to Execute on a Case by Case Basis
The
characters or values. Keep in mind that this is one of the tools used to convert an RTTTL
ringtone into musical notes. In general,
Here is the syntax for
You can try the next two example programs to see how
SelectCaseWithValues.bs2 takes numeric values you enter into the Debug Terminal and
it tells you the minimum variable size you will need to hold that value.
SelectCaseWithCharacters.bs2 tells you whether the character you entered into the Debug
Terminal is upper or lower case, a digit, or punctuation.
Remember to use the upper Windowpane in the Debug Terminal to transmit the
characters you type to the BASIC Stamp. The Transmit and Receive Windowpanes are
shown in Figure 8-5.
Windowpanes
SELECT…CASE
Select a variable or expression.
Evaluate that variable or expression on a case by case basis.
Execute different blocks of code depending on which case that variable’s value
fits into.
Transmit →
Receive →
statement is probably the best programming tool for recognizing
SELECT…CASE
:
SELECT…CASE
SELECT expression
ENDSELECT
CASE condition(s)
statement(s)
is used to:
SELECT…CASE
Figure 8-5
Sending Messages
to the BASIC Stamp
Click the Transmit
(upper) Windowpane
and enter the value
or characters you
want to transmit to
the BASIC Stamp.
works.

Related parts for 28123