1、 课程设计(论文)说明书 题 目:基于单片机的交通灯基于单片机的交通灯控控 制器设计制器设计 院 (系) :信息与通信学院 专 业:微电子学 学生姓名: 学 号: 指导教师: 职 称: 2012 年 12 月 10 日 摘摘 要要 十字路口车辆穿梭,行人熙攘,车行车道,人行人道,有条不紊。那么靠什么来实 现这井然秩序呢?靠的就是交通信号灯的自动指挥系统。本系统由单片机系统、四位数 码管显示、彩色LED交通灯演示系统组成。设计一个用于东西、南北走向的交通管理。 南北方向(主干道)车道和东西方向(支干道)车道两条交叉道路上的车辆交替运行, 主干道每次通行时间都设为45秒、支干道每次通行间为30秒。
2、本系统结构简单,操作方 便;可实现自动控制,具有一定的智能性;对优化城市交通具有一定的意义。本设计将 各任务进行细分包装, 使各任务保持相对独立; 能有效改善程序结构, 便于模块化处理, 使程序的可读性、可维护性和可移植性都得到进一步的提高。近年来随着科技的飞速发 展,单片机的应用正在不断深入,同时带动传统控制检测技术日益更新。在实时检测和 自动控制的单片机应用系统中,单片机往往作为一个核心部件来使用,仅单片机方面知 识是不够的,还应根据具体硬件结构软硬件结合,加以完善。 本文主要从单片机的应 用上来实现十字路口交通灯智能化的管理,用以控制过往车辆的正常运作。 关键词:交通灯;单片机;数码管
3、桂林电子科技大学课程设计(论文)报告用纸 第 II 页 共 III 页 Abstract Shuttle crossroads vehicles, pedestrians bustling, car dealers lane pavements people, methodical. Rely on to achieve orderly order it? Is automated command system of traffic lights. The system consists of a microcontroller system, four digital display col
4、or LED traffic lights demo system. The design for the east and west, north-south traffic management. Lane of the north-south direction (the main road) and east-west direction (branch roads) lanes on two cross-road vehicles run alternately main road every passage time is set to 45 seconds, the branch
5、 roads between each passage 30 seconds. The system is simple in structure, easy to operate; achieve automatic control, smart has a certain significance; optimize urban traffic. The design of each task segments packaging, remain relatively independent of each task; effective to improve the structure
6、of the program to facilitate modular treatment program readability, maintainability and portability have been further improved. With the rapid development of science and technology in recent years, the application of SCM is the deepening of the traditional control while driving detection technology is increasingly updates. Real-time detection and automatic control of microcomputer application system, the microcontroller is of