This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Timer using Interrupt

I am doing a project wherein i want to use a delay using timers in 8051 and that too with interrupt. If for eg i use Timer 0. Now i want to create a delay of 3 sec. but if i load the value 00H in TH0 and 00H in TL0 the max delay i can get is 71ms after that the value reaching FFFFh it would roll over to 0000h and TF0 flag would be high and Interrupt Service Routine(ISR) would be executed. But i want such that the 8051 is interrupted after 3 sec only not before that. How should i go about this.