Quote:
|
Originally Posted by CJO
...Do you know if this will work on the VEXtroller?
|
I haven't tried it. I'm not really supporting the Vex controller because it's a commercial product.
Quote:
|
Originally Posted by CJO
How does data need to be formatted when you pass it to the EEPROM_Write() function?
|
EEPROM_Write() is expecting a 10-bit address in an unsigned int and 8-bit data byte in an unsigned char.
Quote:
|
Originally Posted by CJO
Could you call this function using your printf/serial driver. For instance, type "Field Side: Left," and then have this set a variable (such as "rss" - robot start side") equal to 1 (for instance). And then have the handler write to the EEPROM so that when the robot is turned on again, it knows what side it is on without a switch.
|
If I understand your question correctly, yes, data will be retained even after you power cycle the robot controller.
Quote:
|
Originally Posted by CJO
Also, I am assuming that the read time is negligable compared to the write time (I.E. one does not need to woory about avoiding interrupts when reading?)
|
Yes, reads are much faster than writes and you don't (as far as I know) have to worry about interrupts when reading.
-Kevin