单片机电子密码锁设计-论文单片机电子密码锁设计【Abstract】Theelectronicpasswordlockisthecollectioncomputertechnology,theelectronictechnology,thenumericalcipherstechnologyisabodyintegrationofmachineryhightechproduct,hasthesecuritytobehigh,meritandsooneasytooperate.Thepresentpaperlocksthesystemfromtheelectronicpasswordthefunction,thehardwarecircuitdesign,thesoftwaredesignandthehardwaredebugsfourpartsseparatelytoelaboratethissystem.TheelectronicpasswordlockstheprocedureiscompileswiththeClanguage.Whendesignprocedureduplicateusesthesubroutinetousethetechnology,locksthesecureaspecthasusedtheencryptiontechnology,themainfunctionbythepressedkeyinputandtherecognition,LEDdemonstrated,I2Cread-writeoperationandsoon.Hasalsoadoptedtheencryptionprocessinthesecureaspect.WhenprogrammingusestheC51language,andcarriesonthetranslationwithKeilsoftware.Thissystemelectronpasswordlocksthehardwarepartialstructuressimple,thecostislow,thesoftwarepartialuseselectronencryptionenhancementlocksthesecurity,hasthequitegoodmarketprospect.【Keywords】MCUAT89C51,LM386,electronicpasswordlock.目录摘要........................................3第一章单片机电子密码锁系统概述..............................41.电子密码锁的特点................................42.市场前景..................................43.新型安全密码锁的设计目标...........................44.工作原理................................5第二章单片机功能介绍...............................61.AT89C51的主要特性............................62.AT89C51的管脚说明..............................63.振荡器特性.................................7第三章密码锁硬件电路...............................81.硬件电路的组成................................82.硬件电路的连线................................83.硬件电路的电路图......................9第四章程序设计说明.............................101.程序设计内容.........................102.C语言源程序............................10结束语....................................15参考文献....................................16单片机电子密码锁设计【摘要】电子密码锁是集计算机技术、电子技术、数字密码技术为一体的机电一体化高科技产品,具有安全性高,使用方便等优点。本论文从电子密码锁系统的功能,硬件电路设计,软件设计和硬件调试四部分分别论述这一系统。本系统考虑到电子密码锁成本及体积因素,在设计电子密码锁部分时,以AT89C51单片机为核心,LM386音频功率放大器、LED等构成外围电路。本系统电子密码锁硬件部分结构简单、成本低,软件部分使用电子加密提高锁的安全性,具有比较好的市场前景。【关键词】单片机AT89C51、LM386、电子密码锁。第一章单片机电子密码锁系统概述随着社会物质财富的日益增长,安全防盗已成为社会问题。而锁自古以来就是把守门户的铁将军,人们对它要求甚高,既要安全可靠地防盗,又要使用方便,这也是制锁者长期以来研制的主题。目前国内,大部分人使用的还是传统的机械锁。然而,眼下假冒伪...