tidu271
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Theory of Operation<br />
www.ti.com<br />
Thermocouple manufacturers usually provide a lookup table that offer excellent accuracy for linearization<br />
of a specific type of thermocouple. The granularity on these lookup tables is also very<br />
precise—approximately 1°C for each lookup value. To save microcontroller memory and development<br />
time, an interpolation technique applied to these values can be used. An example of this method when<br />
converting from voltage to temperature with eight lookup table entries is shown in Figure 13.<br />
To perform a linear interpolation using a lookup table, first compare the measured thermocouple voltage to<br />
values given in the lookup table, until the lookup table value exceeds the measured value being<br />
converted. Then, use Equation 4 to convert the measured thermocouple voltage to temperature, where V LT<br />
is the voltage lookup table array and T LT is the temperature lookup table array. This operation involves four<br />
additions, one multiplication, and one division step, respectively. This operation can be done easily on<br />
most 16- and 32-bit microcontrollers. Converting from temperature to voltage is the same, except that the<br />
lookup tables and the temperature variables are reversed, as shown in Equation 4.<br />
Figure 13. V-to-T Conversion Block Diagram for Thermocouple<br />
<br />
VIN<br />
VLT<br />
n 1<br />
<br />
<br />
LT LT LT<br />
<br />
<br />
VLTn VLT<br />
n 1 <br />
<br />
<br />
T T n 1 T n T n 1<br />
<br />
TIN<br />
TLT<br />
n 1<br />
<br />
<br />
LT LT LT<br />
<br />
<br />
TLTn TLT<br />
n 1 <br />
<br />
<br />
V V n 1 V n V n 1<br />
(4)<br />
14 Temperature Sensor Interface Module for Programmable Logic Controllers TIDU271–May 2014<br />
(PLC)<br />
Submit Documentation Feedback<br />
Copyright © 2014, Texas Instruments Incorporated