28123 Parallax Inc, 28123 Datasheet - Page 199

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
decay time is different (P2). Second, the variable resistor is now a photoresistor instead
of a potentiometer.
Programming the Photoresistor Test
The first example program (TestPhotoresistor.bs2) is really just a slightly revised version
of ReadPotWithRcTime.bs2 from Chapter #5, Activity #3. The potentiometer circuit
from Chapter #5 was connected to I/O pin P7. The circuit in this activity is connected to
P2. Because of this difference, the example program has to have two commands updated
to make it work. The command that was
connected to P7, is now
the same reason, the command that was
time
.
P2
Build the circuit shown in Figure 7-2 and Figure 7-3.
220
P15
P14
P13
P12
P11
P10
P9
P8
P7
P6
P5
P4
P3
P2
P1
P0
X2
X3
HIGH 2
Vdd
Vss
since the photoresistor circuit is connected to P2. For
Vin
RCTIME 7, 1, time
Vss
HIGH 7
0.01 µF
, since the potentiometer circuit was
Figure 7-2
Photoresistor RC-time
Circuit Schematic
Figure 7-3
Photoresistor RC-time
Wiring Diagram
is now
RCTIME 2, 1,

Related parts for 28123