资源描述:
《基于单片机交通灯设计[2]》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、摘要根据STC10F04单片机的特点及交通灯在实际控制中的特点,本文提出一种用单片机自动控制交通灯及时间显示的方法。同时给出了软硬件设计方法,设计过程包括硬件电路设计和程序设计两大步骤,对在单片机应用中可能遇到的重要设计问题都有涉足。本文对十字路口状态预设为三种,一种是正常状态,一种是紧急状态,另一种是方程式状态。增设路段遇忙调整时方程式控制状态和紧急情况处理模块,通过手动控制开关按钮A0和A1方便系统在正常状态和紧急状态、方程式控制间来回切换,进一步完善了交通灯控制系统。并分别用红、黄、绿灯的不同组合来指挥两个方向通车
2、与禁行,用LED数码管作为倒计时指示,实时的控制当前交通灯时间使LED显示器进行倒计时工作并与状态灯保持同步,在保持交通安全的同时最大限度的提高交通能顺畅交替运行。本文介绍了控制基本原理以及控制的表现,同时,论述了系统中交通现状、交通管理、交通规则及背景信息。关键词:自动控制,时间显示器,外部中断,延时,方程式控制1AbstractAccordingtothecharacteristicsofsingle-chipSTC10F04andtrafficlightsintheactualcontrolofthecharact
3、eristicsofthispaper,asingle-chipautomaticcontrolwithtrafficlightsandthemethodoftimedisplay.Atthesametime,giventhehardwareandsoftwaredesignmethodology,designprocess,includingthehardwarecircuitdesignandprogramdesigntwomajorstepsinthesingle-chipapplicationsthatmaybe
4、encounteredinthedesignoftheimportantissuesareinvolved.Inthispaper,thedefaultstateofthecrossroadsforthree,oneisthenormalstateisastateofemergency,andtheotherisastateformula.AdditionalsectionsofbusystatusadjustmentformulaandanemergencycontrolmoduleThroughthemanualco
5、ntrolswitchbuttonconvenienceA0andA1systeminthenormalstateandastateofemergency,theequationbetweenthecontrolswitchbackandforth,andfurtherimprovethetrafficlightcontrolsystem.Andwerered,yellowandgreenlighttodirectdifferentcombinationsoftrafficinbothdirectionsandcut-l
6、ine,withLEDdigitaltubeasacountdowntotheinstructions,real-timecontrolofthecurrenttimefortrafficlightstoLEDcountdowndisplayworkandtokeeppacewiththestateoflightinthetomaintainsafetywhileminimizingtheincreaseintraffictoalternaterunningsmoothly.Thispaperintroducestheb
7、asicprinciplesofcontrol,aswellastheperformanceofcontrolatthesametime,trafficonthesystemstatus,trafficmanagement,trafficregulationsandbackgroundinformation.Keywords:automaticcontrol;timedisplay;externalinterrupt;delay;controlequation2目录摘要..........................
8、.......................................................................................................................1Abstract...............................