28123 Parallax Inc, 28123 Datasheet - Page 291

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
' What's a Microcontroller - ReadPushbuttonState.bs2
' Check and send pushbutton state to Debug Terminal every 1/4 second.
' {$STAMP BS2}
' {$PBASIC 2.5}
DO
LOOP
Your Turn – Building and Testing the Second Pushbutton Circuit
Once the first pushbutton circuit has been built and tested, the process can be repeated for
the second pushbutton.
Figure 10-3
Adding a Second Pushbutton Circuit to the Project
P4
DEBUG ? IN3
PAUSE 250
Add the pushbutton circuit shown in Figure 10-3.
Test the second pushbutton circuit by modifying ReadPushbuttonState.bs2 so
that it reads the circuit connected to P4. Run the program and verify that the
second pushbutton works.
Correct any problems you catch before moving on to the next activity.
220
Vss
10
kΩ
Vdd
P15
P14
P13
P12
P11
P10
P9
P8
P7
P6
P5
P4
P3
P2
P1
P0
X2
X3
Vdd
Vin
Vss

Related parts for 28123