【正文】
北京郵電大學畢業(yè)設計 畢 業(yè) 論 文 基于 STC89C52 單片機的交通信號燈控制電路的設計與實現(xiàn) 學 院: 軟件學院 專業(yè)班級: XX 學 號: 2XXXX 學生姓名: XXX 指導教師: XXX 太 原 理 工 大 學 北京郵電大學畢業(yè)設計 I 基于單片機的交通信號燈控制電路的 設計與實現(xiàn) 摘 要 隨著各種交通工具的發(fā)展和交通指揮的需要,第一盞名副其實的三色燈 (紅、黃、綠三種標志 )于 1918 年誕生。它是三色圓形四面投影器,被安裝在紐約市五號街的一座高塔上,由于它的誕生,使城市交通大為改善。 當前,大量的信號燈電路正向著數(shù)字化、小功率、多樣化、方便人車路三者關系的協(xié)調(diào) 以及 多值化方向發(fā)展 。 隨著社會 和 經(jīng)濟的發(fā)展,城市交通問題越來越引起人們的關注 。 隨著城市規(guī)模的不斷擴大 , 城市交通成為制約城市發(fā)展的一大因素 。 因此 , 有許多設計工作者為改善城市交通環(huán)境設計了許多方案 , 而大多數(shù) 都是 交通指揮燈。 交通信號燈作為一個用來指揮車輛順利、暢通通過十字路口的裝置 , 與我們的生活緊密的聯(lián)系在一起。設計交通燈控制電路的方法有很多種,由于數(shù)字電子技術(shù)的邏輯性很強,用它來設計交通燈的控制電路非常方便。而且數(shù)字電子技術(shù)芯片只要在一 定的范圍內(nèi)輸入,都能得到穩(wěn)定的輸出,調(diào)試簡單,電路的工作也比較穩(wěn)定。 本論文 的設計就是通過一些基本的數(shù)字芯片組合來實現(xiàn)對十字路口交通燈的六個不同信號燈的控制,另外還加以倒計時數(shù)碼管顯示 , 以 設計實現(xiàn)了一個 十字路口信號燈的仿真模型 及其控制電路。 這個電路的設計看似較為復雜,其實就是 由 一些基本的數(shù)字電路組成 。論文 采用 中、小規(guī)模集成電路 , 設計 了 交通信號燈 控制 電路 , 畫出 了 各單元電路圖、整機框圖和邏輯電路圖 , 完成了 組裝和調(diào)試 , 實現(xiàn)了交通信號燈控制的 各項功能 , 最后 對論文的工作 進行 了 總結(jié)。 關鍵詞 STC89C52; 獨立鍵盤;數(shù)碼管;蜂鳴器。 北京郵電大學畢業(yè)設計 II Microcontrollerbased traffic signal control circuit Design and Implementation Abstract With the development needs of the various modes of transport and traffic control, the first truly threecolor lights (red, yellow, and green flag) was born in 1918. It is surrounded by threecolor circular projector is mounted on a tower fifth Street in New York City, since its birth, the urban traffic greatly improved. Currently, a large number of signal circuits is toward digital, lowpower, diversity, facilitate people, vehicles, coordinating the threeway relationship, and more valueoriented development along with social and economic development, urban transport problems more cause for concern with the development of society, expanding the size of cities, urban transport as a constraint to urban development is a major factor, so there are many workers in order to improve the urban traffic design environment designed many programs, but most are traffic lights. Traffic lights used as a mand vehicle smooth, smooth crossroads devices with our lives closely linked through. There are many ways to design the traffic light control circuit, because the logic of digital electronic technology is strong, use it to design a traffic light control circuit is very convenient. And as long as the digital electronics chips within a certain range of the input, the output can get a stable, easy adjustment, operation of the circuit is relatively stable. I have this design is through some basic digital chip to achieve a bination of six different lights on the crossroads of traffic lights control, in addition to a countdown digital display. Crossroads lights to do the simulation model, the design of this circuit may seem more plicated, in fact, some of the basic digital circuit. Using medium and smallscale integrated circuit design traffic signal circuits, and assembly and missioning, and then the various functions of the design, each unit to draw circuit diagrams, block diagrams and 北京郵電大學畢業(yè)設計 III machine logic circuit, a breakthrough step by step, and finally finishing summary. Keywords: STC89C52, separate keyboard, LED, buzzer. 北京郵電大學畢業(yè)設計 目 錄 摘 要 ........................................................................................................................................ I Abstract...................................................................................................................................... II 1 引言 ....................................................................................................................................... 1 目的和意義 ................................................................................................................ 1 研究概況和發(fā)展趨勢 ................................................................................................. 2 本系統(tǒng)主要研究內(nèi)容 ................................................................................................ 3 2. 總體方案論證與設計 .......................................................................................................... 1 主控模塊的選型和論證 ............................................................................................. 1 顯示模塊的選型和論證 ............................................................................................. 1 按鍵模塊的選型和論證 ............................................................................................. 1 系統(tǒng)整體設計概述 ..................................................................................................... 2 ................................................................................................................ 3 主控模塊 ..................................................................................................................... 3 STC89C52 單片機主要特性 ........................................................................... 3 STC89C52 單片機的中斷系統(tǒng) ....................................................................... 6 單片機最小系 統(tǒng)設計 ..................................................................................... 6 數(shù)碼管顯示電路 ......................................................................................................... 6 鍵盤模塊設計 ............................................................................................................. 7 蜂鳴器模塊設計 ......................................................................................................... 8 路燈指示電路 ............................................................................................................. 8 ........