c51 时间显示问题da(h/10+0x30);//不知这两句这样写可显示时间为何?请教! da(h%10+0x30); /* 定时器0中断 */ uchar s,m,h; uint s001; void int_t0(void) interrupt 1 { tl0+=48;th0=0xf8; time++; if ((++s001)> =1000) { s001=0; if ((++s)> 59) { s=0; if ((++m)> 59) { m=0; if ((++h)> 23) h=0; } } } }
da(h/10+0x30); da(h%10+0x30); da(':',0); da(m/10+0x30); da(m%10+0x30); da(':',0); da(s/10+0x30); da(s%10+0x30); 发表时间:2003年10月31日14:38:54