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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/01/00 19:44
Read: times


 
#2987 - RE: Delay code
Hi,

Here is a delay code in C:
You may have to change x value to suit your microcontroller

void delay(int ms)
{
int x;
while(ms--) {
x = 162; // 24MHZ with DS80C320 CPU
while(x--);
}
}

-Suba

List of 18 messages in thread
TopicAuthorDate
Delay code            01/01/70 00:00      
RE: Delay code            01/01/70 00:00      
RE: Delay code            01/01/70 00:00      
RE: Delay code            01/01/70 00:00      
RE: Delay code            01/01/70 00:00      
RE: Delay code            01/01/70 00:00      
RE: Delay code            01/01/70 00:00      
RE: Delay code            01/01/70 00:00      
RE: Delay code            01/01/70 00:00      
RE: Delay code            01/01/70 00:00      
RE: Delay code            01/01/70 00:00      
RE: Delay code            01/01/70 00:00      
RE: Delay code            01/01/70 00:00      
RE: Delay code            01/01/70 00:00      
Interfacing 8051 with infrared devices            01/01/70 00:00      
RE: Interfacing 8051 with infrared devices            01/01/70 00:00      
RE: Delay code            01/01/70 00:00      
RE: Interfacing 8051 with infrared devices            01/01/70 00:00      

Back to Subject List