当前位置:首页 > 2014年山东大学第十届“兴源通杯”科技创新大赛
基于单片机
交通路口信号灯控制系统
2014年山东大学第十届“兴源
通杯”科技创新大赛技术论文
基于单片机的交通灯控制系统
目录
摘要----------------------------------------------------------------------3
Abstract---------------------------------------------------------------------------3 引言--------------------------------------------------------------------------------4
1、 认识 AT89S52单片机
1.1 At89s52单片机结构简介------------------------------5
1.1.1内部结构---------------------------------------5 1.1.2外部结构---------------------------------------5
1.2 At89s52单片机的引脚及其功能简介--------------------7 1.3 At89s52单片机的最小系统----------------------------7 1.3.1最小系统原理图---------------------------------7 1.3.2最小系统组成及原理------------------------------7
2、 设计要求
2.1 设计背景——济南市经十路和舜耕路路口交通灯-----------8 2.2 基本要求---------------------------------------------8 2.3拓展功能要求------------------------------------------9
3、基于单片机的交通路口信号灯控制系统的设计
3.1
运行顺序--------------------------------------------9 3.2 系统模式--------------------------------------------10
3.2.1正常模式---------------------------------------10 3.2.2繁忙模式---------------------------------------10 3.2.3空闲模式---------------------------------------10 3.3 电路设计---------------------------------------------10
4、程序设计
- 1 -
基于单片机的交通灯控制系统
4.1程序流程图--------------------------------------------11 4.2程序模块功能及代码------------------------------------12
4.2.1数码管动态显示模块------------------------------12 4.2.2外部中断服务模块--------------------------------14 4.3完整程序代码------------------------------------------16
5、基于单片机的仿真软件
5.1 Keil简介---------------------------------------------24 5.2 Proteus简介------------------------------------------24 5.3 模拟仿真----------------------------------------------25
参考文献----------------------------------------------29
- 2 -
基于单片机的交通灯控制系统
单片机交通路口信号灯控制系统
摘要:本设计以单片机AT89S52为控制核心,以红、绿、黄三种LED发光管作为直行和左右拐弯以及行人通行的指示,以LED数码管作为倒计时指示,完成了题目要求的所有功能。在此基础上增设了LED灯和数码管实时显示系统各种状态,还可根据交通拥挤情况分别设置主干道和次干道的通行时间以及紧急情况时可根据需要手动设置某干道车辆通行状态,紧急情况结束后再转成自动状态,并对系统机械结构进行了优化设计,整体性好,人性化强、可靠性高。 关键字:单片机、AT89S52、LED数码管、通行模式、控制系统
Abstract: The design for the control of AT89S52 microcontroller core, red, green, yellow and three LED light tube as a straight and turning left and right directions and pedestrians, LED digital tube as a countdown to the instructions, subjects completed all the required functions. On this basis, the addition of LED lights and a variety of digital real-time display system status, traffic congestion can also be the case were set according to the main road and secondary roads, and emergency travel time can be set manually according to a state of roads to traffic, emergency automatically transferred into the situation after the end of the state, and the system was optimized mechanical structure design, good integrity, humanity, and high reliability. Keywords: MCU AT89S52; LED digital tube; access mode;control system
- 3 -
共分享92篇相关文档