27404 Parallax Inc, 27404 Datasheet - Page 48

COMPETITION RING FOR SUMOBOT

27404

Manufacturer Part Number
27404
Description
COMPETITION RING FOR SUMOBOT
Manufacturer
Parallax Inc
Datasheet

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
Example Program - SymbolNamesVsAddressContents.bs2
This example program helps demonstrate the distinction between the
Symbol
' Applied Robotics with the SumoBot - SymbolNamesVsAddressContents.bs2
' {$STAMP BS2}
' {$PBASIC 2.5}
Numbers
RunStatus
UndefData
Alphabet
temp
counter
DEBUG "Address of Numbers..........", DEC Numbers, CR
DEBUG "Value stored at Numbers....."
READ Numbers, temp
DEBUG DEC temp, CR
DEBUG "Value at (Numbers + 1)....."
READ Numbers + 1, temp
DEBUG DEC temp, CR, CR
DEBUG "Address of RunStatus........", DEC RunStatus, CR
DEBUG "Value stored at RunStatus..."
names in and the actual data that gets stored in EEPROM bytes.
Review SymbolNamesVsAddressContents.bs2, and predict what it's going to
display before you run the program.
Enter, save, and run SymbolNamesVsAddressContents.bs2
Compare the output in the Debug Terminal to your predictions, and reconcile
any differences.
EEPROM stands for Electrically Erasable Reprogrammable Read Only Memory.
EEPROM memory is nonvolatile.
disconnect power, then reconnect power, and the values you stored will still be there.
Compile-time vs. Run-time - DATA directives are processed when the BASIC Stamp Editor
compiles the program. In other words, DATA directives are processed at compile-time. The
WRITE command can change the values in EEPROM while the program is running. That's
why WRITE commands are said to be run-time commands.
DATA
DATA
DATA
DATA
VAR
VAR
7, 20, 11, 2, 80
0
(20)
"ABCDEFG"
Word
Byte
That means, you can store a value in EEPROM,
DATA
directive

Related parts for 27404