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 support@ccsinfo.com

EEProm questions

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



Joined: 22 May 2008
Posts: 63
Location: Madison, TN

View user's profile Send private message Visit poster's website

EEProm questions
PostPosted: Fri Nov 28, 2014 6:00 pm     Reply with quote

Placing multiple configuration values into eeprom storage during programming I use
//For the PIC16LF1828 the eeprom start address is 191h
int16 const PromStart = getenv("eeprom_address");
#ROM PromStart = {data0,data1,etc};


When the program is running do I use
write_eeprom(1, new_data1);
or
write_eeprom(PromStart + 1, new_data1); ?

I think it's the first choice but the documentation does not make that clear to me.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Nov 28, 2014 6:19 pm     Reply with quote

The write_eeprom() address parameter starts at 0.
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