#pragma interrupt_handler timer0_ovf_isr:10 //TIMER0 ¶¨•r(sh¨ª)2msÖДà.
void timer0_ovf_isr(void)
{
TCNT0 = 0xD9; //reload counter value
timer2ms++;
if(timer2ms >= 5)
{
timer2ms = 0;
timer10ms ++;
systimer10ms ++;
if(systimer10ms >= 22) //ƒÈ(n¨¨i)²¿1M¾§Õñ
{
systimer10ms = 0;
timer1s ++;
}
}
¾W(w¨£ng)ÉÏÕÒµ½µÄ