Psoc 3 and Psoc 5Lp - Temperature Measurement With An RTD
Psoc 3 and Psoc 5Lp - Temperature Measurement With An RTD
Psoc 3 and Psoc 5Lp - Temperature Measurement With An RTD
AN70698 explains the theory of temperature measurement using an RTD, and then shows how to do so with a single
PSoC 3 or PSoC 5LP without the need for external ADCs or amplifiers. To make it easy to calculate temperature from
ADC readings, PSoC Creator provides an RTD Component. Four example projects are included to demonstrate operation
with both low and high levels of accuracy and resolution.
Contents
Introduction ....................................................................... 2
RTD Theory of Operation ............................................... 2
RTD Resistance Measurement Methods........................... 3
Two-Wire Measurement ............................................... 3
Three-Wire Measurement............................................. 3
Four-Wire Measurement............................................... 4
Reference Resistor Method ............................................... 4
Reference Resistor Selection ....................................... 5
Offset Error Cancellation .............................................. 5
Gain Error Cancellation ................................................ 5
RTD Resistance-to-Temperature Conversion ................ 5
Positive Temperatures.................................................. 5
Negative Temperatures ................................................ 6
Choosing the Right Polynomial Order .......................... 6
RTD Component .......................................................... 6
RTD Temperature Measurement with PSoC ..................... 7
Hardware Used CY8CKIT-025 EBK .......................... 7
Project Description ............................................................ 8
Firmware Flow .............................................................. 9
Testing the Project ..................................................... 10
Interfacing Multiple RTDs ................................................ 10
Broken RTD Reconfiguration .......................................... 10
Performance Measures ................................................... 10
Temperature Resolution ............................................. 10
Temperature Accuracy ............................................... 11
List of all Errors .......................................................... 14
Test Results ............................................................... 14
Summary ......................................................................... 15
About the Author ............................................................. 15
www.cypress.com
Appendix A ...................................................................... 16
Appendix B ...................................................................... 18
Broken RTD reconfiguration ....................................... 18
Worldwide Sales and Design Support ............................. 26
Introduction
Temperature is one of the most frequently measured
environmental variables. Temperature measurement is
typically done using one of four sensors: resistance
RTD
Thermocouple
Thermistor
Diode
Temperature range
200 to +850
250 to +2350
100 to +300
50 to +150
Sensitivity at 25 C
0.387 /C
40 V/C (K-type)
416 /C
250 V /C
Accuracy
High
Medium to High
Medium
Low
Linearity
Good
Fair
Poor
Good
$3 $80
$3 $15
$0.2 $10
<$0.2
Typical distance of
sensing
<100 meters
On-board temperature
Resource requirement
Excitation current,
amplifier, ADC, reference
resistor
Excitation current,
amplifier, ADC
Response time
Slow
Fast
Fast
Slow
Computational
complexity (best
possible accuracy)
High
Very high
Very high
Medium
www.cypress.com
RT R0 (1 AT BT 2 ) , T > 0
Equation 1
RT R0 (1 AT BT 2 C (T 100)T 3 ),
T < 0
Equation 2
Is
VRTD
RRTD
A 3.9083*103 C 1
Rw2
B 5.775*107 C 2
C 4.183*1012 C 4
and the resistance at 0 C,
R0 100
(PT100 RTD)
Three-Wire Measurement
RTD temperature measurement involves two steps:
1.
2.
Equation 4
Equation 5
If Rw1 = Rw2,
Equation 6
Two-Wire Measurement
In a two-wire measurement, a current is passed through
the RTD and the voltage across the RTD is measured, as
shown in Figure 2.
www.cypress.com
Rw1
2
Is
VRTD
Rw2
RRTD
Vwire
Rw3
C a ve a t
Although this method is better than the previous method,
the three-wire method gives accurate results only if Rw1 =
Rw2.
To avoid all error associated with the wire resistances, use
the four-wire measurement described next.
RRTD
Four-Wire Measurement
The four-wire measurement, as shown in Figure 4, greatly
reduces any error caused by wire resistances.
VRTD
* Rref
Vref
Equation 8
Rw1
Rw2
IS
VRTD
RRTD
Rw3
Rw1
ADC
Rw3
Rw4
RRTD
RRTD
VRTD
I RTD
Equation
www.cypress.com
Rw4
Rw2
PSoC
Equation 9
www.cypress.com
k * k ' * (VRTD V0 )
* Rref
k * k ' * (Vref V0 )
RTD Resistance-to-Temperature
Conversion
The straightforward method to obtain temperature from
resistance is to use the CallendarVan Dusen equations.
But Equations 1 and 2 show resistance in terms of
temperature; you need to know temperature in terms of
resistance. The solution is given below.
Positive Temperatures
Solving Equation 1 for T,
R
A A2 4 B1 T
R0
T
2B
Equation 10
Negative Temperatures
Solving Equation 2 for T is not straightforward, because it
is a fourth-order equation. Again, approximate the
temperature-resistance relationship using a polynomial.
Using a fourth-order polynomial reduces the conversion
error to < 0.002 C.
A single polynomial can apply to both negative and
positive temperatures. However, doing so would require a
polynomial order greater than 10 to reduce the conversion
error to <0.002 C. Therefore, use two polynomials, one
each for positive and negative temperatures.
Accuracy in
C (-200C to
850 C
Range)**
Accuracy in
C (-50C to
150 C
Range)**
First order
70
< 20.2
<0.55
Second
order
110
< 1.7
<0.007
Third order
150
< 0.17
<0.0001
Fourth order
190
< 0.018
Fifth order
230
< 0.002
Note: (*) The number of cycles required for computation is calculated from
the PSoC 5LP-based code in the attached project. The project uses
floating-point arithmetic to compute temperature. You can greatly reduce
the number of cycles by using special algorithms for floating-point
multiplications.
(**) This only includes the accuracy of the resistance to temperature
conversion, not the whole system accuracy
www.cypress.com
Choosing and creating the appropriate polynomial is mathintensive and time-consuming. Cypress simplifies this task
by providing an RTD Component in PSoC Creator that
creates a polynomial of the required order based on your
temperature range and the accuracy required.
The component automatically calculates the required
order of the polynomial and polynomial coefficients. For
resistance-to-temperature conversion, the component
provides an API, which uses the computed polynomial
coefficients to find the temperature.
RTD Component
Figure 6 shows the RTD component. The RTD component
supports PT100, PT500, and PT1000 RTDs.
Figure 6. RTD Component
Polynomial
Order
www.cypress.com
Project Description
The RTD_MidEnd PSoC Creator project associated with
this application note displays the RTD temperature directly
on an LCD. The schematic of the project, which uses the
CY8CKIT-025 PSoC Precision Analog Temperature
Sensor EBK, is shown in Figure 11. This figure is similar to
Figure 5 except that the reference resistance is in a
separate path, and is not in series with the RTD.
www.cypress.com
Figure 12. PSoC Creator Top Design Schematic for Reference Resistance in Series with RTD
Firmware Flow
The following chart shows the firmware flow for the low- and mid-end RTD temperature measurement projects associated with
this AN. The projects differ only in the ADC resolution and the filter attenuation factor used.
Start
END
www.cypress.com
of
the
2.
For
the
CY8CKIT-030,
choose
the
CY8C3866AXI-040. For the CY8CKIT-050,
choose the CY8C5868AXI-LP035
3.
4.
Temperature Resolution
The temperature resolution depends on three factors:
High End
Lets calculate the resolution required for measuring
-200 C to 850 C with a 0.01 C resolution. First, we need
to translate the temperature resolution to voltage
resolution. From Equations 1 and 2, you can calculate the
resistance change per unit change in temperature .
A change from 850C to 851C causes a 0.292- change
in resistance.
A change from -200C to -201C causes
change in resistance.
a 0.432-
(using Equation 2)
Performance Measures
Resolution* (C)
Accuracy* (C)
High
0.01
0.1%
Mid
0.1
0.2 0.5%
Low
>0.1C
>0.5C
The ADC has an input range of 512 mV; this range fits
well with the output voltages of the RTD.
Using a 20-bit ADC with an input range of 512 mV, each
bit represents 1.024 V/2^20 = 0.9765 V.
According to the DelSig ADC datasheet, the ADC has an
RMS noise of ~1 count in the 512-mV range. This
indicates the noise is below the required 2.92 V.
However, when the voltage is close to a temperature
transition, the noise causes flicker in the output.
To eliminate flickering bits, the attached project adds a
small software-based IIR filter to the code. See AN2099,
Single-Pole IIR filter for a detailed description of a
software-based IIR filter.
www.cypress.com
10
Mid End
For mid-end applications, the resolution requirement is
0.1 C. Using the same logic we used before, we need to
resolve only 29.2 V to achieve a resolution of 0.1 C.
For the mid-end project, the same ADC configuration is
used as the one in the high-end project. The only
difference is that the filter attenuation is lower in the midend project.
Low End
Temperature Accuracy
You can calculate the temperature accuracy by summing
all possible individual errors, which fit into one of two
categories:
1.
2.
RRTD
VRTD
* Rref
Vref
Using equation 8
Resistance error
390.481
390.481 0.064
*100
*100
100
100
0.064
Substituting the worst-case INL at the numerator, we get
0.064- resistance error corresponds to a temperature
error of 0.16 C(.064/.385). The INL is at its worst when it
applies only to the numerator.
Note that we have taken the worst-case INL across PVT
and substituted worst-case positive INL at the numerator.
In practical application, the error due to INL is much lower.
For example, for an INL of +8 LSb at the numerator and
0 LSb at the denominator, the temperature error at 850 C
is 0.054 C.
Error Due to Reference Resistance
Tolerance
In Equation 8, we substituted 100 for the value of the
reference resistor, Rref. But the actual value of Rref will
change because of its tolerance and temperature
coefficient. Therefore, the value Vref, which is measured
across the reference resistance, will be erroneous.
Assume that the tolerance of Rref is 0.1 percent and the
temperature coefficient is 10 ppm/C.
VRTD I * RRTD
Vref I * Rref
www.cypress.com
Rmeas
RRTD
(1 0.001 0.00001* (sysTemp 25))
Equation 12
11
1.
2.
Tolerance (C)
www.cypress.com
12
Figure
15.
Temperature
Interchangeability Error
Error
due
to
RTD
1.
2.
3.
4.
5.
R
scale actual
Rmeas
6.
Equation 13
www.cypress.com
13
0 C
0 C
Gain Error/drift
0 C
0 C
ADC INL*
0.2 C
0.2 C
< 0.13 C
<0.13 C
0.43 C
0.6 C
1.05 C
0.0003 C
0.0003 C
Note(*): worst-case INL is used at the numerator. Typically, the error will be < 0.1 C.
Test Results
An RTD was simulated by a potentiometer and the signal chain accuracy was tested in the whole temperature range of the
RTD. A potentiometer was connected in the external RTD slot of CY8CKIT-025 and the temperature shown in the LCD was
noted. The potentiometer resistance was measured by a precision multimeter and the resistance value was noted. The
resistance was converted into temperature manually using a fifth-order polynomial. The test results are shown in Table 6. As
you can see, the RTD signal chain is highly accurate.
Table 6. RTD Signal Chain Accuracy
Resistance Value ()
Error (C)
27.285
-179.6
-179.6
0.0
32.47
-167.3
-167.4
0.1
66.58
-84.3
-84.4
0.1
80.21
-50.2
-50.3
0.1
118.296
47.1
47
0.1
149.464
129.0
128.9
0.1
218.374
317.9
317.8
0.1
325.314
636.3
636.3
0.0
www.cypress.com
14
Summary
www.cypress.com
Name:
Praveen Sekar
Title:
Applications Engineer
Background:
Contact:
pfz@cypress.com
Name:
Todd Dust
Title:
Background:
Contact:
tdu@cypress.com
15
Appendix A
This section describes the effect of having the RTD reference resistance in a separate path (not in series with the RTD).
The IDAC current droops by about 1 percent as the IDAC load voltage increases from 0 V to Vdda-1 V. Each of the four IDACs
in PSoC 3 / PSoC 5LP can connect to one pin directly and to other pins through the analog globals. The direct connection is
through a single switch, which has a resistance of about 200 . When the IDAC connects to a pin using an analog global, it
connects through two switches, each with a resistance of about 200 . For a detailed description of the PSoC 3 or PSoC 5LP
analog routing, see AN58827 Internal Routing Considerations for PSoC 3 and PSoC 5LP Analog Designs.
For IDAC3, the direct connection is to pin 3_1. The RTD on the EBK is connected to pin 3_1 of PSoC, and the calibration
channel is connected to pin 3_4 of PSoC (see Figure 16).
The Top Design schematic, shown in Figure 11 requires separate IDAC multiplexer channels: the RTD channel and the
calibration channel. In building the project, PSoC Creator can route the RTD channel through the direct switch and the
calibration channel through the analog global. In this case,
IDAC load resistance in RTD channel = 200 + RTD resistance
IDAC load resistance in calibration channel = 500 (400 + calibration resistance 100 ).
The different load resistances result in different IDAC load voltages, which produce different IDAC currents in both channels.
The error in RTD resistance caused by the different currents is calculated by Equation 16.
I
R RRTD * 1 RTD
I
Re f
Equation 9
The resistance error increases as the RTD resistance (temperature) rises. If the ratio, IRTD/IRef, is equal to 1, the resistance
error falls to zero, as expected.
Lets calculate the error in temperature at 25 C due to the different IDAC currents.
The IDAC current used = 1 mA
The IDAC load voltage across the RTD channel = Load resistance * IDAC current = (200 + 109.732) * 1 mA = 309.732 mV
The IDAC load voltage across the calibration channel = 500 * 1 mA = 500 mV
As the load voltage rises from 309.732 mV to 500 mV, the IDAC current drops by about 0.5 A (See IDAC user module
datasheet graph)
From Equation 16,
1000
R 109.734 * 1
0.055
999.5
This corresponds to a temperature error of 0.14 C at 25 C.
www.cypress.com
16
200
Pin 3_1
Calibration
Resistance
200
200
IDAC3
200
RTD
To avoid that error, use manual analog routing to force the router to use the analog global path for both channels. Now the
load resistance in both channels remains about the same. The only factor that would affect the load resistance is the change in
RTD resistance due to temperature. At 850C, the RTD resistance would be 400 , while the calibration resistance would be
100 . That 300- difference causes a 300-mV difference in the load voltages. For that voltage difference of 300 mV, the
current change would be about 0.5 A. (The current droop with load voltage is available in the IDAC user module datasheet)
As a result, the worst-case error would be 0.7 C at 850 C.
Also, you should force the IDAC to IDAC3 by using a force placement directive in the directives tab of the design-wide
resources (.cydwr) file, as shown in Figure 17.
Figure 17. Force Placement Directive on IDAC
www.cypress.com
17
Appendix B
Broken RTD reconfiguration
If one of the four wires of the RTD breaks, PSoC can automatically detect a broken wire and reconfigure four-wire RTD
connection to three-wire connection and display temperature with minimal degradation to accuracy (< +/- 0.5C). Broken RTD
reconfiguration involves three steps.
1.
2.
3.
Compensate for the additional wire resistance due to the three wire mode and display temperature.
The PSoC Creator project (Broken RTD Reconfiguration) associated with this application note demonstrates this feature.
Detecting Broken RTD wire
A four-wire RTD connection to PSoC is shown in Figure 18. The current is passed through pin 3_1 into RTD wire 1 and it is
grounded through RTD wire 4 (RTD wire 4 is not connected to a PSoC pin). The ADC differential inputs are connected to pins
4_0 and 4_1, which are connected to wires 2 and 3 of the RTD. The pin choices are made according to the connections in
CY8CKIT-025 PSoC precision analog temperature sensor EBK
Figure 18. Four-Wire RTD Connected to PSoC
IDAC
Pin 3_1
Rw1
R1
Pin 4_0
Rw2
RTD
R2
Pin 4_1
ADC +-
Rw3
R3
PSoC
Kit025
External 4-wire
RTD
Rw4
A broken wire can be detected by using PSoCs GPIO structure. PSoC GPIO can be configured to source vdd through a pull
up resistor while simultaneously sensing the pin state through its digital input buffer. For example, pin 3_1 can be configured
as shown in Figure 19.
Figure 19. Pin Configured in Resistive Pull-Up Mode and Digital Input Mode
PSoC
VDDIO
> 3.5k
Pin
State
Digital Input
Buffer
To analog
global
To analog
Mux Bus
To detect the broken RTD wire connected to pin 3_1, pin 3_1 is configured in the resistive pull-up mode and the pin state is
sensed back.
www.cypress.com
18
When wires 1 and 4 are not broken, the RTD resistance forms a resistor divider with the internal pull-up resistor and the
voltage across the RTD is sensed back as the pin state.
The pull-up resistance has a minimum value of 3.5 k and the RTD can have a maximum resistance of 390 (at 850 C).
Assuming wire resistances (Rw1 and Rw4) = 5 each, we get a maximum value of 400 .
Figure 20. Detecting Wires 1 and 4 for Breakage
VDDIO
PSoC
> 3.5k
Pin 3_1
Pin
State
Rw1
Digital Input
Buffer
To analog
global
Rw2
RTD
To analog
Mux Bus
Rw3
External 4-wire
RTD
Rw4
RRTD R w1 R w 2
RRTD R w1 R w 2 R p
= VDDIO *
400
3900
Therefore, when pin 3_1 is configured as resistive pull up (with a high voltage forced through the pin) and when no RTD wire is
broken, the pin state will be low. When either RTD wire 1 or 4 is broken, the pin state will be high.
Similarly, we can detect if RTD wires 2 and 3 are broken by configuring the respective pins to resistive pull-up modes and
reading the pin state back.
To find which RTD wire is broken, follow these steps:
1.
Disconnect pins 3_1, 4_0 and 4_1 from ADC and DAC
2.
3.
4.
5.
Let the pin states of pin 3_1, pin 4_0 and pin 4_1 be stored in variables A, B, and C respectively. Based on different values of
A, B, and C, we can have eight states, as shown in the following table.
www.cypress.com
19
Result
No Wire Broken
Wire 3 broken
Wire 2 broken
Wire 1 broken
Wire 4 broken
The previous table also shows the result of each combination of A, B, and C.
If any of A, B and C is equal to 0, then wire 4 is not broken.
If A, B and C are all equal to 1, wire 4 is definitely broken. Apart from wire 4 any other wire can also be broken. But in such a
case reconfiguration is not possible. Reconfiguration is possible only if one of the wires is broken.
R e c o n f i g u r i n g f o u r -w i r e R T D t o t h r e e - w i r e
After detecting the broken RTD wire, we have to reconfigure the four-wire RTD to three-wire RTD eliminating the broken wire.
The flexible analog routing structure of PSoC makes it very easy to reconfigure four-wire RTD to three-wire RTD eliminating
the broken wire. The reconfiguration routes are shown below.
RTD Wire 1 Broken
If RTD wire 1 is broken, the current path is opened. To close the current path, the routing is reconfigured such that the current
is forced through the ADC pin 4_0 as shown in Figure 21.
Figure 21. RTD Wire 1 Broken
IDAC
Pin 3_1
Rw1
R1
Pin 4_0
Rw2
RTD
R2
Pin 4_1
ADC +-
Rw3
R3
PSoC
Kit025
External 4-wire
RTD
Rw4
www.cypress.com
20
R1
Pin 4_0
Rw2
RTD
R2
Pin 4_1
ADC +-
Rw3
R3
PSoC
Kit025
External 4-wire
RTD
Rw4
In this case, the ADC measures RTD wire resistance 1 in addition to the RTD resistance.
RTD Wire 3 Broken
If RTD wire 3 is broken, the path from RTD to ADC negative terminal is opened. To close the path, we connect ADC negative
terminal to ground as shown in Figure 23.
Figure 23. RTD Wire 3 Broken
IDAC
Pin 3_1
Rw1
R1
Pin 4_0
Rw2
RTD
R2
Pin 4_1
ADC +-
Rw3
R3
PSoC
Kit025
External 4-wire
RTD
Rw4
In this case, the ADC measures RTD wire resistance 4 in addition to the RTD resistance. Also, any difference in potential
between the two grounds (kit-025 ground and the chip internal ground) adds to measurement error. One time offset correction
eliminates both the wire resistance error and the ground difference error.
RTD Wire 4 broken
If RTD wire 4 is broken, the current path from RTD to ground is opened. The ADC input terminal is Hi-Z and no current flows
through the ADC input. To close the path, we provide the ground path by configuring the pin in open drain low mode as shown
in Figure 24.
Figure 24. RTD Wire 4 Broken
IDAC
Pin 3_1
Rw1
R1
Pin 4_0
Rw2
RTD
R2
Pin 4_1
ADC +-
Rw3
R3
R4
PSoC
Kit025
External 4-wire
RTD
Rw4
In this case, the ADC measures RTD wire resistance 3 in addition to the RTD resistance.
www.cypress.com
21
Configure the RTD in four-wire mode as shown in Figure 18 and find the RTD resistance (R0)
2.
Configure the RTD in three-wire mode (wire 1 broken) as shown in Figure 21 and calculate the resistance (R1)
3.
Compute additional wire resistance, CompRes1 = (R1 R0). When wire 1 breaks and the RTD is reconfigured as shown in
Figure 21, CompRes1 should be subtracted from the measured resistance.
4.
Configure the RTD in three-wire mode (wire 2 broken) as shown in Figure 22 and calculate the resistance (R2)
5.
Compute additional wire resistance, CompRes2 = (R2 R0). When wire 2 breaks and the RTD is reconfigured as shown in
Figure 22, CompRes2 should be subtracted from the measured resistance.
6.
Configure the RTD in three-wire mode (wire 3 broken) as shown in Figure 23 and calculate the resistance (R3)
7.
Compute additional wire resistance, CompRes3 = (R3 R0). When wire 3 breaks and the RTD is reconfigured shown in
Figure 23, CompRes3 should be subtracted from the measured resistance.
8.
Configure the RTD in three-wire mode (wire 4 broken) as shown in Figure 24 and calculate the resistance (R4)
9.
Compute additional wire resistance, CompRes4 = (R4 R0). When wire 4 breaks and the RTD is reconfigured as shown in
Figure 24, CompRes4 should be subtracted from the measured resistance.
Project Description
The Project (Broken RTD reconfiguration) has been built to work with CY8CKIT-025. The project detects a broken RTD wire
and automatically reconfigures a four-wire RTD connection to a three-wire RTD connection and continues to display
temperature with a broken alert. The project also performs one-time wire resistance compensation so that the temperature
displayed is accurate.
The PSoC Creator schematic of the project is shown in Figure 25.
Figure 25. PSoC Creator Schematic of Broken RTD Reconfiguration Project
www.cypress.com
22
This project is similar to the RTD temperature measurement project except that there are more IDAC and ADC channels to
support four-wire to three-wire reconfiguration. Manual analog routing has been used to ensure that the ADC positive
connection always happens through analog mux bus. This way we ensure that the ADC and IDAC connections are through
two different paths until the pin. Each pin connects to the analog network through two paths: Analog mux bus and Analog
globals (see Figure 19 and Figure 20). See PSoC3 Datasheet I/O System and Routing section for a detailed description of pin
structure. By making sure that the ADC connects to the pin through the analog mux bus and that the DAC connects to the pin
through one of the analog globals, we eliminate any additional resistance that can add to RTD resistance.
Figure 21 shows separate IDAC and ADC paths until pin. Figure 26 shows IDAC and ADC paths merged before pin. In this we
have resistance R4 in addition to Rw2. This additional resistance will also get subtracted out when we perform resistance
compensation. But having separate current and voltage paths until the pin is a better way of doing a three wire RTD. If the
compensation fails due to some reason, the additional resistance error will be in the order of ohms when you have separate
IDAC and ADC paths whereas it will be in the order of hundreds of ohms when you do not have separate IDAC and ADC
paths until the pin.
Figure 26. Wire 1 Broken IDAC and ADC Paths Merged Before Pin
IDAC
Pin 3_1
Rw1
R1
Pin 4_0
Rw2
R4
RTD
R2
Pin 4_1
ADC +-
Rw3
R3
PSoC
Kit025
External 4-wire
RTD
Rw4
Firmware Flowchart
The firmware flowchart is shown in Figure 27. There is a step in which the firmware reconfigures the routing to four-wire mode
on a switch press. Whenever a wire is broken, the RTD reconfigures the routing and remains in that routing even if the broken
wire is fixed. The user can press the Switch, SW2, in the DVK and the firmware reconfigures the routing to four wire mode.
When one of the RTD wire breaks, the RTD resistance will drop down to less than 10 . This condition is used in the project to
trigger the checking of wires.
www.cypress.com
23
Is SW2
pressed?
Is R<10?
N
Compute resistance
and display
temperature
Find broken
wire
Is Broken wire
= {1,2,3,4}
1
Reconfigure
analog routing for
wire 1 broken
Reconfigure
analog routing for
wire 2 broken
Reconfigure
analog routing for
wire 3 broken
Reconfigure
analog routing for
wire 4 broken
3.
4.
Follow the one-time calibration instructions. It requires disconnecting RTD wire 4 and connecting it back
5.
6.
Disconnect wire 1. The RTD temperature will be about the same value and the LCD displays a message W1 Broken
7.
Reconnect wire 1 and press SW2. You will see the message W1 Broken disappear and the RTD is reconfigured back in
four wire mode
8.
www.cypress.com
24
Document History
Document Title: AN70698 PSoC 3 and PSoC 5LP Temperature Measurement with an RTD
Document Number: 001-70698
Revision
ECN
Orig. of
Change
Submission
Date
Description of Change
**
3458038
PFZ
12/12/2011
*A
3490797
PFZ
1/12/2012
*B
3520653
PFZ
2/8/2012
*C
3689958
PFZ
08/09/2012
RTD component includes support for PT100, PT500 and PT1000 RTDs
A new section on broken RTD reconfiguration has been added
Other minor changes
*D
3740378
PFZ
09/11/2012
*E
3818484
PFZ
11/21/2012
Updated Associated Part Family as All PSoC 3 and PSoC 5LP Parts.
Updated Related Application Notes as AN75511, AN66477, AN60590.
Updated Introduction.
Updated RTD Resistance-to-Temperature Conversion (Updated Choosing the
Right Polynomial Order (Updated description), updated RTD Component
(Updated Figure 6, Figure 7, Figure 8)
Updated Project Description (Updated Figure 11 and Figure 12)
Updated Appendix B (Updated Broken RTD reconfiguration (Updated Project
Description (Updated Figure 25))).
Replaced PSoC 5 with PSoC 5LP in all instances across the document.
*F
4057734
TDU
07/11/2013
*G
4152296
TDU
10/09/2013
*H
4202789
www.cypress.com
TDU
11/26/2013
25
PSoC Solutions
Products
Automotive
cypress.com/go/automotive
psoc.cypress.com/solutions
cypress.com/go/clocks
Interface
cypress.com/go/interface
cypress.com/go/powerpsoc
cypress.com/go/plc
Memory
cypress.com/go/memory
cypress.com/go/ons
PSoC
cypress.com/go/psoc
Touch Sensing
cypress.com/go/touch
USB Controllers
cypress.com/go/usb
Wireless/RF
cypress.com/go/wireless
Technical Support
cypress.com/go/support
PSoC and CapSense are registered trademarks of Cypress Semiconductor Corp. All other trademarks or registered trademarks referenced herein are
the property of their respective owners.
Cypress Semiconductor
198 Champion Court
San Jose, CA 95134-1709
Phone
Fax
Website
: 408-943-2600
: 408-943-4730
: www.cypress.com
Cypress Semiconductor Corporation, 2011-2013. The information contained herein is subject to change without notice. Cypress Semiconductor
Corporation assumes no responsibility for the use of any circuitry other than circuitry embodied in a Cypress product. Nor does it convey or imply any
license under patent or other rights. Cypress products are not warranted nor intended to be used for medical, life support, life saving, critical control or
safety applications, unless pursuant to an express written agreement with Cypress. Furthermore, Cypress does not authorize its products for use as
critical components in life-support systems where a malfunction or failure may reasonably be expected to result in significant injury to the user. The
inclusion of Cypress products in life-support systems application implies that the manufacturer assumes all risk of such use and in doing so indemnifies
Cypress against all charges.
This Source Code (software and/or firmware) is owned by Cypress Semiconductor Corporation (Cypress) and is protected by and subject to worldwide
patent protection (United States and foreign), United States copyright laws and international treaty provisions. Cypress hereby grants to licensee a
personal, non-exclusive, non-transferable license to copy, use, modify, create derivative works of, and compile the Cypress Source Code and derivative
works for the sole purpose of creating custom software and or firmware in support of licensee product to be used only in conjunction with a Cypress
integrated circuit as specified in the applicable agreement. Any reproduction, modification, translation, compilation, or representation of this Source
Code except as specified above is prohibited without the express written permission of Cypress.
Disclaimer: CYPRESS MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS MATERIAL, INCLUDING, BUT
NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Cypress reserves the
right to make changes without further notice to the materials described herein. Cypress does not assume any liability arising out of the application or
use of any product or circuit described herein. Cypress does not authorize its products for use as critical components in life-support systems where a
malfunction or failure may reasonably be expected to result in significant injury to the user. The inclusion of Cypress product in a life-support systems
application implies that the manufacturer assumes all risk of such use and in doing so indemnifies Cypress against all charges.
Use may be limited by and subject to the applicable Cypress software license agreement.
www.cypress.com
26