Linearizing Dual-Slope Digital Converter Suitable For A Thermistor
Linearizing Dual-Slope Digital Converter Suitable For A Thermistor
Abstract—To measure temperature using a thermistor as the drastically reduced sensitivity. This drawback was sought to be
sensing element, linearization to compensate for the inverse expo- overcome by the use of a reciprocal time generator to obtain a
nential nature of the resistance–temperature characteristic of the digital output proportional to the temperature [4]. The linearity
thermistor is required. A linearizing dual-slope digital converter
(LDSDC) that accepts a thermistor sensor as input and provides was further improved by employing a four-constant fit for the
a digital output that is directly proportional to the temperature relationship governing the temperature and the resistance of
being sensed is presented here. A logarithmic amplifier at the input the thermistor [5], though at the cost of increased complexity
of the LDSDC compensates for the exponential characteristics. as four simultaneous nonlinear equations had to be solved to
The conversion logic of the underlying dual-slope converter is obtain the constants.
suitably modified to implement the required inversion and offset
correction and thus obtain linearization over a wide range of input Bosson’s three-constant law was also approximated to de-
temperature. The efficacy of the proposed LDSDC is established velop a linear temperature–time period converter, incorporat-
through simulation studies and its practicality demonstrated with ing a thermistor [6]. The circuit provided excellent linearity
experimental results obtained on a prototype unit built and tested. (∼0.02%) but over a very narrow range of 10 K, the reason
Analysis of the proffered method to identify possible sources of being that such a small variation was one of the essential
errors is also presented.
assumptions on which the approximation of the thermistor
Index Terms—Direct digital converter, dual-slope converter, lin- characteristic was based. An established technique for the
earization, logarithmic amplifier, resistance-to-digital converter, linearization of the output of a thermistor involved the use of
thermistor.
different kinds of multivibrators [7], [8] where differing degrees
of linearity were obtained over limited ranges of temperatures.
I. I NTRODUCTION
An improvement on this method using an astable multivibrator
in a resolution of 0.01 ◦ C. The possible sources of errors was employed and the compensated offset was found to be
in the proposed LDSDC are discussed next and experimental <0.3 mV, resulting in an error of < 0.015 ◦ C.
validation of the scheme is given in the sequel.
C. Influence of the Stability of the Fixed Time Interval T1
III. E RROR A NALYSIS OF THE LDSDC
As in a conventional DSADC, the integrator in the proposed
A glance at (8) and (9) might seem to indicate that the circuit is connected to the reference voltage −VR for a fixed
stability of the measured temperature θ depends only on the duration T1 . If the time period T1 is in error by an amount ΔT1 ,
fixed quantities VR , N1 , RA , and Nk . But a deeper analysis then (6) gets modified as
of the process which led to the formulation of the above VR vlog
expressions would show that the success of (9) depends on a (T1 + ΔT1 ) = T2 (12)
RC RC
few assumptions that can deviate from the ideal, in a practical
implementation of the scheme. Some of these assumptions are resulting in the final expression
that the reference voltage VR and the time period T1 (= N1 Tc )
ΔT1 ΔT1
are constant and stable, that the change in resistance of the N2 = θ 1 ± ± Nk . (13)
T1 T1
thermistor is due only to the temperature that it seeks to measure
and that the opamp, comparator, and switch used in Fig. 1 are Equation (13) indicates that an error in the first integration
ideal. In this section, we investigate whether these assumptions period also results in a gain error and an offset.
are justified and if not, to determine the extent to which (9) and
thereby, the circuit performance is affected.
D. Error Due to Self-Heating of the Thermistor
When discussing the operation of the circuit, it was assumed
A. Stability of the Reference Voltage VR
that the change in resistance of the thermistor was solely due
Any variation in the magnitude of the reference voltage does to the temperature that the device was seeking to measure.
not affect vlog as both the currents Iθ and IA given to the This assumption is not entirely valid, because the measurement
logarithmic amplifier (indicated in Fig. 1) are derived from the of the thermistor resistance is accomplished by electrically
same reference voltage. However, the proposed LDSDC suit- exciting it with a voltage VR . As a result, there is a small amount
able for the thermistor is essentially a voltage–time converter, of local heating due to the VR2 /Rθ effect, which could degrade
wherein the unknown voltage vlog is compared with a standard the performance of the circuit, unless carefully designed for.
reference voltage VR . Therefore, any uncertainty or instability Self-heating is normally specified by the dissipation constant,
in VR is bound to affect the measurement of temperature θ. which indicates the amount of power required to raise the
If the reference voltage changes to (VR ± ΔVR ), then (8) gets temperature of the thermistor by 1 K. A thermistor excited by
modified as a constant voltage source could introduce significant errors due
to self-heating, when its resistance decreases at higher tempera-
ΔVR ΔVR
N2 = θ 1 ± ± Nk . (10) tures. For example, the NTCS0603E3223FMT thermistor from
VR VR
Vishay Electronics, which has a dissipation constant of 3 mW/K
A comparison of (9) and (10) shows that a deviation in [19], if excited by a 1.5 V source, would introduce an error as
the reference voltage introduces a gain error and an offset in large as 1 ◦ C when measuring a temperature of 120 ◦ C. Hence,
the output, both of which can be easily compensated. In the in the prototype, the excitation voltage was kept as 100 mV,
prototype unit developed, the reference voltage was kept as 1 V resulting in the elevation of the thermistor temperature due to
± 5 mV, resulting in a full-scale error of ±0.5 ◦ C. self-heating to be < 0.01 ◦ C. The error due to self-heating can
be minimized by limiting the current through the thermistor or
by choosing a thermistor with a large dissipation constant, if
B. Effect of Offset at the Output of the Logarithmic Amplifier the former choice cannot be availed of for reasons of sensitivity.
A practical logarithmic amplifier [18] may have an offset In the proposed method, the reference voltage +VR powers the
voltage. If ΔVL is the offset voltage at the output of the thermistor and its magnitude must be chosen such that this error
logarithmic amplifier, then (9) gets modified as becomes negligible.
2
ΔVL ΔVL
N2 = θ ∓ (θ + Nk ) ± ∓ . . . . (11) E. Influence of Delays Caused by the Comparator and Switch
vlog vlog
During the discussion on the operation of the circuit, it has
Equation (11) indicates that an offset at the output of the been assumed that the comparator would change states instanta-
logarithmic amplifier introduces gain error and an offset that neously when the integrator output changes polarity. Similarly,
are nonlinear in nature. Variation of vlog by as little as 5 mV it was assumed that the switch would respond immediately
is sufficient to cause the measured temperature to be in error when its control lines, A1 A0 change. In actual practice, both
by more than 0.5 ◦ C. Hence, care must be taken to ensure the comparator as well as the switch would take a finite amount
that the offset at the output of the logarithmic amplifier is of time to respond to changes in their control inputs. If the
properly nulled. In the prototype unit, an offset-nulling circuit delay due to the comparator is denoted by τc and that caused
MOHAN et al.: LINEARIZING DUAL-SLOPE DIGITAL CONVERTER SUITABLE FOR A THERMISTOR 1519
by the switch as τs , then the effect of such delay would be Hence, a mismatch in the ON resistances of switch S results in
that the voltage vlog , instead of being switched to the fixed a gain error and an offset at the output.
resistance for a time period T1 , would now be connected for
a period (T1 + τc + τs ). This situation is similar to the one
depicted in (13). If the total delay caused by the comparator and H. Influence of Other Factors
switch is very small when compared to the fixed time period
In deriving (9), it was assumed that VR N1 = β and Nk = γ.
T1 , the errors caused by such delays can be considered to be
While it is possible to precisely set VR N1 = β by trimming VR ,
negligible. For comparators like the LM311 which was used
it may not be possible to make Nk exactly equal to γ as Nk can
in the prototype or the switch HCF4052, the maximum delay
only be an integer, while γ can, in general, have a decimal part.
would be 200 and 60 ns, respectively, which are very small
This rounding-off error will be in addition to the quantization
in comparison to the normal value of 100 ms used for T1 and
error of the underlying DSADC of the LDSDC.
hence, the error introduced by these delays will be negligible.
F. Error Caused by Offset Voltages of the OPAMP and IV. E XPERIMENTAL R ESULTS
Comparator
To verify the proposed technique, the circuit schematic given
The offset voltage of the opamp used in the integrator has the in Fig. 1 was simulated using Orcad PSpice and its performance
effect of adding to or subtracting from the total charge gained studied under various conditions [17]. The results of the simu-
by the feedback capacitor during T1 , depending on the polarity lation proved the efficacy of the proposed scheme. To verify the
of the offset voltage. Its action is therefore similar to that of the practicality of the proffered method, a prototype unit was built
change in the reference voltage VR described in Section III-A. and tested.
For high-accuracy measurements, it is therefore necessary that The circuit of the proposed LDSDC for a thermistor, shown
opamps with low-input offset voltages be used or appropriate in Fig. 1, was set up on a prototyping board in the laboratory.
steps taken to trim the offset voltages using external circuitry. It was powered by the AEE01AA36, a 5-V dc/dc converter
Without proper compensation, the measured temperatures can from Messrs Astec Power. The reference voltages of ±1 V and
be in error by as much as 1.25 ◦ C, particularly when operating ±100 mV were derived using the LM385 1.2-V reference
with low reference voltages. The offset of the opamp used in diodes and precision resistances. The LOG112 from Messrs
the prototype unit was the OP97 with an offset voltage less than Texas Instruments was chosen for use as the logarithmic am-
25 μV, resulting in negligible error in the measurement. plifier not only for the high accuracy and precision it provides
Offset voltage present in the comparator will simply shift over a wide dynamic range but also for its low offset voltage
the baseline, shown in Fig. 2, depending on the polarity and and temperature drift. More importantly, the LOG112 provides
magnitude of the offset. As long as this offset is small and does an output scaling amplifier, which simplifies the task of com-
not change during the conversion phase, it will not affect the pensating the offset of the logarithmic amplifier. With its low
operation of the LDSDC. offset voltage and bias currents, the OP97 was an easy choice
for use in the integrator. The comparator was built using the
LM311 while the HCF4052 was used as the switch to connect
G. Effect of the Switch Resistance
the resistance R to the various voltages. Power supplies includ-
In the discussion so far, it has been assumed that the switch ing the derived ones were bypassed to ground with 10- and
used for connecting the resistance R to the different reference 0.1-μF capacitances. All ground lines were connected to one
voltages and vlog has no effect on the circuit operation other single point, whose potential was continuously monitored and
than to introduce a delay τs , as discussed in Section III-E. It found to be within ±50 μV of power supply ground.
was assumed that the switch does not introduce any additional The thermistor used in the prototype was the
resistance into the circuit. This assumption is not quite valid in NTCS0603E3223FMT from the SMD0603 series of glass-
practice. Typical switch ON resistance RON can be a few ohms encapsulated NTC thermistors manufactured by Messrs
to a few hundred ohms. If the ON resistances of the switch S are Vishay Electronics. The calibration sources used for testing
the same in positions 2 and 3, then the changed resistor value the prototype unit were the MP40R [20] and MTC650 [21]
at the input of the integrator (R + RON ) appears on both sides temperature calibrators from Messrs Nagman Instruments,
of (6), and hence gets cancelled without affecting the output. If India, which are certified to be within ±0.6 ◦ C. The TLU was
the ON resistances of switch S are different in positions 2 and 3 built on a Virtual Instrument platform, around the USB-6251
resulting in, for example, the total resistance as (R + RON ) in [22] DAQ hardware and LabVIEW software from Messrs
position 2 and (R + RON )(1 ± α) in position 3, then (6) gets National Instruments. The USB-6251 was interfaced to the
modified as circuit through the BNC2120 accessory. The output of the
comparator was made TTL-compatible and connected to one
VR vlog
T1 = T2 (14) of the digital I/O lines of the USB-6251, which was configured
(R + RON )C (R + RON )(1 ± α)C as an input line. A pair of the digital I/O lines of the DAQ was
resulting in configured as output lines and was used as the control lines A1
and A0 for the switch S. One of the 32-bit general-purpose
N2 = θ(1 ± α) ± αNk . (15) timer counters of the USB-6251 having a resolution of 50 ns
1520 IEEE TRANSACTIONS ON INSTRUMENTATION AND MEASUREMENT, VOL. 60, NO. 5, MAY 2011
[8] Z. P. Nenova and T. G. Nenov, “Linearisation circuit of the thermistor V. Jagadeesh Kumar (M’96) was born in Madras,
connection,” IEEE Trans. Instrum. Meas., vol. 58, no. 2, pp. 441–449, India, on July 21, 1956. He received the B.E. degree
Feb. 2009. in electronics and telecommunication engineering
[9] A. A. Khan and R. Sengupta, “A linear temperature to frequency con- from the University of Madras, Madras, in 1978, and
verter using a thermistor,” IEEE Trans. Instrum. Meas., vol. IM-30, no. 4, the M.Tech. and Ph.D. degrees in electrical engineer-
pp. 296–299, Dec. 1981. ing from the Indian Institute of Technology (I.I.T.),
[10] A. A. Khan, “An improved linear temperature/voltage converter Madras, in 1980 and 1986, respectively.
using thermistor in logarithmic network,” IEEE Trans. Instrum. Meas., He is presently the Head of the Department of
vol. IM-34, pt. 2, no. 5, pp. 635–638, Dec. 1985. Electrical Engineering, I.I.T., Madras. He was a
[11] A. A. Khan and R. Sengupta, “A linear thermistor-based temperature-to- BOYSCAST Fellow at the King’s College, London,
frequency converter using a delay network,” IEEE Trans. Instrum. Meas., during 1987-88 and a DAAD Fellow at the Technical
vol. IM-34, no. 1, pp. 85–86, Mar. 1985. University of Braunschweig, Germany, during 1997. He worked as a Visiting
[12] R. N. Sengupta, “A widely linear temperature to frequency converter using Scientist at the Technical University of Aachen, Germany, during 1999. He
a thermistor in a pulse generator,” IEEE Trans. Instrum. Meas., vol. 37, taught for a term at the Asian Institute of Technology, Bangkok, in the summer
no. 1, pp. 62–65, Mar. 1988. of 1999. He holds six patents and has published more than 40 papers in
[13] R. Cordella, “A heuristic thermistor model,” IEEE Trans. Circuits Syst., international journals and presented more than 60 papers at various confer-
vol. CAS-29, no. 4, pp. 272–276, Apr. 1982. ences. His teaching and research interests are in the areas of measurements,
[14] D. Ghosh and D. Patranabis, “Software based linearisation of thermis- instrumentation, and signal processing.
tor type nonlinearity,” Proc. Inst. Elect. Eng. G—Circuits Devices Syst.,
vol. 139, no. 3, pp. 339–342, Jun. 1992.
[15] G. Zatorre-Navarro, N. Medrano-Marques, and S. Celma-Pueyo, “Analy- P. Sankaran was born in Pudukkottai,
sis and simulation of a mixed-mode neuron architecture for sensor con- Tamizhnadu, India, on September 2, 1939. He
ditioning,” IEEE Trans. Neural Netw., vol. 17, no. 5, pp. 1332–1335, received the B.E. degree in electrical engineering
Sep. 2006. and the M.Sc. (Engg.) degree in electrical machine
[16] A. Abudhahir and S. Baskar, “An evolutionary optimized nonlinear func- design from the University of Madras, Madras,
tion to improve the linearity of transducer characteristics,” Meas. Sci. India, in 1960 and 1961, respectively, and the Ph.D.
Technol., vol. 19, no. 4, pp. 72–76, Apr. 2008. degree in electrical engineering from the Indian
[17] N. M. Mohan, V. J. Kumar, P. Sankaran, G. Venmathi, and M. Vani, Institute of Technology (I.I.T.) Madras, in 1972.
“Linearising dual slope digital converter suitable for a thermistor,” in He was a Senior Fellow of the Technical Teachers’
Proc. IEEE I 2 MTC, Austin, TX, 2010, pp. 131–135. Training Program of the Government of India from
[18] Texas Instrum., “Data Sheet - LOG112,” Precision Logarithmic 1961 to 1963. In July 1963, he joined the Electrical
and Log Ratio Amplifiers, Dallas, TX2010. [Online]. Available: Engineering Department of I.I.T. Madras, where he retired as a Professor.
http://tinyurl.com/mxyqp5 He was a Professor of Engineering Technology at Multimedia University,
[19] Vishay Electron., “Data Sheet - NTCS0603E3223MT,” SMD0603- Malaysia, between 2000 and 2002. During the periods 1967–69, 1974–75,
Glass Protected NTC Thermistors, Malvern, PA. [Online]. Available: 1981, and 1989–90, he was in Germany at the Technical Universities of
http://tinyurl.com/o7jcop Stuttgart and Braunschweig as a DAAD Fellow and as a Humboldt Fellow. His
[20] Nagman Instrum. Electron., “Data Sheet - MP40R,” Sub-Zero and teaching and research interests are in the areas of electrical networks, machines,
Medium Temperature Calibrator, Chennai, India. [Online]. Available: and measurements and instrumentation.
http://tinyurl.com/najrjd
[21] Nagman Instrum. Electron., “Data Sheet - MTC650,” Micropro-
cessor Based Universal Temperature Calibrator, Chennai, India. [Online].
Available: http://tinyurl.com/q3985s
[22] National Instrum., “USB-6251 - User Manual,” 16-Bit, 8-Channel,
1.25 MSa/s Data Acquisition Device, Schaumburg, IL. [Online].
Available: http://tinyurl.com/rd2hqq