28123 Parallax Inc, 28123 Datasheet - Page 211

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
eepromAddress
DEBUG "Retrieving measurements", CR, CR,
FOR eepromAddress = 0 TO 58 STEP 2
NEXT
END
How ReadLightMeasurementsFromEeprom.bs2 Works
As with the
are being read from the EEPROM, the
each time through the
The
into the
The value of the
in the Debug Terminal.
Your Turn – Plotting the Stored Data
ACTIVITY #4: SIMPLE LIGHT METER
Light sensor information can be communicated in a variety of ways. The light meter you
will work with in this chapter changes the rate that the display flickers depending on the
light intensity it detects.
READ eepromAddress, Word time
DEBUG DEC2 eepromAddress, "
READ
"Measurement
"----------
time
FOR eepromAddress = 0 to 58 STEP 2
NEXT
Modify ReadLightMeasurementsFromEeprom.bs2 so that it displays the data
to Stamp Plot Lite. Remember, the
value and a carriage return.
command gets the word size value at
READ eepromAddress, Word time
WRITE
DEBUG DEC2 eepromAddress, "
variable.
VAR
time
command, the
FOR…NEXT
-----", CR
and
Value", CR,
Byte
eepromAddress
loop.
READ
eepromAddress
command uses byte-size addresses. Since words
variables are displayed as columns in a table
", DEC time, CR
DEBUG
eepromAddress
variable has to have 2 added to it
statement must only display the
", DEC time, CR
. This value is loaded

Related parts for 28123