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 16:54
Read: 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            01/01/70 00:00      
   you can't            01/01/70 00:00      
      Timer ticks            01/01/70 00:00      
      It's IMPOSSIBLE - but here's how...            01/01/70 00:00      
   You do not            01/01/70 00:00      

Back to Subject List