Temperature Sensor Design Guide
Temperature Sensor Design Guide
Design ideas in this guide use the following devices. A complete device list and corresponding data sheets for these products can be
found at: www.microchip.com
In many systems, temperature control is fundamental. There Silicon Output Temperature Sensors
are a number of passive and active temperature sensors
that can be used to measure system temperature, including: Logic Output Temperature Sensors:
thermocouple, resistive temperature detector, thermistor Logic output temperature sensor families offer excellent
and silicon temperature sensors. These sensors provide temperature accuracy (±1°C, typical), with a very low operating
temperature feedback to the system controller to make current of less than 600 μA. These devices can replace
decisions such as, over-temperature shutdown, turn-on/off mechanical switches in a variety of sensing and control
cooling fan, temperature compensation or general purpose applications.
temperature monitor.
Voltage Output Temperature Sensors:
Microchip offers a broad portfolio of thermal management
Voltage output temperature sensors develop an output voltage
products, including Logic Output, Voltage Output and Serial
proportional to temperature, with a typical temperature
Output Temperature Sensors. These products allow the
coefficient of 6.25 mV/°C, 10 mV/°C and 19.5 mV/°C
system designer to implement the device that best meets their
respectively. These temperature-to-voltage converters can
application requirements. Key features include high accuracy,
sense a -40°C to +125°C temperature range and feature
low power, extended temperature range and small packages.
an offset voltage that allows reading negative temperatures
In addition, Microchip’s linear products can be used to support without requiring a negative supply voltage. The extremely
Thermocouple, RTD and Thermistor applications. low operating current minimizes self-heating and maximizes
Common Methods of Interfacing a Sensor battery life.
Serial Output Temperature Sensors:
Serial (digital) output temperature sensors offer excellent
Analog Output
Sensor Volts
temperature accuracy (±0.5°C, typical) with a very low
operating current of 250 μA (typical). Communication with
Serial Output
these devices is accomplished via an industry standard
SMBus, I2C™ or SPI compatible interface protocol. These
Logic Output OFF ON
RTD devices feature fast temperature conversion rate, with
Fan
temperature resolution for the entire family ranging from
C
VDD
0.0625°C to 0.5°C.
–
Thermocouple,
Thermistor/Amplifiers +
VOUT Thermocouples
Op Amps/Comparators
VDD MCP6541 Thermocouples are usually selected because of their wide
temperature range (as low as -270°C to as high as 1750°C),
R
R
R
ruggedness and price; however, they are highly non-linear and
often require significant linearization algorithms. In addition,
VREF the voltage output of this temperature sensing element is
Thermistor/
Amplifiers R
VDD relatively low when compared to devices that can convert
MCP6S21 voltage signals to a digital representation. Consequently,
Programmable +
Gain Amplifier
R
– VOUT
analog gain stages are required in the circuit.
RT C
(PGA)
Gain-Adjustment Resistive Temperature Detectors (RTDs)
Input Selection
RTDs are able to sense temperatures with extreme accuracy,
SPI™ have consistent and repeatable performance and low drift
error (-200°C to +850°C). For precision, these sensors also
require a linearization look-up table in the microcontroller due
Temperature Measurement Applications to sensor non-linearities.
Computing: Thermistors
– CPU overtemperature protection
– Fan control Thermistors (-100°C to +150°C) are normally used for
overtemperature shutdown purposes. Although not as
Cellular/PCS: accurate as some of the other temperature sensor solutions,
– Power amplifier temperature compensation thermistors are inexpensive and come in small packages. They
– Thermal sensing of display for contrast control are also non-linear and require a temperature compensation
Power Supply Embedded Systems: look-up table.
– Overtemperature shutdown
– Battery management
2
Temperature Sensor Design Guide
LOGIC OUTPUT TEMPERATURE SENSORS
Most logic output temperature sensors are available in either TC623 Key Features:
a Hot (for temperature-increasing applications) or Cold (for Dual Trip Point Temperature Sensor
temperature-decreasing applications) option. The hot and User-programmable Trip Point and Hysteresis
cold options ensure that the hysteresis is in the appropriate
position, either below or above the temperature set point.
TC622/4 Key Features:
Low-Cost Single Trip Point Temperature Sensor
Logic Output Temperature Sensor Key Features: Temperature Set Point Easily Programs with a Single
Logic-Level Output External Resistor
Notifies System When Temperature is Above (or Below) TO-220 Package for Direct Mounting to Heatsink
a Preset Value
Factory and User-programmable Temperature Settings
Available in a Variety of Output Configurations
Logic Output Temperature Sensor Applications:
Fan Controllers
Power Supplies
Motor Drives
RF Power Amplifiers
Voltage
Temperature
Voltage
Temperature
3
Temperature Sensor Design Guide
VOLTAGE OUTPUT TEMPERATURE SENSORS
VDD Upper-Left
Sensor R
TC1047A R
VDD
R
Lower-Right TC1047A VDD
Sensor –
LCD
Adj. Module
+ MCP6021
VDD
2
4
Temperature Sensor Design Guide
VOLTAGE OUTPUT TEMPERATURE SENSORS
+5V
R* VDD VOUT
MCP9700
VSS
CLOAD*
CBYPASS
*Optional
5
Temperature Sensor Design Guide
VOLTAGE OUTPUT TEMPERATURE SENSORS
Accuracy (°C)
be described using a second order equation. The equation 1.0
can be used to compensate the sensor error to provide higher
accuracy over the operating temperature range. This is done by 0.0
evaluating the equation at the temperature of interest (sensor
-1.0
output in degree Celsius) and subtracting the result from the
sensor output. The subtracted result in °C is the compensated Sensor Accuracy
-2.0
sensor output.
-3.0
For higher accuracy, the equation can be computed using
a standard PIC microcontroller, such as PIC16FXXXX, -55 -35 -15 5 25 45 65 85 105 125
PIC18FXXXX, PIC24FXXXX or dsPIC30FXXXX. Temperature (°C)
A short look-up table can also be generated for low-level PIC MCP9700
3.0
microcontrollers such as PIC10FXX, PIC12FXXX, PIC14FXXX
and PIC16FXXX. For additional information, see AN1001: IC 2.0 Compensated Sensor Accuracy
Temperature Sensor Accuracy Compensation with a PICmicro®
Accuracy (°C)
Microcontroller. 1.0
ErrorT_2 = EC2(125°C – TA) • (TA – -55°C) Graph 3: MCP9701 2nd Order Equation
+ EC1(TA – -55°C) + Error-55
MCP9701
Where: 3.0
EC2 = 150 x 10-6°C/°C2 2.0
EC1 = 7 x 10-3°C/°C Compensated Sensor Accuracy
Accuracy (°C)
6
Temperature Sensor Design Guide
SERIAL OUTPUT TEMPERATURE SENSORS
Typically, serial output temperature sensors use a two or three MCP9800/1/2/3 Key Features:
wire interface to the host controller and provide functions ±1°C (max.) Accuracy From -10°C to +85°C
that are user programmable. Functions such as temperature
Supply Current: 200 μA (typ.)
alert output allow the user to configure the device as a stand-
alone temperature monitoring system. The alert output can be One Shot Temperature Measurement
used to notify the system controller to act upon the change in TC72 Key Features:
temperature. This feature eliminates the need for the system 10-Bit Temperature-to-Digital Converter
controller to monitor temperature continuously using the serial
interface. Power-saving One-shot Temperature Measurement
Low Power Consumption
The figure below illustrates a multi-zone temperature
measurement application. Communication with the MCP9801 TC74 Key Features:
is accomplished via a two-wire I2C™/SMbus compatible serial Simple 2-wire Serial Interface
bus. This device can be set to notify the host controller when Digital Temperature-sensing in SOT-23-5 or TO-22-5
the ambient temperature exceeds a user-specified set point. Packages
The microcontroller can monitor the temperature of each
Low Power Consumption
sensor on the serial bus by either reading the temperature
data register or functioning as a stand-alone thermostat. The TC77 Key Features:
temperature threshold trip point is programmed by writing to 13-Bit Temperature-to-Digital Converter
the set point register. The ALERT pin is an open-drain output Low Power Consumption
that can be connected to the microcontroller’s interrupt pin for
±1°C (max.) Accuracy From +25°C to +65°C
overtemperature interrupt.
SPI Compatible Communications Interface
Serial Output Temperature Sensor Applications:
TCN75 Key Features:
Personal Computers
Industry Standard SMBus/I2C™ Interface
Set-top Boxes
Programmable Trip Point and Hysteresis
Cellular Phones
Thermal Event Alarm Output Functions as Interrupt or
General Purpose Temperature Monitoring
Comparator/Thermostat Output
A Multi-zone Temperature Measurement System Using the Two-wire Serial Communication Port of the MCP9801
VDD
R R R
GP2/INT
SDA SDA SDA INT SDA INT
SCL INT SCL
® SCL SCL
PIC V+
V+
MCU MCP9801 MCP9801 MCP9801
A0 A0 A0
System A1 A1 A1
Controller A2 A2 A2
7
Temperature Sensor Design Guide
DIGITAL TEMPERATURE SENSOR
1.0
Spec. Limits
Clear Event Output Interrupt
20%
Measurement Resolution
10%
Measurement Range
0%
Measurement Accuracy
-1.00
-0.75
-0.50
-0.25
0.00
0.25
0.50
0.75
1.00
40%
30%
20%
10%
0%
-1.00
-0.75
-0.50
-0.25
0.00
0.25
0.50
0.75
1.00
8
Temperature Sensor Design Guide
THERMOCOUPLES
+V R
+V
R
R C
<< EMI Filter –
IN_1
<< + TC913A
EMI Filter
Thermocouple
R
R R C
<< ADC
+V –V -V
TC1047A IN_2
Cold Junction Compensation
9
Temperature Sensor Design Guide
RESISTIVE TEMPERATURE DETECTORS (RTDs)
RTD
C VDD
+
Circuit A MCP6541 VOUT
-
R
VDD
R R
Circuit B VREF
Connector R
R
R
EMI Filter -
RTD TC913A
EMI Filter +
Shielded R R R
Cable
PCB
10
Temperature Sensor Design Guide
THERMISTORS (THERMALLY SENSITIVE RESISTORS)
Thermistors are built with semiconductor materials and can The advantage of the PGA circuit (below) is illustrated by
have either a positive (PTC) or negative (NTC) temperature comparing the VOUT slope plots of the conventional circuit
coefficient. However, the NTC is typically used for temperature with the PGA circuit. The VOUT slope for the PGA circuit has a
sensing. minimum value of 30 mV for temperatures greater than 35°C,
Advantages of thermistors include a very high sensitivity to which means that only a 9-bit ADC is required. In contrast, a
changes in temperature (having a thermal response of up to voltage divider with a gain of 1 will require an 11-bit, or higher,
-100Ω/°C at 25°C), fast response time and low cost. The ADC to provide an equivalent temperature resolution. The
main drawback of thermistors is that the change in resistance resolution of a thermistor circuit is important in applications
with temperature is non-linear at temperatures below 0°C and such as overtemperature shutdown circuits.
greater than 70°C. Thermistor Key Features:
A conventional fixed gain thermistor amplifier circuit is shown Inexpensive
below. A simple voltage divider is created with a reference Two-wire Measurement
resistor (R1) and the thermistor (RT). A constant voltage source
Variety of Packages
is supplied (VREF) with the output of the voltage divider (VTH)
directly correlating to temperature. The response is shown in Thermistor Applications:
the graph of temperature vs. output voltage to the right of the Battery Chargers
circuit. It is fairly linear in the range of 0-70°C, but the accuracy Power Supplies
of the circuit is limited without adding additional circuitry.
Cold Junction Compensation
VREF
5.0
4.5 G = +1 V/V
R1 4.53K R2 VDD
100K 4.0
VTH 3.5
+
VOUT (V)
3.0
MCP6001 VOUT 2.5
- 2.0
RT = 10K 1.5
@ 25°C 1.0
C1 0.5
1F 0.0
-50 -25 0 25 50 75 100 125 150
Thermistor Temperature (°C)
VREF 5.0
RS VDD 4.5
R2
28K 4.0
G = +32
100K
G = +16
MCP6S21
G = +8
3.5
G = +4
G = +2
G = +1
+ VOUT
VOUT (V)
3.0
C1 – 2.5
RT = 10K
1F 2.0
@ 25°C
1.5
Gain Adjustment 1.0
Input Selection 0.5 Hysteresis
0.0
-50 -25 0 25 50 75 100 125 150
SPI Thermistor Temperature (°C)
11
Temperature Sensor Design Guide
RELATED SUPPORT MATERIAL
The following Application Notes are available on the Microchip Logic Output
web site: www.microchip.com.
AN762: Applications of the TC62X Solid-State Temperature
Application Notes Sensor
General Temperature Sensing Sensing temperature and comparing that temperature to preset
limits is the basis for a variety of problems that designers
AN679: Temperature Sensing Technologies face in system design and process control. This Application
The most popular temperature sensor technologies are Note discusses the new generation of small, easy-to-use,
discussed at a level of detail that will give the reader insight temperature-sensing products provided by Microchip; namely,
into the methods for determining which sensor is most the TC62X product family.
appropriate for a particular application.
AN773: Application Circuits of the TC620/TC621 Solid-State
AN867: Temperature-Sensing with a Programmable Gain Temperature Sensors
Amplifier Discusses the benefits of the TC620/TC621 solid-state
The implementation of temperature measurement systems temperature sensors.
from sensor to PIC® microcontroller using a NTC thermistor,
silicon temperature sensor, anti-aliasing filter, A/D converter Serial Output
and microcontroller are discussed.
AN871: Solving Thermal Measurement Problems Using the
AN929: Temperature Measurement Circuits for Embedded TC72 and TC77 Digital Silicon Temperature Sensors
Applications Discusses the benefits of the TC72/TC77 temperature sensors
Explores selection techniques for temperature sensor and by analyzing their internal circuitry, illustrating the principles
conditioning circuits to maximize the measurement accuracy, these sensors employ to accurately measure temperature.
while simplifying the interface to a microcontroller.
AN913: Interfacing the TC77 Thermal Sensor to a PICmicro®
AN1001: IC Temperature Sensor Accuracy Compensation with a Microcontroller
PICmicro® Microcontroller Discusses system integration, firmware implementation and
The typical accuracy of analog and serial-output IC temperature PCB layout techniques for using the TC77 in an embedded
sensors is within ±1°C, however, at hot or cold extremes, system.
the accuracy decreases non-linearly. This application note
AN940: Interfacing the TC72 SPI Digital Temperature Sensor
is based on the analog output MCP9700/9701 and serial
to a PICmicro® Microcontroller
output MCP9800 temperature sensors. It derives an equation
describing the sensor’s typical non-linear characteristics, which Techniques for integrating the TC72 into an embedded system
can be used to compensate for the sensor’s accuracy error are demonstrated using the PICkit™ Flash Starter Kit.
over the specified operating temperature range. TB050: Monitoring Multiple Temperature Nodes Using TC74
Thermal Sensors and a PIC16C505
Silicon IC Temperature Sensors
The PIC16C505 is a 14-pin MCU that can easily interface to
Analog Output the TC74. This Technical Brief illustrates the ease of interfacing
AN938: Interfacing a TC1047A Analog Output Temperature these two products.
Sensors to a PICmicro® Microcontroller TB052: Multi-Zone Temperature Monitoring with the TCN75
Discusses system integration, firmware implementation and Thermal Sensor
PCB layout techniques for using the TC1047A in an embedded Presents an example of a simple, multi-zone thermal-monitoring
system. system using the Hardware mode of the Master Synchronous
TB051: Precision Temperature Measurement Technical Brief Serial Port (MSSP) module of a PIC® microcontroller.
12
Temperature Sensor Design Guide
RELATED SUPPORT MATERIAL
13
See Microchip’s Product Selector Guide for complete product selection and specifications.
14
Serial Output Temperature Sensor Products
Accuracy @ 25°C
Device Serial Communication Temperature Range (°C) VDD Min. (V) VDD Max (V) IQ Max. (μA) Packages Development Tools
(Typ./Max)
MCP9800DM-DL
MCP9800 I2C™ 0.5/1 -40 to +125 2.7 5.5 400 SOT-23-5
MCP9800DM-PCTL
MCP9801 I2C™ 0.5/1 -40 to +125 2.7 5.5 400 SOIC-8, MSOP-8
MCP9802 SMBus 0.5/1 -40 to +125 2.7 5.5 400 SOT-23-5
MCP9803 SMBus 0.5/1 -40 to +125 2.7 5.5 400 SOIC-8, MSOP-8
MCP9805 SMBus 2/3 (0.5/1 75°C-95°C) -40 to +125 3.0 3.6 500 TSSOP-8, DFN-8
TC74 SMBus/I2C 0.5/2 -40 to +125 2.7 5.5 350 SOT-23-5, TO-220-5 TC74DEMO
TCN75 SMBus/I2C 0.5/2 -40 to +125 2.7 5.5 1000 SOIC-8, MSOP-8
Temperature Sensor Design Guide
TC72 4-Wire SPI 0.5/1 -40 to +125 2.65 5.5 400 MSOP-8, DFN-8 TC72DM-PICTL
TC77 3-Wire SPI 0.5/1 -40 to +125 2.7 5.5 400 SOIC-8, SOT-23-5 TC77DM-PCTL
Analog (Voltage Output) Temperature Sensor Products
Accuracy @ 25°C Slope Offset Voltage
Device Temperature Range (°C) VDD Min. (V) VDD Max. (V) IQ Max. (μA) Packages Development Tools
SELECTED PRODUCT SPECIFICATIONS
MCP6231 1, 2, 4 300 20/30 7 -40 to +125 1.8 to 5.5 TSSOP-14, PDIP-8, SOIC-8, SOT-23-5, SC-70-5
MCP6271 1, 2, 4 2000 120/240 3 -40 to +125 2.0 to 5.5 TSSOP-14, PDIP-8, SOIC-8, MSOP-8, SOT-23-5
MCP6281 1, 2, 4 5000 450/570 3 -40 to +125 7.2 to 5.5 TSSOP-14, PDIP-8, SOIC-8, MSOP-8, SOT-23-5
MCP6291 1, 2, 4 10,000 1000/1300 3 -40 to +125 2.4 to 5.5 TSSOP-14, PDIP-8, SOIC-8, MSOP-8, SOT-23-5
SELECTED PRODUCT SPECIFICATIONS
Voltage Reference
Output Voltage Max Load Current Initial Accuracy Temperature Coefficient Max. Supply Current
Device VCC Range Packages Development Tools
(V) (mA) (%) (ppm/°C) (μA @ 25°C)
MCP1525 2.7 to 5.5 2.5 ±2 ±1 50 100 TO-92-3, SOT-23B-3
Comparators
# per Typical Propagation IQ Typical VOS Max
Device Operating Voltage (V) Temperature Range (°C) Packages Development Tools
Package Delay (μsec) (μA) (mV)
MCP6541 1 4 1 5 1.6 to 5.5 -40 to +85 PDIP-8, SOIC-8, MSOP-8, SOT-23-5
MCP6542 2 4 1 5 1.6 to 5.5 -40 to +85 PDIP-8, SOIC-8, MSOP-8
MCP6543 1 4 1 5 1.6 to 5.5 -40 to +85 PDIP-8, SOIC-8, MSOP-8
MCP6544 4 4 1 5 1.6 to 5.5 -40 to +85 PDIP-14, SOIC-14, TSSOP-14
Programmable Gain Amplifiers (PGAs)
Device Channels -3 db BW (MHz) IQ Typical (mA) VOS (μV) Operating Voltage (V) Temperature Range (°C) Packages Development Tools
MCP6S21 1 2 to 12 1.1 275 2.5 to 5.5 -40 to +85 PDIP-8, SOIC-8, MSOP-8
MCP6S22 2 2 to 12 1.1 275 2.5 to 5.5 -40 to +85 PDIP-8, SOIC-8, MSOP-8
MCP6S26 6 2 to 12 1.1 275 2.5 to 5.5 -40 to +85 PDIP-14, SOIC-14, TSSOP-14
MCP6S28 8 2 to 12 1.1 275 2.5 to 5.5 -40 to +85 PDIP-16, SOIC-16
15
Analog and Interface Products
Thermal Power
Management Management Linear Mixed-Signal Interface
Temperature LDO & Switching Op Amps A/D Converter CAN Peripherals
Sensors Regulators Families
Programmable Infrared
Fan Speed Charge Pump Gain Digital Peripherals
Controllers/ DC/DC Converters Amplifiers Potentiometers
Fan Fault LIN Transceiver
Detectors Power MOSFET Comparators D/A Converters
Drivers Serial Peripherals
Linear V/F and F/V
PWM Controllers Converters Ethernet Controller
Integrated
System Supervisors Devices Energy
Measurement
Voltage Detectors ICs
Voltage References
Battery
Management
Li-Ion/Li-Polymer
Battery Chargers
Smart Battery
Managers
www.microchip.com
Microchip Technology Inc. • 2355 W. Chandler Blvd. • Chandler, AZ 85224-6199
Information subject to change. The Microchip name and logo, the Microchip logo, PIC and PICmicro are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries.
FanSense, Linear Active Thermistor, PICkit, PICtail and Select Mode are trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. All other trademarks mentioned herein are
property of their respective companies. © 2006, Microchip Technology Incorporated. All Rights Reserved. Printed in the U.S.A. 1/06 DS21895B
*DS21895B*