设计描述:
文档包括:
说明书一份,30页,约14000字
CAD版本图纸,共2张
基于单片机的电子密码锁群的设计
摘 要:单片机已经在家电领域中得到了广泛的应用,而且在安全密保方面,具有防盗报警功能的电子密码锁逐渐取代了传统的机械密码锁,克服了机械密码锁密码过少的安全性问题。本密码锁的主控芯片采用价格实惠而且容易购买的 STC89C51芯片。密码输入采用矩阵键盘及独立键盘,密码显示采用共阴极的八段显示数码管。系统能完成密码输入、正确开锁、超次报警这些基本的密码锁的功能。 系统的软件实现采用功能强大且易于开发的KeilC51环境,且支持ISP下载。因此没使用编程器,用汇编语言实现系统的软件部分。由于51单片机也有一些不足之处如断电后内部RAM储存的数据会完全丢失,为了克服这一缺点,系统的外围加了掉电存储电路并且由2816芯片来实现。此设计具有安全性高、价格低廉便于实现、易于改进等优点。[1]
关键词:电子密码锁 单片机 矩阵键盘
Design of electronic locks group based on SCM
(Oriental Science &Technology College of Hunan Agricultural University, Changsha 410128)
Abstract: SCM(single chip microcomputer) has been widely used in the field of home appliances, and in terms of safety secret security ,the electronic code locks which with anti-theft alarm function has gradually replaced the traditional mechanical code locks, and it has overcome the security problems of the mechanical code locks whose password is too short . The affordable and easy to buy STC89C5 chip is used as the main control chip of electronic code locks. Password input using matrix keyboard and independent keyboard, and password displays adopt eight display digital tubes which is common cathode. The system can complete these basic functions like password input 、correctly unlocking and hyper-alert. And the system software to achieve a powerful and easy to develop KeilC51 environment, and support for the ISP download. So programmer was not be used , with the assembler to realize the software of system. But 51 SCM also have some disadvantages such as the data stored in internal RAM will be completely lost when the power was interrupted. In order to overcome this shortcoming , using a power-down memory circuit on the periphery of the system and make the 2816 chip to achieve. This design has advantages such as high security, low cost, easy to implement, easy to improve and so on.
Keyword: electronic code locks single chip microcomputer matrix keyboard
目 录
摘要…………………………………………………………………………………………1
关键词………………………………………………………………………………………1
1 前言………………………………………………………………………………………2
1.1 课题研究背景和意义………………………………………………………………2
1.2 国内外文献综述……………………………………………………………………4
1.3 设计所要研究的主要内容…………………………………………………………5
2 系统总体方案设计………………………………………………………………………5
3 硬件电路设计……………………………………………………………………………7
3.1 键盘电路设计………………………………………………………………………7
3.2 LED显示电路设计…………………………………………………………9
3.3 开锁电路设计………………………………………………………………11
3.4 报警电路……………………………………………………………………12
3.5 密码存储电路设计…………………………………………………………13
3.6 复位电路…………………………………………………………………14
4 软件设计……………………………………………………………………15
4.1 软件设计思路………………………………………………………………15
4.2 片内存贮器空间的分配……………………………………………………15
4.3 I/O接口的分配……………………………………………………………15
4.4 键盘扫描子程序……………………………………………………………17
4.5 LED显示子程序……………………………………………………………17
4.6 密码修改比较和报警程序…………………………………………………17
5 结束语…………………………………………………………………………19
参考文献………………………………………………………………………20
致谢………………………………………………………………………………20
附录………………………………………………………………………………22
|