1、 第 1 页 共 29 页 2009 届毕业生毕业论文 单片机控制交通灯单片机控制交通灯 Single chip microcomputer to contror traffic lights 系系 别:电气与信息工程系别:电气与信息工程系 专专 业:电子信息工程业:电子信息工程 班班 级:电信级:电信 091 学学 号:号: 姓姓 名:名: 指导老师:指导老师: 完成日期:完成日期:2012-5-18 第 2 页 共 29 页 中文摘要中文摘要 近年来随着科技的飞速发展,单片机的应用正在不断深入,同时带动 传统控制检测技术日益更新。在实时检测和自动控制的单片机应用系统 中,单片机往往作为一个
2、核心部件来使用,仅单片机方面知识是不够的, 还应根据具体硬件结构软硬件结合,加以完善。 十字路口车辆穿梭,行人熙攘,车行车道,人行人道,有条不紊。那 么靠什么来实现这井然秩序呢?靠的就是交通信号灯的自动指挥系统。 交 通信号灯控制方式很多。本系统采用 MSC-51 系列单片机 A TSC51 和可编 程并行 I/O 接口芯片 80C51 为中心器件来设计交通灯控制器, 实现了能根 据实际车流量通过 8051 芯片的 P1 口设置红、绿灯燃亮时间的功能;红绿 灯循环点亮,倒计时剩秒时黄灯闪烁警示。本系统实用性强、操作简单、 扩展功能强。 关键词:关键词:交通灯 单片机 MSC-51 计时 第 3
3、 页 共 29 页 ABSTRACT Years with the rapid development of science and technology, SCM applications are deepening at the same time promote more traditional control detection update. In real-time detection and control of the microcomputer application system, the microcontroller is often used as a core co
4、mponent, only the SCM knowledge is inadequate and should be based on specific hardware architecture hardware and software, to be improved. Crossroads shuttle vehicles, pedestrians bustling, car dealers Drive, people walkways, orderly. Then rely on to achieve the discipline of the order then? Rely on the automatic traffic light is the chain of command. Many ways to control traffic lights. In this system, MSC-51 Series MCU A TSC51 and programmable parallel I / O interfac