void init()
{
TMOD=0x20;
TH1=0xfd;
TL1=0xfd;
TR1=1;
REN=1;
SM0=0;
SM1=1;
ES=1;
TMOD=0x01;
TH0=(65536-50000)/256;
TL0=(65536-50000)%256;
EA=1;
ET0=1;
TR0=1;
rw=0;
en=0;
write_com(0x38);
write_com(0x01);
write_com(0x06);
write_com(0x0c);
write_com(0x80);
for(num=0;num<15;num++)
{
write_date(table[num]);
delay(5);
}
write_com(0x80+0x44);
for(num=0;num<8;num++)
{
write_date(table1[num]);
delay(5);
}
}
怎么加定时器0下去就无法达到想要的效果,它就怎么会一直进入串口中断????