28123 Parallax Inc, 28123 Datasheet - Page 65

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
This command is included just to show what the program does after ten times through the
FOR…NEXT
Your Turn – Other Ways to Count
ACTIVITY #4: BUILDING AND TESTING A SECOND LED CIRCUIT
Indicator LEDs can be used to tell the machine’s user many things. Many devices need
two, three, or more LEDs to tell the user if the machine is ready or not, if there is a
malfunction, if it’s done with a task, and so on.
In this activity, you will repeat the LED circuit test in Activity #1 for a second LED
circuit. Then you will adjust the example program from Activity #2 to make sure the
LED circuit is properly connected to the BASIC Stamp. After that, you will modify the
example program from Activity #2 to make the LEDs operate in tandem.
Extra Parts
In addition to the parts you used in Activities 1 and 2, you will need these parts:
(1) LED - yellow
(1) Resistor – 470 Ω (yellow-violet-brown)
DEBUG "All done!"
in LedOnOffTenTimes.bs2 and re-run the program. What did the program do
differently, and was this expected?
How many times did the LED flash? What values displayed in the Debug
Terminal?
Try a second modification to the
loop. It moves on to the command that comes after the
Replace the statement
FOR counter = 20 to 120 STEP 10
FOR counter = 1 to 10
FOR
with this:
statement. This time, change it to
FOR counter = 1 to 20
NEXT
statement.

Related parts for 28123