畢業(yè)設計 基于mcs-51單片機帶密碼鎖可調時交通燈的設計.doc
畢業(yè)設計 基于mcs-51單片機帶密碼鎖可調時交通燈的設計,畢業(yè)設計 基于mcs-51單片機帶密碼鎖可調時交通燈的設計目 錄摘要1引 言3第一章 mcs-51系列單片機簡介11.1 單片機簡介11.2 單片機的優(yōu)點11.3 mcs-51單片機的內部組成31.4 mcs-51單片機的引腳功能4第二章 硬件電路的設計72.1 系統(tǒng)的總體設計方案72.2顯示器及接口72.2驅動電路9...
內容介紹
此文檔由會員 bfxqt 發(fā)布畢業(yè)設計 基于MCS-51單片機帶密碼鎖可調時交通燈的設計
目 錄
摘要 1
引 言 3
第一章 MCS-51系列單片機簡介 1
1.1 單片機簡介 1
1.2 單片機的優(yōu)點 1
1.3 MCS-51單片機的內部組成 3
1.4 MCS-51單片機的引腳功能 4
第二章 硬件電路的設計 7
2.1 系統(tǒng)的總體設計方案 7
2.2顯示器及接口 7
2.2驅動電路 9
2.3非易失性存儲器特點介紹 11
2.4 時鐘電路 12
2.5按鍵電路 13
第三章 中斷簡介 13
3.1中斷的概念 13
3.2中斷控制 14
3.3中斷響應 15
3.4 中斷返回 15
第四章 軟件設計 16
4.1設計說明 16
4.2設計思想 16
4.3流程圖 17
結 論 20
致 謝 21
附錄A 22
附圖B 31
參考文獻 32
基于MCS-51單片機帶密碼鎖可調時交通燈的設計
摘要; 隨著市場經濟的飛速發(fā)展,人們生活水平的不斷提高,人口數量和城市公交車的增多,以及私家車的出現,這使日益發(fā)展的城市變的更擁擠,交通的便利便成了首要解決的問題。為營造一個團結,和諧的社會,在現在高頻率,快節(jié)奏的社會中保障交通的四通八達,已成為一個不可忽視的問題。
使用交通燈,便可使交通得以有效管制,對于疏導交通流量、提高道路通行能力,減少交通事故有明顯效果。所以我們考慮設計一個交通燈控制系統(tǒng)。經過考慮與分析,并結合城鄉(xiāng)交通的實際情況,我們根據附近的交通燈,做出了一種簡單實用的城市交通燈控制系統(tǒng)的設計方案。
考慮到主干道和支干道人流量的不同,我們想到了調時,即主干道和支干道的左走和直走紅綠燈可以調。而且交通燈是我們生命安全的一個不可忽視的保障,所以我們加上密碼鎖是很必要的;再者由于單片機芯片的驅動能力有限,所以就要加上驅動電路部分;接著我們要設計出交通燈的硬件電路圖;最后就可根據硬件電路圖編程了。根據設計要求可實現交通燈的加密、調時,能符合人流量的可變性和隨機性。
關鍵詞: 單片機;中斷;顯示;E²PROM
The design for a adjustable traffic light of coded lock base on MCS-51 MCU
Abstract; With the rapid development of market economy, it is the continuous improvement of living standards, population size and the number of city buses, as well as the emergence of private cars, which makes the growing city has become more crowded, the traffic has become the primary solution to facilitate the problem. In order to create a united, harmonious society, in the now high-frequency, fast-paced society, the protection of traffic extending in all directions, has become a problem that can not be ignored.
The use of traffic lights, will be able to effectively control traffic, for ease traffic flow, improve the road capacity, the effect of significantly reducing traffic accidents. Therefore, we consider the design of a traffic light control system. After consideration and analysis, combined with the actual situation of urban and rural transportation, according to the traffic lights, make a simple and practical urban traffic lights control system design.
First of all, taking into account the main road and branch roads in different traffic, when we think of the tune, that is a main road and branch roads go the left and straight ahead traffic lights can be adjusted. And traffic lights is one of our safety protection can not be ignored, so we add locks it is necessary; Moreover chips as a result of single-chip drive capability is limited, so we should add some drive circuit; then we have to design a traffic light circuit diagram of the hardware; final circuit can be programmed in accordance with the hardware. following on the MCS-51 single-chip chipset model and the traffic lights were introduced in more detail. can be achieved in accordance with design requirements of the encryption of traffic lights, when adjusted to meet the flow of people and random variability.
Key words: microcontroller; interrupt; display; E²PROM