单片机控制交通灯的实现毕业论文.doc
文本预览下载声明
毕 业 设 计
题目 单片机控制交通灯的实现
姓 名 樊昊
学 号 0903210133
系 (院)电子电气工程系
班 级 D08电气自动化二班
指导教师 张 德 迪
职 称 讲师
2011年6月11日
目录
摘 要 Ⅱ
ABSTRACT Ⅲ
第一章 绪论 1
1.1课题背景 1
1.1.1城市交通现状 1
1.1.2城市交通信号灯研究的意义 1
第二章 单片机的总体介绍 2
2.1单片机的概述 2
2.2芯片简介 2
2.2.1 MSC-51芯片简介 2
2.2.2中断系统 3
2.2.3时钟电路 3
2.3 8255芯片简介 5
2. 3.174LS373简介 5
第三章 系统硬件设计 7
3.1 交通管理的方案论证 7
3.1.1交通管理的方案论证 7
3.2 系统的硬件设计 7
3.3 系统总框图 8
3.4 交通灯硬件线路图 9
3.5 系统工作原理 10
第四章 控制软件设计 11
4.1 控制软件的设计 11
4.1.1 每秒钟的设定 11
4.2 计数器硬件延时 11
4.2.1 计数器初值计算 11
4.2.2 计算公式 11
4.2.3 1秒的方法 11
4.2.4 相应程序代码 11
4.3 软件延时 12
4.4 时间及信号灯的显示 12
4.4.1 8051并行口的扩展 12
4.4.2 显示原理 13
4.4.3 8255PA口输出信号接信号灯 13
4.4.4 8255输出信号于数码管的连接 13
4.4.5 8255与8051的连接 13
4.5 程序设计 14
4.5.1流程图 14
4.5.2程序源代码 15
结 束 语 19
参考文献 20
致 谢 21
摘 要
自从交通灯诞生以来,其内部的电路控制系统就不断的被改进设计方法也开始多种多样,从而使交通灯显得更加智能化。可编程控制器(PLC)以微处理器为核心,普遍采用依据继电接触器控制系统电气原理图编制的梯形图语言进行程序设计,编程容易,功能扩展方便,修改灵活结构简单,抗干扰能力强。可编程控制器指令丰富,可以接各种输出、输入扩充设备,有丰富的特殊扩展设备,其中的模拟输入设备和通信设备是控制要求与特点,能够方便地联网通信。Since the inception of traffic lights and its internal circuit control system is constantly being improved. Design began to diversity, so that even more intelligent traffic lights.
Programmable Logic Controller (PLC) microprocessor core, commonly used control system based on electrical relay contacts compiled ladder diagram programming language, programming is easy, convenient extensions, modify flexible and simple structure, anti- interference ability. Siemens PLC instruction rich, you can take a variety of output, input extension device, has a wealth of special extension equipment, including analog input devices and communications equipment is consistent with the requirements of traffic light control system with features for easy network communication 朗读显示对应的拉丁字符的拼音? According to determine signal distribution and flow of the control system vague theoretical resesrch results, the achievement of individual intersections with traffic lights blur PLC control methods for individual cross
显示全部