部分程序
void init(void)
{
TMOD=0x01; //定时器0, 16位
TH0=0X4D; // 设定定时器 初值,50毫秒/、11.0952MHz
TL0=0X00;
EA=1; //开启 总中断
ET0=1; //开启定时器 0 中断
TR0=1; //定时器 0 启动计数
}
void time0(void) interrupt 1
{
count++; //
if(count==20) //用变量20, count 延长到100ms
{
count=0;
second++;
为什么最后外部显示的second每分钟才走了四十多秒,明显慢啊