1、 摘摘 要要 近年来随着科技的飞速发展,单片机的应用正在不断深入,同时带动传统控制检 测技术日益更新。在实时检测和自动控制的单片机应用系统中,单片机往往作为一个 核心部件来使用,仅单片机方面知识是不够的,还应根据具体硬件结构软硬件结合, 加以完善。 十字路口车辆穿梭,行人熙攘,车行车道,人行人道,有条不紊。那么靠什么来 实现这井然秩序呢?靠的就是交通信号灯的自动指挥系统。交通信号灯控制方式很 多。本系统采用 MCS-51 系列单片机 AT89C51 为中心器件来设计交通灯控制器,实现 了能根据实际车流量通过 8051 芯片的 P3 口设置红、绿灯燃亮时间的功能;红绿灯循 环点亮,倒计时剩 5
2、秒时黄灯闪烁警示(交通灯信号通过 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
3、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 softw
4、are 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
5、modes to control the traffic lights. The system uses a series of MCS-51 as the center AT89C51 single-chip device designed to control the traffic lights, so as to realize the function of setting red, green light time by 8051 chips P3 port according to the actual traffic flows, lighting the red-light
6、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 is this system. Key words: SCM, MCU,traffic light,Nixie tube 目目 录录 1绪 论 1 1.1 研究的背景和意义1 1.2 国内外发展概况1 1 . 3