Download Print this page

Dallas DS1820 Instruction

1–wire digital thermometer

Advertisement

Quick Links

FEATURES
TM
Unique 1–Wire
interface requires only one port pin
for communication
Multidrop capability simplifies distributed temperature
sensing applications
Requires no external components
Can be powered from data line
Zero standby power required
Measures temperatures from –55 C to +125 C in
0.5 C increments. Fahrenheit equivalent is –67 F to
+257 F in 0.9 F increments
Temperature is read as a 9–bit digital value.
Converts temperature to digital word in 200 ms (typ.)
User–definable, nonvolatile temperature alarm set-
tings
Alarm search command identifies and addresses
devices whose temperature is outside of pro-
grammed limits (temperature alarm condition)
Applications include thermostatic controls, industrial
systems, consumer products, thermometers, or any
thermally sensitive system
DESCRIPTION
The DS1820 Digital Thermometer provides 9–bit tem-
perature readings which indicate the temperature of the
device.
Information is sent to/from the DS1820 over a 1–Wire
interface, so that only one wire (and ground) needs to be
connected from a central microprocessor to a DS1820.
Power for reading, writing, and performing temperature
conversions can be derived from the data line itself with
no need for an external power source.
Copyright 1995 by Dallas Semiconductor Corporation.
All Rights Reserved. For important information regarding
patents and other intellectual property rights, please refer to
Dallas Semiconductor data books.
TM
1–Wire
Digital Thermometer
PIN ASSIGNMENT
DALLAS
DALLAS
DS2434
DS1820
1
BOTTOM VIEW
1
2
3
1
NC
NC
2
NC
3
NC
4
NC
5
NC
6
VDD
7
DQ
8
DS1820
PR35 PACKAGE
See Mech. Drawings
See Mech. Drawings
Section
PIN DESCRIPTION
GND
– Ground
DQ
– Data In/Out
V
– Optional V
DD
DD
NC
– No Connect
Because each DS1820 contains a unique silicon serial
number, multiple DS1820s can exist on the same
1–Wire bus. This allows for placing temperature sen-
sors in many different places. Applications where this
feature is useful include HVAC environmental controls,
sensing temperatures inside buildings, equipment or
machinery, and in process monitoring and control.
DS1820
DS1820
2
3
16
NC
15
NC
14
NC
13
NC
12
NC
11
NC
10
NC
9
GND
DS1820S
16–PIN SSOP
Section
021497 1/27

Advertisement

loading
Need help?

Need help?

Do you have a question about the DS1820 and is the answer not in the manual?

Questions and answers

