Log in

View Full Version : Access to FLASH ROM in RC?


Alan Anderson
09-02-2004, 09:11
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?

Mark McLeod
09-02-2004, 09:37
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 22655

Alan Anderson
09-02-2004, 10:58
The way to store your values is to use EEPROM.
Check the thread of EEPROM 22655
Thank you. That is exactly what I needed.