28123 Parallax Inc, 28123 Datasheet - Page 102
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: 102 of 340
- Download datasheet (6Mb)
The inner
whether or not to break out of the loop and move on to more commands that come
afterwards. This
0
moves on to the next command after the
polling. The
The commands that come immediately after the
LED red, delay for one second, then turn it green.
As soon as the bi-color LED turns green, it’s time to start counting to track how long
until the player releases the button. The
another
player releases the button (
delays for 1 ms using
variable.
The bi-color LED is turned off.
The results are displayed in the Debug Terminal.
). The
DO…LOOP
DO…LOOP
DO…LOOP
DO
LOOP UNTIL IN3 = 1
LOW 14
HIGH 15
PAUSE 1000
HIGH 14
LOW 15
timeCounter = 0
DO
LOOP UNTIL IN3 = 0
LOW 14
DEBUG "Your time was ", DEC timeCounter,
DO…LOOP UNTIL
PAUSE 1
timeCounter = timeCounter + 1
with an
DO…LOOP
" ms.", CR, CR,
"To play again, hold the ", CR,
will execute over and over again, until
deserves a closer look. A
PAUSE 1
UNTIL
will repeat itself as long as the button is not pressed (
IN3 = 0
polls until the pushbutton is pressed.
condition starts repeating itself. It repeats itself until the
, and it also adds 1 to the value of the
). Each time through the loop, the BASIC Stamp
LOOP UNTIL
timeCounter
' Nested loop repeats...
' until pushbutton press.
' Bi-color LED red.
' Delay 1 second.
' Bi-color LED green.
' Set timeCounter to zero.
' Nested loop, count time...
' until pushbutton is released.
DO…LOOP
LOOP UNTIL
statement. This is an example of
can use a condition to decide
IN3 = 1
variable is set to zero, then
statement turn the bi-color
. Then, the program
timeCounter
IN3 =
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: