DS18B20 数字温度计外文翻译.docx_第1页
DS18B20 数字温度计外文翻译.docx_第2页
DS18B20 数字温度计外文翻译.docx_第3页
DS18B20 数字温度计外文翻译.docx_第4页
DS18B20 数字温度计外文翻译.docx_第5页
已阅读5页,还剩6页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

外文资料原文ds18b201.1 descriptionthe ds18b20 digital thermometer provides 9 to 12-bit (configurable) temperature readings which indicate the temperature of the device. information is sent to/from the ds18b20 over a 1-wire interface, so that only one wire (and ground) needs to be connected from a central microprocessor to a ds18b20. 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 ds18b20 contains a unique silicon serial number, multiple ds18b20s can exist on 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, equipment or machinery, and process monitoring and control.1.2 features(1) unique 1-wiretm interface requires only one port pin for communication(2) multidrop capability simplifies distributed temperature sensing applications(3) requires no external components(4) can be powered from data line. power supply range is 3.0v to 5.5v(5) zero standby power required(6) measures temperatures from -55c to+125c. fahrenheit equivalent is -67f to+257f(7) 0.5c accuracy from -10c to +85c(8) thermometer resolution is programmable from 9 to 12 bits(9) converts 12-bit temperature to digital word in 750 ms (max.)(10) user-definable, nonvolatile temperature alarm settings(11) alarm search command identifies and addresses devices whose temperature is outside of programmed limits (temperature alarm condition)(12) applications include thermostatic controls, industrial systems, consumer products, thermometers, or any thermally sensitive system1.3 pin assignmentdetailed pin description table 1ds18b20z (8-pin soic) and ds18p20p (tsoc): all pins not specified in this table are not to be connected.1.4 overviewthe block diagram of figure 1 shows the major components of the ds18b20. the ds18b20 has four main data components: 1) 64-bit lasered rom, 2) temperature sensor, 3) nonvolatile temperature alarm triggers th and tl, and 4) a configuration register. the device derives its power from the 1-wire communication 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 the 1-wire line until it returns high to replenish the parasite (capacitor) supply. as an alternative, the ds18b20 may also bepowered from an external 3v - 5.5v supply.ds18b20 block diagram figure 1communication to the ds18b20 is via a 1-wire port. with the 1-wire port, the memory and control functions will not be available before the rom function protocol has been established. the master must first provide one of five rom function commands: 1) read rom, 2) match rom, 3) search rom, 4)skip rom, or 5) alarm search. these commands operate on the 64-bit lasered rom portion of each device and can single out a specific device if many are present on the 1-wire line as well as indicate to the bus master how many and what types of devices are present. after a rom function sequence has been successfully executed, the memory and control functions are accessible and the master may then provide any one of the six memory and control function commands. one control function command instructs the ds18b20 to perform a temperature measurement. the result of this measurement will be placed in the ds18b20s scratch-pad memory, and may be read by issuing a memory function command which reads the contents of the scratchpad memory. the temperature alarm triggers th and tl consist of 1 byte eeprom each. if the alarm search command is not applied to the ds18b20, these registers may be used as general purpose user memory. the scratchpad also contains a configuration byte to set the desired resolution of the temperature to digital conversion. writing th, tl,and the configuration byte is done using a memory function command. read access to these registers is through the scratchpad. all data is read and written least significant bit first.1.5 parasite powerthe block diagram (figure 1) shows the parasite-powered circuitry. this circuitry “steals” power whenever the dq or vdd pins are high. dq will provide sufficient power as long as the specified timing and voltage requirements are met (see the section titled “1-wire bus system”). the advantages of parasite power are twofold: 1) by parasiting off this pin, no local power source is needed for remote sensing of temperature, and 2) the rom may be read in absence of normal power.in order for the ds18b20 to be able to perform accurate temperature conversions, sufficient power must be provided over the dq line when a temperature conversion is taking place. since the operating current of the ds18b20 is up to 1.5 ma, the dq line will not have sufficient drive due to the 5k pullup resistor. this problem is particularly acute if several ds18b20s are on the same dq and attempting to convert simultaneously.there are two ways to assure that the ds18b20 has sufficient supply current during its active conversion cycle. the first is to provide a strong pull up on the dq line whenever temperature conversions or copies to the e2 memory are taking place. this may be accomplished by using a mosfet to pull the dq line directly to the power supply as shown in figure 2. the dq line must be switched over to the strong pull up within 10 s maximum after issuing any protocol that involves copying to the e2 memory or initiates temperature conversions. when using the parasite power mode, the vdd pin must be tied to ground.another method of supplying current to the ds18b20 is through the use of an external power supply tied to the vdd pin, as shown in figure 3. the advantage to this is that the strong pullup is not required on the dq line, and the bus master need not be tied up holding that line high during temperature conversions.this allows other data traffic on the 1-wire bus during the conversion time. in addition, any number of ds18b20s may be placed on the 1-wire bus, and if they all use external power, they may all imultaneously perform temperature conversions by issuing the skip rom command and then issuing the convert t command. note that as long as the external power supply is active, the gnd pin may not be floating.the use of parasite power is not recommended above 100c, since it may not be able to sustain communications given the higher leakage currents the ds18b20 exhibits at these temperatures. for applications in which such temperatures are likely, it is strongly recommended that vdd be applied to the ds18b20.for situations where the bus master does not know whether the ds18b20s on the bus are parasite powered or supplied with external vdd, a provision is made in the ds18b20 to signal the power supply scheme used. the bus master can determine if any ds18b20s are on the bus which require the strong pull up by sending a skip rom protocol, then issuing the read power supply command. after this command is issued, the master then issues read time slots. the ds18b20 will send back “0” on the 1-wire bus if it is parasite powered; it will send back a “1” if it is powered from the vdd pin. if the master receives a “0”, it knows that it must supply the strong pullup on the dq line during temperature conversions.see “memory command functions” section for more detail on this command protocol.strong pullup for supplying ds18b20 during temperatureconversion figure 2using vdd to supply temperature conversion current figure 31.6 operation - alarm signalingafter the ds18b20 has performed a temperature conversion, the temperature value is compared to the trigger values stored in th and tl. since these registers are 8-bit only, bits 9-12 are ignored for comparison. the most significant bit of th or tl directly corresponds to the sign bit of the 16-bit temperature register. if the result of a temperature measurement is higher than th or lower than tl, an alarm flag inside the device is set. this flag is updated with every temperature measurement. as long as the alarm flag is set, the ds18b20 will respond to the alarm search command. this allows many ds18b20s to be connected in parallel doing simultaneous temperature measurements. if somewhere the temperature exceeds the limits, the alarming device(s) can be identified and read immediately without having to read non-alarming devices.1.7 64-bit lasered romeach ds18b20 contains a unique rom code that is 64-bits long. the first 8 bits are a 1-wire family code (ds18b20 code is 28h). the next 48 bits are a unique serial number. the last 8 bits are a crc of the first 56 bits. (see figure 4.) the 64-bit rom and rom function control section allow the ds18b20 to operate as a 1-wire device and follow the 1-wire protocol detailed in the section “1-wire bus system”. the functions required to control sections of the ds18b20 are not accessible until the rom function protocol has been satisfied. this protocol is described in the rom function protocol flowchart (figure 5). the 1-wire bus master must first provide one of five rom function commands: 1) read rom, 2) match rom, 3) search rom, 4) skip rom, or 5) alarm search. after a rom function sequence has been successfully executed, the functions specific to the ds18b20 are accessible and the bus master may then provide one of the six memory and control function commands.64-bit lasered rom figure 41.8 crc generationthe ds18b20 has an 8-bit crc stored in the most significant byte of the 64-bit rom. the bus master can compute a crc value from the first 56-bits of the 64-bit rom and compare it to the value stored within the ds18b20 to determine if the rom data has been received error-free by the bus master. the equivalent polynomial function of this crc is: crc = x8 + x5 + x4 + 1the ds18b20 also generates an 8-bit crc value using the same polynomial function shown above and provides this value to the bus master to validate the transfer of data bytes. in each case where a crc is used for data transfer validation, the bus master must calculate a crc value using the polynomial function given above and compare the calculated value to either the 8-bit crc value stored in the 64-bit rom portion of the ds18b20 (for rom reads) or the 8-bit crc value computed within the ds18b20 (which is read as a ninth byte when the scratchpad is read). the comparison of crc values and decision to continue with an operation are determined entirely by the bus master. there is no circuitry inside the ds18b20 that prevents a command sequence from proceeding if the crc stored in or calculated by the ds18b20 does not match the value generated by the bus master.the 1-wire crc can be generated using a polynomial generator consisting of a shift register and xor gates as shown in figure 5. additional information about the dallas 1-wire cyclic redundancy check is available in application note 27 entitled “understanding and using cyclic redundancy checks with dallas semiconductor touch memory products”.the shift register bits are initialized to 0. then starting with the least significant bit of the family code, 1bit at a time is shifted in. after the eighth bit of the family code has been entered, then the serial number is entered. after the 48th bit of the serial number has been entered, the shift register contains the crc value. shifting in the 8 bits of crc should return the shift register to all 0 s.1.9 1-wire bus systemthe 1-wire bus is a system which has a single bus master and one or more slaves. the ds18b20 behaves as a slave. the discussion of this bus system is broken down into three topics: hardware configuration, transaction sequence, and 1-wire signaling (signal types and timing).1- wire crc code figure 52.0 transaction sequencethe protocol for accessing the ds18b20 via the 1-wire port is as follows:(1) initialization(2)rom function command(3) memory function command(4) transaction/data外文资料译文ds18b20一 概述1.1 一般说明ds18b20 数字温度计提供9到12位温度读数,指示器件的温度。信息经过单线接口送入ds18b20 或从ds18b20 送出,因此从中央处理器到ds18b20 仅需连接一条线和地读写和完成温度变换所需的电源可以由数据线本身提供而不需要外部电源。因为每一个ds18b20 有唯一的系列号(silicon serial number),因此多个ds18b20 可以存在于同一条单线总线上。这允许在许多不同的地方放置温度灵敏器件。此特性的应用范围包括hvac环境控制,建筑物、设备或机械内的温度检测,以及过程监视和控制中的温度检测。1.2 特性(1) 独特的单线接口,只需1个接口引脚,即可通信。(2) 多点(multidrop)能使分布式温度检测应用得以简化。(3) 不需要外部元件。(4) 可用数据线供电,供电电压为3.0v到5.5v。(5) 不需备份电源。(6) 测量范围从-55 至+125 增量值为0.5 等效的华氏温度范围是-67f至257f。(7) 以9 或12位数字值方式读出温度。(8) 在-10+85时精度为0.5。(9) 12位分辨率时最多在750ms内把温度值转换为数字。(10) 用户可定义的非易失性的温度告警设置。(11) 告警搜索命令识别和寻址温度在编定的极限之外的器件温度告警情况。(12) 应用范围包括恒温控制工业系统消费类产品温度计或任何热敏系统。1.3 引脚排列1.4 详细的引脚说明引脚pr35引脚8脚soic符号说明14gnd地35dq单线应用的数据输入/出引脚漏极开路见“寄生电源”一节。36vdd可选vdd引脚,有关连接的细节见“寄生电源“一节。 1.5 详细说明图1 的方框图表示ds18b20 的主要部件。ds18b20 有三个主要的数据部件:1)64 位激光 rom;2)温度灵敏元件;3)非易失性温度告警触发器th 和tl 。器件从单线的通信线取得其电源,在信号线为高电平的时间周期内,把能量贮存在内部的电容器中,在单信号线为低电平的时间期内断开此电源,直到信号线变为高电平重新接上寄生电容电源为止。作为另一种可供选择的方法ds18b20 也可用外部5v 电源供电。与ds18b20 的通信经过一个单线接口。在单线接口情况下,在rom 操作未定建立之前不能使用存贮器和控制操作。主机必须首先提供五种rom 操作命令之一:1 )read rom(读rom), 2)match rom(符合rom),3)search rom(搜索rom),4)skip rom(跳过rom),或5)alarm search(告警搜索) 。这些命令对每一器件的64 位激光rom 部分进行操作。如果在单线上有许多器件,那么可以挑选出一个特定的器件,并给总线上的主机指示存在多少器件及其类型。在成功地执行了rom 操作序列之后,可使用存贮器和控制操作,然后主机可以提供六种存贮器和控制操作命令之一。一个控制操作命令指示ds18b20 完成温度测量。该测量的结果将放入ds18b20 的高速暂存(便笺式)存贮器(scratchpad memory ), 通过发出读暂存存储器内容的存储器操作命令可以读出此结果。每一温度告警触发器th 和tl 构成一个字节的eeprom 。如果不对ds18b20 施加告警搜索命令,这些寄存器可用作通用用户存储器使用存储器.操作命令可以写th 和tl。 对这些寄存器的读访问,通过便笺存储器。所有数据均以最低有效位在前的方式被读写。图1 ds18b20的方框图1.5 寄生电源(parasite power)方框图(图1)示出寄生电源电路。当i/o 或vdd 引脚为高电平时,这个电路便取得电源。只要符合指定的定时和电压要求,i/o 将提供足够的功率(标题为“单总线系统”一节)。寄生电源的优点是双重的:1)利用此引脚,远程温度检测无需本地电源,2)缺少正常电源条件下也可以读rom。为了使ds18b20 能完成准确的温度变换,当温度变换发生时,i/o 线上必须提供足够的功率。因为ds18b20 的工作电流高达1ma,5k 的上拉电阻将使i/o 线没有足够的驱动能力。如果几个ds18b20 在同一条i/o 线上而且企图同时变换,那么这一问题将变得特别尖锐。有两种方法确保ds18b20 在其有效变换期内得到足够的电源电流。第一种方法是发生温度变换时,在i/o 线上提供一强的上拉。如图2 所示,通过使用一个mosfet 把i/o 线直接拉到电源可达到这一点。当使用寄生电源方式时vdd 引脚必须连接到地。向ds18b20 供电的另外一种方法是通过使用连接到vdd 引脚的外部电源,如图3 所示。这种方法的优点是在i/o 线上不要求强的上拉。总线上主机不需向上连接便在温度变换期间使线保持高电平。这就允许在变换时间内其它数据在单线上传送。此外,在单线总线上可以放置任何数目的ds18b20, 而且如果它们都使用外部电源,那么通过发出跳过(skip) rom 命令和发出变换(convert) t 命令,可以同时完成温度变换。注意只要外部电源处于工作状态,gnd (地)引脚不可悬空。 图2 强上拉在温度变换期内向ds18b20 供电图3 使用vdd 提供温度变换所需电流1.6 运用告警信号在ds18b20 完成温度变换

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论