DS18B20中英文资料外文翻译文献Word文件下载.docx

上传人:wj 文档编号:467109 上传时间:2023-04-29 格式:DOCX 页数:26 大小:98.97KB
下载 相关 举报
DS18B20中英文资料外文翻译文献Word文件下载.docx_第1页
第1页 / 共26页
DS18B20中英文资料外文翻译文献Word文件下载.docx_第2页
第2页 / 共26页
DS18B20中英文资料外文翻译文献Word文件下载.docx_第3页
第3页 / 共26页
DS18B20中英文资料外文翻译文献Word文件下载.docx_第4页
第4页 / 共26页
DS18B20中英文资料外文翻译文献Word文件下载.docx_第5页
第5页 / 共26页
DS18B20中英文资料外文翻译文献Word文件下载.docx_第6页
第6页 / 共26页
DS18B20中英文资料外文翻译文献Word文件下载.docx_第7页
第7页 / 共26页
DS18B20中英文资料外文翻译文献Word文件下载.docx_第8页
第8页 / 共26页
DS18B20中英文资料外文翻译文献Word文件下载.docx_第9页
第9页 / 共26页
DS18B20中英文资料外文翻译文献Word文件下载.docx_第10页
第10页 / 共26页
DS18B20中英文资料外文翻译文献Word文件下载.docx_第11页
第11页 / 共26页
DS18B20中英文资料外文翻译文献Word文件下载.docx_第12页
第12页 / 共26页
DS18B20中英文资料外文翻译文献Word文件下载.docx_第13页
第13页 / 共26页
DS18B20中英文资料外文翻译文献Word文件下载.docx_第14页
第14页 / 共26页
DS18B20中英文资料外文翻译文献Word文件下载.docx_第15页
第15页 / 共26页
DS18B20中英文资料外文翻译文献Word文件下载.docx_第16页
第16页 / 共26页
DS18B20中英文资料外文翻译文献Word文件下载.docx_第17页
第17页 / 共26页
DS18B20中英文资料外文翻译文献Word文件下载.docx_第18页
第18页 / 共26页
DS18B20中英文资料外文翻译文献Word文件下载.docx_第19页
第19页 / 共26页
DS18B20中英文资料外文翻译文献Word文件下载.docx_第20页
第20页 / 共26页
亲,该文档总共26页,到这儿已超出免费预览范围,如果喜欢就下载吧!
下载资源
资源描述

DS18B20中英文资料外文翻译文献Word文件下载.docx

《DS18B20中英文资料外文翻译文献Word文件下载.docx》由会员分享,可在线阅读,更多相关《DS18B20中英文资料外文翻译文献Word文件下载.docx(26页珍藏版)》请在冰点文库上搜索。

DS18B20中英文资料外文翻译文献Word文件下载.docx

lEachDevicehasaUnique64-BitSerialCodeStoredinanOn-BoardROM

lMulti-dropCapabilitySimplifiesDistributedTemperature-SensingApplications

lRequiresNoExternalComponents

15

lCanBePoweredfromDataLine;

PowerSupplyRangeis3.0Vto5.5V

lMeasuresTemperaturesfrom-55°

C(-67°

Fto+257°

F)

CAccuracyfrom-10°

C

lThermometerResolutionisUserSelectablefrom9to12Bits

lConvertsTemperatureto12-BitDigitalWordin750ms(Max)

lUser-DefinableNonvolatile(NV)AlarmSettings

lAlarmSearchCommandIdentifiesandAddressesDevicesWhoseTemperatureisOutsideProgrammedLimits

lSoftwareCompatiblewiththeDS1822

lApplicationsIncludeThermostaticControls,IndustrialSystems,ConsumerProducts,Thermometers,orAnyThermallySensitiveSystem

3.OVERVIEW

Figure1showsablockdiagramoftheDS18B20,andpindescriptionsaregiveninthePinDescriptiontable.The64-bitROMstoresthedevice’suniqueserialcode.Thescratchpadmemorycontainsthe2-bytetemperatureregisterthatstoresthedigitaloutputfromthetemperaturesensor.Inaddition,thescratchpadprovidesaccesstothe1-byteupperandloweralarmtriggerregisters(THandTL)andthe1-byteconfigurationregister.Theconfigurationregisterallowstheusertosettheresolutionofthetemperatureto-digitalconversionto9,10,11,or12bits.TheTH,TL,andconfigurationregistersarenonvolatile(EEPROM),sotheywillretaindatawhenthedeviceispowereddown.

