摘要:本设计以单片机AT89C51为主控芯片设计了一款电子密码锁,根据51单片机之间的串行通信原理,使得密码信息的随机加密跟保护都更加便捷。此次设计的密码锁主要具有以下功能:此密码锁通过键盘输入密码,只有在密码输入正确时,密码锁才会开启;密码输入错误提示,错误三次报警;密码锁可以修改密码。设计具有方法合理,简单易行,成本低,安全等特点,具有一定的设计价值。56491
毕业论文关键词:单片机,AT89C51,密码锁,键盘
Abstract:With the development of technology and the improvement of people’s life, the question that how to achieve the Home Security has became particularly prominent. And because the structure of traditional lock is simple as well as the safety factor of traditional lock is low, the appear of electronic lock cannot be surprised people.
The design that we turned the SCM AT89C51 into the chip of center control was according to the serial information principal between 51singlechips,made the random encryption and protection of password information become more convenient. The password lock which we designed has some advantages as follow:the combination input password by the keyboard, only when the passwords are correct,the combination lock will open;with more than three times incorrect input,the buzzer will alarm;the lock can change the password. The characters of this design are reasonable methods,low cost,safe,simple and practicable and so on. It has certain design value.
Key words:single chip,AT89C51,cryptogram lock,keyboard
目录
1 绪论 4
1.1 密码锁的背景 4
1.2 密码锁设计的意义及特点 4
2 元器件的选择 4
2.1 单片机AT89C51 4
2.2 存储芯片 AT24C02 7
2.3 1602LCD液晶显示器 9
2.3.1 接口信号说明 9
2.3.2 主要技术参数 10
2.3.3 基本操作程序 10
2.4 晶体振荡器 10
3 系统硬件设计 11
3.1 设计原理 11
3.2 硬件总电路图 12
3.3 按键电路设计 12
3.5 复位电路 14
3.6 晶振电路 15
3.7 显示电路 16
3.8 报警电路 17
4 系统软件设计 18
结 论 23
参考文献 24
致 谢 25
1 绪论
随着现在社会越来越快的发展,安全变得越来越重要。现代化的步伐推动着经济的发展,在人们富裕的同时,人们的素质也逐渐得到提高,然后仍然有着那么一部分人干着非法勾当。现如今,市场上的锁具都不算真正意义上的实现了防盗的功能,因为在一些“经验丰富的高手”面前,它们也只能算是个摆设而已,当人们的贵重物品和重要信息被盗用时,人们才意识到传统锁具已经满足不了日常的需要。面对日益严重的安全防盗挑战,人们也开始抛去传统机械锁的束缚,开始寻求更加安全地防盗措施,电子密码锁的出现很好的解决了人们对于老式机械锁的担心,它的出现无疑是社会发展的必要产物。 基于51单片机的密码锁设计+电路图:http://www.youerw.com/zidonghua/lunwen_61012.html