【正文】
; 清累加器 A MOV 2FH, A MOV 30H, A MOV 3BH, A MOV 3CH, A 清暫存單元 MOV 3DH, A MOV 3EH, A MOV 44H, A MOV DISM0, A MOV DISM1, A MOV DISM2, A MOV DISM3, A 清顯示緩沖區(qū) MOV DISM4, A MOV DISM5, A MOV TMOD, 56H MOV TL0, 06H MOV TH0, 06H CLR PT0 SETB TR0 SETB ET0 SETB EA LOOP ACALL DISPLY ;調(diào)用顯示程序 ACALL SCAN ;調(diào)用掃描程序 AJMP LOOP ;等待中斷 應(yīng)當(dāng)注意:由于 T0 被設(shè)定為計(jì)數(shù)器方式 2,初值為 06H,故它的溢出中斷時(shí)間為 250 個(gè)過零同步脈沖。 T0中斷服務(wù)程序框圖如圖 所示 基于單片機(jī)的溫度控制 系統(tǒng)設(shè)計(jì) 系統(tǒng)軟件設(shè)計(jì) 16 圖 T0中斷服務(wù)程序流程圖 T0 中斷服務(wù)程序: ORG 000BH AJMP CT0 CT0: PUSH ACC ; PUSH DPL ; 保護(hù)現(xiàn)場 PUSH DPH ; SETB D5H ; 置標(biāo)志 ACALL SAMP ACALL FILTER CJNE A, 42H, TPL WL: MOV C, 5EH MOV 5FH, C CLR 5EH ACALL UPL POP DPH POP DPL POP ACC RETI ;中斷返回 TPL: JNC TPL1 基于單片機(jī)的溫度控制 系統(tǒng)設(shè)計(jì) 系統(tǒng)軟件設(shè)計(jì) 17 CLR 5FH ;清上次越限標(biāo)志 CJNE A, 43H, MTPL HAT: SETB ;若溫度不越限,則綠燈亮 ACALL PID MOV A, 2FH CPL A ; INC A ; 對(duì) PID 值求補(bǔ),作為 TL1 值 NM: SETB MOV TL1, A MOV TH1,0FFH SETB PT1 SETB TR1 ;啟動(dòng) T1 SETB ET1 ;允許 T1 中斷 ACALL TRAST LOOP: ACALL DISPLY ;顯示溫度 JB D5H,LOOP ;等待 T1 中斷 POP DPH POP DPL POP ACC RETI MTPL: JNC HAT SETB ;否則,下限聲光報(bào)警 MOV A,45H CPL A INC A AJMP NM TPL1: SETB 5EH JNB 5FH,WL INC 44H ;越限計(jì)數(shù)器加 1 MOV A,44H CLR C SUBB A,N ;越限 N次嗎? JNZ WL SETB CLR 5EH 基于單片機(jī)的溫度控制 系統(tǒng)設(shè)計(jì) 系統(tǒng)軟件設(shè)計(jì) 18 CLR 5FH POP DPH POP DPL POP ACC RETI 采樣子程序 采樣子程序 SAMP:流程圖如下圖所示, 圖 采樣子程序流程圖 采樣子程序: SAMP: MOV R0,2CH ;采樣值始址送 R0 MOV R2,03H MOV DPTR,03F8H SAM1: MOVX DPTR,A ;啟動(dòng) ADC0809 工作 MOV R3,20H N Y 選同 IN0 啟動(dòng) ADC 延時(shí) A/D 完成? 所有采樣結(jié)束? 返 回 N 采樣值始址送 R0 采樣次數(shù)送 R2 基于單片機(jī)的溫度控制 系統(tǒng)設(shè)計(jì) 系統(tǒng)軟件設(shè)計(jì) 19 DLY: DJNZ R3,DLY ;延時(shí) HERE: JB ,HERE MOVX A,DPTR MOV R0,A ;存放采樣值 INC R0 DJNC R2,SAM1 RET 數(shù)字濾波程序 數(shù)字濾波程序 FILTER:用于濾去來自控制現(xiàn)場對(duì)采樣值的干擾。 基于單片機(jī)的溫度控制系統(tǒng)設(shè)計(jì) 參考文獻(xiàn) 22 參考文獻(xiàn) [1] 何立民 .單片機(jī)高級(jí)教程應(yīng)用 [M]. 北京: 北京航空航天大學(xué)出版社 , 2021, 3~ 14 [2] 賴壽宏 .微型計(jì)算機(jī)控制技術(shù) [M]. 北京:機(jī)械工業(yè)出版社 .2021, 21~ 42. [3] 康華光主編 .電子技術(shù)基礎(chǔ) [M].北京:高等教育出版社 , 1998, 121~ 142. [4] 秦實(shí)宏等 . 單片機(jī)原理與應(yīng)用技術(shù) [M].北京 :中國水利水電出版社 , 2021, 27~ 48. [5] 李洪編著 .Protel 99電路設(shè)計(jì) [Z]. 北京: 人民交通出版社, 2021, 61~ 92. [6] 方大千等 .實(shí)用電子控制電路 [M].北京:國防工業(yè)出版社, 2021,234~ 304. [7] 曹巧媛 .單片機(jī)原理及應(yīng)用 [M].北京:電子工業(yè)出版社, 1997,125~ 186. [8] 李華等 .單片機(jī)實(shí)用接口技術(shù) [M]. 北京: 北京航空航天大學(xué)出版社 , 2021, 60~ 72. [9] 周慈航 .單片機(jī)程序設(shè)計(jì)基礎(chǔ) [M]. 北京: 北京航空航天大學(xué)出版社 , 1999,156~ 214. [10] 陸子明 .單片機(jī)設(shè)計(jì)與應(yīng)用基礎(chǔ)教程 [M].北京 :北京國防工業(yè)出版社 ,2021,126~ 210. ag an employment tribunal clai Emloyment tribunals sort out disagreements between employers and employees. You may need to make a claim to an employment tribunal if: you don39。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 give advice by , click on nearest CAB. For more information about making a claim to an employment tribunal, see Employment tribunals. The (lack of) air up there Cay man Islandsbased Webb, the Watch m head of Fifa39。s about how he felt and I would like to speak to him first to find out what his experience was. Uefa has opened disciplinary proceedings against CSKA for the racist behaviour of their fans during City39。s plaint. In a statement the Russian side added: We found no racist insults from fans of CSKA. Age has reached the end of the beginning of a word. May be guilty in his seems to passing a lot of different life became the appearance of the same day。二十年的人生軌跡深深淺淺,突然就感覺到有些事情,非做不可了。 Then in high school, think don39。 A person39。嫌惡過自己的怯懦,最終卻發(fā)現(xiàn)有很多 緣分 ,有很多錯(cuò)過,好像冥冥之中真的已經(jīng)注定。 From the corner at the beginning of deep friendship。 Baumgartner the disappointing news: Mission aborted. r plays an important role in this mission. Starting at the ground, conditions have to be very calm winds less than 2 mph, with no precipitation or humidity and limited cloud cover. The balloon, with capsule attached, will move through the lower level of the atmosphere (the troposphere) where our daytoday weather lives. It will climb higher than the tip of Mount Everest ( miles/ kilometers), drifting even higher than the cruising altitude of mercial 基于單片機(jī)的溫度控制系統(tǒng)設(shè)計(jì) 參考文獻(xiàn) 25 airliners ( miles/ kilometers) and into the stratosphere. As he crosses the boundary layer (called the tropopause),e can expect a lot of turbulence. We often close ourselves off when traumatic events happen in our lives。下面六個(gè)方法有助于你更完滿透徹地敞開心扉。 2. Embrace the unfortable We all know