TheDS18B20usesMaxim’sexclusive1-Wirebusprotocolthatimplementsbuscommunicationusingonecontrolsignal.Thecontrollinerequiresaweakpullupresistorsincealldevicesarelinkedtothebusviaa3-stateoropen-drainport(theDQpininthecaseoftheDS18B20).Inthisbussystem,themicroprocessor(themasterdevice)identifiesandaddressesdevicesonthebususingeachdevice’sunique64-bitcode.Becauseeachdevicehasauniquecode,thenumberofdevicesthatcanbeaddressedononeDS18B20busisvirtuallyunlimited.The1-Wirebusprotocol,

includingdetailedexplanationsofthecommandsand“timeslots,‖iscoveredinthe1-WireBusSystemsection.

Vpu

4.7K

PARASITEPOWERCIRCUIT

MEMORYCONTROLLOGIC

DQ

TEMPERATURESENSOR

INTERNALVdd

64-BITROMAND

1-WIREPORT

ALARMHIGHTRIGGER(TH)

GND

Cpp

SCRATCHPAD

ALARMLOWTRIGGER(TL)

CONFIGURATIONREGISTER

Vdd

POWER-SUPPLYSENSE

8-BITCRCGENERATOR

AnotherfeatureoftheDS18B20istheabilitytooperatewithoutanexternalpowersupply.Powerisinsteadsuppliedthroughthe1-WirepullupresistorviatheDQpinwhenthebusishigh.Thehighbussignalalsochargesaninternalcapacitor(CPP),whichthensuppliespowertothedevicewhenthebusislow.Thismethodofderivingpowerfromthe 1-Wirebusisreferredtoas―parasitepower.‖Asanalternative,theDS18B20mayalsobepoweredbyanexternalsupplyonVDD.

Figure1.DS18B20BlockDiagram

4.OPERATION—MEASURINGTEMPERATUR

ThecorefunctionalityoftheDS18B20isitsdirect-to-digitaltemperaturesensor.Theresolutionofthetemperaturesensorisuser-configurableto9,10,11,or12bits,correspondingtoincrementsof0.5°

C,0.25°

C,0.125°

C,and0.0625°

C,respectively.Thedefaultresolutionatpower-upis12-bit.TheDS18B20powersupinalow-poweridlestate.ToinitiateatemperaturemeasurementandA-to-Dconversion,themastermustissueaConvertT[44h]command.Followingtheconversion,theresultingthermaldataisstoredinthe2-bytetemperatureregisterinthescratchpadmemoryandtheDS18B20returnstoitsidlestate.IftheDS18B20ispoweredbyanexternalsupply,themastercanissue―readtimeslots‖(seethe1-WireBusSystemsection)aftertheConvertTcommandandtheDS18B20willrespondbytransmitting0while

thetemperatureconversionisinprogressand1whentheconversionisdone.IftheDS18B20ispoweredwithparasitepower,thisnotificationtechniquecannotbeusedsincethebusmustbepulledhighbyastrongpullupduringtheentiretemperatureconversion.

bit7

bit6

bit5

bit4

bit3

23

22

21

20

2-1

TheDS18B20outputtemperaturedataiscalibratedindegrees Celsius;

forFahrenheitapplications,alookuptableorconversionroutinemustbeused.Thetemperaturedataisstoredasa16-bitsign-extendedtwo’scomplementnumberinthetemperatureregister(seeFigure2).Thesignbits(S)indicateifthetemperatureispositiveornegative:

forpositivenumbersS=0andfornegativenumbersS=1.IftheDS18B20isconfiguredfor12-bitresolution,allbitsinthetemperatureregisterwillcontainvaliddata.For11-bitresolution,bit0isundefined.For10-bitresolution,bits1and0areundefined,andfor9-bitresolutionbits2,1,and0areundefined.Table1givesexamplesofdigitaloutputdataandthecorrespondingtemperaturereadingfor12-bitresolutionconversions.

LSByte

bit15

bit14

bit13

bit12

bit11

MSByte

S

bit2 bit1 bit0

2-2 2-3 2-4

bit10 bit9 bit8