Summary of Contents for Dallas DS1820

  • Page 1 1–Wire bus. This allows for placing temperature sen- sors in many different places. Applications where this Information is sent to/from the DS1820 over a 1–Wire feature is useful include HVAC environmental controls, interface, so that only one wire (and ground) needs to be sensing temperatures inside buildings, equipment or connected from a central microprocessor to a DS1820.
  • Page 2: Detailed Pin Description

    The block diagram of Figure 1 shows the major compo- as well as indicate to the Bus Master how many and nents of the DS1820. The DS1820 has three main data what types of devices are present. After a ROM function components: 1) 64–bit lasered ROM, 2) temperature...
  • Page 3 Convert T command. Note that as long as the external power supply is active, the GND pin may not be floating. In order for the DS1820 to be able to perform accurate temperature conversions, sufficient power must be pro- The use of parasite power is not recommended above...
  • Page 4 Note that temperature is represented in the DS1820 in determined by a high temperature coefficient oscillator. terms of a C LSB, yielding the following 9–bit format:...
  • Page 5 This flag is updated with every temperature measure- After the DS1820 has performed a temperature conver- ment. As long as the alarm flag is set, the DS1820 will sion, the temperature value is compared to the trigger respond to the alarm search command. This allows values stored in TH and TL.
  • Page 6: Crc Generation

    64–bits long. The first eight bits are a 1–Wire family transfer validation, the bus master must calculate a code (DS1820 code is 10h). The next 48 bits are a CRC value using the polynomial function given above unique serial number. The last eight bits are a CRC of and compare the calculated value to either the 8–bit...
  • Page 7 DS1820 ROM FUNCTIONS FLOW CHART Figure 6 MASTER T RESET PULSE DS1820 T PRESENCE PULSE MASTER T FUNCTION COMMAND READ ROM MATCH ROM SEARCH ROM SKIP ROM ALARM SEARCH COMMAND COMMAND COMMAND COMMAND COMMAND ALARM CONDITION DS1820 T FAMILY MASTER T...
  • Page 8 (LSB) MEMORY information. The third and fourth bytes are volatile The DS1820’s memory is organized as shown in copies of TH and TL and are refreshed with every pow- Figure 8. The memory consists of a scratchpad RAM er–on reset. The next two bytes are not used; upon...
  • Page 9: Hardware Configuration

    480 µs, all components on the bus will The presence pulse lets the bus master know that the DS1820 is on the bus and is ready to operate. For more be reset. details, see the “1–Wire Signaling” section.
  • Page 10 8–bit CRC. This command can only be used if Example of a ROM Search there is a single DS1820 on the bus. If more than one The ROM search process is the repetition of a simple slave is present on the bus, a data collision will occur 3–step routine: read a bit, read the complement of the...
  • Page 11 This completes the second ROM search DS1820 is ready to send or receive data given the cor- pass, in which another of the ROMs was found. rect ROM command and memory function command.
  • Page 12 DS1820 I/O pin, the DS1820 waits 15–60 µs and then transmits Write Scratchpad [4Eh] the presence pulse (a low signal for 60–240 µs). This command writes to the scratchpad of the DS1820, starting at address 2. The next two bytes written will be...
  • Page 13 DS1820 MEMORY FUNCTIONS FLOW CHART Figure 10 MASTER T MEMORY OR CONTROL COMMAND WRITE READ SCRATCHPAD SCRATCHPAD DS1820 SETS ADDRESS DS1820 SETS ADDRESS COUNTER TO 2 COUNTER TO 0 MASTER T DATA BYTE MASTER R DATA TO SCRATCHPAD FROM SCRATCHPAD...
  • Page 14 CONVERT SCRATCHPAD TEMPERATURE PARASITE PARASITE POWER POWER MASTER ENABLES MASTER ENABLES STRONG PULL–UP STRONG PULLUP FOR 10 ms DS1820 CONVERTS TEMPERATURE MASTER DISABLES STRONG PULLUP MASTER DISABLES DS1820 BEGINS STRONG PULL–UP CONVERSION MASTER T MASTER T RESET RESET DEVICE BUSY...
  • Page 15 DS1820 MEMORY FUNCTIONS FLOW CHART Figure 10 (cont’d) RECALL READ POWER SUPPLY DS1820 RECALLS FROM E PROM MASTER MASTER RESET RESET PARASITE MASTER DEVICE POWERED RESET BUSY CONVERTING TEMPERATURE MASTER MASTER “1”s “0”s MASTER MASTER “1”s “0”s 021497 15/27...
  • Page 16 I/O line for the DS1820 must be held high for at least 10 ms to provide power during the copy process. As such, no other activity may take place on the 1–Wire bus for at least this period after a Copy Scratchpad command has been issued.
  • Page 17 “0” on the bus as long as it is busy copying the The DS1820 samples the I/O line in a window of 15 µs to scratchpad to E ; it will return a “1” when the copy pro- 60 µs after the I/O line falls.
  • Page 18 Ç Ç Ç Ç Ç Ç Ç Ç Ç Ç Ç >1 µs MASTER SAMPLES MASTER SAMPLES 15 µs 15 µs 30 µs 15 µs LINE TYPE LEGEND: Bus master active low DS1820 active low Both bus master and Resistor pull–up DS1820 active low 021497 18/27...
  • Page 19 15 µs RECOMMENDED MASTER READ “1” TIMING Figure 14 OF MASTER 1–WIRE MASTER INIT SAMPLES SMALL SMALL 15 µs LINE TYPE LEGEND: Bus master active low DS1820 active low Both bus master and Resistor pull–up DS1820 active low 021497 19/27...
  • Page 20 DS1820. These notes can be obtained from the Dallas service at (214) 450–0441. Application Note 27: “Understanding and Using Cyclic Redundancy Checks with Dallas Semiconductor Touch Memory Product” Application Note 55: “Extending the Contact Range of Touch Memories”...
  • Page 21 Reset Presence Presence pulse. Issue “Match ROM” command. <64–bit ROM code> Issue address for DS1820. Issue “Convert T” command. <I/O LINE HIGH> I/O line is held high for at least 500 ms by bus master to allow conversion to complete.
  • Page 22 DS1820 MEMORY FUNCTION EXAMPLE Table 4 Example: Bus Master writes memory (parasite power and only one DS1820 assumed). MASTER MODE DATA (LSB FIRST) COMMENTS Reset Reset pulse. Presence Presence pulse. Skip ROM command. Write Scratchpad command. <2 data bytes> Writes two bytes to scratchpad (TH and TL).
  • Page 23 DS1820 MEMORY FUNCTION EXAMPLE Table 5 Example: Temperature conversion and interpolation (external power supply and only one DS1820 assumed). MASTER MODE DATA (LSB FIRST) COMMENTS Reset Reset pulse. Presence Presence pulse. Skip ROM command. Convert T command. <1 data byte>...
  • Page 24: Absolute Maximum Ratings

    DS1820 ABSOLUTE MAXIMUM RATINGS* Voltage on Any Pin Relative to Ground –0.5V to +7.0V Operating Temperature –55 C to +125 C Storage Temperature –55 C to +125 C Soldering Temperature 260 C for 10 seconds * This is a stress rating only and functional operation of the device at these or any other conditions above those indicated in the operation sections of this specification is not implied.
  • Page 25: Ac Electrical Characteristics

    DS1820 AC ELECTRICAL CHARACTERISTICS: (–55 C to +125 C; V =3.6V to 5.5V) PARAMETER SYMBOL UNITS NOTES Temperature Conversion Time CONV µs Time Slot SLOT µs Recovery Time µs Write 0 Low Time LOW0 µs Write 1 Low Time LOW1 µs...
  • Page 26 DS1820 1–WIRE WRITE ZERO TIME SLOT START OF NEXT CYCLE SLOT LOW0 1–WIRE READ ZERO TIME SLOT START OF NEXT CYCLE SLOT 1–WIRE RESET PULSE RESET PULSE FROM HOST RSTL RSTH 1–WIRE PRESENCE DETECT PRESENCE DETECT PDHIGH PDLOW 021497 26/27...
  • Page 27 DS1820 TYPICAL PERFORMANCE CURVE DS1820 DIGITAL TERMOMETER AND THERMOSTAT TEMPERATURE READING ERROR UPPER LIMIT SPECIFICATION –55 –35 –15 TYPICAL LOWER LIMIT ERROR SPECIFICATION –1 –2 –3 TEMPERATURE (deg. C) 021497 27/27...