28123 Parallax Inc, 28123 Datasheet - Page 257
28123
Manufacturer Part Number
28123
Description
TEXT WHAT'S A MICROCONTROLLER
Manufacturer
Parallax Inc
Type
Programmingr
Datasheet
1.28123.pdf
(340 pages)
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
- Current page: 257 of 340
- Download datasheet (6Mb)
Example Program: SelectCaseWithCharacters.bs2
This example program evaluates each character you enter into the Debug Terminal’s
Transmit Windowpane. It can recognize upper and lower case characters, digits, and
some punctuation. If you enter a character the program does not recognize, it will tell
you to try again (entering a different character).
' What's a Microcontroller - SelectCaseWithCharacters.bs2
' Program that can identify some characters: case, digit, punctuation.
'{$STAMP BS2}
'{$PBASIC 2.5}
character
DEBUG "Enter a character: ", CR
DO
LOOP
DEBUGIN character
SELECT character
ENDSELECT
DEBUG CR, "Enter another character", CR
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,
Enter and run SelectCaseWithCharacters.bs2.
Click Debug Terminal’s Transmit Windowpane, enter characters and observe
the results.
"Try a different one."
VAR
Byte
Related parts for 28123
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
COMPETITION RING FOR SUMOBOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
TEXT INFRARED REMOTE FOR BOE-BOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BOARD EXPERIMENT+LCD NX-1000
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
CONTROLLER 16SERVO MOTOR CONTROL
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BASIC STAMP LOGIC ANALYZER
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
IC MCU 2K FLASH 50MHZ SO-18
Manufacturer:
Parallax Inc
Datasheet: