您好,欢迎访问三七文档
基于单片机控制的交通灯摘要近年来随着科技的飞速发展,一个以微电子技术、计算机技术和通信技术为先导的信息革命正在蓬勃发展。计算机技术作为三者之一,怎样与实际应用更有效的结合并发挥其作用尤为重要。单片机作为计算机技术的一个分支,正在不断的应用到实际生活中,同时带动传统控制检测的更新。在实时检测和自动控制的应用系统中,单片机往往是作为一个核心部件使用,针对具体应用对象的特点,配以其它器件来加以完善。十字路口车辆穿梭,行人熙攘,车行车道,人行人道,有条不紊。那么靠什么来实现交通的井然秩序呢?靠的是交通信号灯的自动指挥系统,来实现交通的井然有序。交通信号灯控制方式很多,本系统采用美国ATMEL公司生产的单片机AT89S51,以及其它芯片来设计交通灯控制,实现了通过AT89S51芯片的P1口设置红、绿灯点亮的功能,通过AT89S51芯片的RXD、TXD输入、输出设置显示时间。交通灯的点亮采用发光二极管实现,时间的显示采用七段数码管实现。单片机系统采用的是5V直流电源供电。为了系统稳定可靠,系统内集成了“看门狗”芯片,避免了系统因为死机而停止工作的情况发生。系统实用性强、操作简单、扩展性好。关键词:单片机;交通灯;控制器TheRrafficLightBasedonTheSingle-chipControlABSTRACTInrecentyearsalongwithtechnicalrapiddevelopment,Takemicroelectronictechnology,computertechnologyandcommunicationasforerunner'sinformationrevolutionvigorousdevelopment。Thecomputertechnologytookthreeone,howwieldsitsfunctionconcurrentlywithapracticalapplicationmoreeffectiveunion。Themonolithicintegratedcircuittookthecomputertechnologyabranch,intheunceasingapplicationpracticallife,simultaneouslyisleadingthetraditionalcontrolexaminationtherenewal。Inthereal-timeexaminationandintheautomaticcontrolapplicationsystem,themonolithicintegratedcircuitoftentakesacorepartuse,inviewofconcreteapplicationobjectcharacteristic,Matchescomesbyothercomponentstoconsummate。Theintersectionvehiclesshuttle,thepedestrianisbustling,cardealershiptrafficlane,humansidewalk,methodical.Whatthendependsontorealizethetransportationorderlyorder?Dependsonisthestreet-trafficcontrollightsautomaticcommandsystem,realizestransportationsystematic。Thestreet-trafficcontrollightscontrolmodeareverymany。ThissystemusesmonolithicintegratedcircuitAT89S51whichAmericanATMELCorporationproduces,aswellasotherchipsdesignthetrafficlightcontrol。RealizedmouthhasestablishedthefunctionthroughAT89S51thechipP1whichred,thegreenlightlightened,throughAT89S51chipRXD、TXDinput,outputestablishmentdemonstrationtime。Thetrafficlightlightensusesthelightemitterdioderealization,thetimedemonstrationusessevensectionofnixietuberealizations。Themonolithicintegratedcircuitsystemusesdirect-currentpowersupply。Forsystemstablereliable,inthesystemintegrated“thewatch-dog”thechip,avoidedthesystembecauseofdyingmachinetheknockoffsituationoccurrence。Thesystemusabilitystrong、theoperationsimple、theextensionisgood。KEYWORD:Onlyflatmachine;Trafficlights;Controller目录1前言.............................................................................................................................................12交通管理方案论证.....................................................................................................................22.1设计任务..........................................................................................................................22.2方案选择..........................................................................................................................23交通灯系统硬件设计.................................................................................................................53.1单片机概述......................................................................................................................53.2系统构成..........................................................................................................................53.3芯片选择与介绍..............................................................................................................63.3.1AT89S51芯片........................................................................................................63.3.274LS164芯片........................................................................................................93.3.374HC04输出信号与信号灯................................................................................103.4LED数码管显示............................................................................................................103.5交通灯控制线路图........................................................................................................124交通灯系统软件设计...............................................................................................................144.1程序设计流程图............................................................................................................144.2延时的设定....................................................................................................................154.2.1计数器初值计算.................................................................................................154.2.2相应程序代码.....................................................................................................164.3程序的主控制循环调用................................................................................................174.4对现有程序的扩充........................................................................................................185实验调试...................................................................................................................................195.1实验平台........................................................................................................................195.2实验步骤......................................
本文标题:交通灯-论文参考
链接地址:https://www.777doc.com/doc-3538189 .html