Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/18/09 09:54
Read: 3987 times


 
#162553 - Delay loop in C Programming
Hi all,

I am using Keil C and 8051 (12MHz Xtal). I am wondering how do I calucate the delay time. For example,

void delay (int ms)
{
char k;
while (ms--)
{
for (k=0, k < 120; k++);
}
}

thanks,


Harrison

List of 5 messages in thread
TopicAuthorDate
Delay loop in C Programming      Harrison Cheung      02/18/09 09:54      
   you can't        Erik Malund      02/18/09 09:59      
      Timer ticks        Per Westermark      02/18/09 10:28      
      It's IMPOSSIBLE - but here's how...      Andy Neil      02/18/09 10:30      
   You do not      Per Westermark      03/24/09 02:35      

Back to Subject List