1、共 30 页 第 1 页 中文摘要中文摘要 近年来随着科技的飞速发展,单片机的应用正在不断深入,同时带动传统 控制检测技术日益更新。在实时检测和自动控制的单片机应用系统中,单片机 往往作为一个核心部件来使用,仅单片机方面知识是不够的,还应根据具体硬 件结构软硬件结合,加以完善。 十字路口车辆穿梭,行人熙攘,车行车道,人行人道,有条不紊。那么靠 什么来实现这井然秩序呢?靠的就是交通信号灯的自动指挥系统。交通信号灯 控制方式很多。本系统采用 MSC-51 系列单片机 ATSC51 和可编程并行 I/O 接口 芯片80C51为中心器件来设计交通灯控制器, 实现了能根据实际车流量通过8051 芯片的
2、P1 口设置红、绿灯燃亮时间的功能;红绿灯循环点亮,倒计时剩秒时黄 灯闪烁警示。本系统实用性强、操作简单、扩展功能强。 关键词:关键词:交通灯 单片机 MSC-51 计时 ABSTRACTABSTRACT Years with the rapid development of science and technology, SCM applications are deepening at the same time promote more traditional control detection update. In real-time detection and control of
3、the microcomputer application system, the microcontroller is often used as a core component, only the SCM knowledge is inadequate and should be based on specific hardware architecture hardware and software, to be improved. Crossroads shuttle vehicles, pedestrians bustling, car dealers Drive, people
4、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 ATSC51 and programmable parallel I / O interface chip 80C51-centered design of traffic sign
5、al controller device to realize the actual traffic volume by 8051 according to the P1 port chip set of red, green time kindle function; traffic light cycle of light, yellow light flashes when the countdown seconds left warning. The system practical, simple, powerful extensions Keywords:Keywords: tra
6、ffic light SCM MSC-51 timing 共 30 页 第 2 页 目录目录 中文摘要 . 1 ABSTRACT . 1 第一章单片机控制交通灯的背景 . 4 1.1 交通灯的背景 4 1.1.1 交通灯的历史 4 1.1.2 交通灯的出现 4 1.2 单片机简介 4 1.2.1 单片机的发展历程 4 1.2.2 单片机的特点 5 1.2.3 MCS51 单片机内部结构有 8 大部分. 5 1.2.4 单片机的内部结构图 7 第二章 单片机控制交通系统总体设计 . 8 2.1 单片机交通控制系统通行方案设计 8 2.2 单片机交通控制系统的功能要求. 10 2.2.1 倒计时显示. 10 2.2.2 车流量检测及调整 10 2.2.3 时间手动设置. 11 2.2.4 紧急处理 11 2.3 单片机交通控制系统的基本构成及原理. 11 第三章 系统硬件电路的设计 . 12 3.1 系统硬件总电路构成及原理. 12 3.1.1 系统硬件电路构成. 13 3.1.2 系统工作原理. 13 3.1.3 车流量检测电路及模拟. 14 3.1.4 八段