Arduino Forum

Products => Arduino Due => Topic started by: alirazaviarduino on Aug 09, 2019, 11:26 am

Title: Program Do Not Exit From the ISR (Interrupt)
Post by: alirazaviarduino on Aug 09, 2019, 11:26 am
Hi everyone

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.
Title: Re: Program Do Not Exit From the ISR (Interrupt)
Post by: pert on Aug 09, 2019, 11:49 am
Please post your full sketch.

If possible, you should always post code directly in the forum thread as text using code tags:


This will make it easy for anyone to look at it, which will increase the likelihood of you getting help.

If the sketch is longer than the 9000 characters maximum allowed by the forum, then it's OK to add it as an attachment. After clicking the "Reply" button, you will see an "Attachments and other settings" link.

When your code requires a library that's not included with the Arduino IDE please post a link (using the chain links icon on the forum toolbar to make it clickable) to where you downloaded that library from or if you installed it using Library Manger (Sketch > Include Library > Manage Libraries in the Arduino IDE or Libraries > Library Manager in the Arduino Web Editor) then say so and state the full name of the library.