28123 Parallax Inc, 28123 Datasheet - Page 221

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
The second subroutine’s name is
want to do some extra math on the value of the
command, it would be appropriate to do that in this subroutine.
The third subroutine is named
subroutine contains a table with six bit patterns that are used to create the circular pattern
around the outside of the 7-segment LED display. By adding 1 to the
each time the subroutine is called, it causes the next bit pattern in the sequence to get
placed in
values from 0 through 5. What happens when the value of
command doesn’t automatically know to go back to the first entry, but you can use an
IF…THEN
0
patterns placed in
segment LED display to repeat its circular pattern over and over again.
Your Turn – Adjusting the Meter’s Hardware and Software
There are two ways to change the sensitivity of the meter. First the software can be
changed. For example, the 7-segment LED display will cycle at one-tenth the speed if
you multiply the time variable by 10 in the
fast if you divide the time variable by 2.
resets the value of
RETURN
Delay:
RETURN
Update_Display:
RETURN
statement to fix that problem. The command
OUTH
Modify LightMeter.bs2 so that the
easiest way to do this is to change
PAUSE time
IF index = 6 THEN index = 0
'
LOOKUP index, [ %01000000,
index = index + 1
. There are only entries in the
OUTH
index
to repeat itself over and over again. This, in turn, causes the 7-
to 0 each time it gets to 6. It also causes the sequence of bit
%10000000,
%00000100,
%00000010,
%00000001,
%00100000 ], OUTH
BAFG.CDE
Delay
Update_Display
, and all it contains is a
Delay
LOOKUP
time
time
subroutine, and it will cycle twice as
.
variable before using it in the
variable is multiplied by 10. The
command’s lookup table for
The
IF index = 6 THEN index =
index
LOOKUP
PAUSE
gets to 6? The lookup
command in this
command. If you
index
variable
PAUSE
index

Related parts for 28123