智能家居遠(yuǎn)程控制系統(tǒng)源程序樣本_第1頁(yè)
智能家居遠(yuǎn)程控制系統(tǒng)源程序樣本_第2頁(yè)
智能家居遠(yuǎn)程控制系統(tǒng)源程序樣本_第3頁(yè)
智能家居遠(yuǎn)程控制系統(tǒng)源程序樣本_第4頁(yè)
智能家居遠(yuǎn)程控制系統(tǒng)源程序樣本_第5頁(yè)
已閱讀5頁(yè),還剩76頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

智能家居遠(yuǎn)程控制系統(tǒng)劉慶宇

;*****************************************************;Filename:BSHB_1_0_2.ASM ;MCU:AT89S52OSC:6.0000MHz;IC:MT8870ISD4002LM38674LS04ULN280324C02;Display:LED*4;Buildby:LiuQingYu ;Vision:V1.0.2;Date:-06-13 ;********************************************************;功能: 運(yùn)用電話線路,遠(yuǎn)程控制4組繼電器通斷,控制電飯煲、電; 暖風(fēng)等家用電器??梢栽O(shè)定延時(shí)通斷?;謴?fù)出廠設(shè)立時(shí)按住設(shè); 置按鍵按復(fù)位鍵即可恢復(fù)默認(rèn)密碼123456; 默認(rèn)開(kāi)關(guān)狀態(tài)為:關(guān),延時(shí)為:無(wú);;如需變化等待振鈴次數(shù),請(qǐng)搜索“振鈴檢測(cè)程序”并進(jìn)行修改。;;;寄存器組使用:; 00:主程序; 01:顯示子程序;******************************************;輸入輸出引腳定義;******************************************;MT8870:數(shù)據(jù)P0.0~P0.3MT_IN EQUP1;STD____INT0;ISD4002:;ISDINT____INT1 MOSI BITP0.4SS BITP0.5SCLK BITP0.6;HD7279:DATBITP2.4CSBITP3.5CLKBITP3.6;24C02:SCLBITP1.6SDABITP1.7;繼電器(摘機(jī)電路):JDQK BITP1.4;低電平有效;繼電器1(控制高壓)JDQ0_DFB BITP0.0;電飯煲JDQ1_DNF BITP0.1;電暖風(fēng)JDQ2_KT BITP0.2;空調(diào)JDQ3_RSH BITP0.3;電熱水器;延時(shí)批示燈:(低電平有效)LED0 BITP2.0LED1 BITP2.1LED2 BITP2.2LED3 BITP2.3;振鈴檢測(cè)ZHENLJC BITP1.5HUIFU BIT P0.7 ;恢復(fù)出廠設(shè)立按鍵,默認(rèn)密碼123456,默認(rèn)開(kāi)關(guān)狀態(tài)為:關(guān),延時(shí)為:無(wú) ;0=恢復(fù)出廠設(shè)立 1=不恢復(fù) ;使用時(shí)按住此按鍵按復(fù)位鍵即可;******************************************;變量定義;******************************************;工作狀態(tài)寄存(00-07)GZZHT EQU20HYSH0_KG BIT00H ;延時(shí)狀態(tài),1=啟動(dòng)0=關(guān)閉YSH1_KG BIT01HYSH2_KG BIT02HYSH3_KG BIT03HMIMA BIT04H ;GZZHT.1密碼狀態(tài),與否已經(jīng)輸入錯(cuò)誤一次1=是0=否STD BIT05H;有新數(shù)據(jù)輸入 1=有 0=無(wú)XINMIMA BIT06H ;新密碼校驗(yàn)位,校驗(yàn)兩次輸入密碼與否一致 1=不一致0=一致ZHL6C BIT07H ;振鈴次數(shù)已夠,可以摘機(jī) 1=可以0=不可以;工作狀態(tài)寄存2(08-0F)GZZHT2 EQU21H ;位尋址寄存21H;NOINPUT BIT08H ;10秒沒(méi)有新數(shù)據(jù)輸入,自動(dòng)掛機(jī)。1=可以掛機(jī)0=不可以IS15S BIT09H ;DEC_ON BIT0AH ;與否顯示小數(shù)點(diǎn):1=顯示0=不顯示ISDINT BIT0BH ;4002中斷置位標(biāo)志OUT_PLAY BIT0CH ;從播放進(jìn)程中終結(jié)標(biāo)志 1=跳過(guò)背面語(yǔ)音提示;JDQ0_YSH BIT0AH ;繼電器延時(shí)狀態(tài)1=開(kāi)0=關(guān);JDQ1_YSH BIT0BH;JDQ2_YSH BIT0CH;JDQ3_YSH BIT0DH;YANSHI BIT05H;GZZHT.2延時(shí) 1=啟動(dòng)0=關(guān)閉;YANSHIKG BIT06H;GZZHT.3延時(shí)狀態(tài)1=延時(shí)開(kāi)0=延時(shí)關(guān);YSH_OK BIT0BH ;延時(shí)數(shù)據(jù)已準(zhǔn)備好,可以寫(xiě)入1=可以0=不可以M1 EQU22H ;密碼寄存(1---6)M2 EQU23HM3 EQU24HM4 EQU25HM5 EQU26HM6 EQU27HDINGSHI EQU28H ;定期時(shí)間暫時(shí)存儲(chǔ)DATA_IN EQU29H ;HD7279輸入輸出緩存DATA_OUT EQU2AHPLAY_ADD EQU2BHBAK_A_T1 EQU2CHYSH0_TM EQU30H;延時(shí)時(shí)間寄存YSH1_TM EQU31HYSH2_TM EQU32HYSH3_TM EQU33HOUT_BW EQU34H ;延時(shí)數(shù)據(jù)輸出暫時(shí)存儲(chǔ)(用于顯示)OUT_SHW EQU35HOUT_GW EQU36HMIMAJSH EQU37H ;【密碼計(jì)數(shù)】對(duì)輸入密碼個(gè)數(shù)進(jìn)行計(jì)數(shù) ;ZHENLING EQU31H ;【振鈴計(jì)數(shù)】對(duì)振鈴次數(shù)進(jìn)行計(jì)數(shù);TIMEMOOD EQU29H;定期器模式:03=關(guān),80=4096Hz,81=64Hz,82=1Hz,83=1/60HzMTEMP EQU38H ;記錄密碼輸入錯(cuò)誤次數(shù)TEMP EQU39H;第一次輸入新密碼暫時(shí)存儲(chǔ)(3AH~3FH)MT1 EQU3FHT0_TMP EQU40H ;T0暫時(shí)存儲(chǔ),每隔0.0005秒加1T0_TMP_S EQU41H ;T0暫時(shí)存儲(chǔ),每隔0.1S減1T0_TMP_M EQU42H ;T0暫時(shí)存儲(chǔ),每隔0.5S減1BAK_A EQU43H ;中斷期間A備份BAK_R1 EQU44H;BAK_RS1 EQU45HBAK_RS0 EQU46HBAK_A_SOUND EQU47HBAK_DPH EQU48HBAK_DPL EQU49H;延時(shí)數(shù)據(jù)暫時(shí)存儲(chǔ)YSH_BW EQU4AHYSH_SHW EQU4BHYSH_GW EQU4CHADDRESSL EQU4DH ;ISD4002放音地址低位PANDAH EQU4EH ;ISD4002放音地址高位TEMP2 EQU4FH ;密碼暫時(shí)存儲(chǔ)TEMP3 EQU50H ;T1中斷檢測(cè)暫時(shí)存儲(chǔ)TIME EQU51H ;倒計(jì)時(shí)定期時(shí)間暫時(shí)存儲(chǔ),長(zhǎng)度1字節(jié)DISP_CHT EQU52H ;更換顯示繼電器倒計(jì)時(shí)時(shí)間計(jì)數(shù)DISP_CH EQU53H ;顯示開(kāi)關(guān)批示(1-4)YSH0_KG_1 EQU54H ;延時(shí)狀態(tài),1=啟動(dòng)0=關(guān)閉YSH1_KG_1 EQU55HYSH2_KG_1 EQU56HYSH3_KG_1 EQU57HSOUND_OUT_BW EQU58H ;延時(shí)數(shù)據(jù)輸出暫時(shí)存儲(chǔ)(用于剩余時(shí)間提示)SOUND_OUT_SHW EQU59HSOUND_OUT_GW EQU5AHZHL_CSH EQU5BH ;;******************************************; 主程序;****************************************** ORG 0000H LJMP MAIN ORG 0003H LJMP STD_IN ORG 00BH LJMP T0STOP ORG 0013H LJMP INT1_STOP ORG 001BH LJMP T1STOP ORG 0030H;全局初始化MAIN: MOV SP,#60H ;堆棧 MOV IE,#00H ;禁止所有中斷 LCALL LOAD ;載入狀態(tài) MOV MIMAJSH,#00H MOV DINGSHI,#00H MOV GZZHT,#00H MOV GZZHT2,#00H MOVT0_TMP,#200 ;T0暫時(shí)存儲(chǔ),每隔0.0005秒加1 MOVT0_TMP_S,#5 ;T0暫時(shí)存儲(chǔ),每隔0.1S加1 MOVT0_TMP_M,#120;T0暫時(shí)存儲(chǔ),每隔1S加1 MOVDISP_CHT,#4 ;更換顯示繼電器倒計(jì)時(shí)時(shí)間計(jì)數(shù) MOVDISP_CH,#1 ;顯示開(kāi)關(guān)批示(1-4) MOVTMOD,#02H ;定期器0,方式2(8位自裝載) MOVTH0,#06H MOVTL0,#06H ; MOVIP,#00000100B;設(shè)立外部中斷1為高優(yōu)先級(jí)中斷 SETBIT1 ;脈沖觸發(fā)方式 SETBET0 ;容許T0中斷 SETBEA ;容許中斷 SETBTR0 ;啟動(dòng)T0定期器 SETBIT0 ;脈沖觸發(fā)方式 ; SETBEX0 CLROUT_PLAY ;使用寄存器組00 CLR RS1 CLR RS0 LCALL DELAY_30ms JNB HUIFU,HUIFU1 ;與否恢復(fù)出廠設(shè)立MAINLOOP: JBHUIFU,LP1 LCALLDELAY_30MS JNBHUIFU,LP2LP1: CLRZHL6C ;清振鈴6次標(biāo)志位 LCALLZHENLING1 ;檢測(cè)振鈴 JNBZHL6C,MAINLOOP ;振鈴到6次,可以摘機(jī)LP2: LCALLZHAIJI ;振鈴達(dá)到6次,摘機(jī) SJMP MAINLOOP;---------------------------------------------------;恢復(fù)出廠設(shè)立HUIFU1: JNBHUIFU,$ MOVM6,#01H MOVM5,#02H MOVM4,#03H MOVM3,#04H MOVM2,#05H MOVM1,#06H LCALLSAVE LJMPMAINLOOP;**********************************************; 摘機(jī)子程序;**********************************************ZHAIJI: ; LCALLPOWEROFF ;屏蔽ISD4002,以免影響DTMF信號(hào)辨認(rèn) CLR JDQK ;繼電器摘機(jī) LCALLDELAY_BS LCALLDELAY_BS CLR MIMA CLREX0 ;不容許語(yǔ)音提示半途退出 MOVA,#13 LCALLSOUND ;語(yǔ)音提示:歡迎您使用智能家居遠(yuǎn)程控制系統(tǒng),請(qǐng)輸入密碼 SETBEX0 ZHJ_MM: LCALLSTDJC ;檢測(cè)輸入數(shù)據(jù),成果由A帶回 JBNOINPUT,EXIT_1ZHJ_MM_JC1: MOVMIMAJSH,#00H INC MIMAJSH CJNE A,M6,ZHJ_MMC ;校驗(yàn)密碼第一位與否對(duì)的; JB JDQK,EXIT LCALLSTDJC JBNOINPUT,EXIT_1 INC MIMAJSH CJNE A,M5,ZHJ_MMC ;校驗(yàn)密碼第二位與否對(duì)的; JB JDQK,EXIT LCALLSTDJC JBNOINPUT,EXIT_1 INC MIMAJSH CJNE A,M4,ZHJ_MMC ;校驗(yàn)密碼第三位與否對(duì)的; JB JDQK,EXITT3 LCALLSTDJC JBNOINPUT,EXIT_1 INC MIMAJSH CJNE A,M3,ZHJ_MMC ;校驗(yàn)密碼第四位與否對(duì)的; JB JDQK,EXIT LCALLSTDJC JBNOINPUT,EXIT_1 INC MIMAJSH CJNE A,M2,ZHJ_MMC ;校驗(yàn)密碼第五位與否對(duì)的; JB JDQK,EXIT LCALLSTDJC JBNOINPUT,EXIT_1 INC MIMAJSH CJNE A,M1,ZHJ_MMC ;校驗(yàn)密碼第六位與否對(duì)的; JB JDQK,EXIT LJMPZHJ_2;---------------------------------------------------------- ;密碼錯(cuò)ZHJ_MMC: LCALLSTDJC ;按鍵檢測(cè) JBNOINPUT,EXIT_1 INCMIMAJSH MOVA,MIMAJSH;密碼輸入次數(shù)存A CLRC SUBB A,#6 ;與否已輸入6位 JCZHJ_MMC;未輸入六位,繼續(xù)檢測(cè)按鍵 JBMIMA,ZHJ_MMC1 LCALLDELAY_BS MOVA,#33 ;語(yǔ)音提示:輸入錯(cuò)誤,請(qǐng)重新輸入 LCALLSOUND SETBMIMA LJMPZHJ_MMZHJ_MMC1: LJMPEXIT;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$EXIT_1: LJMPEXIT;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ ;密碼對(duì)的ZHJ_2: SETBEX0 ;容許語(yǔ)音提示半途退出 LCALLDELAY_BS MOVA,#14 ;語(yǔ)音提示:開(kāi)關(guān)狀態(tài)查詢與修改請(qǐng)按"1",修改密碼請(qǐng)按"2" LCALLSOUND JBOUT_PLAY,ZHJ_JC1 MOVA,#15 ;語(yǔ)音提示:掛機(jī)請(qǐng)按"*"號(hào)鍵 LCALLSOUND JBOUT_PLAY,ZHJ_JC1 ;語(yǔ)音播放中有按鍵輸入,直接跳轉(zhuǎn)到按鍵辨認(rèn)某些 LCALLSTDJC ;檢測(cè)按鍵 JBNOINPUT,EXIT_1ZHJ_JC1: CJNE A,#01H,ZHJ_GMM_1 ;若按鍵為:1;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%狀態(tài)查詢;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%ZHJ_ZHT: LCALLDELAY_30MS SETBEX0 MOVA,#23 ;請(qǐng)依照語(yǔ)音提示選取設(shè)備 LCALLSOUND JBOUT_PLAY,ZHJ_DFB_N ;語(yǔ)音播放中有按鍵輸入,直接跳轉(zhuǎn)到按鍵辨認(rèn)某些 MOVA,#1 ;語(yǔ)音提示:1 LCALLSOUND JBOUT_PLAY,ZHJ_DFB_N MOVA,#16 ;語(yǔ)音提示:電飯煲 LCALLSOUND JBOUT_PLAY,ZHJ_DFB_N LCALLDELAY_BS MOVA,#2 ;語(yǔ)音提示:2 LCALLSOUND JBOUT_PLAY,ZHJ_DFB_N MOVA,#17 ;語(yǔ)音提示:電暖風(fēng) LCALLDELAY_BS LCALLSOUND JBOUT_PLAY,ZHJ_DFB_N MOVA,#3 ;語(yǔ)音提示:3 LCALLSOUND JBOUT_PLAY,ZHJ_DFB_N MOVA,#18 ;語(yǔ)音提示:空調(diào) LCALLSOUND JBOUT_PLAY,ZHJ_DFB_N LCALLDELAY_BS MOVA,#4 ;語(yǔ)音提示:4 LCALLSOUND JBOUT_PLAY,ZHJ_DFB_N MOVA,#19 ;語(yǔ)音提示:電熱水器 LCALLSOUND JBOUT_PLAY,ZHJ_DFB_N LCALLSTDJC ;檢測(cè)按鍵 JBNOINPUT,EXIT_1 AJMPZHJ_DFB_N;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ZHJ_GMM_1: LJMPZHJ_GMMZHJ_DNF_1: LJMPZHJ_DNFZHJ_DNF_N_1: LJMPZHJ_DNF_N;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ ;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%;%%%%%%%%%%%%%%%%%%%%%%%電飯煲狀態(tài)查詢%%%%%%%%%%%%%%%%%%%%%%%;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ZHJ_DFB_N: CJNEA,#01H,ZHJ_DNF_N_1 ;若按鍵為:1ZHJ_DFB: CLREX0 ;禁止語(yǔ)音提示半途退出 MOVA,#16 ;語(yǔ)音提示:電飯煲 LCALLSOUND MOVA,#36 ;語(yǔ)音提示:狀態(tài)為 LCALLSOUND JNBYSH0_KG,ZHJ_DFB2;無(wú)延時(shí)則跳轉(zhuǎn) JNBJDQ0_DFB,ZHJ_DFB1 ;延時(shí)關(guān)則跳轉(zhuǎn) MOVA,#26 ;語(yǔ)音提示:延時(shí)開(kāi) LCALLSOUND MOVA,#0 ;繼電器0剩余時(shí)間提示 LCALLSOUND_YSH ;延時(shí)剩余時(shí)間提示子程序 AJMPZHJ_DFBXG ZHJ_DFB1: MOVA,#27 ;語(yǔ)音提示:延時(shí)關(guān) LCALLSOUND MOVA,#0 ;繼電器0剩余時(shí)間提示 LCALLSOUND_YSH ;延時(shí)剩余時(shí)間提示子程序 AJMPZHJ_DFBXGZHJ_DFB2: JNBJDQ0_DFB,ZHJ_0_K MOVA,#20 ;語(yǔ)音提示:關(guān) LCALLSOUND AJMPZHJ_DFBXG ZHJ_0_K: MOVA,#21 ;語(yǔ)音提示:開(kāi) LCALLSOUND;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%電飯煲狀態(tài)修改%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%ZHJ_DFBXG: SETBEX0 LCALLDELAY_30MS SETBEX0 ;容許語(yǔ)音提示半途退出 MOVA,#24 ;語(yǔ)音提示:?jiǎn)?dòng) LCALLSOUND JBOUT_PLAY,ZHJ_DFB_SHB MOVA,#16 ;語(yǔ)音提示:電飯煲 LCALLSOUND JBOUT_PLAY,ZHJ_DFB_SHB MOVA,#28 ;語(yǔ)音提示:請(qǐng)按 LCALLSOUND JBOUT_PLAY,ZHJ_DFB_SHB MOVA,#1 ;語(yǔ)音提示:1 LCALLSOUND JBOUT_PLAY,ZHJ_DFB_SHB MOVA,#25 ;語(yǔ)音提示:關(guān)閉 LCALLSOUND JBOUT_PLAY,ZHJ_DFB_SHB MOVA,#16 ;語(yǔ)音提示:電飯煲 LCALLSOUND JBOUT_PLAY,ZHJ_DFB_SHB MOVA,#28 ;語(yǔ)音提示:請(qǐng)按 LCALLSOUND JBOUT_PLAY,ZHJ_DFB_SHB MOVA,#2 ;語(yǔ)音提示:2 LCALLSOUND JBOUT_PLAY,ZHJ_DFB_SHB MOVA,#26 ;語(yǔ)音提示:延時(shí)開(kāi) LCALLSOUND JBOUT_PLAY,ZHJ_DFB_SHB MOVA,#28 ;語(yǔ)音提示:請(qǐng)按 LCALLSOUND JBOUT_PLAY,ZHJ_DFB_SHB MOVA,#3 ;語(yǔ)音提示:3 LCALLSOUND JBOUT_PLAY,ZHJ_DFB_SHB MOVA,#27 ;語(yǔ)音提示:延時(shí)關(guān) LCALLSOUND JBOUT_PLAY,ZHJ_DFB_SHB MOVA,#28 ;語(yǔ)音提示:請(qǐng)按 LCALLSOUND JBOUT_PLAY,ZHJ_DFB_SHB MOVA,#4 ;語(yǔ)音提示:4 LCALLSOUND JBOUT_PLAY,ZHJ_DFB_SHB MOVA,#15 ;語(yǔ)音提示:返回上級(jí)請(qǐng)按9,掛機(jī)請(qǐng)按"*"號(hào)鍵 LCALLSOUND JBOUT_PLAY,ZHJ_DFB_SHB LCALLSTDJC ;檢測(cè)按鍵 JBNOINPUT,EXIT_2;--------------------------------------------------------------------------;啟動(dòng)電飯煲ZHJ_DFB_SHB: CJNE A,#01H,ZHJ_DFBG ;若按鍵為:1 CLRJDQ0_DFB SETBLED0 CLRYSH0_KGZHJ_DFBK4: MOVA,#16 ;語(yǔ)音提示:電飯煲 LCALLSOUND JBOUT_PLAY,ZHJ_DFB_N_T2 MOVA,#30 ;語(yǔ)音提示:已啟動(dòng) LCALLSOUND JBOUT_PLAY,ZHJ_DFB_N_T2 LJMPZHJ_ZHT;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ EXIT_2: LJMPEXITZHJ_DFB_N_T2: LJMPZHJ_DFB_N;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$;--------------------------------------------------------------------------;關(guān)閉電飯煲ZHJ_DFBG: CJNEA,#02H,ZHJ_DFBY ;若按鍵為:2 SETBJDQ0_DFB SETBLED0 CLRYSH0_KGZHJ_DFBG4: MOVA,#16 ;語(yǔ)音提示:電飯煲 LCALLSOUND JBOUT_PLAY,ZHJ_DFB_N_T2 MOVA,#31 ;語(yǔ)音提示:已關(guān)閉 LCALLSOUND JBOUT_PLAY,ZHJ_DFB_N_T2 LJMPZHJ_ZHT;--------------------------------------------------------------------------;電飯煲延時(shí)開(kāi)ZHJ_DFBY: CJNEA,#03H,ZHJ_DFBY2ZHJ_DFBY_2: LCALLYSH_IN ;調(diào)用延時(shí)輸入子程序 JBJDQK,EXIT_2 MOVYSH0_TM,TIME ;存延時(shí)數(shù)據(jù) SETBJDQ0_DFB CLRLED0 ;開(kāi)延時(shí)批示燈 SETBYSH0_KG ;置位延時(shí)開(kāi)標(biāo)志 CLREX0 MOVA,#26 ;延時(shí)開(kāi) LCALLSOUND MOVA,#32 ;已設(shè)定 LCALLSOUND MOVA,#0 ;繼電器0剩余時(shí)間提示 LCALLSOUND_YSH ;延時(shí)剩余時(shí)間提示子程序 SETBEX0 LJMPZHJ_ZHT ;延時(shí)設(shè)定完畢,轉(zhuǎn)狀態(tài)查詢頁(yè);--------------------------------------------------------------------------;電飯煲延時(shí)關(guān)ZHJ_DFBY2: CJNEA,#04H,ZHJ_DFBFZHJ_DFBY2_2: LCALLYSH_IN ;調(diào)用延時(shí)輸入子程序 JBJDQK,EXIT_3 MOVYSH0_TM,TIME ;存延時(shí)數(shù)據(jù) CLRJDQ0_DFB CLRLED0 ;開(kāi)延時(shí)批示燈 SETBYSH0_KG ;置位延時(shí)開(kāi)標(biāo)志 CLREX0 MOVA,#27 ;延時(shí)關(guān) LCALLSOUND MOVA,#32 ;已設(shè)定 LCALLSOUND MOVA,#0 ;繼電器0剩余時(shí)間提示 LCALLSOUND_YSH ;延時(shí)剩余時(shí)間提示子程序 SETBEX0 LJMPZHJ_ZHT ;延時(shí)設(shè)定完畢,轉(zhuǎn)狀態(tài)查詢頁(yè);-----------------------------------------------------------------------------ZHJ_DFBF: CJNEA,#09H,ZHJ_DFBF1 ;按鍵為9 LJMPZHJ_ZHT ZHJ_DFBF1: CJNEA,#00001011B,ZHJ_DFBF2 ;按鍵為"*" LJMPEXIT_3 ZHJ_DFBF2: MOVA,#33 ;語(yǔ)音提示:輸入錯(cuò)誤,請(qǐng)重新輸入 LCALLSOUND JBOUT_PLAY,ZHJ_DFB_SHB_T1 LJMPZHJ_DFBXG ;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ EXIT_3: LJMPEXITZHJ_KT_1: LJMPZHJ_KTZHJ_KT_N_1: LJMPZHJ_KT_NZHJ_DFB_SHB_T1: LJMPZHJ_DFB_SHB;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%;%%%%%%%%%%%%%%%%%%%%%%%電暖風(fēng)狀態(tài)查詢%%%%%%%%%%%%%%%%%%%%%%%;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ZHJ_DNF_N: CJNEA,#02H,ZHJ_KT_N_1 ;若按鍵為:1ZHJ_DNF: CLREX0 ;禁止語(yǔ)音提示半途退出 MOVA,#17 ;語(yǔ)音提示:電暖風(fēng) LCALLSOUND MOVA,#36 ;語(yǔ)音提示:狀態(tài)為 LCALLSOUND JNBYSH1_KG,ZHJ_DNF2;無(wú)延時(shí)則跳轉(zhuǎn) JNBJDQ1_DNF,ZHJ_DNF1 ;延時(shí)關(guān)則跳轉(zhuǎn) MOVA,#26 ;語(yǔ)音提示:延時(shí)開(kāi) LCALLSOUND MOVA,#1 ;繼電器1剩余時(shí)間提示 LCALLSOUND_YSH ;延時(shí)剩余時(shí)間提示子程序 AJMPZHJ_DNFXG ZHJ_DNF1: MOVA,#27 ;語(yǔ)音提示:延時(shí)關(guān) LCALLSOUND MOVA,#1 ;繼電器1剩余時(shí)間提示 LCALLSOUND_YSH ;延時(shí)剩余時(shí)間提示子程序 AJMPZHJ_DNFXGZHJ_DNF2: JNBJDQ1_DNF,ZHJ_1_K MOVA,#20 ;語(yǔ)音提示:關(guān) LCALLSOUND AJMPZHJ_DNFXG ZHJ_1_K: MOVA,#21 ;語(yǔ)音提示:開(kāi) LCALLSOUND;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%電暖風(fēng)狀態(tài)修改%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%ZHJ_DNFXG: LCALLDELAY_30MS SETBEX0 ;容許語(yǔ)音提示半途退出 MOVA,#24 ;語(yǔ)音提示:?jiǎn)?dòng) LCALLSOUND JBOUT_PLAY,ZHJ_DNF_SHB MOVA,#17 ;語(yǔ)音提示:電暖風(fēng) LCALLSOUND JBOUT_PLAY,ZHJ_DNF_SHB MOVA,#28 ;語(yǔ)音提示:請(qǐng)按 LCALLSOUND JBOUT_PLAY,ZHJ_DNF_SHB MOVA,#1 ;語(yǔ)音提示:1 LCALLSOUND JBOUT_PLAY,ZHJ_DNF_SHB MOVA,#25 ;語(yǔ)音提示:關(guān)閉 LCALLSOUND JBOUT_PLAY,ZHJ_DNF_SHB MOVA,#17 ;語(yǔ)音提示:電暖風(fēng) LCALLSOUND JBOUT_PLAY,ZHJ_DNF_SHB MOVA,#28 ;語(yǔ)音提示:請(qǐng)按 LCALLSOUND JBOUT_PLAY,ZHJ_DNF_SHB MOVA,#2 ;語(yǔ)音提示:2 LCALLSOUND JBOUT_PLAY,ZHJ_DNF_SHB MOVA,#26 ;語(yǔ)音提示:延時(shí)開(kāi) LCALLSOUND JBOUT_PLAY,ZHJ_DNF_SHB MOVA,#28 ;語(yǔ)音提示:請(qǐng)按 LCALLSOUND JBOUT_PLAY,ZHJ_DNF_SHB MOVA,#3 ;語(yǔ)音提示:3 LCALLSOUND JBOUT_PLAY,ZHJ_DNF_SHB MOVA,#27 ;語(yǔ)音提示:延時(shí)關(guān) LCALLSOUND JBOUT_PLAY,ZHJ_DNF_SHB MOVA,#28 ;語(yǔ)音提示:請(qǐng)按 LCALLSOUND JBOUT_PLAY,ZHJ_DNF_SHB MOVA,#4 ;語(yǔ)音提示:4 LCALLSOUND JBOUT_PLAY,ZHJ_DNF_SHB MOVA,#15 ;語(yǔ)音提示:返回上級(jí)請(qǐng)按9,掛機(jī)請(qǐng)按"*"號(hào)鍵 LCALLSOUND JBOUT_PLAY,ZHJ_DNF_SHB LCALLSTDJC ;檢測(cè)按鍵 JBNOINPUT,EXIT_4;--------------------------------------------------------------------------;啟動(dòng)電暖風(fēng)ZHJ_DNF_SHB: CJNE A,#01H,ZHJ_DNFG ;若按鍵為:1 CLRJDQ1_DNF SETBLED1 CLRYSH1_KGZHJ_DNFK4: MOVA,#17 ;語(yǔ)音提示:電暖風(fēng) LCALLSOUND JBOUT_PLAY,ZHJ_DFB_N_T3 MOVA,#30 ;語(yǔ)音提示:已啟動(dòng) LCALLSOUND JBOUT_PLAY,ZHJ_DFB_N_T3 LJMPZHJ_ZHT;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ EXIT_4: LJMPEXITZHJ_DFB_N_T3: LJMPZHJ_DFB_N;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$;--------------------------------------------------------------------------;關(guān)閉電暖風(fēng)ZHJ_DNFG: CJNEA,#02H,ZHJ_DNFY ;若按鍵為:2 SETBJDQ1_DNF SETBLED1 CLRYSH1_KGZHJ_DNFG4: MOVA,#17 ;語(yǔ)音提示:電暖風(fēng) LCALLSOUND JBOUT_PLAY,ZHJ_DFB_N_T3 MOVA,#31 ;語(yǔ)音提示:已關(guān)閉 LCALLSOUND JBOUT_PLAY,ZHJ_DFB_N_T3 LJMPZHJ_ZHT;--------------------------------------------------------------------------;電暖風(fēng)延時(shí)開(kāi)ZHJ_DNFY: CJNEA,#03H,ZHJ_DNFY2ZHJ_DNFY_2: LCALLYSH_IN ;調(diào)用延時(shí)輸入子程序 JBJDQK,EXIT_4 MOVYSH1_TM,TIME ;存延時(shí)數(shù)據(jù) SETBJDQ1_DNF CLRLED1 ;開(kāi)延時(shí)批示燈 SETBYSH1_KG ;置位延時(shí)開(kāi)標(biāo)志 CLREX0 MOVA,#26 ;延時(shí)開(kāi) LCALLSOUND MOVA,#32 ;已設(shè)定 LCALLSOUND MOVA,#1 ;繼電器1剩余時(shí)間提示 LCALLSOUND_YSH ;延時(shí)剩余時(shí)間提示子程序 SETBEX0 LJMPZHJ_ZHT ;延時(shí)設(shè)定完畢,轉(zhuǎn)狀態(tài)查詢頁(yè);--------------------------------------------------------------------------;電暖風(fēng)延時(shí)關(guān)ZHJ_DNFY2: CJNEA,#04H,ZHJ_DNFFZHJ_DNFY2_2: LCALLYSH_IN ;調(diào)用延時(shí)輸入子程序 JBJDQK,EXIT_5 MOVYSH1_TM,TIME ;存延時(shí)數(shù)據(jù) CLRJDQ1_DNF CLRLED1 ;開(kāi)延時(shí)批示燈 SETBYSH1_KG ;置位延時(shí)開(kāi)標(biāo)志 CLREX0 MOVA,#27 ;延時(shí)關(guān) LCALLSOUND MOVA,#32 ;已設(shè)定 LCALLSOUND MOVA,#1 ;繼電器1剩余時(shí)間提示 LCALLSOUND_YSH ;延時(shí)剩余時(shí)間提示子程序 SETBEX0 LJMPZHJ_ZHT ;延時(shí)設(shè)定完畢,轉(zhuǎn)狀態(tài)查詢頁(yè);-----------------------------------------------------------------------------ZHJ_DNFF: CJNEA,#09H,ZHJ_DNFF1 ;按鍵為9 LJMPZHJ_ZHT ZHJ_DNFF1: CJNEA,#00001011B,ZHJ_DNFF2 ;按鍵為"*" LJMPEXIT_3 ZHJ_DNFF2: MOVA,#33 ;語(yǔ)音提示:輸入錯(cuò)誤,請(qǐng)重新輸入 LCALLSOUND JBOUT_PLAY,ZHJ_DNF_SHB_T1 LJMPZHJ_DNFXG ;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ZHJ_DNF_SHB_T1: LJMPZHJ_DNF_SHBEXIT_5: LJMPEXITZHJ_RSH_1: LJMPZHJ_RSHZHJ_RSH_N_1: LJMP ZHJ_RSH_N;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%;%%%%%%%%%%%%%%%%%%%%%%%空調(diào)狀態(tài)查詢%%%%%%%%%%%%%%%%%%%%%%%;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ZHJ_KT_N: CJNEA,#03H,ZHJ_RSH_N_1 ;若按鍵為:1ZHJ_KT: CLREX0 ;禁止語(yǔ)音提示半途退出 MOVA,#18 ;語(yǔ)音提示:空調(diào) LCALLSOUND MOVA,#36 ;語(yǔ)音提示:狀態(tài)為 LCALLSOUND JNBYSH2_KG,ZHJ_KT2;無(wú)延時(shí)則跳轉(zhuǎn) JNBJDQ2_KT,ZHJ_KT1 ;延時(shí)關(guān)則跳轉(zhuǎn) MOVA,#26 ;語(yǔ)音提示:延時(shí)開(kāi) LCALLSOUND MOVA,#2 ;繼電器2剩余時(shí)間提示 LCALLSOUND_YSH ;延時(shí)剩余時(shí)間提示子程序 AJMPZHJ_KTXG ZHJ_KT1: MOVA,#27 ;語(yǔ)音提示:延時(shí)關(guān) LCALLSOUND MOVA,#2 ;繼電器2剩余時(shí)間提示 LCALLSOUND_YSH ;延時(shí)剩余時(shí)間提示子程序 AJMPZHJ_KTXGZHJ_KT2: JNBJDQ2_KT,ZHJ_2_K MOVA,#20 ;語(yǔ)音提示:關(guān) LCALLSOUND AJMPZHJ_KTXG ZHJ_2_K: MOVA,#21 ;語(yǔ)音提示:開(kāi) LCALLSOUND;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%空調(diào)狀態(tài)修改%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%ZHJ_KTXG: LCALLDELAY_30MS SETBEX0 ;容許語(yǔ)音提示半途退出 MOVA,#24 ;語(yǔ)音提示:?jiǎn)?dòng) LCALLSOUND JBOUT_PLAY,ZHJ_KT_SHB MOVA,#18 ;語(yǔ)音提示:空調(diào) LCALLSOUND JBOUT_PLAY,ZHJ_KT_SHB MOVA,#28 ;語(yǔ)音提示:請(qǐng)按 LCALLSOUND JBOUT_PLAY,ZHJ_KT_SHB MOVA,#1 ;語(yǔ)音提示:1 LCALLSOUND JBOUT_PLAY,ZHJ_KT_SHB MOVA,#25 ;語(yǔ)音提示:關(guān)閉 LCALLSOUND JBOUT_PLAY,ZHJ_KT_SHB MOVA,#18 ;語(yǔ)音提示:空調(diào) LCALLSOUND JBOUT_PLAY,ZHJ_KT_SHB MOVA,#28 ;語(yǔ)音提示:請(qǐng)按 LCALLSOUND JBOUT_PLAY,ZHJ_KT_SHB MOVA,#2 ;語(yǔ)音提示:2 LCALLSOUND JBOUT_PLAY,ZHJ_KT_SHB MOVA,#26 ;語(yǔ)音提示:延時(shí)開(kāi) LCALLSOUND JBOUT_PLAY,ZHJ_KT_SHB MOVA,#28 ;語(yǔ)音提示:請(qǐng)按 LCALLSOUND JBOUT_PLAY,ZHJ_KT_SHB MOVA,#3 ;語(yǔ)音提示:3 LCALLSOUND JBOUT_PLAY,ZHJ_KT_SHB MOVA,#27 ;語(yǔ)音提示:延時(shí)關(guān) LCALLSOUND JBOUT_PLAY,ZHJ_KT_SHB MOVA,#28 ;語(yǔ)音提示:請(qǐng)按 LCALLSOUND JBOUT_PLAY,ZHJ_KT_SHB MOVA,#4 ;語(yǔ)音提示:4 LCALLSOUND JBOUT_PLAY,ZHJ_KT_SHB MOVA,#15 ;語(yǔ)音提示:返回上級(jí)請(qǐng)按9,掛機(jī)請(qǐng)按"*"號(hào)鍵 LCALLSOUND JBOUT_PLAY,ZHJ_KT_SHB LCALLSTDJC ;檢測(cè)按鍵 JBNOINPUT,EXIT_6;--------------------------------------------------------------------------;啟動(dòng)空調(diào)ZHJ_KT_SHB: CJNE A,#01H,ZHJ_KTG ;若按鍵為:1 CLRJDQ2_KT SETBLED2 CLRYSH2_KGZHJ_KTK4: MOVA,#18 ;語(yǔ)音提示:空調(diào) LCALLSOUND JBOUT_PLAY,ZHJ_DFB_N_T4 MOVA,#30 ;語(yǔ)音提示:已啟動(dòng) LCALLSOUND JBOUT_PLAY,ZHJ_DFB_N_T4 LJMPZHJ_ZHT;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ EXIT_6: LJMPEXITZHJ_DFB_N_T4: LJMPZHJ_DFB_N;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$;--------------------------------------------------------------------------;關(guān)閉空調(diào)ZHJ_KTG: CJNEA,#02H,ZHJ_KTY ;若按鍵為:2 SETBJDQ2_KT SETBLED2 CLRYSH2_KGZHJ_KTG4: MOVA,#18 ;語(yǔ)音提示:空調(diào) LCALLSOUND JBOUT_PLAY,ZHJ_DFB_N_T4 MOVA,#31 ;語(yǔ)音提示:已關(guān)閉 LCALLSOUND JBOUT_PLAY,ZHJ_DFB_N_T4 LJMPZHJ_ZHT;--------------------------------------------------------------------------;空調(diào)延時(shí)開(kāi)ZHJ_KTY: CJNEA,#03H,ZHJ_KTY2ZHJ_KTY_2: LCALLYSH_IN ;調(diào)用延時(shí)輸入子程序 JBJDQK,EXIT_6 MOVYSH2_TM,TIME ;存延時(shí)數(shù)據(jù) SETBJDQ2_KT CLRLED2 ;開(kāi)延時(shí)批示燈 SETBYSH2_KG ;置位延時(shí)開(kāi)標(biāo)志 CLREX0 MOVA,#26 ;延時(shí)開(kāi) LCALLSOUND MOVA,#32 ;已設(shè)定 LCALLSOUND MOVA,#2 ;繼電器2剩余時(shí)間提示 LCALLSOUND_YSH ;延時(shí)剩余時(shí)間提示子程序 SETBEX0 LJMPZHJ_ZHT ;延時(shí)設(shè)定完畢,轉(zhuǎn)狀態(tài)查詢頁(yè);--------------------------------------------------------------------------;空調(diào)延時(shí)關(guān)ZHJ_KTY2: CJNEA,#04H,ZHJ_KTFZHJ_KTY2_2: LCALLYSH_IN ;調(diào)用延時(shí)輸入子程序 JBJDQK,EXIT_8 MOVYSH2_TM,TIME ;存延時(shí)數(shù)據(jù) CLRJDQ2_KT CLRLED2 ;開(kāi)延時(shí)批示燈 SETBYSH2_KG ;置位延時(shí)開(kāi)標(biāo)志 CLREX0 MOVA,#27 ;延時(shí)關(guān) LCALLSOUND MOVA,#32 ;已設(shè)定 LCALLSOUND MOVA,#2 ;繼電器2剩余時(shí)間提示 LCALLSOUND_YSH ;延時(shí)剩余時(shí)間提示子程序 SETBEX0 LJMPZHJ_ZHT ;延時(shí)設(shè)定完畢,轉(zhuǎn)狀態(tài)查詢頁(yè);-----------------------------------------------------------------------------ZHJ_KTF: CJNEA,#09H,ZHJ_KTF1 ;按鍵為9 LJMPZHJ_ZHT ZHJ_KTF1: CJNEA,#00001011B,ZHJ_KTF2 ;按鍵為"*" LJMPEXIT_3 ZHJ_KTF2: MOVA,#33 ;語(yǔ)音提示:輸入錯(cuò)誤,請(qǐng)重新輸入 LCALLSOUND JBOUT_PLAY,ZHJ_KT_SHB_T1 LJMPZHJ_KTXG ;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$EXIT_8: LJMPEXITZHJ_KT_SHB_T1: LJMPZHJ_KT_SHBZHJ_ERR_1: LJMPZHJ_ERR;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%;%%%%%%%%%%%%%%%%%%%%%%%電熱水器狀態(tài)查詢%%%%%%%%%%%%%%%%%%%%%%%;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ZHJ_RSH_N: CJNEA,#04H,ZHJ_ERR_1 ;若按鍵為:1ZHJ_RSH: CLREX0 ;禁止語(yǔ)音提示半途退出 MOVA,#19 ;語(yǔ)音提示:電熱水器 LCALLSOUND MOVA,#36 ;語(yǔ)音提示:狀態(tài)為 LCALLSOUND JNBYSH3_KG,ZHJ_RSH2;無(wú)延時(shí)則跳轉(zhuǎn) JNBJDQ3_RSH,ZHJ_RSH1 ;延時(shí)關(guān)則跳轉(zhuǎn) MOVA,#26 ;語(yǔ)音提示:延時(shí)開(kāi) LCALLSOUND MOVA,#3 ;繼電器3剩余時(shí)間提示 LCALLSOUND_YSH ;延時(shí)剩余時(shí)間提示子程序 AJMPZHJ_RSHXG ZHJ_RSH1: MOVA,#27 ;語(yǔ)音提示:延時(shí)關(guān) LCALLSOUND MOVA,#3 ;繼電器3剩余時(shí)間提示 LCALLSOUND_YSH ;延時(shí)剩余時(shí)間提示子程序 AJMPZHJ_RSHXGZHJ_RSH2: JNBJDQ3_RSH,ZHJ_3_K MOVA,#20 ;語(yǔ)音提示:關(guān) LCALLSOUND AJMPZHJ_RSHXG ZHJ_3_K: MOVA,#21 ;語(yǔ)音提示:開(kāi) LCALLSOUND;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%電熱水器狀態(tài)修改%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%ZHJ_RSHXG: LCALLDELAY_30MS SETBEX0 ;容許語(yǔ)音提示半途退出 MOVA,#24 ;語(yǔ)音提示:?jiǎn)?dòng) LCALLSOUND JBOUT_PLAY,ZHJ_RSH_SHB MOVA,#19 ;語(yǔ)音提示:電熱水器 LCALLSOUND JBOUT_PLAY,ZHJ_RSH_SHB MOVA,#28 ;語(yǔ)音提示:請(qǐng)按 LCALLSOUND JBOUT_PLAY,ZHJ_RSH_SHB MOVA,#1 ;語(yǔ)音提示:1 LCALLSOUND JBOUT_PLAY,ZHJ_RSH_SHB MOVA,#25 ;語(yǔ)音提示:關(guān)閉 LCALLSOUND JBOUT_PLAY,ZHJ_RSH_SHB MOVA,#19 ;語(yǔ)音提示:電熱水器 LCALLSOUND JBOUT_PLAY,ZHJ_RSH_SHB MOVA,#28 ;語(yǔ)音提示:請(qǐng)按 LCALLSOUND JBOUT_PLAY,ZHJ_RSH_SHB MOVA,#2 ;語(yǔ)音提示:2 LCALLSOUND JBOUT_PLAY,ZHJ_RSH_SHB MOVA,#26 ;語(yǔ)音提示:延時(shí)開(kāi) LCALLSOUND JBOUT_PLAY,ZHJ_RSH_SHB MOVA,#28 ;語(yǔ)音提示:請(qǐng)按 LCALLSOUND JBOUT_PLAY,ZHJ_RSH_SHB MOVA,#3 ;語(yǔ)音提示:3 LCALLSOUND JBOUT_PLAY,ZHJ_RSH_SHB MOVA,#27 ;語(yǔ)音提示:延時(shí)關(guān) LCALLSOUND JBOUT_PLAY,ZHJ_RSH_SHB MOVA,#28 ;語(yǔ)音提示:請(qǐng)按 LCALLSOUND JBOUT_PLAY,ZHJ_RSH_SHB MOVA,#4 ;語(yǔ)音提示:4 LCALLSOUND JBOUT_PLAY,ZHJ_RSH_SHB MOVA,#15 ;語(yǔ)音提示:返回上級(jí)請(qǐng)按9,掛機(jī)請(qǐng)按"*"號(hào)鍵 LCALLSOUND JBOUT_PLAY,ZHJ_RSH_SHB LCALLSTDJC ;檢測(cè)按鍵 JBNOINPUT,EXIT_7;--------------------------------------------------------------------------;啟動(dòng)電熱水器ZHJ_RSH_SHB: CJNE A,#01H,ZHJ_RSHG ;若按鍵為:1 CLRJDQ3_RSH SETBLED3 CLRYSH3_KGZHJ_RSHK4: MOVA,#19 ;語(yǔ)音提示:電熱水器 LCALLSOUND JBOUT_PLAY,ZHJ_DFB_N_T5 MOVA,#30 ;語(yǔ)音提示:已啟動(dòng) LCALLSOUND JBOUT_PLAY,ZHJ_DFB_N_T5 LJMPZHJ_ZHT;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ EXIT_7: LJMPEXITZHJ_DFB_N_T5: LJMPZHJ_DFB_N;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$;--------------------------------------------------------------------------;關(guān)閉電熱水器ZHJ_RSHG: CJNEA,#02H,ZHJ_RSHY ;若按鍵為:2 SETBJDQ3_RSH SETBLED3 CLRYSH3_KGZHJ_RSHG4: MOVA,#19 ;語(yǔ)音提示:電熱水器 LCALLSOUND JBOUT_PLAY,ZHJ_DFB_N_T5 MOVA,#31 ;語(yǔ)音提示:已關(guān)閉 LCALLSOUND JBOUT_PLAY,ZHJ_DFB_N_T5 LJMPZHJ_ZHT;--------------------------------------------------------------------------;電熱水器延時(shí)開(kāi)ZHJ_RSHY: CJNEA,#03H,ZHJ_RSHY2ZHJ_RSHY_2: LCALLYSH_IN ;調(diào)用延時(shí)輸入子程序 JBJDQK,EXIT_7 MOVYSH3_TM,TIME ;存延時(shí)數(shù)據(jù) SETBJDQ3_RSH CLRLED3 ;開(kāi)延時(shí)批示燈 SETBYSH3_KG ;置位延時(shí)開(kāi)標(biāo)志 CLREX0 MOVA,#26 ;延時(shí)開(kāi) LCALLSOUND MOVA,#32 ;已設(shè)定 LCALLSOUND MOVA,#3 ;繼電器3剩余時(shí)間提示 LCALLSOUND_YSH ;延時(shí)剩余時(shí)間提示子程序 SETBEX0 LJMPZHJ_ZHT ;延時(shí)設(shè)定完畢,轉(zhuǎn)狀態(tài)查詢頁(yè);--------------------------------------------------------------------------;電熱水器延時(shí)關(guān)ZHJ_RSHY2: CJNEA,#04H,ZHJ_RSHFZHJ_RSHY2_2: LCALLYSH_IN ;調(diào)用延時(shí)輸入子程序 JBJDQK,EXIT MOVYSH3_TM,TIME ;存延時(shí)數(shù)據(jù) CLRJDQ3_RSH CLRLED3 ;開(kāi)延時(shí)批示燈 SETBYSH3_KG ;置位延時(shí)開(kāi)標(biāo)志 CLREX0 MOVA,#27 ;延時(shí)關(guān) LCALLSOUND MOVA,#32 ;已設(shè)定 LCALLSOUND MOVA,#3 ;繼電器3剩余時(shí)間提示 LCALLSOUND_YSH ;延時(shí)剩余時(shí)間提示子程序 SETBEX0 LJMPZHJ_ZHT ;延時(shí)設(shè)定完畢,轉(zhuǎn)狀態(tài)查詢頁(yè);-----------------------------------------------------------------------------ZHJ_RSHF: CJNEA,#09H,ZHJ_RSHF1 ;按鍵為9 LJMPZHJ_ZHT ZHJ_RSHF1: CJNEA,#00001011B,ZHJ_RSHF2 ;按鍵為"*" LJMPEXIT_3 ZHJ_RSHF2: MOVA,#33 ;語(yǔ)音提示:輸入錯(cuò)誤,請(qǐng)重新輸入 LCALLSOUND JBOUT_PLAY,ZHJ_RSH_SHB_T1 LJMPZHJ_RSHXG ZHJ_RSH_SHB_T1: LJMPZHJ_RSH_SHBZHJ_DFB_N_T1: LJMPZHJ_DFB_N;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%;%%%%%%%%%%%%%%%%%%%%%%%輸入錯(cuò)誤%%%%%%%%%%%%%%%%%%%%%%%;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ZHJ_ERR: MOVA,#33 ;語(yǔ)音提示:輸入錯(cuò)誤,請(qǐng)重新輸入 LCALLSOUND JBOUT_PLAY,ZHJ_DFB_N_T1 LJMPZHJ_ZHT;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%;%%%%%%%%%%%%%%%%%%%%%%%掛機(jī)%%%%%%%%%%%%%%%%%%%%%%%;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$EXIT: SETBJDQK MOVMIMAJSH,#00H LCALLSAVE RET;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ZHJ_GJ_T1: LJMPZHJ_GJ;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%;%%%%%%%%%%%%%%%%%%%%%%%修改密碼%%%%%%%%%%%%%%%%%%%%%%%;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ZHJ_GMM: CLREX0 CJNEA,#02H,ZHJ_GJ_T1 ;若按鍵為:2;修改密碼 LCALLDELAY_BSZHJ_GMM_RE: MOVA,#35 ;語(yǔ)音提示:請(qǐng)輸入6位新密碼,按"#"號(hào)鍵結(jié)束 LCALLSOUND ; JBOUT_PLAY,ZHJ_GMM_SHB MOVR1,#06H ;密碼位數(shù) MOVR0,#MT1 ;密碼位首地址 SETBXINMIMA ;新密碼校驗(yàn)位置1。 ZHJ_GMM1: SETBEX0 LCALLSTDJC ;檢測(cè)按鍵 CLREX0 JBNOINPUT,EXITZHJ_GMM_SHB: MOV@R0,A ;保存新密碼 DECR0 ;地址位減一,準(zhǔn)備輸入下一位密碼 DJNZR1,ZHJ_GMM1;檢測(cè)6位與否輸入完畢 SETBEX0 LCALLSTDJC ;檢測(cè)按鍵與否為"#" CLREX0 JBNOINPUT,EXIT CJNEA,#00001100B,ZHJ_GMM2 LCALLDELAY_BS MOVA,#37 ;語(yǔ)音提示:請(qǐng)?jiān)佥斎胍淮? LCALLSOUND ; JBOUT_PLAY,ZHJ_GMM_SHB MOVR1,#06H MOVR0,#MT1ZHJ_GMM5: SETBEX0 LCALLSTDJC CLREX0 JBNOINPUT,EXIT MOVTEMP2,@R0 CJNEA,TEMP2,ZHJ_GMM3 ;比較密碼,若錯(cuò)誤,"XINMIMA"位清零ZHJ_GMM4: DECR0 DJNZR1,ZHJ_GMM5 SETBEX0 LCALLSTDJC CLREX0 JBNOINPUT,EXIT CJNEA,#00001100B,ZHJ_GMM2 JNBXINMIMA,ZHJ_GMM2 MOVR0,#MT1 ;保存新密碼 MOVM6,@R0 DECR0 MOVM5,@R0 DECR0 MOVM4,@R0 DECR0 MOVM3,@R0 DECR0 MOVM2,@R0 DECR0 MOVM1,@R0 LCALLDELAY_BS CLREX0 MOVA,#38 ;語(yǔ)音提示:密碼已更新 LCALLSOUND SETBEX0 LJMPZHJ_2ZHJ_GMM2: CLREX0 MOVA,#33 ;語(yǔ)音提示:輸入錯(cuò)誤,請(qǐng)重新輸入 LCALLSOUND SETBEX0 LJMPZHJ_GMM_REZHJ_GMM3: CLRXINMIMA ;密碼錯(cuò)誤,"XINMIMA"位清零。 LJMPZHJ_GMM4;----------------------------------------------------------------------ZHJ_GJ: CJNEA,#00001011B,ZHJ_GJ2 ;按鍵為"*" LJMPEXIT ZHJ_GJ2: MOVA,#33 ;語(yǔ)音提示:輸入錯(cuò)誤,請(qǐng)重新輸入 LCALLSOUND JBOUT_PLAY,ZHJ_JC1_T1 LJMPZHJ_2ZHJ_JC1_T1: LJMPZHJ_JC1;**********************************************; 接受并解決延時(shí)數(shù)據(jù),成果存于TIME;**********************************************YSH_IN: LCALLDELAY_BS MOVA,#34 ;語(yǔ)音提示:請(qǐng)輸入時(shí)間,按"#"號(hào)鍵確認(rèn),單位為分,請(qǐng)不要超過(guò)255分 CLREX0 LCALLSOUND SETBEX0 JBOUT_PLAY,YSH_IN_SHB_1 MOVYSH_BW,#00H MOVYSH_SHW,#00H MOVYSH_GW,#00H LCALLSTDJC JBNOINPUT,YSH_ERRYSH_IN_SHB_1: MOVYSH_GW,A ;保存第一位 CLRC ;判斷第一位與否為數(shù)字1~9 SUBBA,#0AH JCYSH_IN2 LCALLDELAY_BS MOVA,#33 ;語(yǔ)音提示:輸入錯(cuò)誤,請(qǐng)重新輸入 LCALLSOUND JBOUT_PLAY,YSH_IN_SHB_1 SJMPYSH_IN ;跳轉(zhuǎn)到開(kāi)始,重新輸入延時(shí)時(shí)間YSH_IN2: LCALLSTDJC JBNOINPUT,YSH_ERR CJNEA,#00001010B,YSH_IN222 ;如果輸入為1010則轉(zhuǎn)換為"0" MOVA,#00HYSH_IN222: CJNEA,#00001100B,YSH_IN22 ;判斷輸入與否是"#"號(hào) LJMPYSH_EXIT ;輸入是"#"

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論