Joined: 10 Dec 2011 Posts: 376 Location: Sofiq,Bulgariq
Double interrupt doesnt work
Posted: Wed Dec 11, 2013 3:37 am
Hello Guys! I am trying to create a code that should respond on two pin interrupt H2L edge.The first interrupt is INT_RB7_H2L and second one is INT_RA5_H2L. The problem is that only one works, depends on which one has bigger priority. I simplified the code for easily understanding the issue.
Here is the code:
Sorry for bad English!
Thanks in advance! _________________ A person who never made a mistake never tried anything new.
Ttelmah
Joined: 11 Mar 2010 Posts: 19496
Posted: Wed Dec 11, 2013 9:38 am
The compiler clears the physical interrupt for you - so get rid of the line doing this.
However what it doesn't do is clear the IOCB flags. These are a set of flags to say 'which pin' triggered the interrupt.
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