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
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
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 user 6383

A mechanism for the control of program flow in a computer. When interrupted a computer saves it's present operational state and changes to execution of code that is dependent upon which interrupt was generated. Interrupts can be either hardware-sourced or software-sourced; software-sourced interrupts are called traps. It is an alternate mechanism to polling and is the basis around which most I/O, multitasking and control is implemented.

1
vote
To me, avoiding nesting interrupts does not seem too bad or even absurd. In fact, nested interrupts may cause more problems than they solve. I'm specifically referring to memory used to save/restore …
answered Apr 10 '14 by JimmyB
8
votes
A minimal software PWM could look like this: volatile uint16_t dutyCycle; uint8_t currentPwmCount; ISR(TIM0_COMPA_vect){ const uint8_t cnt = currentPwmCount + 1; // will overflow from 255 to 0 …
answered Jul 24 '18 by JimmyB
1
vote
Don't bother (yet) to use assembler. You don't need that. However an important (general) point is: Don't call blocking functions from within an ISR! An ISR should never have to wait for anything. Vi …
answered Jun 27 '13 by JimmyB
2
votes
: void loop(){ cli(); // Disable interrupts to avoid race condition. if ( !resetEsp ) { // Only go to sleep if we have nothing to do right now. // Safe(*) code from the example in avr … time } } The point here is that we disable all interrupts while we check to see if we want to go to sleep. This way, we make sure that no interrupt can happen after we checked but before we …
answered Sep 20 '16 by JimmyB