28123 Parallax Inc, 28123 Datasheet - Page 300
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: 300 of 340
- Download datasheet (6Mb)
This next example program places the
IF…THEN
value of index gets to 5 (indicating the correct password was entered).
Example Program: PasswordChecker.bs2
Figure 10-7 shows the Debug Terminal displayed by PasswordChecker.bs2. When run,
this program will wait for you to type the letters “pass!” in response to the prompt.
' What's a Microcontroller - PasswordChecker.bs2
' Check password entered in Debug Terminal's Transmit Windowpane.
' {$STAMP BS2}
' {$PBASIC 2.5}
Password
index
temp
userEntry
DO
DEBUG "Enter password: "
√
√
statement inside a
Enter and run PasswordChecker.bs2.
Try entering some letter combinations that are not the password, then enter the
letter combination that is the password: “pass!”.
DATA
VAR
VAR
VAR
"pass!"
Nib
Byte
Byte(5)
DO…LOOP UNTIL
DEBUGIN
statement that keeps executing until the
command, the
' Store "secret" password here.
' Index variable.
' Stores single char.
' Store user entered password.
' User instructions.
Figure 10-7
Entering Password
into the Transmit
Windowpane
Click the Transmit
(upper) Windowpane
and enter the
password.
FOR…NEXT
loop, and the
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: