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

Store board serial number in High-Endurance Flash

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



Joined: 22 Dec 2003
Posts: 82

View user's profile Send private message

Store board serial number in High-Endurance Flash
PostPosted: Tue Oct 07, 2014 3:53 am     Reply with quote

Can someone please help me with a code to store parameters like board serial number or product ID into the "High-Endurance Flash" like in 16F1507 device?
Can I store the parameters during run-time or just during chip burning?

Thanks in advance.
asmboy



Joined: 20 Nov 2007
Posts: 2128
Location: albany ny

View user's profile Send private message AIM Address

PostPosted: Tue Oct 07, 2014 8:49 am     Reply with quote

see:
write_program_memory()

in the CCS manual as you have no eeprom in your desired PIC
Ttelmah



Joined: 11 Mar 2010
Posts: 19541

View user's profile Send private message

PostPosted: Tue Oct 07, 2014 9:45 am     Reply with quote

Also remember that with the program memory, you have to erase an entire page at a time. 32bytes. The high endurance, _only_ applies to the low byte of each word in the area.
edi



Joined: 22 Dec 2003
Posts: 82

View user's profile Send private message

PostPosted: Tue Oct 07, 2014 10:53 am     Reply with quote

Many thanks.
Do you have an example code for the erase + program a short string please?
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