摘要近年来随着科技的飞速发展,一个以微电子技术、计算机技术和通信技术为先导的信息革命正在蓬勃发展。计算机技术作为三者之一,怎样与实际应用更有效的结合并发挥其作用。单片机作为计算机技术的一个分支,正在不断的应用到实际生活中,同时带动传统控制检测的更新。在实时检测和自动控制的应用系统中,单片机往往是作为一个核心部件使用,针对具体应用对象的特点,配以其它器件来加以完善。十字路口车辆穿梭,行人熙攘,车行车道,人行人道,有条不紊。那么靠什么来实现交通的井然秩序呢?靠的是交通信号灯的自动指挥系统,来实现交通的井然有序。交通信号灯控制方式很多。本系统采用美国ATMEL公司生产的单片机AT89S51,以及其它芯片来设计交通灯控制。实现了通过AT89S51芯片的P1口设置红、绿灯点亮的功能,通过AT89S51芯片的RXD、TXD输入、输出设置显示时间。交通灯的点亮采用发光二极管实现,时间的显示采用七段数码管实现。单片机系统采用的直流供电。为了系统稳定可靠,系统内集成了“看门狗”芯片,避免了系统因为死机而停止工作的情况发生。系统实用性强、操作简单、扩展性好。关键词:十字路口交通信号灯数码管AbstractInrecentyears,withtherapiddevelopmentofscienceandtechnology,amicroelectronictechnology,computertechnologyandcommunicationtechnologyastheforerunneroftheinformationrevolutionisbooming.Asoneofthethreecomputertechnology,combinedwiththepracticalapplicationofhowmoreeffectiveandplayitsrole.Singlechipmicrocomputerasabranchofcomputertechnology,arebeingappliedtoreallife,andpromotethetraditionalcontroldetectionupdate.Inreal-timedetectionandautomaticcontrolsystem,microcontrollerisoftenusedasacorecomponent,accordingtothecharacteristicsofthespecificapplicationobject,matchwithotherdevicestobeperfect.Crossroadsshuttlevehicles,pedestriansbustling,cardealerslane,peoplewalkways,everythingingoodorderandwellarranged.Sowhattorealizetrafficinorder?Bytheautomaticcommandsystemoftrafficsignallamp,trafficinordertoachieve.Alotoftrafficsignalcontrol.ThesystemusesAmericaATMELcompany'sSCMAT89S51,andotherchiptodesignthecontroloftrafficlights.ThroughtheimplementationoftheAT89S51portP1chipsetofred,greenlightfunction,throughtheAT89S51chipRXD,TXDinput,outputissettodisplaytime.Trafficlightslitthelightemittingdiode,timedisplayusingsevendigitaltube.DCpowersupplyusedinSCMsystem.Inordertothesystemisstableandreliable,thesystemintegrates"watchdog"chip,toavoidthesystemcrashedandstopworkbecauseofthesituation.Thesystempractical,simpleoperation,goodscalability.KEYWORDS:CrossroadsTrafficlightDigitaltube目录第一章绪言........................................................................................................................1第二章交通管理方案论证...................................................................................................2第一节设计任务............................................................................................................2第二节方案介绍............................................................................................................2第三章交通灯系统硬件设计...............................................................................................5第一节单片机概述........................................................................................................5第二节系统构成............................................................................................................6第三节芯片选择与介绍................................................................................................7第四章交通...