27404 Parallax Inc, 27404 Datasheet - Page 239

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
An extra variable is necessary to keep track of which EEPROM byte gets the next record.
This
EEPROM and with
#IF DATALOG_MODE > 0 #THEN
#ENDIF
DATA
reading from and writing to. The
on whether the
helps to make sure there aren't any values from a previous round still being stored.
Especially if you stop the round early, it will be easier to discern after which record you
stopped the match, because the rest will be 0. That's the purpose of the first
directive. It sets all the EEPROM bytes from $10 to
#IF DATALOG_MODE = 1 #THEN
#ENDIF
#IF DATALOG_MODE = 2 #THEN
#ENDIF
The
0 before (
addresses, the program just reserves the space as undefined data. This is important
logIndex
LogData
LogData
LogData DATA
logIndex
directives should always be used to set aside EEPROM space that you will be
MaxBytes
DATALOG_MODE
VAR
DATA
DATA
variable is used with the
READ
). With this change, instead of writing zeros to all those EEPROM
directive that is declared when
Word
@$10, 0 (MaxBytes)
@$10, (MaxBytes)
command to retrieve them.
is 1 or 2. If it's 1, new values will be recorded, and it
DATA
directive has to be slightly different depending
WRITE
' Stores EEPROM index
' EEPROM data recording space
' EEPROM playback space
command for saving the records to
DATALOG_MODE = 2
MaxBytes
($150) to 0.
does not have a
Figure 5-4
Memory Map
The highest
EEPROM
address not
occupied by
PBASIC
program code is
$257.
LogData

Related parts for 27404