




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、附 录:外文资料与中文翻译外文资料:DS1820FEATURES Unique 1WireTM interface requires only one port pin for communication Multidrop capability simplifies distributed temperature sensing applications Requires no external components Can be powered from data line Zero standby power required Measures temperatures from 55C
2、 to +125C in 0.5C increments. Fahrenheit equivalent is 67F to +257F in 0.9F increments Temperature is read as a 9bit digital value. Converts temperature to digital word in 200 ms (typ.) Userdefinable, nonvolatile temperature alarm settings Alarm search command identifies and addresses devices whose
3、temperature is outside of programmed limits (temperature alarm condition) Applications include thermostatic controls, industrial systems, consumer products, thermometers, or any thermally sensitive systemDESCRIPTIONThe DS1820 Digital Thermometer provides 9bit temperature readings which indicate the
4、temperature of the device. Information is sent to/from the DS1820 over a 1Wire 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 wi
5、th no need for an external power source. Because each DS1820 contains a unique silicon serial number, multiple DS1820s can exist on the same 1Wire bus. This allows for placing temperature sensors in many different places. Applications where this feature is useful include HVAC environmental controls,
6、 sensing temperatures inside buildings, equipment or machinery, and in process monitoring and control.DETAILED PIN DESCRIPTIONOVERVIEWThe block diagram of Figure 1 shows the major components of the DS1820. The DS1820 has three main data components: 1) 64bit lasered ROM, 2) temperature and sensor, 3)
7、 nonvolatile temperature alarm triggers TH and TL. The device derives its power from the 1Wire 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 1Wire line until
8、 it returns high to replenish the parasite (capacitor) supply. As an alternative, the DS1820 may also be powered from an external 5 volts supply.Communication to the DS1820 is via a 1Wire port. With the 1Wire port, the memory and control functions will not be available before the ROM function protoc
9、ol 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 64bit lasered ROM portion of each device and can single out a specific device if many are present on the
10、1Wire 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
11、control function command instructs the DS1820 to perform a temperature measurement. The result of this measurement will be placed in the DS1820s scratchpad memory, and may be read by issuing a memory function command which reads the contents of the scratchpad memory. The temperature alarm triggers T
12、H and TL consist of one byte EEPROM each. If the alarm search command is not applied to the DS1820, these registers may be used as general purpose user memory. Writing TH and TL is done using a memory function command. Read access to these registers is through the scratchpad. All data is read and wr
13、itten least significant bit first.The block diagram (Figure 1) shows the parasite powered circuitry. This circuitry “steals” power whenever the I/O or VDD pins are high. I/O will provide sufficient power as long as the specified timing and voltage requirements are met (see the section titled “1Wire
14、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, 2) the ROM may be read in absence of normal power. In order for the DS1820 to be able to perform accurate temperature conversions, sufficient p
15、ower must be provided over the I/O line when a temperature conversion is taking place. Since the operating current of the DS1820 is up to 1 mA, the I/O line will not have sufficient drive due to the 5K pullup resistor. This problem is particularly acute if several DS1820s are on the same I/O and att
16、empting to convert simultaneously.There are two ways to assure that the DS1820 has sufficient supply current during its active conversion cycle. The first is to provide a strong pullup on the I/O line whenever temperature conversions or copies to the E2 memory are taking place. This may be accomplis
17、hed by using a MOSFET to pull the I/O line directly to the power supply as shown in Figure 2. The I/O line must be switched over to the strong pullup within 10 ms maximum after issuing any protocol that involves copying to the E2 memory or initiates temperature conversions. When using the parasite p
18、ower mode, the VDD pin must be tied to ground. Another method of supplying current to the DS1820 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 I/O line, and the bus master need not be t
19、ied up holding that line high during temperature conversions. This allows other data traffic on the 1Wire bus during the conversion time. In addition, any number of DS1820s may be placed on the 1Wire bus, and if they all use external power, they may all simultaneously perform temperature conversions
20、 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 cur
21、rents the DS1820 exhibits at these temperatures. For applications in which such temperatures are likely, it is strongly recommended that VDD be applied to the DS1820. For situations where the bus master does not know whether the DS1820s on the bus are parasite powered or supplied with external VDD,
22、a provision is made in the DS1820 to signal the power supply scheme used. The bus master can determine if any DS1820s are on the bus which require the strong pullup by sending a Skip.ROM protocol, then issuing the read power supply command. After this command is issued, the master then issues read t
23、ime slots.The DS1820 will send back “0” on the 1Wire 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 I/O line during temperature conversions. See “Memory Command Functions” s
24、ection for more detail on this command protocol.OPERATION MEASURING TEMPERATUREThe DS1820 measures temperature through the use of an onboard proprietary temperature measurement technique. A block diagram of the temperature measurement circuitry is shown in Figure 4. The DS1820 measures temperature b
25、y counting the number of clock cycles that an oscillator with a low temperature coefficient goes through during a gate period determined by a high temperature coefficient oscillator. The counter is preset with a base count that corresponds to 55C. If the counter reaches zero before the gate period i
26、s over, the temperature register, which is also preset to the 55C value, is incremented, indicating that the temperature is higher than 55C. At the same time, the counter is then preset with a value determined by the slope accumulator circuitry. This circuitry is needed to compensate for the parabol
27、ic behavior of the oscillators over temperature. The counter is then clocked again until it reaches zero.If the gate period is still not finished, then this process repeats. The slope accumulator is used to compensate for the nonlinear behavior of the oscillators over temperature, yielding a high re
28、solution temperature measurement. This is done by changing the number of counts necessary for the counter to go through for each incremental degree in temperature. To obtain the desired resolution, therefore, both the value of the counter and the number of counts per degree C (the value of the slope
29、 accumulator) at a given temperature must be known.Internally, this calculation is done inside the DS1820 to provide 0.5C resolution. The temperature reading is provided in a 16bit, signextended twos complement reading. Table 1 describes the exact relationship of output data to measured temperature.
30、 The data is transmitted serially over the 1Wire interface. The DS1820 can measure temperature over the range of 55C to +125C in 0.5C increments. For Fahrenheit usage, a lookup table or conversion factor must be used.Note that temperature is represented in the DS1820 in terms of a 1/2C LSB, yielding
31、 the following 9bit format:The most significant (sign) bit is duplicated into all of the bits in the upper MSB of the twobyte temperature register in memory. This “signextension” yields the 16bit temperature readings as shown in Table 1. Higher resolutions may be obtained by the following procedure.
32、 First, read the temperature, and truncate the 0.5C bit (the LSB) from the read value. This value is TEMP_READ. The value left in the counter may then be read. This value is the count remaining (COUNT_REMAIN) after the gate period has ceased. The last value needed is the number of counts per degree
33、C (COUNT_PER_C) at that temperature. The actual temperature may be then be calculated by the user using the following:1WIRE BUS SYSTEMThe 1Wire bus is a system which has a single bus master and one or more slaves. The DS1820 behaves as a slave. The discussion of this bus system is broken down into t
34、hree topics: hardware configuration, transaction sequence, and 1Wire signaling (signal types and timing).HARDWARE CONFIGURATION The 1Wire bus has only a single line by definition; it is important that each device on the bus be able to drive it at the appropriate time. To facilitate this, each device
35、 attached to the 1Wire bus must have open drain or 3state outputs.The 1Wire port of the DS1820 (I/Opin) is open drain with an internal circuit equivalent to that shown in Figure 9. A multidrop bus consists of a 1Wire bus with multiple slaves attached. The 1Wire bus requires a pullup resistor of appr
36、oximately 5KW.The idle state for the 1Wire bus is high. If for any reason a transaction needs to be suspended, the bus MUST be left in the idle state if the transaction is to resume. Infinite recovery time can occur between bits so long as the 1Wire bus is in the inactive (high) state during the rec
37、overy period. If this does not occur and the bus is left low for more than 480 ms, all components on the bus will be reset. TRANSACTION SEQUENCEThe protocol for accessing the DS1820 via the 1Wire port is as follows: Initialization ROM Function Command Memory Function Command Transaction/DataINITIALI
38、ZATIONAll transactions on the 1Wire bus begin with an 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 the DS1820 is on the bus and i
39、s ready to operate. For more details, see the “1Wire Signaling” section.ROM FUNCTION COMMANDSOnce the bus master has detected a presence, it can issue one of the five ROM function commands. All ROM function commands are 8bits long. A list of these commands follows (refer to flowchart in Figure 6):Re
40、ad ROM 33hThis command allows the bus master to read the DS1820s 8bit family code, unique 48bit serial number,and 8bit CRC. This command can only be used if there is a single DS1820 on the bus. If more than one slave is present on the bus, a data collision will occur when all slaves try to transmit
41、at the same time (open drain will produce a wired AND result).Match ROM 55hThe match ROM command, followed by a 64bit ROM sequence, allows the bus master to address a specific DS1820 on a multidrop bus. Only the DS1820 that exactly matches the 64bit ROM sequence will respond to the following memory
42、function command. All slavesthat do not match the 64bit ROM sequence will wait for a reset pulse. This command can be used with a single or multiple devices on the bus.Skip ROM CChThis command can save time in a single drop bus system by allowing the bus master to access the memory functions without
43、 providing the 64bit ROM code. If more than one slave is present on the bus and a read command is issued following the Skip ROM command, data collision will occur on the bus as multiple slaves transmit simultaneously (open drain pulldowns will produce a wired AND result).Search ROM F0hWhen a system
44、is initially brought up, the bus master might not know the number of devices on the 1Wire bus or their 64bit ROM codes. The search ROM command allows the bus master to use a process of elimination to identify the 64bit ROM codes of all slave devices on the bus.中文翻译:DS1820特性:独特的单线接口,只需1 个接口引脚即可通信;多点(
45、multidrop)能力使分布式温度检测应用得以简化;不需要外部元件;可用数据线供电;不需备份电源;测量范围从-55至+125,增量值为0.5。等效的华氏温度范围是-67 F 至257 F,增量值为0.9 F;以9位数字值方式读出温度;在1秒(典型值)内把温度变换为数字;用户可定义的,非易失性的温度告警设置;告警搜索命令识别和寻址温度在编定的极限之外的器件(温度告警情况);应用范围包括恒温控制,工业系统,消费类产品,温度计或任何热敏系统。详细说明DS1820有三个主要的数据部件:1)64位激光lasered ROM;2)温度灵敏元件,和3)非易失性温度告警触发器TH和TL。器件从单线的通信线取
46、得其电源,在信号线为高电平的时间周期内,把能量贮存在内部的电容器中,在单信号线为低电平的时间期内断开此电源,直到信号线变为高电平重新接上寄生(电容)电源为止。作为另一种可供选择的方法,DS1820也可以用外部5V电源供电。与DS1820 的通信经过一个单线接口。在单线接口情况下,在ROM 操作未定建立之前不能使用存贮器和控制操作。主机必须首先提供五种ROM操作命令之一;1)Read ROM(读ROM); 2)Match ROM(符合ROM);3)Search ROM(搜索ROM);4)Skip ROM(跳过ROM);5)Alarm Search(告警搜索);这些命令对每一器件的64位激光ROM
47、 部分进行操作,如果在单线上有许多器件,那么可以挑选出一个特定的器件,并给总线上的主机指示存在多少器件及其类型。在成功地执行了ROM 操作序列之后,可使用存贮器和控制操作,然后主机可以提供六种存贮器和控制操作命令之一。一个控制操作命令指示DS1820 完成温度测量。该测量的结果将放入DS1820 的高速暂存(便笺式)存贮器(Scratchpad memory),通过发出读暂存存储器内容的存储器操作命令可以读出此结果。每一温度告警触发器TH和TL构成一个字节的EEPROM。如果不对DS1820 施加告警搜索命令,这些寄存器可用作通用用户存储器使用存储器,操作命令可以写TH 和TL 对这些寄存器的
48、读访问。所有数据均以最低有效位在前的方式被读写。寄生电源方框图(图1)示出寄生电源电路。当I/O或VDD 引脚为高电平时,这个电路便“取”得电源。只要符合指定的定时和电压要求,I/O将提供足够的功率(标题为“单总线系统”一节)。寄生电源的优点是双重的:1)利用此引脚,远程温度检测无需本地电源;2)缺少正常电源条件下也可以读ROM;为了使DS1820能完成准确的温度变换,当温度变换发生时,I/O 线上必须提供足够的功率。因为DS1820 的工作电流高达1mA ,5K 的上拉电阻将使I/O 线没有足够的驱动能力。如果几个SD1820 在同一条I/O 线上而且同时变换,那么这一问题将变得特别尖锐。有
49、两种方法确保DS1820 在其有效变换期内得到足够的电源电流。第一种方法是发生温度变换时,在I/O 线上提供一强的上拉。如图2所示,通过使用一个MOSFET 把I/O 线直接拉到电源可达到这一点。当使用寄生电源方式时VDD 引脚必须连接到地。向DS1820 供电的另外一种方法是通过使用连接到VDD 引脚的外部电源,如图3 所示这种方法的优点是在I/O 线上不要求强的上拉。总线上主机不需向上连接便在温度变换期间使线保持高电平。这就允许在变换时间内其它数据在单线上传送。此外,在单线总线上可以放置任何数目的DS1820 ,而且如果它们都使用外部电源,那么通过发出跳过(Skip) ROM 命令和接着发
50、出变换(Convert) T 命令,可以同时完成温度变换。注意只要外部电源处于工作状态,GND(地引)脚不可悬空。在总线上主机不知道总线上DS1820 是寄生电源供电还是外部VDD 供电的情况下,在DS1820 内采取了措施来通知采用的供电方案。总线上主机通过发出跳过(Skip)ROM 的操作约定,然后发出读电源命令,可以决定是否有需要强上拉的DS1820 在总线上。在此命令发出后,主机接着发出读时间片。如果是寄生供电,DS1820 将在单线总线上送回“0”;如果由VDD 引脚供电,它将送回1。如果主机接收到一个“0”,它知道它必须在温度变换期间在I/O 线上供一个强的上拉。有关此命令约定的详细说明见存贮器命令功能一节。运用测量温度SDS1820 通过使用在板(on-board)温度测量专利技术来测量温度。温度测量电路的方框图见图4 所示。DS1820 通过门开通期间内低温度系数振荡器经历的时钟周期个数计数来测量温度,如果在门开通期结束前计数器达到零,那么温度寄存器它也被予置到-55的数值将增量,指示温度高于-55。同时,计数器用钭率累加器电路所决定的值进行予置。为了对遵循抛物线规律的振荡器温度特性进行补偿,这
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 肝病护理课件
- 福清市数学试卷
- 广安市高二数学试卷
- 高中生在家做数学试卷
- 厨房清理知识培训课件
- 肌腱断裂的护理课件
- 高一入学分班考数学试卷
- 2025年04月云南宁洱县医疗卫生事业单位第二轮急需紧缺人才招聘3人笔试历年专业考点(难、易错点)附带答案详解
- 2025至2030大闸蟹养殖行业发展趋势分析与未来投资战略咨询研究报告
- 2024年文山州麻栗坡县县级卫生健康单位选调笔试真题
- GB/T 19096-2003技术制图图样画法未定义形状边的术语和注法
- GB/T 13808-1992铜及铜合金挤制棒
- 项目安全体系图
- 中央财政科技计划的项目结题审计指引讲解文课件
- 医院就诊告知书
- 职业暴露(锐器伤)应急预案演练脚本
- 首届全国报刊编校技能大赛决赛试卷(一)及答案
- 材料出入库表格范本
- DB14∕T 2442-2022 政务数据分类分级要求
- 医务人员行为规范以及服务礼仪
- 医用手套的研究进展
评论
0/150
提交评论