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

ccs and interrupt priorities

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
dave.t
Guest







ccs and interrupt priorities
PostPosted: Fri Dec 13, 2002 10:04 am     Reply with quote

Hi all.
Could any one explain how ccs deals with interrupt priorities.
an example:
#priority ext,timer1,timer2
How does the priority system work and are there any pitfalls to watch for!
Many thanks.
Dave Teece
___________________________
This message was ported from CCS's old forum
Original Post ID: 10032
R.J.Hamlett
Guest







Re: ccs and interrupt priorities
PostPosted: Fri Dec 13, 2002 10:38 am     Reply with quote

:=Hi all.
:=Could any one explain how ccs deals with interrupt priorities.
:=an example:
:= #priority ext,timer1,timer2
:=How does the priority system work and are there any pitfalls to watch for!
:=Many thanks.
:=Dave Teece
All it changes, is the order that the global routine, checks the possible interrupt sources. So with your example, the code will save the registers then check the 'ext' source to see if it has caused the interrupt. This has two effects. The first is that the latency to the 'ext' code will be shorter than to the other routines, and the second is that in the event of two interrupts happening together (both being triggered in the time between starting the routine, and arriving at the test), the ext interrupt will be the one that receives service, while the other will then have to wait for the ext routine to complete, the registers to be restored, and the handler exited, before then receiving service.
The obvious problem, is in the event that a relatively slow handler, which is frequently triggered, is put into a high priority location, lower priority interrupts, may never get serviced...

Best Wishes
___________________________
This message was ported from CCS's old forum
Original Post ID: 10034
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