文档详情

单片机交通灯设计报告27.doc

发布:2017-09-16约1.45万字共36页下载文档
文本预览下载声明
山东大学 威 海 分 校 课 程 设 计 报 告 设计题目: ______ 红绿灯控制器___ _ 姓 名 : 袁卫平 学 号 : 20078002041 院 系 : 信息工程学院 专 业 : 电子信息科学与技术 年 级 : 07级 2010年7月25日 目 录 目 录 1 摘 要 8 关 键 词 8 Abstract 8 Keywords 9 1 引言 10 2 设计方案论证 10 2.1 电源提供方案 10 2.2 输入方案 10 2.3 界面显示方案 11 2.4 单片机使用方案 11 2.5 编程方案 11 3 芯片与工具及各模块图简介 12 3.1 STC12C5410AD单片机简介 12 3.1.2 STC12C5410AD单片机连接图 13 3.2 MAX232简介 13 3.3 工具简介 14 3.3.1 软件工具 14 3.3.2 硬件工具 14 3.4 系统模块简介 14 3.4.1 串口下载接口 14 3.4.2 单片机最小系统及外围结构 15 3.4.3 5V稳压电源电路 16 3.4.4 指示剩余时间的数码管模块 17 3.4.5 LED模块指示 17 3.4.6 键盘模块 18 3.4.7 复位电路 18 4 课题描述与分析 18 4.1 系统需求描述与分析 18 4.2 系统开发步骤 20 4.2.1 本系统的工作流程 20 4.2.2 软件设计 21 4.3 系统安全问题 21 5 课题设计 21 5.1 总体设计 21 5.2 硬件设计 22 5.2.1 灯控制电路设计 22 5.2.2 数码管显示电路设计 23 5.3 软件设计 24 6 系统测试 27 6.1 软件调试 27 6.2 硬件调试 27 7 结论 27 参考文献 28 摘 要 随着社会经济的发展,城市交通问题越来越引起人们的关注。人、车、路三者关系的协调,已成为交通管理部门需要解决的重要问题之一。城市交通控制系统是用于城市交通数据监测、交通信号灯控制与交通疏导的计算机综合管理系统,它是现代城市交通监控指挥系统中最重要的组成部分。本设计简单地模拟红绿灯的控制情况。12C5410AD为核心,使用STC232E建立RS23C接口。利用单片机的定时器产生秒信号,控制十字路口的红绿黄灯交替点亮和熄灭,并且用4只LED数码管显示十字路口两个方向的剩余时间。了解实验原理和设计思路,以便更好的掌握单片机的设计和运用。STC12C5410AD 单片机最小系统 数码管显示 Abstract With the social and economic development, urban transport problems are becoming increasingly a cause for concern. Of passengers, vehicles and the relationship between the way the coordination of traffic management has become an important need to address one of the issues. Urban traffic control system is used for urban traffic data monitoring, traffic signal control and traffic management computer system, it is the modern urban traffic control system command and the most important component. The design is simple to simulate the control of traffic lights. This system is based on 12C5410AD, which use STC232E to establish the RS23C interface. The use of single-chip timer seconds signals generated to control the turn at the crossroads of the red and green light and yellow light is off, and by 4 LED digital display at the crossroads of the remainder of the two directions. Underst
显示全部
相似文档