1、 毕毕 业业 论论 文(设计)文(设计) 论文题目论文题目 基于 51 单片机的十字路口交通灯设计 姓姓 名名 学学 号号 院院 系系 专专 业业 指导教师指导教师 职职 称称 二二o一二一二 年六月年六月 摘要摘要 近年来,随着科技的飞速发展,单片机的应用正在不断深入,同时带动传统控 制检测技术日益更新。在实时检测和自动控制的单片机应用系统中,单片机往往作 为一个核心部件来使用,正在不断的应用到实际生活中,并且根据具体硬件结构软 硬件结合,加以完善。 十字路口车辆穿梭,行人熙攘,车行车道,人行人道,有条不紊。那么靠什么 来实现这井然秩序呢?靠的就是交通信号灯的自动指挥系统。交通信号灯控制方式
2、 很多。本系统采用 MCS-51 系列单片机 STC89C52 为中心器件来设计交通灯控制器, 实现了通过信号灯对路面状况的智能控制。从一定程度上解决了交通路口堵塞、车 辆停车等待时间不合理、急车强通等问题。系统具有结构简单、可靠性高、成本低、 实时性好、安装维护方便等优点,有广泛的应用前景。 关键词:交通灯 单片机 数码管 Abstract In recent years, with the rapid development of science and technology, the application of SCM is going deep, driving the tradit
3、ional 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., but should also act according to the concrete hardware architecture software and
4、 hardware union, to be improved. The intersection vehicles shuttle, the pedestrian is bustling, car dealership traffic lane, person sidewalk. Then depending on what to realizes this orderly order? The traffic lights depends on the automatic control system. There are great number kinds of modes to co
5、ntrol the traffic lights. The system uses a series of MCS-51 as the center STC89C52 single-chip device designed to control the traffic lights. Short of the design cycle, high reliability, practical, simple operation, easy maintenance, the expansion of this system is powerful. Key words: traffic ligh
6、t;SCM; Digital tube 摘要 2 (一)总体设计思路 4 1.1 设计背景 4 1.2 设计目的及思路5 1.2.1 设计目的 .5 1.2.2 设计思路 .5 1.3 交通灯显示时序及状态转换的理论分析 6 (二)方案比较、设计与论证 8 21 总体设计方案.8 22 控制模块选择方案8 23 电源模块方案.9 24 显示界面方案 .9 2.4.1 倒计时显示界面方案 .9 2.4.2 状态灯显示 .9 (三)硬件设计 . 10 3.1 系统总体硬件方案论证 . 10 3.2 STC89C52RC 单片机简介 10 3.3 单片机最小系统 13 3.3.1 时钟电路 . 13 3.3.2.复位电路 . 14 3.4 显示电路 . 14 3.5 电路图 . 15 (四)软件设计 . 16 4.1 程序流程图 16 4.2 具体程序 16 4.3 程序烧至单片机过程 22 参考文献 . 23 (一)(一)总体设计总体设计思