09.04.2018 Views

tidu271

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

www.ti.com<br />

Theory of Operation<br />

5.2.12 Piecewise Linear Approximation Method<br />

RTD manufacturers usually provide a lookup table that offer excellent accuracy for linearization of a<br />

specific type of thermocouple. The granularity on these lookup tables is also very precise—approximately<br />

1°C for each lookup value. To save microcontroller memory and development time, an interpolation<br />

technique applied to these values can be used. An example of this method when converting from voltage<br />

to temperature with eight lookup table entries is shown in Figure 48.<br />

To perform a linear interpolation using a lookup table, first compare the measured RTD resistance to<br />

values given in the lookup table, until the lookup table value exceeds the measured value that is being<br />

converted.<br />

Then, use Equation 32 to convert the measured RTD resistance to temperature, where R LT is the<br />

resistance 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.<br />

Figure 48. V-to-T Conversion Block Diagram for RTD<br />

T TLT n 1 TLT n TLT<br />

n 1<br />

LT <br />

<br />

LT <br />

RIN<br />

R n 1 <br />

<br />

<br />

RLT<br />

n R n 1 <br />

<br />

<br />

There is a trade-off between memory size and the piecewise linear approximation method’s accuracy. The<br />

more entries on the lookup table, the more accurate the results are. However, the larger number of entries<br />

on the lookup table uses more memory space.<br />

(32)<br />

Figure 49. Temperature Error versus Temperature Using Different Sizes of lookup Table<br />

TIDU271–May 2014<br />

Submit Documentation Feedback<br />

Temperature Sensor Interface Module for Programmable Logic Controllers<br />

(PLC)<br />

Copyright © 2014, Texas Instruments Incorporated<br />

39

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!