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

trouble with multiple interrupts

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



Joined: 26 Nov 2004
Posts: 10

View user's profile Send private message Send e-mail MSN Messenger

trouble with multiple interrupts
PostPosted: Fri Nov 26, 2004 1:56 pm     Reply with quote

I am currently coding an experiment using a pic16f877 for a psychology professor.

I am using 3 interrupts: timer1 (to act as a millisecond timer), ext (to monitor an external button box), and RDA (to check if there is data from the serial port available).

My problem arises when I added the third interrupt. Up to that point my code would compile with approximately ROM at 48% used, and RAM at 68% used.

As soon as I add the serial interrupt it says there is not enough ram left. If I simply remove the #INT_RDA line from above my serial_isr() the program compiles fine.

am i really out of ram?
_________________
darryl
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Nov 26, 2004 2:11 pm     Reply with quote

Use the "#device *=16" statement to allow use of all ram in the 16F877.
See this thread for an example:
http://www.ccsinfo.com/forum/viewtopic.php?t=20807
djwallace



Joined: 26 Nov 2004
Posts: 10

View user's profile Send private message Send e-mail MSN Messenger

PostPosted: Fri Nov 26, 2004 2:15 pm     Reply with quote

Thank you!

that worked instantly Very Happy
_________________
darryl
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