ImageVerifierCode 换一换
格式:DOCX , 页数:12 ,大小:93.71KB ,
资源ID:8188845      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/8188845.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(外文翻译DS18B20 数字温度计.docx)为本站会员(b****6)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

外文翻译DS18B20 数字温度计.docx

1、外文翻译DS18B20 数字温度计毕业论文(设计)文献翻译本翻译源自于: CNKI 毕业设计名称: 基于单片机的转速温度智能测控系统设计 外文翻译名称: DS18B20 温度计 学 生 姓 名 : 院 (系): 电子信息工程学院 专 业 班 级 : 电气10901 DS18B20 数字温度计Ching Dai著,蔡信鹏译描述DS18B20 数字温度计提供9至12位温度读数,指示器件的温度。信息经过单线接口送入DS18B20或送出,因此从中央处理器到DS18B20仅需连接一条(和地)。读、写和完成温度变换所需的电源可以有数据线本身提供,而不需要外部电源。因为每一个DS18B20有唯一的系列号,因

2、此多个DS18B20可以存在于同一条单线总线上。这允许在许多不同的地方放置温度灵敏器件。此特性的应用范围包括HVAC环境控制,建筑物、设备或机械内的温度检测,以及过程监视和控制中的温度检测。特性独特的单线接口,只需一个接口引脚即可通信。多点能力使分布式温度检测应用得以简化。不需要外部元件。可用数据线供电,提供3.0V到5.5V的电源。不需备份电源。测量范围从-55C 到+125C,等效的华氏温标范围是-67F 到+257F以9到12位数字值方式读出温度。在750毫秒内把12位温度变换为数字。用户可定义的,非易失性的温度警告设置。告警搜索命令识别和寻址温度在编定的极限之外的器件(温度告警情况)。

3、应用范围包括恒温控制,工业系统,消费类产品,温度计或任何热敏系统。引脚排列引脚说明GND 地DQ 数字输入输出VDD 可选的VDDNC 不连接详细引脚说明综述图1的方框图表示DS18B20的主要部件。DS18B20有三个主要的数据部件:1)64为激光ROM,2)温度灵敏元件,3)非易失性温度告警触发器TH和TL。器件从单线的通信线取得其电源,在信号线为高电平的时间周期内,把能量贮存在内部的电容器中,在单信号线为低电平的时间期内断开此电源,直到信号线变为高电平重新接上寄生(电容)电源为止,作为另一种可供选择的方法,DS18B20也用外部5V电源供电。与DS18B20的通信经过一个单线接口。在单线

4、接口情况下,在ROM操作未定建立之前不能使用存贮器和控制操作。主机必须首先提供五种ROM操作命令之一:1)读ROM,2)符合ROM,3)搜索ROM,4)跳过ROM,5)告警搜索。这些命令对每一个器件的64位激光ROM部分进行操作。如果在单线上有许多器件,那么可以挑选出一个特定的器件,并给总线上的主机指示存在多少器件及其类型。在成功地执行了ROM操作序列之后,可使用贮存2器和控制操作。然后主机可以提供六种存贮器和操作命令之一。一个操作命令指示DS18B20完成温度测量。改测量的结果放入DS18B20的高速暂存存贮器,通过发出读暂存存储器内容的存储器操作命令可以读出此结果。每一温度告警触发器TH和

5、TL构成一个字节的EPROM。如果不对DS18B20施加告警搜索命令,这些寄存器用作通用用户存储器。使用存储器操作命令可以写TH和TL。对这些寄存器的读访问通过便簮存储器。所以数据均以最低有效位在前的方式被读写。单线总线系统单线总线是一种具有一个总线主机和一个或若干个从机的系统。DS18B20起从机的作用。这种总线系统的讨论分为三个题目:硬件接法,处理顺序,以及单线信号(信号类型与定时)。硬件接法根据定义,单线总线只有一根线:这一点很重要的,即线上的第一个器件能在适当的时间驱动该总线。为了做到这一点第一个连接到总线上的器件必须具有漏极开路或三态输出。DS18B20的单线接口。多站总线由单线总线

