毕业论文(设计)题目基于单片机控制的交通灯的设计_学生姓名学号专业班级指导教师完成时间:201年月日基于单片机控制的交通灯设计I摘要交通信号灯的出现,使交通得以有效管制,对于疏导交通流量,提高道路通行能力,减少交通事故有明显效果。本人选择制作交通灯作为课题加以研究。分析了现代城市交通控制与管理问题的现状,结合城乡交通的实际情况阐述了交通灯控制系统的工作原理,利用单片机89S51为核心部件,外加定时器、复位电路、晶振电路、显示电路等,设计一个比较符合交通规则的模拟交通灯,包括人行道,车行道、南北东西左转、应急车道,以及基本的交通灯的功能,同时给出了一种简单实用的城市交通灯控制系统的硬件电路设计方案。本文主要介绍了一个基于80C51单片机的交通灯控制系统,详细描述了利用89C51开发交通灯控制系统的过程,重点对硬件设计、软件编程、调试分析以及各模块系统流程进行了详细分析,对各部分的电路也一一进行了介绍。本系统由80C51单片机、键盘、交通灯演示组成,。该系统可以方便的实现交通灯控制。该系统结构简单,可靠性高,修改程序简单(方便加入或改变功能),有较好的应用前景。关键词:交通控制;单片机;80C51基于单片机控制的交通灯设计IIABSTRACTTrafficlights,traffictotheeffectivecontrol,toeasethetrafficflow,increaseroadcapacity,reducetrafficaccidentshaveademonstrableeffect.Ichoosetocreateatrafficlightasasubjecttobestudied.Analysisofthestatusofamodernurbantrafficcontrolandmanagementissues,combinedwiththeactualsituationofurbanandruraltransportationonthetrafficlightcontrolsystemworkswithmicrocontroller89S51asthecorecomponents,plusthetimer,resetcircuit,crystaloscillatorcircuit,displaycircuit,designamoreinlinewiththetrafficrulesofthesimulationoftrafficlights,sidewalk,roadway,northandsouththingsturnleftemergencylane,andthebasicfunctionofthetrafficlights,atthesametimegivesasimpleandpracticalurbantrafficlightcontrolsystemhardwarecircuitdesign.Thispaperdescribesa80C51microcontroller-basedtrafficlightcontrolsystem,detaileddescriptionoftheuse89C51developmentprocessofthetrafficlightcontrolsystem.Focusonadetailedanalysisofthehardwaredesign,softwareprogramming,analysisanddebuggingprocessofthemodularsystem,onthepartofthecircuitareintroducedonebyone.Thesystemismadeupof80C5lmicrocomputer,keyboardandtrafficlightsdisplay.ThesystemcaneasilyachievetrafficlightcontrolThesystemissimple,highreliability,easytomodifytheprogram(easyaddorchangefunctions),hasgoodprospects.KEYWORDS:TrafficControl,SingleChipMicrocomputer,80C51基于单片机控制的交通灯设计目录摘要.........................................................................................................................................I第1章绪论..............................................................................................................................11.1课题研究的背景及意义................................................................................................11.2当前的研究现状............................................................................................................11.3本文的主要工作和难点................................................................................................2第2章道路交通灯的总体系统的设计方案..........................................................................32.1总体设计方案................................................................................................................32.1.1系统机构总框架........................................................................................................32.1.2交通管理的方案论证................................................................................................32.1.3控制电路框图............................................................................................................32.2电路的工作原理............................................................................................................42.3本章小结........................................................................................................................5第3章硬件设计......................................................................................................................63.1MCS-51单片机介绍.......................................................................................................63.1.1简介............................................................................................................................63.1.3时钟脉冲电路..........................................................................................................113.1.4复位电路..................................................................................................................123.1.5电源电路..................................................................................................................123.2硬件原理图..................................................................................................................123.3本章小结......................................................................................................................13基于单片机控制的交通灯设计第4章软件设计....................................................................................................................144.1主程序设计..................................................................................................................144.1.1主程序流程图..........................................................................................................144.2初始化程序..................................................................................................................144.3延时程序......................................................................................................................144.4源程序..........................................................................................................................154.5