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

Interrupt Levels - Saving registers ??

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



Joined: 25 Oct 2004
Posts: 136

View user's profile Send private message

Interrupt Levels - Saving registers ??
PostPosted: Sun Apr 10, 2005 3:11 pm     Reply with quote

Hi All,

After searching the forum I couldnt find a sample of how and which registers I should save when using fast interrupts

Can somebody give me some hints or smaples of how dealing with this ?

best regards
Andreas
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Apr 10, 2005 3:27 pm     Reply with quote

Quote:

After searching the forum I couldnt find a sample of how and
which registers I should save when using fast interrupts.
Can somebody give me some hints or smaples of how dealing with this ?

Did you see this thread ?
http://www.ccsinfo.com/forum/viewtopic.php?t=19498
future



Joined: 14 May 2004
Posts: 330

View user's profile Send private message

PostPosted: Sun Apr 10, 2005 3:46 pm     Reply with quote

Fast interrupts must be coded in a way that no external registers are changed or save/restore everything you change.

Code something then watch the generated asm.

In the other thread, I was having problems with the scratch register 3. I did not see that it was being changed.
Andreas



Joined: 25 Oct 2004
Posts: 136

View user's profile Send private message

PostPosted: Mon Apr 11, 2005 12:30 am     Reply with quote

Thank You PCM Programmer,

No I didnt See this topic.

For me I think the search function is not very efficient, when searching for interrupt fast I get hundreds of threads.

Thanks for pointing me there, I will try to understand it now. Also the linkjs within this thread have been very helpful

best regards
Andreas
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