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

Masking Multiple Interrupts

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








Masking Multiple Interrupts
PostPosted: Sat Jul 28, 2007 5:28 am     Reply with quote

Hello,
PIC18F6722
Let's say I have 2 interrupts occuring at the same time on int_ext2 and int_ext3. I'd like to service int_ext3 but NOT int_ext2. What would be the best way?

if i set:
#priority int_ext3,int_ext2

Should I disable and clear int_ext2 inside the int_ext3 service routine?

Thanks, Gary
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

Re: Masking Multiple Interrupts
PostPosted: Sat Jul 28, 2007 6:40 am     Reply with quote

Anonymous wrote:
Let's say I have 2 interrupts occuring at the same time on int_ext2 and int_ext3. I'd like to service int_ext3 but NOT int_ext2. What would be the best way?

if i set:
#priority int_ext3,int_ext2

Should I disable and clear int_ext2 inside the int_ext3 service routine?
This is one option and should work fine.
I don't know your application, but maybe you have to rethink your algorithm. It takes time to handle an interrupt, so what is supposed to happen when both interrupts are not active at the same time but very close after each other?
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