定时器中计数 数码管显示0到99
定时器中断方式计数
#include<reg51.h>
#define uchar unsigned char
#define uint unsigned int
uchar tab[]={
0xC0,0xF9,0xA4,0xB0,0x99,0x92,0x82,0xF8,
0x80,0x90,0x88,0x83,0xC6,0xA1,0x86,0x8E};
uchar data_L, data_H;
uchar data_0, b;
void delay(uchar time)
{
uchar m;
for(m=0;m<time;m++)
;
}
void T0_init()
{
TMOD = 0x05;
TH0=0xFF;
TL0=</