1、 I 单片机系统综合设计报告单片机系统综合设计报告 十字路口交通灯设计 I 交通灯设计要求交通灯设计要求 1 设计要求 分析交通路口的基本控制技术以及各种通行方案, 并依此基础提出自己的交通控 制方案; 确定系统交通控制的总体设计 (十字路口具体的通行禁止方案设计以及系统实现 的各项功能) 进行软件的设计实现白天(05:00-23:00) 、夜晚(23:00-05:00)交通灯的正常 指挥功能(A、B 两干道的红黄绿灯倒计时和相互切换) ; 实现时钟和红绿灯倒计时的显示和键盘控制显示模块功能; 2 扩展功能 交通干道的红黄绿灯持续时间可根据道路的繁忙程度,通过键盘控制来更改时 间,以便交通更加
2、便利; 可通过键盘控制时钟信号的加减; 如若天气不好可将交通等切换至黄灯闪烁状态; II 摘要摘要 随着社会经济的发展,城市交通越来越成为人们不可忽视的问题。人、车、路之间 的协调,已经成为交通管理部门主要解决的问题。各种交通工具的发展和交通指挥的 需要,第一盏名副其实的三色灯(红、黄、绿三种标志)于1918年诞生。它是三色 圆形四面投影器,被安装在纽约市五号街的一座高塔上,由于它的诞生,使城市 交通大为改善。城市交通控制系统是用于城市交通数据监测、交通信号灯控制与交通 疏导的计算机综合管理系统,它是现代城市交通监控指挥系统中最重要的组成部分。而 交通信号灯是我们常见的交通管理系统, 交通信号
3、灯的出现,使交通得以有效管制,对 于疏导交通流量,提高道路通行能力,减少交通事故有明显效果。 关键词:关键词:单片机;STC89C52RC;数码管;发光二极管 The design of traffic lights Abstract With the development of social economy, city traffic becomes the problem not to be ignored. Person, car, road between the coordination of traffic management department, has become th
4、e main problem. A variety of transportation development and traffic command needs to be worthy of the name, first lit the lamp ( red, yellow, green three signs ) was born in 1918. It is surrounded by a circular three-color projector, was installed in New York City five Street on a tower, since its b
5、irth, the city traffic is improved greatly. City traffic control system is used for city traffic data monitoring, traffic signal control and traffic management computer system, it is a modern city traffic control system is the most important part of. The traffic signal lamp is our common traffic man
6、agement system, the appearance of the traffic signal lamp, so that traffic can be effective control, for ease traffic flow, increase road capacity, the effect of significantly reducing traffic accidents. Key words: single chip microcomputer; STC89C52RC; digital tube; light emitting diode III 目 录 引 言. 1 1 总体方案论证与设计 2 1.1 交通灯的控制方案: 2 1.2 光显示部分设计方案. 2 1.3 按键部分控制. 2 2 原理分析与硬件电路图 3 3 软件设计与流程 . 5 3.1 程序主体设计流程: 5 3.1.1 设计题目,具体技术要求及功能 . 6 3.1.2 方案比较、设计与论证 . 9 3.1.3 输入方案 . 9