基于51单片机电子密码锁的课程设计

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

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

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

资源描述

安徽工程大学毕业设计(论文)I基于单片机的电子密码锁设计摘要随着人们生活水平的提高,如何实现家庭防盗这一问题也变得尤为突出。在科学技术不断发展的今天,电子密码防盗锁作为防盗卫士的作用显得日趋重要。本文从经济实用的角度出发,系统由STC89C52与低功耗CMOS型E²PROMAT24C02作为主控芯片与数据存储器单元,结合外围的键盘输入、LCD显示、报警、开锁等电路模块。它能完成以下功能:正确输入密码前提下,开锁;错误输入密码情况下,报警;密码可以根据用户需要更改。用C语言编写的主控芯片控制程序与EEPROMAT24C02读写程序相结合,并用Keil软件进行编译,设计了一款可以多次更改密码,具有报警功能的电子密码控制系统。本密码锁具有设计方法合理,简单易行,成本低,安全实用,保密性强,灵活性高等特点,具有一定的推广价值。关键词:电子密码锁;报警;液晶显示蒋先龙:基于单片机的电子密码锁设计IIDesignofElectricPasswordLockBasedonMCUAbstractAspeople'slivingstandardsimprove,thequestionhowtoachievehomesecurityhasbecomeparticularlyprominent.Inscienceandtechnologyisdevelopingcontinuously,electroniccodelockasasecurityguard'sroleisincreasinglyimportant.Thisarticlefromtheeconomicalpointofview,thesystembytheSTC89C52withlowpowerCMOSbasedE²PROMAT24C02asthemasterchipandthedatamemoryunit,combinedwiththeexternalkeyboard,LCDdisplay,alarm,unlockandothercircuitmodules.Itperformsthefollowingfunctions:enterthepasswordcorrectlyunderthepremiseofunlocking;wrongpasswordcasethealarm;passwordcanbechangedaccordingtouserneeds.MasterinClanguagecontrolprogramandEEPROMAT24C02chiptoreadandwriteprocessarecombinedandcompiledwiththeKeilsoftware,designedanumberyoucanchangethepassword,thepasswordwithanelectronicalarmcontrolsystem.Thelockhasareasonabledesign,simple,lowcost,safeandpractical,confidentiality,flexibility,andhigh,withsomepromotionalvalue.KeyWords:ElectricPasswordlock;Alarm;LCDDisplay安徽工程大学毕业设计(论文)III蒋先龙:基于单片机的电子密码锁设计IV目录引言.......................................................................................................................................................1第1章绪论....................................................................................................................................21.1电子密码锁的背景与研究意义........................................................................................21.2电子密码锁的现状及发展趋势........................................................................................21.3本章小结...................................................................................................................................4第2章系统整体方案设计.......................................................................................................52.1设计目标...................................................................................................................................52.2主控部分的选择.....................................................................................................................52.3密码输入方式的选择...........................................................................................................52.4本章小结...................................................................................................................................6第3章硬件系统设计.................................................................................................................73.1系统芯片介绍.............................................................................................................................73.1.1单片机STC89C52功能介绍.............................................................................................73.1.2LCD1602显示器介绍..........................................................................................................83.1.3存储芯片AT24C02介绍.....................................................................................................93.1.4I2C总线介绍...........................................................................................................................93.2硬件电路设计........................................................................................................................113.2.1复位电路................................................................................................................................113.2.2晶振电路................................................................................................................................123.2.3存储电路.................................................................................................................................123.2.4键盘输入电路......................................................................................................................133.2.5显示电路................................................................................................................................143.2.6电源输入电路......................................................................................................................153.2.7报警电路................................................................................................................................153.2.8开锁电路................................................................................................................................163.3本章小结.................................................................................................................................17第4章软件程序设计.................................................................................................................184.1主程序流程图..............................................

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

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

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

×
保存成功