溫度傳感器DS18B20 外文翻譯

上傳人:z**** 文檔編號:113568521 上傳時間:2022-06-26 格式:DOC 頁數(shù):6 大?。?03KB
收藏 版權(quán)申訴 舉報 下載
溫度傳感器DS18B20 外文翻譯_第1頁
第1頁 / 共6頁
溫度傳感器DS18B20 外文翻譯_第2頁
第2頁 / 共6頁
溫度傳感器DS18B20 外文翻譯_第3頁
第3頁 / 共6頁

本資源只提供3頁預(yù)覽,全部文檔請下載后查看!喜歡就下載吧,查找使用更方便

15 積分

下載資源

資源描述:

《溫度傳感器DS18B20 外文翻譯》由會員分享,可在線閱讀,更多相關(guān)《溫度傳感器DS18B20 外文翻譯(6頁珍藏版)》請在裝配圖網(wǎng)上搜索。

1、DS18B20 Programmable Resolution 1-Wire Digital Thermometer 1、DS18B20 FEATURES (1) Unique 1-Wire interface requires only one Port pin for communication, requires no external components (2) Each device has a unique 64-bit serial code stored in an onboard ROM (3) Can be powered form data line .Po

2、wer supply range is 3.0Vto 5.5V (4) Measures temperatures form -55°C to +125°C , ±0.5°C accuracy from -10°C to +85 °C ( 5) Thermometer resolution is user-selected from 9 to 12 bits ( 6) Converts temperature to 12-bit digital word in 750ms (max) ( 7 ) Alarm search command identifies and addresses

3、 devices whose temperature is outside of programmed limits (temperature alarm condition) ( 8) Available in 8-pin SOIC, and 3-bin TO -92 packages 2、DS18B20 BLOCK DIAFRAM Figure 1 shows a block diagram of the DS18B20, The 64-bite ROM stores the device's serial code. The scratchpad memory cont-abiyn

4、tse ttehmepe2rature egister that stores the digital output from the temperature sensor. In addition, the scratchpad provides access to the 1-byte upper and lower alarm trigger register (TH and TL), and the 1-byte configuratuion register. The configuration register allows the user to set the resoluti

5、on of the temperature-to-digital conversion to 9, 10, 11 or 12 bits. The TH,TL and configuration registers are nonvolatile(EEPROM), so they will retain data when the device is powered down. POV'R 6-^-ElTE kOM SUPPY SENSE 跡D 1 -V;ire Port 4—? MEMORY' CONTROL LOGIC SCRATCHPAD ALARM HIGH TkLG

6、G£R(TH.' EEG 1ST EE?. (EEPROi:) ALAJ^M 匸0百 TRIGG ER(TL) RI-GISTEE. (EE PROM; S-BILE- CRC G£NER_\TDB. L'£MP£kAlirE.E SENSOR l OX FIG UR ATX REGISTER (EEPEtOM) Figure 1 block diagram of the DS18B20 3、DS18B20 ROM COMMANDS ⑴ SEARCH ROM [0F0H] When a system is initially powered up, the mast

7、er must identify the ROM codes of all slave devices on the bus, which allows the master to determine the number of slaves and their device types. The master learns the ROM codes through a process of elimination that requires the master to perform a Search ROM cycle as many times as necessary to iden

8、 tify all of the -bifeROM? d6vices. (2) READ ROM [55H] This command can only be used when there is one slave on the bus. It allows the bus master to read the slave'64-bit ROM code without using the Search ROM procedure. If this command is used when there is more than one slave present on the bus,

9、a data collision will occur when all the slaves attempt to respond at the same time. (3) MATCH ROM [55H] The match ROM command followed by a 64-bit ROM code sequence allows the bus master to address a specific DS18B20 on a multidrop or single-drop bus. Only the DS18B20 that exactly matches the 6

10、4-bitROM code sequence will respond to the function command issued by the master; all other slaves on the bus will wait for a reset pulse. (4) SKIP ROM [0CCH] The master can use this command to address all devices on the bus simultaneously without sending out any ROM code information. Note that t

11、he Read Scratchpad command can follow the Skip ROM command only if there is a single slave device on the bus. In this case time is saved by allowing the master to read from the slave without sending the device's 64-bit ROM code. A Skip ROM command followed by a Read Scratchpad command will cause a d

12、ata collision on the bus if there is more than one slave since multiple devices will attempt to transmit data simultaneously. (5) ALARM SEARCH [0ECH] The operation of this command is identical to the operation of the Search ROM command except that only slaves with a set alarm flag will respond .Th

13、is command allows the master device to determine if any DS18B20s experienced an alarm condition during the most recent temperature conversion .Refer to the OPERATION-ALARM SIGNAING section for an explanation of alarm flag operation. (6) CONVERTT [44H] This command initiates a single temperature co

14、nversion. Following the conversion, the resulting thermal data is stored in the 2-bute temperature register in the scratchpad memory and the DS18B20 returns to its low-power idle state. If the device is being used in parasite power mode, within 10us after this command is issued the master must enabl

15、e a strong pullup on the 1-Wire bus for the duration of the conversion as described in the POWERING THE DS18320 section. If the DS18B20 is powered by an external supply, the master can issue read time slots after the Convert T command and the DS18B20 will respond by transmitting a 0 while the temper

16、ature conversion is in Progress and a 1 when the conversion is done. In parasite power mode this notification technique cannot be used since the bus1 is pulled high by the strong pullup during the conversion. (7) WRITE SCRACHPAD [4EH] This command allows the master to write 3 bytes of the data to

17、the DS18B20's scratchpad. The first data byte is writer into the TH register , the second byte is written into the TL register, and the third byte is written into the configuration register. Data must be transmitted least significant bit first. All three bytes must be written before the master issue

18、s a reset ,or the data may be corrupted. (8) READ SCRACHPAD [0BEH] This command allows the master to read the contents of the scratchpad .The data transfer starts with the least significant bit of byte 0 and continues through the scratchpad until 9 byte(byte 8-CRC) is read.The master may issue a r

19、eset to terminate reading at any time if only partof the scratchpad data is needed. (9) COPY SCRATCHPAD [48H] This command copies the contents of the scratchpad TH,TL and configuration registers to EEPROM. If the device is being used in parasite power mode ,within 10us(max) after this command is i

20、ssued the master must enable a strong pullup on the 1-Wire bus for at least 10ms as described in the POWERING THE DS18B20 section. (10) RECALL E2 [B8H] This command recalls the alarm trigger values(TH and TL) and configuration data from EEPROM,respectively,in the scratchpad memory .The master devi

21、ce can issue read time slots following the Recall E2 command and the DS18B20 will indicate the status of the recall by transmitting 0 while the recall is in progress and 1 when the recall is done.The recall operation happens automatically at power-up, so valid data is available in the scratchpad as

22、soon as power is applied to the device. DS18B20單總線數(shù)字溫度計 1、DS18B20的特性 (1) 獨特的單總線接口只占用一個I/O端口,而無需外圍元件; (2) 可以由總線提供電源,電壓適用范圍為3.0V?5.5V; (3) 測量溫度范圍為-55°C?+125°C,在-10°C?+85°C范圍內(nèi)精度為土 0.5°C; (4) 每個DS18B20含有一個唯一的64位ROM編碼; (5) 用戶可以通過編程實現(xiàn)9?12位的溫度分辨率; (6) 分辨率為12時最大轉(zhuǎn)換時間為750ms; (7) 報警搜索命令可識別哪片DS18B20溫度超

23、限; (8) 采用3腳T0-92或8腳SOIC封裝。 2、DS18B20的內(nèi)部結(jié)構(gòu) DS18B20的內(nèi)部結(jié)構(gòu)如圖1所示。主要包括:寄生電源、溫度傳感器、64 位激光ROM和單總線接口、存放中間數(shù)據(jù)的高速暫存器RAM、用于存儲用戶設(shè)定 溫度上下限值的TM和TL觸發(fā)器、存儲和控制邏輯、8位循環(huán)冗余校驗碼發(fā)生器 等。溫度轉(zhuǎn)換為數(shù)的改變時通過改變寄存器的值來實現(xiàn)的,用戶可以根據(jù)需要將 DS18B20的溫度轉(zhuǎn)化位數(shù)設(shè)置為9,10,11,12位。溫度報警觸發(fā)器的設(shè)置寄存器 都由非易失性電可擦寫存儲器(EEROM)組成,設(shè)置值可以通過相應(yīng)命令寫入,一 旦寫入后不會因為掉電而丟失。 3、DS18B

24、20的各個ROM命令 (1)Search ROM [0F0H] 當(dāng)一個系統(tǒng)初次啟動時,總線控制器可能并不知道單線總線上有多少器件 或它們的64位ROM編碼。搜索ROM命令允許總線控制器用排除法識別總線上的 所有從機(jī)的64位編碼。 (2)Read ROM [33H] 這個命令允許總線控制器讀到DS18B20的8位系列編碼、唯一的序列號和 8位CRC碼。只有在總線上存在單只DS18B20的時候才能使用這個命令。如果 總線上有不止一個從機(jī),當(dāng)所有從機(jī)試圖同時傳送信號時就會發(fā)生數(shù)據(jù)沖突。 (3) Match ROM [55H] 這個是匹配ROM命令,后跟64位ROM序列,讓總線控制器在多點

25、總線上定 位一只特定的DS18B20。只有和64位ROM序列完全匹配的DS18B20才能響應(yīng)隨 后的存儲器操作。所有和64位ROM序列不匹配的從機(jī)都將等待復(fù)位脈沖。這條 命令在總線上有單個或多個器件時都可以使用。 (4)Skip ROM [0CCH] 這條命令允許總線控制器不用提供64位ROM編碼就使用存儲器操作命令, 在單點總線情況下,可以節(jié)約時間。如果總線上不止一個從機(jī),在 Skip ROM 命令之后跟著發(fā)一條讀命令,由于多個從機(jī)同時發(fā)送信號??偩€上就會發(fā)生數(shù) 據(jù)沖突。 (5)Alarm Search [0ECH] 這條命令的流程和Search ROM相同。然而,只有在最近一次測溫

26、后遇到符 合報警條件的情況,DS18B20才會響應(yīng)這條命令。報警條件定義為溫度高于TH 或溫度低于TL。只要DS18B20不掉電,報警狀態(tài)將一直保持,直到再一次測得 的溫度值達(dá)不到報警條件。 6)Convert T [44H] 這條命令啟動一次溫度轉(zhuǎn)換無需其它數(shù)據(jù)。溫度轉(zhuǎn)換命令被執(zhí)行,而后 DS18B20 保持等待狀態(tài)。如果總線控制器在這條命令之后跟著發(fā)出時間隙,而 DS18B20又忙于做時間轉(zhuǎn)換的話,DS18B20將在總線上輸出0,若溫度轉(zhuǎn)換完成, 則輸出1。如果使用寄生電源,總線控制器必須在發(fā)出這條命令后立即啟動強(qiáng) 上拉,并保持 500ms 以上的時間。 7) Write Scra

27、tchpad [4EH] 這條命令向DS18B20的暫存器TH和TL中寫入數(shù)據(jù)??梢栽谌魏螘r候發(fā)出 復(fù)位命令來中止寫入。 8) Read Scratchpad [0BEH] 這個命令讀暫存器的內(nèi)容。讀取從第 1 個字節(jié)開始,一直進(jìn)行下去,直到 9 (CRC)字節(jié)讀完。如果不想讀完所有字節(jié),控制器可以在任何時候發(fā)出復(fù)位 命令來中止讀取。 9) Copy Scratchpad [48H] 這個命令把暫存器的內(nèi)容拷貝到DS18B20的EEPROM存儲器里,即把溫度報 警觸發(fā)字節(jié)存入非易失性存儲器里。如果總線控制器在這條命令之后跟著發(fā)出 讀時間隙,而DS18B20又忙于把存儲器拷貝到EEROM存儲器,DS18B20就會輸 出一個0,如果拷貝結(jié)束的話,DS18B20則輸出1。如果使用寄生電源,總線控 制器必須在這條命令發(fā)出后立即啟動強(qiáng)上拉并最少保持 10ms。 (10)Recall E2 [0B8H] 這條命令把報警觸發(fā)器里的值拷貝回暫存器。這種拷貝操作在 DS18B20 上 電時自動執(zhí)行,這樣器件一上電暫存器里馬上就存在有效數(shù)據(jù)了。若在這條命 令之后發(fā)出數(shù)據(jù)隙,器件會輸出溫度轉(zhuǎn)換忙的標(biāo)識:0 為忙 ,1 為完成。

展開閱讀全文
溫馨提示:
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. 裝配圖網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

相關(guān)資源

更多
正為您匹配相似的精品文檔
關(guān)于我們 - 網(wǎng)站聲明 - 網(wǎng)站地圖 - 資源地圖 - 友情鏈接 - 網(wǎng)站客服 - 聯(lián)系我們

copyright@ 2023-2025  zhuangpeitu.com 裝配圖網(wǎng)版權(quán)所有   聯(lián)系電話:18123376007

備案號:ICP2024067431-1 川公網(wǎng)安備51140202000466號


本站為文檔C2C交易模式,即用戶上傳的文檔直接被用戶下載,本站只是中間服務(wù)平臺,本站所有文檔下載所得的收益歸上傳人(含作者)所有。裝配圖網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對上載內(nèi)容本身不做任何修改或編輯。若文檔所含內(nèi)容侵犯了您的版權(quán)或隱私,請立即通知裝配圖網(wǎng),我們立即給予刪除!