27404 Parallax Inc, 27404 Datasheet - Page 51
![COMPETITION RING FOR SUMOBOT](/photos/26/91/269197/27404-l_sml.jpg)
27404
Manufacturer Part Number
27404
Description
COMPETITION RING FOR SUMOBOT
Manufacturer
Parallax Inc
Datasheet
1.27404.pdf
(266 pages)
Specifications of 27404
Accessory Type
Hobby and Education
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
SumoBot®
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
- Current page: 51 of 266
- Download datasheet (6Mb)
Changing EEPROM Values Between Resets
Let's take a closer look at how an EEPROM byte can be used to track the number of
times the SumoBot's Reset button has been pressed and released. This technique can also
be applied to counting the number of times the power to the BASIC Stamp has been
turned off and back on. You can just as easily insert the
from the next example program into an
This
EEPROM byte when the program is downloaded. The
becomes a constant for the address of that byte.
A byte variable will be used to manipulate a copy of the EEPROM value.
The program can then use the
byte whose address is
√
√
√
√
EepromCounter DATA
Modify the RunStatus
RunStatus DATA @10, Word 500
Modify the command that reads the EEPROM byte at the
like this:
READ RunStatus, Word temp
Test the program to make sure it can retrieve and display 500.
Check the Memory Map and verify that the
aside 2 bytes instead of 1.
EepromCounter DATA 0
temp VAR Byte
EEPROM is not a replacement for RAM. EEPROM bytes can certainly be used to store
values, count events, and so on. However, the EEPROM on the BASIC Stamp 2 is limited
to 10-million rewrites. In contrast, variables, which reference values stored in the BASIC
Stamp's RAM memory, do not have a limitation on the number of times you can rewrite the
values they store.
If your BASIC Stamp modifies a single byte in EEPROM once a minute, that EEPROM byte
will wear out in between 19 and 20 years. At once per second, the EEPROM byte will wear
out in around 4 months.
EepromCounter
directive from the next example program stores a 0 to an
READ
DATA
command to fetch the value stored in the EEPROM
directive like this:
, and copy it to the
IF...THEN
statement and count sensor events.
RunStatus DATA
Symbol
temp
READ
variable.
name
and
RunStatus
WRITE
EepromCounter
directive sets
commands
address
Related parts for 27404
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:
![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:
![SX28AC/SS](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
IC MCU 2K FLASH 50MHZ 28SSOP
Manufacturer:
Parallax Inc
Datasheet: