write in ROM:
I want to put a variable in the ROM in every perform the program and when becom restart the PIC this variable available in the PIC.
may I write this program ?
can you help me?
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
Posted: Tue Sep 11, 2007 5:48 am
Writing data to the (flash) ROM on every program startup is not a good idea because of the limited erase cycles you can do before the chip breaks down (chip type dependend). Much better to use the EEPROM.
Check the manual for the read_eeprom() and write_eeprom() functions.
An example program can be found in the example directory of the compiler: ex_intee.c
ROBOTICAR
Joined: 28 Aug 2007 Posts: 45
Posted: Tue Sep 11, 2007 10:14 am
Thanks for relpy
So,How can I save the "int32" variable in the EEPROM and read it?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum