版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、外文翻譯(原文) 中英文資料外文翻譯文獻(xiàn) the introduction to the ds18b201. description the ds18b20 digital thermometer provides 9-bit to 12-bit celsius temperature measurements and has an alarm function with nonvolatile user programmable upper and lower trigger points. the ds18b20 communicates over a 1-wire bus that by
2、 definition requires only one data line for communication with a central microprocessor. it has an operating temperature range of -55°c to +125°c and is accurate to ±0.5°c over the range of -10°c to +85°c. in addition, the ds18b20 can derive power directly from the data
3、 line (“parasite power”), eliminating the need for an external power supply. each ds18b20 has a unique 64-bit serial code, which allows multiple ds18b20s to function on the same 1-wire bus. thus, it is simple to use one microprocessor to control many ds18b20s distributed over a large area. applicati
4、ons that can benefit from this feature include hvac environmental controls, temperature monitoring systems inside buildings, equipment, or machinery, and process monitoring and control systems.2.featuresl unique 1-wire® interface requires only one port pin for communicationl each device has a u
5、nique 64-bit serial code stored in an on-board roml multi-drop capability simplifies distributed temperature-sensing applicationsl requires no external componentsl can be powered from data line; power supply range is 3.0v to 5.5v l measures temperatures from -55°c to +125°c (-67°f to
6、+257°f)l ±0.5°c accuracy from -10°c to +85°cl thermometer resolution is user selectable from 9 to 12 bitsl converts temperature to 12-bit digital word in 750ms (max)l user-definable nonvolatile (nv) alarm settingsl alarm search command identifies and addresses devices whose
7、temperature is outside programmed limitsl software compatible with the ds1822l applications include thermostatic controls, industrial systems, consumer products, thermometers, or any thermally sensitive system3.overviewfigure 1 shows a block diagram of the ds18b20, and pin descriptions are given in
8、the pin description table. the 64-bit rom stores the devices unique serial code. the scratchpad memory contains the 2-byte temperature register 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
9、s (th and tl) and the 1-byte configuration register. the configuration register allows the user to set the resolution 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 power
10、ed down.the ds18b20 uses maxims exclusive 1-wire bus protocol that implements bus communication using one control signal. the control line requires a weak pull up resistor since all devices are linked to the bus via a 3-state or open-drain port (the dq pin in the case of the ds18b20). in this bus sy
11、stem, the microprocessor (the master device) identifies and addresses devices on the bus using each devices unique 64-bit code. because each device has a unique code, the number of devices that can be addressed on one ds18b20 bus is virtually unlimited. the 1-wire bus protocol, including detailed ex
12、planations of the commands and “time slots,” is covered in the 1-wire bus system section.another feature of the ds18b20 is the ability to operate without an external power supply. power is instead supplied through the 1-wire pull up resistor via the dq pin when the bus is high. the high bus signal a
13、lso charges an internal capacitor (cpp), which then supplies power to the device when the bus is low. this method of deriving power from the 1-wire bus is referred to as “parasite power.” as an alternative, the ds18b20 may also be powered by an external supply on vdd. figure 1.ds18b20 block diagram4
14、.operationmeasuring temperaturthe core functionality of the ds18b20 is its direct-to-digital temperature sensor. the resolution of the temperature sensor is user-configurable to 9, 10, 11, or 12 bits, corresponding to increments of 0.5°c, 0.25°c, 0.125°c, and 0.0625°c, respective
15、ly. the default resolution at power-up is 12-bit. the ds18b20 powers up in a low-power idle state. to initiate a temperature measurement and a-to-d conversion, the master must issue a convert t 44h command. following the conversion, the resulting thermal data is stored in the 2-byte temperature regi
16、ster in the scratchpad memory and the ds18b20 returns to its idle state. if the ds18b20 is powered by an external supply, the master can issue “read time slots” (see the 1-wire bus system section) after the convert t command and the ds18b20 will respond by transmitting 0 while the temperature conver
17、sion is in progress and 1 when the conversion is done. if the ds18b20 is powered with parasite power, this notification technique cannot be used since the bus must be pulled high by a strong pull up during the entire temperature conversion. the ds18b20 output temperature data is calibrated in degree
18、s celsius; for fahrenheit applications, a lookup table or conversion routine must be used. the temperature data is stored as a 16-bit sign-extended twos complement number in the temperature register (see figure 2). the sign bits (s) indicate if the temperature is positive or negative: for positive n
19、umbers s = 0 and for negative numbers s = 1. if the ds18b20 is configured for 12-bit resolution, all bits in the temperature register will contain valid data. for 11-bit resolution, bit 0 is undefined. for 10-bit resolution, bits 1 and 0 are undefined, and for 9-bit resolution bits 2, 1, and 0 are u
20、ndefined. table 1 gives examples of digital output data and the corresponding temperature reading for 12-bit resolution conversions. bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0ls byte232221202-12-22-32-4 bit15 bit14 bit13 bit12 bit11 bit10 bit9 bit8ms bytesssss262524figure 2.temperature register formatt
21、emperature digital output (binary) digital output (hex) +1250000 0111 1101 000007d0h+25.06250000 0001 1001 00010191h00000 0000 0000 00000000h-25.06251111 1110 0110 1111fe6fh-551111 1100 1001 0000fc90htable 1.temperature/data relationship5.64-bit lasered rom codeeach ds18b20 contains a unique 64bit c
22、ode (see figure 3) stored in rom. the least significant 8 bits of the rom code contain the ds18b20s 1-wire family code: 28h. the next 48 bits contain a unique serial number. the most significant 8 bits contain a cyclic redundancy check (crc) byte that is calculated from the first 56 bits of the rom
23、code. the 64-bit rom code and associated rom function control logic allow the ds18b20 to operate as a 1-wire device using the protocol detailed in the 1-wire bus system section.8-bit crc48-bit serial number8-bit family code msb lsb msb lsb msbfigure 3.64-bit lasered rom code6.memorythe ds18b20s memo
24、ry is organized as shown in figure 4. the memory consists of an sram scratchpad with nonvolatile eeprom storage for the high and low alarm trigger registers (th and tl) and configuration register. note that if the ds18b20 alarm function is not used, the th and tl registers can serve as general-purpo
25、se memory. byte 0 and byte 1 of the scratchpad contain the lsb and the msb of the temperature register, respectively. these bytes are read-only. bytes 2 and 3 provide access to th and tl registers. byte 4 contains the configuration register data. bytes 5, 6, and 7 are reserved for internal use by th
26、e device and cannot be overwritten. byte 8 of the scratchpad is read-only and contains the crc code for bytes 0 through 7 of the scratchpad. the ds18b20 generates this crc using the method described in the crc generation section.data is written to bytes 2, 3, and 4 of the scratchpad using the write
27、scratchpad 4eh command; the data must be transmitted to the ds18b20 starting with the least significant bit of byte 2. to verify data integrity, the scratchpad can be read (using the read scratchpad beh command) after the data is written. when reading the scratchpad, data is transferred over the 1-w
28、ire bus starting with the least significant bit of byte 0. to transfer the th, tl and configuration data from the scratchpad to eeprom, the master must issue the copy scratchpad 48h command.byte0temperature lsbbyte1temperature msbbyte2th register for high temperaturebyte3tl register for low temperat
29、urebyte4configuration registerbyte5reserved(ffh)byte6reserved(och)byte7reserved(ioh)byte8cyclic redundancy checks(crc) figure 4.ds18b20 memory map7.configuration registerbyte 4 of the scratchpad memory contains the configuration register, which is organized as illustrated in figure 5. the user can s
30、et the conversion resolution of the ds18b20 using the r0 and r1 bits in this register as shown in table 2. the power-up default of these bits is r0 = 1 and r1 = 1 (12-bit resolution). note that there is a direct tradeoff between resolution and conversion time. bit 7 and bits 0 to 4 in the configurat
31、ion register are reserved for internal use by the device and cannot be overwritten. bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0tmr1r011111 figure 5.configuration registerr0r1resolution(bits)max conversion time00110101910111293.75ms187.5ms375ms750ms table 2.thermometer resolution configuration8.1-wire bu
32、s systemthe 1-wire bus system uses a single bus master to control one or more slave devices. the ds18b20 is always a slave. when there is only one slave on the bus, the system is referred to as a “single-drop” system; the system is “multi-drop” if there are multiple slaves on the bus. all data and c
33、ommands are transmitted least significant bit first over the 1-wire bus. the following discussion of the 1-wire bus system is broken down into three topics: hardware configuration, transaction sequence, and 1-wire signaling (signal types and timing).9.transaction sequencethe transaction sequence for
34、 accessing the ds18b20 is as follows:step 1. initialization step 2. rom command (followed by any required data exchange)step 3. ds18b20 function command (followed by any required data exchange)it is very important to follow this sequence every time the ds18b20 is accessed, as the ds18b20 will not re
35、spond if any steps in the sequence are missing or out of order. exceptions to this rule are the search rom f0h and alarm search ech commands. after issuing either of these rom commands, the master must return to step 1 in the sequence.(1)initializationall transactions on the 1-wire bus begin with an
36、 initialization sequence. the initialization sequence consists of a reset pulse transmitted by the bus master followed by presence pulse(s) transmitted by the slave(s). the presence pulse lets the bus master know that slave devices (such as the ds18b20) are on the bus and are ready to operate. (2)ro
37、m commandsafter the bus master has detected a presence pulse, it can issue a rom command. these commands operate on the unique 64-bit rom codes of each slave device and allow the master to single out a specific device if many are present on the 1-wire bus. these commands also allow the master to det
38、ermine how many and what types of devices are present on the bus or if any device has experienced an alarm condition. there are five rom commands, and each command is 8 bits long. the master device must issue an appropriate rom command before issuing a ds18b20 function command. 1.search rom f0hwhen
39、a system is initially powered up, the master 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 ro
40、m cycle (i.e., search rom command followed by data exchange) as many times as necessary to identify all of the slave devices. if there is only one slave on the bus, the simpler read rom command can be used in place of the search rom process. 2.read rom 33hthis command can only be used when there is
41、one slave on the bus. it allows the bus master to read the slaves 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, a data collision will occur when all the slaves attempt to respond at the same time.3.match rom 55ht
42、he match rom command followed by a 64-bit rom code sequence allows the bus master to address a specific slave device on a multi-drop or single-drop bus. only the slave that exactly matches the 64-bit rom code sequence will respond to the function command issued by the master; all other slaves on the
43、 bus will wait for a reset pulse.4.skip rom cchthe master can use this command to address all devices on the bus simultaneously without sending out any rom code information. for example, the master can make all ds18b20s on the bus perform simultaneous temperature conversions by issuing a skip rom co
44、mmand followed by a convert t 44h command. note that the read scratchpad beh 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 devices 64-bit rom code. a skip rom co
45、mmand followed by a read scratchpad command will cause a data collision on the bus if there is more than one slave since multiple devices will attempt to transmit data simultaneously.5.alarm search echthe operation of this command is identical to the operation of the search rom command except that o
46、nly slaves with a set alarm flag will respond. this command allows the master device to determine if any ds18b20s experienced an alarm condition during the most recent temperature conversion. after every alarm search cycle (i.e., alarm search command followed by data exchange), the bus master must r
47、eturn to step 1 (initialization) in the transaction sequence. (3)ds18b20 function commands after the bus master has used a rom command to address the ds18b20 with which it wishes to communicate, the master can issue one of the ds18b20 function commands. these commands allow the master to write to an
48、d read from the ds18b20s scratchpad memory, initiate temperature conversions and determine the power supply mode. 1.convert t 44hthis command initiates a single temperature conversion. following the conversion, the resulting thermal data is stored in the 2-byte temperature register in the scratchpad
49、 memory and the ds18b20 returns to its low-power idle state. if the device is being used in parasite power mode, within 10µs (max) after this command is issued the master must enable a strong pull up on the 1-wire bus. if the ds18b20 is powered by an external supply, the master can issue read t
50、ime slots after the convert t command and the ds18b20 will respond by transmitting a 0 while the temperature conversion is in progress and a 1 when the conversion is done. in parasite power mode this notification technique cannot be used since the bus is pulled high by the strong pull up during the
51、conversion.2.read scratchpad behthis 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 the 9th byte (byte 8 crc) is read. the master may issue a reset to terminate reading at
52、any time if only part of the scratchpad data is needed.3.write scratchpad 4ehthis command allows the master to write 3 bytes of data to the ds18b20s scratchpad. the first data byte is written into the th register (byte 2 of the scratchpad), the second byte is written into the tl register (byte 3), a
53、nd the third byte is written into the configuration register (byte 4). data must be transmitted least significant bit first. all three bytes must be written before the master issues a reset, or the data may be corrupted.4.copy scratchpad 48hthis command copies the contents of the scratchpad th, tl a
54、nd configuration registers (bytes 2, 3 and 4) to eeprom. if the device is being used in parasite power mode, within 10µs (max) after this command is issued the master must enable a strong pull-up on the 1-wire bus.5.recall e2 b8hthis command recalls the alarm trigger values (th and tl) and conf
55、iguration data from eeprom and places the data in bytes 2, 3, and 4, respectively, in the scratchpad memory. the master device can issue read time slots following the recall e2command and the ds18b20 will indicate the status of the recall by transmitting 0 while the recall is in progress and 1 when
56、the recall is done. the recall operation happens automatically at power-up, so valid data is available in the scratchpad as soon as power is applied to the device.6read power supply b4hthe master device issues this command followed by a read time slot to determine if any ds18b20s on the bus are usin
57、g parasite power. during the read time slot, parasite powered ds18b20s will pull the bus low, and externally powered ds18b20s will let the bus remain high. 10.wire signalingthe ds18b20 uses a strict 1-wire communication protocol to ensure data integrity. several signal types are defined by this prot
58、ocol: reset pulse, presence pulse, write 0, write 1, read 0, and read 1. the bus master initiates all these signals, with the exception of the presence pulse.(1)initialization procedurereset and presence pulsesall communication with the ds18b20 begins with an initialization sequence that consists of a reset pulse from the master followed by a presence pulse from the ds18b20. this is illustrated in figure 6. when the ds18b20
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2024收養(yǎng)協(xié)議書(shū)錦集:收養(yǎng)評(píng)估與干預(yù)服務(wù)手冊(cè)3篇
- 2024虛擬現(xiàn)實(shí)游戲內(nèi)容開(kāi)發(fā)與分成合同
- 二零二五年度便利店商品溯源系統(tǒng)開(kāi)發(fā)合同3篇
- 2024長(zhǎng)期采購(gòu)的合同
- 2025年度租賃車(chē)輛環(huán)保排放檢測(cè)及整改協(xié)議2篇
- 二零二五版房產(chǎn)抵押購(gòu)銷(xiāo)與房地產(chǎn)稅務(wù)籌劃合同3篇
- 2025年度個(gè)人與房地產(chǎn)中介服務(wù)借款合同規(guī)范3篇
- 2025年幼兒園幼兒意外傷害保險(xiǎn)合同3篇
- 2025年度存量房交易鑒證服務(wù)合同范本3篇
- 二零二五年度植物標(biāo)本制作與提供合同3篇
- 2025年蛇年春聯(lián)帶橫批-蛇年對(duì)聯(lián)大全新春對(duì)聯(lián)集錦
- 表B. 0 .11工程款支付報(bào)審表
- 警務(wù)航空無(wú)人機(jī)考試題庫(kù)及答案
- 空氣自動(dòng)站儀器運(yùn)營(yíng)維護(hù)項(xiàng)目操作說(shuō)明以及簡(jiǎn)單故障處理
- 新生兒窒息復(fù)蘇正壓通氣課件
- 2022年12月Python-一級(jí)等級(jí)考試真題(附答案-解析)
- 法律顧問(wèn)投標(biāo)書(shū)
- 班主任培訓(xùn)簡(jiǎn)報(bào)4篇(一)
- 成都市數(shù)學(xué)八年級(jí)上冊(cè)期末試卷含答案
- T-CHSA 020-2023 上頜骨缺損手術(shù)功能修復(fù)重建的專(zhuān)家共識(shí)
- 危重癥患者轉(zhuǎn)運(yùn)指南-課件
評(píng)論
0/150
提交評(píng)論