28123 Parallax Inc, 28123 Datasheet - Page 258

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 SelectCaseWithCharacters.bs2 Works
When compared to SelectCaseWithValues.bs2, this example program has a few
differences. First, the name of the
size was changed from word to byte. This is because all characters in PBASIC are byte
size. The
The quotation marks are used to tell the BASIC Stamp Editor that you are referring to
characters.
There is also one different
This
true. You can get this case to work by entering a character such as % or $.
Your Turn – Selecting Based on Ranges
RTTTL Ringtone Player Application Program
Below is the RTTTL file that contains the musical information used in the next example
program. There are five more
CASE
SELECT
Modify the
it displays “Special character” when you enter one of these characters: @, #,
$, %, ’^’ , &, *, (, ), _, or +.
statement tells the
SELECT character
SELECT character
CASE "A" to "Z"
CASE "a" to "z"
CASE "0" to "9"
CASE "!", "?", ".", ","
CASE ELSE
DEBUG CR, "Upper case", CR
DEBUG CR, "Lower case", CR
DEBUG CR, "Digit", CR
DEBUG CR, "Punctuation", CR
DEBUG CR, "Character not known.", CR,
statement chooses the
SELECT…CASE
CASE
"Try a different one."
SELECT
RTTTL_File DATA
statement that was not used in the previous example:
value
code block what to do if none of the other cases are
statement in SelectCaseWithCharacters.bs2 so that
character
variable was changed to
directives that you can try in the Your
variable for case by case evaluation.
character
, and its

Related parts for 28123