CodePudding user response:
Void din_shi_chu_zhi ()
{
TH0=(65535-46082)/256;/* set the initial value, timing 50 ms 11.059 crystal vibration */
TL0=(65535-46082) % 256;
TMOD=0 x01;//select for timer 0 mode, working way 1, only open the startup with TR0,
TR0=1;//start the timer 0
}
While (I)
{
If (TF0)//test timer overflow
{
TF0=0;
Din_shi_chu_zhi ();
Miao++;
}
}
CodePudding user response:
The total break open? Interrupt function is back to count value assignment?CodePudding user response:
Don't open the timer interrupt is good ah