摘要:近年来,随着科技的迅速发展,单片机的应用正在不断加深,同时引领 着传统控制检测技术的日益更新。在实时检测和自动控制的单片机应用系统中, 单片机往往作为一个核心部件被使用,仅单片机方面知识是远远不够的,还应根 据具体硬件结构软硬件相互结合,并加以完善。基于单片机的十字路口交通灯系 统以 AT89C52 单片机为控制核心来设计,采用数码管进行倒计时显示,三极管进 行数码管驱动,此外系统可通过按键来设置和工作模式的切换。着重分析了单片 机交通灯系统的硬件设计方法、硬件各部分的功能及原理、软件编程、调试分析 以及各模块工作流程。以硬件为基础、软硬件结合来进行各功能模块的设计,最 后用 Proteus 软件对交通灯系统进行仿真,实验表明该系统结构简易,可靠性高, 可便于实现交通灯控制。70288
毕业论文关键词:单片机;交通灯;Proteus
Abstract: In recent years, with the rapid development of science and technology, the application of SCM is going deep, driving the traditional detection techniques to renew day by day. In the real-time examination and in the automatic control monolithic integrated circuit application system, the monolithic integrated circuit often took a core part uses. The monolithic integrated circuit aspect knowledge is only insufficient, but should also act according to the concrete hardware architecture software and hardware union, to be improved. The crossroads traffic light system is designed based on AT89C52 single chip microcomputer and it is the control core of the whole system.The digital tube is drove by digital tube for countdown display.In addition, the system can be set up and switched the working mode though the button.In this paper, the hardware design method,the function and principle of each part of the hardware,software programming, debugging and analysis, and the work flow of each module is analyzed of the single chip computer crossroads traffic light system.The basics of this system is hardware,then combination of hardware and software to carry out the design of each function module. Finally, using the Proteus Software to simulate the crossroads traffic lights system. Experimental results show that the the system has the advantages of simple structure, high reliability, and can easily realize the traffic lights control.
Keywords: single chip microcomputer;traffic lights;Proteus
目 录
1 引言 5
2 系统的设计方案 5
2.1 系统总框架 5
2 . 2 系 统 通 行 设 计 6
2. 3 系统主程序设计 7
3 系 统 主 要 硬 件 介 绍 以 及 硬 件 电 路 设 计 7
3.1 系统硬件原理介绍 7
3.2 系统硬件电路设计 12
4 仿真和调试 14
4.1 KEIL 和 PROTEUS 联合仿真 14
4.2 系统调试 15
结论 20
参考文献 21
致谢 22
附录 23
1 引言
近年来随着科技的飞速发展,单片机的应用正在不断地走向深入,同时带动传统控制 检测日新月益更新。在实时检测和自动控制的单片机应用系统中,单片机往往是作为一个 核心部件来使用,仅单片机方面知识是不够的,还应根据具体硬件结构,以及针对具体应 用对象特点的软件结合,加以完善。交通信号灯的出现,使交通得以有效管制,对于疏导 交通流量、提高道路通行能力,减少交通事故有明显效果。交通信号灯在大多数城市得到 了广泛的应用。传统的交通信号灯控制一般采用了电子线路和继电器控制,结构复杂,可 靠性低,故障率高。本次设计是基于 AT89C52 单片机的交通灯控制系统,东西南北的通行 时间可调,倒计时显示通行时间灯功能,该系统具有设计周期短、可靠性高、维护方便、 使用简单等优点。文献综述 AT89C52单片机交通灯系统仿真设计+电路图+程序:http://www.youerw.com/zidonghua/lunwen_79543.html