26 25 24

Figure2.TemperatureRegisterFormat

TEMPERATURE

DIGITALOUTPUT

(BINARY)

(HEX)

+125℃

0000011111010000

07D0H

+25.0625℃

0000000110010001

0191H

0℃

0000000000000000

0000H

-25.0625℃

1111111001101111

FE6FH

-55℃

1111110010010000

FC90H

Table1.Temperature/DataRelationship

5.64-BITLASEREDROMCODE

EachDS18B20containsaunique64–bitcode(seeFigure3)storedinROM.Theleastsignificant8bitsoftheROMcodecontaintheDS18B20’s1 -Wirefamilycode:

28h.Thenext48bitscontainauniqueserialnumber.Themostsignificant8bitscontaina cyclicredundancycheck(CRC)bytethatiscalculatedfromthefirst56bitsoftheROMcode.The64-bitROMcodeandassociatedROMfunctioncontrollogicallowtheDS18B20tooperateasa1-Wiredeviceusingtheprotocoldetailedinthe1-WireBusSystemsection.

8-BITCRC 48-BITSERIALNUMBER

8-BITFAMILYCODE

MSBLSBMSBLSBMSB

Figure3.64-BitLaseredROMCode

6.MEMORY

TheDS18B20’smemoryisorganized asshowninFigure4.ThememoryconsistsofanSRAMscratchpadwithnonvolatileEEPROMstorageforthehighandlowalarmtriggerregisters(THandTL)andconfigurationregister.NotethatiftheDS18B20alarmfunctionisnotused,theTHandTLregisterscanserveasgeneral-purposememory.

Byte0andbyte1ofthescratchpadcontaintheLSBandtheMSBofthetemperatureregister,respectively.Thesebytesareread-only.Bytes2and3provideaccesstoTHandTLregisters.Byte4containstheconfigurationregisterdata.Bytes5,6,and7arereservedforinternalusebythedeviceandcannotbeoverwritten.Byte8ofthescratchpadisread-onlyandcontainstheCRCcodeforbytes0through7ofthescratchpad.TheDS18B20generatesthisCRCusingthemethoddescribedintheCRCGenerationsection.

Dataiswrittentobytes2,3,and4ofthescratchpadusingtheWriteScratchpad[4Eh]command;

thedatamustbetransmittedtotheDS18B20startingwiththeleastsignificantbitofbyte2.Toverifydataintegrity,thescratchpadcanberead(usingtheReadScratchpad[BEh]command)afterthedataiswritten.Whenreadingthescratchpad,dataistransferredoverthe 1-Wirebusstartingwiththeleastsignificant

bitofbyte0.TotransfertheTH,TLandconfigurationdatafromthescratchpadtoEEPROM,themastermustissuetheCopyScratchpad[48h]command.

Byte0 TemperatureLSB

Byte1 TemperatureMSB

Byte2 THRegisterforhightemperature

Byte3 TLRegisterforlowtemperature

Byte4 ConfigurationRegister

Byte5 Reserved(FFH)

Byte6 Reserved(OCH)

Byte7 Reserved(IOH)

Byte8 CyclicRedundancyChecks(CRC)

Figure4.DS18B20MemoryMap

7.CONFIGURATIONREGISTER

Byte4ofthescratchpadmemorycontainstheconfigurationregister,whichisorganizedasillustratedinFigure5.TheusercansettheconversionresolutionoftheDS18B20usingtheR0andR1bitsinthisregisterasshowninTable2.Thepower-updefaultofthesebitsisR0=1andR1=1(12-bitresolution).Notethatthereisadirecttradeoffbetweenresolutionandconversiontime.Bit7andbits0to4intheconfigurationregisterarereservedforinternalusebythedeviceandcannotbeoverwritten.

BIT7

BIT6

BIT5

BIT4 BIT3

BIT2 BIT1 BIT0

TM

R1

R0

1 1

1 1 1

Figure5.ConfigurationRegister

R0

R1

RESOLUTION(BIT MAXCONVERSION

S) TIME

0

9

93.75ms

1

10

187.5ms

11

375ms

12

750ms

Table2.ThermometerResolutionConfiguration

8.1-WIREBUSSYSTEM

The1-Wirebussystemusesasinglebusmastertocontrolone

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 自然科学 > 物理

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2