【正文】
畢業(yè)論文(設(shè)計) 題 目 基于單片機控制的交通燈設(shè)計 專 業(yè) 數(shù)碼嵌入式技術(shù) 班 級 數(shù)嵌(3—5)班 學(xué) 生 田 成 指導(dǎo)教師 魏勤勤 西安數(shù)字技術(shù)學(xué)院二 0一二年摘 要交通信號燈的出現(xiàn),使交通得以有效管制,對于疏導(dǎo)交通流量,提高道路通行能力,減少交通事故有明顯效果。本人選擇制作交通燈作為課題加以研究。分析了現(xiàn)代城市交通控制與管理問題的現(xiàn)狀,結(jié)合城鄉(xiāng)交通的實際情況闡述了交通燈控制系統(tǒng)的工作原理,利用單片機89S51為核心部件,外加定時器、復(fù)位電路、晶振電路、顯示電路等,設(shè)計一個比較符合交通規(guī)則的模擬交通燈,包括人行道,車行道、南北東西左轉(zhuǎn)、應(yīng)急車道,以及基本的交通燈的功能,同時給出了一種簡單實用的城市交通燈控制系統(tǒng)的硬件電路設(shè)計方案。本文主要介紹了一個基于80C51單片機的交通燈控制系統(tǒng),詳細描述了利用89C51開發(fā)交通燈控制系統(tǒng)的過程,重點對硬件設(shè)計、軟件編程、調(diào)試分析以及各模塊系統(tǒng)流程進行了詳細分析,對各部分的電路也一一進行了介紹。本系統(tǒng)由80C51單片機、鍵盤、交通燈演示組成。該系統(tǒng)可以方便的實現(xiàn)交通燈控制。該系統(tǒng)結(jié)構(gòu)簡單,可靠性高,修改程序簡單(方便加入或改變功能),有較好的應(yīng)用前景。 關(guān)鍵詞:交通控制;單片機;80C51ABSTRACTTraffic lights, traffic to the effective control, to ease the traffic flow, increase road capacity, reduce traffic accidents have a demonstrable effect. I choose to create a traffic light as a subject to be studied. Analysis of the status of a modern urban traffic control and management issues, bined with the actual situation of urban and rural transportation on the traffic light control system works with microcontroller 89S51 as the core ponents, plus the timer, reset circuit, crystal oscillator circuit, display circuit, design a more in line with the traffic rules of the simulation of traffic lights, sidewalk, roadway, north and south things turn left emergency lane, and the basic function of the traffic lights, at the same time gives a simple and practical urban traffic light control system hardware circuit design.This paper describes a 80C51 microcontrollerbased traffic light control system, detailed description of the use 89C51 development process of the traffic light control system. Focus on a detailed analysis of the hardware design, software programming, analysis and debugging process of the modular system, on the part of the circuit are introduced one by one. The system is made up of 80C5l microputer, keyboard and traffic lights display. The system can easily achieve traffic light control The system is simple, high reliability, easy to modify the program (easy add or change functions), has good prospects.KEY WORDS: Traffic Control, Single Chip Microputer , 80C51目 錄摘 要 IABSTRACT II第1章 緒論 1 課題研究的背景及意義 1 當前的研究現(xiàn)狀 1 本文的主要工作和難點 2第2章 道路交通燈的總體系統(tǒng)的設(shè)計方案 3 總體設(shè)計方案 3 系統(tǒng)機構(gòu)總框架 3 交通管理的方案論證 3 控制電路框圖 3 電路的工作原理 4 本章小結(jié) 5第3章 硬件設(shè)計 6 MCS51單片機介紹 6 簡介 6 時鐘脈沖電路 11 復(fù)位電路 12 電源電路 12 硬件原理圖 12 本章小結(jié) 13第4章 軟件設(shè)計 14 主程序設(shè)計 14 主程序流程圖 14 初始化程序 14 延時程序 14 源程序 15 本章小結(jié) 15第5章 調(diào)試分析 16 KEIL51軟件簡介 16 系統(tǒng)概述 16 KeilC51單片機軟件開發(fā)系統(tǒng)的整體結(jié)構(gòu) 17 調(diào)試步驟 18 邏輯的調(diào)試 18 模擬電路板的調(diào)試 20 20 本章小結(jié) 21結(jié)論與展望 22致謝 23參考文獻 24 第1章 緒論 課題研究的背景及意義隨著經(jīng)濟的發(fā)展,城市現(xiàn)代化程度不斷提高,交通需求和交通量迅速增長,城市交通網(wǎng)絡(luò)中交通擁擠日益嚴重,道路運輸所帶來的交通擁堵、交通事故和環(huán)境污染等負面效應(yīng)也日益突出,逐步成為經(jīng)濟和社會發(fā)展中的全球性共同問題。交通問題已經(jīng)日益成為世界性的問題,城市交通事故、交通堵塞和交通污染問題愈加突出。為了解決車和路的矛盾,常用的有兩種方法:一是控制需求,最直接的辦法就是限制車輛的增加;二是增加供給,即大量修筑道路基礎(chǔ)設(shè)施的辦法,在資源、環(huán)境矛盾越來越突出的今天,面對越來越擁擠的交通,有限的資源和財力以及環(huán)境的壓力,也將受到限制。這就需要依靠除限制需求和提供道路設(shè)施之外的其他辦法來滿足日益增長的交通需求。在