1、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 exam
3、ination 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
4、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 AT89C51 single-chip device designed to control the traffic lights, so as to realize the function of setting red,