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
Posted: Mon Mar 01, 2004 2:00 pm
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
Posted: Mon Mar 01, 2004 4:27 pm
Write your own interrupt service routine.
dyeatman
Joined: 06 Sep 2003 Posts: 1938 Location: Norman, OK
INT Code
Posted: Mon Mar 01, 2004 4:32 pm
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.
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