<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">I am not an expert, but I think this is a very complex question.   It probably depends on the simplicity of the program execution environment mostly, how you code somewhat, and the processor speed a bit.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">If you can get your main program to start up at soon as the power causes a reset and you do not have anything execute before the IO pin toggle command but maybe some IO setup code, then this could be very fast like a few clock cycles.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">But if a bunch of code executes before your main program to setup the microcontroller (like loading things into RAM for speed, and other C and library stuff) it could take a programming environment dependent time, with more complex environments taking longer?  The worst case here is many seconds like a linux boot time.  My guess is simple environments like Arduino IDE do not take too long, and assembly language environments are very fast.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">My guess is a good Assembly language programmer or clever C coder can greatly reduce this time on any processor.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">So if you stick with vanilla C IDEs on common 8-bit micros who knows, It would be interesting to see if anybody has measured this on common Arduino / ARV  / PIC 8-bit devices and common IDEs.  I did not find anything about startup speed when I searched.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Cheers,</div></div>