JIMI 发表于 20:50

单片机控制模拟交通灯

论文编号:DZXX189  论文字数:11696,页数:39
摘要
 根据AT89S52单片机的特点及交通灯在实际控制中的特点,本文提出一种用单片机自动控制交通灯及时间显示的方法。同时给出了软硬件设计方法,设计过程包括硬件电路设计和程序设计两大步骤,对在单片机应用中可能遇到的重要设计问题都有涉足。本文对十字路口状态预设为两种,一种是正常状态,一种是紧急状态。在用红、黄、绿灯的不同组合来指挥两个方向通车与禁行的同时,用LED数码管作为倒计时指示,实时的控制当前交通灯时间使LED显示器进行倒计时工作并与状态灯保持同步,在保持交通安全的同时最大限度的提高交通能顺畅交替运行。本文介绍了控制基本原理以及控制的表现,同时,论述了系统中交通背景、发展及意义。
关键词:单片机,自动控制,时间显示器,外部中断,延时。
ABSTRACT
 According to the characteristics and the traffic lights in the actual control characteristics of the AT89S52 microcontroller, this paper proposes a microcomputer to control to a traffic light  and time displaying the time. Also giving the hardware and software design methods, design process, including hardware design and programming are two steps in the MCU application may encounter the important design issues are involved. This state of default could be divided two parts on the crossroads, one is the normal state, and the other one is the state of emergency. While using the red, yellow, green light to direct the two different directions, showing the time by the LED digital tube,and the real-time control of the current traffic light LED display counts down the time to work in sync with the status lights, in order to maintaining maximum safety for traffic to alternate running smoothly. This article describes the basic principles of control and control performance, at the same time transporting the background of traffic system and the development and significance.
Keywords: microcontroller, control, time display, external interrupt, delay. 目录
摘要 1
ABSTRACT 2
第1章 引言 5
1.1交通灯研究的背景和意义………………………………………………………5
1.2单片机交模拟通灯主要研究的内容…………………………………………....6
第2章 交通灯工作原理及设计方案  8
2.1 交通灯的基本构成与工作原理 ……………………………………….…….....8
2.2单片机控制交通灯通行方案设计………………………………………...……. 9
2.3单片机控制交通灯模拟的功能要求…………………………………………...10
第3章 系统硬件电路的设计 ....12
3.1系统硬件总电路构成及原理…………………………………………………..12
3.1.2系统工作原理………………………………………………………………13
3.2单片机的选择…………………………………………………………………..13
3.2.1单片机的概述………………………………………………………………13
3.2.2 AT89S52芯片的主要性能…………………………………………………14
3.2.2 AT89S52芯片的引脚图及其应用…………………………………………14
3.2.4 AT89C52芯片最小系统……………………………………………………16
3.3其它硬件介绍及连接……………………………………………….…………..17
3.3.1八段LED数码管…………………………………………………….… ….17
3.3.2其它器件……………………………………………………………..……..18
第4章 系统软件程序的设计  20
4.1程序主体设计…………………………………………………………….…….20
4.2 数码管的显示………………………………………………………………….21
4.3 系统初始化模块……………………………………………………………….21
4.4信号灯模块…………………………………………………………….……….21
4.5键盘扫描……………………………………………………………….……….22
第5章 不足与展望 .24
第6章 结束语 25
致谢 26
参考文献 27
附录一  程序清单 28
附录二 电路图,实物图 37
页: [1]
查看完整版本: 单片机控制模拟交通灯