
TMP122, TMP124
SBOS272B
5
www.ti.com
APPLICATIONS INFORMATION
The TMP122 and TMP124 digital temperature sensors are
optimal for thermal management and thermal protection appli-
cations. The TMP122/TMP124 are SPI interface-compatible
and specified for a temperature range of
–
40
°
C to +125
°
C.
The TMP122/TMP124 require minimal external components
for operation, needing only a pull-up resistor on the ALERT
pin and a bypass capacitor on the supply. Bypass capacitors
of 0.1
μ
F is recommended. Figure 1 shows typical connec-
tions for the TMP122 and TMP124.
FIGURE 1. Typical Connections of the TMP122 and TMP124.
COMMUNICATING WITH THE TMP122
The TMP122/TMP124 converts continuously. If
CS
is brought
low during a conversion the conversion process continues, but
the last completed conversion is available at the output regis-
ter. Communication with the TMP122/TMP124 is initiated by
pulling
CS
low. The first 16 clocks of data transfer will return
temperature data from the temperature sensors. The 16-bit
data word is clocked out sign bit first, followed by the MSB. Any
portion of the 16-bit word may be read before raising
CS
. If the
user wishes to continue with
CS
low, the following 16 clocks
transfer in a READ or WRITE command. READ and WRITE
commands are described in Tables I and II.
The READ command contains an embedded address in bits
D4 and D3 to identify which register to read. Bits D4 and D3
are internally registered and will hold their value following a
READ command until a entire 16-bit read is completed by the
user. The completion of the 16-bit READ acknowledges that
the READ command has been completed. If the user issues
a READ command and then raises
CS
with less than 16
subsequent clocks, the data from that register will be available
at the next fall of
CS
. The registered READ address will
remain in effect until a full 16 clocks have been received. After
the completion of a 16-bit READ from the part, the READ
address is reset to return data from the Temperature Register.
A WRITE command to a register will not change the READ
address registered. For further discussion on the READ ad-
dress register, see the Read Address Register section.
Multiple commands may be strung together as illustrated in
Figure 2. The TMP122/TMP124 accepts commands alternat-
ing with 16-bit response data. On lowering
CS
, the part
always responds with a READ from the address location
indicated by the READ address register. If the next com-
mand is a READ command then data is returned from the
address specified by the READ command with the 16th clock
resetting the READ address register to the default tempera-
ture register. The TMP122/TMP124 then expect a 16-bit
command. If the command is a WRITE command, then the
16 clocks following the command will again return tempera-
ture data.
Figures 3, 4, 5, and 6 detail the communication sequences.
TMP122
0.1
μ
F
V+
GND
2
5
1
3
CS
NOTE: Alert requires
pull-up resistor (open drain).
NC indicates pin should be left
open or floating.
ALERT
(Output)
4
6
SCK
SO/I
TMP124
0.1
μ
F
V+
GND
4
5
7
8
ALERT
(Output)
6
NC
CS
NC
SCK
SO/I
3
1
2
To maintain accuracy in applications requiring air or surface
temperature measurement, care should be taken to isolate
the package and leads from ambient air temperature.
Read Command
D15
D14
D13
D12
D11
D10
D9
D8
D7
D6
D5
D4
D3
D2
D1
D0
Temperature
Configuration Register
Low Temp Threshold
High Temp Threshold
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
TABLE I. Read Command.
Write Command
D15
D14
D13
D12
D11
D10
D9
D8
D7
D6
D5
D4
D3
D2
D1
D0
Configuration Register
Low Temp Threshold
High Temp Threshold
Shutdown Command
0
0
0
0
D1
T8
T8
x
D0
T7
T7
x
R1
T6
T6
x
R0
T5
T5
x
F1
T4
T4
1
F0
T3
T3
1
POL
T2
T2
1
TM1
T1
T1
1
TM0
T0
T0
1
0
1
1
1
1
0
1
1
0
0
0
1
T12
T12
x
T11
T11
x
T10
T10
x
T9
T9
x
TABLE II. Write Command.
16-Bit
READ
CS
SO/I
C16-Bit
16-Bit
Response
Address
16-Bit
FIGURE 2.Multiple Command Sequence.