摘 要:随着社会物质财富的日益增长和人们生活水平的提高,安全成为现代居民最关心的问题之一。机械锁容易被撬,安全性能差,而密码锁拥有报警功能,安全性能更好,所以用密码锁代替机械锁应运而生。本课题设计了一款具有防盗报警功能的电子密码锁,该密码锁具有安全性能高、简单易行和成本低等特点。
本课题用AT89C51单片机作为主要芯片,并且选用FM24C02芯片存储密码,ULN2003芯片驱动步进电机模拟开锁,74HC573芯片驱动数码管。系统硬件电路包括键盘输入电路、数码管显示电路、开锁报警电路和密码存储电路。软件部分由主程序、开锁程序、键功能程序和报警程序组成。最后通过Proteus仿真和实物验证,实现了电子密码锁防盗报警功能,具有速度快、直观、功耗低等特点。76076
毕业论文关键词:AT89C51,电子密码锁,防盗,密码存储
Abstract: With the increasing of social material wealth and the people living standard rise, security becomes one of the most concern of the modern people。 Because the mechanical lock easy to pry, safety performance is poor, and the combination lock with alarm function, safety performance is better, so use combination lock instead of mechanical lock arises at the historic moment。 This topic has designed a electronic combination lock anti-theft alarm functions, which the combination lock has high safety performance, simple, low cost, etc。
This topic use AT89C51 as the main chip, and choose FM24C02 chips to store passwords, ULN2003 chip driving a stepper motor simulation unlock, digital tube 74HC573 chip driver。 The system hardware circuit including keyboard input circuit, digital tube display circuit, unlock alarm circuit and password storage circuit。 Software part by the main program, the lock and key function of procedures and alarm。 Finally through the Proteus simulation and actual product to verify, implements the electronic combination lock anti-theft alarm function, with fast speed, intuitive, low power consumption, etc。
Keywords: AT89C51, electronic trick lock, the security, the password storage
目 录
1 绪论 4
1。1 发展背景及研究意义 4
1。3 研究内容及设计指标 5
1。4 方案的设计与论证 5
1。4。1 方案一数字电路密码锁设计 5
1。4。2 方案二单片机密码锁设计 6
2 系统硬件设计 7
2。1 键盘输入电路 7
2。2 数码管显示电路 9
2。3 密码存储电路 10
2。4 复位电路 11
2。5 晶振电路 12
2。6 报警电路 12
2。7 开锁电路 13
3 软件设计 14
3。1 设计方法 14
3。2 主程序流程图 14
3。3 键功能程序流程图 15
3。4 开锁程序流程图 15
3。5 修改密码程序流程图