基于STC89C52单片机的超市存包柜控制模块设计论文

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

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

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

资源描述

I摘要本课题由STC89C52单片机构成核心控制系统,整个系统由主控部分、键盘显示控制部分、执行部分三部分组成,通过密码的核对完成自动存包取包过程。第一部分:CPU核心控制部分,由单片机STC89C52、复位电路、时钟电路等构成,是整个系统的核心。第二部分:键盘显示控制部分。用1个LCD1602和12个按键进行管理,LCD1602用于显示柜的号码和4位密码,12个按键分别为10个数字键和2个功能键。通过这些键盘,用户就可以完成所有的操作。第三部分:执行机构部分。它是通过89C52的并行口控制8个发光二极管的状态(亮灭)来模拟柜子的存包取包的过程。软件部分主要采用我们自己设定的一种与柜的号码相关联的算法来产生一组4位的随机密码,而密码的产生、核对过程就对应存包、取包的过程。本系统具有如下特色:(1)经济实用、操作简单且便于安装。(2)能产生一组4位随机密码,密码使用一次有效;有三次容错功能和解锁功能,因而系统安全可靠。(3)利用软件产生随机密码而不是硬件,使得硬件更为简洁、可靠、稳定。关键词:STC89C52单片机;自动存包柜;随机密码;解锁IIABSTRACTThissubjectisbecomekeycontrolsystemsbySTC89C52formsandanorganization.Thewholesystemisshownandiscontrolledpartly,carriedoutsomethreepartstomakeupbytopmanagementpart,keyboard,throughcheckingthatfinishesstoringandwrappingupandfetchthecourseofthebagautomaticallyofthepassword.Thefirstpart:CPUcorecontrolandpartly,Formof89C52one-chipcomputers,wholecoreofsystem.Throughthesekeyboards,userscanfinishalloperation.Thesecondpart:Thekeyboardshowthatcontrolssome.InchargeofwithLCD1602to4numbersand12buttongoonandmanage,4numberinchargeofanduseforandshowtwocupboardsymboland4password,12buttonsare10numericalkeysrespectivelyand2functionkeys.Throughthesekeyboards,userscanfinishalloperation.Thethirdpart:Executivebody'spart.Initthroughthenotrunningsidebysidebecausetherearen'tmouth,andcontrolthestatesoflightof8pieces(ontokill)of89C52andsimulateStoringandwrappingupthecoursewhichfetchesthebag.Softwarepartadoptweonethatoneselfestablishcorrelatewithnumberofthecupboardalgorithmthatunitecomeandproduceonepasswordatrandomof4ofgroupmainly,Andproduction,checkcoursecorrespondtoanddepositthebag,fetchthecourseofthebagofpassword.Thissystemhasthefollowingcharacteristic:1、Economicalandpractical,operatesimpleandeasytoinstally.2、Canproduceonegroup4passwordatrandom,passworduseoneeffective;Thereisfault-tolerantfunctionthreetimesandlockingthefunction,thereforethesystemissafeandreliable.3、Utilizesoftwareproducepasswordinsteadofhardware,makehardwaremoresuccinct,reliable,stabilityatrandom.KeyWords:STC89C52;Storeabagofcupboards;thepassword;unblockatrandomautomaticallyIII目录_Toc2625552341引言···································································································12系统概述·····························································································22.1系统总体设计目标功能及要求························································22.2系统总体设计方案·······································································22.2.1系统原理简介···································································22.2.2系统设计方案···································································23系统硬件电路设计·················································································43.1系统硬件电路·············································································43.2STC89C52单片机简介··································································43.2.1单片机概述······································································43.2.2STC89C52主要性能···························································83.2.3STC89C52芯片引脚功能·····················································93.3单片机基本工作电路···································································113.3.1单片机的最小系统电路······················································113.3.2显示电路········································································133.3.3键盘电路········································································143.3.4稳压电源········································································154系统的软件设计···················································································164.1C语言程序设计··········································································164.1.1C语言简介······································································164.1.2C语言的特点···································································164.1.3C源程序的结构特点··························································174.2软件设计··················································································174.2.1程序设计步骤··································································184.2.2程序各模块设计·······························································184.2.3程序流程图·····································································184.2.4各模块的软件程序设计······················································204.2.5密码验证方案比较····························································205系统调试····························································································215.1硬件调试··················································································215.2软件调试··················································································21IV5.3调试中遇到的问题及解决方法························································215.3.1硬件···············································································215.3.2软件··············································································21结论·······························································································23参考文献····················

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

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

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

×
保存成功