0% found this document useful (0 votes)
159 views2 pages

DS18B20

The document describes a digital thermometer that uses a 1-Wire interface to measure temperatures. It can measure temperatures from -55°C to +125°C with 9 to 12-bit programmable resolution. Multiple sensors can exist on the same 1-Wire bus, allowing temperature measurements from many locations. It requires no external components beyond what is needed for 1-Wire communication.

Uploaded by

Leonardo Moura
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
159 views2 pages

DS18B20

The document describes a digital thermometer that uses a 1-Wire interface to measure temperatures. It can measure temperatures from -55°C to +125°C with 9 to 12-bit programmable resolution. Multiple sensors can exist on the same 1-Wire bus, allowing temperature measurements from many locations. It requires no external components beyond what is needed for 1-Wire communication.

Uploaded by

Leonardo Moura
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

PRELIMINARY

DS18B20
Programmable Resolution
1-Wire Digital Thermometer
www.dalsemi.com

FEATURES PIN ASSIGNMENT


Unique 1-Wire interface requires only one BOTTOM VIEW
port pin for communication DALLAS
Multidrop capability simplifies distributed DS1820
temperature sensing applications 1 2 3
Requires no external components 1 2 3
Can be powered from data line. Power supply
range is 3.0V to 5.5V
DS18B20 To-92
Zero standby power required
Package
Measures temperatures from -55C to
+125C. Fahrenheit equivalent is -67F to
+257F NC 1 8 NC
0.5C accuracy from -10C to +85C
Thermometer resolution is programmable NC 2 7 NC
from 9 to 12 bits VDD 3 6 NC
DQ
GND

Converts 12-bit temperature to digital word in


VDD

750 ms (max.) DQ 4 5 GND


User-definable, nonvolatile temperature alarm
settings DS18B20Z
Alarm search command identifies and 8-Pin SOIC (150 mil)
addresses devices whose temperature is
outside of programmed limits (temperature PIN DESCRIPTION
alarm condition) GND - Ground
Applications include thermostatic controls, DQ - Data In/Out
industrial systems, consumer products, VDD - Power Supply Voltage
thermometers, or any thermally sensitive NC - No Connect
system

DESCRIPTION
The 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)
needs 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 exist 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.

1 of 27 050400
DS18B20
DETAILED PIN DESCRIPTION Table 1
PIN PIN
8PIN SOIC TO92 SYMBOL DESCRIPTION
5 1 GND Ground.
4 2 DQ Data Input/Output pin. For 1-Wire operation: Open
drain. (See Parasite Power section.)
3 3 VDD Optional VDD pin. See Parasite Power section for
details of connection. VDD must be grounded for
operation in parasite power mode.
DS18B20Z (8-pin SOIC): All pins not specified in this table are not to be connected.

OVERVIEW
The block 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, and 4) a configuration register. The device derives its power from the 1-Wire
communication line by storing energy on an internal 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.5 volt supply.

Communication 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 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 each
device 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. 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
of 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
DS18B20, 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 registers is
through the scratchpad. All data is read and written least significant bit first.

2 of 27

You might also like