Skip to main content

New answers tagged

0 votes

Tightest finite wait loop possible in AVR8

Just an addition to the other answers, which are otherwise perfect. The avr-libc provides two header files to busy-wait for constant or variable times. I assume the implementers strove to use optimal ...
the busybee's user avatar
  • 3,034
0 votes

Tightest finite wait loop possible in AVR8

Is there a way to create a finite wait loop where the execution of one loop takes only two cycles (or even one)? Yes, kind of. Assumption is that the delay is known at assembly time. Solution is to ...
emacs drives me nuts's user avatar
6 votes
Accepted

Simple voltage dependent on/off-delay switch circuit

Your circuit won't switch the load cleanly on or off, with such a slow-slewing battery voltage. The load's voltage will change faster than battery voltage, due to the transistor's gain, but still not ...
Simon Fitch's user avatar
  • 35.2k
3 votes

Tightest finite wait loop possible in AVR8

No loop can be shorter than one iteration, as it would mean there can be no loop code to begin with. Many compilers handle this scenario by introducing a macro or inline function to wait requested ...
Justme's user avatar
  • 149k

Top 50 recent answers are included