基于89s52单片机的十字路口交通灯设计毕设论文.doc
文本预览下载声明
摘 要
近年来随着科技的飞速发展,单片机的应用正在不断深入,同时带动传统控制检测技术日益更新,因此也运用到了交通信号灯控制系统中。单片机渗透到我们生 活的各个领域,几乎很难找到哪个领域没有单片机的踪迹。因此,单片机的学习、开发与应用将造就一批计算机应用与智能化控制的科学家、工程师。科技越发达,智能化的东西就越多,使用的单片机就越多。看来学单片机是社会发展的需求。
本设计由单片机 AT89S52 芯片和 LED 数码管为核心,辅以必要的电路,构成了 一个单片机交通灯。引入了电子设计自动化技术,运用了 Proteus 单片机仿真软件 和 Keil 软件,设计并实现本次的交通信号单片机控制系统。
关键词 : 交通灯;AT89S52;LED 显示
ABSTRACT
As technology evolved in recent years, it is monolithic integrated circuits, and promote the traditional test, control technology is therefore also apply to the traffic signal control system. monolithic integrated circuits come to pervade every aspect of our lives, it is difficult to find what field did not monolithic integrated circuits of the box.
Therefore, monolithic integrated circuits, exploitation and application of the study will make a number of computer applications and the intelligent control of the scientists and engineers. the more advanced technology, the more intelligent.
Key words: traffic lights;at89s52;led display
目 录
1 设计要求及总体方案介绍 5
1.1 设计课题任务 5
1.2 功能要求说明 5
1.3 方案介绍及工作原理 5
2 硬件系统的设计 7
2.1 硬件系统各模块功能介绍 7
2.1.1 显示电路设计 7
2.1.2 发光二极管指示灯电路 7
2.1.3 键盘控制电路 7
2.1.4 数码管电路 8
2.1.5 下载口电路 8
2.1.6 流水灯电路 8
2.2 电路原理图 8
2.3 电路PCB图 8
2.4 元器件布局图 8
2.5 元器件清单 9
2.6 硬件测试 9
2.7 所做实物图 9
3 软件系统设计 10
3.1 单片机资源使用情况 10
3.2 软件系统各模块功能 10
3.2.1 显示 P.模块 10
3.2.2 亮灯模块 10
3.2.3 显示模块 10
3.2.4 紧急按钮模块 11
3.2.5 延时模块 11
3.2.6 键处理和键扫描程序 11
3.3 主程序设计 11
3.4 程序流程图 13
3.5 交通灯程序清单 15
4 设计总结 16
4.1 使用说明 16
4.2 交通灯运行图 16
4.3 设计体会 16
结束语……………………………………………………………………………………………18
致谢………………………………………………………………………………….19
参考文献…………………………………………………………………………….20
附录A............................................................. 21
附录B………………………………………………………………………………..22
附录C………………………………………………………………………………..23
附录D………………………………………………………………………………..24
附录E………………………………………………………………………………..25
附录F…………………………………………………………………………………33
1 设计要求及总体方案介绍
1.1 设计课题任务
设计一个具有特定功能的十字路口交通灯。该交通灯上电或按键复位后能自动显示系统提示符
显示全部