基于51单片机AS608指纹自动识别电路设计(毕业设计)

本设计是基于STC89C52单片机的指纹识别设计,采用AS608指纹模块做为传感器,LCD1602显示屏显示信息。具有指纹添加,指纹识别,删除指纹功能。是一款简单的指纹识别毕业设计设计,电路原理图和PCB以及程序完整。添加简单的电路可以拓展为其他的设计。

【资源下载】下载地址如下(926):https://docs.qq.com/doc/DTlRSd01BZXNpRUxl基于51单片机AS608指纹自动识别电路设计(毕业设计)_第1张图片

#include
#include"lcd.h"
sbit D3= P1^3;
sbit D4= P1^4;
sbit k3=P1^0; 
sbit k4=P1^1;
sbit k5=P1^2;
#define FALSE 0
#define TURE  1
#define MAX_NUMBER    30 
#define _Nop()  _nop_()

unsigned char  code	jiemian[16]	=	"Fingerprint lock";
unsigned char code	success[15]	=	"Add finger OK";
unsigned char code	faild[16]	=	"Add finger faild";
unsigned char  code shownum[12]	=	"Finger_NUM:";
unsigned char code	MODE1[16]	=	"Add finger mode";
unsigned char  code MODE2[16]	=	"Identify   mode";
unsigned char code	MODE3[16]	=	"Connection OK";
unsigned char code  MODE4[16]	=	"Connection Faild";
unsigned char code	shibie1[16]	=	"Identify OK";
unsigned char code  shibie2[16]	=	"Identify Faild";
unsigned char code  del[16]  	=	"DEL success";
unsigned char   strnum[3]={0};
unsigned char 	SaveNumber=0,searchnum=0;
unsigned int  	SearchNumber=0,clk0=0;
bit modeflag= 0 ,  clearallflag=0, changeflag=0;
unsigned char 	num_char[10]={'0','1','2','3','4','5','6','7','8','9'};
//定义密码,实际上密码需要存在eeprom中,可以通过程序更改。请用户自行添加
unsigned char 		 FifoNumber=0; 
unsigned char idata  FIFO[MAX_NUMBER+1]={0};
//常用指令定义/

//Verify  Password   :验证设备握手口令
unsigned char code VPWD[16]={16,0X01 ,0Xff,0xff,0xff,0xff, 0x01,0,7,0x13,0x00,0x00,0x00,0x00,0x00,0x1b};	 //回送12个

//设置设备握手口令
unsigned char code STWD[16]={16,0X01 ,0Xff,0xff,0xff,0xff, 0x01,0,7,0x12,0x00,0x00,0x00,0x00,0x00,0x1a};	 //回送12个

//GetImage           :探测手指并从传感器上读入图像
unsigned char code GIMG[14]={12, 0X01 ,0Xff,0xff,0xff,0xff, 0x01, 0,3,1,0x00,0x05};	//回送12个

 

你可能感兴趣的:(单片机,嵌入式)