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

Fill EEPROM on PIC18F8585

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








Fill EEPROM on PIC18F8585
PostPosted: Mon Nov 15, 2004 7:02 am     Reply with quote

Hello every body,

I use the EEPROM of PIC18F8585 as parameter table, I'd like fill a default table for the first run.

Do you know how I can do to fill EEPROM with value at compil step.

I found this solution
#rom ADD_OF_EEPROM = {0x1234}
with ADD_OF_EEPROM = 0x0F0000

what do you think about that? does the address is correct?

Many thank
Thierry
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Nov 15, 2004 1:41 pm     Reply with quote

The address of the Data EEPROM is usually given in the Programming
Specification for the PIC.

So go here, to the 18F8585 page:
http://www.microchip.com/stellent/idcplgidcplg?IdcService=SS_GET_PAGE&nodeId=1335&dDocName=en010321

Then download the Programming Specification. Then look for the
section in that document called:
"Embedding Data EEPROM Information In the HEX File".
Then you will find the address.
Guest








PostPosted: Wed Nov 17, 2004 8:06 am     Reply with quote

Many thanks Very Happy

Thierry
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