基于单片机的简易十字路口交通灯设计 毕业论文.pdf
文本预览下载声明
基于单片机的简易十字路口交通灯设计
Sigle—chip Processor––based Design for Traffic Light
摘要
近年来随着科技的飞速发展,单片机的应用正在不断深入,同时带动传统控制检测技
术日益更新。在实时检测和自动控制的单片机应用 统中,单片机往往作为一个核心部件
来使用,仅单片机方面知识是不够的,还应根据具体硬件结构软硬件结合,加以完善。
十字路口车辆穿梭,行人熙攘,车行车道,人行人道,有条不紊。那么靠什么来实
现这井然秩序呢?靠的就是交通信号灯的自动指挥系统。交通信号灯控制方式很多。本
系统采用MCS-
51系列单片机AT89C52为中心器件来设计交通灯控制器,实现了能根据实际车流量通过8
051芯片的P3 口设置红、绿灯燃亮时间的功能;红绿灯循环点亮,倒计时剩5秒时黄灯闪
烁警示(交通灯信号通过P1 口输出,显示时间通过P0 口输出至双位数码管)。本系统设
计周期短、可靠性高、实用性强、操作简单、维护方便、扩展功能强。
关键词:单片机;交通灯
Abstract
In recent years, with the rapid development of science and technology, the application of
SCM is going deep, driving the traditional detection techniques to renew day by day. In the
real-time examination and in the automatic control monolithic integrated circuit application
system, the monolithic integrated circuit often took a core part uses. The monolithic integrated
circuit aspect knowledge is only insufficient, but should also act according to the concrete
hardware architecture software and hardware union, to be improved.
The intersection vehicles shuttle, the pedestrian is bustling, car dealership traffic lane, person
sidewalk, methodical. Then depending on what to realizes this orderly order? the traffic lights
on the automatic control system. There are great number kinds of modes to control the traffic
lights. The system uses a series of MCS-51 as the center AT89C52 single-chip device designed
to control the traffic lights, so as to realize the function of setting red, green light time by 8051
chip’s P3 port according to the actual traffic flows, lighting the red-light and green-light by turn
and lighting the yellow-light to warm while 5 seconds left(outputting the traffic light signal by
P1,outpuing the time by P0 and showing the time on double-digits nixie tube). Short of the
design cycle, high reliability, practical, simple operation, easy maintenance, the expansion of
powerful
显示全部