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

16F877 Usable RAM space?

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



Joined: 20 Sep 2003
Posts: 2

View user's profile Send private message

16F877 Usable RAM space?
PostPosted: Wed May 26, 2004 9:39 am     Reply with quote

I have run out of available RAM space in my project and am wondering if the compliler make full use of available RAM in the 16F877. When I look at the .SYM file created I don't see any ram in the areas 120 - 16F and 1A0 - 1EF being used. Also when I count up my variables I get nowhere near the 320+ bytes I would expect to have available. Am I missing something.
Ttelmah
Guest







Re: 16F877 Usable RAM space?
PostPosted: Wed May 26, 2004 10:10 am     Reply with quote

rbaxter wrote:
I have run out of available RAM space in my project and am wondering if the compliler make full use of available RAM in the 16F877. When I look at the .SYM file created I don't see any ram in the areas 120 - 16F and 1A0 - 1EF being used. Also when I count up my variables I get nowhere near the 320+ bytes I would expect to have available. Am I missing something.

#device *=16

Without this, only 8 bit pointers will be used for RAM, restricting the available space to the area below 0x100.
The disadvantage is that the ROM size will be larger (expect your code to grow by perhaps 10 to 20% when you enable this option).
Put the option at the top of the code, immediately after the line including the chips definition file.

Best Wishes
rbaxter



Joined: 20 Sep 2003
Posts: 2

View user's profile Send private message

PostPosted: Wed May 26, 2004 10:20 am     Reply with quote

That did it. Thank you.
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