1、1 毕 业 论 文 ( 设 计毕 业 论 文 ( 设 计 ) 基于单片机交通灯的设计 指导老师: 系 (部) : 机电工程系机电工程系 专 业: 应用应用电子技术电子技术 I 摘要 近年来随着科技的飞速发展,单片机的应用正在不断地走向深入,同时带动传统控制检测日新 月异更新。 十字路口车辆穿梭,行人熙攘,车行车道,人行人道,有条不紊。那么靠什么来实现这井然秩 序呢?靠的是交通信号灯的自动指挥系统。交通信号灯控制方式很多。本系统采用 MSC-51 系列单片 机 Intel8031 和可编程并行 I/O 接口芯片 8255A 为中心器件来设计交通灯控制器,实现了能根据实 际车流量通过 8031 芯
2、片的 P1 口设置红、 绿灯燃亮时间的功能; 为了系统稳定可靠采用了 MAX629 “看 门狗”芯片,避免了系统因为死机而停止工作的情况发生;显示时间直接通过 8255 的 PA、PB 口输 出;交通灯信号通过 PC 口输出;交通灯的点亮采用 VT 双向晶闸管来控制,直接采用 220V 交流电源 驱动,系统实用性强、操作简单、扩展性强。 在实时检测和自动控制的单片机应用系统中,单片机往往是作为一个核心部件来使用,仅单片 机方面知识是不够的,还应根据具体硬件结构,以及针对具体应用对象特点的软件结合,加以完善。 关键词:单片机 ; 交通灯; 控制器; 设计; 实现 ABSTRACT In rece
3、nt years along with science and technology develop fast, the application of single flat machine is moving towards thorough continuously, at the same time drive traditional control detection day the benefit of new moon update. In the only flat machine application system of the automatic control and d
4、etection of real time, only flat machine is often to use as a key parts, only single flat machine aspect knowledge is insufficient , return should basis specificly hardware structure, as well as aim at the software that applies object characteristic specificly combination, perfect. Crossroads vehicle wear comb, pedestrian Xi Rang, turn to be all right lane, person pedestrian says , methodically. Do you lean what to realize this orderly order? What lean is that the automatic com