1、 毕业设计毕业设计 (专科)(专科) 题目:基于单片机交通灯题目:基于单片机交通灯 的设计的设计 摘 要 近年来随着科技的飞速发展,单片机的应用正在不断深入,同时带动传统控 制检测技术日益更新。在实时检测和自动控制的单片机应用系统中,单片机往往 作为一个核心部件来使用,仅单片机方面知识是不够的,还应根据具体硬件结构 软硬件结合,加以完善。 十字路口车辆穿梭,行人熙攘,车行车道,人行人道,有条不紊。靠的就是 交通信号灯的自动指挥系统来实现这井然秩序。交通信号灯控制方式很多。本系 统采用MSC-51系列单片机ATSC51和可编程并行I/O接口芯片8255A为中心器件 来设计交通灯控制器,实现了能根
2、据实际车流量通过 8051 芯片的 P1 口设置红、 绿灯燃亮时间的功能;红绿灯循环点亮,倒计时剩 5 秒时黄灯闪烁警示(交通灯 信号通过 PA 口输出,显示时间直接通过 8255 的 PC 口输出至双位数码管);车 辆闯红灯报警;绿灯时间可检测车流量并可通过双位数码管显示。本系统实用性 强、操作简单、扩展功能强。 关键词:单片机 交通灯 闯红灯 检测车流量 Abstract In recent years along with technical rapid development, monolithic integrated circuit application unceasingly
3、thorough, simultaneously leads the traditional control examination technology to renew day by day.In the real-time examination and in the automatic control monolithic integrated circuit application system, the monolithic integrated circuit often took a core part uses, the monolithic integrated circu
4、it aspect knowledge is only insufficient, but also should act according to the concrete hardware architecture software and hardware union, consummates. The intersection vehicles shuttle, the pedestrian is bustling, car dealership traffic lane, human sidewalk, methodical.Depends on is the street-traffic control lights automatic command system realizes this orderly order.The street-traffic control lights control mode are very many.This system uses MSC-51 series monolithic integrated circuit AT