《单片机电子密码锁课程设计.pdf》由会员分享,可在线阅读,更多相关《单片机电子密码锁课程设计.pdf(14页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、单片机技术及应用综合训练(设计报告)前言随着人们生活水平得提高,如何实现家庭防盗这一问题也变得尤为突出。在科学技术不断发展得今天,电子密码防盗锁作为防盗卫士得作用显得日趋重要。本文从经济实用得角度出发,系统由 ST9C与低功耗 CMOS 型 E2 PRO T24C02 作为主控芯片与数据存储器单元,结合外围得键盘输入、CD 显示、报警、开锁等电路模块。它能完成以下功能:正确输入密码前提下,开锁;错误输入密码情况下,报警;密码可以根据用户需要更改。用C 语言编写得主控芯片控制程序与EEPROM AT24C2 读写程序相结合,并用Kel 软件进行编译,设计了一款可以多次更改密码,具有报警功能得电子
2、密码控制系统。本密码锁具有设计方法合理,简单易行,成本低,安全实用,保密性强,灵活性高等特点,具有一定得推广价值。关键词:电子密码锁、报警、液晶显示文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7
3、 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4
4、S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7
5、 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1
6、Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K
7、10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码
8、:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10目录一、选题要求 1
9、 二、硬件电路设计 1、1 1 单片机 2、2 键盘电路 2 2、3 液晶显示电路 2、4 警报电路 、5 密码储存电路 3 2、6 晶振、复位及关锁 3 三、软件设计 4 四、软硬件调试结果 9、1 电路总原理图 9 4、2 调试结果 0 五、总结 11文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码
10、:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2
11、W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7
12、 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4
13、S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7
14、 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1
15、Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K
16、10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10一、选题要求本文从经济实用得角度出发,设计采用单片机为主控芯片,结合外围电路,组成电子密码控制系统,密码锁共 6 位密码,每位得取值范围为 09,用户可以自行设定与修改密码。用户想要打开锁,必先通过提供得键盘输入正确得密码才可以,密码输入错误有提示,为了提高安全性,当密码输入错误三次将报警,期间输入密码无效,以防窃贼多次试探密码。6 位密码同时输入正确,锁才能打开.锁内有备用电池,只有内部上电复位时才能设置或修改密码,因此,仅在门外按键就是不能修改或设置密码得,因此保密性强、灵活性高.其特点如下:1)保密性
17、好,编码量多,远远大于弹子锁。随机开锁成功率几乎为零.2)密码可变,用户可以随时更改密码,防止密码被盗,同时也可以避免因人员得更替而使锁得密级下降.?3)误码输入保护,当输入密码多次错误时,报警系统自动启动。4)无活动零件,不会磨损,寿命长。)使用灵活性好,不像机械锁必须佩带钥匙才能开锁。6)电子密码锁操作简单易行,一学即会。二、硬件电路设计下面就是整个设计得流程图:、1 5 单片机开开初始化次数加 1 输入密码密码正确?返返回回N Y Y 开锁程序开锁?N 修改密码?次数 3?报警程序修改程序Y N N Y 开始返回文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S
18、9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档
19、编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4
20、B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1
21、K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3
22、K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6
23、O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5
24、C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10这次课程设计采用得就是5 系列单片机AT95。其外部封装如下图所示:T89C52 单片机有 4 组 8 位得可编程 I/O 口,分别位 P、P1、P2、口,每个口有位(8 根引脚),共 32 根8。P0口(in39Pin32):8 位双向 I/
25、口线,名称为P、P0、7 1 口(PinPin8):8 位准双向/O 口线,名称为 P1、01、7 P2口(Pi21P2):8 位准双向 O 口线,名称为 P2、0P、73 口(Pin10Pin17):8 位准双向/O 口线,名称为 3、0P3、7 2、2 键盘电路本次试验采用得就是行列键盘,C语言程序中有相应得驱动程序,其硬件电路如下所示,下右对应得为各个按键所对应得数字及功能。2、3 液晶显示电路实验中采用得就是 L016液晶显示,其数据端口采集数据通过单片机得P0口,接法如下图所示.不同情况下会有不同得显示,显示内容包括:Wel、Hllo Bo s、on、K等内容。0 2 4 6 7 8
26、 9 确认重输改密文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9
27、K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编
28、码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B
29、2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K
30、7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K
31、4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O
32、7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K102、4 警报电路下图就是警报电路连接图,警报触发为:连续三次输错密码,警报触发后会有一个时间延迟,延迟时间内任何操作都就是无效得,过后通过关锁按钮可解
33、除。2、5 密码储存电路实验中考虑到实用性方面时,就想到了密码储存及修改得问题,于就是采用了FM24C02F 作为面膜储存模块,电路连接如下所示:2、6 晶振、复位及关锁晶振、复位及关锁电路如下所示(作图所示按钮为复位按钮):文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH
34、3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q
35、6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ
36、5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10
37、S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文
38、档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU
39、4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T
40、1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10三、软件设计C语言源程序:#cl reg5、h i cludestd、#i clude intris、hdefi e CHECK_BU define DataPort Pdef ne Key ort P bit S=P;液晶显示得定义端口sit W=P25;sbi E=P26;sit c=P0;/c02 端口定义sb sda=31;sbit boji gP2;/报警器b t jdq=P2 ;/继电器b t 23;/警报灯sbit clos P22;unsi e c ar old1,old2,old3,ld4,od,ld;原始密码0000
41、0 nsigned char ew1,e,n 3,ne4,ne 5,ew6;/代表新密码void e y(usign t m)nsig e int n;or(n;nm;n+);void del(unsgned int m)unig ed int a;unsigned chr b;fo(a=0;am;+)for(b=0;b125;+);vid D l ys2(un ign d ch r t)wh l(-t);vid DelyMs(un i ed car t)whi e(t)D lay s2x(256);Del Usx(256);vid baojingq()baojing=;ela s2x(256
42、);i(ba ji =0)?aojin=0;?elayU 2x(25);?it LCD_Ch ckB y(void)/判忙函数#def CHECK_BUSY Dt Port 0 xFF;RS 0;RW=1;文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7
43、ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z
44、10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K1
45、0文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:
46、CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W
47、4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7
48、HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S2Q6O7 ZQ5C1Z10S9K10文档编码:CU4B2W4T1K7 HH3K4S
49、2Q6O7 ZQ5C1Z10S9K10N=0;_nop();N=;e rn(bit)(Dataort&080);lse re un 0;en f oid LCD_Wri _(usigned har)/写入命令函数/wile(LCD_Chec _B y());/忙则等待 Del yMs(5);RS=0;W=0;E=1;DataP rt=;_nop();E=0;v d L D_ e_ata(nsgnd har D a)/写入数据函数 /hile(LCD_Che k_Bus());忙则等待DelayMs(5);R 1;R=0;N1;D taPData;nop_();EN 0;v id C_C e(v
50、oid)/清屏函数 D r te_(0 x01);De ayMs(5);void LCD_Write_Car(nsi nd c ar x,u sign d har y,ns gned cDaa)/写入字符函数 if(y=0)LCD_ ite_(x80+x);el e LCD_Write_(0 xC+x);LCD rite_D a(ta);voi LCD_Wri tr g(usigne car x,n gned c ar,unsi ned chr s)/写入字符串函数while(*)LCD_Writ _Char(x,y,*s);s+;+;vod LCD nit(oid)?/液晶显示得初始化函数