摘 要:随着人们生活水平的提高,如何实现家庭防盗这一问题尤其的突出,传统的机械锁由于其构造的简单,安全性能低,无法满足人们的需要。为满足人们对锁的使用要求,增加其安全性,用密码锁代替钥匙的密码锁应运而生。本文从经济实用的角度出发,采用AT89C51单片机和低功耗CMOS型EEPROM AT24C02作为主控芯片与数据存储器单元,结合外围的键盘输入、显示、报警、开锁等电路,用C语言写主控芯片的控制程序,设计了一款具有错误报警、超次锁定、管理员解密、多次改写密码和保存密码等功能的电子密码锁。经实验证明,该密码锁具有设计方法合理、简单易行、成本低、安全实用等特点,符合住宅、办公室用锁要求,具有推广价值。65795
毕业论文关键词:密码锁,单片机,报警
Abstract:With the improvement of people’s living standards, it has become particularly prominent about how to achieve Anti-theft family. The traditional mechanical lock has such shortcoming as simple structure, low security, it can’t meet people’s demands. For satisfying this request, the cipher lock is appeared. For practicality, a new electronic cipher lock is designed in this article, which has the function of error alarm, locking within a specific number, administrator to decrypt, changing many times password and saved passwords and so on. AT89C51 SCM and EEPROM AT24C02 are used as main chip and data memory cell. The author makes this cipher lock by use of making controlled program of master CMOS with periphery electrocircuit of keyboard input, display, alarm and unlock. Experiments show that the designed cipher lock is characterized by its reasonable designing methods, simple operation, low cost and property of safety and practicality. Besides, it works as a residence lock and has great potential for commercial development.
Key words : Cipher lock, SCM, Alarm
目 录
1 绪论 4
1.2 选题的目的和意义 5
1.3 本论文的任务 5
2 电子密码锁总体设计 6
2.1 系统总体设计 6
2.2 单片机选择 7
2.3 密码存储芯片选择 7
2.4 键盘输入方案比较 8
2.5 显示方案选择 9
2.6 Proteus仿真 10
3 电子密码锁的硬件设计 12
3.1 系统结构框图 13
3.2 主控部分 13
3.3 显示部分 13
3.4 键盘输入部分 14
3.5 密码存储部分 15
3.6 电源部分 15
3.7 其它功能部分 17
4 电子密码锁的软件组成 18
4.1 系统软件设计流程 18
4.2 各主要部分的功能实现程序 20
4.2.1 初始化程序设计 20
4.2.2 按键处理程序设计 20
4.2.3 密码更改程序设计 21
5 实物设计 22
总 结