文件名称:多功能时钟程序 优化的多功能时钟设计程序
文件大小:9KB
文件格式:TXT
更新时间:2013-06-13 08:10:37
C语言时钟程序
优化的多功能时钟设计程序 #include "reg52.h" #include "intrins.h" #include "absacc.h" #include "viic_c51.h" #include "zlg7290.h" #define uchar unsigned char #define uint unsigned int uint flag=0, flag1=0,flag2=0,flag3=0,flag4;//"半点"蜂鸣器鸣响//"整点"蜂鸣器鸣响 uchar set_bool=0; uchar set_b=0; uchar set_q=0; uchar i_LED[4]={0x60,0x61,0x62,0x63}; //单个显示数字时的LED位数 uchar shuzi[10]={0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09}; //0~9的