6、和多个与之相连的从属器件组成。单线总线要求近似等于5 k.单线总线的空闲状态是高电平。不管任何原因,如果执行需要被挂起,那么,若要重新恢复执行,总线必须保持在空闲状态。如果不满足这一点且总线保持在低电平时间大于480微秒,那么总线上所有的器件均被复位。硬件连接图处理顺序经过单线总线接口访问DS18B20的协议如下:初始化ROM操作命令存贮器操作命令处理/数据初始化单线总线上的所有处理均从初始化序列开始。初始化序列包括总线主机发出一复位脉冲,接着由从属器件送出存在脉冲。ROM操作命令一旦总线主机检测到从属器件的存在,他便可以发出器件ROM操作命令之一。所有ROM操作命令均由8位长,这些命令列表如

7、下:读ROM 33H此命令允许总线主机读DS18B20的8位产品系列编码,唯一的48位序列号,以及8位的CRC。此命令只能在总线上仅有一个DS18B20得情况下可以使用。如果总线上存在多于一个得从属器件,那么所有从片企图同时发送时将发生数据冲突的现象。符合ROM 55h符合ROM命令。后继以64位的ROM数据序列,允许总线主机对多点总线上的DS18B20寻址。只有与64位ROM序列严格相符的DS18B20才能对后继的存贮器操作命令作出响应。所有与64位ROM序列不符的从片将等待复位脉冲。此命令在总线数据上有单个或多个器件的情况下均可使用。跳过ROMCCh在单点总线系统中,此命令通过允许总线主机

8、不提供64位ROM编码而访问存储器操作来节省时间。如果在总线上存在多于一个得从属器件而且在跳过ROM命令之后发出读命令,那么由于多个从片同时发送数据,会在总线上发生数据冲突搜索ROMF0h当系统开始工作时,总线主机可能不知道单线总线上的器件个数或者不知道其64位ROM编码。搜索ROM命令允许总线主机使用一种消去处理来识别总线上的所有从片的64位ROM编码。告警搜索ECh此命令的流程与搜索ROM命令相同。但是,仅在最近一次温度测量出现告警的情况下,DS18B20才对此命令作出响应。告警的条件定义为温度高于TH或低于TL。只要DS18B20一上电,告警条件就保持在设置状态,直到另一次温度测量告警。

9、ROM搜索举例ROM搜索过程是简单三步过程的重复:读一位,读核位的补码,然后写所需的那一位的值。总线主机在ROM的每一位上完成这一简单的三步过程。在全部过程完成之后,总线主机便知道一个器件中ROM的内容,器件中其余的数以及他们的ROM编码可以游另外一个过程来识别。以下ROM搜索过程的例子假设四个不同的器件连接到同一条单线总线上。四个器件的ROM数据如下所示: ROM1 00110101 ROM2 10101010 ROM3 11110101 ROM4 00010001搜索过程如下:1.总线主机通过发出复位脉冲开始初始化序列,从属器件通过发出同时的存在脉冲作出响应。2.然后总线主机在单线总线上发

10、出搜索人ROM命令。3.总线主机从单线过程中读一位。每一器件通过把他们各自ROM数据的第一位的值放到单线总线上来作出响应。ROM1和ROM4:将把一个0放在单线总线上,即,把它拉至低电平。ROM2和3通过使总线停留在高电平而把1放在单线总线上。结果是线上所有器件的逻辑与,因此总线主机接收到一个0.总线主机读另一位。因此搜索ROM数据命令正在执行,所以单线总线上所有器件通过把各自ROM数据第一位的补码放到单线总线上来对这第二个读作出响应。ROM1和ROM2把1放在单总线上,使之处于高电平。ROM2和ROM3把0放在单线上,因此他将被拉至低电平。对于第一个ROM数据位的补码总线主机观察到得仍是一个

