28122 Parallax Inc, 28122 Datasheet - Page 211

KIT WHAT'S A MICRO:PARTS ONLY

28122

Manufacturer Part Number
28122
Description
KIT WHAT'S A MICRO:PARTS ONLY
Manufacturer
Parallax Inc
Datasheet

Specifications of 28122

Accessory Type
Parts Kit
Product
Microcontroller Accessories
Core Processor
PIC16C57c
Flash
128 Bytes
Operating Supply Voltage
9 V
Board Size
31 mm x 16 mm
For Use With/related Products
Board of Education Full Kit
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
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 28122