Integrated Smart Sensors
Integrated Smart Sensors
Integrated Smart Sensors
by
and
Johan L. Huijsing
University of Delft
1 lntroduction
1.1 Introduction ..............................................................
1
1
1.2 Sensors and actuators ............................................... 2
1.3 Integrated smart sensors ........................................... 5
1.4 Measurement errors and correction .......................... 6
l.4.1 Process variations and time variations .......................... 7
1.4.2 Calibration ..................................................................... 8
1.4.3 Se1f-testing ................................................................... Il
l.4.4 Se1f-calibration ............................................................ 13
l.4.5 Redundancy improvement Of feedforward testing ...... 15
l.4.6 ConcJuding remarks ..................................................... 16
1.5 Objective and Organization ................................... 16
1.5.1 Objective ...................................................................... 16
1.5.2 Organization ................................................................ 17
1.5.3 Design constraints ....................................................... 17
References ........................................................................... 19
4 Signal
Calibration using Analog
Processing 93
4.1 Introduction ............................................................ 93
4.2 Conventional sensor calibration ............................. 94
4.2.1 Resistor trimming ........................................................ 94
4.2.2 Programmable resistor-arrays ...................................... 96
4.3 Analog calibration circuits ..................................... 96
4.3.1 Classical offset and full-scale calibration .................... 98
4.3.2 Classical cross-sensitivity calibration .......................... 99
4.3.3 Improved analog calibration circuit... ........................ 102
4.4 Classical pulse-modulated calibration .................. 104
4.5 Analog implementation of a polynomial
calibration . . . . . . . . . . . . . . . . . . . . . . . .. 106
4.5.1 System configuration ................................................. 106
4.5.2 Analog current multiplier .......................................... 108
4.5.3 Programmable current divider DAC ......................... 111
4.5.4 VI-converters and IV-converters ............................... 113
4.5.5 System implementation ............................................. 116
4.5.6 System operation ....................................................... 117
4.5.7 Realization ................................................................. 121
4.6 Conclusion ............................................................ 124
References ................ 126
o .... o .......... o .... o o .. o .. o ....................... o ....
Index 199
1.1 Introduction
The (signal processing and storage) capacity ofthe human brain enables us
to become powerful autonomous beings, but only if our brains operate in
conjunction with (at least some of) our senses and muscles. Using these
organs, we can interact with our environment, learn to adapt, and improve
important aspects of our life. Similarly, the signal processing capabilities
of modern electronics (computers) could be combined with electronic
sensors and actuators to enable interaction with, and adaptation to, the
(non-electrical) environment. This willlead to smarter and more powerful
automated tools and machines. To facilitate and stimulate such a
development, easy-to-use low-cost sensors are needed. The combination
of electronic interface functions and a sensor in an integrated smart
sensor, that provides a standard, digital, and bus-compatible output, would
simplify the connection of sensors to standard electronic signal processors
(microcontrollers, computers, etc.). Currently, the calibration procedure,
required for standardization of the sensor output signal level, contributes
largely to the production costs of accurate sensors. To enable automation
of the calibration procedure, and hence reduce the sensor fabrication costs,
a digital calibrationjunction should be included in the smart sensor.
Digital
Electronic
Controller
low-Ievel bus
communication
Digital
Electronic
high-Ievel bus Controller
communication
User Interface
low-Ievel bus and digital controller. It is also possible that some devices
communicate on a high-Ievel [6] and others on a low-Ievel bus [1].
low-Ievel bus
commun ication
data-acquisition
sub-system
,-_..L..L_---..
Digital Digital
Electronic Electronic
Controller Controller
sianal domains:
physical: electrical:
analog; digital: 1-bit serial
input
silic6n analog A-tb-D bus micro-
sens,or interface conv,erter interface controller
sus
Integrated Smart Sensor
Last but not least, on-board calibration electronics will make it possible to
realize smart sensors with standardized output signals, allowing easy
exchange of sensors and easy re-calibration [8, Il]. Calibration is
necessary to 'pinpoint' the transfer from the physical input signal,
temperature for example, to the electrical output signal, so that the
manufacturer can guarantee that a temperature of Odegrees Celsius always
corresponds to a digital output signal O. In the manufacturing of the
sensors this transfer often shows a large device-to-device variation.
Different options to correct this will be discussed in the next paragraph.
1.4.2 Calibration
To define calibration in general we quote Nicholas & White [12]:
"The word 'calibration' has changed its meaning with time and three
distinct meanings can be distinguished ....
The word appears to derive from an Arab word for a mould for casting
metal. This is presumably because calibration originally referred to the
making of guns by casting metal. Calibration referred either to the means
used to determine the calibre (or bore) of the gun Of to the determination of
the range of the gun ....
The second and more common meaning of the word calibration is the
checking and adjusting of the bore of an instrument and the application of a
scale by the manufacturer. . .. That is, a calibration refers to the set of
operations carried out by an instrument manufacturer in order to ensure that
the equipment has a useful measurement scale .... "
I Unfortunately the terms self-test and auto-calibration are also popular in electronic
circuit technology, especially for sensor interface circuits. The terms could be used
with much more care, by specifymg exactly what is tested or automatlcally adJusted.
1. Calibration Phase
reference signal
correcled
sensor
signal
2. Measurement Phase
I
I
transfer
physicaJ correction calibrated
signai to b t--t----.,~ • • • output
measured ---~ unc!JUbrated signal
- - -s;n-;;" ;n~i~o~;e~t - - sensor signal
~",<
<;'1l' calibrated
"'o - + ... output
0"'4' I signa/s
_4o_J. ...
ofC-;--L--+__ physica/ I
I .1 mput slgna/ I ti ca/cu/ated
t
I I
, • f physlca/
-J
sensor Xl I X2 IXI! "1 I I slgna/s
slgna/ I I I -g I I I
I o' c"
-y!: ... -
I '"'''' I -
Y2
-
I
-
I
~ ~ ~
,<>
I ~0<:-~ -
- - - - - ... - r - C:,,0(\.r::P CI) o
_________- Yl 0
,,0''',,~0 "<>
c.Q.~
,(\ G ~CD
7f------- physica/ Q.
input signa/
1.4.3 Self-testing
By installing one or more actuators c10se to the sensor, see Fig. 1-7, it is
possible to influence the physical input signal of the sensor at the
command of an on-chip control circuit. This controller then verifies
whether the sensor has detected the change in signal, if not it generates an
error signal to indicate that the sensor (or actuator) is not functional. This
can avoid incorrect interpretation of the sensor signal inside the system in
which the sensor is used.
sensor
I output signal
self-test
error signal
actuator(s)
multiplicative
I test signal smart sensor I
\ ... _________ ~t~ !e~ '.!~ .. I
sensor environment
1.4.4 Self-calibration
As can be seen in Fig. 1-8, the self-calibration I function is very similar to
the self-test function, but needs the addition of accurate actuator(s) and a
possibility of correcting the transfer, based on sensor measurements which
can be obtained by using different actuator signals.
L
, inputsignal 1-+..' _ _ calibrated
output signaJ
X
accurate
actuator(s)
precise
multiplication
factor smart sensor with
auto-calibrat ion I
,-------------------~
sensor environment
I Often the term auto-calibration is used, which means the same a~ self-calibration if
the word auto is interpreted as the Greek word for self, as in autodidact, but not as an
abbreviation for automatic.
• accurate actuators
• transfer correction
• clear separation of input signal and calibration signal
Since it is very difficult, if not impossible, to realize on-board actuators
which generate independent reference signals traceable to SI-units,
officiaIIy the term self-calibration can be considered contradictory [12].
Self-calibration of sensors does not eliminate the need for 'real'
calibration. It should rather be seen as a method to monitor the parameters
of a sensor and automatically adjust them, so that the time between
(re-)calibrations can be extended. More precisely, we could speak of
auto-zero adjust and auto-gain or auto-scale adjust instead of
self-calibration.
, ~
,,--=-----, \
I physical
I input signal al
C
I in
<Il sensor
al
U output signal
o
ă.
I env;ronmenr error signal
condilions
smart sensor with
feedforward test
sensor environment
multiple sensors in a certain way, single sensor defects can be detected and
failure of the measurement can be prevented . Defects or "out-of-range"
indications can be indicated with an error signal. By using the increased
redundancy provided in the combination of the sensor signals, a more
reliable measurement of the physical input signal is realized . The
reliability is best improved when combining dissimilar sensors with
different failure mechanisms.
1.5.1 Objective
The objective of the research discussed in this book is the incorporation of
a calibration function in the smart sensor concept. The integration of such
a calibration function with the sensor device, next to other smart sensor
functions such as AD-conversion and bus interface, is an attempt to
develop accurate, economicaIly feasible sensors. It is important that the
calibration function can be programmed digitally because this will allow
automation of the manufacturer's calibration procedure which, in
conjunction with batch calibration, can minimize the calibration costs per
sensor. Once reliable smart sensors are available at low cost they will not
only be applied in industry, but they may also enhance consumer products
and improve our personal comfort.
1.5.2 Organization
By recalling the smart sensor signal chain presented in Fig. 1-4 we can
c1arify the organization of this book:
CAD tools for the IC design f1ow. The 3-Ghz bipolar process 'Dimes-Ol'
of the Delft Institute for Microelectronics and Submicron-technology,
DIMES, was available at low cost, and was therefore an obvious choice for
this research project.
Although the choice for the Dimes-Ol process may not be optimal from
the economical point of view for aII the encountered designs, a consistent
use of the same process throughout the research project was favored.
Furthermore, the many silicon sensor developments in the Dimes-Ol
process can now easily profit from the advances in the sensor interface
designs in the same process.
References
[1] FR Riedijk, lntegrated Smart Sensors with Digital Bus lnterface,
PhD Thesis, Delft University Press, Delft, 1993.
[2] R.C. Dorf, Modern Control Systems, Fourth Edition, Addison-
Wesley Publishing Company, Reading, Massachusetts, 1986.
[3] W.A. Koeleman and P.P.L. Regtien, "Bus-organized
data-acquisition systems", Sensors and Actuators, Vol.5, 1984,
pp.327-333.
[4] J.E. Brignell, "Sensors in distributed instrumentation systems,
Sensors and Actuators, Vol.lO, 1986, pp.239-248.
[5] N. Najafi and K.D. Wise, "An organization and interface for sensor-
driven semiconductor process control systems", IEEE Trans.
Semiconductor Manujacturing, Vol.3, No.4, November 1990,
pp.230-238.
[6] M. Rutka, lntegrated Sensor Bus, PhD Thesis, Delft University
Press, De1ft, 1994.
[7] S. Middelhoek and S.A. Audet, Silicon Sensors, Academic Press,
London, 1989.
[8] J.H. Huijsing, FR Riedijk, and G. v.d. Horn, "Developments in
integrated smart sensors", Sensors and Actuators A, Vol.43, 1994,
pp.276-288.
[9] RF Wolffenbuttel, edit., Silicon Sensors and Circuits: on-chip
compatibility, Chapman & Hali, London, 1996.
[10] RF Wolffenbuttel, "Fabrication compatibility of integrated silicon
smart physical sensors, Sensors and Actuators A, Vol.41-42, 1994,
pp.l1-28
[11] J. Bryzek, K. Petersen, J.R. Mallon, L. Christel, and F Pourahmadi,
Silicon Sensors and Microstructures, NovaSensor, Fremont, USA,
1990.
[12] JV Nicholas and D.R White, Traceable Temperatures: an
introduction to temperature measurement and calibration, John
Wiley &Sons, Chichester/NewYork, 1994.
2.1 Introduction
In this chapter we will present a concept for implementing smart sensor
interfaces [1]. Within the scope of this work we cannot discuss many types
of sensors or sensor interfaces, hence we limit ourselves to two common
sensor types, for measuring temperature, and for measuring pressure. This
limitation does not mean that the presented matter cannot be extended to
other types of sensors.
1.0, ..
i Voltage
0.6:
+
0.2:
+ +
Temperature (·C) - -
-50 o 50 100 150
We can easily derive from the formulas for the collector currents,
'c =, S . e
Ui V BEQ1 )
=4 x 'BIAS
QI QI
(2-1 )
!1VBE = VSE
QI
-VSE
Q2
= kT
q
,SQ2 J
_·ln (4.,-
S
(2-2)
QI
1 ( _ m ). kTR.(T - TR)2
--ll ---
2 q TR
In this equation VBC represents the silicon bandgap voltage, Â the linear
temperature coefficient which measures approximately -1.9 mV/K at
TR =300K, and (TI-m) a physical parameter of about 3.5 which is somewhat
process dependent. The voltage signals VBE and VpTAT are displayed in
Fig. 2-1, where the PTAT voltage had to be magnified by a factor of 16 to
obtain a comparable temperature coefficient. Both effects can be used for
measuring temperature. In section 2.3.1 will be shown how to combine
both signals in a fully integrated circuit and to circumvent the need for an
extern al reference voltage.
Lx [ 110)
pressure
stress O stress
Now the art is in electrically sensing the pressure induced deftection of the
micromachined diaphragm. A capacitive technique seems attractive but
has the disadvantage that another capacitor plate is required, which has to
be fabricated/mounted as c10se as possible to the diaphragm for maximum
capacitance signal [12,13,14) . This is problematic considering the
packaging and the electrical connections, as well as incompatible with
some of the pressure sensor types indicated in Fig.2-3 because of the
required backside opening (7) . Solutions making use of wafer-to-wafer or
wafer-to-glass bonding are still under development [5, 11,15,15) .
V V V
/ lIb.'wlure VlIClIum"'\..
gage
V ambielll pre.,,~ure
vacuum
I \
I:I I
ambielll pres.mre
il1plll pres.mre
processing (on the same wafer), and are connected in a Wheatstone bridge
configuration, as shown in Fig.2-2. A pressure-related output voltage
signal , V,IUI' proportional to the bridge supply voltage, Vre!' is thus
generated [7] .
In case of the PTAT sensor the variations in the transfer are determined by
the matching properties of standard electronic components , This wiI1 be
examined in section 2.3,1 ,
~5 00
5aJ
I
~
~'aJ 'aJ '000
>
oS ~5aJ
~
C>
g
o
>
~
C>
~
/
Despite the fact that the sensors come from the same wafer, a significant
difference in offset and sensitivity between two sensors is found, for both
cases. An even larger difference can be expected when also taking into
account the variation in temperature coefficients of offset and sensitivity.
The large offset errors in the shown examples are mainly due to
imperfections in the first resistor layout, which can easily be improved in a
next version. Nevertheless, error sources such as initial stress, geometrical
variations, doping concentration profiles, and resistor mismatch will result
in a large error variations. The sensor construction does not aIlow to put
resistors c10se together to improve matching. The source of the signal
errors also explains why there is not a typical sensor-characteristic
nonlinearity error but a large device-to-device variation. An overview of
error contributions in piezoresistive pressure sensors can be found
in [7:chapter 4] and [19]. A total error band of 30% of the fuIl-scale can
be a reasonable expectation.
small offset error and second-order error are present. Bandgap references
and PTAT current sources are well-known circuits in le design as they are
often used for biasing purposes.
The left half of the circuit displayed in Fig.2-5 shows a low-voltage PTAT
source [20], which makes use of the ratio-ed transistors Ql and Q2. These
transistors are inserted in a controlloop that establishes equal bias currents
for both transistors. Because of the ratio in current density the difference
between the base-emitter voltages is proportional to the absolute
temperature, as already shown in equation (2-2). The value of the bias
current is determined by the PTAT voltage at the emitter of Q2 and the
value of resistor R 1. The current /VPTAT inherits the proportional-to-
absolute-temperature property of the voitage. The current mirror on the
left-hand side only serves to generate a small start-up current to prevent a
zero bias solution at start-up.
~ O O
t..::
~
IVPTAT ,:--1VPTAT
IVbe
r--
H - 1VRe
*
I
r.:02 I
,~
01 == 03
1x ~ 4x ~+ RO
R) + I R2 V
be
6k V pTAT 96k I-
I
The two current signals can easily be summed at the output, resulting in
/V8G=/Vbe+/PTAT. When inserting that current in a resistor R, it is converted
back into a voitage signal. The voltage will then be proportional to the
weighed sum of the PTAT voitage VPTAToRlR 1 and the base-emitter voltage
Vbe oRlR 2 , which can be equalized to the silicon bandgap voltage.
A simulation of the circuit, see Fig. 2-6, shows the PTAT signal with a
positive temperature coefficient, the VBE signal with a negative
temperature coefficient, and the constant sum signal. By correctly
dimensioning the ratio of the resistor values of R[ and R2 , in this case a
ratio of 16, the temperature coefficients of both current signals can be
matched so that the sum of the currents, referred to as [VBG' remains
constant as a function of temperature.
t 15!·················· ........................................................................................~
Current (JlA)
i !
:
1VBG- VBANDGAp/R
, ,
The simulation shown in Fig.2-6, was done for ideal resistors, meaning
that the resistance was considered independent of temperature. In reality
the temperature coefficients of the resistors directly affects the curves of
the current signals. However, when using the same kind of resistors for R,
R [, & R2 , the bandgap voltage signal will not be affected because it
depends on the resistor ratios. Similarly, the effect of the temperature
coefficients will cancel if we use the ratio of two current signals.
This can be done by combining the PTAT and bandgap currents, for
example in the way shown in Fig.2-7. A fraction ofthe bandgap current is
copied and subtracted from the PTAT current to generate a new temperature
current signal f.r. A down-scaled copy of the bandgap current is used as a
new reference current signallREF'
The simulation displayed in the upper graph of Fig.2-8, shows the two
currents as a function of temperature, now taking into account the
temperature coefficients of the resistors in the le process. It clearly shows
5 r-40'C 12S'C
..·........·····......··........····....·· ..···· ....······· .. ··········..............................
current
(IlA)
t o :..........................................................................................1...........
1 ! ......................................................................... ···· .... ······ ....··T.. ······ '!
0.9
current
ratlO
t ".....::::::..--------------+--i 0.1
o •...
-
u ~ ~
••••••••••••••••••••• . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
that the absolute current IREF is certainly not constant, and that IT is not so
linear. However, the ratiometric signaIIT/IREF, displayed in the lower half
of Fig.2-8, is good and is not affected by the temperature dependence of
the resistors. The sensor circuit is dimensioned in such a way that the
ratiometric signal range of [0.1-0.9] maps on the temperature range of
-40 ·e to + 125 ·e. The current mirrors in the sensor circuit of Fig. 2-7 can
be dimensioned differently to obtain a different temperature range, within
the operation limits of Ies of course.
:f32j-
t
7
......
j
. ,
1 0 ! b ·.. ··
error
(%)
t,:~_ ~
l
i
. _ ...
First of alI, it demonstrates that the effect of relative errors is much larger.
Second, it can be conc1uded that, in fabrication of such temperature
sensors, a spread in offset and gain errors of several percents, say ± 5%,
should be expected. The linearity error will be relatively- smalI, in the order
of 1%, for the specified temperature range. To realize a silicon temperature
sensor with exact1y the desired transfer from temperature to ratiometric
output, these errors will have to be calibrated. Furthermore, it has to be
noticed that the nonlinearity curve has a shape that is characteristic to this
type of sensor. The shape doesn't vary much from device-to-device. It is
determined by the nonlinearity in the VBE curve as expressed in
equation (2-3). The temperature coefficient of the resistors is a second
resistive
divider
dlfferent,al
reference
current
LLl AD-
converter
dlfferent,al
Input current
+
chopped vp
bridge
chop
As seen in section 2.2.3, the ratiometric bridge signal usuaIly does not get
much larger than 1-2 %. To optimaIly use the dynamic range of the
AD-converter it is necessary to scale down the bridge reference signaI. In
Fig. 2-10 this is realized with, accurately scaled, and carefuIly laid-out
resistors. Both the down-scaled reference voltage, and the bridge output
voltage, are converted to currents, using VI-converters, and pas sed on to
the sigma-delta AD-converter for a ratiometric conversion.
For the pressure sensor as well as for the temperature sensor we have
shown how to obtain a current ratio proportional to the sensor signaI. The
same can be done for many types of sensors. The obtained current ratio
can be accurately converted into a digital (bitstream) signal, using the
continuous-time sigma-delta converter explained in the next section.
I Both names, delta-sigma and sigma-delta, are common, and refer to the same type of
converter.
permits the assumption that the input signal is considered constant for
many c10ck periods.
The first figure iIlustrates the situation that the presumably constant input
current is integrated on the integration capacitor, and results at the
integrator output in a ramping voltage signal, with an upward slope
proportional to the input signal. The c10cked comparator compares this
voltage signal to the comparator's reference level Vcmp ' and outputs a
digital decision, low or high, only once each c10ck period, for example at
the positive clock edge. In this situation the output remains low until the
first c10ck edge after the integrated signal exceeds the comparator's
reference level. Then the comparator switches the output signal to high,
and turns the switch of the reference current, as illustrated in the next
figure. Provided that I ref> lin' an opposite integrator input current of
I ref -Im results now in a proportional negative slope at the integrator
output. The comparator output is high until the integration signal has
dropped below the reference level, and a c10ck edge occurs. The output
will become low again, and the sigma-delta converter switches back to the
situation of Fig. 2-11, and the procedure repeats itself.
ooor o.
t
dock I
mput
Lurrent r..
> ___..L..-~bitstream
output
integrator
Fig. 2-11 Sigma-delta converter principle, output low (A).
1
mput
current t n.
bitstream
> ___ ..L..-~ output
clocked
integrator comparator
Fig.2-12 Sigma-delta converter principle, output high (A).
The input signal range is usually limited to the signal range from
O.l.Jrel to O.9.Jrel , to avoid very low slopes in the integrator signal.
Through simple reasoning it can be found that a large input signal results
in steeper upward slopes, and less steep downward slopes, and thus a large
number of high outputs. The reverse app1ies for small input signa1s; the
number of high outputs will be small. Hence the output pulse density
seems proportional to the input signal; in fact the value of the input signal
O . 5-r------~-------------,-------__,
-0.5
fc/o ck
OSR = (2-5)
fNyqulSl
bU.Hream
>....I.r-JII oulpu[
m+N m+N
L b n '/ ref = c.~v "" O (2-6)
n=m+l n=m+l T'/k
Provided the input signal remains constant during the interval, we can
derive for the average of the bitstream output:
1 m+N
- '"
N L. b n
(2-7)
n=m+l
which confirms that the output bitstream signal re\ates to the ratio of the
input current and the reference current.
microcontroller microcontroller
.------1 or PC or PC
smart sensors with digital outputs smart sehsors with bus interface
It is cIear that the with the number of sensors also the wiring complexity
increases. Other disadvantages of this star-coupled architecture are that
the number of sensors is limited by the multiplexing capabilities of the
microcontroller (usually 8 to 16), that the position of the sensor determines
the multiplex address, and thus sensors cannot be swapped, and that only
direct sensor-to-master communication is possible.
The bus architecture shown on the right-hand side of Fig. 2-16, overcomes
aII these disadvantages. The sensors and the microcontrollerlPC are
equipped with a bus interface, and connected by common lines, a
clock line and a data line for example. A bus-slave sensor will put its data
on the bus data line only after it has been correctly addressed by the
For this reason the Integrated Smart Sensor (l S2) bus has been
invented [32]. The IS 2 bus is very similar to the 12e: it also has two supply
lines and two serial communication li nes, but it has an open data
transmission format [33,34,35]. In addition to the open collector
technique Manchester encoding is used, so that in combination with the
clock four different data states can be distinguished, as iIlustrated in
Fig.2-17.
The clock and the data line are both pulled up by resistors, which are
connected to the positive supply line. Using a strong open collector driver
(R clk "",500Q), the master puts a highly stable c\ock signal on the c\ock
line, which is indispensable for the accuracy of the sensors'
(time-continuous) sigma-delta converters. The data line can be pulled
down by any device on the bus, using a less powerful open collector
open-collector
Manchester Code clock and data line
pull-up
resistors
clock~
data
idle----
zero \.JL
one~
stop~
transistor (Rdata"'SkQ). Both the clock and the data line are read by the
,bus devices using high-ohmic input buffers.
When not a single bus device is active the data line remains high, and the
bus is in idle state. After at least two idle states, a bus master can address a
(sensor) bus slave by serially transmitting a start bit, eight address bits, and
awaiting an acknowledge bit from the addressed bus slave, as explained in
the bus protocol shown in Fig. 2-18. The slave can then put its data on the
data line.
Transmission acknowledge
Protocol ; 2-i~ address ~F--d-:-a-:'ta--~t~p=
- - I I I I I
c/ock line .§
I I - (II
clock-synchronous } .~.!Il
'1' digital data I _21 ~
da/afine
~ n 'Olij
U1L- .t;
I I
'1 I
: ~}c»'*
aSynChronous : r - v - L
r:s::z1
digital ~ata
..Q .!!!
~~
.
analog data
1,
-
I
.::"'
is now only possible by (shortly) pulling the c10ck line down which should
"wake up" the master, and get the c10ck running again .
It is also possible to make bus slaves receive data, for example to program
a sensor's input range . At the side of the master the bus addresses will ha ve
to be organized in such a way that the master knows what kind of data to
expect from or to send to the devices on the bus. This could be do ne by
setting up a table with information about the sensors attached to the bus,
containing address, type of data, number of samples, etc. or by splitting up
the address range in sub-ranges for analog sensors, for sensors with
bitstream outputs, etc. With eight address bits the maximum number of
addresses is 256.
The hardware at the sensor (bus-slave) side is very simple. The scheme is
shown in Fig. 2-19. A Manchester decoder is needed to detect the status of
the data line. After a start condition has been detected the decoded data
bits are shifted in a register. A digital comparator is needed to compare the
received address to the slave's own address. After positive comparison the
slave immediately returns an acknowledge bit, and than puts its data on the
bus . For digital data a Manchester encoder and OC driver are needed, and
for other data an analog switch and a voItage driver. The slave set-up is
thus very simple, and the necessary digital circuitry is so Iimited
(approximately 20 gates and 12 ftipftops) that it can be integrated in
CMOS on a very small surface, but also in bipolar technology using for
example Emitter-Coupled Logic (ECL) as wiIl be demonstrated in
chapter 4.
c/ock line
Manchester
Decoder
Error
21dles
. I
mlcro- I
controller /
References
[1] J.H. Huijsing, FR Riedijk, and G. v.d. Horn, "Developments in
integrated smart sensors", Sensors and Actuators A, VoI. 43, 1994,
pp.276-288.
[2] G.C.M. Meijer, "Thermal sensors based on transistors", Sensors and
Actuators, VoUO, 1986, pp.103-125.
[3] G.C.M. Meijer and A.W. van Herwaarden, Thermal Sensors,
Institute of Physics Publishing, Bristol/Philadelphia, 1994.
[4] S. Middelhoek and S.A. Audet, Silicon Sensors, Academic Press,
London, 1989.
[5] R.F Wolffenbuttel, "Fabrication compatibility of integrated silicon
smart physical sensors, Sensors and Actuators A, VoI.41-42, 1994,
pp.II-28.
[6] K.D. Wise and N. Najafi, "The coming opportunities in microsensor
systems", Proceedings Transducers 1991, San Fransisco, USA,
pp.I-7.
[7] J. Bryzek, K. Petersen, J.R Mallon, L. Christel, F Pourahmadi,
Silicon Sensors and Microstructures, NovaSensor, Fremont, USA,
1990.
[8] J.H. Huijsing, "Signal conditioning on the sensor chip", Sensors and
Actuators, VoUO, 1986, pp.219-237.
[9] R. Frank, "Pressure sensors merge micromachining and
microelectronics", Sensors and Actuators A, Vo1.28, 1991,
pp.93-103.
[10] L.K. Nanver, EJ.G. Goudena, and H.W. van Zeijl, "Dimes-Ol, A
base-line bifet process for smart sensor experiments", Sensors and
Actuators A, Vo1.36, 1993, pp.139-147.
[II] RP. van Kampen, Bulk-Micromachined Capacitive Servo-
Accelerometer, PhD Thesis, Delft University Press, Delft, 1995.
[12] F Schnatz et al., "Smart CMOS capacitive pressure transducer with
on-chip calibration capability", Sensors and Actuators A, Vo1.34,
1992, pp.77-83.
3.1 Introduction
In the first part of this chapter we will identify and distinguish the different
types of errors which affect the transfer of the sensor, and explain which
errors can be corrected by calibration. In the following section we will
explain different Iinearization techniques which can be used to calibrate
the offset, gain, and Iinearity errors in the sensor transfer. In the last part
we will propose and explain a polynomial calibration method which can
be used to calibrate and Iinearize the sensor transfer in a step-by-step
approach. It will be shown how the method can be expanded to a
two-dimensional polynomial calibration to be used for calibration of a
cross-sensitivity error.
output
input
input input
When the errors in the transfer are larger than the desired sensor accuracy,
the sensors in production need to be calibrated (or selected on measured
specifications). Both systematic errors and random errors could be
calibrated for each individual sensor. However, when the systematic error
is much larger than the deviation of the random errors, this approach is not
optimal. It is better to trace the source of the systematic error and correct
it, or introduce a systematic error compensation for the whole sensor batch
or production. After removing the systematic error, the remaining random
errors can be calibrated per individual sensor, so that ultimately the error
distribution fits within the accuracy limits. Fig.3-2A may represent the
statistical distribution of the offset for a large batch of sensors, showing an
average (~) of 45mV and a standard deviation (cr) of 5mV For the
example, we suppose that the desired accuracy allows a maximum offset
of±2mV
1 probabtlity
J.l=45mV
o 20
(A)
60
--
offset (mV)
1
probabt hty
-20 -10 O 10 20 --
offset (mV)
I
(B)
probabthty
±2mV
-20 -10 O
(e)
10 20 --
offset (mV)
PracticalIy aII sensors (99.76%) have an offset within the 11 ± 30" range,
and so, initialIy, none of them has an offset smaller than 2mY. To calibrate
the offset error, a correction of maximum 60mV with a 4mV accuracy
would be required. By applying a systematic offset correction of -45mV
first, the shifted distribution of Fig. 3-2 B is obtained, and approximately
30% of the sensors have an offset according to the specification. Next, an
offset calibration with a correction range of ± 15 mV and a resolution of
4mV (-3-bit) is sufficient to put almost aII sensors in the ±2mV offset
range. The offset error distribution of the sensors, after such a calibration
is shown in Fig.3-2C. The calibration accuracy can be increased to further
reduce the offset error and the width of the distribution.
In order to correct linear errors only linear operations are required, which
are easy to implement in circuit technology. In a straightforward manner a
programmable offset and programmable gain can be realized. Some
examples will be given at the beginning of chapter 4. The calibration or
correction of the nonlinearity, referred to as linearization, is more
complicated. We need to counteract the sensor's nonlinearity and somehow
realize an inversely nonlinear electronic transfer. Many different methods
can be found in literature. The basic linearization principles are explained
in section 3.2. In section 3.3 we propose and explain the polynomial
linearization method which wilI be used in the realizations presented in
subsequent chapters.
Through normalization, the range of interest [<Pmtn' <PmruJ for the physical
input signal is mapped on the range [-1,1] for a normalized input signal.
Similarly, the desired output range [emin,e max ] of the electrical sensor
output must be mapped on the [-1,1] range for a normalized output signal.
We can derive the normalized input signal and normalized output signal of
the sensor respectively as:
1.0
t normallzed
output
~em~or
"gnal
g(x)=x
0.5
normahzed
."Iensor I nput
f---i--+--+-r-+---f---:A---j "gnal
-1.0 -o 5 1.0 - - x
-1.0
function y=h(x) will thus be composed of the sensor output signal f(x), the
calibration measurementsf(xn ), and the corresponding ideal output values
g(xn):
(3-2)
"mbiCnl "mbienl
tcmpcrl.:Hure prc,"ure i npUI lempermure prcs. . urc input
transfer function f(x,z) in such a way that a function h(x,z) results, which
resembles the linear function g(x,z). This will require calibration
measurements f(xn,zm) for various input conditions defined by
x n [n= l to N] and zm [m= I to M]. Referring to the number of
measurements this is called an NxM calibration. Similarly to
equation (3-3), we can define the two-dimensional error surface
E (x, z) = h (x, z) - g (x , z) .
3.2 Linearization
Some types of sensors show a characteristic nonlinear transfer, which can
be explained from a physical model , or which can be reproduced
consistently. In that case, the required calibration can be simplified by first
applying a systematic linearization, as proposed in section 3.2 .1. The
es = f ( c.p) = a + b . In (c + d . q» (3-4)
h ( q» = R . le = R· e T be
K V
= R. e K T {a + b In (c + d . q» } (3-5)
h (x) = A +B .x (3-6)
Exponenttal
CIrcuit IV Converter
Sensor
~)ut
output
vottage
Due to the inverse transfer curve of the transistor with respect to the
transfer of the sensor, the output is now linearly proportional to the
physical input signal «>, and only the gain and offset errors remain to be
calibrated. Attention should be paid to the temperature sensitivity
introduced by K Ţ = q/kT. This temperature sensitivity could be
cancelled easily by multiplying the sensor signal es with a PTAT
(proportional to 1) signal, before applying it to the transistor [3].
/
look-up table
MEMORY i
~ 1-_.diit8i,.Ia.''.IU..
I".UI. calibta/ed ou/put
slgnal
S<Il
senso,
oufpuf address atlalo}! OU/jJlll
signal
inpul signal
During the calibration phase, the correct output signals must be stored in
the memory at the correct addresses. This can be done by (slowly)
scanning through the range of the physical input signal of the sensor, and
storing the desired digital output values in the memory, at each single
address change. The correct digital output values could be obtained from a
reference sensor with an ADC [6]. Filling the complete look-up table
requires a large series or 'scan' of calibration measurements. Another
approach is to limit the calibration to a few measurements, and use an
advanced interpolation algorithm on a computer to obtain the required
table values.
A 6-bit quantization of the normalized input signal over the [-2,2] range
was used, and applied to the example sensor function f(x) . The quantized
signal f w "{x) is shown in Fig.3-7. Each quantization level on the y-axis
can be used to obtain a corrected output value, which results in the
calibrated signal transfer function hw.,{x). It is c1ear that for input signals x
in the range [-1,0], there are less quantization levels available than in the
[0,1] range due to the nonlinearity off(x). The corresponding error curve,
10
t~utput
0.5 !(x)
_x
-10 -0.5 1 O Input
10% tE
error
+ 1/2LSB
mput
-1 I -X
_1/2LS B
-10%
also shown in Fig.3-7, demonstrates that the quantization error will not
remain within the ±'/2 LSB limits.
MEMORY
1:7
senSor
ou/put signal
signal
&<;10 fix )
0<
1:'<;
~0
input signal
otTset & gain input signal
correctlon
The linear interpolation between the first two knots can be found as:
(3-7)
(3-8)
10
t~utput
0.5
__ x
-1.0 -o 5 10 input
-1.0
x/,y/
4% t:rror
2%
-1.0 -0.5 0.5 1.0
'<_---+--j;:--+-=-,k-=--+----,r----+----j __ x
input
-4%
f(x) E [Yn'Yn+I)-j
g(xn+l) -g(x n)
hn(x) = g ( x n) + - - - - - - . {f(x) - Yn} (3-10)
Yn+l-Y n
based on the desired output values g(xn) and the measured output signals:
(3-11 )
N-l
hpwt (x) = L hn (x) , (3-12)
n=l
and thus intersects the desired transfer function g(x) at aII input values x n
used for the calibration.
The resulting calibrated transfer curve and the error curve for the example
case with five calibration measurements are shown in Fig.3-9. The
Iinearity peak error is reduced to 5%, while the uncalibrated nonlinearity
was about 30%. The error reduction could be improved somewhat by
optimizing the division of the sub-ranges, instead of taking equidistant
calibration points xn- This would only be possible for specific transfer
curves of which the shape is known beforehand. The Iinearization can be
further improved by increasing the number of interpolation knots, at the
expense of more calibration measurements and a larger memory
requirement. Alternatively, a better interpolation between the knots of the
transfer curve can be used to improve the linearization, as will be
explained in the next section.
Yn + l - Yn
(3-14)
b = Yn +2- Yn Yn + l - Y n
n (x n + 2 -xn ) (x n + 2 -xn + 1)
We can divide the input signal range into sub-ranges, based on the
measurement points xn' In each sub-range there are two polynomial
interpolations available, except for the first and the last sub-ranges where
just one interpolation is valid. Therefore, we define the linearization
(3-15)
Yn+l-Y n (3-17)
g(x + ) -g(x )
n 2 n
B = ....,.----""---=----""----
n (Y n +2- Yn) (Y n +2- Yn+l)
Fig. 3-1 O shows the interpolation and linearization function for the
example case based on five calibration points (Xl>Y 1) to (x5,Y5), and also
the resulting error curve.
1.0 t~utput
05
_x
-10 -0.5 1.0 input
X/>YI
t:rror
10%
0.5%
-10 -0.5 0%
O
-0.5%
-1.0%
Fig. 3-10 Spline interpolation and linearization functions, and
corresponding errar curve.
Clearly, the linearity erroT is reduced significantly from about 30% for the
uncalibrated transfer function to below 1% for the linearized function.
Here again, we see that the peak error is in the x=O.S to x= 1 range and
could have been reduced by a better choice of the calibration points xn- For
finding the optimal choice based on statistical information about the sensor
function, Crary even developed an advanced computer program [13,14].
Again, it only helps for transfer curves with a c\early characteristic
nonlinearity, and a limited deviation from this curve for a batch of sensors.
The computations required can be split in two groups. First, the caJculation
of the correct values for calibration coefficients during or after the
caJibration phase. This may be done externally of the sensor (on a
computer). Second, caJculation of the Jinearized output signal based on the
sensor output and the calibration coefficients. This correction must be
integrated with the smart sensor, either in analog or digital hardware, or in
software in a microcontroller interfacing the sensor. Memory must be
present to store the calibration coefficients. The procedure is explained
graphically in Fig. 3-11.
.0~~O\ __
curve fii
COM PUTATIO
",pUI Signai IfIpul sJ!}nal
(3-20)
lOt ~utput
0.5
~~~~--~--~~-+--~~~--~ --.x
-1.0 -0.5 1 O input
-1.0
0.5% tEerror
0%
~==c=~~~==~~~~~~~--~--.x
-1.0 -O 5 O 0.5 10 input
-05%
Fig. 3-12 Fourth-order polynomial linearization curve, and
corresponding errar curve.
Suppose, for example, that we know that the measured transfer should
obey a quadratic function and that we have four measurement points.
Then, it is better to tune the three coefticients of a second order polynomial
(quadratic curve) and minimize the errors in the four points, rather than to
calculate a third order polynomial and zero the errors. The reason for this
is that the last option might introduce a much larger error in between the
measured data points, as we knew before-hand that the introduced third
order polynomial term should be zero. However, based on the a-priori
knowledge we could also concI ude that have taken one unnecessary
calibration measurement, as three measurement points would have been
sufticient to compose a second order interpolation curve intersecting the
measured curve.
The technique for interpolation explained above can also be applied for
linearization. While the linearization techniques presented in the previous
sections required straight-forward calculations only, the optimization of
several (or many) coefficients for the minimization of the error function
requires a different class of mathematics [13,14]. How to determine the
optimum order for the linearization curve? Where to start tuning the
calibration coefficients? How to determine a good error function and how
to minimize it and assure a global (rather than a local) minimum? These
are complex issues, especially for higher order linearization and two-
dimensional calibrations. Solutions of such optimization problems are
usually found by using iterative algorithms (e.g. simulated annealing)
implemented in software [13,14]. Considering the amount of complex
calculations required, the approach is not very suitable for realization in
hardware integrated on a smart sensor l , nor for an elaborate treatise fitting
within the scope of this book.
3.2.7 Conclusion
Different linearization techniques were presented, which can be used to
calibrate the sensor transfer function. Sensor calibration techniques found
in literature are practicaIly aII based on one of these techniques or on a
combination of them [18,19]. Hardware and software implementations of
the look-up table and the piecewise-linear techniques can be found,
whereas the more advanced techniques are always implemented in
software. Application of sensor characteristic linearity compensation in
analog electronic circuitry can be found for thermal sensors
especially [20,21].
The first measurement is done to calibrate the offset which means the
transfer function is shifted or translated, as shown in the first picture of
Fig.3-l3 .
y y
t
Offset
t
)',,.- - -- - -- -
--"x
y y
2nd order 3 rd order
t linearity
t linearity
....- - - - - ---"x
il . U:l(x)-Y.lI·tf2(x)-Yz l·l!,(x)-y ,1
)" -- y ,~~___4_______
Y=,.~
r· Y
~r=-
el
/ --"x
(3-21 )
(3-22)
(3-23)
Substitution of equation (3-23) into equation (3-22) proves that the desired
equalization hdxl)=Yl is obtained.
(3-24)
The additive correction term is zero in the first calibration point (xl,yI),
which keeps the previous equalization still valid for the new function
hlxl)=hdxl)=YI' independent of a2' The second equalization h 2(x2)=Y2
has to be obtained by finding the correct value for calibration coefficient
a2' This requires a second calibration measurement f(x2), from which
hJ{X2) can be ca\culated, and can then be compared with the desired output
value Y2=g(x2). The equalization is obtained when:
Y2 - h, (x 2)
(3-25)
{h,(x 2) - Y,}
{h,(x)-y,}· {hix)-Y2}
= h 2(x) + a 3 . - - - - - - - - - - (3-26)
y ref
where a reference Yref is only inserted to preserve the unit of the correction
term. A third calibration measurement !(x3) is done and immediately
corrected by ca\culating hdx3) and h2(x3), which are used to find the
desired value for the third calibration coefficient a3:
(3-27)
Substitution into equation (3-26) proves that the a third equalization of the
calibrated sensor transfer h3(x) to the desired transfer g(x) has been
achieved, namely h 3(x3)=Y3 .
Here too, the reference Yref is used to preserve the unit of the correction
term. Again a new calibration measurement !(x4) is needed to obtain
hdX4), h 2(X4) , and h 3(X4) , which enables the ca1culation of the fourth
calibration coefficient a4:
(3-29)
(3-31 )
(3-32)
Four calibration steps are illustrated in Fig.3-13 on page 76. Clearly, the
method achieves that the calibrated transfer function progresses the
desired function in a step by step manner. The number of steps and the
measurement points xn are not necessarily fixed beforehand.
The reduction of the error signal, the difference between the calibrated
output and the desired output, E(x)=hn(x)-g(x), depends on the number of
steps and the choice of the calibration points on the signal range:
10
t~utput
05
Xl x5 Xz
~--~--F---+-~~--+r~~~+-~ --.X
-1.0 -0.5 I O mput
-1.0
-10 -o 5
20%
t;rror E3(xl
10 __ x
O 05 in put
stepl step3
step2
E2(x)
E1(x)
E(xl
-80%
4%
2%
__ x
-10 05 10 in put
-2%
-4%
10%
t;rror
05%
E4(x) stepS
O __ x
-10 Es(x) -O 5 0% 05 10 mput
-05%
-10%
Fig. 3-15 Error curve of the example transfer function, before and
after 1, 2, 3, 4, and 5 calibration steps.
3
a {h,-r)){hz-\'2){h l- r tl
4 )-'rcl "rei
Yref
We start at a fixed value xI for input variable x. We calibrate offset and the
cross-sensitivity of the offset to variable z, by applying M different
conditions zI to ZM, and ca1culating the calibrated transfer functions
respectively as:
M-I
hIM(x, z) = hl,M_I(x, z) + a lM · n (z' -z'm)
m= I
n
M-I
h 2M (x, z) = h 2,M_I(x, z) + {l2M' {hIM(x, z) -YI} (z' -z',,)
m=:.: 1
(3-34)
Again, the set of equations (3-34) can be compared with the one-
dimensional gain calibration of equation (3-24) in which the calibration
coefficient a2 is given an M-point polynomial cross-sensitivity
compensation for variable z.
M-I
h 1M (x, z)
-
= h",-, M-I (x, z) + a 1M
-
. {h l M(x, z) - YI} {h 2M (x, z) - Y2} TI (z' -z'm)
m = 1
(3-35)
In the same manner, the procedure can be continued to further calibrate the
nonlinearity. Similar to the one-dimensional case, new input conditions for
the input variable x need to be used, x=x4 to x=xN in combination with the
z-conditions described before. The Nth and last calibration can then be
described by the following equations:
N-I
hNl(x,z)=hN_I.M(x,Z) +a NI TI {hnM(x,z)-y n }
n= 1
N-I
h N2 (x,z)=h NI (x,z) + (lN2(z'-Z'I) TI {hnM(x,z)-y n }
n=1
N-I
M-I N-I
(3-36)
After aIl the coefficients aii to aNM have been caJculated, the final
calibration function, h(x,z)=hNdx,z), has been given an (N-1)th-order
polynomial linearization for input variable x, and an (M-l )th_order
compensation for cross-sensitivity to variable z. If the linearization has to
be improved, the polynomial order for input x can be increased with an
additional set of (M) equations and measurements as expressed in
equation (3-36). Only the new calibration coefficients need to be
caJculated, the previous ones remain valid. On the other hand, if the order
of the cross-sensitivity polynomial needs to be increased, then each set of
equations (3-33) to (3-36) gets one additional formula. We need N
additional calibration measurements for inputs xI to XN at a new condition
ZM+ l' It can be shown that, despite the nested (recursive) use of the
functions hnm(x,z), the additional calibration coefficients can be caJculated
without having to recompute the previous calibration functions.
3.4 Conclusion
The discrepancies that can be found in the sensor transfer have been
distinguished to clarify what errors can be corrected by means of
calibration. Generally, the aim of the calibration is to correct the sensor
transfer for linear errors, like offset and gain (scale), as well as
nonlinearity and cross-sensitivity.
References
[1] J.W. Gardner, Microsensors: principles and applications, John
Wiley & Sons, New York, 1994.
[2] W. Gopel, J. Hesse, and J. Zemel, "Sensors: A Comprehensive Study,
Vol.l: Fundamentals and General Aspects", T. Grandke & W.H. Ko
(Vol.eds.), VCH, Weinheim, 1989.
[3] J.H. Huijsing and J.A. van Steenwijk, "A monolithic analog
exponential converter", IEEE Journal of Solid-State Circuits, VoI. 15,
No.2, 1980, pp.162-168.
[4] J.E. Brignell, "Digital compensation of sensors", Journal of Physics,
VoI. E: Scientific Instrumentation, 1987, pp. 1097-1 102.
[5] J.E. Brignell, "Software techniques for sensor compensation",
Sensors and Actuators A, VoI.25-27, 1991, pp.29-35.
[6] P.P.L. Regtien and P.J. Trimp, "Dynamic calibration of sensors using
EEPROMs", Sensors and Actuators A, Vo1.21-23, 1990, pp.615-618.
[7] PN. Mahana and F.N. Trofimenkoff, "Transducer output signal
processing using an eight-bit microcomputer", IEEE Trans.
Instrumentation and Measurement, Vol.IM-35, No.2, June 1986,
pp.182-186.
[8] C. de Boor, "A practical guide to splines", Applied Mathematical
Sciences, Vol.27, Springer, New York, 1978.
[9] P. Dierckx, Curve and surfacefitting with splines, Oxford University
Press, Oxford, 1993.
[10] S.B. Crary, w.G. Baer, J.c. Cowles, and K.D. Wise, "Digital
compensation of high performance silicon pressure transducers",
Sensors and Actuators A, VoI. 2 1-23, 1990, pp.70-72.
[Il] S. Huang, R.Z. Morawski, and A. Barwicz, "Static calibration based
on superposition of splines in one variable", Proceedings IMTC'96,
June 1996, pp.49-53.
[12] C. Berthoud, M. Ansorge, and F. Pellandini, "Effective static
response compensation suitable for low-power asic implementation
with an application to pressure sensors", Proceedings IMTC'96, June
1996,pp.1168-1173.
[13] M.E. Snow and S.B. Crary, "The use of simulated annealing in the
I-optimal design of experiments", Michigan Academician XXIV,
1992, pp.343-354.
[14] S.B. Crary, L. Hoo, and M. Tennenhouse, "I-Optimality algorithm
and implementation", Computational Statistics, Y. Dodge and
J. Whittaker (eds.), Proceedings of the 10th Symposium on
Computational Statistics, Vol.2, Neuchâtel, Switzerland, 1992,
pp.209-213.
[15] S.R. Ashley, M. Muggeridge, and J. Lucas, "An inexpensive digital
Iinearizer for nonlinear transducers", Journal of Physics E:
Sci. Instrum., VoI. 11, 1978, pp.576-580.
[16] w.T. Bolk, "A general digital linearising method for transducers",
Journal of Physics, VoI. E: Scientific Instrumentation, 1985,
pp.61-64.
[17] D. Patranabis and D. Gosh, "A noveI software-based transducer
Iinearizer", IEEE Trans. Instrumentation and Measurement, Vo1.36,
No.6, December 1989.
[18] P. Malcovati, c.A. Leme, P. O'Leary, F. Maloberti, and H. Baltes,
"Smart sensor interface with AID conversion and programmable
calibration", IEEE Journal of Solid-State Circuits, Vo1.29, No.8,
August 1994, pp.963-966.
[19] M. Yamada and K. Watanabe, "A capacitive pressure sensor
interface using oversampling ~-L demodulation techniques", IEEE
Trans. Instrumentation and Measurement, Vo1.46, No.l, February
1997, pp.3-7.
[20] M. Gunawan, G.C.M. Meijer, J. Fonderie, and J.H. Huijsing, "A
curvature-corrected low-voltage bandgap reference", IEEE Journal
of Solid-State Circuit~, Vol.28, No.6, 1993, pp.667-670.
[21] S. Kaliyugavaradan, P. Sankaran, and VG.K. Murti, "A new
compensation scheme for thermistors and its implementation for
response linearization over a wide temperature range", IEEE Trans.
Instrumentation and Measurement, Vo1.42, No.5, 1993, pp.952-956.
[22] S. Kim and K.D. Wise, "Temperature sensitivity in silicon
piezoresistive pressure transducers", IEEE Trans. Electron Devices,
VoI. ED-38, 1983, pp.802-81 o.
4.1 Introduction
In this chapter we will focus on calibration techniques based on analog
signal processing. Almost all sensors require some kind of analog signal
conditioning or amplification before the sensor signal can be converted
and proces sed digitally. Basically, sensors produce an analog output signal
only. But even for modern smart sensors with digital output, a
standardized analog output signal is often desired as well. Therefore, we
will first consider the possibilities of adjusting the transfer of an analog
circuit for the purpose of calibrCltion.
fu II-scule Te
bridge + R6
supply instrumentation
voltage - fu II-scule amplifier
normuflzution
resistors that can be switched in paraIleI. The result is that the voitage gain
of the amplifier can be programmed digitaIly, in this case with a 4-bit
resolution. Likewise, other trimmable resistors in conventional
configurations could be replaced with programmable resistors. However, if
IC-technology is available, it is better to investigate more advanced circuit
techniques rather than to adapt conventional sensor calibration techniques
and inherit many of their disadvantages.
do
Jt---t--- d 1
~--+--+-- d2
~--+--+-+-- d3
R R R
The CMOS circuit on the left uses a resistor ladder network to obtain
binary-scaled currents. Depending upon the digital bit values, the vertical
resistors are either short-circuited to ground by the PMOS transistor (bit
low) or to a virtual ground node by the NMOS transistor (bit high). The
effective resistance of the ladder network from input to ground equals R.
The input voltage signal results in an input current IIN=VIN/R which scales
down by a factor of two at each successive node in the ladder. The input of
an IV-converter can be used as a virtual ground and summing node for the
binary parts.
The formula in Fig.4-3 shows that the analog input current is multiplied by
the digital number applied at the switches. The next section will show how
such multiplying DACs can be used for calibration of the transfer of an
analog sensor read-out circuit.
J Other kmd of sensor signals could be converted to a voltage signal, mstead of Just
amphfied
r------~---,
I R J Ro I() I
VOUT
instrumentation
amplifiers
The output current of the DAC is converted back into a voltage by the
IV -converter. The digital number applied at the switches of the DAC
controls the gain of the transfer. When there are no other signal paths, the
gain can be varied over the full range, from zero to the maximum. Often
the gain needs only a small adjustment relative to the full range. This can
be achieved by connecting a resistor Ro across the DAC, as illustrated with
the dashed wires. Now an additional current 10 proportional to the sensor
signal will contribute to the output voltage. Depending on the ratio of R[
and Ro, only a fraction of the full-scale signal (gain) can be varied.
IV -converter
I\um VOUT
Fig. 4-5 Analog circuit with multiplying DACs for offset, gain,
gain TC, and offset TC control.
I For plezoresistive bridges with a constant current excitation, sometJmes the bndge
voltage can be measured and used as a temperature signal
In principle, the four DACs control the four different errors, offset, offset
TC, gain, and gain TC independently. But the different correction signals
may also have transfer errors which need to be measured. Therefore, in the
calibration procedure, each of the four signal contributions has to be
measured separately at two different physical input signals and at two
temperatures (2x2 conditions). This can be do ne by respectively setting
each DAC on maximum and the other three on zero. These 2x2 x4 output
measurements can be used to characterize ali four signal contributions.
Then the required values for the DACs can be calculated and programmed
in the DACs, so that the desired calibration is obtained.
Isensor
Gilbertmultiplier
current DAC
In the schematics of Fig. 4-4 to Fig.4-6 we have ignored the fact that the
errors may have a different polarity than expected. For example, the TC of
h ll (x,z) =j(x,z) +a ll
with x as the sensor input signal, and z' the measured temperature signal,
we can construct the desired transfer of the calibration circuit.
For simplicity, we choose the first sensor calibration point at the input
level SI where we want the output signal to be zero, so YI=O. Suppose,
furthermore, that we can make use of a voltage signal VT-T1 which is zero
at a known temperature TI' Next, the functions in equation (4-1) are
R
IV -conver!er
11111 IV -conver!er
112 122
2R
2R
contributions for the gain corrections are zero when the sensor input signal
is equal to the calibration point SI, and the signal contributions for Te
compensation are zero at temperature TI.
As long as the maximum correction signals are only a small fraction of the
full-scale signal, the limited resolution of the calibration is not such a
problem. If high resolutions are desired, we need another type of
DA-conversion, based on scaling in the time (or frequency) domain.
Instead of creating binary divisions of the signal, we create (binary) scaled
time slots in which the signal is turned on or off. Using techniques known
as pulse-width modulation and pulse-density modulation we multiply the
analog signal with a digitally controlled high-frequency pulse signal [5].
The low-frequency average of the pulsed analog signal can thus be
accurately controlled by the digital signal. The resolution is now
determined by the time accuracy of the pulses and the maximum pulse
width. These properties relate respectively to the stability of the digital
c10ck signal (jitter) and the required analog signal bandwidth.
R)
v,\en.\or
~ 1,
_nnnJl_ gain
low-pass filter
R2 IV-converter
VREF 12
~
_JULJlIl_ offset
Vour
... --, VTxV\'en.ltJr
I,um
VREF R3
~ 13
voltage
multiplier _1U1JUUL gain TC
Vr R4
~ 14
_nnrL_ offset TC
3
li (h 3'\3){hn2){h 1,\J1
4 )'rc! Yrcl
Yref
The input voltage VIN, coming from the sensor output, the reference signal
Vas, and the set-points for the calibration VI, V2 , V3 are aII converted to
differential current signals, using Voltage-to-Current (VI) converters. At
currenl dupltcalors 1 10 5
R
'lli "
"'
"
2
VOI'!
A,
V, V,
R R
(4-3)
A special cIass of circuits is based on the principle that when the sum of
base-emitter voltages of a set of transistors is constant, this also applies for
the product of the collector currents [9,10]. An advantage of this principle
is that it is valid for a very large range of values, because the exponential
relation is a physical property of the bipolar transistor. The best known
example of a translinear circuit is probably the current multiplier.
At aII four input terminals at the bottom of the circuit, currents are pulled
down to the negative supply or ground. The bias voltage at the base of Q l
and Q2 determines the voItage level at the current inputs.
+
V b1as
Ilnl+
X
Ilnl- Iln2- 11112+
Vhta,1 02 01
03 04
05
Because of the differential set-up, each input current consists of two parts,
lin+ and Itn_. Each part is made up of a common-mode component, lin' and
a differential component, M,n' When neglecting the base currents, we see
for inputJ that ItnJ+=Ie3+le4""1(]+lc4 and linJ-=leS+le6""lcS+lc6 and for
input2 that Itn2+=/in2+f'l.I,n2""/d and lin2-=ltnrf'l.ltn2""lc2' which can be
worked out in combination with equation (4-4) into:
~1,n2)
1 ( 1+
=_. I14-21 ( 1 -~/m2)
I
c3 2 I
- - ·1
ml+
-_o
I- - ·1 ml+
m2 m2
I(6 =!.
2
( 1 - ~1,n2)
I
. Iml- I1'5 1 (
=_. ~/m2)
2 1 +I - - ·1 In 1-
m2 m2
(4-5)
Furthermore, we see in Fig.4-11, for the two parts of the output current
that lout+=Ic3 +lc6 and lout-=lc4 +lcS ' When substituting linJ+=linJ+f'l.lmJ
and ItnJ-=ltnrf'l.ltnJ into equation (4-5) we find for the output currents:
~I 2
Illut+ = I mi + ~I mi . __
m_
I (4-6)
m2
~I
I out- = I mI - M mI
. ---.!.!!.3
I
m2
With Mout=/oUl+ -/our- it simply folIows for the differential output current
that:
2. I'l./ml . l'l./m2
(4-7)
/m2
40:'
-20; to
out
=
M
(IlA) /
.
L'l./1I/2=1-16.-12.-8.-4.0.4, 8, 12.1611lA
-40. . . . -40. .
5
"
I I
0[7-IIJ
I I I I I I I I I I I I I
Vhwll
07~ ~ ~~ ~ ~~ J~ ~ ~~ ~oo OO~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~I07
h;+~ 11;+. 11;+. I~~++ I~~++ I~~++ ~+ ~~;+ ~~;+ .~ 256 .~
256 .~ 128 .~ .~ +II;~ I~- n·
."
•
64 • .!!!!.:
32 16 T
V!)/(J\2
8x 4x 2x 1x 1x 1x 1x 2x 4x 8x
Vhwd
8x 4x 2x 1x 1x 1x 1x 2x 4x 8
2R Q2R 2R Q2R 2R 2R 2R Q 2R 2R 2R
R R R R R R
The currents on the positive input I tn + and on the negative input l/fl- are
divided into 8 binary-scaled parts, using cascode dividers [4]. Each binary
part is switched to either the positive or the negative output by using a
differential pair. The circuit is configured in such a way that the
differential input current M,"=(I111+ -I,"J is multiplied with the two's
complement value of the 8-bit digital signal D[7-0J applied at the switches.
This is obtained by reversing the connections of the differential pair for the
most significant bit (MSB) D 7 , and by connecting the remainder of the
current division ...!... M in opposite phase to the output. When the base
256 In
currents of the transistors are neglected, the following transfer for the
differential current signal can easily be derived:
M oul
M III
(4-8)
in which the digital bits Dn can have a value of +1 (high) or -1 (low). The
differential pair switches in the DAC in Fig.4-13 are aII biased with one
base to a reference voltage V blas 1. The other side of each switch either gets
a lower or a higher voltage. As a differential voltage of 200m V is
sufficient, the switches can be controlled by the output of a digital ECL
(Emitter-Coupled Logic) circuit. The other bias voltages, V bIas2 and
V bIas3' need to be set at such a level that saturation of the transistors is
prevented. V bIas3 can be used to control the voltage level at the current
inputs.
(4-9)
+ 128
127 M
In
. The digital signals D[7-01 can now be interpreted as a digital
two's complement encoded 8-bit number with value d. Which makes it
possible to simply write the transfer as:
(4-10)
The digital number can have positive as well as negative polarity. This,
naturally, also applies for the differential input current, thus, again, a
four-quadrant multiplication is obtained. It is cJear from the schematic that
the common-mode output current is practically equal to the common-
mode input current.
2. ilV
__ In
(4-11 )
R
For the current duplication blocks, see section 4.5.1, a combination of one
IV-converter and two VI-converters is used. In fact, this combination
forms a sort of current mirror, but then only for the differential current
signal. The IV-converter turns the differential input current into a voItage
which is then used by two VI-converters to generate two differential
current signals.
) 11 12)
20u 20u
The transfer of the VI-converter is not linear over the full signal range, but
this problem is tackled by building the IV-converter around the same kind
of differential pair. As shown on the left side of Fig.4-15, the same
differential pair is used as a feedback from the output voltage to the input
current. The loop is c10sed by the cascode transistors Q5 and Q6. Thus, the
IV-converter has exactly the reciprocal transfer of the VI-converter. A
common-mode control loop is made by splitting the resistor in two, and
inserting Q7 and Q8. This is necessary to fix the common-mode output
voltage level, independent of the common-mode input current.
t :: ...........................................................................................................]
Error: t. .
(%) i mearltyerrar
t 4~1·····n . . n. n. n. . . . . . n.nnnn . . . . n.
.2 1...........................................................................................................
n~
Mout~
(ILA) i Mout(VI-converter) ii
-40· ............................................................................................................. ;
t ' ,
1 2 r····················································· ....................................................... 1
, ,,
,, ,
oi i
~Vout i
(Voit) i ~ v"lUt(IV-converter) ,
--12' ............, ............ ,............. , ............. ,............. , ............., ............ , ............. ;
-40 -20 O M (IIA) 20 40
ltl ,.. ----.
(RI+R2) and in the VI-converter (RI) were given equal values (50 kQ).
The upper graph shows the relative error between differential input and
output current, before and after a gain correction. We see that the linearity
error in the current duplication wiIl be small enough ( «±0.2%= 1;2 LSB
for 8 bit) when the current range is limited to about [-30IlA, 30IlA].
IV-( onverfer
R R R
The system of Fig.4-17 is completed with the circuitry for the biasing of
ali the different analog blocks, and a digital circuit in Emitter-Coupled
Logic (ECL), as presented in Fig.4-18.
The digital circuit consists of four 8-bit registers and a small serial
interface which makes it possible to program each register separate\y. The
digital outputs of the registers are connected directly, without level-shift,
to the 8-bit digital inputs of the DACs. These digital signals are on
ECL level which is equal to V" for high bits and V,e-VEcL for low bits.
Ve, is the positive supply voltage and VECL is the small differential voltage
used in the ECL gates, approximately 300 to 400 mV As a reference for
the switches in the DACs, a voltage halfway high and low, V,,_1/2 VElL ' is
derived in the digital part and buffered to the analog part of the circuit.
The other bias voltages needed in the analog blocks are generated as
shown in the figure. The bias voltages are chosen in such a way that
ECL bJa'
CMOS
I V« - I~
/2 VU { ~ to V"""I of DAC,
voltage
to
ECL r'T-r-r-r-r-r-r, A J buffer
buffer; ~CrJ::CrJ::~~17-01
I toDACI
clock
serial ~CrJ::CI:J:~A~217-01
I to DAC2
mput
selea{ '"'::lCID:~CI~A~317-01
I to DAC3 V" -1 4V to V"",,3 of DAC,
to V""" of Mulupher;
~CrJ::CI:J::~A~417-01
I to DAC4
~------------------~---------------- --------~,,~--------/
digital (ECL) analog
Fig. 4-18 Additional circuit blocks for the analog signal processor.
The digital inputs of the serial interface are connected to small buffer
circuits which convert digital input signals on CMOS-Ievel [0-5 VoIt] to
signals on ECL-Ievel [4.7 -5Volt]. This makes it easier to program and test
the Integrated Circuit, using standard digital signals.
V OUT R IV
=G 2·_·G
R ·G ·G
123
(4-12)
VIN VI
The resistors R in Fig. 4-17 are all equal, and the current duplicators l to 3
have scale factors one, thus the overall gain G is 2. However, by choosing
different resistor ratios it is possible to obtain a larger gain.
Calibration Procedure
At the voltage inputs Y 1, Y 2' and Y3' reference signals have to be applied
to fix the rotation set-points of the calibration. Using a stable reference
signal which relates to the minimum/maximum of the input voltage range
(sensor signal), the voltage inputs of the calibration circuit can be
connected as shown in Fig.4-19. This results in calibration points for the
input signal at respectively Vm=V}=-Yreferenw Vm=V2=+Yreference'
Vl1l=V3= OYolt. Through equation (4-12) the corresponding calibration
points on the output voltage range can be found.
+~+
-,ell.wJ/__ ~: referell( /
Then, a second input reference (<Pmax) can be provided to the sensor and
DAC2 can be programmed to obtain the desired output voltage for the
second measurement (Vour=+C·Yreference). Because of the system set-up,
it will not be necessary to reprogram DAC 1.
Then, a third calibration step is done to program DAC3, and a fourth step
for DAC4, according to the calibration principle explained in section 3.3.
After calibration, the combination of sensor and circuit has a signal
transfer which resembles the desired transfer, and matches it exactly in the
calibration points.
Simulation
By means of a PSPICE simulation, the circuit is tested for an input voltage
which is swept through the input range. The input range is set to [-250 mV,
+250 mV], Vos to 250 mV, and the successive calibration points are set by
voltages V I= -250 mV, V2= +250 mV, and V 3= O mY.
With R=25kQ, the corresponding signal range for the differential current
is approximately [-20 /lA, +20 /lA] and the full scale is 40/lA. The
function blocks in the calibration circuit are biased accordingly for
operation in c1ass-A mode. Fig.4-20 shows the differential current signals
at the inputs of the DACs as a function of the input voltage VIN, when ali
DACs are set to zero.
-IOu ~
Calibration Errors
The limited resolution in the calibration of the offset leaves a remaining
offset error in the calibration point: in the worst case, it could be plus or
minus a half LSB (Least Significant Bit) of the offset calibration range.
The gain correction at the next calibration step makes use of the error
signal, which is now not exactly zero in the previous calibration point.
This can have a negative effect on the remaining offset error, as illustrated
in Fig.4-21. The transfer will not rotate around the intended point in the
origin but around a different point.
output
mpUf
infended
rotatlOn poinf
When the offset calibration error was calibrated down to 1/2 LSB, and,
next, the gain is increased by 50%, then the offset error will be magnified
to 3f4 LSB. The same effect also applies for the succeeding steps, but with
less severity. In order to limit the effect of error magnification, the
correction ranges of succeeding calibration steps should decrease, or the
resolution of the first steps should be higher.
Fig.4-22 shows the error curve after calibration for a worst-case example.
Four calibration steps were do ne at calibration points corresponding to
-250mV, +250mV, OmV, and -125mV on the input range. The considered
1.0%
i Error (% of full scale)
05%
Fig. 4-22 Error after four calibration steps with 8-bit resolution.
To keep the error within the ±J12 LSB band, the resolution of the DACs
should be adapted to the correction ranges for each calibration step. For
practical reasons the use of the same 8-bit DAC and 8-bit registers for alI
four steps was preferred in the presented realization.
4.5.7 Realization
For the digital part of the circuit, the developed ECL standard cell library
for the DIMES-O l process was used. The layout of the digital circuit has
been generated automaticalIy by the computer layout program L-Edit.
Correspondingly, the presented analog function blocks have been laid out
as analog standard cells, so that they could also be used in the automatic
'Place and Route' routine of the same layout program. The standard celIs
\!le -_
Labvlew
E> _
\!l-""
C · /Il
se/eu
calibration circuit
~-+-...L..J4++--"1II--+-, +
250mV
The pictures c1early show the rotation points in the output range at
-SOOmV, +SOOmV, and OY. The first three calibration points thus have to
be chosen at those output values. The fourth and last calibration point can
be chosen freely, but the best choice for a third-order Iinearity correction is
around plus or minus 2S0mY.
. : : :
.. ...... i.·"· ... ·;.-.. ,, ..·, . .. .. . " .
4.6 Conclusion
Several programmable analog calibration circuits, based on the use of
Digital-to-Analog Converters, have been presented. For uncomplicated
sensor calibrations requiring a limited resolution for the correction factors
(8-10 bit), these circuits can be advantageous. With respect to
conventional sensor trimming techniques, the advantage lies in the
possibility to digitaIly program the calibration and hence facilitate
automation. Furthermore, digitizing of the sensor signal can be avoided,
and thus the analog calibration option offers the possibility to maintain the
bandwidth and dynamie range obtainable with compact analog circuitry.
References
[1] D. Tandeske, Pressure Sensors: selection and application, Marcel
Dekker Inc., New York, 1991.
[2] J. Bryzek, K. Petersen, J.R. Mallon, L. Christel, and F. Pourahmadi,
Silicon Sensors and Microstructures, NovaSensor, Fremont, USA,
1990.
[3] P. Ciureanu and S. Middelhoek, Thin Film Resistive Sensors,
Institute of Physics Publishing, Bristol, 1992.
[4] R. v.d. Plassche, lntegrated Analog-to-Digital and Digital-to-Analog
Converters, Kluwer Academic Publishers, Boston/Dordrechtl
London, 1994.
[5] A.B. Carlson, Communication Systems: an lntroduction to Signals
and Noise in Electrical Communication, McGraw-Hill Book Co.,
Singapore, 1986.
[6] J.H. Huijsing, F.R. Riedijk, and G. van der Horn, "Deve\opments in
integrated smart sensors", Sensors and Actuators A, VoI. 43, 1994,
pp.276-288.
[7] G. v.d. Horn and J.H. Huijsing, "Integrated smart sensor
calibration", J. lntegrated Analog Circuits and Signal Processing,
VoI. 14, No.3, November 1997 (to be published).
[8] G. v.d. Horn and J.H. Huijsing, "Programmable analog signal
processor for polynomial calibration", Proceedings ESSClRC' 96 ,
Neuchate\, Switzerland, 1996, ppAOO-403.
[9] B. Gilbert, "A precision four-quadrant multiplier with sub-
nanosecond response", lEEE Journal of Solid-State Circuits,
VoI. SC-3, 1968, pp.365-373.
[IO] C. Toumazou, F.J. Lidgey, and D.G. Haigh, edits., Analogue lC
design: the current-mode approach, Peter Peregrinus Ltd., London,
1990.
5.1 Introduction
In section 4.4 the use of pulse modulation techniques to control the signal
transfer of a smart sensor was already suggested. The pulsestream or
bitstream modulation can be combined nicely with sigma-delta bitstream
techniques. A digital sigma-delta (noi se shaper) may be used to generate
programmable pulsestreams or bitstreams which modulate the analog
signa\, and a sigma-delta AD-converter is used to convert the modulated
analog sensor signal into a digital bitstream.
Integrator Quantizer+Gate
Output
bttstream
Reference
(5-1 )
Decimation l Down
Reference : Sampling
I
Signal Domains: analog I 1-bit digital I N-bit digital
Freguencies: baseband ~ (over)sample rate I Nyquist rate
(5-2)
quanliUllion
noLe
,,1,
:;'\.
bCL'eoolld \ -2-
LSB2 Nyquist-rate sampling
frcqucncy
quanti7A1lion
noise
LSB2 Oversampling
baJebcJ/I~ TIOsR ;-!ff
?
\
j,= OSR-!Nyquisl
Fig. 5-3 Effect of oversampling on the quantization noise in the
baseband.
When sampling at the Nyquist rate, ali the quantization noise falls in the
baseband. However, when oversampling with a certain ratio OSR, the
quantization error is spread over a much larger bandwidth [2,6,7,8]. The
part outside the baseband can be removed by a filter and does not affect the
attainable signal-to-noise ratio. The baseband noise power is thus reduced
by a factor equal to the OSR. Accordingly, the signal-to-noise ratio is
improved with 3dB for each doubling of the sampIe frequency . The
improvement is given by:
Fa dB = -20IogJOSR (5-3)
(5-4)
Input Output
---t~
X(z) Y(z)
The quantizer is modeled by the noise source N(z) and the gate by a unit
delay Z-I. As we will see, the transfer of the integrator is essential for the
noise shape. It is given by:
H (z) (5-5)
1- Z-I
Using the figure, the transfer from the signal input X(z) and the noise input
N(z) to the quantized output Y(z) can easily be found, and expressed as:
(5-7)
For sufficient1y large oversampling ratios, this can be worked out, using a
Taylor expansion for sin(1fIoSR). Expressed as an improvement factor for
the signal-to-noise ratio in dB, it is given by:
FI, dB = -20log J3 ( 1t
OSR) (5-9)
Quantization
Noise N(z)
Integrator2
Input Output
--+{,
X(z) Y(z)
Quantizer
2nf 4nf
6 - 8cos- + 2cos- (5-10)
f~ f~
By integration of the equation (5- 10) over the baseband, we tind the noise
reduction factor, again with respect to the uniform case, expres sed as a
function of the oversampling ratio [2]:
FZ,dB n
= -20log ",5~ (OSR)2 (5-12)
1 second-order /
---------~ 1,",·"",
................ . ......... ... .. .l. . . ........ . .... .. . .. ................ ........ .. . ... .......... ...... .
\ uniform
\
ba~eband noise \ fh
\ \
& - - - - - - - \ .- 0.5!,
0.25 1.00 400 16.00
(normalized)/reqllency flfh •
The above described method can be applied for a generalized n-bit noise
shaper (sigma-delta) of order L, to tind a signal-to-(quantization)noise
ratio that can be estimated by [3] :
S
N q/jf2 O
n
- = q s 2 /2j2 . F . F = 2n 31t L + - . (OSR)L
L 2
-
1t
+~ J ( 1) (5-13)
s
1
/ ba cbnnd . ignal
-20
-60
-BO
-1
1000
O
1/
1
ba.<ebnnd signnl
-20
ii;'
~ -40 1,
~
~
E
-60 ,1
<:S
o:
II
a i!
-BO .(
~ !
S
:.c:;
,.. Ihcorclical . hape
-100
010 100 10.00 10000
Ib o.sl.
(normalized) frequency f/fh •
Fig. 5-8 Frequency spectrum of a second-order sigma-delta
bitstream output, for OSR= 100.
; • L .; signals:
_~~Ilstream
~
I
I I window
I function , , I
I __ __
I I
I welghted
I I bitstream
I I
-•------------r
liN-bit
output
Ilme_
10
1 08
04
02
O~{2-
5------~--~--1~OrO-------~--~~~
4~OO~--'~~~~~~1600
If the order of the decimation filter is one higher than the order of the noise
shaper, it provides enough digital resolution for the obtainable signal-
to-noise ratio. The spectrum of the digital output signal of a first-order
sigma-delta converter with a sine-wave input signal, after decimation with
a triangular window function is shown in Fig. 5-11. The filter shape, also
shown in the figure, c1early suppresses the HF quantization noi se. The
peaks appearing in the spectrum are the higher harmonics of the
square-wave digital output signal representing the sampled sine-wave.
oo 10 00
J One may recognJze that when a rectangular wmdow functlOn IS used m a movmg-
average filler (the ave rage is computed every c10ck period), thls corresponds 10 a
Iriangular-shaped we lghting funcllon for a wmdow thal IS IWlce as large.
10
t 0.5
~
~
:::s
o
~ 00-
.~
"1:::l
"ţ:s
~
.~ -O 5
~
::::
~
::
-1.0
-1 O -O 5 0.0 05 1.0
t
....
e.... 000
~
-001
-0.02
-1.0 -O 5 0.0 0.5 1.0
normalized inpUl signal (li,l'ref) ~
In most parts of the input range the error is quite small, in accordance with
expectations based on equation (5-13) (s/N::=2000). However, for input
signals just around basic fractions of the reference, such as -0.5, -0.33, O,
0.33, and 0.5, the error can get much larger. Around zero the error is
approximately as large as 1/0SR, which is due to long limit cycIes
occurring for small non-zero signals. These result in very low frequency
components in the bitstream output, which can not be filtered out by the
decimation filter. The error must be reduced sufficiently by choosing a
large oversampling ratio.
+
Clod -....1..----1
Because the N-bit full adder outputs a carry signal each time the digital
output exceeds the maximum value (2 N _I), it thus functions as a digital
comparator with a built-in reference level. The full adder continues its
count at a shifted output value as it loses the bits above the most significant
bit (MSB). Hence the subtraction of a reference, needed in a sigma-delta
converter, is also inherently fulfilled in the digital full adder. The carry
signal, which corresponds to a comparator output, is used as the bitstream
output signal, proportional to the programmed N-bit input signal. Matters
are c1arified in Fig.5-14, by showing the signals of a simple 4-bit
implementation of the bitstream generator.
One may also notice the difference in the bitstream signal with a pulse-
density or pulse-width modulated signal [24]. In fact, the configuration
bitstream
output
I I I I
r,
16 +---r+-I---.. . . . . ----r--r----,-+-+----'--'---T"""I- maximum
12
I integration
I value
4
:>---r--1Ii ou I pu I
bil.l'lreWI1
Imagine, for example, that the input current Itn is being switched to the
negative side just as many times as to the positive side, the average
contribution will then be zero. In fact, the analog input current is simply
modulated by the programmable bitstream signal. After averaging or
low-pass filtering by a decimation filter, the sigma-delta output will be
proportional to the multiplication of the current ratio Itdlref and the input
value of the generator, indicated as gain in the figure.
The average of the generated bitstream, and thus the gain, can be
programmed with an accuracy that is determined by the resolution of the
bitstream generator. The resolution of this fully digital circuit can be made
very high.
In the configuration of Fig. 5-15, the gain may be controlled almost from
-1 to + 1. Such a large correction range may not be desired. Fig.5-16
presents an alternative configuration in which a down-scaled copy of the
input current is being modulated and added at the integrator inputs.
Provided that the input signal can be duplicated and scaled by a factor a
(a< 1), a gain ranging from l-a to 1+a is now possible. The next figure,
Fig. 5-17, shows the transfer of the complete sigma-delta converter (with
sinc 2 decimation) for different values of the gain. The resolution of the
bitstream was 6-bit, <X was 0.25, and the window size of the decimation
l in >..,..~ OUlPUI
+L---hr---h-~"/"--"""'T-I biwream
1.0..,-----;------:-----:------,--..,..",...,..-r--::r- - ,
05
00
-o 5 --/---------
-10;--~~~LJ-----,------r_--~----~._--_1
!,
-15 -10 -0 .5 00 05 10 15
filter was 128. For this test case, the digital 2's complement numbers O,
plus and minus 13/32 , and 26/32 were programmed in the bitstream
generator, corresponding to gain values of approximately 0.8, 0.9, 1.0, 1.1,
and 1.2.
The dotted lines in the next picture are the frequency components of the
digitally generated bitstream used for the gain correction. Because of the
fixed (DC), quantized (digital) input, and the first-order generator, there are
only a few discrete spectrum components. The DC-component, not visible
because of the logarithmic frequency axis, represents the average
bitstream value corresponding to the programmed digital input. The
spectrum is shaped in the same way as that of a first-order sigma-delta
converter.
The sine-wave input signal that is being modulated by the bitstream results
in sideband signals next to each bitstream component, as indicated in the
same figure with solid Iines. Also, at the signal frequency, a component
results which represents the gain correction. Because the amplitude of
these sideband components is proportional to that of the modulating
frequency (of the bitstream), also the modulated correction signal has a
shaped noise spectrum.
The effect of the modulation is thus twofold. On one side the performance
of the AD-converter is affected in a negative way: an extra noise source is
t / ba.~eband signal
-80
0.20 100 5.00 2500 100.00
-
o
1
- gain com:clion .1
gain bit.lrcam componcnls ': . "
·20
sidcband signals ~ : ,! ~ II! i j I
~ :' ~ : ~
·40-
l i' "Ii
~I
-60
li: il
1' '1
I
"
-80 il
0.20 100 5.00 2500 10000
o
t 1/ rcduccd baseband signal
·20 !
-40
!
1,
-60-
-80-
j
0.20 100
b (Ilormalized) !reqllellcy !!fh 0.5 ,
..
Fig. 5-18 Spectra of, respectively, the unmodulated bitstream
output, the correction signal, and the modulated output.
>~-111 OII/PUI
biHlre/ll1/
The effect on the transfer is shown in Fig.5-20, using the same conditions
as for the gain correction: DSR=128, <1=0.25 , and a 6-bit bitstream
generator programmed with the digital numbers 0, plus and minus 13/:n ,
26
an d /32'
/tjL ~ ____._ .
1.0-r-----;----- - - - - ; - - - - - - - - - r - : -.,.,.-::,...,...----,
f
,,' / 1
I i~, /
0.5 ----.-----ţ _________ ~
0.0- · - __ ~L _. _ _.__.-+.- - -
/; ~
-0.5
//
,d~//~:,~ : i
.. -
1/'/ :
-1.0+---/c.....<':....r/_· r.. . J,= ---.-___1_ _ _ _• _----r----/
-1.5 -1.0 -0.5 0 .0 0.5 1.0 1.5
tlormaLized input signal ( / itl/ ref)
The input current should be deducted from the sensor signal, the
temperature current can be obtained by use of a PTAT source Of another
temperature sensor.
OUIPUI
bilSlream
('/ock
diJ:ilul
biWrellm
J:enerulor
diJ:illll
biwrelll1l
xel!eralOr
oJj.~el
dixillli
biwream
Te
J:eneralor
. 2l reI
I The author believes there stilllies a research field here to be explored, but already
mitiated by [28 , ... ,34)
clod
I'm~rallll/l.ill~ illf'1I1
First, the integrator is loaded with a much larger input current than usual,
because at some point in time ali the currents may get summed. To avoid
clipping of the integrator output, either the integration capacitors must be
increased, or the input currents must be scaled down. The first requires a
larger bias current of the integrator output stage and demands a larger
dynamic range for the comparator input. The latter affects the dynamic
range requirements at the integrator input. In both cases more bias current
is required to maintain the (analog) signal-to-noise ratio.
1
/ ba. ebnnd signal
~
~
.~
~
i5
§
~
!::
:.c;
00
(normalized)jrequency f/fh
0.02-
1 0.01-
~
~
1:: ~
000-
<Il
-001-
-002-
-1.0 -o 5 00 0.5 1.0
tlormaliloed illpUi sigllal ('iri' rei ..
Fig. 5-24 Errar versus input-level for a first-order curve sigma-
delta converter with modulated input signals. using a
second-order decimat ion with a window size of 128.
The positive effect on the error for De input signals is demonstrated by the
error function shown in Fig. 5-24. It was obtained by simulating a
sigma-delta modulator with a small offset and a small gain calibration, and
by using a second-order decimation with a window size of 128. When
comparing Fig.5-24 with the original error curve in Fig.5-12, we see that
the error has been smoothened, but that the average has gone up slightly.
Vcc
05
r~---+
R5
32K
+--+---+--...... out+
out-
In- .....--""'1I---+-,r-----+----' +---+--f:: 011
+----+---""'11-----«: 012
Vee
~-~-+--~----~-~--+--+-~--
millivolts under the supply. This a\1ows to drive the current switches, that
are connected to the integrator input, by digital voltage signals on
ECL level (see section 4.5.5) without saturating them.
The second CM-control does not rea\1y fix the cM-Ievel of the output
voltage, but regulates the maximum of both voltages. The degenerated
differential pair, Q9 and Ql O, detects which of the two output voltages is
higher, and the common node (with R9 and RIO connected) fo\1ows that
voltage. A feedback through the cascode transistors Q7 and Q8 combined
with emitter resistors R7 and R8 prevents the output voltage from rising
too far. The cM-control 'gent1y' clips the voltage at the rising output node
just below the supply level, while the voltage the other output can go
down. The asymmetry of this control with respect to the differential signal,
is compensated by the differential feedback configuration in which the
amplifier is used. The scope plot shown in Fig.5-26 demonstrates the
operation of the control loop. While the individual output voltages are
distorted, the differential output voltage amplifies the input correct1y.
i-
.
T
r
·.·· ·· ·· ·· --.,. · ··· ···· f· ····· ···, ·····
The presented amplifier design has been completed with the bias circuitry
for the current sources and was implemented in a very compact standard
layout ceH for the analog library. It is shown in Fig.5-28.
The input pair is biased with an additional current source II to avoid that it
is switched off completely. The emitter followers, Q13 and Q14, buffer the
c10ck signal onto the c10ck switches, so that the digital c10ck signal can
also be provided on ECL level. Saturation of the transistors will not occur,
provided that the input signal is provided at a high CM level, as discussed
at the end of the previous section.
Vcc
Rl R2 RS R6
l2K l2K l2K l2K
out-
+--t-_out+
clk+
clk- --t-"""""J...
Also, the comparator has been completed with the transistors for the
current sources, and laid out in a compact standard cell . It was added to the
analog cell Iibrary, which was also used for the design in chapter 4.
Fig.5-28 gives an impression of the layout cells of the two function blocks
discussed here .
Fig. 5-28 Standard layout cells ofthe differential amplifier and the
clocked comparator.
clod
t :\ f\ !\ {\J\ f\ !\ f\f\ :
(V) O~\j~~YVV~
·1 j dtfterential In/elira /or ou/put i
·2! ............. _............. -............................................ _.................................... j
O 20 40 60 80 100 120 140
time !l.iS) ..
The next figure, Fig.5-30, shows the simulation result for the same
sigma-delta converter, but then with a modulated input current. The
modulating signal is shown on top. The effect on the slopes of the
integrator signal is clear: there are now 4 possible input conditions. The
maximum voltage-swing also increases.
The computation effort for the pspice simulations is too much to simulate
enough clock periods for determination of the resolution on the basis of
the bitstream output signa!.
Using the laid-out analog library cells presented in the previous sections,
completed with layout cells for a PTAT bias source, for the current switches
clock
Nain-
modulatinx
bllstream
v" =3 [ ---~;uipui -bit:~i;-eaiil- ----------------------------------------------------------------------------------
!
t o;
(V)
-1 j
-21------------- ______________________________ . ______________ . ____________________________ .______________ . _____ oi
o 20 40 60 80 100 120 140
time HH) ..
and for the capacitors. the layout for different sigma-delta configurations
could be generated automatically. It can be combined with automatically
generated digital designs for the bitstream generators. as will be shown in
section 5.5. Fig.5-31 shows one of the sigma-delta converters on a chip
photograph.
BUS
111111'111 VlIItU' (IIIbl' . eli!)
received bitstream
serial
loud outp"1
/6·bil /6·bil
Fu 11 shifl
Addcr regislcr
11111(/
The bus interface is connected in such a way that any bitstream put on the
bus by a sensor wiIl be decimated by the filter. The bus master must first
address a sensor which outputs a bitstream, then, after at least 512 c10ck
periods, it can address the filter to read out the decimated value.
A digital standard cell library was adapted to the DiMOS design rules, so
that the layout could be generated by the place & route routine of the
The chip can be used to connect any sigma-delta output to the integrated
smart sensor bus, for easy read-out and testing on a PC-controlled
measurement set-up. It has been tested, using the integrated smart sensor
(IS 2 ) bus and several smart temperature sensors, as presented in the next
section.
oulPUI biwreall/
clod
received
byle
hil.H refll/l
OUII'UI
~ ~
. 4-bit
bitstream
(!fJ"Sel
adjuJI
.;;0 Sigma-delta convener
2 '"
generator
Xaill
.::: 4-bit adjuJI
;: ·5 bitstrcam
"" generator
<.r.
The analog circuit for the temperature sensor is constructed in such a way
that a temperature signal lr and a reference signal Iret are generated, as
well as copies of both currents which are scaled down by a factor of 16. It
is aimed to obtain a ratiometric signal IylIret which varies from O to l for
the temperature range of -30°C to +70°C. The ratiometric conversion is
obtained by the sigma-delta converter. Relatively large integration
capacitors 60pF are used, because the maximum sigma-delta clock
frequency that currently can be obtained on the smart sensor bus with a PC
bus master is low, about 70kHz.
The signal 1ret/l6 is used to correct the offset error in the transfer. It can be
added or subtracted from the normal input signal with a 4-bit precision,
using the first bitstream generator. In the same way, the signal Iyl16 is
The two 4-bit digital values for the offset and gain can be programmed
through the bus interface. At one of the two sensor addresses the sensor
can receive this calibration byte programmed by the bus master. At the
other bus address of the sensor, the bus interface sends out the bitstream of
the sigma-delta converter which can be received by the bus master.
Through the use of the smart sensor bus, several sensors can be measured
at the same time, including a reference temperature sensor for calibration
purposes. In addition, the decimation filter presented in section 5.4.4 can
be connected to the bus for decimation of the bitstream output of each
addressed temperature sensor. An impression of the measurement set -up is
given in Fig.5-36. Multiple temperature sensors can be connected to the
bus and inserted together in a temperature chamber (oven) for collective
calibration.
decimatÎO" fllter
IS2 refere"ce se"sor
Sus
Master
se"sor1
Clearly, the curves can be calibrated onto the desired transfer curve. After
calibration, the error remains almost within the ±0.5% range,
corresponding to an 8-bit resolution. The calibration step size (LSB) was
0.8%, however a noise error was present as well. The parabolic error
curve, remaining after offset and gain calibration, can be recognized with
difficulty.
The table below summarizes the specifications of the chip. Because of the
ECL realization, the digital part consumes a considerable amount of
supply current which explains the self-heating of about 0.5 ce.
t D1Rltai Output
08
desired transfer
06
-20 o
t 20
Ermr (%)
40 60
-
Temperature (OC)
80
.4
------------- - _ _. _
-40 -20 o 20
-
Temperature (OC)
80
t DiRital Output
08
06
-20 o
t 20
Ermr(%)
40 60
-
Temperature (0C)
80
-2
The PTAT, V BE, and reference signals are derived from a temperature
sensor signal as presented in section 2.3.1.
In/ (~)
I
31
S'lvbe'lptat
Iret
Q1
,
Ij
clock
bit.ltream
output
,...--'----. Jiain
IO-bit adjust
bitstream
generator oJJ.let
lO-bit adjuJt
bitstream t--I~-+---\
Sigma-delta conve l1er
generator linearity
8-bit adjllsi
bitstream t---~-t---+--\
generator
3.0 r-r······ . ·......·. ·........·. ·. ·. · ·....· ·....·......· ....·. ·. ····....................... ·.... ···1
j Current RatlOs !
: :
2.0: 2/ret :
1 ~ ~
1.01 /
' ~
.! 7;;f
0.01.. ............................................................................................................. !
-50 O 50 100 150
Temperature (ac) _
Fig.5-40 shows how the parabolic linearity error, remaining after offset
and gain calibration, can be reduced to a much smaller third-order linearity
error, using the addition of a quadratic temperature signaL
05
03
OI
1-
-25 -10 20 35 50 80 95 110 125
-O 1
-O 3
-O 5
T (Celclus)
5.6 Conclusion
The construction of the sigma-delta Analog-to-Digital converter allows
modification of the transfer by summing several analog input signals
which are modulated by digitally generated bitstream signals. The
sigma-delta (noise-shape) techniques can also be applied in the digital
bitstream generation. which makes it possible to calibrate very accurately.
However, the suggested configurations only allow for a low order of
calibration.
References
[1] J.c. Candy and G.c. Temes, Oversampled Delta-Sigma Data
Converters, IEEE Press, New York, 1992.
[2] R v.d. Plassche, Integrated Analog-to-Digital and Digital-to-Analog
Converters, Kluwer Academic Publishers, Boston/Dordrecht/
London, 1994.
[3] B.E. Boser, Design and implementation of oversampled analog-to-
digital converters, PhD Thesis, Stanford University, 1989.
[4] F.R Riedijk, Integrated Smart Sensors with Digital Bus Interface,
PhD Thesis, Delft University Press, Delft, 1993.
[5] W. Bennet, "Spectra of quantized signals", BeII Syst. Tech. J.,
VoI.BSTJ-27, July 1948, pp.446-472.
[6] J.c. Candy and 0.1. Benjamin, "The structure of quantization noise
from sigma-delta modulation", IEEE Trans. Communication, Vo1.29,
No.9, September 1981, pp.1316-1323.
[7] R.M. Gray, "Oversampled sigma-delta modulation", IEEE Trans.
Communication, Vol.35, 1987, pp.48 1-489 .
[8] R.M. Gray, "Quantization noise spectra", IEEE Transactions on
Information Theory, Vo1.36, No.6, 1990, pp.1220-1244.
[9] J.c. Candy, "A use of double integration in sigma-delta modulators",
IEEE Trans. Communication, VoI. COM-33, March 1985,
pp.249-258.
[10] RW. Adams, "Design and implementation of an audio 18-bit
Analog-to-Digital converter using oversampling techniques",
J. Audio Eng. Soc., Vo1.34, No.3, March 1986, pp.153-166.
[Il] J. Robert, G.C. Temes, V. Valencic, R. Dessoulavy, and P. Deval, "A
16-bit low-voltage CMOS AlD converter, IEEE Journal of
Solid-State Circuits, VoI. SC-22, April1987, pp.157-163.
[12] J. Robert and P. Deval, "A second-order high-resolution incremental
AlD converter with offset and charge-injection compensation, IEEE
Journal of Solid-State Circuits, Vo1.23, No.3, June1988, pp.736-741.
[13] Y. Matsuya K. Uchimura, A. Iwata, T. Kobayashi, M. Ishikawa, and
T. Yoshitome, "A 16-bit oversampling A-to-D conversion
6.1 Introduction
It is not the aim of this chapter to investigate or discuss aII the possible
digital forms of sensor calibration techniques, but rather to demonstrate
the feasibility of the progressive polynomial calibration method proposed
in chapter 3.
It was already cIear from the cascaded implementation shown in Fig. 3-16
on page 82, that the procedure has a repetitive character. The same
algorithm is repeated for each calibration step, using the previous output
hn_dx) and the polynomial product IT {hlx)-Yd as inputs. While in analog
initial y = f(x) --
step 1 fix) +a l al = YI - fi x l )
h/(x)
{Y2 - h l (x 2)}
step 2 a2 =
hl(x) + a 2 · {hl(x) - YI}
h2(x) {h l (x 2) - YI}
... ...
n-I Yn - hn_I(xn)
stepn
hn_I(x) + an' IT {h,(x)-y,} a n = n-I
h,,(x)
,= 1 TI
{h,(xn)-y,}
,= 1
hardware the multiplication and summing actions can be realized very
compactly, in digital hardware such arithmetic functions require complex
circuitry. Therefore, it makes more sense to include the algorithm in a loop
as proposed in Fig.6-1, and so reduce the number of multipliers and
adders. The highlighted algorithm is the same as used in Fig.3-16, besides
the absence ofYret. The signals indicated in Fig.6-1 are for the n-th and last
calibration step, supposing the calibration points YI to Yn are known, and
the coefficients al to an have already been caIculated and stored.
The output and correction term of a calibration step are stored in 'sample
& hold' registers, so that they can be used as inputs in the next calibration
step. For each calibration step i the values of Y,_1 and the required
coefficient ai are multiplexed from a memory, and the loop is executed
once. The first calibration step, for offset, may be simplified and executed
first, outside the loop as shown in the figure. At the second calibration step
the inputs are connected in such a way that the first multiplier outputs the
signal (hdx)-YI) which is used for the gain correction. At succeeding
H-.L....t-. hll(x)
n
11 - 1
, =1
{",(x) - Y,}
Memory
calibration steps the inputs are switched to the previous output values
stored in the SH registers , and so the product term for the polynomial
corrections is built-up.
At the n-th calibration step, the reference signal XII is applied by the
calibration controller, corresponding to the desired output Yn- The input
f(x n ) is sampled, and proces sed through n-I correction steps. The n-th step
is then executed with an=O, and h n. 1(xn) is obtained at the output. The
output signal is subtracted from the desired output Yn' and the result
{yn-hn-I(xn)} is used to obtain the correct value for al/" This can be
achieved in two ways . As shown in the figure , the signal {Yn-hn-I (x n)} can
be divided by the value of the available correction term n {hlx)-Yl}, in
; =I
I
YII
accordance with the formula's in Table 6-1 . The other way is to compute
aII algorithmically. As in a Successive-Approximation converter, the bits of
aII are determined, and programmed one by one from MSB to LSB, based on
the polarity of the signal {Y1l-h ll _1(XII)}. Bit by bit that signal is reduced to
zero, the output is equalized to the desired value, and the resulting value
for aII is stored in memory.
memory
Smart Sensor Inteiface Circuit
1 For this purpose the ffilcrocontroller needs to be equipped with an IS 2 bus interface,
which can be realized either in hardware or in software. These developments have
not yet been completed.
Z
-l m 1
- n
M
2:1l T=T 1 T=TM
::o
~
tI]
o YI - hl.M-1(PI' T M)
CIl 1 a lM = M-j
s:;J> al! = Y1 - f(pl' TI)
P=PI TI (TM-Tm )
q m=l
CIl
tI] ------+----
Z ~
CI'l
o::o Y2 - h IM (P2' TI) Y2 - h 2,M-I(P2' T M)
CI'l
2 a 21 Q2M = M-I
P=P2 {h IM (P2' T1)-YI} {h IM (P2,TM)-YI}' TI (TM-Tm )
tl
~
c., m=l
0;' ~
;:: 0'1
i::l 1...1
;:: ~
i::l... --" 'J1
o
-------r--- ~
~
c:;: A:-- ~
~ YN-hN-I,~PN' TI) YN- hN,M-I(PN' T M) ~
.....
(5' N aNI = N-I a NM = N-I M-I 3"
;:::
P=PN TI {hnM(P n, TI) -Y n } TI {hnM(P n, TM ) -Y n }' TI (TM-Tm) '"O
ii'
n =1 n =1 m=l 3ro
=
S"
00 ....
o"
=
Calibration using Digital Signal Processing
The arrows in Table 6-2 and Table 6-3 indicate the direction of execution .
Along the rows of the tables the temperature dependency is calibrated,
whereas the columns represent the calibration steps on the pressure axes. It
is important that at each pressure calibration step the sensor curve is first
corrected for temperature before proceeding to the next pressure
calibration steps. Otherwise the temperature dependency gets multiplied
by the pressure corrections, and gets harder to rectify. The example may
c1arifies this . It is assumed that generally the sensor signal depends more
on pressure than on temperature.
Output
(normalized)
....
'
'
.' .
Temperature
(normalized) Pressure
-, -, (normalized)
Output
(normalized)
'. '
"
:.
1
Temperature O. 5 ~
(normalized) Pressure
(normalized)
·1 ·1
It is now possible to rotate the response surface around that axis, using
{h(p,T)-YI} for the gain correction . Because the error at P=PI is already
made very small , it will not get affected much by the gain correction . At
the next pressure calibration point P2 the gain correction is determined.
And again the temperature-dependency is reduced first by calibration at
temperature points TI' T 2, T 3, before proceeding to the next calibration
step.
After 5x3 correction steps the transfer curve seems practically identical to
the desired transfer curve, see Fig. 6-6.
Out put
(normalized)
..
1
Temperature O.5 ~
(normalized) Pressure
(normalized)
·1 ·1
Error
Temperature
(normalized) Pressure
(normalized)
·1 ·1
. ~ '.: ..
Error
.. ' . ...
~
. .'
" ,
. ' ",
"
" ,
Temperature
(normalized) Pressure
(normalized)
·1 ·1
Error
t
-3
X 10
. . ... . .•...
.. .
.- ...
•..
' .
: .•.... : ,- ..~
Temperature
(normalized) Pressure
(normalized)
·1 ·1
The reduction of the error has been examined for several different sensor
transfers, and different numbers of calibration steps.
Calibration coefficients
The calculation of the calibration coefficients suggested in Table 6-3,
implies a certain order of the calibration measurements. The calibration
coefficients in the table are calculated row by row. In case of a pressure
sensor the order is disadvantageous, namely at each pressure calibration
point Pn' the output must be measured for different temperatures TI to TM '
This means that a lot of temperature sweeps, NxM, would have to be
made. Because of the large settling time of a temperature chamber (oven),
in which pressure sensors are calibrated, the calibration would take a long
time and become expensive. For most pressure sensors, the test pressures
for the calibration can be generated much quicker. Hence it is preferred to
minimize the number of temperature steps, and perform multiple pressure
measurements at each temperature.
m=1
00'
'"'"
;:,:
>:>
;:,: .. , ... ...
>:>..
II II
~ ~I
&: yN-h N _ I , I(PN' TI) I YN- hN,M-I(PN' T M)
~ N aNI = N-I a NM = N-I M-I
~. ...
;:,: P=PN IT { \ I (Pn' TI) -Yn} IT {h nM (p n' T)
M - Yn } . IT (TM - T m
)
n= I n=I m=1
6.3 Software implementation
The program consists of two parts. First the calibration part, to calculate
the calibration coefficients when applying reference signals to the sensors.
At each calibration step the output signals are measured, and proces sed
according to the equations in Table 6-2, to compute the calibration
coefficients as described in Table 6-4. Second the measurement or
correction part, to calculate the corrected values of the pressure output,
according to equations in Table 6-2, using the sensor outputs and the
values of calibration coefficients already calculated during the calibration
cyc1e. From the implementations of the one-dimensional polynomial
calibration it was already c1ear that both the calibration and the correction
can be implemented algorithmicaIly. In programming this means that the
calculations are based on the repetitive use of the same procedure. For the
two dimensional calibration a nested loop is needed. Altogether it results
in a very compact program. The complete calibration program, together
with the calibration coefficients and reference data for a 5x5 calibration,
required only 6.6 kilobytes memory of the microcontroIler.
The microcontroller program was operated and tested, using the fictive
sensor data already used in the simulations. As expected, the actual results
from the microcontroller program were found to coincide with the
simulation results. With the microcontroller type already mentioned, and
32-bit precision ftoating point arithmetic, it was found that the time
required to calculate one corrected value during the measurement cycle
was approximately 30 ms based on 5x5 calibration steps. This is fast
enough for sensors with a signal bandwidth lower than 15 Hz. Of course
speed and accuracy can be exchanged. To increase speed one could for
example reduce calibration accuracy to 5x3 or 3x3 steps, chose a lower
arithmetical resolution, or chose a faster 16-bit (more expensive)
microcontroller. Maximum speed can then be in the order of 100-1000
samples per second.
en r ca e cos.. (6)
For the six test cases, different pressure and temperature dependencies
have been combined, using polynomial, root, exponential, and logarithmic
functions. The large bars represent the initial linearity error, since with a
2x2 calibration only the linear errors are corrected. The figure shows how
the linearity error reduces when increasing the number of calibration
measurements to respectively 3x3, 5x3, 5x5, and 7x5. One has to keep in
mind that the bars indicate the maxima of the error surfaces
6.4 Conclusion
In the consideration of digital implementations of calibration techniques
we concentrated on the proposed polynomial calibration method. The
step-by-step correction of the sensor transfer curve can be set up in an
algorithmic way. For each calibration step the same calculation procedure
is then used. This applies for the correction of the sensor transfer function
as well as for the computation of the calibration coefficients. It allows a
compact realization in hardware in the form of an algorithmic loop
implementation. When implemented in software, the required calibration
program can also be made very compact. The latter option can be
successfully applied in future microcontroller-based smart sensors. With
respect to the implementations of the previous two chapters, it offers the
advantage of an advanced two-dimensional calibration, at the costs of
(hybrid) integration of a microcontroller, and some sacrifice in sensor
signal bandwidth.
References
[1] J.E. Brignell, "Software techniques for sensor compensation",
Sensors and Actuators A, VoI.25-27, 1991, pp.29-35.
[2] D. Patranabis and D. Gosh, "A novel software-based transducer
linearizer", lEEE Trans. lnstrumentation and Measurement, Vo1.36,
No.6, December 1989.
[3] S.B. Crary, w.G. Baer, J.c. Cowles, and K.D. Wise, "Digital
compensation of high performance silicon pressure transducers",
Sensors and Actuators A, VoI.21-23, 1990, pp.70-72.
[4] S. Huang, R.Z. Morawski, and A. Barwicz, "Static calibration based
on superposition of splines in one variable", Proceedings lMTC'96,
June 1996, pp.49-53.
[5] w.T. Bolk, "A general digital linearising method for transducers",
Journal of Physics, VoI. E: Scientific Instrumentation, 1985,
pp.61-64.
[6] PN. Mahana and F.N. Trofimenkoff, "Transducer output signal
processing using an eight-bit microcomputer", lEEE Trans.
Instrumentation and Measurement, Vol.IM-35, No.2, June 1986,
pp.182-186.
[7] S.R. Ashley, M. Muggeridge, and 1. Lucas, "An inexpensive digital
linearizer for nonlinear transducers", Journal of Physics E:
Sci. Instrum., Vol.l1, 1978, pp.576-580.
[8] C. Berthoud, M. Ansorge, and F. Pellandini, "Effective static
response compensation suitable for low-power ASIC
implementation with an application to pressure sensors",
Proceedings lMTC'96, June 1996, pp.1168-1173.
[9] K.F. Lyahou, G. v.d. Horn, and J.H. Huijsing, "A non-iterative
polynomial 2-dimensional calibration method implemented in a
microcontroller", Proceedings IMTC'96, June 1996, pp.62-67.
[10] G. v.d. Horn, K.F. Lyahou, and J.H. Huijsing, "Calibration and
linearization method for microcontroller-based sensor systems",
Journal on Measurement + Control, Vo1.29, No.9, November 1996.
[11] G. v.d. Horn and J.H. Huijsing, "Integrated smart sensor
calibration", J. lntegrated Analog Circuits and Signal Processing,
Vo1.14, No.3, November 1997.
Smart Sensors
Electronic sensors are applied in industrial machines, as welI as in
consumer products, in order to enhance functionality, or to improve
performance and reliability. Currently, the application of sensors requires a
high-Ievel experti se, due to the large diversity in sensors and,
correspondingly, in sensor output formats, and in the required electronic
sensor interfaces. The application of electronic sensors will be greatly
stimulated if the sensors are equipped with smart electronics, which
provide conversion of the sensor signal to a standardized digital output and
bus interface. Using modern silicon IC-technology, such smart sensors can
be produced in high volume and at low cost. This will make them
available for application in more products, and may also lead to new
products. A smart sensor configuration, composed of silicon sensor(s),
analog front-end circuit, one-bit sigma-delta AD-converter, and a serial
bus interface, forms a suitable concept for complete integration.
Calibration
For standardization, a fixed transfer from sensor input to electrical output
is desired for each sensor (type). Due to variations in the production, most
sensors exhibit some unpredictable errors with respect to the desired
transfer. Each sensor needs to be calibrated individualIy to accomplish the
Linearization
Different linearization methods have been examined. GeneralIy, the use of
a single (fulI-range) interpolation function, or a set of (sub-range)
interpolation functions (splines), is the best choice for linearizing the
sensor transfer curve, using a minimum number of measurement data.
ClassicalIy, the sensor transfer curve is first measured completely (alI
calibration points), and then alI the required calibration coefficients are
calculated. The progressive polynomial calibration method is proposed,
which linearizes the sensor transfer curve in a step-by-step manner. At
each step, one calibration measurement is done, and one calibration
coefficient is caIculated and applied immediately. Every succeeding
calibration step is done in such a way that the previous calibration(s)
remain undisturbed. At each step, the calibrated transfer curve progresses
towards the desired transfer curve. In addition to the linearization of a
one-dimensional sensor transfer function, the progressive method is also
worked out for the two-dimensional polynomial calibration of sensors,
showing a cross-sensitivity error.
Implementation
At several places in the signal processing chain of a smart sensor, the
overall transfer function can be modified. TraditionalIy, the sensor transfer
function is adjusted in the analog (physical) signal domain, by means of
trimmable components, or in the digital domain, by using a digital
memory with a look-up table, or by using a data-acquisition computer.
These three options are problematic concerning the desired features for the
calibration function, respectively, programmability, a low number of
calibration points, and integration with the sensor.
In the analog signal path, the sensor transfer function can be altered in a
digitally programmable way, by using Digital-to-Analog (DA) converters.
Calibration of offset, gain, and cross-sensitivity errors can be implemented
in a cJassical approach. These implementations can be modified in
accordance with the progressive calibration method, to eliminate influence
between successive settings (offset, gain, etc.), and to circumvent iteration
of the adjustments. A programmable analog circuit is presented which
implements four steps of the progressive polynomial calibration method.
Programmable analog circuits can be used for sensor calibration with
limited resolution (8-10 bit) and limited correction of higher-order effects
(nonlinearity/cross-sensitivity). As an advantage, a large bandwidth can be
maintained for the (analog) transfer function, as it is not limited by any
digital sampling or processing speed.
A c
actuators ........................ 2 calibration ..................... 5, 7
AD conversion ................ 5, 33 analog implementation . .106
auto-calibration . 13
AD converter ................... 33 batch calibration . . 7
sigma-delta converter . 127 definition . . . . . . 8
analog calibration errors . . . . . . .120
cross-sensiti vity · 99 calibration algorithm ............ 179
full-scale or gain · 98
calibration coefficient ........ 78, 186
IC realization . 121
implementation \06 calibration memory .............. 46
independent . . \03 calibration procedure .... 118, 167, 189
offset . . . . . . · 98
pulse-modulation 104 calibration program ............. 189
temperature coefficients 101 cascode dividers ................ III
analog signal processing .......... 93 charge balance .................. 38
B comparator ..................... 34
implementation . . . . . . . . .. 155
bandgap reference ............... 27
controller ....................... 3
bandgap voltage ................. 23
cross-sensitivity ................. 57
batch calibration ................ 93
curve-fitting .................... 70
bitstream ................... 36, 104
bitstream generator ............. 140 o
bitstream spectrum ............. 151 DA conversion .................. 96
~s~~~~re ................. ~ DA converter
implementation . . . . . . . . . . III
bus interface ..................... 5
multiplying DAC . . . . . . . 97, III
IS2 interface . . . . . . . . . . .. 43
DAC coefficient ................ 103
bus master ..................... 40
data-acquisition .................. 3
bus protocol .................... 40
IS2 protocol . . . . . . . . . ... 42 decimation ................ 136, 138
bus slave ....................... 39 decimation filter ................ 136
implementation . . . . . . . . . . 159
digital calibration
hardware implementation . 174 in-situ calibration ................ 93
one-dimensional . . . . . 174
progressive polynomial . 175 integrator ....................... 34
software implementation 178 implementation . . 153
two-dimensional. . . . . 179 transfer function . . . . . . . . . 131
discrete-time domain ............. 38 interpolation
Lagrange . . . . 71,80
dithering ............. 140,145,150 piece-wise linear .. 63
downsampling . . .......... 128, 136 splines . . . . . . . . 69
downsampling ratio (DSR) ....... 128 interpolation curve ............... 65
drift . . . . . .. . ................... 8 IV converter . . . . . . . . . . . . . .. . .. 114
E L
Emitter-Coupled Logic .......... 116 Lagrange interpolation ........ 71, 80
error compensation .............. 54 laser trimming .. . .............. 94
error minimization ............... 73 limit cycles ... . . . . .. ... . ..... 142
error surface lineanzation .................... 55
two dimensional . 184 curve fitting . . . 70
look-up table . . 60
errors
piece-wise linear 63
cross-sensitivity .52
splines . . 67
distribution. . . .54
drift . . . . . . . .52 linearizatlon methods . . ...... 56,75
error distributlOn .25 look-up table. . . . . . . . . . . . . . . . .. .60
full-scale . .52
gain . . . . . . . . .52 M
hysteresis .52
linear versus non linear .55 Manchester coding . . . . . . .. . .... .41
measurement errors .6,25 microcontroller . . . . . . . . . . . .. . .... 5
nonlinearity . . . . . .52 interface . . . . . . . . . . " . 39
offset. . . . . . . . .52 programs ...... . . 173
sensor characteristic . .53
micromachimng . . . . . . . . . . . .. . .. 23
systematic versus random .53
mismatch effect ................. 31
F multiplier
feedback testing .. . ............. 15 Gilbert multiplier . . ... 101
implementation .. . 108, 165
feedforward testing .............. 15
full adder ...................... 141
Q
signal conditioning ............... 5
signal f10w diagram ............. 106
quantization ................... 129
quantization level ............... 61 signal transfer
correction 45
quantization noise .............. 131 errors . . . 52
T
temperature sensor ... oo.. o. oo.... 22
implementation .. o o ... 160, 165
translinear Circuit ......... o.. o.. 108
trimming . o. o.. ooo.... oooo. o.. o094
two's complement. oo. o.. o. o112,142
u
user interface .. o ..... o..... oo... 3
v
VI con verter o.... o. . . .. o.. o.. o113
w
Wheatstone bndge ..... o.. o... o. o25
window function .. o. oooo.... oo. 136
triangular window o 137
uniform window o .. o .. o . . 136