ds18b20中英文资料.pdf
《ds18b20中英文资料.pdf》由会员分享,可在线阅读,更多相关《ds18b20中英文资料.pdf(11页珍藏版)》请在冰豆网上搜索。
![ds18b20中英文资料.pdf](https://file1.bdocx.com/fileroot1/2022-11/2/97864566-0d83-4677-8565-fbf792c6d297/97864566-0d83-4677-8565-fbf792c6d2971.gif)
FEATURES?
Unique1-Wireinterfacerequiresonlyoneportpinforcommunication?
Eachdevicehasaunique64-bitserialcodestoredinanonboardROM?
Multidropcapabilitysimplifiesdistributedtemperaturesensingapplications?
Requiresnoexternalcomponents?
Canbepoweredfromdataline.Powersupplyrangeis3.0Vto5.5V?
Measurestemperaturesfrom55Cto+125C(67Fto+257F)?
0.5?
Caccuracyfrom10Cto+85C?
Thermometerresolutionisuser-selectablefrom9to12bits?
Convertstemperatureto12-bitdigitalwordin750ms(max.)?
User-definablenonvolatile(NV)alarmsettings?
Alarmsearchcommandidentifiesandaddressesdeviceswhosetemperatureisoutsideofprogrammedlimits(temperaturealarmcondition)?
Availablein8-pinSO(150mil),8-pin?
SOP,and3-pinTO-92packages?
SoftwarecompatiblewiththeDS1822?
Applicationsincludethermostaticcontrols,industrialsystems,consumerproducts,thermometers,oranythermallysensitive特征:
特征:
独特的单线接口,只需1个接口引脚即可通信每个设备都有一个唯一的64位串行代码存储在光盘片上多点能力使分布式温度检测应用得以简化不需要外部部件可以从数据线供电,电源电压范围为3.0V至5.5V测量范围从-55C至+125C(-67F至257F),从-10至+85C的精度为0.5C温度计分辨率是用户可选择的9至12位转换12位数字的最长时间是750ms用户可定义的非易失性的温度告警设置告警搜索命令识别和寻址温度在编定的极限之外的器件(温度告警情况)采用8引脚SO(150mil),8引脚SOP和3引脚TO-92封装软件与DS1822兼容应用范围包括恒温控制工业系统消费类产品温度计或任何热敏系统DESCRIPTIONTheDS18B20DigitalThermometerprovides9to12bitcentigradetemperaturemeasurementsandhasanalarmfunctionwithnonvolatileuser-programmableupperandlowertriggerpoints.TheDS18B20communicatesovera1-Wirebusthatbydefinitionrequiresonlyonedataline(andground)forcommunicationwithacentralmicroprocessor.Ithasanoperatingtemperaturerangeof55Cto+125Candisaccurateto?
0.5?
Covertherangeof10Cto+85C.Inaddition,theDS18B20canderivepowerdirectlyfromthedataline(“parasitepower”),eliminatingtheneedforanexternalpowersupply.EachDS18B20hasaunique64-bitserialcode,whichallowsmultipleDS18B20stofunctiononthesame1wirebus;thus,itissimpletouseonemicroprocessortocontrolmanyDS18B20sdistributedoveralargearea.ApplicationsthatcanbenefitfromthisfeatureincludeHVACenvironmentalcontrols,temperaturemonitoringsystemsinsidebuildings,equipmentormachinery,andprocessmonitoringandcontrolsystems.简介简介该DS18B20的数字温度计提供9至12位的摄氏温度测量,并具有与非易失性用户可编程上限和下限报警功能。
信息单线接口送入DS1820或从DS1820送出,因此按照定义只需要一条数据线(和地线)与中央微处理器进行通信。
它的测温范围从-55C到+125C,其中从-10C至+85C可以精确到0.5C。
此外,DS18B20可以从数据线直接供电(“寄生电源”),从而消除了供应需要一个外部电源。
每个DS18B20的有一个唯一的64位序列码,它允许多个DS18B20s的功能在同一1-巴士线,因此,用一个微处理器控制大面积分布的许多DS18B20s是非常简单的。
此特性的应用范围包括HVAC、环境控制、建筑物、设备或机械内的温度检测以及过程监视和控制系统。
OVERVIEWFigure1showsablockdiagramoftheDS18B20,andpindescriptionsaregiveninTable1.The64-bitROMstoresthedevicesuniqueserialcode.Thescratchpadmemorycontainsthe2-bytetemperatureregisterthatstoresthedigitaloutputfromthetemperaturesensor.Inaddition,thescratchpadprovidesaccesstothe1-byteupperandloweralarmtriggerregisters(THandTL),andthe1-byteconfigurationregister.Theconfigurationregisterallowstheusertosettheresolutionofthetemperature-to-digitalconversionto9,10,11,or12bits.TheTH,TLandconfigurationregistersarenonvolatile(EEPROM),sotheywillretaindatawhenthedeviceispowereddown.TheDS18B20usesDallasexclusive1-Wirebusprotocolthatimplementsbuscommunicationusingonecontrolsignal.Thecontrollinerequiresaweakpullupresistorsincealldevicesarelinkedtothebusviaa3-stateoropen-drainport(theDQpininthecaseoftheDS18B20).Inthisbussystem,themicroprocessor(themasterdevice)identifiesandaddressesdevicesonthebususingeachdevicesunique64-bitcode.Becauseeachdevicehasauniquecode,thenumberofdevicesthatcanbeaddressedononebusisvirtuallyunlimited.The1-Wirebusprotocol,includingdetailedexplanationsofthecommandsand“timeslots,”iscoveredinthe1-WIREBUSSYSTEMsectionofthisdatasheet。
AnotherfeatureoftheDS18B20istheabilitytooperatewithoutanexternalpowersupply.Powerisinsteadsuppliedthroughthe1-WirepullupresistorviatheDQpinwhenthebusishigh.Thehighbussignalalsochargesaninternalcapacitor(CPP),whichthensuppliespowertothedevicewhenthebusislow.Thismethodofderivingpowerfromthe1-Wirebusisreferredtoas“parasitepower.”Asanalternative,theDS18B20mayalsobepoweredbyanexternalsupplyonVDD.综述综述图1显示了DS18B20的框图,引脚说明如表1。
64位ROM存储设备的独特序号。
存贮器包含2个字节的温度寄存器,它存储来自温度传感器的数字输出。
此外,暂存器可以访问的1个字节的上下限温度告警触发器(TH和TL)和1个字节的配置寄存器。
配置寄存器允许用户设置的温度到数字转换的分辨率为9,10,11或12位。
TH,TL和配置寄存器是非易失性的,因此掉电时依然可以保存数据。
该DS18B20使用Dallas的单总线协议,总线之间的通信用一个控制信号就可以实现。
控制线需要一个弱上拉电阻,因为所有的设备都是通过3线或开漏端口连接(在DS18B20中用DQ引脚)到总线的。
在这种总线系统中,微处理器(主设备)和地址标识上使用其独有的64位代码。
因为每个设备都有一个唯一的代码,一个总线上连接设备的数量几乎是无限的。
单总线协议,包括详细的解释命令和“时间槽”,此资料的单总线系统部分包括这些内容。
DS18B20的另一个特点是:
没有外部电源供电仍然可以工作。
当DQ引脚为高电平时,电压是单总线上拉电阻通过DQ引脚供应的。
高电平信号也可以充当外部电源,当总线是低电平时供应给设备电压。
这种从但总线提供动力的方法被称为“寄生电源“。
作为替