【正文】
語 ............................................................. 22 參考文獻 : ......................................................... 22 2 摘 要 隨著單片機快速的發(fā)展,目前單片機正處于日益完善階段。 ( 2) 、外接晶體引腳 XTAL1 和 XTAL2 XTAL1( 19 腳)接外部晶體的一個引腳。 對于 EPROM 單片機(如 8751),在 EPROM 編程期間,此引腳用于輸入編程脈沖( PROG)。在訪問外部存儲器時,它可以作為擴展電路高 8 位地址總線送出高 8 位地址。共陰極結(jié)構(gòu):把各段發(fā)光 二極管的陰極連接在一起構(gòu)成公共陰極,如圖 a 所示。 當(dāng)單片機應(yīng)用系統(tǒng)中的 LED 顯示器位數(shù)較多時,為了簡化電路降低成本,本設(shè)計采用動態(tài)顯示的方式。 K2 撥至下面(低電平),應(yīng)有聲音報警(人為設(shè)置故障)。更具工序功能不同,每個燈亮的時間不同,代表每道工 序需要的時間,若中途關(guān)閉開關(guān),而工序未完成一遍,則直到工序完成一遍才停止,保證產(chǎn)品的完整。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 i. 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 ask you to sign an agreement where you pay their fee out of your pensation if you win the case. This is known as a damagesbased agreement. In England and Wales, your solicitor can39。 Junior high school, thought to have a crush on just means that the real growth, but over the past three years later, his writing of alumni in peace, suddenly found that isn39。t start planning... Those years, those days of do, finally, like youth, will end in our life. 此刻,天空是陰暗的,空氣里有著剛下過雨之后的清新因子。 25 At the moment, the sky is dark, the air is fresh factor after just rained. Suddenly thought of blue plaid shirt?;蛟S是愧疚于自己似乎把轉(zhuǎn)瞬即逝的很多個不同的日子過成了同一天的樣子;或許是追溯過去 ,對自己那些近乎偏執(zhí)的怪異信念的醒悟,這些天以來,思緒一直很凌亂,在腦海中不斷糾纏。使我在單片機的基本原理、單片機應(yīng)用系統(tǒng)開發(fā)過程,以及在常用編程設(shè)計思路技巧(特別是匯編語言)的掌握方面都能向前邁了一大步。 本程序中, SW SW2 在開始都置一。 ① 、 H=高電平 ② 、 L=低電平 ③ 、 Z=高阻 ④ 、 G= 0 的時候,輸入- 輸出 ⑤ 、 G= 1 的時候,輸出為高阻 2 A 11 Y 42 A 21 Y 32 A 31 Y 22 A 41 Y 11 G2 GV c c1 A 1 2 Y 4 1 A 2 2 Y 3 1 A 3 2 Y 2 1 A 4 2 Y 1 G N D1 11 21 31 41 51 61 71 81 92 09 1 087654321 圖 7 74LS244 管腳圖 12 顯示系統(tǒng)硬件設(shè)計 圖 8 顯示系統(tǒng)電路圖 13 系統(tǒng)軟件程序的設(shè)計 實驗流程圖 主程序流程圖如圖 9 所示 : 開始顯示緩沖單元置初值中斷、P2口、P3口、定時器初始化P2口全低工序、時間、計時單元置零開始計數(shù)顯示單元地址送R0,位控碼初值送R2取顯示單元值,并轉(zhuǎn)為段碼送段數(shù)據(jù)口位控碼送位數(shù)據(jù)口顯示單元地址加1位控碼循環(huán)右移一輪掃描完?取工序、時間計數(shù)值,經(jīng)變換放入相應(yīng)顯示單元 NY 圖 9 主程序流程圖 14 中斷服務(wù)子程序流程圖如圖 10 所示: 中 斷 入 口中 斷 入 口定 時 器 置 初 值定 時 器 置 初 值計 時 單 元 加 1計 時 單 元 加 1計 時 單 元 = 2 0 ?計 時 單 元 = 2 0 ?計 時 單 元 清 零計 時 單 元 清 零時 間 單 元 加 1 , 十 進 制調(diào) 整時 間 單 元 加 1 , 十 進 制調(diào) 整時 間 = 工 序 ?時 間 = 工 序 ?時 間 置 零 , 工 序 加 1 , 十 進制 調(diào) 整時 間 置 零 , 工 序 加 1 , 十 進制 調(diào) 整工 序 = 7 ?工 序 = 7 ?工 序 置 零工 序 置 零R E T IR E T I關(guān) 輸 出關(guān) 輸 出保 護 現(xiàn) 場保 護 現(xiàn) 場報 警報 警故 障 清 除 了 嗎 ?故 障 清 除 了 嗎 ?恢 復(fù) 現(xiàn) 場恢 復(fù) 現(xiàn) 場返 回返 回 圖 10 中斷服務(wù)子程序流程圖 實驗源程序 CNT EQU 23H SBF EQU 22H MBF EQU 21H PORT1 EQU 0000H PORT2 EQU 0800H ORG 0000H 15 LJMP MAIN ORG 001BH LJMP CLOCK ORG 002BH LJMP HA2S3 ORG 0200H MAIN: MOV P1,01H ORL P3,00H JNB ,MAIN ORL IE,84H ORL IP,04H MOV PSW,00H MOV SP,53H MOV R0,40H MOV A,00H MOV R0,A INC R0 MOV A,0AH MOV R0,A INC R0 MOV A,00H MOV R0,A INC R0 MOV R0,A ANL TMOD,0FH ORL TMOD,10H MOV TL1,0B0H MOV TH1,3CH 16 MOV CNT,00H MOV SBF,00H MOV MBF,01H SETB ET1 SETB EA SETB TR1 DS1: MOV R0,40H MOV R2,0FBH DS2: MOV DPTR,PORT1 MOV A,R0 LCALL TABLE MOVX DPTR,A MOV DPTR,PORT2 MOV A,R2 MOVX DPTR,A MOV R3,0FFH DJNZ R3,$ INC R0 MOV A,R2 JNB ,JP RR A MOV R2,A SJMP DS2 JP: MOV R0,42H MOV A,SBF ANL A,0