hi!i want to know how to to give a delay of 0.1 second in keil assembley of 8051 microcontroller, using timers. it would be great if any of you could help, esp with the code. i can give small delays easily but this is somewhat large....i have a project due and i am stuck at this. thankyou in advance:)
I can sucessfully measure a day. It's the time from sunrise to the next sunrise. Or from sunset to the next sunset. This works fine; I have tested this several times. But now I need to measure a week. How can I do this. Please help. ;-)
So what is the exact purpose of this application?
If that's something of just an experiment, it's OK.
But if your application must keep time going (say, for months or years or to the end of the world), you should take an RTC (Real Time Clock) rather than do it by timer within microcontrollers. Compensation for temperature, variation and aging is totally unavailable in this case.
You're killing Gates...
you can use a bigger crystal and you go slower and add lots of nops.
if this is not tongue in cheek, his is the winner of the award for the silliest answer of the year.
the right answer: run a counter in the timer ISR.
Erik
View all questions in Keil forum