【正文】
distemp(9,temp)。 j3=0。 //關出水閥 } if(temp(deTemp+2)*10) { KeChu=1。 //進水閥打開 j2=0。 } } void distemp(uchar add,uint temp) { uchar bai,shi,ge。 write_(0x06)。 lcden=1 。}void delay10ms(void) { unsigned char i,j。 //下限限位開關sbit key1=P3^4。北京。特別是在畢業(yè)設計整個過程中,高老師對我進行了盡心盡力地指導,他認真負責的工作態(tài)度,嚴謹?shù)闹螌W精神和深厚的專業(yè)知識令我受益匪淺,終身難忘。 第三部分是供電。⑵數(shù)字式接口液晶顯示器都是數(shù)字式的,和單片機系統(tǒng)的接口更加簡單可靠,操作更加方便。本次畢業(yè)設計我們選用的是液晶顯示器。C (–67176。本設計的時鐘電路如圖24所示: 圖24 時鐘電路復位是單片機的初始化操作,其重要功能是把PC初始化為0000H,是單片機從0000H單元開始執(zhí)行程序。手動電平方式和脈沖方式是常見的兩種按鍵手動復位方式,而電平復位是由RST兩端將電阻與電源VCC接通,從而實現(xiàn)此功能的。第四,提高并行口驅動能力,以減少外圍驅動芯片,增加外圍I/O口邏輯功能和控制的靈活性。目前,單片機在工業(yè)控制系統(tǒng)等諸多領域得到了極為廣泛的應用。s pursuit of material life, people on the level of automation is more and more high. The control system of the design is the use of automatic control technology to realize its function, which not only greatly improves the production efficiency, but also reduces the danger coefficient, protect the personal safety. This design uses STC89C52 microcontroller as the data processing and control unit, data processing, control the temperature sensor and the liquid level sensor, and pass the signal of temperature and liquid level signal to the microcontroller. After the singlechip microputer for data processing, sends a control signal to control the execution module state, and the temperature and liquid level height is sent to the LCD display. Acquisition and display this design can not only realize the temperature and liquid level signal, and can use the buttons to set the temperature and liquid level limit value, through the operation to the data processing, sends a control signal to control the liquid level of the objective. This system uses STC89C52 as the core, using the temperature sensor DS18B20 to collect temperature signal, at the same time with the ball float type liquid level sensor to measure liquid level, maximum and minimum value and through the keyboard to set the level, so as to achieve the purpose of automatic control.Keywords: single chip microputer。 temperature sensor。本設計也是采用單片機作為系統(tǒng)的控制核心,根據(jù)系統(tǒng)設計的要求與要實現(xiàn)的功能,本次畢業(yè)設計采用STC89C52RC單片機為控制核心,通過DS18B20采集溫度,然后通過模數(shù)轉換,與單片機連接,并通過LED1602顯示出來,同時把采集到的溫度信號與給定值比較,如果溫度高于給定值的最高值或低于給定值的最低值時,系統(tǒng)就會自動的進行的停止加水和開始加水,從而實現(xiàn)熱水鍋爐溫度檢測系統(tǒng)的設計,本設計還采用浮球式液位傳感器檢測鍋爐內的水位,并利用單片機來控制水泵,從而達到控制液位的目的。第五,以串行方式為主的外圍擴展。單片機的時鐘電路由通常由兩個電容和一個晶振而組成,本設計的單片機復位電路如下圖22所示,單片機最小系統(tǒng)如圖23所示:圖22 單片機復位電路圖23 單片機最小系統(tǒng)STC89C52是一款低功耗,高性能的CMOS8位微控制器。出了進入系統(tǒng)的正常初始化之外,當由于程序運行出錯或操作錯誤使系統(tǒng)處于死鎖狀態(tài)時,也需要復位鍵重新啟動。F ~+257176。(1)液晶顯示原理 液晶顯示的原理是液晶是一種呈液體狀的化學物質,和磁場中的金屬有同樣的特點,當受到外界電場影響時,其分子會產生精確的有序排列。體積小、重量輕,液晶顯示器通過顯示屏上的電極控制液晶分子狀態(tài)來達到顯示的目的,在重量上比相同顯示面積的傳統(tǒng)顯示器要輕得多。15腳GND、16腳VCC(+5v)。無論在理論上還是在實踐中,他都給予了我極大的幫助,這期間學到的知識,對我將來的工作和學習都起到了很大的幫助,感謝他細心而又耐心的指導。中國電力出版社,2003,6[15][J].2008,10[16]黃金波,[J].遼寧工程技術大學學報,2002,6[17]Application of Fuzzy logic in boiler control. Vjekoslav Galzina。 //出水sbit key2=P3^2。 for(i=5。 delay(5)。 write_(0x01)。 bai=temp/100。 //出水閥關閉 j3=0。 j3=0。 shi=deTemp/10。 //EA=1。 temp=tmp()。 j2=0。 //加熱 j2=0。up==1) { j1=1。 delay(5)。 write_(0x0c)。 delay(5)。 i++)。 //上限限位開關sbit down=P0^5。北京工業(yè)大學碩士學位論文,2009,9 [14]林文孚,[M].。謝 辭在本次畢業(yè)設計中,我學到了很多平時學不到的東西,雖然在設計期間,我也遇到了不少的問題,但通過去圖書管查閱資料和請教老師,把問題基本都解決了,獲得了不少的專業(yè)知識。 TTL/CMOS數(shù)據(jù)從T1IN、T2IN輸入轉換成RS232數(shù)據(jù)從T1OUT、T2OUT送到電腦DB9插頭;DB9插頭的RS232數(shù)據(jù)從R1IN、R2IN輸入轉換成TTL/CMOS數(shù)據(jù)后從R1OUT、R2OUT輸出。因此,液晶顯示器畫質高且不會閃爍。在單片機的人機交流界面中,一般的輸出方式有以下幾種:發(fā)光管、LED數(shù)碼管、液晶顯示器。C ~+125176。根據(jù)所實際選用的電容的大小值,從而達到對頻率的微調作用。除了上面所說的上電自動復位方式之外,有時按鍵手動復位也會用到。第三,增大存儲容量,片內EPROM的E2PROM化,程序的保密化。尤其是在單片機技術出現(xiàn)之后,由于它具有極好的穩(wěn)定性,更快和更準確的運算精度,它給現(xiàn)代工業(yè)控制測控領域帶來了極大的方便。關鍵詞: 單片機; 溫度傳感器;液位傳感器;驅動電路Design of boiler automatic watersupply systemAbstract:In many fields of modern science and technology, with the development of science and technology, automatic