28123 Parallax Inc, 28123 Datasheet - Page 92

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
ACTIVITY #4: TWO PUSHBUTTONS CONTROLLING TWO LED CIRCUITS
Let’s add a second pushbutton into the project and see how it works. To make things a
little more interesting, let’s also add a second LED circuit and use the second pushbutton
to control it.
Pushbutton and LED Circuit Parts
(2) Pushbuttons – normally open
(2) Resistors - 10 kΩ (brown-black-orange)
(2) Resistors – 470 Ω (yellow-violet-brown)
(2) Resistors – 220 Ω (red-red-brown)
(2) LEDs – any color
Adding a Pushbutton and LED Circuit
Figure 3-12 shows a second LED and pushbutton circuit added to the circuit you tested in
the previous activity.
Your Turn – Faster/Slower
Save the example program under a different name.
Modify the program so that the LED flashes twice as fast when you press and
hold the pushbutton.
Modify the program so that the LED flashes half as fast when you press and
hold the pushbutton.
Build the circuit shown in Figure 3-12. If you need help building the circuit
shown in the schematic, use the wiring diagram in Figure 3-13 as a guide.
Modify ReadPushbuttonState.bs2 so that it reads
to test your second pushbutton circuit.
IN4
instead of
IN3
, and use it

Related parts for 28123