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

基于單片機(jī)的交通燈設(shè)計(jì).doc

約29頁(yè)DOC格式手機(jī)打開(kāi)展開(kāi)

基于單片機(jī)的交通燈設(shè)計(jì),28頁(yè)共計(jì)8621字摘要紅黃綠交通燈控制器采用單片機(jī)及程序存儲(chǔ)器的擴(kuò)展控制,實(shí)現(xiàn)控制器的功能要求,例如紅黃綠燈的交替閃爍,定時(shí)等等。單片機(jī)將cpu,存儲(chǔ)器,定時(shí)器/計(jì)數(shù)器及各接口電路組成,具有良好的性價(jià)比。本控制器可分時(shí)段進(jìn)行道路的管制,還可在緊急時(shí)刻進(jìn)行手動(dòng)控制,實(shí)施道路路況的控制。交通信號(hào)燈控制方式很多。本系統(tǒng)采用...
編號(hào):45-71703大小:301.50K
分類: 論文>通信/電子論文

內(nèi)容介紹

此文檔由會(huì)員 bfxqt 發(fā)布

28頁(yè)共計(jì)8621字


摘要
紅黃綠交通燈控制器采用單片機(jī)及程序存儲(chǔ)器的擴(kuò)展控制,實(shí)現(xiàn)控制器的功能要求,例如紅黃綠燈的交替閃爍,定時(shí)等等。單片機(jī)將CPU,存儲(chǔ)器,定時(shí)器/計(jì)數(shù)器及各接口電路組成,具有良好的性價(jià)比。本控制器可分時(shí)段進(jìn)行道路的管制,還可在緊急時(shí)刻進(jìn)行手動(dòng)控制,實(shí)施道路路況的控制。
交通信號(hào)燈控制方式很多。本系統(tǒng)采用MSC-51系列單片機(jī)ATSC51和可編程并行I/O接口芯片8255A為中心器件來(lái)設(shè)計(jì)交通燈控制器,實(shí)現(xiàn)了能根據(jù)實(shí)際車流量通過(guò)8051芯片的P1口設(shè)置紅、綠燈燃亮?xí)r間的功能;紅綠燈循環(huán)點(diǎn)亮,倒計(jì)時(shí)剩5秒時(shí)黃燈閃爍警示(交通燈信號(hào)通過(guò)PA口輸出,顯示時(shí)間直接通過(guò)8255的PC口輸出至雙位數(shù)碼管);車輛闖紅燈報(bào)警;綠燈時(shí)間可檢測(cè)車流量并可通過(guò)雙位數(shù)碼管顯示。本系統(tǒng)實(shí)用性強(qiáng)、操作簡(jiǎn)單、擴(kuò)展功能強(qiáng)。

Abstract

Red yellow and green traffic light controller using microcontroller and program memory expansion control to realize control of the functional requirements, such as red and yellow alternate flashing green light, timing and so on. SCM will be CPU, memory, timer / counter and the interface circuit, and has good cost performance. The controller can be divided into the control of road time, but also in times of emergency manual control, the implementation of road traffic control.
Many ways to control traffic lights. In this system, MSC-51 Series MCU ATSC51 and programmable parallel I / O interface chip 8255A-centered design of traffic signal controller device to realize the actual traffic volume by 8051 according to the P1 port chip set of red, green time kindle function; traffic light cycle of light, countdown 5 seconds left when the yellow light flashing warning (traffic lights signal output port through the PA, indicating time directly through the 8255's PC port to double-digit output of the digital control); vehicle ran a red light alarm; green time can detect vehicles flow can be through the double-digit digital display. The system practical, simple, powerful extensions.

Key words: SCM Traffic lights Red light Detection of traffic flow


目錄
摘要 I
Abstract I
第1章 緒論 1
第2章 單片機(jī)的概述 2
2.1 MSC-51芯片簡(jiǎn)介 2
2.2 8255芯片簡(jiǎn)介 6
2.3 74LS373簡(jiǎn)介 7
第3章 系統(tǒng)硬件設(shè)計(jì) 8
3.1交通管理的方案論證 8
3.2系統(tǒng)硬件設(shè)計(jì) 8
3.3 系統(tǒng)總框圖如下: 9
3.4 系統(tǒng)工作原理 9
第4 章 控制器的軟件設(shè)計(jì) 10
4.1每秒鐘的設(shè)定 10
4.2計(jì)數(shù)器硬件延時(shí) 10
4.2.1 計(jì)數(shù)器初值計(jì)算 10
4.2.2 計(jì)算公式 10
4.2.3 1秒的方法 11
4.2.4 相應(yīng)程序代碼 11
4.3 軟件延時(shí) 12
4.4 時(shí)間及信號(hào)燈的顯示 13
4.4.1 8051并行口的擴(kuò)展 13
4.4.2 顯示原理: 13
4.4.3 8255PA口輸出信號(hào)接信號(hào)燈: 13
4.4.4 8255輸出信號(hào)與數(shù)碼管的連接: 13
4.4.5 8255與8051的連接: 14
第5章 設(shè)計(jì)總結(jié) 15
參考文獻(xiàn) 16
致謝 17
附錄一 交通燈硬件設(shè)計(jì) 18
附錄二 程序流程圖 19
附錄三 程序源代碼 20

關(guān)鍵詞:?jiǎn)纹瑱C(jī) 交通燈 闖紅燈 檢測(cè)車流量
參考文獻(xiàn)

[1]呂能元,孫育才,楊峰. MCS-51單片微型計(jì)算機(jī)原理•接口技術(shù)•應(yīng)用實(shí)例.第一版. 北京科技出版社.1993年12月
[2]童本敏.標(biāo)準(zhǔn)集成電路數(shù)據(jù)手冊(cè)TTL集成電路.第一版. 北京 電子工業(yè)出版社.1989年5月
[3]黃賢武.傳感器實(shí)際應(yīng)用電路設(shè)計(jì). 成都電子科技大學(xué)出版社.1997年
[4]李廣軍 實(shí)用接口技術(shù) 電子科技大學(xué)出版社 1998.2