//设置定时初值TF0 = 0;//清除TF0标志TR0 = 1;//定时器0开始计时}void main(){ LED_7SEG=table[0]; Timer0Init(); EA=1; ET0=1; while(1); }void t0inter() interrupt 1{ static unsigned char count=0,show=0;TL0 = 0xB0;//设置定时初值TH0 = 0x3C;/...
ORG 0000H JMP BEGIN ORG 000BH LJMP T0ISR ORG 0030HTABLE: ; 共阴极数码管显示代码表 DB 3FH,06H,5BH,4FH,66H ;01234 DB 6DH,7DH,07H,7FH,6fh ;56789;---BEGIN: MOV TMOD,#01H MOV TH0,#HIGH(65536-5000) MOV TL0,#LOW(65536-5000...