1、 基于基于 5151 单片机的交通灯系统设计单片机的交通灯系统设计 作者姓名: 专业名称:电气工程及其自动化 指导教师: 基于 51 单片机的交通灯设计 - 1 - 中文摘要中文摘要 近年来随着科技的飞速发展,单片机的应用正在不断深入,同时带动 传统控制检测技术日益更新。在实时检测和自动控制的单片机应用系统 中,单片机往往作为一个核心部件来使用,仅单片机方面知识是不够的, 还应根据具体硬件结构软硬件结合,加以完善。 十字路口车辆穿梭,行人熙攘,车行车道,人行人道,有条不紊。那 么靠什么来实现这井然秩序呢?靠的就是交通信号灯的自动指挥系统。 交 通信号灯控制方式很多。 本系统采用 STC89C5
2、2 单片机以及单片机最小系 统和三极管驱动电路以及外围的按键和数码管显示等部件, 设计一个基于 单片机的交通灯设计。设计通过两位一体共阴极数码管显示,并能通过按 键对定时进行设置。本系统实用性强、操作简单、扩展功能强。 关键词:关键词:交通灯,单片机,显示,计时 基于 51 单片机的交通灯设计 - 2 - ABSTRACT In recent years along with the rapid development of science and technology, SCM applications are continually deepening, and promote the t
3、raditional control detection technology is updated. In real-time detection and automatic control of the microcomputer application system, the microcontroller is often used as a core component, only SCM knowledge is not enough, should be based on specific hardware structure of hardware and software c
4、ombination, to be perfect. Crossroads shuttle vehicles, pedestrians bustling, car dealership traffic lane, people walkways, everything in good order and well arranged. So what to rely on to realize it in order? Is the traffic lights on the automatic command system. A lot of traffic signal control. T
5、his system uses STC89C52 and SCM system and the smallest transistor driving circuit and a periphery of the keys and digital tube display and other parts, a design based on the single chip design of traffic lights. Design through one of two common cathode nixie tube display, and can be key to regular
6、 set. This system is practical, simple operation, strong expanding function. Keywords: traffic light,SCM,display,timing 基于 51 单片机的交通灯设计 - 3 - 目录目录 中文摘要. 1 ABSTRACT 2 目录 3 第一章 设计的背景及意义 4 1.1 交通灯的背景 4 1.1.1 交通灯的历史. 4 1.1.2 交通灯的出现. 5 1.2 交通灯的意义 5 第二章 系统方案设计与要求 . 7 2.1 单片机交通灯控制系统通行方案设计 . 7 2.2 单片机交通控制系统的功能要求 8 2.2.1 显示模块功能. 9 2.2.2 按键模块功能 9 2.3 单片机交通控制系统的基本构成及原理 9 第三章 系统硬件电路的设计 . 11 3.1 系统硬件总电路构成 11 3.2 单片机系统 11 3.2.1 单片机引脚介绍 . 11 3.2.2 单片机最小系统 . 15 3.3 显示系统 . 16 3.3.1 LED 显示 . 16 3.3.2 数码管显示 16