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


內(nèi)容介紹
此文檔由會員 bfxqt 發(fā)布
28頁共計8621字
摘要
紅黃綠交通燈控制器采用單片機(jī)及程序存儲器的擴(kuò)展控制,實現(xiàn)控制器的功能要求,例如紅黃綠燈的交替閃爍,定時等等。單片機(jī)將CPU,存儲器,定時器/計數(shù)器及各接口電路組成,具有良好的性價比。本控制器可分時段進(jìn)行道路的管制,還可在緊急時刻進(jìn)行手動控制,實施道路路況的控制。
交通信號燈控制方式很多。本系統(tǒng)采用MSC-51系列單片機(jī)ATSC51和可編程并行I/O接口芯片8255A為中心器件來設(shè)計交通燈控制器,實現(xiàn)了能根據(jù)實際車流量通過8051芯片的P1口設(shè)置紅、綠燈燃亮?xí)r間的功能;紅綠燈循環(huán)點亮,倒計時剩5秒時黃燈閃爍警示(交通燈信號通過PA口輸出,顯示時間直接通過8255的PC口輸出至雙位數(shù)碼管);車輛闖紅燈報警;綠燈時間可檢測車流量并可通過雙位數(shù)碼管顯示。本系統(tǒng)實用性強(qiáng)、操作簡單、擴(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芯片簡介 2
2.2 8255芯片簡介 6
2.3 74LS373簡介 7
第3章 系統(tǒng)硬件設(shè)計 8
3.1交通管理的方案論證 8
3.2系統(tǒng)硬件設(shè)計 8
3.3 系統(tǒng)總框圖如下: 9
3.4 系統(tǒng)工作原理 9
第4 章 控制器的軟件設(shè)計 10
4.1每秒鐘的設(shè)定 10
4.2計數(shù)器硬件延時 10
4.2.1 計數(shù)器初值計算 10
4.2.2 計算公式 10
4.2.3 1秒的方法 11
4.2.4 相應(yīng)程序代碼 11
4.3 軟件延時 12
4.4 時間及信號燈的顯示 13
4.4.1 8051并行口的擴(kuò)展 13
4.4.2 顯示原理: 13
4.4.3 8255PA口輸出信號接信號燈: 13
4.4.4 8255輸出信號與數(shù)碼管的連接: 13
4.4.5 8255與8051的連接: 14
第5章 設(shè)計總結(jié) 15
參考文獻(xiàn) 16
致謝 17
附錄一 交通燈硬件設(shè)計 18
附錄二 程序流程圖 19
附錄三 程序源代碼 20
關(guān)鍵詞:單片機(jī) 交通燈 闖紅燈 檢測車流量
參考文獻(xiàn)
[1]呂能元,孫育才,楊峰. MCS-51單片微型計算機(jī)原理•接口技術(shù)•應(yīng)用實例.第一版. 北京科技出版社.1993年12月
[2]童本敏.標(biāo)準(zhǔn)集成電路數(shù)據(jù)手冊TTL集成電路.第一版. 北京 電子工業(yè)出版社.1989年5月
[3]黃賢武.傳感器實際應(yīng)用電路設(shè)計. 成都電子科技大學(xué)出版社.1997年
[4]李廣軍 實用接口技術(shù) 電子科技大學(xué)出版社 1998.2
摘要
紅黃綠交通燈控制器采用單片機(jī)及程序存儲器的擴(kuò)展控制,實現(xiàn)控制器的功能要求,例如紅黃綠燈的交替閃爍,定時等等。單片機(jī)將CPU,存儲器,定時器/計數(shù)器及各接口電路組成,具有良好的性價比。本控制器可分時段進(jìn)行道路的管制,還可在緊急時刻進(jìn)行手動控制,實施道路路況的控制。
交通信號燈控制方式很多。本系統(tǒng)采用MSC-51系列單片機(jī)ATSC51和可編程并行I/O接口芯片8255A為中心器件來設(shè)計交通燈控制器,實現(xiàn)了能根據(jù)實際車流量通過8051芯片的P1口設(shè)置紅、綠燈燃亮?xí)r間的功能;紅綠燈循環(huán)點亮,倒計時剩5秒時黃燈閃爍警示(交通燈信號通過PA口輸出,顯示時間直接通過8255的PC口輸出至雙位數(shù)碼管);車輛闖紅燈報警;綠燈時間可檢測車流量并可通過雙位數(shù)碼管顯示。本系統(tǒng)實用性強(qiáng)、操作簡單、擴(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芯片簡介 2
2.2 8255芯片簡介 6
2.3 74LS373簡介 7
第3章 系統(tǒng)硬件設(shè)計 8
3.1交通管理的方案論證 8
3.2系統(tǒng)硬件設(shè)計 8
3.3 系統(tǒng)總框圖如下: 9
3.4 系統(tǒng)工作原理 9
第4 章 控制器的軟件設(shè)計 10
4.1每秒鐘的設(shè)定 10
4.2計數(shù)器硬件延時 10
4.2.1 計數(shù)器初值計算 10
4.2.2 計算公式 10
4.2.3 1秒的方法 11
4.2.4 相應(yīng)程序代碼 11
4.3 軟件延時 12
4.4 時間及信號燈的顯示 13
4.4.1 8051并行口的擴(kuò)展 13
4.4.2 顯示原理: 13
4.4.3 8255PA口輸出信號接信號燈: 13
4.4.4 8255輸出信號與數(shù)碼管的連接: 13
4.4.5 8255與8051的連接: 14
第5章 設(shè)計總結(jié) 15
參考文獻(xiàn) 16
致謝 17
附錄一 交通燈硬件設(shè)計 18
附錄二 程序流程圖 19
附錄三 程序源代碼 20
關(guān)鍵詞:單片機(jī) 交通燈 闖紅燈 檢測車流量
參考文獻(xiàn)
[1]呂能元,孫育才,楊峰. MCS-51單片微型計算機(jī)原理•接口技術(shù)•應(yīng)用實例.第一版. 北京科技出版社.1993年12月
[2]童本敏.標(biāo)準(zhǔn)集成電路數(shù)據(jù)手冊TTL集成電路.第一版. 北京 電子工業(yè)出版社.1989年5月
[3]黃賢武.傳感器實際應(yīng)用電路設(shè)計. 成都電子科技大學(xué)出版社.1997年
[4]李廣軍 實用接口技術(shù) 電子科技大學(xué)出版社 1998.2