Thread: EEPROM Code
View Single Post
  #4   Spotlight this post!  
Unread 11-10-2005, 20:21
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: EEPROM Code

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
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org