1、图书分类号: 密 级: 毕业论文 基于基于 80518051 单片机交通灯控制系统的设计单片机交通灯控制系统的设计 BASEDON THE 8051 MICROCONTROLLER TRAFFIC SIGNAL CONTROL DESIGN 学生学号 学生姓名 学院名称 信电工程学院 专业名称 电子信息工程技术 指导教师 2010 年 5 月 20 日 I 摘要 近年来随着科技的飞速发展,单片机的应用正在不断深入,同时带动传统控制检测技 术日益更新。在实时检测和自动控制的单片机应用系统中,单片机往往作为一个核心部件 来使用,仅单片机方面知识是不够的,还应根据具体硬件结构软硬件结合,加以完善。
2、十字路口车辆穿梭,行人熙攘,车行车道,人行人道,有条不紊。那么靠什么来实现 这井然秩序呢?靠的就是交通信号灯的自动指挥系统。交通信号灯控制方式很多。本系统 采用 MSC-51 系列单片机 ATSC51 和可编程并行 I/O 接口芯片 8255A 为中心器件来设计交通 灯控制器, 实现了能根据实际车流量通过 8051 芯片的 P1 口设置红、 绿灯燃亮时间的功能; 红绿灯循环点亮,倒计时剩 5 秒时黄灯闪烁警示(交通灯信号通过 PA 口输出,显示时间 直接通过 8255 的 PC 口输出至双位数码管) ;车辆闯红灯报警;绿灯时间可检测车流量并 可通过双位数码管显示。本系统实用性强、操作简单、扩展
3、功能强。 关键词关键词 单片机;交通灯;8051;检测车流量 II Abstract In recent years, with the rapid development of science and technology, the application of SCM is at the same time, traditional detection techniques to control the growing update. In real-time detection and automatic control system of single-chip application
4、s, often as a single-chip core component to use only single-chip is not enough knowledge, but also the structure of hardware and software in accordance with the specific combination of hardware, to be improved. Crossroads shuttle vehicles, pedestrians bustling, car lanes, the pavement and orderly. S
5、o to achieve the orderly what order? Is the traffic lights on the automatic control system. Many traffic lights control. The system uses MSC-51 series single-chip ATSC51 and programmable parallel I / O interface chip 8255A-centric device designed to control traffic lights, can be achieved in accorda
6、nce with the actual traffic flow through the P1 port 8051 chip set red, green fuel Liang function of time; traffic light cycle, the countdown five seconds left when the yellow light flashing warning (traffic lights through the PA output signal indicates the time directly through the PC port output 8255 to double-digits); vehicle alarm; green time traffic flow can be detected through a double-digital display. The system practical, simple and strong extensions. Key words Single-chip detect