【正文】
北京郵電大學(xué)畢業(yè)設(shè)計(jì) 畢 業(yè) 論 文 基于 STC89C52 單片機(jī)的交通信號(hào)燈控制電路的設(shè)計(jì)與實(shí)現(xiàn) 學(xué) 院: 軟件學(xué)院 專(zhuān)業(yè)班級(jí): XX 學(xué) 號(hào): 2XXXX 學(xué)生姓名: XXX 指導(dǎo)教師: XXX 太 原 理 工 大 學(xué) 北京郵電大學(xué)畢業(yè)設(shè)計(jì) I 基于單片機(jī)的交通信號(hào)燈控制電路的 設(shè)計(jì)與實(shí)現(xiàn) 摘 要 隨著各種交通工具的發(fā)展和交通指揮的需要,第一盞名副其實(shí)的三色燈 (紅、黃、綠三種標(biāo)志 )于 1918 年誕生。它是三色圓形四面投影器,被安裝在紐約市五號(hào)街的一座高塔上,由于它的誕生,使城市交通大為改善。 當(dāng)前,大量的信號(hào)燈電路正向著數(shù)字化、小功率、多樣化、方便人車(chē)路三者關(guān)系的協(xié)調(diào) 以及 多值化方向發(fā)展 。 隨著社會(huì) 和 經(jīng)濟(jì)的發(fā)展,城市交通問(wèn)題越來(lái)越引起人們的關(guān)注 。 隨著城市規(guī)模的不斷擴(kuò)大 , 城市交通成為制約城市發(fā)展的一大因素 。 因此 , 有許多設(shè)計(jì)工作者為改善城市交通環(huán)境設(shè)計(jì)了許多方案 , 而大多數(shù) 都是 交通指揮燈。 交通信號(hào)燈作為一個(gè)用來(lái)指揮車(chē)輛順利、暢通通過(guò)十字路口的裝置 , 與我們的生活緊密的聯(lián)系在一起。設(shè)計(jì)交通燈控制電路的方法有很多種,由于數(shù)字電子技術(shù)的邏輯性很強(qiáng),用它來(lái)設(shè)計(jì)交通燈的控制電路非常方便。而且數(shù)字電子技術(shù)芯片只要在一 定的范圍內(nèi)輸入,都能得到穩(wěn)定的輸出,調(diào)試簡(jiǎn)單,電路的工作也比較穩(wěn)定。 本論文 的設(shè)計(jì)就是通過(guò)一些基本的數(shù)字芯片組合來(lái)實(shí)現(xiàn)對(duì)十字路口交通燈的六個(gè)不同信號(hào)燈的控制,另外還加以倒計(jì)時(shí)數(shù)碼管顯示 , 以 設(shè)計(jì)實(shí)現(xiàn)了一個(gè) 十字路口信號(hào)燈的仿真模型 及其控制電路。 這個(gè)電路的設(shè)計(jì)看似較為復(fù)雜,其實(shí)就是 由 一些基本的數(shù)字電路組成 。論文 采用 中、小規(guī)模集成電路 , 設(shè)計(jì) 了 交通信號(hào)燈 控制 電路 , 畫(huà)出 了 各單元電路圖、整機(jī)框圖和邏輯電路圖 , 完成了 組裝和調(diào)試 , 實(shí)現(xiàn)了交通信號(hào)燈控制的 各項(xiàng)功能 , 最后 對(duì)論文的工作 進(jìn)行 了 總結(jié)。 關(guān)鍵詞 STC89C52; 獨(dú)立鍵盤(pán);數(shù)碼管;蜂鳴器。 北京郵電大學(xué)畢業(yè)設(shè)計(jì) 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 北京郵電大學(xué)畢業(yè)設(shè)計(jì) III machine logic circuit, a breakthrough step by step, and finally finishing summary. Keywords: STC89C52, separate keyboard, LED, buzzer. 北京郵電大學(xué)畢業(yè)設(shè)計(jì) 目 錄 摘 要 ........................................................................................................................................ I Abstract ..................................................................................................................................... II 1 引言 ....................................................................................................................................... 1 目的和意義 ................................................................................................................ 1 研究概況和發(fā)展趨勢(shì) ................................................................................................. 2 本系統(tǒng)主要研究?jī)?nèi)容 ................................................................................................ 3 2. 總體方案論證與設(shè)計(jì) .......................................................................................................... 1 主控模塊的選型和論證 ............................................................................................. 1 顯示模塊的選型和論證 ............................................................................................. 1 按鍵模塊的選型和論證 ............................................................................................. 1 系統(tǒng)整體設(shè)計(jì)概述 ..................................................................................................... 2 ................................................................................................................ 3 主控模塊 ..................................................................................................................... 3 STC89C52 單片機(jī)主要特性 ........................................................................... 3 STC89C52 單片機(jī)的中斷系統(tǒng) ....................................................................... 6 單片機(jī)最小系統(tǒng)設(shè)計(jì) ..................................................................................... 6 數(shù)碼管顯示電路 ......................................................................................................... 6 鍵盤(pán)模塊設(shè)計(jì) ............................................................................................................. 7 蜂鳴器模塊設(shè)計(jì) ......................................................................................................... 8 路燈指示電路 ............................................................................................................. 8 .........