-1毕业论文题目基于单片机的交通灯控制系统设计姓名****学号所在系专业年级指导教师职称二O一四年五月三十一日-2摘要近年来随着科技的飞速发展,单片机的应用正在不断地走向深入,同时带动传统控制检测日新月益更新。在实时检测和自动控制的单片机应用系统中,单片机往往是作为一个核心部件来使用,仅单片机方面知识是不够的,还应根据具体硬件结构,以及针对具体应用对象特点的软件结合,加以完善。十字路口车辆穿梭,行人熙攘,车行车道,人行人道,有条不紊。那么靠什么来实现这井然秩序呢?靠的就是交通信号灯的自动指挥系统交通信号灯控制方式很多。本系统采用MSC-51系列单片机ATSC51和可编程并行I/O接口芯片8255A为中心器件来设计交通灯控制嚣,实现了能根据实际车流量通过8051芯片的P1口设置红、绿灯燃亮时间的功能;红绿灯循环点亮。倒计时剩5秒时黄灯闪烁警示;车辆闯红灯报警;绿灯时间可检测车流量并可通过双位数码管显示。本系统实用性强、操作简单、扩展功能强。关键词:单片机;交通灯AbstractInrecentyears,withtherapiddevelopmentofscienceandtechnology,SCMapplicationsareconstantlygo,atthesametimedrivethetraditional-3controldetectionnissinmonthgoodupdates.Crossroadstransports,bustling,bikelanes,pedestrianfootbridgehumanitarian,inanorderlyway.Sowhattodothisinorder?Relyonistheautomaticcommandsystemoftrafficlights.Alotoftrafficsignallampcontrolway.ThissystemadoptstheMSC-51seriesmicrocontrollerATSC51andprogrammableparallelI/Ointerfacechip8255atao,adeviceforthecentertodesignatrafficlightcontrolcanrealizetheaccordingtoactualtrafficby8051chipP1mouthsetfunctionofredandgreenlightburningtime;Lighttrafficlightcycle.Thecountdownwith5secondsleftyellowlightsflashingwarning;Vehiclerunningaredlightalarm;Greentimecandetectthenumberofcarsandcanthroughdigitaltubedisplay.Thesystempractical,simpleoperation,strongextendedfunctionality.Keywords:singlechipmicrocomputer;Thetrafficlight目录前言......................................................................5第一章单片机的简介......................................................61.1单片机的概述.......................................................61.2单片机的发展......................................................6-41.3单片机的特点.....................................................7第二章单片机交通灯......................................................82.1单片机交通灯发展前景...............................................82.2单片机交通灯的应用.................................................8第三章MSC-51芯片简介...................................................93.1MSC-51结构........................................................93.28255芯片简介......................................................93.374LS373简介......................................................10第四章系统硬件.........................................................114.1交通管理的方案论证...............................................114.2系统硬件设计.....................................................114.3系统总框图........................................................124.4系统工作原理......................................................124.5硬件延时.........................................................124.5.1初值计算...................................................124.5.2秒的方法....................................................124.6交通硬件线路图....................................................13第五章控制器的软件设计................................................145.1软件延时..................................