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

Interrupting interruption.

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



Joined: 10 Dec 2011
Posts: 376
Location: Sofiq,Bulgariq

View user's profile Send private message

Interrupting interruption.
PostPosted: Mon Nov 26, 2012 6:41 am     Reply with quote

Is that possible one interuption (for example #INT_RDA) to interrupt another (for example #INT_RB)? In other words, If an interrupt is active, could it be interrupted?
dyeatman



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

View user's profile Send private message

PostPosted: Mon Nov 26, 2012 9:16 am     Reply with quote

Yes and No. First we have to know which model PROCESSOR. Some have High
Priority Interrupts, some do not...
_________________
Google and Forum Search are some of your best tools!!!!


Last edited by dyeatman on Mon Nov 26, 2012 9:17 am; edited 1 time in total
Ttelmah



Joined: 11 Mar 2010
Posts: 19369

View user's profile Send private message

PostPosted: Mon Nov 26, 2012 9:16 am     Reply with quote

PIC16 no.
PIC18, if you enable 'HIGH_INTS=TRUE' in #device, then you can flag individual interrupt handlers as high priority. A high priority handler can then interrupt a low priority one.
If HIGH_INTS is enabled, INT_EXT,_is always a high priority handler_. So in the example you give, INT_RDA can interrupt INT_RB, but could not interrupt INT_EXT. This is a feature of the hardware - nothing you can do about it.....
PIC24, yes.
Generally though, provided you exit handlers quickly, it is not needed. As soon as you exit one handler, the next will be called. The flag is remembered.
Key though is that you must get out of handlers quickly.....

Best
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