28123 Parallax Inc, 28123 Datasheet - Page 83

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
How the Pushbutton Circuit Works
The left side of Figure 3-4 shows what happens when the pushbutton is not pressed. The
LED circuit is not connected to Vdd. It is an open circuit that cannot conduct current.
By pressing the pushbutton, you close the connection between the terminals with
conductive metal making a pathway for electrons to flow through the circuit.
Your Turn – A Short-Circuit
Figure 3-5 shows a different circuit that will cause the LED to behave differently. When
the button is not pressed, the LED stays on. When the button is pressed, the LED turns
off. The reason the LED turns off when the pushbutton is pressed is because current
always follows the path of least resistance. When the pushbutton is pressed, terminals
1,4 and 2,3, have almost no resistance between them, so all the current passes through the
pushbutton (short circuit) instead of the LED.
Current
Press and hold the pushbutton, and verify that the LED emits light while you
are holding the pushbutton down.
Build the circuit shown in Figure 3-5.
Repeat the tests you performed on the first pushbutton circuit you built with
this new circuit.
No
1, 4
2, 3
Vdd
Vss
470
LED
Current
1, 4
2, 3
Vdd
Vss
470
LED
Figure 3-4
Pushbutton Not
Pressed, and
Pressed
Pushbutton circuit
open (left) and
closed (right)

Related parts for 28123