Open GoogleCodeExporter opened 9 years ago
A note: The line
EIFR |= (1 << INTF0);
must, as written, come before the activation of the external interrupt pin by
use of
EIMSK |= (1 << INT0);
This is because if the flag is set at the point when the external interrupt is
activated, the interrupt will be called before the flag is unset.
Original comment by kylehard...@gmail.com
on 23 Mar 2011 at 5:44
Attached is a copy of WInterrupts.c that I'm currently using which is updated
with the fix for all conditions, so no one has to waste time duplicating effort.
Original comment by kylehard...@gmail.com
on 26 Mar 2011 at 5:49
Attachments:
I had the same problem in my sketch and fixed it by setting INTF0 in EIFR, as
you did.
I hope your fix is soon incorporated.
Original comment by sakud...@gmail.com
on 28 Dec 2011 at 3:21
Original comment by dmel...@gmail.com
on 11 Mar 2012 at 5:16
Issue 852 has been merged into this issue.
Original comment by dmel...@gmail.com
on 11 Mar 2012 at 5:17
[deleted comment]
I have also verified this issue.
Further, we should add a note in the documentation about interrupts indicating
that while interrupts are disabled with cli(), they will still be tracked in a
pending interrupts register. So when you re-enable interrupts, the handler
will be called. Maybe this is my own fault for not remembering the "joy" of
interrupt programming on x86 platforms 20 years ago.. :) But docs would be
good. Heck, we should even write a simple "clear pending interrupts" function
for folks. Just my $0.02.
Thanks
Original comment by digi...@gmail.com
on 5 Apr 2013 at 4:36
I've encountered this issue as well and am trying to incorporate the changes
here, can anyone direct me to some information as to how I can use the modified
Winterrupts.c file? I've changed the files in my Arduino installation and this
seems to have no effect. I also changed the suffix on these file and this
(surprisingly) didn't result in any complaints from the compiler. Any ideas?
Thanks!
Original comment by yish...@gmail.com
on 24 Aug 2013 at 8:45
Original issue reported on code.google.com by
kylehard...@gmail.com
on 23 Mar 2011 at 5:33