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

正文內(nèi)容

基于51單片機(jī)數(shù)字鐘設(shè)計(jì)(存儲(chǔ)版)

  

【正文】 與短按,防止誤快進(jìn)ANL A,07H JZ EXIT_KEY CLR 該位使用TABLE1以消除前置0LCALL DELAYMOV A,2BHMOV P0,ASETB MOV A,0BFHCLR MOV DPTR,TABLEJB 48H,DISPMOV 2DH,0AH如果長(zhǎng)按按鍵(調(diào)時(shí)快進(jìn)),則跳過閃爍處理程序MOV 2CH,A轉(zhuǎn)換出分個(gè)位,存入2DHMOV 2FH,0AH如果長(zhǎng)按按鍵(調(diào)時(shí)快進(jìn)),則跳過閃爍處理程序MOV 2EH,A轉(zhuǎn)換出秒個(gè)位,存入2FHRETI ADD A,01H產(chǎn)生1秒基準(zhǔn)時(shí)鐘 INC 20H CJNE A,10,ADD_TIMEMOV TH0,3CHLJMP MAIN LCALL ADD_KEY START: ORG 0000H鬧鐘1 分MOV 52H,A 。分MOV 21H,A 。設(shè)置界面修改位的閃爍頻率 具體代碼在SERVE 1秒中斷服務(wù)中MOV 37H,0FFH 。4. 鬧鐘設(shè)置進(jìn)入鬧鐘設(shè)置界面后,通過調(diào)整選擇鍵SET_KEY選擇調(diào)整位,選中位閃爍。所以綜上所述,此次實(shí)驗(yàn)中所完成的數(shù)字鐘有著強(qiáng)大的功能和良好的市場(chǎng)前景,復(fù)合電子類產(chǎn)品的發(fā)展趨勢(shì)。與傳統(tǒng)機(jī)械表相比,它具有走時(shí)精確,顯示直觀等特點(diǎn)。現(xiàn)在我們利用單片機(jī)實(shí)現(xiàn)數(shù)字時(shí)鐘計(jì)時(shí)功能的主要內(nèi)容,其中AT89C51是核心元件同時(shí)采用數(shù)碼管動(dòng)態(tài)顯示“時(shí)”,“分”,“秒”的現(xiàn)代計(jì)時(shí)裝置。而51單片機(jī)是各單片機(jī)中最為典型和最有代表性的一種。按增加鍵ADD_KEY或減少鍵DEC_KEY設(shè)置所需要的時(shí)間。棧指針地址賦值MOV 3CH,0CH。時(shí)MOV 22H,A 。鬧鐘1 時(shí)MOV 51H,A 。ORG 000BHSETB 47H調(diào)整選擇鍵功能標(biāo)志:0正常走時(shí)、1調(diào)時(shí)、2調(diào)分、3調(diào)秒清零秒寄存器清零時(shí)寄存器設(shè)定定時(shí)器0工作方式1調(diào)用顯示子程序 JB 46H,MAIN取反調(diào)時(shí)閃爍標(biāo)志位CJNE A,20,RETI1作十進(jìn)制調(diào)整一分鐘到 MOV 22H,A MOV A,23H CJNE A,24H,RETI1 SWAP A 顯示秒個(gè)位CLR MOVC A,A+DPTRSETB CLR MOV DPTR,TABLE1顯示時(shí)十位MOV A,P1 延時(shí)去抖動(dòng)MOV A,P1 INC R4MOV 24H,00HDA ACJNE R1,02H,NEXT2選擇鍵功能標(biāo)志為3,調(diào)秒,否則跳出CJNE R5,04H,EXITADD A,99HMOV 23H,23HADD A,99HMOV 22H,59HNEXT4:字形顯示編碼TABLE1:矩陣鍵盤檢測(cè)子程序 將檢測(cè)到的鍵值存入r7CJNE R7,0FH,ZHU2AJMP ZHUXUNHUANZHU2:CJNE R7,0BH,ZHU3AJMP SHIJIANSHEZHIZHU3:CJNE R7,0CH,ZHU4AJMP WANNIANLISHEZHIZHU4:CJNE R7,01H,ZHU5AJMP NAOZHONGSHEZHIZHU5:CJNE R7,02H,ZHU6AJMP NAOZHONGSHEZHIZHU6:CJNE R7,03H,ZHU7AJMP NAOZHONGSHEZHIZHU7:CJNE R7,04H,ZHU8AJMP NAOZHONGSHEZHIZHU8:CJNE R7,05H,ZHUXUNHUAN0AJMP NAOZHONGSHEZHIZHUXUNHUAN0: AJMP ZHUXUNHUAN//年月日校正子程序 用于萬年歷進(jìn)位和萬年歷設(shè)置 防止出現(xiàn)不存在的時(shí)間NYR:MOV A,33HCJNE A,32,MONTH 。轉(zhuǎn)換設(shè)置界面MOV 39H,11011111B 。修改位 右移 同上MOV A,37HCJNE A,11111110B,WSS0RR ARR ARR AMOV 37H,AS20:JNB INT0,S20AJMP WMWSS0:RR AMOV 37H,AS21:JNB INT0,S21 AJMP WMWS2: JB INT1,WM1 。s20 退出鬧鐘設(shè)置 跳回主程序//鬧鐘數(shù)據(jù)保存MOV 39H,0FFHMOV 3DH,00HMOV 3AH,11111101BMOV R1,09HMOV A,45HMOV B,0AHMUL ABADD A,44HMOV R1,AINC R1MOV A,43HMOV B,0AHMUL ABADD A,42HMOV R1,AINC R1MOV A,41HMOV B,0AHMUL ABADD A,40HMOV R1,AAJMP ZHUXUNHUANNS1: JB INT0,NS2 。s20 退出鬧鈴 跳回主循環(huán)SETB AJMP ZHUXUNHUAN/****************************************************///鬧鐘設(shè)置NAOZHONGSHEZHI://檢測(cè)是哪個(gè)鬧鐘 并初始化鬧鐘設(shè)置CJNE R7,01H,NZ2MOV A,50HMOV B,0AHDIV ABMOV 45H,AMOV 44H,BMOV A,51HMOV B,0AHDIV ABMOV 43H,AMOV 42H,BMOV A,52HMOV B,0AHDIV ABMOV 41H,AMOV 40H,BMOV 09H,50HMOV 47H,01HMOV 08H,0AHAJMP NANJIANNZ2:CJNE R7,02H,NZ3MOV A,53HMOV B,0AHDIV ABMOV 45H,AMOV 44H,BMOV A,54HMOV B,0AHDIV ABMOV 43H,AMOV 42H,BMOV A,55HMOV B,0AHDIV ABMOV 41H,AMOV 40H,BMOV 09H,53HMOV 47H,02HMOV 08H,0BHAJMP NANJIANNZ3:CJNE R7,03H,NZ4MOV A,56HMOV B,0AHDIV ABMOV 45H,AMOV 44H,BMOV A,57HMOV B,0AHDIV ABMOV 43H,AMOV 42H,BMOV A,58HMOV B,0AHDIV ABMOV 41H,AMOV 40H,BMOV 09H,56HMOV 47H,03HMOV 08H,0CHAJMP NANJIANNZ4:CJNE R7,04H,NZ5MOV A,59HMOV B,0AHDIV ABMOV 45H,AMOV 44H,BMOV A,5AHMOV B,0AHDIV ABMOV 43H,AMOV 42H,BMOV A,5BHMOV B,0AHDIV ABMOV 41H,AMOV 40H,B MOV 09H,59HMOV 47H,04H MOV 08H,0DHAJMP NANJIANNZ5:MOV A,5CHMOV B,0AHDIV ABMOV 45H,AMOV 44H,BMOV A,5DHMOV B,0AHDIV ABMOV 43H,AMOV 42H,BMOV A,5EHMOV B,0AHDIV ABMOV 41H,AMOV 40H,BMOV 09H,5CHMOV 47H,05HMOV 08H,0EHAJMP NANJIANNANJIAN:MOV 3AH,11111100B 。s20 按下 退出設(shè)置界面MOV 39H,0FFH 。日為29時(shí)分辨閏平年2月MOV A,34HCJ
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1