《51片机C语言应用程序实例精讲》代码:void main() { DIGPORT = 0; // 关闭显示 TMOD = 0x01; // T0工作方式1 /* 2ms 定时设置 */ time0_tmp = 65536-time0*fosc/12; TH0 = (time0_tmp/256); TL0 = (time0_tmp%256); TR0 = 1; ET0 = 1; EA = 1; digbit = 0x01; // 从第一位数码管开始 wordbuf[3] = 4; wordbuf[2] = 3; wordbuf[1] = 2; wordbuf[0] = 1;