I am using Arduino due, and I exploit the rising edge interrupt on a PIO pin to capture an external interrupt.
I tried two ways to implement it:
1- The simple code suggested in Arduino reference, with attachInterrupt function
2- I use the rising edge interrupt on TIOB8 (Interrupt on timer input pins)
In both, when the program enters the ISR for the first time, it does not exit from it.
I use LEDs to check whether the program exits form the ISR not. In other words, there is a LED that blinks in an infinite loop, and when the interrupt enabled, it stops blinking.
Please help me to solve my problem.