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
Re: Masking Multiple Interrupts
Posted: Sat Jul 28, 2007 6:40 am
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?
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