1、共 26 页 第 1 页 中文摘要中文摘要 近年来随着科技的飞速发展,单片机的应用正在不断深入,同时带动传统控制检测技 术日益更新。在实时检测和自动控制的单片机应用系统中,单片机往往作为一个核心部件 来使用,仅单片机方面知识是不够的,还应根据具体硬件结构软硬件结合,加以完善。 十字路口车辆穿梭,行人熙攘,车行车道,人行人道,有条不紊。那么靠什么来实现 这井然秩序呢?靠的就是交通信号灯的自动指挥系统。交通信号灯控制方式很多。本系统 采用 MSC-51 系列单片机 A TSC51 和可编程并行 I/O 接口芯片 80C51 为中心器件来设计交 通灯控制器,实现了能根据实际车流量通过 8051 芯片
2、的 P1 口设置红、绿灯燃亮时间的功 能;红绿灯循环点亮,倒计时剩秒时黄灯闪烁警示。本系统实用性强、操作简单、扩展功 能强。 关键词:关键词:交通灯 单片机 MSC-51 计时 ABSTRACT 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 the m
3、icrocomputer 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 walkw
4、ays, 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 A TSC51 and programmable parallel I / O interface chip 80C51-centered design of traffic signal c
5、ontroller 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: traffic light SC
6、M MSC-51 timing 共 26 页 第 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 单片机交通控制系统的功能要求 . 9 2.2.1 倒计时显示 . 9 2.2.2 车流量检测及调整 10 2.2.3 时间手动设置 . 10 2.2.4 紧急处理 10 2.3 单片机交通控制系统的基本构成及原理 . 10 第三章 系统硬件电路的设计 . 11 3.1 系统硬件总电路构成及原理 . 11 3.1.1 系统硬件电路构成 . 12 3.1.2 系统工作原理 . 12 3.1.3 车流量检测电路及模拟 . 13 3.1.4