hi,
I has a query about using external interrupt ie., how many times the function called in interrupt executes.
For example if i used
attachInterrupt(int2,function(), HIGH)
Then is the function() exected repeatedly untill the int2 is high???
And if my program is executing at some point above are below the attachinterrupt() function and if my condition for interrupt is satisfied, then my program executes the function specified immediately???
Answers to your questions here.
http://arduino.cc/en/Reference/AttachInterrupt
If the interrupt mode is high (Due, only, has high mode), the interrupt will fire whenever the interrupt pin is high. So the pin needs to go low during the interrupt service routine or as soon as the ISR exits the interrupt will fire again. I don't think that the processor cares about interrupt conditions before attachInterrupt, only the actions after the attachInterrupt is executed.