摘要 摘 要近年来随着科技的飞速发展,单片机的应用正在不断深入,同时带动传统控制检测技术日益更新。在自动控制的单片机应用系统中,单片机往往作为一个核心部件来使用,仅单片机方面知识是不够的,还应根据具体硬件结构软硬件结合,加以完善。十字路口车辆穿梭,行人熙攘,车行车道,人行人道,有条不紊。那么靠什么来实现这井然秩序呢?靠的就是交通信号灯的自动指挥系统。交通信号灯控制方式很多。本系统采用 MSC-51 系列单片机 STC89C52 为中心器件来设计交通灯控制器,利用发光二极管和数码管实现了设置红、绿灯燃亮时间的功能,红绿灯循环点亮,绿灯倒计时结束为 5 秒的黄灯闪烁警示,利用按键使得系统具有倒计时,时间设置紧急情况处理,根据具体情况手动控制等功能。本系统实用性强、操作简单、扩展功能强等特点。 关键词:STC89C52,发光二极管,数码管,按键ABSTRACTABSTRACTWith the rapid development of science and technology in recent years, SCM applications are deepening at the same time promote more traditional control detection update. SCM applications in automatic control systems, SCM is often used as a core component, only the MCU is not enough knowledge, but also hardware and software based on specific hardware combination to be improved.Crossroads shuttle vehicles, pedestrians bustling, car dealers Drive, people walkways, orderly. Then rely on to achieve the discipline of the order then? Rely on the automatic traffic light is the chain of command. Many ways to control traffic lights. In this system, MSC-51 Series MCU devices designed STC89C52 center traffic light controller, use light-emitting diode and digital control to achieve a set of red, green kindle function of time, traffic light cycle light, countdown 5 seconds left when the yellow light flashes warning, use of keys makes the system has countdown time setting, emergency treatment, according to manual control and other functions specific circumstances. The system practical, simp...