Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Access to FLASH ROM in RC? (http://www.chiefdelphi.com/forums/showthread.php?t=24969)

Alan Anderson 09-02-2004 09:11

Access to FLASH ROM in RC?
 
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

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

Alan Anderson 09-02-2004 10:58

Re: Access to FLASH ROM in RC?
 
Quote:

Originally Posted by Mark McLeod
The way to store your values is to use EEPROM.
Check the thread of EEPROM http://www.chiefdelphi.com/forums/showthread.php?t=22655

Thank you. That is exactly what I needed.


All times are GMT -5. The time now is 04:19.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi