您好,欢迎访问三七文档
当前位置:首页 > IT计算机/网络 > 其它相关文档 > 基于51单片机的三层电梯系统设计资料
基于51单片机的三层电梯系统设计专业班级:电子信息科学与技术1班姓名:李强指导教师:金国华老师信息科学技术学院I摘要本文设计了一款基于单片机(AT89C51)的三层电梯的模拟控制系统。以51单片机为核心,由7段显示数码管来作为电梯楼层和电梯上下行状态的显示部分,数码管显示“p”则说明电梯运行状态向上,显示“d”则说明电梯运行状态向下。由按键来分别表示电梯内外的各个功能按钮。本设计主要是利用了单片机:灵活性大、通用性强以及易于实现复杂控制的特点,使系统在达到设计目的的同时显得结构简单,操作方便,容易理解。文中首先是针对设计的目的选择出比较合适的设计方案,并且对AT89C51单片机和7段显示数码管进行了简要介绍,然后将本次设计的硬件电路分为单片机控制模块、显示模块、按键检测模块三个大的模块。在进行了电路的连接之后,根据电路的连接就各个模块分别编写程序再由主程序统一衔接在一起。通过调试运行,所设计的三层电梯系统基本满足设计要求。关键词:AT89C51单片机;电梯控制;数码显示IIAbstractInthispaper,wedesignedathreeelevatoranalogcontrolsystemwhichisbasedonamicrocontroller(AT89C51).Themicrocontrollerasthecore,and7-segmentdigitaltubedisplayastheelevatorfloorandtheelevatorupanddownthelinestatusdisplaysection.Whentheelevatorrunningupthedigitaldisplaypandwhentheelevatorrunningdownthedigitaldisplayd.Variousfunctionbuttonsinsideoroutsidetheelevatorarerepresentedbybuttons.ThisdesignismainlytheuseofthecharacteristicsofSCM:flexibility,versatilityandeasytoimplementcomplexcontrolfeatures.Sothatthesystemisnotonlydesignedtomeetthedesignrequirementsbutalsoseemsimplestructure,easytooperateandunderstand.Firstofall,wechoosetheappropriatedesignandthenabriefdescriptionofAT89C51microcontrollerand7-segmentdisplaydigitaltube.Theninthisdesignthehardwarecircuitisdividedintothreelargemodules:single-chipcontrolmodule,displaymodule,keydetectionmodule.Accordingtotheconnectionofthecircuit,wewriteprogramsoneachmoduleseparatelyandthentogetherinunitybythemainprogram.Bycommissioning,thesystemisbasicallymeettherequirementofthedesign.Keyword:AT89C51Microcontroller;Elevatorcontrol;DigitaldisplayIII目录第1章绪论.................................................................................................................11.1课题的背景及意义.........................................................................................11.2设计的目的要求.............................................................................................11.3方案选择设计.................................................................................................21.3.1按键模块方案选择...............................................................................21.3.2AT89C51单片机控制模块供电方案选择...........................................21.3.3显示模块方案选择...............................................................................2第2章电子元件.........................................................................................................42.1AT89C51单片机.............................................................................................42.1.1AT89C51单片机硬件..........................................................................42.1.2AT89C51单片机中断系统.................................................................112.1.3AT89C51单片机定时器/计数器.......................................................132.1.4串行通信.............................................................................................162.1.5AT89C51单片机的发展和未来.........................................................172.27段显示数码管.............................................................................................182.2.17段数码管的结构和原理...................................................................182.2.27段数码管的驱动方法.......................................................................19第3章硬件电路设计...............................................................................................213.1AT89C51单片机控制模块.........................................................................213.1.1电源电路.............................................................................................213.1.2复位电路.............................................................................................213.1.3时钟电路.............................................................................................223.2按键模块.......................................................................................................223.3显示模块.......................................................................................................23第4章软件程序设计...............................................................................................244.1主程序模块...................................................................................................244.2按键检测模块...............................................................................................254.3显示模块.......................................................................................................25第5章仿真及硬件实现...........................................................................................275.1仿真...............................................................................................................275.1.1仿真软件.............................................................................................27IV5.1.2仿真结果.............................................................................................295.2硬件实现.......................................................................................................305.2.1实物制作.............................................................................................315.2.2系统调试....
本文标题:基于51单片机的三层电梯系统设计资料
链接地址:https://www.777doc.com/doc-3174551 .html