Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
you can use simple for loop
unsigned int i;
for (i=0; i<0xFFFF; i++);
note that the above delay is only estimation, and depends on many factors such as compiler optimization. if the compiler optimization is turned on it may ignore the loop..
another way for delay is probably to use the timer of your MCU. this can achieve more accurate delay as you wish.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.