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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/25/02 18:21
Read: times


 
#22159 - RE: Delays in C
Good enough delays can be made in C,
You can look at the SRC and calculate the exact time constant required. Or you can scope it. The 4ms is not critical.

unsigned int delay;
delay = 4000 * SOMEFACTOR;
while (delay!=0) delay--;

of course, you make that a function for clarity, since you do it several times.

List of 26 messages in thread
TopicAuthorDate
Assembly on C programm            01/01/70 00:00      
   Delay routine for 30 seconds.            01/01/70 00:00      
      RE: Delay routine for 30 seconds.            01/01/70 00:00      
         RE: Delay routine for 30 seconds.            01/01/70 00:00      
            RE: Delay routine for 30 seconds.            01/01/70 00:00      
RE: Assembly on C programm            01/01/70 00:00      
RE: Assembly on C programm            01/01/70 00:00      
RE: Assembly on C programm            01/01/70 00:00      
RE: Assembly on C programm            01/01/70 00:00      
RE: Assembly on C programm            01/01/70 00:00      
RE: Assembly on C programm -Bryan            01/01/70 00:00      
RE: Assembly on C programm - Erik            01/01/70 00:00      
RE: Assembly on C programm - Andy            01/01/70 00:00      
RE: Delays in C            01/01/70 00:00      
RE: Assembly on C programm            01/01/70 00:00      
RE: Assembly on C programm            01/01/70 00:00      
RE: Assembly on C programm            01/01/70 00:00      
RE: Assembly on C programm            01/01/70 00:00      
RE: Assembly on C programm, Erik            01/01/70 00:00      
C Compiler output            01/01/70 00:00      
RE: C Compiler output            01/01/70 00:00      
RE: C Compiler output            01/01/70 00:00      
RE: C Compiler output            01/01/70 00:00      
RE: C Compiler output            01/01/70 00:00      
RE: C Compiler output            01/01/70 00:00      
RE: C Compiler output Andy            01/01/70 00:00      

Back to Subject List