交通信号控制系统设计
合集下载
相关主题
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
摘 要
近年来随着科技的飞速发展,单片机的应用正在不断深入,同时带动传统控制检测技术日益更新。在实时检测和自动控制的单片机应用系统中,单片机往往作为一个核心部件来使用,仅单片机方面知识是不够的,还应根据具体硬件结构软硬件结合,加以完善。
交通信号灯控制方式很多。本系统采用以单片机AT89S52为中心器件来设计交通灯控制器,实现了通过AT89S52芯片的P1口设置红、绿灯燃亮时间的功能;红绿灯循环点亮,倒计时剩5秒时黄灯点亮警示(交通灯信号通过P1口输出,显示时间直接通过AT89S52的P0口输出至双位数码管);时间倒计时可通过双位数码管显示。本系统实用性强、操作简单、扩展功能强。
关键词:单片机交通灯调试
ABSTRACT
With the rapid development of science and technology in recent years, SCM applications are deepening at the same time promote the growing of traditional control detection technology updates. In real-time detection and automatic control of the microcomputer application system, the microcontroller is often used as a core component, only the microcontroller is not enough knowledge, but also based on specific hardware structure of hardware and software combination to be improved.
In this paper it has designed one kind of traffic light control system based on the MCS-51 monolithic integrated circuit. The system mainly includes the hardware circuit and the software routine. On the basis of comparison,we designed a circuit according to the design requirement,and compiled the corresponding software routine.The system structuቤተ መጻሕፍቲ ባይዱe is simple, it may realize the time hypothesis by the timing system, establishe traffic light's condition by the state control system. Based on this, we uses the LED digital tube to decode the counting system, so that each channel can not only show the status of traffic lights, but also to remind pedestrians time remaining, and provide a great convenience to vehicles and pedestrians. Applying the Monolithic integrated circuit AT89C51 to accomplish the control of the entire systematic , using C language design software. The system has the strong function, the volume is small, the cost is low, has certain practical application value.
本文设计了一种基于MCS-51单片机的交通灯控制系统。系统主要包括硬件电路和软件程序。在比较论证的基础上,设计了满足设计要求的电路,并编写相应的软件程序。系统构造简单,通过定时系统可以实现对时间的设定,由状态控制系统来设定交通灯的状态。在此基础上,使用LED数码管对计数系统进行译码显示,使每一通道上不仅能够显示交通灯的状态,还能提醒行人剩余时间,给行人和车辆的通行提供了很大的方便。应用单片机AT89S52来完成整个系统的控制,采用C语言设计软件。系统具有较强功能,体积小,成本低,有一定的实际应用价值。
Traffic signal control many ways. The system uses MSC-51 Series Microcontroller AT89C51-centric devices to design traffic signal controllers and achieved through the P1 port AT89C51 chip set of red, green, gave the time of the function; traffic light cycle of light, the countdown 5 seconds left when the yellow lamp lit warning (traffic light signals through the P1 port output, display time directly through the P0 port output AT89C51 to double-digit nixie tube); Time countdown can be a double-digit LED display. The system practical, simple, extending strong function.
近年来随着科技的飞速发展,单片机的应用正在不断深入,同时带动传统控制检测技术日益更新。在实时检测和自动控制的单片机应用系统中,单片机往往作为一个核心部件来使用,仅单片机方面知识是不够的,还应根据具体硬件结构软硬件结合,加以完善。
交通信号灯控制方式很多。本系统采用以单片机AT89S52为中心器件来设计交通灯控制器,实现了通过AT89S52芯片的P1口设置红、绿灯燃亮时间的功能;红绿灯循环点亮,倒计时剩5秒时黄灯点亮警示(交通灯信号通过P1口输出,显示时间直接通过AT89S52的P0口输出至双位数码管);时间倒计时可通过双位数码管显示。本系统实用性强、操作简单、扩展功能强。
关键词:单片机交通灯调试
ABSTRACT
With the rapid development of science and technology in recent years, SCM applications are deepening at the same time promote the growing of traditional control detection technology updates. In real-time detection and automatic control of the microcomputer application system, the microcontroller is often used as a core component, only the microcontroller is not enough knowledge, but also based on specific hardware structure of hardware and software combination to be improved.
In this paper it has designed one kind of traffic light control system based on the MCS-51 monolithic integrated circuit. The system mainly includes the hardware circuit and the software routine. On the basis of comparison,we designed a circuit according to the design requirement,and compiled the corresponding software routine.The system structuቤተ መጻሕፍቲ ባይዱe is simple, it may realize the time hypothesis by the timing system, establishe traffic light's condition by the state control system. Based on this, we uses the LED digital tube to decode the counting system, so that each channel can not only show the status of traffic lights, but also to remind pedestrians time remaining, and provide a great convenience to vehicles and pedestrians. Applying the Monolithic integrated circuit AT89C51 to accomplish the control of the entire systematic , using C language design software. The system has the strong function, the volume is small, the cost is low, has certain practical application value.
本文设计了一种基于MCS-51单片机的交通灯控制系统。系统主要包括硬件电路和软件程序。在比较论证的基础上,设计了满足设计要求的电路,并编写相应的软件程序。系统构造简单,通过定时系统可以实现对时间的设定,由状态控制系统来设定交通灯的状态。在此基础上,使用LED数码管对计数系统进行译码显示,使每一通道上不仅能够显示交通灯的状态,还能提醒行人剩余时间,给行人和车辆的通行提供了很大的方便。应用单片机AT89S52来完成整个系统的控制,采用C语言设计软件。系统具有较强功能,体积小,成本低,有一定的实际应用价值。
Traffic signal control many ways. The system uses MSC-51 Series Microcontroller AT89C51-centric devices to design traffic signal controllers and achieved through the P1 port AT89C51 chip set of red, green, gave the time of the function; traffic light cycle of light, the countdown 5 seconds left when the yellow lamp lit warning (traffic light signals through the P1 port output, display time directly through the P0 port output AT89C51 to double-digit nixie tube); Time countdown can be a double-digit LED display. The system practical, simple, extending strong function.