你好,欢迎来到经管之家 [登录] [注册]

设为首页 | 经管之家首页 | 收藏本站

基于单片机的电子密码锁设计_电子信息工程毕业论文

发布时间:2014-10-10 来源:人大经济论坛
目 录 摘 要 3 ABSTRACT 4 第1章 绪 论 5 1.1 选题的背景 5 1.2 电子密码锁简介 5 1.2.1 电子密码锁的特点 5 1.2.2电子密码锁发展趋势 6 1.3 本设计所要实现的目标 6 第2章 电子密码锁的设计方案 7 2.1系统的工作原理 7 2.2 系统方案选择 8 2.2.1 键盘输入模块方案的选择 8 2.2.2 显示模块方案的选择 8 第3章 电子密码锁硬件设计 9 3.1主要元件介绍 9 3.1.1 主控芯片AT89S52介绍 9 3.1.2 八位数据锁存器742LS273 10 3.1.3 EEPROM数据存储器AT24C02介绍 10 3.2系统硬件各部分电路 12 3.2.1 键盘输入模块 12 3.2.2 密码存储模块 12 3.2.3 显示模块 13 3.2.4 其他模块 13 3.3 系统总的原理图如下 14 第4章 电子密码锁软件设计 15 4.1 系统总体流程图 15 4.2 各部分的流程图 16 4.2.1 按键子程序 16 4.2.2 显示子程序 18 4.2.3 密码设置子程序 20 4.2.4 清除程序和锁定程序 21 4.2.5 系统的缺点和不足 21 第5章 总结 22 参考文献 附录 摘 要 本课题设计了一种基于单片机的数字电子密码锁,这种数字电子密码锁以单片机作为数据处理主控芯片。其主要具有如下功能: 密码输入功能:按下一个数字键,一个对应的数字显示在数码管上。 密码清除功能:当按下密码清除键时,清除前面输入的一位密码,并清除相应显示。 开锁功能:当按下开锁键,系统将输入的数据与系统密码进行检查校对,如果正确锁打开,否则不打开。 密码更改功能:开锁后可以设定新的密码,新密码需要二次确认。 防止多次试探密码功能:密码输入错误次数太多时,密码锁报警。 操作错误提示功能:在操作错误时,密码锁可以有简单的提示。 电子密码锁的设计主要由四个部分组成:4x4矩阵键盘接口电路;以AT89S52芯片为核心的密码锁的数据处理及控制电路;掉电情况下依然能保存密码的存储芯片;输出七段显示电路。另外系统还有LED提示灯,报警蜂鸣器,单片机复位电路等。电子密码锁设计的关键问题是实现密码的输入;清除;开锁;更改等功能。 关键词:单片机,电子密码锁,4x4矩阵键盘,存储芯片 ABSTRACT This project designed a digital electronic lock which used a MCU as data process and control chip.The main funcitons of the digital electronic lock are as follows: Entering the password: pressing one number button,one signal number will show on the digital tube . Openning the lock: pressing the unlock button, the system will check up the numbers and password entered,if yes the lock will open,or it will not open. Changing the password:setting the new enter number that needs to be confirmed twice as the new password when the lock is open. Preventting the repeated test:when entered the wrong password over target times,the buzzer will alarms and locks the keyboard at the same time. Wrong operation warning:if you have wrong operation,there will be some simple warning messages. The design of the electronic password lock is mainly made up of four parts:4x4 matrix keyboard interface circuit,data processing and display circuit. In addition the system also consists of LED ligths,alarm buzzers,single-chip reset circuit and so on. The key question of the electronic lock designing is the realization of functions,such as the input password ,clear password,unlock,changepassword and other functions. Key word: Single-chip,Electronic lock, 4x4 matrix keyboard,EEPROM
经管之家“学道会”小程序
  • 扫码加入“考研学习笔记群”
推荐阅读
经济学相关文章
标签云
经管之家精彩文章推荐