基于单片机的红绿灯设计要点

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

西安航空职业技术学院

毕业设计(论文)任务书

题目:基于单片机的红绿灯设计

任务与要求:

交通信号灯能够控制东西、南北两个方向的交通,红绿黄灯用对应颜色的发光二极管代替; 用四个2位数码管分别显示东、南、西、北方向的通行时间,东西或南北通行时间为30秒,红绿灯切换中间黄灯闪烁5秒时间:2013年9月1日至2013年11月1日共8周

所属系部:自动化工程系

学生姓名:学号: 11

专业:生产过程自动化

指导单位或教研室:计算机控制教研室

指导教师:职称:助教

西安航空职业技术学院制

毕业设计(论文)进度计划表

摘要

在日常生活中,交通灯作为管理交通、调协车辆的一个便捷的手段,起着很大的作用。各种交通工具、行人都要根据交通灯的变化来决定是否前行,通行的时间的规定协调了它们的步伐,极大的减少了由于交通混乱引起的各种事故的发生。因此,一个完善的交通系统中,交通灯是必不可少的设备,一个完善的交通灯程序会更有效的管理当前道路中出现的实际情况,使车辆、行人的行进变得更顺畅、更和谐。

随着我国国民经济的快速发展,我国机动车辆发展迅速,而城镇道路建设由于历史等各种原因相对滞后,交通拥挤和堵塞现象时常出现。如何利用当今计算机和自动控制技术,有效地疏导交通,提高城镇交通路口的通行能力,减少交通事故是很值得研究的一个课题。目前,国内的交通灯一般设在十字路口,在醒目位置用红、绿、黄三颜色的指示灯加上一个倒计时的显示器来控制行车。

关键字:交通灯;单片机;MSC-51;计时

Abstract

In daily life , traffic lights as traffic management , co-ordination of the vehicle a convenient means , plays a big role . Various modes of transport , pedestrians should be based on the traffic lights change to decide whether to move forward, the passage of time coordinating their pace required , greatly reducing the traffic chaos caused by various accidents. Therefore, a comprehensive transportation system, traffic lights are essential equipment , a complete traffic lights would be more effective in the management of the current road situation occurs , the vehicle , a pedestrian road becomes smoother and more harmonious .

With China's rapid economic development, China's rapid development of motor vehicles , while the urban road construction due to historical and other reasons is lagging behind, traffic congestion and jams often occur . How to take advantage of today's computers and automatic control technology, effective flow of traffic, improve urban traffic junction capacity and reduce traffic accidents is a topic worthy of study . At present , the domestic traffic lights generally located at the crossroads, prominently with red , green and yellow three color LED display with a countdown to control traffic.

Key words:traffic light;SCM;MSC-51;timing

目录

1绪论 (1)

1.1单片机的发展 (1)

1.2单片机的定义 (2)

1.3单片机的特点 (2)

1.4单片机的应用领域 (3)

2任务分析与设计思路 (5)

2.1任务分析 (5)

2.1.1本次设计要求 (5)

2.2设计思路 (6)

3总体设计 (7)

3.1单片机内部资源分布图 (7)

3.2单片机交通控制系统的基本构成及原理 (8)

3.3软件结构框图 (8)

3.4软硬件分工 (9)

4详细设计 (10)

4.1设计电路 (10)

4.2交通灯电路 (10)

4.2.1数码管的工作原理 (12)

4.2.2 I/O口扩展 (13)

4.2.3单片机的RP1 (13)

4.2.4 单片机硬件结构 (14)

4.3软件框图 (16)

4.3.1主程序流程图 (16)

4.3.2显示子程序流程图 (17)

附录 (19)

结束语 (19)

谢辞 (26)

参考文献 (27)

相关文档
最新文档