- 1、本文档共30页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
单片机技术课程设计说明书 交通灯——课程设计
单片机技术课程设计说明书
交通灯
院 、 部: 电气与信息工程学院
学生姓名: 沐 弓
指导教师: 王韧 职称 副教授
专 业: 电子信息工程
班 级: 电子120班
完成时间: 2013年12月21日
摘 要
交通灯在现代社会交通管理的作用毋庸置疑,它使交通得以有效管制,对于疏导交通流量、提高道路通行能力,减少交通事故有明显效果。本系统采用单片机AT89S52为中心器件来设计交通灯控制器,系统实用性强、操作简单、扩展性强。本设计就是采用单片机模拟十字路口交通灯的状态显示以及倒计时。
设计以AT89S52单片机为核心,外接外围电路构成基本电路,本设计除基本的交通灯功能外,还增加了在紧急情况下能手动切换信号灯让特殊车辆优先通行,较好的模拟实现了十字路口可能出现的状况。
软件上采用汇编语言编程,主要编写了主程序,LED数码管显示程序。经过整机调试,实现了对十字路口交通灯的模拟
关键词 交通灯;单片机
ABSTRACT
The traffic lights in the modern society traffic management role.its occurrence, make traffic to effectively control for relieves traffic flow, improve traffic capacity, reduce the number of traffic accidents have obvious effect. 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 state display and countdown.
Design with AT89S52 single-chip microcomputer as the core, an external circuit constitute the basic circuit .Intelligent traffic control system will usually achieve automatic control and in emergency situations can manual switching lights make special vehicle righe-of-way.good simulation crossroads possible conditions.
Software is used on assembly language programming, mainly prepared the main program, LED digital pipe display program. After the machine commissioning, realize the intersection traffic simulation.
Key words The traffic lights;single-chip 目 录
1 系统总体设计方案 1
1.1 设计课题任务 1
1.2 功能要求说明 1
1.3 总体方案介绍及工作原理 1
2 设计课题硬件系统的设计 2
2.1 设计课题硬件系统各模块功能简要介绍 2
2.2 设计课题电路原理图、PCB图、元器件布局图各1份 3
2. 3 设计课题元器件清单 4
3 设计课题软件系统的设计 4
3.1 设计课题使用单片机资源的情况 4
3. 2 设计课题软件系统各模块功能简要介绍 6
3.3 设计课题软件系统程序流程框图 7
3. 4 设计课题软件系统程序清单 8
4 使用说明,仿真结果及误差分析 8
4.1 设计使用说明 8
4.2 程序仿真结果 8
4.3 误差分析 10
4.4 设计体会 10
结束语 11
致 谢 12
参考文献 13
文档评论(0)