国产精品婷婷久久久久久,国产精品美女久久久浪潮av,草草国产,人妻精品久久无码专区精东影业

單片機控制交通燈.doc

約20頁DOC格式手機打開展開

單片機控制交通燈,摘要 近年來隨著科技的飛速發(fā)展,單片機的應用正在不斷地走向深入,同時帶動傳統(tǒng)控制檢測日新月異更新。 十字路口車輛穿梭,行人熙攘,車行車道,人行人道,有條不紊。那么靠什么來實現(xiàn)這井然秩序呢?靠的是交通信號燈的自動指揮系統(tǒng)。交通信號燈控制方式很多。本系統(tǒng)采用msc-51系列單片機intel8031和可編程并行i/o接口芯片...
編號:36-90477大小:323.00K
分類: 論文>通信/電子論文

內容介紹

此文檔由會員 csfujixie 發(fā)布

摘要
    近年來隨著科技的飛速發(fā)展,單片機的應用正在不斷地走向深入,同時帶動傳統(tǒng)控制檢測日新月異更新。
    十字路口車輛穿梭,行人熙攘,車行車道,人行人道,有條不紊。那么靠什么來實現(xiàn)這井然秩序呢?靠的是交通信號燈的自動指揮系統(tǒng)。交通信號燈控制方式很多。本系統(tǒng)采用MSC-51系列單片機Intel8031和可編程并行I/O接口芯片8255A為中心器件來設計交通燈控制器,實現(xiàn)了能根據(jù)實際車流量通過8031芯片的P1口設置紅、綠燈燃亮時間的功能;為了系統(tǒng)穩(wěn)定可靠采用了MAX629“看門狗”芯片,避免了系統(tǒng)因為死機而停止工作的情況發(fā)生;顯示時間直接通過8255的PA、PB口輸出;交通燈信號通過PC口輸出;交通燈的點亮采用VT雙向晶閘管來控制,直接采用220V交流電源驅動,系統(tǒng)實用性強、操作簡單、擴展性強。
    在實時檢測和自動控制的單片機應用系統(tǒng)中,單片機往往是作為一個核心部件來使用,僅單片機方面知識是不夠的,還應根據(jù)具體硬件結構,以及針對具體應用對象特點的軟件結合,加以完善。
關鍵詞:單片機 ; 交通燈; 控制器; 設計;  實現(xiàn)

ABSTRACT
    In recent years along with science and technology develop fast, the application of single flat machine is moving towards thorough continuously, at the same time drive traditional control detection day the benefit of new  moon update. In the only flat machine application system of the automatic control and detection of real time, only flat machine is often to use as a key parts, only single flat machine aspect knowledge is insufficient , return should basis specificly hardware structure, as well as aim at the software that applies object characteristic specificly combination, perfect.
    Crossroads vehicle wear comb, pedestrian Xi Rang, turn to be all right lane, person pedestrian says , methodically. Do you lean what to realize this orderly order? What lean is that the automatic command system of traffic signal lamp. Traffic signal lamp control way is many . This system adopts MSC-51 series only flat machine Intel8031 with but programming parallel interface chip 8255 A of I/O is central device the design controler of traffic lights, haverealized can measure according to actual wagon flow the P1 installation bonus and green light that passes through 8031 chips burn to light the function of time; For system stabilize reliable have adopted MAX629 the chip " dog looks after the house ", have avoided that system stops working condition because of halting to occur; Show that time is directly exported through PB and PA of 8255; The signal of traffic lights is exported through usually PC mouth; The point of traffic lights light to adopt VT two-way Jing floodgate pipe come to control, directly drive with the alternating current source of 220 V, practicality is strong, operating is simple.
Keywords: Only flat machine  Traffic lights  Controler  Design  Realize
 
目錄
摘要.................................................................................I
Abstract........................................................................... II
1 引言   ...........................................................................1
2 單片機概述.........................................................................1
3.1 MSC-51芯片簡介.................................................................1
3.2  5芯片簡介....................................................................4.
3.3 74LS373簡介  ..................................................................5
4  系統(tǒng)硬件設計......................................................................5
4.1交通管理的方案論證  .........................................................5
4.2系統(tǒng)硬件設計................................................................. 6
4.2.1  系統(tǒng)總框圖............................................................... 6
4.2.2 交通燈硬件線路圖...........................................................7
4.23系統(tǒng)的工作原理...............................................................7
5.控制器的軟件設計..................................................................7
5.1每秒鐘的設定.............................................................  ...7
5.2計數(shù)器硬件延時............................................................ ...7
5.2.1 計數(shù)器初值計算................................................ .. .... .....7
5.2.2  計算公式................................................... ..............7
5.2.3  1秒的方法.............................................. .................8
5.2.4相應程序代碼......................................................... ... ...8
5.3 軟件延時.....................................................................8
5.4 時間及信號燈的顯示.......................................................... 9
5.4.1  8051并行口的擴展....................................................... . .9
5.4.2顯示原理:...................................................................9
5.4.3  8255PA口輸出信號接信號燈:............................................... .9
5.4.4 8255輸出信號與數(shù)碼管的連接:................................................ 10
5.4.5 8255與8051的連接:..........................................................10
5.5 程序設計................................................................... 10
5.5.2 程序源代碼............................................................. ...11
6 結論.................................................................... . ... . ...18
參考文獻..................................................................... ... ...17
附錄............................................................................ ...18.