安徽建筑大学毕业设计(论文)专业电子信息工程学院班级_____09计算机(1)班学生姓名朱进山学号09205010125课题_基于单片机的密码保险柜设计与仿真指导教师梁祥莹2013年6月10日摘要摘要目前单片机已经在家电领域中得到了广泛的应用,而且在安全密保方面,具有防盗报警功能的电子密码锁逐渐取代了传统的机械密码锁,克服了机械密码锁密码过少的安全性问题。本密码锁的主控芯片采用价格实惠而且容易购买的STC89C52芯片。密码输入采用矩阵键盘及独立键盘,密码显示采用LCD1602液晶。系统能完成密码输入、正确开锁、超次报警等基本功能。系统的软件实现采用功能强大且易于开发的KeilC51环境,且支持ISP下载。因此没使用编程器,用C语言实现系统的软件部分。由于51单片机也有一些不足之处如断电后内部RAM储存的数据会完全丢失,为了克服这一缺点,系统的外围加了以AT24C02芯片为核心的掉电存储电路防止断电后数据丢失。此设计具有安全性高、价格低廉便于实现、易于改进等优点。关键词:电子密码锁;STC89C52;矩阵键盘ABSTRACTMCUhadbeenwidelyusedinhomeappliancefield,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】ElectronicCombinationlockSTC89C52Matrixkeyboard目录1.绪论..............................................................................................................................................11.1研究的目的和意义............................................................................................................21.2国内外研究现状................................................................................................................21.3课题的主要任务................................................................................................................21.4本章小结............................................................................................................................32.系统总体设计思路......................................................................................................................33.硬件设计......................................................................................................................................43.1单片机AT89C51................................................................................................................43.1.1主要特性.................................................................................................................53.1.2管脚说明.................................................................................................................63.1.3时钟电路.......................................