View Single Post
  #2   Spotlight this post!  
Unread 09-02-2004, 09:37
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,801
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Access to FLASH ROM in RC?

Quote:
Originally Posted by Alan Anderson
I know how to put constants in ROM. Is there any way I can put "variables" there? I want specifically to keep calibration parameters somewhere so they don't disappear when the robot is powered down, but are still changeable by the program itself when necessary. I think reloading the program just to tweak a position feedback parameter is a bit klunky.

I expect there's someplace in the PIC I can stash things like that, but I don't know where to look to find out what I need to know in order to do it. Does anyone have some pointers for me?
Sorry, you can't write to Read Only Memory.
The way to store your values is to use EEPROM.
Check the thread of EEPROM http://www.chiefdelphi.com/forums/showthread.php?t=22655
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle