外文資料翻譯---智能溫度傳感器ds18b20的原理及其應(yīng)用_第1頁
已閱讀1頁,還剩8頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)

文檔簡介

1、<p><b>  外文資料翻譯</b></p><p>  資料來源:第七屆國際測試技術(shù)研討會</p><p>  文章名:The Principle of the Intelligent Temperature </p><p>  Sensor DS18B20and Its Application &l

2、t;/p><p>  作 者:LI Shuo LI Xiaomi </p><p>  文 章 譯 名: 智能溫度傳感器DS18B20的原理與測量 </p><p>  姓 名: </p><p>  學(xué)

3、 號: </p><p>  指導(dǎo)教師(職稱): </p><p>  專 業(yè): </p><p>  班 級:

4、 </p><p>  所 在 學(xué) 院: </p><p><b>  譯文</b></p><p>  智能溫度傳感器DS18B20的原理及其應(yīng)用 摘要:功能和結(jié)構(gòu)的數(shù)字本文介紹了溫度測量芯片DS18B20的溫度測量系統(tǒng)的介紹,8051單片機作為其作品CPU和DALLAS18

5、B20其溫度數(shù)據(jù)收集 - 轉(zhuǎn)換。硬件的原理,軟件程圖和一個短暫的時間延遲子程序也都給予列出。</p><p>  關(guān)鍵詞:DS18B20溫度傳感器,單片機微機,硬件設(shè)計一、導(dǎo)言 單軌數(shù)字溫度傳感器DS18B20的生產(chǎn)由美國DALLAS公司。它可以轉(zhuǎn)換的溫度信號成字信號提供的微電腦處理直接。與傳統(tǒng)的相比熱敏電阻器,它可以直接讀出的措施溫度并根據(jù)實際它可以actualize 9?12的數(shù)值讀數(shù)方式通過簡單的

6、編程。信息讀取或?qū)懭隓S18B20的,只需要一個單一的線。溫度變換功率來源于為主線,主線本身可以供電源DS18B20的,不需要額外的電源。因此,如果使用DS18B20的,系統(tǒng)的結(jié)構(gòu)會更簡單,更可靠。因為每個DS18B20包含一個獨特的硅序列號,多個DS18B20s可以存在于相同的1-Wire總線。這允許澆筑溫度傳感器在許多不同的地方。應(yīng)用場合此功能是有用的,包括H??VAC環(huán)境控制,檢測建筑物內(nèi)的溫度,設(shè)備或機械,過程監(jiān)測和控制。二、

7、 DS18B20的結(jié)??構(gòu) DS18B20的四個組成部分的主要數(shù)據(jù):(1)64位光刻ROM(2)溫度傳感器(3)非易失性溫度報警觸發(fā)器TH和TL(4)配置寄存器。設(shè)備源于其權(quán)力從1-Wire通信線通過儲能在一段時間的內(nèi)部電容當(dāng)信號線為高,并繼續(xù)操作此</p><p>  圖18051與DS18B20的連接</p><p>  使用一個MOSFET管和89C51的P1.0完成主要on

8、pulls線。當(dāng)DS18B20是在寫內(nèi)存操作或溫度A / D轉(zhuǎn)換操作,主線上,必須有強大的拉,與最大的時間必須在10個我們。選擇寄生電源供電方式,VDD和“GND必須結(jié)束稀土。因為僅在1-Wire模式有一條線,因此,發(fā)送或接收必須是三種狀態(tài)。 MCS51單片機控制DS18B20來完成變換,必須通過3個步驟:初始化,ROM操作,內(nèi)存操作。假設(shè)單片機系統(tǒng)使用晶體振蕩器的頻率是12 MHz,根據(jù)DS18B20的初始化,操作和寫入讀取操作。分別

9、編制3個程序:</p><p>  Void delay15(n)</p><p>  Unsigned char n;</p><p><b>  {do {</b></p><p>  _nop_();//01</p><p><b>  ……</b></p>

10、<p>  _nop_();//12</p><p><b>  n_</b></p><p><b>  }</b></p><p><b>  While(n)</b></p><p>  init是初始化子程序,寫是寫子程序,讀是讀子程序,所有數(shù)據(jù)讀寫開始從

11、最低位置。但在實驗不需要這種方式,加一個上拉電阻在數(shù)據(jù)線的4.7K,而且2英尺分別接電源和地。五、軟件設(shè)計 按照通訊協(xié)議DS18B20的,溫度轉(zhuǎn)換軟件的工作過程中可能意味著為圖 2</p><p>  圖2軟件設(shè)計流程六、DS18B20的時間延遲 雖然DS18B20的有很多優(yōu)點,但使用它并不是一件簡單的事。由于采用數(shù)據(jù)傳輸與信號線,所以運行周期為讀時間要求嚴格寫。為了確保嚴格的I / O周期D

12、S18B20的時間,需要做準確推遲。在對DS18B20的操作中,有15微秒,90微秒,應(yīng)使用270微秒,540微秒。因為所有這些延遲是15μs的多,所以可以寫一個DELAY15(n)函數(shù),源代碼如下:攜帶此功能推遲大約15微秒×ns的時間。有保證精密推遲,可以采取的DS18B20的或?qū)懖僮?。七。結(jié)論因為它的系統(tǒng)很簡單,溫度測量精度高,是連接方便,轉(zhuǎn)換速度快,帶來了方便的硬件設(shè)計,并能減少有效的成本,削減了開發(fā)周期。參考文獻

13、[1]達拉斯公司的單線數(shù)字溫度計DS1820的,1995[2]張沙戰(zhàn)友,鮑春來,方之光 DS18B20的電氣原理及應(yīng)用 測量與儀表,1999年2月[3]李群,徐張建云,陸浩。應(yīng)用 DS1820的溫度傳感器在慣性溫度測量系統(tǒng) AERO器, 2006年[4]孫劉曉波, DS1820的應(yīng)用在多點溫度控制系統(tǒng),哈爾濱工業(yè)大學(xué)學(xué)報商務(wù)部自然 </p><p><b>  科學(xué)版,2002

14、年</b></p><p><b>  原文</b></p><p>  The Principle of the Intelligent Temperature Sensor DS18B20and Its Application</p><p>  Abstract: The feature

15、 and structure of digital thermometer DS18B20 was introduced in this paper. Atemperature measure system was introduced, which works with 8051 Single Chip Microcomputer as its CPU and DALLAS18B20 for its temperature data

16、collection - conversion. The principium of hardware,flow chart of software and a brief time delay</p><p>  subprogram are also given.</p><p>  Key words: DS18B20 temperature sensor, Single Chip

17、Microcomputer, hardware design</p><p>  I. Introduction</p><p>  The single track numeral temperature sensor DS18B20 was produced by the American DALLAS Corporation. It can transform the tempera

18、ture signal into the serial digital signal supply the microcomputer processing directly. Compares with the traditional thermistor, it can directly readout the measure temperature, and according to the actual it can actua

19、lize 9~12 numerical value readout way through simple programming. The information read or write to the DS18B20 only need a single line. The temperature</p><p>  serial number, multiple DS18B20s can exist on

20、the same 1-Wire bus. This allows for placing temperature sensors in many different places. Applications where this feature is useful include HVAC environmental controls, sensing temperatures inside buildings,</p>

21、<p>  equipment or machinery, and process monitoring and control.</p><p>  II. Structural of the DS18B20</p><p>  The DS18B20 has four main data components: (1) 64-bit lasered ROM (2) tempe

22、rature sensor (3) nonvolatile temperature alarm triggers TH and TL ( 4) a configuration register. The device derives its power from the 1-Wire communication line by storing energy on an internal capacitor during periods

23、of time when the signal line is high and continues to operate off this power source during the low times of the 1-Wire line until it returns high to replenish the parasite (capacitor) supply. As an alterna</p><

24、;p>  III. The DS18B20 how to measure</p><p>  temperature</p><p>  The core functionality of the DS18B20 is its direct-to-digital temperature sensor. The resolution of the DS18B20 is configur

25、able (9, 10, 11, or 12 bits),with 12-bit readings the factory default state. This equates to a temperature resolution of 0.50C, 0.250C,0.1250C, or 0.06250C. Following the issuance of the Convert T [44h] command, a temper

26、ature conversion is performed and the thermal data is stored in the scratchpad memory in a 16-bit, sign-extended two’s complement format. The temperature in</p><p>  or conversion routine must be used.</p

27、><p>  IV. DS18B20 and monolithic integrated</p><p>  circuit typical connection design</p><p>  Take the MCS51 monolithic integrated circuit as the example, in Fig. 1 selects the para

28、sitic power source supply method, the P1.1 as the 1-Wire to provide the enough electric current. </p><p>  Use a MOSFET tube and 89C51 P1.0 to complete the onpulls of main line. WhenDS18B20 is in writing the

29、 memory operation or the temperature A/D transformation operation, on the main line must have strong pulls, and the maximal time must within 10 us. Selects the</p><p>  parasitic power source supply method,

30、VDD and the GND must end earths. Because the 1-Wire mode only has one line, therefore transmits or receive must be three states. The MCS51 controls DS18B20 to complete the transform must pass 3 steps:Initialization,ROM o

31、peration, memory operation.Supposing monolithic integrated circuit system uses</p><p>  the crystal oscillator frequency is 12 MHz, according to the DS18B20 initialization, writes operation and reads operati

32、on. Separately compiles 3 procedures: INIT is the initialization subroutine, WRITE is writes subroutine, READ is the reading subroutine, all data</p><p>  read-write start from the lowest position. But in th

33、e experiment do not need this way, add a pull resistance 4.7k in the data line, moreover 2 feet separately meet the power source and the earth.</p><p>  V. The design of the software</p><p>  Fo

34、llow the communication agreement of the</p><p>  DS18B20, the temperature conversion and the</p><p>  software process of the work can mean for the Fig. 2</p><p>  VI. The time dela

35、y about DS18B20</p><p>  Although the DS18B20 have lots of advantages,but using it is not a simple matter. Because of</p><p>  adopting the data transmission with a signal line, so itis strict t

36、o the operation cycle time request for read and write. In order to make sure the strict I/O cycle time of the DS18B20, need to do postpone accurately. In the operation of DS18B20, there are 15 μs, 90 μs,270 μs, 540 μs sh

37、ould be used. Because all these postpone is multiple of 15μs, so can write aDELAY15(n) function, the source code is as follows:</p><p>  Void delay15(n)</p><p>  Unsigned char n;</p><

38、p><b>  {do {</b></p><p>  _nop_();//01</p><p><b>  ……</b></p><p>  _nop_();//12</p><p><b>  n_</b></p><p><b> 

39、 }</b></p><p><b>  While(n)</b></p><p>  carry on with this function to postpone about 15 μs ×Ns time. Have the assurance of the precision postpone,can take read or write

40、operation to the DS18B20.</p><p>  VII. Conclusion</p><p>  Because of its system is simple, the temperaturemeasurement precision is high, the connection is</p><p>  convenient, the

41、 conversion rate is quick, has brought convenient for the hardware design, and can reduce the cost effectively, cut the development cycle.</p><p>  REFERENCES</p><p>  [1] Dallas Corp. One-Wire

42、Digital Thermometer DS1820.1995</p><p>  [2] Sha zhanyou, Chang chunlai, Fang zhiguang. The principle and application of DS18B20, Electrical Measurement & Instrumentation, Feb 1999</p><p>  

43、[3] Li qunsheng, Xu jianyun, Lu hao. Application of DS1820 D igital Temperature Sensors in IMUTemperature Measurement System. AERO WEAPONRY,2006</p><p>  [4] Sun xiaobo. Application of DS1820 in multipoint t

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 眾賞文庫僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論