文档详情

毕业设计基于STC89C52单片机的交通灯设计.doc

发布:2018-04-19约2.16万字共56页下载文档
文本预览下载声明
专业课程设计— 基于51单片机的交通灯设计 组员: 蔡余敏 、覃珍 、 李海浪、于小艳 (按字母顺序) 学院: 电气工程学院 班级: 10自动化3班 指导教师: 王彩霞 摘 要 交通信号灯是城市交通安全、有序、快速运行的重要保障。本文提出了一种基于单片机的交通信号灯控制系统的设计方案。该系统模拟现实中十字路口的通行指示,倒计时和紧急车辆强行通过等功能。采用STC89C52芯片为中心器件来设计交通灯控制电路,结合七段共阴极数码管显示时间的模块,交通灯显示模块,晶振电路,复位电路以及按键电路等模块组成。通过软件仿真与硬件调试,实现红、黄、绿灯燃亮时间以及双位数码管显示倒计时,三种颜色灯交替点亮以及紧急情况下的中断处理功能。本系统性价比高,实用性强,操作简单,功能全面,有广泛的应用前景。 关键词:交通信号灯;STC89C52单片机;紧急通行;中断处理 Abstract The traffic lights are an important guarantee of city traffic safety, order and rapid running. This paper presents a design scheme of traffic signal lamps control system, which is based on MCU. The system simulates the functions of the traffic indication, counting down and emergency vehicles passing at real crossroads. STC89C52 chip device is used as the center device to design the traffic lights control circuit, combined with common cathode seven segments digital tube display time module, traffic lights display module, crystals circuit, reset circuit and key circuit modules. By software simulation and hardware debugging, the functions have been achieved, which include red, yellow, and green lights brightening, on-off digital tube displaying time countdown, as well as 3 kinds of color lamps lightening alternately and interrupt processing function of emergencies. This system is cost-effective, strong practicability, simple operation, fully functional. It has a broad application prospect. Key words: traffic signal lamp; MCU STC89C52; emergency access; interrupt processing 目 录 摘要 - 1 - (一)总体设计思路 - 4 - 1.1设计背景 - 4 - 1.2 设计目的及思路 - 6 - 1.2.1 设计目的 - 6 - 1.2.2 设计思路 - 6 - 1.3 交通灯显示时序及状态转换的理论分析 - 7 - (二)方案比较、设计与论证 - 7 - 2.1 总体设计方案 - 7 - 2.2 控制模块选择方案 - 8 - 2.3 电源模块方案 - 9 - 2.4显示界面方案 - 9 - 2.4.1 倒计时显示界面方案 - 9 - 2.4.2 状态灯显示 - 9 - (三)硬件设计 - 10 - 3.1系统总体硬件方案论证 - 10 - 3.2 STC89C52RC单片机简介 - 11 - 3.3单片机最小系统 - 15 - 3.3.1 时钟电路 - 15 - 3.3.2.复位电路 - 16 - 3.4 显示电路 - 17 - 3.5紧急通车电路模块 - 18 - 3.6 总电路图 - 19
显示全部
相似文档