摘要:本课题设计了一种基于单片机的电子密码锁,这种电子密码锁以单片机作为数据处理主控芯片。电子密码锁的设计主要由四部分组成:4×4矩阵键盘接口电路、以AT89S51芯片为核心的密码锁的数据处理及控制电路、掉电情况下依然能保存密码的EEPROM存储器芯片。另外系统还有LED提示灯,报警蜂鸣器,单片机复位电路等。软件部分,给出程序流程图并利用汇编语言。同时,利用proteus电路仿真软件,验证了该电路原理的正确性。最后,焊接制作电子密码锁的单片机控制系统电路板,并结合编程器调试程序。电子密码锁设计的关键问题是实现密码的输入、清除、开锁、更改等功能。结合这种情况,本文对单片机的电子密码锁的设计进行了分析和探究。52752
毕业论文关键词: AT89S51,电子密码锁,报警
Abstract:This topic has designed a kind of electronic combination lock based on MCU, this electronic combination lock with single-chip microcomputer as the master control chip data processing. Electronic combination lock design is mainly composed of four parts: 4 * 4 matrix keyboard interface circuit, with AT89S51 as the core chip of the combination of data processing and control circuit, the electric block can still save password EEPROM memory chips. Additional system and LED lights, alarm buzzer, single-chip microcomputer reset circuit, etc. Software part, the flow chart of program and by using assembly language. At the same time, the use of proteus simulation software to verify the correctness of the proposed circuit principle. Finally, the MCU control system circuit boards welding electronic combination lock, and combining the programmer debugging program. Electronic combination lock design is the key problem of password input, clear, lock, changes, etc. Combined with this kind of situation, in this paper, the single chip microcomputer electronic combination lock design are analyzed and explored.
Key words:AT89S51, electronic trick lock, alarm
1 绪论 4
1.1 课题背景和意义 4
1.2 电子密码锁发展趋势 5
2 电子密码锁的总体设计方案 5
2.1 电子密码锁设计的具体要求 5
2.2 总体设计方案选定 6
3 基于单片机的电子密码锁硬件设计 7
3.1 单片机AT89S51简介 7
3.2 单片机最小系统的设计 8
3.3 开锁机构 11
3.4 键盘设计 11
3.5 显示电路设计 13
3.6 电路设计总图 13
4 基于单片机的电子密码锁软件设计与仿真 14
4.1主程序流程图 14
4.2 主程序设计 15
4.3 键盘扫描及识别子程序 16
4.4 系统模块密码设置子程序 17
4.5 程序调试.......18
5 电子密码锁制作及调试 20
5.1焊接注意事项: 20
5.2硬件调试 21
结论 23
参考文献 24
致谢 25
附录 电子密码锁程序源代码 AT89S51单片机的电子密码锁设计+电路图+程序:http://www.751com.cn/zidonghua/lunwen_56758.html