[优秀毕业设计毕业论文]基于单片机控制的交通灯设计.doc

约35页DOC格式手机打开展开

[优秀毕业设计毕业论文]基于单片机控制的交通灯设计,摘 要交通在人们的日常生活中占有重要的地位,随着人们社会活动的日益频繁,这点更是体现的淋漓尽致。交通信号灯的出现,使交通得以有效管制,对于疏导交通流量、提高道路通行能力,减少交通事故有明显效果。近年来随着科技的飞速发展,单片机的应用正在不断深入,同时带动传统控制检测技术日益更新。在实时检测和自动控制的单片机应用系统中,...
编号:66-91205大小:354.50K
分类: 论文>通信/电子论文

内容介绍

此文档由会员 csfujixie 发布

摘 要
交通在人们的日常生活中占有重要的地位,随着人们社会活动的日益频繁,这点更是体现的淋漓尽致。交通信号灯的出现,使交通得以有效管制,对于疏导交通流量、提高道路通行能力,减少交通事故有明显效果。近年来随着科技的飞速发展,单片机的应用正在不断深入,同时带动传统控制检测技术日益更新。在实时检测和自动控制的单片机应用系统中,单片机往往作为一个核心部件来使用,仅单片机方面知识是不够的,还应根据具体硬件结构软硬件结合,加以完善。
本系统采用单片机AT89C51为中心器件来设计交通灯控制器,系统实用性强、操作简单、扩展性强。本设计就是采用单片机模拟十字路口交通灯的各种状态显示以及倒计时时间。
本设计系统由单片机I/O口扩展系统、交通灯状态显示系统、LED数码显示系统、复位电路等几大部分组成。系统除基本的交通灯功能外,还具有倒计时等功能,较好的模拟实现了十字路口可腀@鱿值淖纯觥?br>软件上采用C51编程,主要编写了主程序,LED数码管显示程序,中断程序延时程序等。经过整机调试,实现了对十字路口交通灯的模拟。
关键字:电子线路 AT89C51 LED 交通灯


ABSTRACT
Traffic in People's Daily life has important position, as people social activities have become increasingly frequent, this also reflect incisively and vividly. Traffic lights appear, make traffic to effectively control for relieves traffic flow, improve traffic capacity, reduce the number of traffic accidents have obvious effect. In recent years, with the rapid development of science and technology, the application of SCM is unceasingly thorough, it causes the traditional control test technology increasingly updates. In real-time detection and automatic control of single-chip microcomputer application system, often as a core component to use, only microcontroller aspects knowledge is not enough, should according to specific hardware structure, software and hardware combined with perfect.
The system adopts single-chip microcomputer AT89C51 as the center device to designing traffic light controller, system strong practicality, simple operation, extensible. This design is one-chip computer simulation intersection traffic lights of various states display and countdown time.
This design by single-chip microcomputer system I/O mouth extended system, traffic status display system, LED digital display system and reset circuit and several other major components. System besides basic traffic lights function outside, still have the countdown, and other functions, good simulation crossroads possible conditions.
Software is used on C51 programming, mainly prepared the main program, LED digital display, interrupt routine procedures tube delay procedures, etc. After the machine commissioning, realize the intersection traffic simulation.
Key word: electronic circuit AT89C51 LED to the traffic lights










目录
摘 要 2
第二章 绪论 5
1.1 引言 5
1.2 交通灯研究的背景和意义 5
1.3 课题设计任务及要求 6
第二章 总体设计方案 7
2.1设计思路 7
2.1.1设计目的 7
2.1.2设计任务和内容 7
2.1.3方案比较、设计与论证 7
2.2单片机及软件介绍 9
第三章 课题相关技术现状与发展 13
3.1 单片机的发展史 13
3.2 单片机的发展前景 13
3.3 AT89C51处理器主要性能特点 14
3.3.1 AT89C51单片机接口资源 15
3.3.2 引脚排列 15
3.4 AT89C51中断系统与定时器/计数器 18
3.4.1中断系统 18
3.4.2中断基本概念 18
3.5倒计时计数功能 19
3.6 定时器初始化的主要步骤 ..............................................19
3.6.1定时器初值设定方法..................................................19
第四章 交通灯系统的硬件设计 20
4.1交通灯系统的硬件组成部分 20
4.2数码管显示模块 20
4.2.1 LED显示器的结构 21
4.2.2 LED交通灯显示模块 22
第五章 交通灯系统的软件设计 23
5.1系统软件的概述 23
5.2 主程序 23
5.3 LED数码管显示模块 24
5.4 晶振源 25
第六章 交通灯系统的调试 23
6.1 使用keil C51进行调试 25
6.2 交通灯系统的仿真 26
结束语 28
致谢 29
参考文献 30
附录 31
程序清单 31
总体硬件电路图 35