最新单片机控制交通灯毕业设计.doc
文本预览下载声明
中文摘要
近年来随着科技的飞速发展,单片机的应用正在不断深入,同时带动传统控制检测技术日益更新。在实时检测和自动控制的单片机应用系统中,单片机往往作为一个核心部件来使用,仅单片机方面知识是不够的,还应根据具体硬件结构软硬件结合,加以完善。
十字路口车辆穿梭,行人熙攘,车行车道,人行人道,有条不紊。那么靠什么来实现这井然秩序呢?靠的就是交通信号灯的自动指挥系统。交通信号灯控制方式很多。本系统采用MSC-51系列单片机ATSC51和可编程并行I/O接口芯片为中心器件来设计交通灯控制器,实现了能根据实际车流量通过8051芯片的P1口设置红、绿灯燃亮时间的功能;红绿灯循环点亮,倒计时剩秒时黄灯闪烁警示。本系统实用性强、操作简单、扩展功能强MSC-51 计时
ABSTRACT
Years with the rapid development of science and technology, SCM applications are deepening at the same time promote more traditional control detection update. In real-time detection and control of the microcomputer application system, the microcontroller is often used as a core component, only the SCM knowledge is inadequate and should be based on specific hardware architecture hardware and software, to be improved.
Crossroads shuttle vehicles, pedestrians bustling, car dealers Drive, people walkways, orderly. Then rely on to achieve the discipline of the order then? Rely on the automatic traffic light is the chain of command. Many ways to control traffic lights. In this system, MSC-51 Series MCU ATSC51 and programmable parallel I / O interface chip 80C51-centered design of traffic signal controller device to realize the actual traffic volume by 8051 according to the P1 port chip set of red, green time kindle function; traffic light cycle of light, yellow light flashes when the countdown seconds left warning. The system practical, simple, powerful extensions
Keywords: traffic light SCM MSC-51 timing
目录
中文摘要 1
ABSTRACT 2
第一章 单片机控制交通系统总体设计 5
1.1单片机交通控制系统通行方案设计 5
1.2单片机交通控制系统的功能要求 6
1.2.1倒计时显示 6
1.2.2 车流量检测及调整 7
1.2.3时间手动设置 7
1.2.4 紧急处理 7
1.3单片机交通控制系统的基本构成及原理 8
第二章 系统硬件电路的设计 9
2.1系统硬件总电路构成及原理 9
2.1.1系统硬件电路构成 9
2.1.2系统工作原理 9
2.1.3车流量检测电路及模拟 10
2.1.4八段LED数码管 11
2.3.4其它器件 13
第三章 系统软件程序的设计 14
3.1程序主体设计流程 14
3.2子程序模块设计 15
3.2.1按键扫描程序 15
3.2.2状态灯显示及判断 15
3.2.3 LED倒计时显示 16
3.2.4车流量检测中断服务子程序 16
3.2.5紧停及违规中断服务子程序 17
3.2.6红绿灯时间调整程序 17
3.2.7消抖动程序 18
结束语 19
参考文献 20
第一章 单片机控制交通系统
显示全部