基于单片机的多功能交通灯系统设计.doc
文本预览下载声明
基于单片机的多功能交通灯系统设计.txt如果你看到面前的阴影,别怕,那是因为你的背后有阳光!我允许你走进我的世界,但绝不允许你在我的世界里走来走去。 本文由锐测侯杰贡献
doc文档可能在WAP端浏览体验不佳。建议您优先选择TXT,或下载源文件到本机查看。
苏州市职业大学
毕业设计(论文)说明书
设计(论文) 设计(论文)题目 基于单片机的多功能交通灯系统设计
院
系
电子信息工程系 07 电子信息工程技术 1
专业班级 姓 学 名 号
指导教师
2010 年 6 月 11 日
基于单片机的多功能交通灯系统设计
摘
要
近年来随着科技的飞速发展,单片机的应用正在不断深入,同时带动传统控 制检测技术日益更新。在实时检测和自动控制的单片机应用系统中,单片机往往 作为一个核心部件来使用,仅单片机方面知识是不够的,还应根据具体硬件结构 软硬件结合,加以完善。 随着汽车总量的不断增加,城市交通拥挤和堵塞现象时常出现,因而城市交 通指挥变得重要。一套性能齐全、安全有效的交通灯控制系统对一个城市来说必 不可少。 本系统采用 MSC-51 系列单片机 AT89C52 为中心器件来设计交通灯控制器, 实现了能根据实际车流量通过 AT89S52 芯片的 P2 口设置交通灯亮的功能; 采用 6 个发光二极管来模拟各路交通信号红绿黄三种灯循环点亮, 个 LED 七段数码 2 管以倒计时的方式显示允许通行或禁止通行的信号灯剩余的时间,停 10S,准备 3S, 之后通行 10S。 另外, 本系统还采用 1602 液晶显示器和 580c 喇叭 SPEAKER 实现在交通灯交替点亮的同时液晶显示英文字符和播放背景音乐的功能, 液晶以 滚动方式随着红绿灯的交替点亮循环显示相应的提示标识, 实用性强、 操作简单、 扩展功能强。 本设计采用的程序编写语言为汇编语言,简单又便于阅读。编写程序的原则 是:1.满足设计的要求。2.尽量采用最好,最有效的算法。3.编写时应尽量用最 简洁的语言。编写好源程序后,采用 Keil uVision2 软件对其进行编译,使其生成 单片机可以识别的.hex 文件,再把此文件导入单片机 AT89S52 中即可。 关键词:单片机,交通灯,播放音乐,液晶显示
2
基于单片机的多功能交通灯系统设计
abstract
With the rapid development of science and technology in recent years, SCM applications are deepening at the same time promote more traditional control detection update. In real-time detection and control of the microcomputer application system, the microcontroller is often used as a core component, only the SCM knowledge is inadequate and should be based on specific hardware architecture hardware and software, to be improved. With the cars total growing urban traffic congestion and jams frequently occur, and thus become important urban traffic control. Complete set of performance, safety and effective traffic light control system is essential for a city. In this system, MSC-51 Series MCU AT89S52 to design the traffic signal controller, realized according to the actual traffic flow through the port P2 AT89S52 chip set of traffic lights function; with 6 a light-emitting diodes to simulate various quarters red, green and yellow light traffic signal
显示全部