Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

programming

Status
Not open for further replies.
Millions of reasons why. A few of the more common reasons being waiting for external input, turning on an LED for 1 second (LEDon; Delay(1); LEDoff; ), waiting for a routine to finish, waiting for a device to become ready. You'll know when you need to use it.
 
Last edited:
Note that when using delay(), usually (I can't say in all instances - depends on how the delay() function is implemented in the library and the microcontroller used) the rest of your program is "suspended" during the delay; you can, however, write a different set of routines that can work similar to delay() to allow you to continue doing processing (a form of multitasking) if you need to (however, the timing of this new delay function probably won't be as accurate).
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top