I am looking for a five minute delay program for a project of mine. If anyone can help please email me a.s.a.p. Thank you
"this is both incorrect and incomplete" and about two and a half years late! (and, I suspect, the wrong toolchain?)
u can use timers and make a count for five min: for example if u want a delay of 1 min then send 20ms divided by 1.085us and u get the no.ok subbtract from 65536.the result is send to th0,tl0.and then make count for 50 u will get 1 min delay.similarly u can increase the count .ok give me reply. For once I am glad that someone uses Stupid Monkey S*** instead of English because this is both incorrect and incomplete. In that case it is, of course good if someone can not understand it. Erik
u can use timers and make a count for five min: for example if u want a delay of 1 min then send 20ms divided by 1.085us and u get the no.ok subbtract from 65536.the result is send to th0,tl0.and then make count for 50 u will get 1 min delay.similarly u can increase the count .ok give me reply.
Thank you too everyone for your assistance the program is working perfectly
Don't give it away!
Just set up a timer with a 10ms interrupt rate, Then have the timer ISR decrement a int counter 500 times until it reaches zero then set a bit flag. You restart the timer by clearing the bit flag. And 60 occurrences of the above results in 5 minutes.
Just set up a timer with a 10ms interrupt rate, Then have the timer ISR decrement a int counter 500 times until it reaches zero then set a bit flag. You restart the timer by clearing the bit flag.
View all questions in Keil forum