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