DS18b20英文资料.pdf





《DS18b20英文资料.pdf》由会员分享,可在线阅读,更多相关《DS18b20英文资料.pdf(26页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、1 of 26020100FEATURES?Unique 1-WireTM interface requires only oneport pin for communication?Multidrop capability simplifies distributedtemperature sensing applications?Requires no external components?Can be powered from data line.Power supplyrange is 3.0V to 5.5V?Zero standby power required?Measures
2、 temperatures from-55C to+125C.Fahrenheit equivalent is-67F to+257F?0.5C accuracy from-10C to+85C?Thermometer resolution is programmablefrom 9 to 12 bits?Converts 12-bit temperature to digital word in750 ms(max.)?User-definable,nonvolatile temperature alarmsettings?Alarm search command identifies an
3、daddresses devices whose temperature isoutside of programmed limits(temperaturealarm condition)?Applications include thermostatic controls,industrial systems,consumer products,thermometers,or any thermally sensitivesystemPIN ASSIGNMENTPIN DESCRIPTIONGND-GroundDQ-Data In/OutVDD-Power Supply VoltageNC
4、-No ConnectDESCRIPTIONThe DS18B20 Digital Thermometer provides 9 to 12-bit(configurable)temperature readings whichindicate the temperature of the device.Information is sent to/from the DS18B20 over a 1-Wire interface,so that only one wire(and ground)needs to be connected from a central microprocesso
5、r to a DS18B20.Power for reading,writing,andperforming temperature conversions can be derived from the data line itself with no need for an externalpower source.Because each DS18B20 contains a unique silicon serial number,multiple DS18B20s can exist on thesame 1-Wire bus.This allows for placing temp
6、erature sensors in many different places.Applicationswhere this feature is useful include HVAC environmental controls,sensing temperatures inside buildings,equipment or machinery,and process monitoring and control.DS18B20Programmable Resolution1-Wire Digital TPRELIMINARYDALLASDS18201 2 3GNDDQVD1 2 3
7、BOTTOM VIEWDS18B20 TO-92PACKAGE12348765NCNCNCGNNCNCVDDDQDS18B20Z8-PIN SOIC(150-MIL)DS18B20PTSOCNCDQVDD123465GNDNCNCDS18B202 of 26DETAILED PIN DESCRIPTION Table 1PINTSOCPIN8PIN SOICPINTO92SYMBOLDESCRIPTION151GNDGround.242DQData Input/Output pin.For 1-Wire operation:Opendrain.(See“Parasite Power”secti
8、on.)333VDDOptional VDD pin.See“Parasite Power”section fordetails of connection.VDD must be grounded foroperation in parasite power mode.DS18B20Z(8-pin SOIC)and DS18P20P(TSOC):All pins not specified in this table are not to beconnected.OVERVIEWThe block diagram of Figure 1 shows the major components
9、of the DS18B20.The DS18B20 has fourmain data components:1)64-bit lasered ROM,2)temperature sensor,3)nonvolatile temperature alarmtriggers TH and TL,and 4)a configuration register.The device derives its power from the 1-Wirecommunication line by storing energy on an internal capacitor during periods
10、of time when the signal lineis high and continues to operate off this power source during the low times of the 1-Wire line until itreturns high to replenish the parasite(capacitor)supply.As an alternative,the DS18B20 may also bepowered from an external 3V-5.5V supply.Communication to the DS18B20 is
11、via a 1-Wire port.With the 1-Wire port,the memory and controlfunctions will not be available before the ROM function protocol has been established.The master mustfirst 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
12、 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 tothe bus master how many and what types of devices are present.After a ROM function sequence has beensuccessfully executed,the memory and control functions a
13、re accessible and the master may then provideany one of the six memory and control function commands.One control function command instructs the DS18B20 to perform a temperature measurement.The resultof this measurement will be placed in the DS18B20s scratch-pad memory,and may be read by issuing amem
14、ory function command which reads the contents of the scratchpad memory.The temperature alarmtriggers TH and TL consist of 1 byte EEPROM each.If the alarm search command is not applied to theDS18B20,these registers may be used as general purpose user memory.The scratchpad also contains aconfiguration
15、 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 registers isthrough the scratchpad.All data is read and written least significant bit first.DS18B203 of 26DS18B20 BLOCK D
16、IAGRAM Figure 1PARASITE POWERThe block diagram(Figure 1)shows the parasite-powered circuitry.This circuitry“steals”powerwhenever the DQ or VDD pins are high.DQ will provide sufficient power as long as the specified timingand voltage requirements are met(see the section titled“1-Wire Bus System”).The
17、 advantages ofparasite power are twofold:1)by parasiting off this pin,no local power source is needed for remotesensing of temperature,and 2)the ROM may be read in absence of normal power.In order for the DS18B20 to be able to perform accurate temperature conversions,sufficient power mustbe provided
18、 over the DQ line when a temperature conversion is taking place.Since the operating currentof the DS18B20 is up to 1.5 mA,the DQ line will not have sufficient drive due to the 5k pullup resistor.This problem is particularly acute if several DS18B20s are on the same DQ and attempting to convertsimult
19、aneously.There are two ways to assure that the DS18B20 has sufficient supply current during its active conversioncycle.The first is to provide a strong pullup on the DQ line whenever temperature conversions or copiesto the E2 memory are taking place.This may be accomplished by using a MOSFET to pull
20、 the DQ linedirectly to the power supply as shown in Figure 2.The DQ line must be switched over to the strong pull-up within 10 s maximum after issuing any protocol that involves copying to the E2 memory or initiatestemperature conversions.When using the parasite power mode,the VDD pin must be tied
21、to ground.Another method of supplying current to the DS18B20 is through the use of an external power supply tiedto the VDD pin,as shown in Figure 3.The advantage to this is that the strong pullup is not required on theDQ line,and the bus master need not be tied up holding that line high during tempe
22、rature conversions.This allows other data traffic on the 1-Wire bus during the conversion time.In addition,any number ofDS18B20s may be placed on the 1-Wire bus,and if they all use external power,they may allsimultaneously perform temperature conversions by issuing the Skip ROM command and then issu
23、ing theConvert T command.Note that as long as the external power supply is active,the GND pin may not befloating.The use of parasite power is not recommended above 100C,since it may not be able to sustaincommunications given the higher leakage currents the DS18B20 exhibits at these temperatures.For6
24、4-BIT ROMAND1-WIRE PORTMEMORY ANDCONTROL LOGICSCRATCHPAD8-BIT CRCGENERATORTEMPERATURE SENSORHIGH TEMPERATURETRIGGER,THLOW TEMPERATURETRIGGER,TLCONFIGURATIONREGISTERPOWERSUPPLYSENSEINTERNAL VDDDQVDDDS18B204 of 26applications in which such temperatures are likely,it is strongly recommended that VDD be
25、 applied to theDS18B20.For situations where the bus master does not know whether the DS18B20s on the bus are parasitepowered or supplied with external VDD,a provision is made in the DS18B20 to signal the power supplyscheme used.The bus master can determine if any DS18B20s are on the bus which requir
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- DS18b20 英文 资料

限制150内