28123 Parallax Inc, 28123 Datasheet - Page 154

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 - PolledRcTimer.bs2
' Reaction timer program modified to track an RC-time voltage decay.
' {$STAMP BS2}
' {$PBASIC 2.5}
timeCounter
counter
DEBUG CLS
HIGH 7
DEBUG "Capacitor Charging...", CR
FOR counter = 5 TO 0
NEXT
DEBUG CR, CR, "Measure decay time now!", CR, CR
INPUT 7
DO
PAUSE 1000
DEBUG DEC2 counter, CR, CRSRUP
PAUSE 100
timeCounter = timeCounter + 1
Record the measured time (the capacitor’s discharge time) in the 470 Ω row of
Table 5-1.
Disconnect power from your Board of Education or BASIC Stamp HomeWork
Board.
Remove the 470 Ω resistor labeled R
145, and replace it with the 1 kΩ resistor.
Reconnect power to your board.
Record your next time measurement (for the 1 kΩ resistor).
Repeat these steps for each resistor value in Table 5-1.
VAR
VAR
Table 5-1: Resistance and RC-time for C = 3300 µF
Resistance (Ω)
Word
Nib
10 k
470
1 k
2 k
Measured Time (s)
i
in Figure 5-8 and Figure 5-9 on page

Related parts for 28123