您好,欢迎访问三七文档
当前位置:首页 > 临时分类 > DS18B20温度传感器资料
1of27050400FEATURESUnique1-WireinterfacerequiresonlyoneportpinforcommunicationMultidropcapabilitysimplifiesdistributedtemperaturesensingapplicationsRequiresnoexternalcomponentsCanbepoweredfromdataline.Powersupplyrangeis3.0Vto5.5VZerostandbypowerrequiredMeasurestemperaturesfrom-55°Cto+125°C.Fahrenheitequivalentis-67°Fto+257°F±0.5°Caccuracyfrom-10°Cto+85°CThermometerresolutionisprogrammablefrom9to12bitsConverts12-bittemperaturetodigitalwordin750ms(max.)User-definable,nonvolatiletemperaturealarmsettingsAlarmsearchcommandidentifiesandaddressesdeviceswhosetemperatureisoutsideofprogrammedlimits(temperaturealarmcondition)Applicationsincludethermostaticcontrols,industrialsystems,consumerproducts,thermometers,oranythermallysensitivesystemPINASSIGNMENTPINDESCRIPTIONGND-GroundDQ-DataIn/OutVDD-PowerSupplyVoltageNC-NoConnectDESCRIPTIONTheDS18B20DigitalThermometerprovides9to12-bit(configurable)temperaturereadingswhichindicatethetemperatureofthedevice.Informationissentto/fromtheDS18B20overa1-Wireinterface,sothatonlyonewire(andground)needstobeconnectedfromacentralmicroprocessortoaDS18B20.Powerforreading,writing,andperformingtemperatureconversionscanbederivedfromthedatalineitselfwithnoneedforanexternalpowersource.BecauseeachDS18B20containsauniquesiliconserialnumber,multipleDS18B20scanexistonthesame1-Wirebus.Thisallowsforplacingtemperaturesensorsinmanydifferentplaces.ApplicationswherethisfeatureisusefulincludeHVACenvironmentalcontrols,sensingtemperaturesinsidebuildings,equipmentormachinery,andprocessmonitoringandcontrol.DS18B20ProgrammableResolution1-Wire®DigitalThermometer(150mil)DS18B202of27DETAILEDPINDESCRIPTIONTable1PIN8PINSOICPINTO92SYMBOLDESCRIPTION51GNDGround.42DQDataInput/Outputpin.For1-Wireoperation:Opendrain.(See“ParasitePower”section.)33VDDOptionalVDDpin.See“ParasitePower”sectionfordetailsofconnection.VDDmustbegroundedforoperationinparasitepowermode.DS18B20Z(8-pinSOIC):Allpinsnotspecifiedinthistablearenottobeconnected.OVERVIEWTheblockdiagramofFigure1showsthemajorcomponentsoftheDS18B20.TheDS18B20hasfourmaindatacomponents:1)64-bitlaseredROM,2)temperaturesensor,3)nonvolatiletemperaturealarmtriggersTHandTL,and4)aconfigurationregister.Thedevicederivesitspowerfromthe1-Wirecommunicationlinebystoringenergyonaninternalcapacitorduringperiodsoftimewhenthesignallineishighandcontinuestooperateoffthispowersourceduringthelowtimesofthe1-Wirelineuntilitreturnshightoreplenishtheparasite(capacitor)supply.Asanalternative,theDS18B20mayalsobepoweredfromanexternal3volt-5.5voltsupply.CommunicationtotheDS18B20isviaa1-Wireport.Withthe1-Wireport,thememoryandcontrolfunctionswillnotbeavailablebeforetheROMfunctionprotocolhasbeenestablished.ThemastermustfirstprovideoneoffiveROMfunctioncommands:1)ReadROM,2)MatchROM,3)SearchROM,4)SkipROM,or5)AlarmSearch.Thesecommandsoperateonthe64-bitlaseredROMportionofeachdeviceandcansingleoutaspecificdeviceifmanyarepresentonthe1-Wirelineaswellasindicatetothebusmasterhowmanyandwhattypesofdevicesarepresent.AfteraROMfunctionsequencehasbeensuccessfullyexecuted,thememoryandcontrolfunctionsareaccessibleandthemastermaythenprovideanyoneofthesixmemoryandcontrolfunctioncommands.OnecontrolfunctioncommandinstructstheDS18B20toperformatemperaturemeasurement.TheresultofthismeasurementwillbeplacedintheDS18B20’sscratch-padmemory,andmaybereadbyissuingamemoryfunctioncommandwhichreadsthecontentsofthescratchpadmemory.ThetemperaturealarmtriggersTHandTLconsistof1byteEEPROMeach.IfthealarmsearchcommandisnotappliedtotheDS18B20,theseregistersmaybeusedasgeneralpurposeusermemory.Thescratchpadalsocontainsaconfigurationbytetosetthedesiredresolutionofthetemperaturetodigitalconversion.WritingTH,TL,andtheconfigurationbyteisdoneusingamemoryfunctioncommand.Readaccesstotheseregistersisthroughthescratchpad.Alldataisreadandwrittenleastsignificantbitfirst.DS18B203of27DS18B20BLOCKDIAGRAMFigure1PARASITEPOWERTheblockdiagram(Figure1)showstheparasite-poweredcircuitry.Thiscircuitry“steals”powerwhenevertheDQorVDDpinsarehigh.DQwillprovidesufficientpoweraslongasthespecifiedtimingandvoltagerequirementsaremet(seethesectiontitled“1-WireBusSystem”).Theadvantagesofparasitepoweraretwofold:1)byparasitingoffthispin,nolocalpowersourceisneededforremotesensingoftemperature,and2)theROMmaybereadinabsenceofnormalpower.InorderfortheDS18B20tobeabletoperformaccuratetemperatureconversions,sufficientpowermustbeprovidedovertheDQlinewhenatemperatureconversionistakingplace.SincetheoperatingcurrentoftheDS18B20isupto1.5mA,theDQlinewillnothavesufficientdriveduetothe5kpullupresistor.ThisproblemisparticularlyacuteifseveralDS18B20sareonthesameDQandattemptingtoconvertsimultaneously.TherearetwowaystoassurethattheDS18B20hassufficientsupplycurrentduringitsactiveconversioncycle.ThefirstistoprovideastrongpullupontheDQlinewhenevertemperatureconversionsorcopiestotheE2memoryaretakingplace.ThismaybeaccomplishedbyusingaMOSFETtopulltheDQlinedirectlytothepowersupply
本文标题:DS18B20温度传感器资料
链接地址:https://www.777doc.com/doc-3359678 .html