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

Put a lot of data in the ROM

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



Joined: 12 Jan 2006
Posts: 5
Location: Germany

View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger

Put a lot of data in the ROM
PostPosted: Thu Mar 02, 2006 5:38 pm     Reply with quote

Hi, Smile

for a display application I need to store a lot of bitmaps, actually bytes.
I use a PIC18F452 which has 32KB of ROM and I think I'll take 16K for the program and 16K for data.
Idea OK, I know I can use #ORG to reserve space and read_program_eeprom() to get data from the ROM but how can I put the data there. I don't need variable names or array structure or something, just a lot of bytes all after another in the ROM.
Question Is that possible? Do I have to care for different memory banks?

Thanks for any suggestions,
Thomas
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Mar 02, 2006 5:53 pm     Reply with quote

Quote:
but how can I put the data there

Use the #rom directive. See this thread for details:
http://www.ccsinfo.com/forum/viewtopic.php?t=23914
thb2
Guest







I'll try..
PostPosted: Thu Mar 02, 2006 6:02 pm     Reply with quote

Hi,
thanks for the fast reply, I'll try that tomorrow (now it's 1:00).

Thomas
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