用单片机实现交通信号灯控制摘 要近年来随着科技的飞速进展,单片机的应用正在不断地走向深化,同时带动传统控制检测日新月异更新。在实时检测和自动控制的单片机应用系统中,单片机往往作为一个核心部件来使用,仅单片机方面知识是不够的,还应根据具体硬件结构,以及对具体应用对象特点的软件结合,加以完善。本系统由单片机系统、键盘、交通灯演示系统组成。系统包括左转、右转、以及基本的交通灯的功能。系统除基本交通灯的功能外,还具有倒计时、时间设置、紧急情况处理、分段调整信号灯的点亮,时间以及根据具体情况手动控制等功能。本系统硬件电路实现简单而且稳定,交通信号灯模拟控制系统设计利用单片机的定时器定时,令十字路口的红绿灯交替点亮和熄灭,并利用 LED 数码管显示时间。用 89S51 做输出口,控制发光二极管的熄与灭,模拟交通灯管理。本系统若能用 LCD 做显示器就大大增强了其有用性。关键词:89S51 单片机,交通灯,计时,显示USE SINGLE-CHIP CONTROL TRAFFIC LIGHTSABSTRACT In recent years, with the rapid development of science and technology, the application of SCM is to keep at the same time, traditional control testing update on Crescent benefits. In real-time detection and automatic control system of single-chip applications, often as a single-chip core component to use only single-chip is not enough knowledge, but also the specific hardware structure and application of object-specific characteristics software, to be improved. The system consists of single-chip microcomputer system, keyboard, traffic lights that my system. System, including left turn, right turn, as well as the basic function of traffic lights. Traffic lights system in addition to basic functions, also has a countdown, the time setting, emergency handling, at times to adjust the light signal, according to the specific circumstances of time and manual control functions. Hardware circuit of the system simple and stable simulation of traffic signal control system design using single-chip timer timing,...