【正文】
軟件,它提供了包括 C編譯器、宏匯編、連接器、庫管理和一個(gè)功能強(qiáng)大的仿真調(diào)試器等在 內(nèi)的完整開發(fā)方案,通過一個(gè)集成開發(fā)環(huán)境 (uVision)將這些部分組合在一起。 關(guān)鍵詞: Protues, STC89C51, DHT11, LED1602,溫度,濕度 淮陰師范學(xué)院 畢業(yè)論文 2 Abstract: By simulation software design for low power STC89C51 microcontroller as the core, the allocation of new lowpower microsensors DHT11, using liquid crystal display LED1602 data collected, realizing the collection of temperature, humidity, two parameters, processing and display functions. Based on greenhouse environment as the research object, this paper introduces the temperature and humidity temperature and humidity measuring circuit, microcontroller peripheral circuit, software flow, assembly language source progra m design, the design process of the data acquisition system and the realization of the simulation method. The method can improve system development efficiency, shorten the cycle and reduce costs, provides a means for the development of singlechip microputer system. Results show that the design of environmental parameters, temperature control precision is stable in o. 1 ℃ , humidity of the error can be controlled within + / % RH. Key words: Protues, STC89C51, DHT11, LED1602, temperature and humidity 淮陰師范學(xué)院 畢業(yè)論文 3 目 錄 1 前言 ...................................................... 4 2 整體方案設(shè)計(jì) .............................................. 4 溫濕度測量測量系統(tǒng)的基本構(gòu)成 ............................. 4 溫濕度測量系統(tǒng)原理 ....................................... 5 系統(tǒng)框圖 ................................................ 5 3 硬件電路設(shè)計(jì) .............................................. 5 溫濕度傳感器模塊 ......................................... 5 DHT11 簡介 ............................................. 6 傳感器性能說明 ......................................... 6 接口說明 .............................................. 7 電源引腳 .............................................. 7 串行接口 .............................................. 7 測量分辨率 ............................................ 9 LCD 顯示模塊 ............................................. 8 LCD1602 簡介 ........................................... 8 LCD1602 接口電路 ...................................... 11 電源模塊 ............................................... 11 單片機(jī) STC89C51 模塊 ..................................... 12 4 系統(tǒng)軟件設(shè)計(jì) ............................................. 15 系統(tǒng)程序設(shè)計(jì)方案 ........................................ 15 系統(tǒng)流程圖 ............................................. 15 系統(tǒng)主要程序 ........................................... 15 5 系統(tǒng)仿真與調(diào)試 ........................................... 18 仿真結(jié)果 ............................................... 18 實(shí)驗(yàn)數(shù)據(jù)記錄 ........................................... 20 結(jié)論 ........................................................ 21 參考文獻(xiàn) .................................................... 22 致謝 ........................................................ 23 淮陰師范學(xué)院 畢業(yè)論文 4 1 前言 在單片機(jī)應(yīng)用系統(tǒng)的傳統(tǒng)開發(fā)方式中,對系統(tǒng)的硬件電路進(jìn)行設(shè)計(jì)完成后,需要制作成實(shí)物的電路板,并結(jié)合單片機(jī)仿真器進(jìn)行軟硬件的聯(lián)合調(diào)試。 文章以溫室 環(huán)境作為研究對象,介紹了溫濕度溫濕度測量電路、單片機(jī)外圍電路、軟件流程、匯編語言源程序的設(shè)計(jì)、數(shù)據(jù)采集系統(tǒng)的設(shè)計(jì)過程及仿真的實(shí)現(xiàn)方法。該方法可以提高系統(tǒng)的開發(fā)效率、縮短周期和降低成本,為單片機(jī)系統(tǒng)的開發(fā)提供了手段。如果遇到設(shè)計(jì)中需要修改,則往往需要對電路板重復(fù)制板,系統(tǒng)功能的驗(yàn)證不能夠及時(shí)得到反映 [1]