如果您无法下载资料,请参考说明:
1、部分资料下载需要金币,请确保您的账户上有足够的金币
2、已购买过的文档,再次下载不重复扣费
3、资料包下载后请先用软件解压,在使用对应软件打开
PAGE\*MERGEFORMATI基于单片机的交通灯控制系统设计摘要当你路过一个十字路口时,你是否注意到各个方向车辆和行人有有条不紊的通过十字路口。这样井然有序的情境靠什么来实现的呢?靠的是交通灯控制系统。在论文中我使用单片机STC89C51作为主控单元。通过单片机芯片STC89C51的P1口和P2口分别控制东西方向和南北方向红黄绿灯的点亮。通过单片机芯片STC89C51的RXD和TXD控制数码管的显示时间。采用发光二极管来实现交通灯的点亮,由数码管实现时间的显示。该系统不仅仅具有交通灯的基本功能还有倒计时,还可以通过按键在紧急事件中设置为四个方向都为红灯的紧急模式,也可以通过按键在夜晚设置为四个方向都为黄灯的夜间模式。当然也可以通过按键来设置交通灯的倒计时时间,使系统更加符合实际交通情况。我设计的交通灯控制系统可以较好的模拟十字路口出现的交通状况,使行人和车辆能有序的通行。我设计的系统成本低,操作简单,性能稳定,实用性较强。关键词:交通灯控制系统单片机AT89C51数码管LEDPAGE\*MERGEFORMATIIAbstractWhenyoupassanintersection,haveyounoticedthatvehiclesandpedestriansthroughtheintersectionmethodical.Suchanorderlysituationrelyontoachieveit?Relyonthetrafficlightcontrolsystem.Thispaperwillintr-oduceasingle-chipmicrocomputerATC89C51asthemaincontrolunitsystem.Thr-oughtheSTC89C51microcontrollerchipP1andP2portrespectivelycontroltheeast-westandnorth-southdirectionredyellowgreenlight.ThroughSTC89C51microcontrollerRXDandTXDcontroldigitaltubedisplaytime.Lightemittingdiodeisusedtorealizetrafficlightslit,achievedbythedigitaltimedisplay.Thesystemnotonlyhasthebasicfunctionofthetrafficlightsandthecountdown,youcanalsothroughthebuttonsintheeventofanemergencyissettofourdirectionsfortheredlightinemergencymode,canalsothroughthebuttonsinthenightissettothefourdirectionsofyellowlightnightmode,ofcourse,alsocanthroughthebuttontosetthecountdowntimeoftrafficlight,makethesystemmoreinlinewiththeactualsituation.Idesignthetrafficlightcontrolsystemcanbettersimulatethecrossroadsoftraffic,thepedestriansandvehiclestoorderlytraffic.Idesignedthesystemoflowcost,simpleoperation,stableperformance,strongpracticability.Keywords:TrafficLightControlSystemSCMAT89C51DigitalpipeLED目录TOC\o"1-3"\h\uHYPERLINK\l_Toc3165摘要PAGEREF_Toc3165IHYPERLINK\l_Toc18454AbstractPAGEREF_Toc18454IIHYPERLINK\l_Toc25404绪论PAGEREF_Toc254041HYPERLINK\l_Toc9201系统设计方案论证PAGEREF_Toc9203HYPERLINK\l_Toc58281.1设计方案PAGEREF_Toc58283HYPERLINK\l_Toc317321.2功能概述PAGEREF_Toc317324HYPERLIN