28122 Parallax Inc, 28122 Datasheet - Page 207
![KIT WHAT'S A MICRO:PARTS ONLY](/photos/26/89/268994/28122-l_sml.jpg)
28122
Manufacturer Part Number
28122
Description
KIT WHAT'S A MICRO:PARTS ONLY
Manufacturer
Parallax Inc
Datasheet
1.28123.pdf
(340 pages)
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
- Current page: 207 of 340
- Download datasheet (6Mb)
Using the EEPROM for data storage can be very useful for remote applications. One
example of a remote application would be a temperature monitor placed in a truck that
hauls frozen food. A second example is a weather monitoring station. One of the pieces
of data a weather station might store for later retrieval is light levels.
Since we are using a photoresistor to measure light levels, this activity introduces a
technique for storing measured light levels to, and retrieving them back from the
EEPROM. In this activity, you will run one PBASIC example program that stores a
series of light measurements in the BASIC Stamp module’s EEPROM. After that
program is finished, you will run a second program that retrieves the values from
EEPROM and displays them in the Debug Terminal.
Programming Long Term Data Storage
The
used to retrieve those values.
The syntax for the
For example, if you want to write the value 195 to address 7 in the EEPROM, you could
use the command:
Word values can be anywhere between 0 and 65565 while byte values can only contain
numbers between 0 and 255. A word value takes the space of two bytes. If you want to
write a word size value to EEPROM, you have to use the optional
careful though. Since a word takes two bytes, you have to skip one of the byte size
addresses in EEPROM before you can write another word. Let’s say you need to save
WRITE
WRITE Location, {WORD} Data Item
WRITE 7, 195
2048 bytes = 2 KB. You can use 2048 bytes to store 2048 different numbers, each of
which can store a value between 0 and 255.
The upper-case ‘B’ stands for bytes. A lower-case ‘b’ stands for bits. This can make a big
difference because 2048 Kb means that 2048 different numbers, but each number is limited
to a value of either 0 or 1.
Although both the upper case ‘K’ and the lower-case ‘k’ are called kilo, they are slightly
different. The upper-case ‘K’ is used to indicate a binary kilobyte, which is 1 × 2
When referring to exactly 2000 bytes, you can use the lower-case k, which stands for kilo
(1 X 10
command is used to store values in the EEPROM, and the
3
= 1000) in the metric system.
WRITE
command is:
Word
READ
modifier. Be
command is
10
= 1024.
Related parts for 28122
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![30008](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
![70009](/photos/26/92/269208/70009-l_tmb.jpg)
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
![27404](/photos/26/91/269197/27404-l_tmb.jpg)
Part Number:
Description:
COMPETITION RING FOR SUMOBOT
Manufacturer:
Parallax Inc
Datasheet:
![70016](/photos/8/99/89966/mfg_70016_tmb.jpg)
Part Number:
Description:
TEXT INFRARED REMOTE FOR BOE-BOT
Manufacturer:
Parallax Inc
Datasheet:
![28135](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
BOARD EXPERIMENT+LCD NX-1000
Manufacturer:
Parallax Inc
Datasheet:
![28023](/photos/9/30/93020/mfg_28023_tmb.jpg)
Part Number:
Description:
CONTROLLER 16SERVO MOTOR CONTROL
Manufacturer:
Parallax Inc
Datasheet:
![30010](/photos/9/30/93025/mfg_30010_tmb.jpg)
Part Number:
Description:
BASIC STAMP LOGIC ANALYZER
Manufacturer:
Parallax Inc
Datasheet:
![SX18AC/SO](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
IC MCU 2K FLASH 50MHZ SO-18
Manufacturer:
Parallax Inc
Datasheet: