文档详情

基于单片机控制的智能交通灯大学生毕业论文(设计)(设计).doc

发布:2016-04-30约2.02万字共40页下载文档
文本预览下载声明
郑州航空工业管理学院 毕 业 论 文(设 计) 2013 届 电气工程及其自动化 专业 971 班级 题 目 基于单片机控制的智能交通灯 姓 名 学号 指导教师 职称 二О一 三 年 五 月 十五 日 摘 要 交通灯是现代交通非常重要的一个组成部分,一套好的交通灯系统往往对提升城市交通运输效率,降低事故发生率有至关重要的影响。 智能交通灯控制系统通常要实现车流量自动控制和在紧急情况下能够手动切换信号灯让特殊车辆优先通行。该文主要论述了智能交通灯控制系统的软件实现,还对STC89C52单片机的结构特点和重要引脚功能进行了介绍,外接外围电路构成基本电路,编写C语言程序,用keil编译调试,同时对智能交通灯控制系统的设计进行了分析。最后利用proteus软件对交通灯控制系统进行仿真,用来实现了交通微控制器的模拟。 关键字:单片机;STC89C52;车流量;智能交通灯;keil;proteus Abstract Traffic lights modern transport a very important part of a good set of traffic lights system often have a crucial impact in raising the efficiency of urban transport, reduce the accident rate. Intelligent traffic light control system is usually to achieve automatic control and traffic flow in case of emergency lights can be manually switched to special vehicles priority access. This paper mainly discusses the intelligent traffic light control system software, but also on the structural characteristics and STC89C52 microcontroller pin functions are introduced important, external peripheral circuits basic circuit, the preparation of C language program, using keil compiler debugging, while the intelligent traffic light control system design were analyzed. Finally, proteus software for traffic light control system simulation is used to achieve a traffic microcontroller simulation. Key word: SCM; STC89C52; traffic; intelligent traffic lights; keil; proteus 目 录 第1章 概述 1 1.1 交通灯的历史和现状 1 1.2 智能交通系统的发展前景和意义 1 1.3 设计要求 2 第2章 硬件设计 3 2.1 单片机相关介绍 3 2.2 部分电路设计 4 2.2.1 供电 4 2.2.2 复位电路 5 2.2.3 时钟电路 5 2.2.4 锁存器 6 2.2.5 数码管 7 第3章 软件设计 10 3.1 基本原理 10 3.2 设计方案 10 3.2.1 时间设定 10 3.2.2 紧急状态功能 11 3.2.3 车流量监控 11 3.3 中断程序设计 12 3.4 交通灯基本功能的状态转换 12 3.5 总程序流程图 14 3.5.1 单片机的I/O分布 14 3.5.2 锁存器74HC573的I/O分布 15 3.6 编程软件 16 3.6.1 keil软件的使用 17 3.6.2 编译 18 第4章 系统的仿真 20 4.1 仿真软件 20 4.2 系统仿真 20 4.3 结果分析 22 第5章 总结 24 致谢 25 参考文献 26 附 录 27 第1章 概述 1.1 交通灯的历史和现状 如今,红绿灯安装在各个道口上,已经成为疏导交通车辆最常见和最有效的手段。但这一技术在19世纪就已出现了。1858年,在英国伦敦主要街头安装了以燃煤气为光源的红,蓝两色的机械扳手式信号灯,用以指挥马车通行。
显示全部
相似文档