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
Posted: Tue Oct 07, 2014 8:49 am
see:
write_program_memory()
in the CCS manual as you have no eeprom in your desired PIC
Ttelmah
Joined: 11 Mar 2010 Posts: 19495
Posted: Tue Oct 07, 2014 9:45 am
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
Posted: Tue Oct 07, 2014 10:53 am
Many thanks.
Do you have an example code for the erase + program a short string please?
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