【正文】
SETB ER ;啟動T 1 計數(shù)器 CLR FLAG1 CLR FLAG2 CLR FLAG3 畢業(yè)論文 17 MOV R3, 20H ;軟件計數(shù)器賦初值 (2)相應(yīng)中斷服務(wù)子程序 ORG 001BH LJMP DSD ORG 0030H DSD: INC R3 MOV TH0, 3CH ;重裝入定時器初值 畢業(yè)論文 18 MOV TL0, BOH CJNE R3, 20, FH DEC R0 DEC R1 MOV R3, 00H FH: RETI 1. 程序的軟件延時: 畢業(yè)論文 19 AT89S51 的工作頻率為 0— 33MHZ,我們選用的 AT89S51 單片機(jī)的工作頻率為12MHZ。 系統(tǒng)不足:時間設(shè)定中沒有黃燈的等待閃爍時間,以及自動根據(jù)車流改變紅綠燈時間,此外,還沒有 充分考慮的把現(xiàn)代管理、人工智能運用到交通的控制中,來計算交通控制點之間的距離,來更合理的安排紅、綠燈的持續(xù)時間,使城市的交通管理更加人性化。并通過 AT89S51來控制 74LS04芯片的輸出口設(shè)置紅、綠燈燃亮的功能和控制74HC164來實現(xiàn)在七段數(shù)碼管上的時間顯示;為了系統(tǒng)穩(wěn)定可靠系統(tǒng)內(nèi)集成了“看門狗”芯片,避免了系統(tǒng)因為死機(jī)而停止工作的情況發(fā)生。為 0表示1秒已到可以返回到輸出時間顯示程序。由于 TXD端最多可以驅(qū)動 8個 TTL門。器件執(zhí)行任何一條將 SBUF 作為目的寄存器的命令時,數(shù)據(jù)便開始從 RXD 端發(fā)送。用于實現(xiàn)系統(tǒng)的總的控制。 ( 2) 由 AT89S51 單片機(jī)的定時器每秒鐘通過 口向 74HC164 的數(shù)據(jù)端口送信息,由 74HC164 的輸出口顯示紅、綠、黃燈的燃亮?xí)r間情況;由 AT89S51 的 、 、 、 口顯示每個燈的燃亮情況。 目前單片機(jī)滲透到我們生活的各個領(lǐng)域,幾乎很難找到哪個領(lǐng)域沒有單片機(jī)的蹤跡。 2 首先將許多邏輯關(guān)系簡化到極點,而后將其一起集成用較少的芯片去完成所需功能。 而紅綠燈的顯示 也是一樣,由狀態(tài)分析可以得出紅綠燈的變化表: 畢業(yè)論文 5 表 2 紅綠燈的變化表 通過這張表就可以用組合電路實現(xiàn)該功能了,可以用數(shù)據(jù)選擇器的思想,在本系統(tǒng)中,直接通過門電路的譯碼,接下來就是計數(shù)模塊了,其主要的功能細(xì)分為,要從預(yù)置數(shù)開始遞減計數(shù),一個狀態(tài)結(jié)束,通過判斷,通知主控制模塊,使之進(jìn)入下一模塊。使交管人員有更多的精力投入到管理整個城市交通控制,帶來更大的經(jīng)濟(jì)和社會效益 ,為創(chuàng)造美好的城市交通形象發(fā)揮更多的作用 畢業(yè)論文 3 第 2 章交通管理方案論證 設(shè)計任務(wù)東西 ( A)、南北( B)兩干道交于一個十字路口,各干道有一組紅、左轉(zhuǎn)綠、綠三個指示燈,指揮車輛和行人安全通行。這種紅綠燈由紅綠黃三色圓形的投光器組成,安裝在紐約市 5 號大街的一 座高塔上。 關(guān)鍵詞 單片機(jī),交通燈,車流量 畢業(yè)論文 II Abstract With the rapid development of science and technology in recent years, SCM applications are deepening at the same time promote the growing of traditional control detection technology updates. In realtime detection and automatic control of the microputer application system, the microcontroller is often used as a core ponent, only the microcontroller is not enough knowledge, but also based on specific hardware structure of hardware and software bination to be improved. Crossroads shuttle vehicles, pedestrians bustling, car dealers driveway, people walkways, methodical. Then rely on to achieve this discipline of the order of it? Is the traffic lights by the automatic control system. Traffic signal control many ways. The system uses this design uses a 74190 chip countdown control in each direction, connected with the two realized, also used the 74153 chip, because the time set Bottom of the analysis are five, so as long as 74,153 pairs of high position with a bit of the low initial prelocked to 5, while the high is provided as needed by the feedback par