Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 612

Interrupts allow the processor to suspend normal operation temporarily so that a high-priority software or hardware event can be handled instead.

4 votes

Why is that any sensor signal need to be hooked up to the interrupt pins on Andruino boards?

But to add to that, it isn't a universal requirement to even use an interrupt. … Often the best solution is a hybrid approach - an interrupt service routine records events - especially ones which might vanish or be repeated before the main program loop can poll for them. …
Chris Stratton's user avatar
1 vote

Reset as I/O pin

Yes, there are several possibilities here. One is detecting state after reset and acting on it. One of the reasons you might do that would be to shut the processor down all but completely, and let t …
Chris Stratton's user avatar
2 votes
Accepted

Why PJ0 and PJ1 are not reporting as PCINT pins

Which is to say that David Mellis didn't write those lines for generic interrupt use as part of pins_arduino.h, but rather moved code originally written as part of the software serial library to this file … It's not exactly clear who the original author speaking as "I" in the comment is - the Mega-specific code in question appears to come most immediately from Mikal Hart's extension of Ladyada's Uno-only interrupt
Chris Stratton's user avatar
3 votes
Accepted

Why does my Arduino keep waking up?

Arduino's buffered serial output is interrupt-based, in that it uses interrupts to refill the UART transmit register when it runs empty, until the software-managed transmit buffer has been drained. …
Chris Stratton's user avatar
1 vote
Accepted

ATtiny85 soft-latching, and sensor-waking: Are multiple switches differentiable by pin chang...

Where things get more complicated is if you enable more than one pin to trigger the pin-change interrupt. … Then you can re-enable the interrupt and go back to sleep. …
Chris Stratton's user avatar
1 vote

Unstable system when controlling power to serial peripheral devices and sleeping

Using an NPN transistor to control power to a peripheral may be problematic. An NPN transitor would presumably be used as a low-side switch interrupting the peripheral's ground line, however, even wh …
Chris Stratton's user avatar