freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

基于51單片機(jī)八路搶答器-資料下載頁

2025-06-28 00:13本頁面
  

【正文】 JNE A,63H,ADD1MOV R2,00HACALL DELAY1AJMP INT1SUBADD1: INC R2ACALL DELAY1AJMP INT1SUBDEC1: MOV A,R2JZ SETR2DEC R2ACALL DELAY1AJMP INT1SUBSETR2: MOV R2,63HACALL DELAY1AJMP INT1SUBBACK1: RETI 。=====倒計(jì)時(shí)程序(搶答倒計(jì)時(shí)和回答倒計(jì)時(shí)都跳到改程序)=====REPEAT:MOV A,R2 。使用錦囊時(shí)重新計(jì)時(shí)MOV R6,ACLR RING COUNT: MOV R0,00H。重置定時(shí)器中斷次數(shù)MOV TH1,3CHMOV TL1,0B0H。重置定時(shí)器RECOUNT:MOV A,R6。R6保存了倒計(jì)時(shí)的時(shí)間,之前先將搶答時(shí)間或回答時(shí)間給R6MOV B,0AHDIV AB。除十分出個(gè)位/十位MOV 30H,A。十位存于(30H)MOV 31H,B。個(gè)位存于(31H)MOV R5,30H。取十位MOV R4,31H。取個(gè)位MOV A,R6SUBB A,07HJNC LARGER。大于5s跳到LARGER,小于等于5s會(huì)提醒MOV A,R0CJNE A,0AH,FULL。CLR RING AJMP CHECKFULL: CJNE A,14H,CHECK。下面是1s的情況,響并顯示號(hào)數(shù)并清R0,重新計(jì)SETB RINGMOV A,R6JZ QUIT。計(jì)時(shí)完畢MOV R0,00HDEC R6。一秒標(biāo)志減1AJMP CHECKLARGER: MOV A,R0CJNE A,14H,CHECK。如果1s向下運(yùn)行,否者跳到查停/顯示DEC R6。計(jì)時(shí)一秒R6自動(dòng)減1MOV R0,00HCHECK: JNB ,QUIT。如按下停止鍵退出JNB OK,CHECKK 。只在回答倒計(jì)時(shí)才有效AJMP NEXTTCHECKK:JNB ,REPEAT 。判斷是否使用錦囊NEXTT: ACALL DISPLAYJB OK,ACCOUT。如果是搶答倒計(jì)時(shí),如是則查詢搶答,否者跳過查詢繼續(xù)倒數(shù)(這里起到鎖搶答作用)AJMP RECOUNTACCOUT:MOV A,36HJNB ,TRUE1JNB ,TRUE2JNB ,TRUE3JNB ,TRUE4JNB ,TRUE5JNB ,TRUE6JNB ,TZ1JNB ,TZ2AJMP RECOUNTTZ1:JMP TRUE7TZ2:JMP TRUE8 QUIT: CLR OK。如果按下了停止鍵執(zhí)行的程序CLR RINGAJMP START。=====正常搶答處理程序=====TRUE1: ACALL BARKMOV A,R2MOV R6,A。搶答時(shí)間R2送R6MOV R3,01HCLR OK。因?yàn)榇痤}的計(jì)時(shí)不再查詢搶答,所以就鎖了搶答AJMP COUNTTRUE2:ACALL BARKMOV A,R2MOV R6,AMOV R3,02HCLR OKAJMP COUNTTRUE3:ACALL BARKMOV A,R2MOV R6,AMOV R3,03HCLR OKAJMP COUNTTRUE4:ACALL BARKMOV A,R2MOV R6,AMOV R3,04HCLR OKAJMP COUNTTRUE5:ACALL BARK MOV A,R2MOV R6,AMOV R3,05HCLR OKAJMP COUNTTRUE6: ACALL BARK MOV A,R2MOV R6,AMOV R3,06HCLR OKAJMP COUNTTRUE7:ACALL BARK MOV A,R2MOV R6,AMOV R3,07HCLR OKAJMP COUNTTRUE8:ACALL BARK MOV A,R2MOV R6,AMOV R3,08HCLR OKAJMP COUNT。=====犯規(guī)搶答程序=====ERROR: MOV R0,00HMOV TH1,3CHMOV TL1,0B0HMOV 34H,R3。犯規(guī)號(hào)數(shù)暫存與(34H)HERE: MOV A,R0CJNE A,06H,FLASH。滅并停響CLR RING MOV R3,0AHMOV R4,0AHMOV R5,0AH。三燈全滅AJMP CHECK1FLASH: CJNE A,0CH,CHECK1。,響并顯示號(hào)數(shù)并清R0,重新計(jì)SETB RINGMOV R0,00HMOV R3,34H。取回號(hào)數(shù)MOV R5,0BHMOV R4,0BH。顯示FF和號(hào)數(shù)AJMP CHECK1CHECK1: JNB ,QUIT1ACALL DISPLAYAJMP HEREQUIT1: CLR RINGCLR OKAJMP START。=====顯示程序=====DISPLAY:MOV DPTR,DAT1MOV A,R3MOVC A,@A+DPTRMOV P2,0feHMOV P0,AACALL DELAY2MOV DPTR,DAT2MOV A,R5MOVC A,@A+DPTRMOV P2,0fdHMOV P0,AACALL DELAY2MOV A,R4MOVC A,@A+DPTRMOV P2,0fbHMOV P0,AACALL DELAY2RETDAT1:DB 00h,06h,5bh,4fh,66h,6dh,7dh,07h,7fh,6fh,00H,71H 。滅,1,2,3,4,5,6,7,8,9,滅,FDAT2:DB 3fh,06h,5bh,4fh,66h,6dh,7dh,07h,7fh,6fh,00H,71H。====加減時(shí)間延時(shí)(起到不會(huì)按下就加N個(gè)數(shù))======DELAY1: MOV 35H,08HLOOP0: ACALL DISPLAYDJNZ 35H,LOOP0RET。=====延時(shí)4236個(gè)機(jī)器周期(去抖動(dòng)用到)=====DELAY: MOV 32H,12HLOOP: MOV 33H,0AFHLOOP1: DJNZ 33H,LOOP1DJNZ 32H,LOOPRET。=====延時(shí)4236個(gè)機(jī)器周期(顯示用到)=====DELAY2: MOV 32H,43HLOOP3: MOV 33H,1EHMOV A,R7 。JNZ AAAA1 。沒讀到有效數(shù)據(jù)時(shí)繼續(xù)轉(zhuǎn)到AAAA1LOOP2: DJNZ 33H,LOOP2DJNZ 32H,LOOP3RET。=====讀搶答按鍵數(shù)據(jù)口程序=====AAAA1: MOV A,P1CJNE A,0FFH,AA1 。當(dāng)不全為1時(shí)的數(shù)據(jù)為有效數(shù)據(jù)AA0: MOV 36H,A 。將有效數(shù)據(jù)送到36H暫存AJMP LOOP2AA1: DEC R7 AJMP AA0。=====發(fā)聲程序=====BARK: SETB RINGACALL DELAY1ACALL DELAY1CLR RING。按鍵發(fā)聲RET。=====TO溢出中斷(響鈴程序)=====T0INT: MOV TH0,0ECHMOV TL0,0FFHJNB RING,OUT。CPL 。OUT: RETI。=====T1溢出中斷(計(jì)時(shí)程序)=====T1INT: MOV TH1,3CHMOV TL1,0B0HINC R0RETIEND附錄二 元件清單元件清單序號(hào)元件名稱型號(hào)規(guī)格單位數(shù)量1電阻10K歐姆只7400歐姆只7只32瓷片電容30pF只2只13晶振12MHz只14三極管8550只45單片機(jī)AT89C51塊16集成電路插座40腳塊17接線柱2位只28按鈕獨(dú)立式只1494位一體數(shù)碼管共陽只110線路板單面覆銅板塊1
點(diǎn)擊復(fù)制文檔內(nèi)容
醫(yī)療健康相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1