【正文】
CJNE A, 60H, ADDMM 。小于 60s 時(shí)中斷退出 ACALL CLR0 。指向分計(jì)時(shí)單元( 76H77H) ACALL ADD1 。分?jǐn)?shù)據(jù)放入 A CLR C 。 ADDHH: JC OUTT0 。大于或等于 60min 時(shí)分計(jì)時(shí)單元清 0 MOV R0,79H 。小時(shí)計(jì)時(shí)單元加 1h MOV A,R3 。清進(jìn)位標(biāo)志 CJNE A,24H,HOUR 。小于 24h 小時(shí)計(jì)時(shí)單元清 0 ACALL CLR0 。中斷退出時(shí)將分、時(shí)計(jì)時(shí)單元數(shù)據(jù)移入對(duì)應(yīng)顯示單元 MOV 73H,77H 。 MOV 75H,79H ?;謴?fù)狀態(tài)字 ( 出棧 ) POP ACC 。開放 T0 中斷 RETI 。***************************************** 華東交通大學(xué)理工學(xué)院課程設(shè)計(jì)報(bào)告 第 頁 共 32 頁 26 。 。T1 中斷服務(wù)程序,用作時(shí)間調(diào)整時(shí)調(diào)整單元閃爍指示 INTT1: PUSH ACC 。 MOV TL1, 0B0H 。 DJNZ R2,INTT1OUT 。重裝 定時(shí)用初值 CPL 02H 。02H 位為 1 時(shí)顯示單元 “ 熄滅 ” MOV 72H,76H 。 MOV 74H,78H 。 INTT1OUT: POP PSW 。 RETI 。01H 位為 1 時(shí),轉(zhuǎn)小時(shí)熄滅控制 MOV 72H,7AH 。顯示單元( 72H73H),將不顯示分?jǐn)?shù)據(jù) MOV 74H,78H 。 AJMP INTT1OUT 。01H 位為 1 時(shí) , “ 熄滅符 ” 數(shù)據(jù)放入小時(shí) MOV 73H,77H 。 MOV 75H,7AH 。轉(zhuǎn)中斷退出 。 加子程序 。***************************************** ADD1: MOV A,R0 。指向前一地址 SWAP A 。前一地址中數(shù)據(jù)放入 A 中低 4 位 ADD A,01H 。十進(jìn)制調(diào)整 MOV R3,A 。高 4 位變 0 MOV R0,A 。取回 R3 中暫存數(shù)據(jù) INC R0 。A 中數(shù)據(jù)高 4 位與低 4 位交換 ANL A,0FH 。數(shù)據(jù)放入當(dāng)前地址單元中 RET 。***************************************** 。 。對(duì)計(jì)時(shí)單元復(fù)零用 CLR0: CLR A 。清當(dāng)前地址單元 DEC R0 。前一地址單元清 0 RET 。***************************************** 。 。當(dāng)調(diào)時(shí)按鍵按下時(shí)進(jìn)入此程序 SETMM: CLR ET0 。關(guān)閉定時(shí)器 T0 LCALL DL1S 。鍵按下時(shí)間小于 1s,關(guān)閉顯示(省電) MOV R2,06H 。允許 T1 中斷 SETB TR1 。 口為 0(鍵未釋放),等待 SETB 00H 。等待鍵按下 LCALL DL05S 。按下時(shí)間大于 轉(zhuǎn)調(diào)小時(shí)狀態(tài) MOV R0,77H 。調(diào)用加 1 子程序 MOV A,R3 。清進(jìn)位標(biāo)志 CJNE A,60H,HHH 。調(diào)整單元數(shù)據(jù)小于 60 轉(zhuǎn) SET4 循環(huán) LCALL CLR0 。清進(jìn)位標(biāo)志 AJMP SET4 。省電 (LED 不顯示 )狀態(tài),開 T0 中斷 SETB TR0 。無按鍵按下,等待 LCALL DISPLAY 。是干擾返回 CLOSE 等待 WAITH: JNB ,WAITH 。返回主程序( LED 數(shù)據(jù)顯示亮) SETHH: CLR 00H 。等待鍵釋放 SETB 01H 。等待按鍵按下 LCALL DL05S 。按下時(shí)間大于 退出時(shí)間調(diào)整 MOV R0,79H 。調(diào)加 1 子程序 MOV A,R3 。 CJNE A,24H,HOUU 。小于 24 轉(zhuǎn) SET6 循環(huán) LCALL CLR0 。跳轉(zhuǎn)到 SET6 循環(huán) SETOUT: JNB ,SETOUT1 。延時(shí)消抖 JNB ,SETOUT 。清調(diào)小時(shí)標(biāo)志 CLR 00H 。清閃爍標(biāo)志 CLR TR1 。關(guān)定時(shí)器 T1 中斷 SETB TR0 。開定時(shí)器 T0 中斷(計(jì)時(shí)開始) LJMP START1 。鍵釋放等待時(shí)調(diào)用顯示程序(調(diào)分) AJMP SET2 。等待調(diào)分按鍵時(shí)時(shí)鐘顯示用 AJMP SET4 。鍵釋放等待時(shí)調(diào)用顯示程序(調(diào)小時(shí)) AJMP SETHH1 。等待調(diào)小時(shí)按鍵時(shí)時(shí)鐘顯示用 AJMP SET6 。退出時(shí)鐘調(diào)整時(shí)鍵釋放等待 AJMP SETOUT 。FUNSUB,分減程序 ? 。 顯示程序 。***************************************** 。P3 口作掃描控制,每個(gè) LED 數(shù)碼管亮 MS 時(shí)間再逐位循環(huán)。指向顯示數(shù)據(jù)首地址 MOV R5,0FEH 。掃描字放入 A MOV P3,A 。取顯示數(shù)據(jù)到 A MOV DPTR,TAB 。查顯示數(shù)據(jù)對(duì)應(yīng)段碼 MOV P1,A 。顯示 1ms INC R1 。掃描控制字放入 A JNB ,ENDOUT 。A 中數(shù)據(jù)循環(huán)左移 MOV R5,A 。跳到 PLAY 循環(huán) ENDOUT: SETB 。P1 口復(fù)位 RET 。共陽段碼表示 “”“”“”“”“”“”“”“”“”“”“ 不亮 ” 。 延時(shí)程序 。***************************************** 。20MS 延時(shí)程序,采用調(diào)用顯示子程序以改善 LED 的顯示 閃爍現(xiàn)象 DS20MS: ACALL DISPLAY ACALL DISPLAY ACALL DISPLAY RET 。8ms*32= DL05S1: LCALL DISPLAY DJNZ R3, DL05S1 RET END g an employment tribunal clai 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 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. 華東交通大學(xué)理工學(xué)院課程設(shè)計(jì)報(bào)告 第 頁 共 32 頁 30 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。re clear about the terms of the agreement. It might be best to get advice from an experienced adviser, for example, at a Citizens Advice Bureau. To find your nearest CAB, including those that