百度网盘下载地址(1120):点击下载

#include <reg52.h>
#include "1602.h"
#include <stdio.h>
#include "KEY4X4.h"
#include "eeprom2.h"
static bit flag; /* 定义刷新标志 */
volatile uchar Key_Value = 0xff;
uint count; /* 定义计数标志 */
uchar input_state = 0; /* 输入状态 0显示时间 1输入密码 2指纹录入 */
extern void DS1302Init();
extern void read_time( uchar curr_time[] );
extern void set_time( uchar *pSecDa );
/*typedef struct Timer{
* uchar year;
* uchar month;
* uchar day;
* uchar hour;
* uchar min;
* }Timer;
* Timer Timer_now;*/
uchar getTimebuf[7]; /* 存放时间数据 */
uchar position_input = 0;
uchar key_buf[6];
uchar password[6];
uchar mode;
char shwobuf[15] = "";
#define CHK_PASSWORD (password