单片机密码保险柜

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

安徽建筑大学毕业设计(论文)专业电子信息工程学院班级_____09计算机(1)班学生姓名朱进山学号09205010125课题_基于单片机的密码保险柜设计与仿真指导教师梁祥莹2013年6月10日I摘要摘要目前单片机已经在家电领域中得到了广泛的应用,而且在安全密保方面,具有防盗报警功能的电子密码锁逐渐取代了传统的机械密码锁,克服了机械密码锁密码过少的安全性问题。本密码锁的主控芯片采用价格实惠而且容易购买的STC89C52芯片。密码输入采用矩阵键盘及独立键盘,密码显示采用LCD1602液晶。系统能完成密码输入、正确开锁、超次报警等基本功能。系统的软件实现采用功能强大且易于开发的KeilC51环境,且支持ISP下载。因此没使用编程器,用C语言实现系统的软件部分。由于51单片机也有一些不足之处如断电后内部RAM储存的数据会完全丢失,为了克服这一缺点,系统的外围加了以AT24C02芯片为核心的掉电存储电路防止断电后数据丢失。此设计具有安全性高、价格低廉便于实现、易于改进等优点。关键词:电子密码锁;STC89C52;矩阵键盘IIABSTRACTMCUhadbeenwidelyusedinhomeappliancefield,inthesecuritypasswordprotectionaspectanti-theftalarmfunctionelectroniccombinationlockgraduallyreplacethetraditionalmechanicaltricklock,italsoovercomethesecurityproblemsthatthepasswordofmachinerycombinationlockaretoofew.Thiscombinationlock'smasterchipadoptsSTC89C52whichisaffordableandeasytobuy.Password’sinputadoptmatrixkeyboardandindependentkeyboard,password'sdisplayusingLCD1602displaydigital.Thissystemcanaccomplishpasswordinput,correctunlock,supertimesalarm,thesebasiccombinationlockfunction.SoftwarerealizationofthissystemisusedinKeilC51environment.itispowerfulandeasytodevelop,andtosupportISPtodownload.Thereforeitisnotuseprogrammer,useClanguageimplementationsoftwareofsystemcomponents.Because51MCUalsohassomedisadvantages,suchastheinternalRAMstoreddatawillbecompletelyloseafterpowerfailure,inorderto,thesystem'speripheryaddedoffelectricitystoragecircuitanduseAT24C02chiptoovercometheseshortcomings.Thisdesignhasahighsecurity,alowprices,whichiseasytoberealizedandimproved.【Keywords】ElectronicCombinationlockSTC89C52MatrixkeyboardIII目录1.绪论..............................................................................................................错误!未定义书签。1.1研究的目的和意义............................................................................................................21.2国内外研究现状................................................................................................................21.3课题的主要任务................................................................................................................21.4本章小结............................................................................................................................32.系统总体设计思路......................................................................................................................33.硬件设计......................................................................................................................................43.1单片机AT89C51...............................................................................................................43.1.1主要特性.................................................................................................................43.1.2管脚说明.................................................................................................................53.1.3时钟电路.................................................................................................................83.1.4复位电路.................................................................................................................83.2模块介绍............................................................................................................................93.2.1键盘输入电路.........................................................................................................93.2.2密码存储电路.......................................................................................................103.2.3开锁电路...............................................................................................................113.2.4报警电路...............................................................................................................123.2.3显示电路...............................................................................................................123.2.3晶振电路...............................................................................................................134.软件设计....................................................................................................................................144.1模块划分..........................................................................................................................144.1.1键盘扫描模块.......................................................................................................154.1.2密码修改模块.......................................................................................................154.1.3密码比较判断模块...............................................................................................154.1.4显示模块...............................................................................................................154.1.5报警模块................................................................................................................154.2系统程序设计流程图......................................................................................................155.系统调试与仿真.......................................................................................................

1 / 39
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功