文档介绍:车辆闯红灯监控系统内容摘要近来随着科技的飞速发展,单片机的应用正在不断深入,同时带动传统控制检测技术日益更新。在实时检测和自动控制的单片机应用系统中, 单片机往往作为一个核心部件来使用,仅单片机方面知识是不够的,还应根据具体硬件结构软硬件结合,加以完善。十字路口车水马龙,人来人往,有条不紊,靠的就是交通信号灯的自动指挥系统。本系统采用MSC-51系列单片机AT89C51和可编程并行I/O接口芯片8255A为中心器件来设计交通灯控制器,实现了能根据实际车流量通过89C51芯片的P2口设置红、绿灯燃亮时间的功能;红绿灯循环点亮,倒计时剩5秒时黄灯闪烁警示(交通灯信号通过P2口输出,显示时间直接通过74LS245的B口输出至双位数码管);车辆闯红灯报警;绿灯时间可检测车流量并可通过双位数码管显示。本系统实用性强、操作简单、扩展功能强。关键词:单片机,交通灯,闯红灯,检测车流量AbstractRecently,withthedrapidevelopmentofscienceandtechnology,theapplicationofSCMisunceasinglythorough,-ontrolofsingle-chip puterapplicationsystem,ponent,knowledgeisnotonlytheMCU,ordingtospecifichardwarestructure,softwareandhardware,,bustling,garage,pedestrianhumanitarian,orderlydriveway,-51seriesmicrocontrollerAT89C51andprogrammableparalleltheI/Odevicesforthecenter8255Ainterfacechiptodesignthecontroller,lights,ordingtoactualtrafficthroughthe8051chipsred,green,P2mouthsettingtimefunction;thedepthTrafficlight,circulationfor5secondsremainingcountdownyellowlightsflashingwarning(whenthetrafficsignaloutputbymouththattime,P2directlythroughthemouthBof74LS245outputtodoubleadigitaltube),Trafficpolice;,simpleoperationandfunctionexpans