【正文】
的第 1 章 單片機(jī)的發(fā)展及應(yīng)用3應(yīng)用正在不斷地走向深入。武器裝備:在現(xiàn)代化的武器裝備中, 如飛機(jī)、軍艦、坦克、導(dǎo)單、魚雷制導(dǎo)、智能武器設(shè)備、航天飛機(jī)導(dǎo)航系統(tǒng),都有單片機(jī)在其中發(fā)揮重要作用。在這些設(shè)備中使用了單片機(jī)后,其功能和性能大大提高,并實(shí)現(xiàn)了智能化、最優(yōu)化控制信方面:較高檔的單片機(jī)都具有通信接口,因而為單片機(jī)在通信設(shè)備中的應(yīng)用創(chuàng)造了很好的條件。目前家電產(chǎn)品的一個(gè)重要發(fā)展趨勢(shì)是不斷提高其智能化程度。單片機(jī)的使用有助于提高儀器儀表的精度和準(zhǔn)確度,簡化結(jié)構(gòu),減小體積,易于攜帶和使用,加速儀器儀表向數(shù)字化、智能化和多功能化方向發(fā)展。儀器儀表:目前對(duì)儀器儀表的自動(dòng)化和智能化要求越來越高。工業(yè)自動(dòng)化:在自動(dòng)化技術(shù)中,無論是過程控制技術(shù)、數(shù)據(jù)采集技術(shù)還是測(cè)控技術(shù),都離不開單片機(jī)。 目前國際市場(chǎng)上 8位、16 位單片機(jī)系列已有很多,但是,在國內(nèi)使用較多的系列是 Intel公司的產(chǎn)品,其中又以 MCS51系列單片機(jī)應(yīng)用尤為廣泛,二十幾年經(jīng)久不衰,而且還在更進(jìn)一步發(fā)展完善,價(jià)格越來越低,性能越來越好。而 8位單片機(jī)已能滿足大部分應(yīng)用的需要,因此,在推出 16位單片機(jī)的同時(shí),高性能的新型 8位單片機(jī)也不斷問世。1987年 Intel公司又宣布了性能比 8096高兩倍的 CMOS型 80C196,1988 年推出帶 EPROM的 87C196單片機(jī)。這類單片機(jī)均帶有串行 I/O口,定時(shí)器/計(jì)數(shù)器為 16位,片內(nèi)存儲(chǔ)容量(RAM,ROM)都相應(yīng)增大,并有優(yōu)先級(jí)中斷處理功能,單片機(jī)的功能、尋址范圍都比早期的擴(kuò)大了,它們是當(dāng)時(shí)單片機(jī)應(yīng)用的主流產(chǎn)品。1978年下半年 Motorola公司推出 M6800系列單片機(jī),Zilog 公司相繼推出 Z8單片機(jī)系列。自 1976年 9月 Intel公司推出 MCS48單片機(jī)以來,有關(guān)公司都爭(zhēng)相推出各自的單片機(jī)。 單片機(jī)經(jīng)過 3 代的發(fā)展,目前單片機(jī)正朝著高性能和多品種方向發(fā)展,它們的 CPU功能在增強(qiáng),內(nèi)部資源在增多,引角的多功能化,以及低電壓底功耗。通常,單片機(jī)由單塊集成電路芯片構(gòu)成,內(nèi)部包含有計(jì)算機(jī)的基本功能部件:中央處理器、存儲(chǔ)器和 I/O接口電路等。關(guān)鍵詞:單片機(jī),交通燈,位碼,段碼,顯示 IIAbstractIn recent years, with the rapid development of science and technology, the application of SCM is continuously to further, traditional control test rapidly updated. In realtime detection and automatic control of singlechip microputer application system, is often used as a core ponent, knowledge is not only the MCU, still should according to specific hardware structure, and the view of the specific application software, the object characteristics. Pedestrian crossing transports, bustling, garage, pedestrian humanitarian, orderly driveway. So what to realize it in order? By traffic lights automatic mand system.This design based on singlechip lights, using the simulation ponent 74LS244 as break code 74LS07 drive, as a driver, seven fault code LED digital display, as the clock with light emitting diode traffic, with instructions for emergency buttons, make two direction is red light green, red light passes through, stop.This design using the timer to work on time, in certain ways timer, software 50ms counter, call to interrupt the timer, achieve timing and 1S regularly, at the same time, show that program calls to the timing of time, Intel89S51 MCU as core ponents 74ls244 bus driver, 8 drive chip and six figure as a way 74ls07 driving device to choose yards as center, realize the controller design traffic lights, control of time 89S51 directly through the mouth, P1 P0 output, Traffic signal output by P3 mouth, According to the thing through the mouth input, mp3 traffic system is simple, practical, low cost, convenient operation and maintenance, software function, stable and reliable running etc.Keywords: SCM, traffic, a code segment code, display,目 錄摘 要 ....................................................................IABSTRACT ...................................................................II第一章 單片機(jī)的發(fā)展及應(yīng)用 ...................................................1 單片機(jī)的發(fā)展 ...........................................................1 單片機(jī)的應(yīng)用 ...........................................................2第二章 總體方案設(shè)計(jì) .........................................................3 ...............................................................3 計(jì)時(shí)控制方案 ...........................................................3 顯示控制方案 ...........................................................3 鍵盤控制方案 ...........................................................4第三章 硬件設(shè)計(jì) .............................................................5 89S51單片機(jī)的簡介 .....................................................5 89S51單片機(jī)的引腳 .....................................................6 89S51單片機(jī)復(fù)位方式 ...................................................7 74LS244的功能 .........................................................8 74LS07的功能 ..........................................................9 鍵盤接口工作原理 .......................................................9 按鍵開關(guān)的去除抖動(dòng)功能 ............................................10 獨(dú)立式鍵盤的接口電路 ..............................................10 七段 LED顯示工作原理 ..................................................11 電路原理 ..............................................................13第四章 軟件設(shè)計(jì) ............................................................15 定時(shí)1秒的方法 ........................................................15 定時(shí)器初值計(jì)算 ........................................................15 主程序模塊 ............................................................16 中斷服務(wù)程序模塊 ......................................................17 顯示程序模塊 ..........................................................18第五章 系統(tǒng)調(diào)試 ............................................................20結(jié) 論 ......................................................................21致 謝 ...................................................................22參考文獻(xiàn) ...................................................................23專業(yè)文獻(xiàn)譯文 ...............................................................24專業(yè)文獻(xiàn)原文 ...............................................................30附 錄 A....................................................................39第 1 章 單片機(jī)的發(fā)展及應(yīng)用1第一章 單片機(jī)的發(fā)展及應(yīng)用 單片機(jī)的發(fā)展單片微型計(jì)算機(jī)是微型計(jì)算機(jī)的一個(gè)重要分支,也是一種非?;钴S和頗具有生命力的機(jī)種。本設(shè)計(jì)以單片機(jī)為核心部件的模擬交通燈,利用 74LS244作為斷碼驅(qū)動(dòng)器,74LS07作為位碼驅(qū)動(dòng),LED 七斷數(shù)碼管作為計(jì)時(shí)顯示用,用發(fā)光二極管指示交通的通行,用按鍵進(jìn)行緊急事件的發(fā)生,使兩個(gè)方向都亮紅燈,綠燈亮通行,紅燈亮停止通行。十字路口車輛穿梭,行人熙攘,車行車道,人行人道,有條不紊。 編寫設(shè)計(jì)說明書(不少于 萬字,有英文摘要) ; (三)主要參考資料 單片機(jī)應(yīng)用技術(shù)與實(shí)例,隹丙東等,電子工業(yè)出版社 .2022.1 單片機(jī)應(yīng)用系統(tǒng)設(shè)計(jì),韓志軍等,機(jī)械工業(yè)出版社 數(shù)字化測(cè)量技術(shù)與應(yīng)用,沙占友,機(jī)械工業(yè)出版社 單片微型機(jī)原理及應(yīng)用,徐淑華等,哈爾濱工業(yè)大學(xué)出版社 單片微型計(jì)算機(jī)原理及應(yīng)用,胡乾斌等,華中科技出版社 MCS51 及兼容單片機(jī)原理與選型,王曉君等,電子工業(yè)出版社 教研室負(fù)責(zé)人 黃崇林 指導(dǎo)教師