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

SX Compiler adding too much interrupt code.

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



Joined: 11 Nov 2003
Posts: 118

View user's profile Send private message

SX Compiler adding too much interrupt code.
PostPosted: Mon Mar 01, 2004 1:49 pm     Reply with quote

I am working on a project that is very time critical to the cycle. I need to detect RTCC overflow, inc. a variable, and get out quick. I compiled my code and the CCS compiler for the SX chip adds in all this code to save all kinds of registers before executing the routine. I am guessing it is using these registers for holding misc. temp. data. I don't need it! Is there a way to keep it from creating this extra code?
Neutone



Joined: 08 Sep 2003
Posts: 839
Location: Houston

View user's profile Send private message

PostPosted: Mon Mar 01, 2004 2:00 pm     Reply with quote

If you can manualy check the interupt flag more often than it can be set you can simply move the functionality from within your interupt to the main program area.
Darren Rook



Joined: 06 Sep 2003
Posts: 287
Location: Milwaukee, WI

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

PostPosted: Mon Mar 01, 2004 4:27 pm     Reply with quote

Write your own interrupt service routine.
dyeatman



Joined: 06 Sep 2003
Posts: 1933
Location: Norman, OK

View user's profile Send private message

INT Code
PostPosted: Mon Mar 01, 2004 4:32 pm     Reply with quote

Use the CCS Global Interrupt call and create your own. Then you can do anything you like in C or assembler (I assume you would prefer assembler since it would only be a few instructions). Many of us have done this in time critical appilications.

Search for the topic number below I found doing a SEARCH on this web site:

144515295

I feel sure it will answer most of your questions.
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