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

正文內(nèi)容

基于at89s52單片機的溫濕度檢測儀-畢業(yè)設計-wenkub

2023-06-21 22:58:55 本頁面
 

【正文】 then each module design process, with C language to achieve, to bine the various parts of coordination, and eventually realize the environmental temperature and humidity in the realtime detection. The temperature and humidity detector can basically plete the temperature and humidity testing, but because of personal factors such as lack of experience, the design of some deficiencies, there are certain practical products from the gap, there are some aspects need to be improved.KEYWORDS:AT89S52MCU,A/Dconversion, Sensor, LCD, Temperature and humidity目 錄前 言 1第1章 溫濕度檢測儀總體技術方案 2167。 溫濕度檢測儀的硬件設計總體結構方案 3167。 溫度檢測電路 7167。 溫濕度檢測模塊程序設計 12167。 鍵盤掃描 19167。本文介紹的濕度檢測儀就是以AT89S52單片機作為核心控制器設計的,它具有體積小、操作簡單、性能穩(wěn)定、測量精度高和抗干擾能力強等優(yōu)點,可廣泛應用于需要對溫濕度進行測控的領域中。溫濕度檢測儀總體技術方案溫濕度作為環(huán)境中的兩項重要參數(shù),在很多方面都起著重要的作用。該設計主要分為硬件設計和軟件部分的設計,下面先總體介紹設計的性能指標和軟硬件的總體設計方案。5%,檢測范圍0~100%;2. 溫度測量精度: 177。溫濕度上下限顯示和當前顯示都由LCD12864顯示屏顯示,可通過鍵盤電路來選擇檢測濕度或者檢測溫度。鍵盤輸入電路與LCD顯示電路實現(xiàn)人機對話的功能。主程序的內(nèi)容包括:主程序的起始地址,中斷服務程序的起始地址,有關內(nèi)存單元及相關部件的初始化和一些子程序相互調用,主程序是整個程序的框架,決定了檢測儀的工作性能。 溫濕度檢測儀AT89S52單片機電路的設計At89S52 是一種低功耗、高性能CMOS8位微控制器,具有 8K 在系統(tǒng)可編程Flash 存儲器。 AT89S52具有以下標準功能: 8k字節(jié)Flash,256字節(jié)RAM, 32 位I/O 口線,看門狗定時器,2 個數(shù)據(jù)指針,三個16 位 定時器/計數(shù)器,一個6向量2級中斷結構,全雙工串行口, 片內(nèi)晶振及時鐘電路。8 位微控制器 8K 字節(jié)在系統(tǒng)可編程 Flash AT89S52 P0 口:P0口是一個8位漏極開路的雙向I/O口。在這種模式下,   P0不具有內(nèi)部上拉電阻。對P1 端口寫“1”時,內(nèi)部上拉電阻把端口拉高,此時可以作為輸入   口使用。   引腳號第二功能    T2(定時器/計數(shù)器T2的外部計數(shù)輸入),時鐘輸出    T2EX(定時器/計數(shù)器T2的捕捉/重載觸發(fā)信號和方向控制)    MOSI(在系統(tǒng)編程用)    MISO(在系統(tǒng)編程用)    SCK(在系統(tǒng)編程用)   P2 口:P2 口是一個具有內(nèi)部上拉電阻的8 位雙向I/O 口,P2 輸出緩沖器能驅動4 個   TTL 邏輯電平。在這種應用中,P2 口使用很強的內(nèi)部上拉發(fā)送1。對P3 端口寫“1”時,內(nèi)部上拉電阻把端口拉高,此時可以作為輸入   口使用。   端口引腳 第二功能    RXD(串行輸入口)    TXD(串行輸出口)    INTO(外中斷0)    INT1(外中斷1)    TO(定時/計數(shù)器0)    T1(定時/計數(shù)器1)    WR(外部數(shù)據(jù)存儲器寫選通)    RD(外部數(shù)據(jù)存儲器讀選通)   此外,P3口還接收一些用于FLASH閃存編程和程序校驗的控制信號。一般情況下,ALE仍以時鐘振蕩頻率的1/6輸出固定的脈沖信號,因此它可對外輸出時鐘或用于定時目的。該位置位后,只有一條MOVX和MOVC指令才能將ALE激活。需注意的是:如果加密位LB1被編程,復位時內(nèi)部會鎖存EA端狀態(tài)。 溫濕度檢測儀的硬件電路設計該溫濕度檢測儀的硬件系統(tǒng)由以下部分組成:溫度測量電路、相對濕度度測量電路、鍵盤掃描電路、LCD顯示電路、ISP下載電路,各部分設計如下。 DS18B20產(chǎn)品的特點 (1)、只要求一個端口即可實現(xiàn)通信。C到+125。DS18B20的引腳介紹 引腳功能描述1 GND 地信號2 DQ 數(shù)據(jù)輸入/輸出引腳。 濕度檢測電路  濕敏電阻是利用濕敏材料吸收空氣中的水分而導致本身電阻值發(fā)生變化這一原理而制成的?! ?)測濕范圍(%RH):指濕敏電阻器的濕度測量范圍。特性濕敏電阻器特性:是一種對環(huán)境濕度敏感的元件,它的電阻值能隨著環(huán)境的相對濕度變化而變化。本設計中采用兩個數(shù)碼管進行動態(tài)顯示,用三極管C8550驅動來顯示相對濕度的電壓。當鎖存使能端LE為高時,這些器件的鎖存對于數(shù)據(jù)是透明的(也就是說輸出同 步)。任何從總線接收數(shù)據(jù)的器件為接收器。   SDA 串行數(shù)據(jù)/地址   AT24C02 雙向串行數(shù)據(jù)/地址管腳用于器件所有數(shù)據(jù)的發(fā)送或接收,SDA 是一個開漏輸出管腳,可與其它開漏輸出或集電極開路輸出進行線或(wireOR)。   WP 寫保護 如果WP管腳連接到Vcc,所有的內(nèi)容都被寫保護只能讀。主程序設計框圖如上圖31。 溫濕度檢測模塊程序設計167。//整屏不移動 write_zl(0x0C)。 delay(80)。 k=dat。 DQ=kamp。 k=1。j8。 date=date1。} return(date)。//只對一個操作就跳過讀序列號操作 write_dat(0x44)。 write_dat(0xcc)。//讀取溫度高位MSB if(tempHamp。 //共16位 tem=tem|tempL。tem=((tempH*256)+tempL)*。 ge=temp%10。)。 write_sj(0x00)。)。 write_sj(0x30+shi)。 write_sj(0x00)。 //個位公用總的顯示write_sj(0x30+ge)。i++) {sounder=~sounder。P26=0。 ET1=1。 shuma=0。 yejing=0。 shuma=1。 sdxs()。_nop_()。 //轉換結束OE置高電平 數(shù)據(jù)出現(xiàn)在 D7D0引腳上 a=P0。P21=0。P20=0。 P20=0。}167。 if(button1==0) { while(button1==0)。switch(kk) { case 1:write_zl(0x80+10)。break。break。 write_zl(0x0c)。 } } } if(button2==0){ delay2(5)。if(Ush9)Ush=3。if(Ushi9)Ushi=1。 case 2:write_zl(0x80+11)。write(13,Ug)。write(9,Uge)。if(Dsh2)Dsh=0。 if(Dshi2)Dshi=0。 case 4:write_zl(0x80+0x40+11)。write(15,Dg)。 write(11,Dge)。 switch(kk) { case 1: write_zl(0x80+10)。write(8,Ushi)。 write(12,Ush)。 if(Uge0)Uge=9。 if(Ug0)Ug=9。 case 3: write_zl(0x80+0x40+10)。 write(10,Dshi)。write(14,Dsh)。 if(Dge0)Dge=9。if(Dg0)Dg=9。 } } } if(button4==0) { delay2(5)。write_zl(0x01)。 display_shidu()。write_zl(0x01)。 break。 delay(5)。 delay(2)。 delay(4)。 while(sda==1amp。 delay(5)。 sck=0。j++) { temp=temp1。 sck=0。 sck=0。k++) { n=(n1)|sda。 delay(5)。 response()。 delay(2)。 stop()。 response()。 delay(2)。 delay(2)。} 結 論該檢測儀適用于需要對溫濕度實時檢測的多種場合。在這次設計中本設計也遇到不少問題,也正是對這些問題的逐步解決該檢測儀順利設計完成。此檢測儀還可以與溫度濕度發(fā)生裝置連接來實現(xiàn)對溫度濕度的調整功能,加上報警裝置后就可以對環(huán)境溫度超過上下限時發(fā)出警報,本設計序能夠實現(xiàn)溫濕度的同時檢測功能。:北京航空航天出版社,2002 致謝 本設計的完成是在我們的導師李美麗老師的細心指導下進行的。C in176。F increments? Temperature is read as a 9–bit digital value.? Converts temperature to digital word in 200 ms (typ.)? User–definable, nonvolatile temperature alarm settings? Alarm search mand identifies and addressesdevices whose temperature is outside of programmedlimits (temperature alarm condition)? Applications include thermostatic controls, industrialsystems, consumer products, thermometers, or anythermally sensitive systemDESCRIPTIONThe DS1820 Digital Thermometer provides 9–bit temperature readings which indicate the temperature of the device. Information is sent to/from the DS1820 over a 1–Wire interface, so that only one wire (and ground) needs to be connected from a central microprocessor to a DS1820. Power for reading, writing, and performing temperature conversions can be derived from the data line itself with no need for an external power source. Because each DS1820 contains a unique silicon serial number, multiple DS1820s can exist on the same 1–Wire bus. This allows for placing temperature sensors in many different where this feature is useful include HVAC environmental controls, sensing temperatures inside buildings, equipment or machinery, and in process monitoring and control.DETAILED PIN DESCRIPTIONOVERVIEWThe block diagram of Figure 1 shows the major ponentsof the DS1820. The DS1820 has three main data ponents: 1) 64–bit lasered ROM, 2) temperature and sensor, 3) nonvolatile temperature alarm triggers TH and TL. The device derives its power from the 1–Wire munication line by storing energy on an internal capacitor during periods of time when the signal line is high and continues to operate off this power source during the low times of
點擊復制文檔內(nèi)容
公司管理相關推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1