摘 要:随着科技和人们的生活水平的提高,如何实现家庭防盗这一问题变得越来越重要,传统机械锁因其结构简单,安全性不高,越来越不适用。而电子型的密码锁因其保密性高,使用性好,安全系数高,受到了广大用户的喜爱。
本设计以单片机AT89C51作为密码锁的核心,根据51单片机的工作原理,软件设计采用自上而下的模块化设计思想,以使系统朝着分布式、小型化方向发展,增强系统的可扩展性和运行的稳定性。从而实现了对密码的加密、密码丢失报警及随机修改密码等功能,且采用键盘输入的电子密码锁具有较高的优势。测试结果表明,本系统各项功能已达到本设计的所有要求。24932
毕业论文关键词:单片机;密码锁;单片机设计
Combination Lock Design based on SCM
Abstract: Along with the exaltation of social science and the living level of people, how to realize the family anti-theft this problem becomes more and more important, Because of the simple construct of traditional machine lock, security is not high, more and more do not apply. The electronics lock is safer because of its confidentiality, using good, the safe coefficient is high, being subjected to the large customer close.
This design by single chip microcomputer AT89C51 as the combination lock monitoring device to detect and control the core, according to the working principle of 51 single chip microcomputer, the software design adoption the design thought from top to bottom, to make the system toward wear distribute type, turn to the direction development of small, strengthen the system and can expand the stability and circulate. Implementation of password encryption, password lost alarm and random change passwords, and other functions, and uses the keyboard input electronic combination lock has the advantages of high. Test the result enunciation, various functions of this system are already all request of this design.
Keywords: single chip microcomputer; combination lock; single chip microcomputer design
目 录
摘要 1
引言 2
1. 电子密码锁的研究现状和背景 2
1.1 电子密码锁的背景 2
1.2 研究状况 2
1.3 密码锁设计实现的功能 3
2. 系统设计 3
2.1 主控芯片AT89C51单片机的简介 4
2.2 密码存储模块 5
2.3 键盘输入模块 6
2.4 复位电路模块 6
2.5 晶振电路模块 6
2.6 密码输入错误报警模块 7
2.7 LCD显示模块 7
2.8 其他引脚设计 8
2.9 电路图的绘制 8
3. 软件设计 8
3.1 系统软件设计的整体思路 8
3.2 系统软件设计流程图 9
4. 程序调试 9
5. 结果与分析 10
6. 结论 12
参考文献 12
附录 14
致谢 19
基于单片机的密码锁设计
引言
现如今人们生活水平有了很大提高,如何实现家庭防盗的问题也变的尤其突出,传统的机械锁由于其构造的简单,安全性不高。而电子型的密码锁由于其保密性高,使用灵活性好,安全系数高,受到了广大用户的喜爱。锁是置于可启闭的器物上,用以关住某个确定的空间范围或某种器具的,必须以钥匙或暗码打开的扣件。然而,总有一些毫无道德观念的盗贼想方设法利用高科技手段撬门开锁,使广大居民防不胜防。
为什么会出现这种情况呢?因为传统锁具都存在致命的弱点: 51单片机的密码锁设计+源程序+电路图:http://www.youerw.com/zidonghua/lunwen_18561.html