TMP03/TMP04
–10–
APPLICATIONS INFORMATION
Supply Bypassing
Precision analog products, such as the TMP03, require a well-
filtered power source. Since the TMP03 operate from a single 5
V supply, it seems convenient to simply tap into the digital logic
power supply. Unfortunately, the logic supply is often a switch-
mode design, which generates noise in the 20 kHz to 1 MHz
range. In addition, fast logic gates can generate glitches hundred
of millivolts in amplitude due to wiring resistance and induc-
tance.
If possible, the TMP03 should be powered directly from the
system power supply. This arrangement, shown in Figure 3, will
isolate the analog section from the logic switching transients. Even
if a separate power supply trace is not available, however, gener-
ous supply bypassing will reduce supply-line induced errors.
Local supply bypassing consisting of a 10 µF tantalum electro-
lytic in parallel with a 0.1 µF ceramic capacitor is recommended
(Figure 4a).
TTL/CMOS
LOGIC
CIRCUITS
TMP03/
TMP04
10F
TANT
0.1F
5V
POWER SUPPLY
+
Figure 3. Use Separate Traces to Reduce Power Supply
Noise
TMP03/
TMP04
10F 0.1F
V+
D
OUT
GND
5V
TMP03/
TMP04
10F 0.1F
V+
D
OUT
GND
5V
50
a. b.
Figure 4. Recommended Supply Bypassing for the
TMP03
The quiescent power supply current requirement of the TMP03
is typically only 900 µA. The supply current will not change
appreciably when driving a light load (such as a CMOS gate), so
a simple RC filter can be added to further reduce power supply
noise (Figure 4b).
TMP03 Output Configurations
The TMP03 (Figure 5a) has an open-collector NPN output
which is suitable for driving a high current load, such as an
opto-isolator. Since the output source current is set by the pull-
up resistor, output capacitance should be minimized in TMP03
applications. Otherwise, unequal rise and fall times will skew the
pulsewidth and introduce measurement errors. The NPN tran-
sistor has a breakdown voltage of 18 V.
V+
D
OUT
D
OUT
TMP03
TMP04
a. b.
Figure 5. TMP03 Digital Output Structure
The TMP04 has a totem-pole CMOS output (Figure 5b) and
provides rail-to-rail output drive for logic interfaces. The rise
and fall times of the TMP04 output are closely matched, so that
errors caused by capacitive loading are minimized. If load ca-
pacitance is large, for example when driving a long cable, an
external buffer may improve accuracy. See the Remote Tem-
perature Measurement section of this data sheet for
suggestions.
Interfacing the TMP03 to Low Voltage Logic
The TMP03s open-collector output is ideal for driving logic
gates that operate from low supply voltages, such as 3.3 V. As
shown in Figure 6, a pull-up resistor is connected from the low
voltage logic supply (2.9 V, 3 V, etc.) to the TMP03 output.
Current through the pull-up resistor should be limited to about
1 mA, which will maintain an output LOW logic level of
<200 mV.
TMP03
5V
D
OUT
GND
3.3V
3.3k
V+
TO LOW VOLTAGE
LOGIC GATE INPUT
Figure 6. Interfacing to Low Voltage Logic
Remote Temperature Measurement
When measuring a temperature in situations where high com-
mon-mode voltages exist, an opto-isolator can be used to isolate
the output (Figure 7a). The TMP03 is recommended in this
application because its open-collector NPN transistor has a
higher current sink capability than the CMOS output of the
TMP04. To maintain the integrity of the measurement, the
opto-isolator must have relatively equal turn-on and turn-off
times. Some Darlington opto-isolators, such as the 4N32, have
a turn-off time that is much longer than their turn-on time. In
this case, the T1 time will be longer than T2, and an erroneous
reading will result. A PNP transistor can be used to provide
greater current drive to the opto-isolator (Figure 7b). An opto-
isolator with an integral logic gate output, such as the H11L1
from Quality Technology, can also be used (Figure 8).
REV. B
REV. B
TMP03/TMP04
–11–
D
OUT
TMP03
5V
V
LOGIC
GND
4.7k
V+
OPTO-COUPLER
620
a.
D
OUT
TMP03
5V
V
LOGIC
GND
430
V+
OPTO-COUPLER
270
4.3k
10k
2N2907
b.
Figure 7. Optically Isolating the Digital Output
D
OUT
TMP03
5V
GND
4.7k
V+
H11L1
680
5V
Figure 8. An Opto-Isolator with Schmitt Trigger Logic
Gate Improves Output Rise and Fall Times
The TMP03 and TMP04 are superior to analog-output trans-
ducers for measuring temperature at remote locations, because
the digital output provides better noise immunity than an analog
signal. When measuring temperature at a remote location, the
ratio of the output pulses must be maintained. To maintain the
integrity of the pulsewidth, an external buffer can be added. For
example, adding a differential line driver such as the ADM485
permits precise temperature measurements at distances up to
4000 ft. (Figure 9). The ADM485 driver and receiver skew is
only 5 ns maximum, so the TMP04 duty cycle is not degraded.
Up to 32 ADM485s can be multiplexed onto one line by pro-
viding additional decoding.
As previously mentioned, the digital output of the TMP03
provides excellent noise immunity in remote measurement appli-
cations. The user should be aware, however, that heat from an
external cable can be conducted back to the TMP03. This heat
conduction through the connecting wires can influence the
temperature of the TMP03. If large temperature differences
exist within the sensor environment, an opto-isolator, level
shifter or other thermal barrier can be used to minimize measure-
ment errors.
D
OUT
TMP04
5V
GND
V+
ADM485
A
B
V
CC
DE
DI
NC
5V
Figure 9. A Differential Line Driver for Remote Tempera-
ture Measurement
Microcomputer Interfaces
The TMP03 output is easily decoded with a microcomputer.
The microcomputer simply measures the T1 and T2 periods in
software or hardware, and then calculates the temperature using
the equation in the Output Encoding section of this data sheet.
Since the TMP03s output is ratiometric, precise control of the
counting frequency is not required. The only timing require-
ments are that the clock frequency be high enough to provide
the required measurement resolution (see the Output Encoding
section for details) and that the clock source be stable. The
ratiometric output of the TMP03 is an advantage because the
microcomputers crystal clock frequency is often dictated by the
serial baud rate or other timing considerations.
Pulsewidth timing is usually done with the microcomputers
on-chip timer. A typical example, using the 80C51, is shown in
Figure 10. This circuit requires only one input pin on the micro-
computer, which highlights the efficiency of the TMP04s
pulsewidth output format. Traditional serial input protocols,
with data line, clock and chip select, usually require three or
more I/O pins.
D
OUT
TMP04
5V
GND
V+
INPUT
PORT 1.0
OSC
12
TIMER 0
(16-BITS)
TIMER 1
(16-BITS)
80C51
MICROCOMPUTER
TMOD REGISTER
TCON REGISTER
TIMER 0 TIMER 1
TIMER 0 TIMER 1
Figure 10. A TMP04 Interface to the 80C51 Microcomputer
The 80C51 has two 16-bit timers. The clock source for the timers
is the crystal oscillator frequency divided by 12. Thus, a crystal
frequency of 12 MHz or greater will provide resolution of 1 µs
or less.
The 80C51 timers are controlled by two dedicated registers. The
TMOD register controls the timer mode of operation, while
TCON controls the start and stop times. Both the TMOD and
TCON registers must be set to start the timer.
REV. B
TMP03/TMP04
–12–
Listing 1. An 80C51 Software Routine for the TMP04
;
; Test of a TMP04 interface to the 8051,
; using timer 0 and timer 1 to measure the duty cycle
;
; This program has three steps:
; 1. Clear the timer registers, then wait for a low-to-
; high transition on input P1.0 (which is connected
; to the output of the TMP04).
; 2. When P1.0 goes high, timer 0 starts. The program
; then loops, testing P1.0.
; 3. When P1.0 goes low, timer 0 stops & timer 1 starts. The
; program loops until P1.0 goes low, when timer 1 stops
; and the TMP04’s T1 and T2 values are stored in Special
; Function registers 8AH through 8DH (TL0 through TH1).
;
;
; Primary controls
$MOD51
$TITLE(TMP04 Interface, Using T0 and T1)
$PAGEWIDTH(80)
$DEBUG
$OBJECT
;
; Variable declarations
;
PORT1 DATA 90H ;SFR register for port 1
;TCON DATA 88H ;timer control
;TMOD DATA 89H ;timer mode
;TH0 DATA 8CH ;timer 0 hi byte
;TH1 DATA 8DH ;timer 1 hi byte
;TL0 DATA 8AH ;timer 0 lo byte
;TL1 DATA 8BH ;timer 1 low byte
;
;
ORG 100H ;arbitrary start
;
READ_TMP04: MOV A,#00 ;clear the
MOV TH0,A ; counters
MOV TH1,A ; first
MOV TL0,A ;
MOV TL1,A ;
WAIT_LO: JB PORT1.0,WAIT_LO ;wait for TMP04 output to go low
MOV A,#11H ;get ready to start timer0
MOV TMOD,A
WAIT_HI: JNB PORT1.0,WAIT_HI ;wait for output to go high
;
;Timer 0 runs while TMP04 output is high
;
SETB TCON.4 ;start timer 0
WAITTIMER0: JB PORT1.0,WAITTIMER0
CLR TCON.4 ;shut off timer 0
;
;Timer 1 runs while TMP04 output is low
;
SETB TCON.6 ;start timer 1
WAITTIMER1: JNB PORT1.0,WAITTIMER1
CLR TCON.6 ;stop timer 1
MOV A,#0H ;get ready to disable timers
MOV TMOD,A
RET
END
Software for the interface is shown in Listing 1. The program
monitors the TMP04 output, and turns the counters on and off
to measure the duty cycle. The time that the output is high is mea-
sured by Timer 0, and the time that the output is low is measured
by Timer 1. When the routine finishes, the results are available
in Special Function Registers (SFRs) 08AH through 08DH.
REV. B

TMP03FSZ

Mfr. #:
Manufacturer:
Analog Devices Inc.
Description:
Board Mount Temperature Sensors SERIAL DIGITAL OUTPUT THERMOMETER
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union