Search Results
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 |
Interrupts allow the processor to suspend normal operation temporarily so that a high-priority software or hardware event can be handled instead.
1
vote
2
answers
146
views
Code Optimization: Interrupt when a value reaches 0
It works, but my main concern is, currently, I am using a if statement in the void loop(), and I am certain that, using an interrupt when a specific variable has reached 0, would improve efficiency.
byte … Is it possible to set up an interrupt for when a certain variable reaches 0?
Which option would require less computing power, a continually called if loop, or an interrupt? …
2
votes
0
answers
356
views
Wake up from a pin, Sleep when work is done
I have a project which needs to sleep most of the time, and when a button gets pressed, it does its thing which is producing a fading sound wave (using interrupts) until it's time to sleep again.
The …
0
votes
1
answer
315
views
Arduino to AtTiny change of pin interrupt behaviour?
I have a project which, to save on battery, is put to sleep until an interrupt pin is rising from LOW to HIGH.
This works well on Arduino Nano, however the translation doesn't on the ATTiny. … Yet, the interrupt pin does not interrupt.
Does the INT0 act differently on a ATTiny than on the Arduino, and if so, how can I wake up my AtTiny? …
2
votes
1
answer
293
views
Timer question: Phase Correct PWM at specific frequency
I have trouble understanding the following:
Which Wave Generator Mode and Matches will cause an interrupt at the constant Frame as well as help do a phase correct/fast PWM for the varying Duty Cycle? …
1
vote
1
answer
98
views
How to specify a timer's name depending on the chip it will be compiled to?
I need to enable a timer interrupt for a chip, and in the mean time, I am testing the code on Arduino Nano rather than (feed the chip, test the chip)++. …