单片机交通灯不完整版.doc
文本预览下载声明
《单片机技术》课程设计说明书模板
单片机交通灯
院 、 部: 电气与信息工程学院
学生姓名: 王 正
指导教师: 凌 云 职称
专 业: 自 动 化
班 级: 自本1001班
完成时间: 2012-12-20
摘 要
熙熙攘攘的街头,人流车水有条不紊地行进着,这靠的就是交通灯的指挥作用,交通灯的绿、红、黄灯交替工作着,指挥着交通,维持着秩序。在本次课程设计中,采用单片机AT89S52为中心器件来设计交通灯,从而模拟十字路口交通灯的各种状态显示。设计由单片机AT89S52,LED八位数码显示管及若干按键组成,。软件上采用C51汇编编程实现。主要编写了主程序,数码管显示程序,键扫程序和延时程序,经模拟,实现了交通灯的基本功能。该模拟操作简单,设计简单易懂,但由于采用的是纯延时,因此会有一定的误差,但不影响总体效果。
关键词:交通灯;AT89S52;LED
ABSTRACT
Streams of people busily coming and going in the street, traffic water everything in good order and well arranged to go forward, it is relying on the traffic lights command role, traffic lights are green, red, yellow light alternating work, directing traffic, maintained order.During the course design, using AT89S52 microcontroller to center device to design and simulate the traffic lights, traffic lights at the crossroads of various state display. Designed by the MCU AT89S52, LED eight digital display tube and a plurality of keys,. The software uses C51 programming realization. The main preparation of the main program, digital tube display program, key scanning procedure and time delay procedure, by simulation, to achieve the basic functions of traffic lights. The simulation has the advantages of simple operation, simple design and easy to understand, but due to the use of the pure time delay, so there will be someerrors, but does not affect the overall effect.
Key words: traffic lights; AT89S52; LED
目 录
1、设计课题任务、功能要求说明及总体方案介绍等等
1.1 设计课题任务
1.2 功能要求说明
1.3 设计课题总体方案介绍及工作原理说明
2、设计课题硬件系统的设计
2.1 设计课题硬件系统各模块功能简要介绍
2.2 设计课题电路原理图、PCB图、元器件布局图各1份
2.3 设计课题元器件清单
3、设计课题软件系统的设计
3.1 设计课题使用单片机资源的情况
3.2 设计课题软件系统各模块功能简要介绍
3.3 设计课题软件系统程序流程框图
3.4 设计课题软件系统程序清单
4、设计结论、仿真结果、误差分析、教学建议等等
4.1 设计课题的设计结论及使用说明
4.2 设计课题的仿真结果
4.3 设计课题的误差分析
4.4 设计体会,谈谈本设计的重点、难点及精妙之处,是否存在不足之点及改进意见
结束语.
致谢……………………………………………………………………………………
参文献……………………………………………………………………………
附录…………………
显示全部