/* 4位8段数码管分别动态显示“1234”, */
#include "7LEDShow.h"
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; // 从第一位数码管开始