【正文】
X,string1 MOV AH,09H INT 21H LEA DX,string2 MOV AH,09H INT 21H LEA DX,string3 MOV AH,09H INT 21H LEA DX,string4 MOV AH,09H INT 21H LEA DX,STRINGSTART MOV AH,09H INT 21H LEA DX,string5 MOV AH,09H INT 21H KEY:MOV AH,01H INT 21H CMP AL,1 JNZ KEY MOV AH,0FH 。設(shè)置 8255為 C口輸出 mov dx,io8255a re_on: mov bx,0 on: mov al,portc1[bx] push ax push Bx push Cx push Dx test al , 42h jz cont sin: call sing cont: pop DX POP CX POP BX POP AX out dx,al cmp al,0ffh jz re_on out dx,al 。參數(shù)賦初值 test al,21h 。沒有 ,短延時 mov cx,2021 。di賦初值 9000 de0: dec di 。di不為 0 loop de1 push dx mov ah,06h mov dl,0ffh int 21h pop dx jz on 。返回 int 21h sing proc near mov al,31h sub al,31h shl al,1 。保存偏移到 bx mov bh,0 mov ax,4240H 。設(shè)置 8253計時器 0方式 3 mov al,00110110B out dx,al mov dx,io8253a mov ax,bx out dx,al 。寫計數(shù)初值高字節(jié) mov dx,io8255b 。置 PA1PA0 = 11(開揚聲器 ) call delay 。置 PA1PA0 = 00(關(guān)揚聲器 sing endp delay proc near 。測試結(jié)果與預(yù)期相同 ,東西、南北方向的紅、綠燈交錯亮滅。 測試圖示 圖 421 圖 422 交通燈界面菜單:按 1 后自動演示 圖 423 交通燈界面菜單:按任意鍵后退出 圖 424 按任意鍵后退 出后界面 性能分析 在本次設(shè)計中,使用了 8259A 中斷控制器、 8254 計數(shù)器、 8255 可編程并行接口實現(xiàn)了,對南北、東西方向交通的分別計時、分別控制,但是程序沒有實現(xiàn)對雙向交通的數(shù)碼顯示,數(shù)碼顯示模塊空缺,會盡快將程序補全,使其具有完整的交通燈功與其他設(shè)計相比。十字道口的交通紅綠燈控制是保證交通安全和道路暢通的關(guān)鍵。它們一般由“通行與禁止時間 控制顯示、紅黃綠三色信號燈和方向指示燈”三部分組成。交通燈的時間控制顯示,以固定時間值預(yù)先“固化”在單片機中,每次只是以一定周期交替變化。采用定時控制經(jīng)常造成道路有效應(yīng)用時間的浪費,出現(xiàn)綠燈方向車輛較少,紅燈方向車輛積壓。 目前,有一種使用“模糊控制”技術(shù)控制交通燈的方法。但是卻不像定時控制,能用數(shù)字顯示器顯示當前燈色剩余時間,以便于駕駛員隨時掌握自己的駕駛動作,及時停車或啟動。 第五部分 總結(jié)體會 此次實習可以說是獲益匪淺。在程序中添加了黃燈閃爍,更加醒目。在系統(tǒng)加電調(diào)試中,針對一些問題,熟練掌握了根據(jù)原理分步測試,將錯誤之處縮小的最小范圍內(nèi)。通過此次課程設(shè)計的鍛煉,自己的動手能力有了很大的提高,查找問題、解決問題的能力也有了相應(yīng)的進步。 。為以后從事軟件的設(shè)計開發(fā)打下了良好的基礎(chǔ)樹立獨立從事研發(fā)的信心,同時也培養(yǎng)了我認真的做事態(tài)度。 同時也增強了全面系統(tǒng)考慮問題的能力,以及硬件設(shè)計能力。這對以后的學(xué)習和工作具有重要的指導(dǎo)意義! 雖然花了很長時間編寫軟件程序設(shè)計,但這一切還是理論上的。通過這次程序,感覺自己所掌握的知識是那么的有限,還有許多需要改進和不足的地方,同時也幫助了我怎樣學(xué)好這門課程,增加了我對這門學(xué)科的興趣。 最后感謝老師這個 學(xué)期的指導(dǎo)和幫助! g an employment tribunal claim Employment tribunals sort out disagreements between employers and employees. You may need to make a claim to an employment tribunal if: ? you don39。t appealed against the disciplinary action your employer has taken against you. However, if you win your case, the tribunal may reduce any pensation awarded to you as a result of your failure to appeal. Remember that in most cases you must make an application to an employment tribunal within three months of the date when the event you are plaining about happened. If your application is received after this time limit, the tribunal will not usually accept it. If you are worried about how the time limits apply to you, take advice from one of the anisations listed under Further help. Employment tribunals are less formal than some other courts, but it is still a legal process and you will need to give evidence under an oath or affirmation. Most people find making a claim to an employment tribunal challenging. If you are thinking about making a claim to an employment tribunal, you should get help straight away from one of the anisations listed under Further help. If you are being represented by a solicitor at the tribunal, they may