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 interrupt

Hi, i want to tune my timer ISR to 20hz , 1/20 sec , i dont know what are the values to be loaded with the timer.

 void timer0_isr (void) interrupt 1 using 1
{
unsigned i;
 TR0 = 0; /* stop timer 0 */
TL0 = ;
TH0 = ;
TR0 = 1;
overflow_count++;
}

0