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

Using #rom for internal EEPROM

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



Joined: 03 Nov 2005
Posts: 7

View user's profile Send private message

Using #rom for internal EEPROM
PostPosted: Mon Nov 28, 2005 11:41 pm     Reply with quote

Well I know that I should be able to find an answer somewhere, but I've been searching the 18f452 datasheet and haven't been able to find it.

I need to set the first 8 bytes of EEPROM to 0 in my hex file.

This should do the trick
#rom 0xXXXX = {0,0,0,0,0,0,0,0}

Only I don't know what the EEPROM address is (0xXXXX).

How do I find the address of the first EEPROM location? Or even better, what is the address for EEPROM in a 18f452?

Thanks alot,
forgie
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Nov 28, 2005 11:57 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 Data Sheet Finder page on the Microchip website:
http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=2046

Then select 18F452 in the drop down box and wait for the page to load.

Then download the Programming Specification. The link is down on
the bottom of the right-hand side of the page.

Then in the Programming Spec, look for the section called:
"Embedding Data EEPROM Information In the HEX File".
It's near the end of the document. There you will find the address.
forgie



Joined: 03 Nov 2005
Posts: 7

View user's profile Send private message

PostPosted: Tue Nov 29, 2005 12:15 am     Reply with quote

Great, thanks heaps for the pointer.
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