/***********************************************************************************/
/*  LCD(HS12864图形点阵液晶)电子钟+万年历程序                                      */
/*  LCD接线见LCD.H定义,P3口接独立键盘。                                           */
/*  P3.0切换模式(正常显示/设置),P3.1设置值加1,P3.2设置值减,P3.3切换设置项       */
/*  Designer :  CanycalL                                     */
/*  版本:论文范文http://www.chuibin.com/  V 1.0                                                                    */
                                             */
/***********************************************************************************/
#include <at89x52.h>
#include <stdio.h>本文来自辣.文,论-文·网原文请找腾讯752018766
#include <string.h>
#include <lcd.h>
#include <main.h>
uint    year = 2007;
uchar   month = 8;
uchar   day = 1;
uchar   hour = 12;
uchar   minute = 00;
uchar   second = 00;
uchar   week_day;
uchar   irq_count=0;     //中断计数
uint    year_old, month_old, day_old;
uchar dsp_time_hh[3]="12";
uchar dsp_time_mm[3]="00";
uchar dsp_time_ss[3]="00";
uchar dsp_week[3]="三"2508;