28123 Parallax Inc, 28123 Datasheet - Page 97

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
You can also modify the program so that the LED that’s flashing stays on for different
amounts of time. For example, you can reduce the
pushbuttons to 10, increase the
for the P15 LED to 200.
ACTIVITY #5: REACTION TIMER TEST
You are the embedded systems engineer at a video game company. The marketing
department recommends that a circuit to test the player’s reaction time be added to the
with this
Run your modified program and see if it handles both pushbutton and LED
circuits as you would expect.
Modify the
discussed.
Run the modified program.
Observe the difference in the behavior of each light.
A code block is a group of commands. The
three commands (
with two commands (
The
condition is true. All conditions with
The
IF (IN3 = 1) AND (IN4 = 1) THEN
ELSEIF (IN3 = 1) THEN
HIGH 14
PAUSE 50
HIGH 14
HIGH 15
PAUSE 50
HIGH 14
PAUSE 50
OR
AND
keyword can also be used to check if at least one of the conditions are true.
IF...ELSEIF
keyword can be used in an
PAUSE
HIGH
HIGH
commands in the
,
statement:
PAUSE
HIGH
,
PAUSE
, and
for the P14 LED to 100, and increase the
).
AND
PAUSE
have to be true for the
IF…THEN
). The
IF
IF
and the two
statement above has a code block with
Duration
statement to check if more than one
ELSEIF
statement has a code block
IF
of the
ELSEIF
statement to be true.
PAUSE
statements as
for both
PAUSE

Related parts for 28123