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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/13/03 06:21
Read: times


 
#36300 - RE: how to set the delay time to 15 seconds?
1) Program a timer to generate interrupt after every 50 msec (assuming you are using 12MHz)
2) Use a variable to count the number of timer ISR, and act when your desired time is finished.

e.g. with 50 msec timer, a delay of 1 sec requires that timer interrupt occurs 20 times.

Of course, there are lot of other possible ways and if you are using C, then what is problem obtaining the required delay?



List of 7 messages in thread
TopicAuthorDate
how to set the delay time to 15 seconds?            01/01/70 00:00      
RE: how to set the delay time to 15 seconds?            01/01/70 00:00      
RE: how to set the delay time to 15 seconds?            01/01/70 00:00      
RE: how to set the delay time to 15 seconds?            01/01/70 00:00      
RE: how to set the delay time to 15 seconds?            01/01/70 00:00      
RE: how to set the delay time to 15 seconds?            01/01/70 00:00      
RE: how to set the delay time to 15 seconds?            01/01/70 00:00      

Back to Subject List