电信1-阮士丹

上传人:wm****3 文档编号:41648855 上传时间:2018-05-30 格式:DOC 页数:31 大小:617.50KB
返回 下载 相关 举报
电信1-阮士丹_第1页
第1页 / 共31页
电信1-阮士丹_第2页
第2页 / 共31页
电信1-阮士丹_第3页
第3页 / 共31页
电信1-阮士丹_第4页
第4页 / 共31页
电信1-阮士丹_第5页
第5页 / 共31页
点击查看更多>>
资源描述

《电信1-阮士丹》由会员分享,可在线阅读,更多相关《电信1-阮士丹(31页珍藏版)》请在金锄头文库上搜索。

1、成都理工大学工程技术学院毕业论文基于基于 MCS-51MCS-51 单片机交通灯单片机交通灯 控制器的设计控制器的设计作者姓名:阮士丹专业名称:电子信息科学与技术指导教师:胡翠华 讲师基于 MSC-51 单片机交通灯控制器的设计- II -摘要摘要近年来随着科技的飞速发展,单片机的应用正在不断地走向深入, 同时带动传统控制检测日新月异更新。在实时检测和自动控制的单片 机应用系统中,单片机往往是作为一个核心部件来使用,仅单片机方 面知识是不够的,还应根据具体硬件结构,以及针对具体应用对象特 点的软件结合,加以完善。 十字路口车辆穿梭,行人熙攘,车行车道,人行人道,有条不紊。 那么靠什么来实现这井

2、然秩序呢?靠的是交通信号灯的自动指挥系统。 交通信号灯控制方式很多。本系统采用 MSC-51 系列单片机 Intel8031 和可编程并行 I/O 接口芯片 8255A 为中心器件来设计交通灯控制器, 实现了能根据实际车流量通过 8031 芯片的 P1 口设置红、绿灯燃亮时 间的功能;为了系统稳定可靠采用了 MAX629“看门狗”芯片,避免了 系统因为死机而停止工作的情况发生;显示时间直接通过 8255 的 PA、PB 口输出;交通灯信号通过 PC 口输出;交通灯的点亮采用 VT 双 向晶闸管来控制,直接采用 220V 交流电源驱动,系统实用性强、操作 简单、扩展性强。关键字:单片机 交通灯

3、控制器 基于 MSC-51 单片机交通灯控制器的设计- III -AbstractAbstractIn recent years, with the rapid development of science and technology, the application of SCM is to keep at the same time, changing traditional control update detection. In real-time detection and automatic control system of single-chip applications,

4、often as a single-chip core component to use only single-chip is not enough knowledge, but also the specific hardware structure and application of object-specific characteristics software, to be improved. Crossroads shuttle vehicles, pedestrians bustling, car lanes, the pavement and orderly. So to a

5、chieve the orderly what order? Rely on the automatic traffic signal control system. Many traffic lights control. This system adopts MSC-51 series only flat machine Intel8031 with but programming parallel interface chip 8255A of I/O is central device the design controller of traffic lights, have real

6、ized can measure according to actual wagon flow the P1 installation bonus and green light that passes through 8031 chips burn to light the function of time; system is stable and reliable to use MAX629 “watchdog“ chip, to avoid a system crash and stop working because of the occurrence; display time o

7、f the 8255 directly through the PA, PB output port; traffic light signal through the PC port output ; The point of traffic lights light to adopt VT two-way Jing floodgate pipe come to control, directly drive with the alternating current source of 220 V, practicality is strong, operating is simple.Ke

8、ywords: Single-chip computer, traffic light, controller基于 MSC-51 单片机交通灯控制器的设计- IV -目录目录摘要.IIAbstract.III目录.III前言.11 单片机概述.22 芯片简介.32.1 MSC-51 芯片简介.3 2.2 8255 芯片简介 .6 3.3 74LS373 简介.83 系统硬件设计.93.1 交通管理的方案论证 .9 3.2 系统硬件设计 .9 3.2.1 系统总框图.10 3.2.2 统工作原理.10 3.2.3 交通灯硬件线路图.114控制器的软件设计.124.1 每秒钟的设定 .12 4.2 计数器硬件延时 .12 4.2.1 计数器初值计算.12 4.2.2 计算公式.12 4.2.3 秒的方法.12 4.2.4 相应程序代码.13 4.3 软件延时 .13 4.4 时间及信号灯的显示 .14 4.4.1 8051 并行口的扩展.14基于 MSC-51 单片机交通灯控制器的设计- V -4.4.2 显示原理.15 4.4.3 8255PA 口输出信号接信号灯.15 4.4.4 8255 输出信号与数码管的连接:.15 4.4.5 8255 与 8051 的连接:.16 4.5 程序设计 .16 4.5.1 流程图如图所示.

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 生活休闲 > 社会民生

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号