I've been using the HW Interrupts on the DUE for my extensive project and I've notices what seems to me to be a compiler issue.
When a HW ISR executes it seems to do so 2 times no matter what. I am unsure why and I would very much like to look at the base code for attachInterrupt(); and noInterrupts(); the problem is either in the idea that it takes a few clock cycles to turn off interrupts in noInterrupts(); or the compiler is inherently flawed.
Let me give you an example.
with out getting into to much detail on what my project is and what I am doing let me explain the above mentioned ISR.
signal goes low, based on a variable "currentDirection" another variable "column" is increased or decreased.
First I saw that the program was double calling the function unsure how this was possible seeing as I turn off interrupts and detach the HW ISR from the pin prior to doing anything else.
Does anyone else know why this might be happening? As I said I think it is a compiler issue.