CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

write_program_memory() for data storage PIC18Fxxxx?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Ken Johnson



Joined: 23 Mar 2006
Posts: 197
Location: Lewisburg, WV

View user's profile Send private message

write_program_memory() for data storage PIC18Fxxxx?
PostPosted: Thu Sep 21, 2006 9:47 am     Reply with quote

Using a high-end 18Fxxxx (perhaps 8722), I need to store some user setup info, more than will fit in 1K EEPROM.

What are the pros/cons of putting it in some un-used program memory using read/write_program_memory()?

Thanks,
Ken'
Ttelmah
Guest







PostPosted: Thu Sep 21, 2006 9:57 am     Reply with quote

Number of cycles. The program memory has a much lower write life multiple than the EEPROM.
Block size. Normally the program memory has to be written in a block, not as a single byte (CCS has functions that hide this from you - write_program_eeprom - but remember if you use this, and change several bytes in one block, all the bytes have then had as many cycles, as write operations...).
Timings. With the EEPROM, other things can occur while the memory is written. With the program memory, the processor actually has to effectively stop during the write. This can interfere with things like serial communication etc..
If the data is likely to have to change at all frequently, consider just adding an external EEPROM.

Best Wishes
newguy



Joined: 24 Jun 2004
Posts: 1911

View user's profile Send private message

PostPosted: Thu Sep 21, 2006 10:58 am     Reply with quote

Someone on this forum has, for years, raved about Ramtron FRAM serial memories. I have recently started using them based on this person's positive reviews (sorry, can't remember who), and they are superb. They have an essentially unlimited lifetime and come in I2C or SPI interfaces. Great products, I highly recommend them.
Ken Johnson



Joined: 23 Mar 2006
Posts: 197
Location: Lewisburg, WV

View user's profile Send private message

PostPosted: Thu Sep 21, 2006 11:38 am     Reply with quote

Just read about the Ramtron FRAM - looks like the answer

Many thanks,
Ken
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group