//实例 66:数码时钟设计#include // 包含 51 单片机寄存器定义的头文件unsigned char Tab[ ]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90}; //control shapeunsigned char port[8]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f};unsigned char int_time ; //中断次数计数变量unsigned char second; //秒计数变量unsigned char minute; //分钟计数变量unsigned char hour; //小时计数变量///////////////////////////////////////////////////// void delay(void) //延时函数,延时约 0.6ms { unsigned char j;for(j=0...
发表评论取消回复