11、0.总线主机便可决定单线总线上有一些第一位为0的器件和一些第一位为1的器件。4.总线主机写一个0.在这次搜索过程的其余部分,将不选择ROM2和ROM3,仅留下连接到单线总线的ROM1和ROM4。5.总线主机再执行两次读,并在一个1位之后接收到一个0位,这表示所有还连接在总线上的器件的第二个ROM数据位为0.6.总线主机接着写一个0,使ROM1和ROM4二者保持连接。7.总线主机执行两次连读,并接收到两次0数据位。这表示连接着的器件ROM数据的第三位都是1数据位和0数据位。8.总线主机写一个数据位。这将不选择ROM1而把ROM4作为唯一仍连接着的器件加以保留。9.总线主机读ROM4的ROM数据位

12、的剩余部分,而且访问需要的部件。这就完成了第一个过程并且唯一的识别单线总线上的部件。10.总线主机通过重复步骤1至7开始一个新的ROM搜索序列。11.总线主机写一个1,这将不与ROM4发生联系,而唯一的与ROM1仍保持着联系。12.总线主机对于ROM1读出ROM位的剩余部分而且,如果需要的话,与内部逻辑通信。这就完成了第二个ROM搜索过程,在其中ROM中的另一个被找到。13.总线主机通过重复步骤1至3开始一次新的ROM搜索。注意下述内容:在第一次ROM搜索过程中,总线主机知道一个单线器件的唯一的ID号。取得部件唯一ROM编码的时间为:960us+(8+364)us=13.16ms因此总线主机每

13、秒钟能够识别75个不同的单线器件。DS18B20 Digital ThermometerChing DaiDESCRIPTIONThe 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) ne

14、eds 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 ex

15、ist 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.FEATURESUnique 1-Wire int

16、erface requires only one port pin for communicationMultidrop capability simplifies distributed temperature sensing applicationsRequires no external componentsCan be powered from data line. Power supply range is 3.0V to 5.5VZero standby power requiredMeasures temperatures from -55C to+125C. Fahrenhei

17、t equivalent is -67F to +257FThermometer resolution is programmable from 9 to 12 bitsConverts 12-bit temperature to digital word in 750 ms (max.)User-definable, nonvolatile temperature alarm settingsAlarm search command identifies and addresses devices whose temperature is outside of programmed limi

18、ts (temperature alarm condition)Applications include thermostatic controls, industrial systems, consumer products,thermometers, or any thermally sensitivesystem.PIN ASSIGNMENTPIN DESCRIPTIONGND - GroundDQ - Data In/OutVDD - Power Supply VoltageNC - No ConnectDETAILED PIN DESCRIPTION OVERVIEWThe bloc

19、k 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. The device derives its power from the 1-Wire communication line by storing energy on an inter

20、nal 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 be powered from an external 3 volt - 5.

21、5 volt 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

22、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 eachdevice 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.

23、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 o

24、f 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 DS18

25、B20, 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 register

26、s is through the scratchpad. All data is read and written least significant bit first.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 configu

27、ration, transaction sequence, and 1-Wire signaling (signal types and timing).HARDWARE CONFIGURATIONThe 1-Wire 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 attached to the 1-Wire bus

28、must have open drain or 3-state outputs. The 1-Wire port of the DS18B20 (DQ pin) is open drain with an internal circuit equivalent to that shown in Figure 9. A multidrop bus consists of a 1-Wire bus with multiple slaves attached. The 1-Wire bus requires a pullup resistor of approximately 5 k .The id

29、le state for the 1-Wire 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 1-Wire bus is in the inactive (high) state during the recovery period. If t

30、his does not occur and the bus is left low for more than 480 s, all components on the bus will be reset.HARDWARE CONFIGURATION TRANSACTION SEQUENCEThe protocol for accessing the DS18B20 via the 1-Wire port is as follows:_ Initialization_ ROM Function Command_ Memory Function Command_ Transaction/Dat

31、aINITIALIZATIONAll transactions on the 1-Wire 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 DS18B20 is on t

32、he bus and is ready to operate. For more details, see the “1-Wire 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 8 bits long. A list of these commands follows (refer to flowchart in Figure 5)Read ROM 33hThis command allows the

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1