You are on page 1of 6

1482 IEEE TRANSACTIONS ON INSTRUMENTATION AND MEASUREMENT, VOL. 52, NO.

5, OCTOBER 2003

Designing a Programmable Analog Signal


Conditioning Circuit Without Loss
of Measurement Range
Sebastian Yuri Cavalcanti Catunda, Jean-François Naviner, Gurdip Singh Deep, and Raimundo Carlos Silvério Freire

Abstract—Programmable analog signal conditioning circuits The functions of amplification and dc level shift can be
can be programmed in the field to permit their use in several performed in programmable gain amplifiers [1]–[3], and there
applications with a variety of sensors with different output signal are also some commercial programmable analog or mixed
characteristics. The digital programming of the gain and dc
level shift of a conditioning circuit can affect the measurement integrated circuits available today that can be used for this
resolution and cause a reduction in the range of the measuring purpose [4]–[6]. However, in these works and products, the
system in which it is employed. For a specified maximum accept- programming values are defined empirically without consid-
able loss in the measurement resolution, a procedure for defining ering their effect in the final measurement quality.
and employing the programming values that guarantees the full Due to the inherent nature of discrete programming, not all
measurement range is proposed. The proposed methodology takes
into account practical implementation considerations and can be values for the gain and dc level shift can be obtained over a spe-
employed for designing either discrete or integrated circuits. cific range. Values of the dc level shift different from the ideal
ones might cause the conditioning circuit signal to saturate (at
Index Terms—Analog circuits, gain programming, measurement
system, programmable circuits, signal conditioning. amplifier’s or ADCs output signal limits) leading to a reduction
of the effective measurement range. Also, gain values smaller
than the ideal ones cause the conditioned signal to lie over a
NOMENCLATURE fraction of the specified ADC input range, amounting to a loss
Upper limit values. in the measurement resolution.
Lower limit values. For several practical applications, it is more crucial to en-
Ideal values. sure the full measurement range than to put up with some loss
Signal range or span. in the measurement resolution. The loss in measurement range
Rounding to the nearest smaller integer. cannot be recovered, while the loss in measurement resolution
One, if it is true and zero otherwise. can be compensated by specifying an ADC with higher reso-
lution during the design phase. For a specified admissible loss
I. INTRODUCTION in the measurement resolution, a procedure for defining and
employing the gain and dc level shift programming values is

A PROGRAMMABLE analog signal conditioning circuit


suitable for measurement applications can be pro-
grammed to match the design specifications of a measurement
presently proposed. This procedure guarantees the full measure-
ment range and still yields the smallest size of the set of admis-
sible discrete programming values taking into account the prac-
system and adapt it to be used with a class of sensors with tical implementation constraints.
different output signal characteristics. This circuit must thus The procedures for defining the programming sets for the case
provide functions for signal amplification and dc level shift for of a single-stage signal conditioning circuit are developed in
the cases of single-ended signals (other functions, as filtering, Section III. The procedures for a multistage pipelined case are
and linearization are usually also required). The conditioned developed in Section IV based on the results obtained for the
signal can be converted to a digital form by means of an single-stage case. In Section V, we extend these results for the
analog-to-digital converter (ADC), for which the resolution cases of fully differential signals.
and input signal span are specified a priori.

II. PRELIMINARY DEFINITIONS


Manuscript received May 26, 2002; revised May 12, 2003. This work was
supported in part by the CNPq, in part by Pronex, in part by CAPES-COFECUB, Fig. 1 shows a single-stage conditioning circuit block dia-
and in part by PROCAD. gram. The main role of the signal conditioning circuit is to adjust
S. Y. C. Catunda is with the Universidade Federal do Maranhão, São Luís, the sensor’s output signal span to match the ADC input range.
Brazil (e-mail: catunda@dee.ufma.br).
J.-F. Naviner is with the Ecole Nationale Supérieure des Télécommunica- The sensor’s output signal is first dc level shifted by
tions, Paris, France (e-mail: naviner@enst.fr). and then amplified with a gain . In the absence of an adequate
G. S. Deep and R. C. S. Freire are with the Universidade Federal de signal conditioning, the conditioned signal may exceed the
Campina Grande, Campina Grande, Brazil (e-mail: deep@dee.ufcg.edu.br;
freire@dee.ufcg.edu.br). ADC input range causing saturation at its output. This effect is
Digital Object Identifier 10.1109/TIM.2003.818556 represented by the saturation block in Fig. 1. The ADC input
0018-9456/03$17.00 © 2003 IEEE

Authorized licensed use limited to: Chittagong Univ of Engineering and Tech. Downloaded on June 13, 2009 at 01:30 from IEEE Xplore. Restrictions apply.
CATUNDA et al.: DESIGNING A PROGRAMMABLE ANALOG SIGNAL CONDITIONING CIRCUIT 1483

B. Loss in Measurement Resolution


The measurement resolution is affected by a mismatched pro-
grammed gain, which makes the conditioned signal span to be
different from the ADC input signal span. The loss of resolution
is defined as and it can be expressed (in number of bits) ei-
ther in terms of the relative gain error or in terms of the ideal
Fig. 1. Single-stage conditioning circuit model. and actual gain values [7], respectively, as

signal range is defined in terms of its upper and lower limits (7)
as . Likewise, the range and the upper and
lower limits for the input signal and for the actual conditioned
signal are related as and , The loss of measurement resolution caused by the conditioning
respectively. circuit is in addition to the loss due to the ADC nonidealities and
Normally, the sensor output signal range (input to the condi- both should be considered in determining the total measurement
tioning circuit) does not correspond to the ADC input span. The resolution loss.
upper and lower limits of the input signal can be expressed re-
spectively as C. Requirements to Ensure the Complete Measurement Range
To eliminate loss in the measurement range there should be
and (1) no saturation in the ADC output. Thus, for the upper limit of
the conditioned signal value at the ADC input, we must have
where represents input signal without dc level, and rep- and from (4) we have
resents the input signal dc level that must be ideally compen-
sated. (8)
The values of gain and dc level shift must be chosen for each
specific sensor employed, even though these can assume only
some discrete values. Consequently, the errors in programming (9)
the gain and dc level shift are defined respectively as
where always assumes negative values.
(2) Similarly, for the lower limit value of the conditioned signal,
we must have and from (5) we have
and
(3) (10)

where and are the actual (available) and the ideal gain re- Considering the equal to zero, we have
spectively and is termed as the gain error. is the dc level
shift provided by the conditioning circuit and is the error (11)
in the dc level shift (dc level residue).
Thus, from (9) and (11), we can observe that the dc level shift
A. Conditioned Signal must be equal to or greater than zero. Therefore, as the ac-
tual gain is always positive, (11) always holds true. If we force
The conditioned signal without the effect of saturation can be
the gain error (by choosing an under-dimensioned gain) high
calculated as . In this way, with , enough to guarantee (9) we will also guarantee no loss in the
the conditioned signal upper and lower limits can be expressed measurement range. Thus, the requirements to eliminate loss in
in terms of the gain error and dc level residue, from (1), (2), and the measurement range are as follows.
(3), respectively as
• The dc level shift must not be over-dimensioned.
• The relative gain error must be high enough to assure (9),
(4) making the gain under-dimensioned.
and
III. SINGLE-STAGE CONDITIONING CASE
(5)
The loss in the measurement range can be caused by an in-
correct dc level adjustment and/or by employing an over-dimen-
The conditioned signal span, as defined before, may be written sioned gain, which causes part of the conditioned signal span
as to lie outside the specified ADC input limits. Further, if we al-
ways employ an under-dimensioned gain, we can cancel the loss
(6) of measurement range due to the ill chosen adjustment in the
dc level. Although, this restriction on the gain introduces some

Authorized licensed use limited to: Chittagong Univ of Engineering and Tech. Downloaded on June 13, 2009 at 01:30 from IEEE Xplore. Restrictions apply.
1484 IEEE TRANSACTIONS ON INSTRUMENTATION AND MEASUREMENT, VOL. 52, NO. 5, OCTOBER 2003

extra loss in measurement range and influences the choice of the wise. For example, for , the complete set is given by
set of dc level shift programming. .
The gain values that compose the set define a series and can
A. Gain Programming Set be calculated (for ) as .
We define the maximum and minimum ideal gains, according The value of is given by the next value of the series after
to the output signal characteristics of a chosen group of sensors, the last gain value in the set, so .
The number of the elements in the gain programming set can
as and . The complete gain programming set con-
be determined by completing the series until finding the max-
sists of values and it is denoted as ,
imum gain value that is equal to or smaller than the maximum
with and . In addition, we must
ideal gain, or . Alter-
define the maximum acceptable loss in the measurement range
natively, the number of programming values can be determined
as .
as
As stated in the previous section, the gain must be always
under-dimensioned to ensure the full measurement range. The
key idea in the programming strategy is to choose, from the
programming set, the next value smaller than that equal to or
smaller than the ideal required gain. Thus, the gain to be em-
(18)
ployed from the set is (as function of the programming
index ), with given by The best relationship among the gain ratios is , be-
cause these define a constant minimum relative gain error over
the full programming range. However, the values of and can
otherwise be chosen for defining gain values which are easy to implement
(12) in practice, as it is shown in the application example.

where is a gain value, not included in the set, used for B. DC Level Shift Programming Set
defining when the last gain value is to be employed. The value Considering the signal to be single-ended we define the
of is determined later on. maximum and minimum dc level adjustment, according to
For this strategy, the maximum relative gain error is given the sensor output signal characteristics of a given group of
by the ratio of the gain values separated by two gain steps, and sensors, as and . The complete dc level shift
the minimal relative gain error is given by the ratio of the gain programming set consists of values and it is denoted as
values separated by one gain step. From (7) and considering . As the required gain and dc level
the maximum admissible loss of resolution, we can define the shift are independent, the best choice for the dc level shift
maximum ratio of the gain values separated by two steps of gain programming set is the one that consists of equally spaced
as and, for , we can write values. Thus, the dc level shift programming values can be
(13) calculated, for , as

In order to determine the relationship between two consecutive (19)


gain values we can decompose the ratio into two fractions
and , so that . In this way, we can define relationship The dc level shift employed (as function of the pro-
between the gains with even and odd index as gramming index ) must be smaller than or equal to the de-
sired value, so . The
(14) worst-case dc level residue can be calculated as
and
(15) (20)

This choice of gain values defines the limits of the relative gain The value of depends on the maximum value of the actual
error as gain and on the minimum loss in the measurement resolution.
The minimum loss of measurement resolution is attained for the
(16) smaller of the and values. From (9), (16) and considering
the worst-case dc residue and the maximum programming gain
The minimum gain programming set, as function of and , can value, we have
be written as
(21)
(17)
The number of programming values is then
where , which makes the relative gain
error different from zero for the first programming value, and (22)
is equal to one if is even and zero other-

Authorized licensed use limited to: Chittagong Univ of Engineering and Tech. Downloaded on June 13, 2009 at 01:30 from IEEE Xplore. Restrictions apply.
CATUNDA et al.: DESIGNING A PROGRAMMABLE ANALOG SIGNAL CONDITIONING CIRCUIT 1485

Fig. 2. Several pipelined stages of gain and dc level shift.

The required number of bits for programming the dc level shift . The programming values for each stage are chosen
values is given by the base two logarithm of . similarly as for a single conditioning stage, and the problem
consists in determining the number of programming values for
IV. MULTISTAGE CONDITIONING CASE each stage. The first stage must compensate the sensor output
signal dc level and the following stages should compensate the
For large values of the actual gain and large number of dc
dc level residue from its preceding stage multiplied by the as-
level shift programming values, , the conditioning circuit to
sociated gain. The output signal at the th conditioning signal
implement the gain and dc level shift can become quite com-
stage, without saturation, may be written as
plex and expensive. Although, it is possible to split the condi-
tioning circuit in several stages (as shown in Fig. 2), and this has (24)
the advantage of reducing the ratio between the largest and the
smallest programming element values for the circuit and may with
lower the gain bandwidth product specifications of the opera-
tional amplifiers to be used. In Fig. 2, for the sake of generality (25)
every gain stage is considered to have its own output saturation
(26)
limits.
(27)
A. Multistage Gain Programming Sets
The complete gain set given by (17) can be easily divided in and with and .
smaller sets. One of the sets must contain part of the series In order to determine the number of dc level shift program-
defined by the one-stage case, starting with the minimum gain. ming values necessary for each stage, an analysis of the output
The other sets can have just two values of gain, which are used to signal at each stage is carried out, from the last to the first one.
obtain the desired total gain. The conditioning stage employing As the dc adjustment is considered always under-dimensioned,
more than two gain values is more complex than the others and there exists no saturation at the lower saturation limit of any
is more susceptible to noise. Thus, this stage is chosen to be the stage. The output signal upper limit in the last stage can be ex-
last one, which minimizes the effect of the noise introduced into pressed as
the system. The complete gain sets are
(28)

..
. for which one must guarantee . Following this pro-
cedure for the th signal conditioning stage, other than the last
stage, the upper limit on the conditioned signal can be expressed
(23) as

where are integers and is the number of


gain values for the last set. (29)
For these sets, we must ensure that , i.e.,
the product of the gains employed in each stage, which gives the for which we must ensure . Thus, as the worst-case,
total gain, must provide at least the gain set defined by (17). the highest value of the right side of (29) occurs for the th stage
The amplifiers in the conditioning stages except the last one maximum gain and for the gains equal to one in the following
can be set to use a single gain value greater than one, for these stages. This makes (29) similar to (28) with the difference that
can be simply bypassed, shorting the signal path, to employ a the dc level may not be equal to zero for the first stage. There-
gain equal to one. The gain programming strategy is the same fore, considering no saturation in the previous stages and fol-
as for the single stage in such a way that it must provide the lowing a similar procedure to achieve (9) and, later on (22), a
same necessary minimum and maximum relative gain errors to generalized expression can be written as
ensure the full measurement range.

B. Multistage dc Level Shift Programming Sets (30)


For conditioning signal stages there must be dc level
shift programming sets, with for .

Authorized licensed use limited to: Chittagong Univ of Engineering and Tech. Downloaded on June 13, 2009 at 01:30 from IEEE Xplore. Restrictions apply.
1486 IEEE TRANSACTIONS ON INSTRUMENTATION AND MEASUREMENT, VOL. 52, NO. 5, OCTOBER 2003

Finally, the maximum dc level at each stage input ,


can be calculated as

(31)

V. FULLY-DIFFERENTIAL CASE
When the target application happens to use only differen-
tial signals (as with fully-differential amplifiers) or single-ended
signals without dc level, there is no need to employ dc level
shift and the design of the conditioning circuit can be simplified.
The programming strategy can be defined to use the first avail-
able gain in the set that is smaller than or equal to the desired
ideal gain. The complete gain set may consist of gain values
of even index of the gain set defined in (17) and is defined as
, with . The number
of programming gain values is given by
which yields a set with approximately half the size of the set de- Fig. 3. Actual relative gain error and limits.
fined earlier in Section III. Likewise, the programming set can
also be easily divided in several smaller sets for employing a
multistage conditioning.

VI. APPLICATION EXAMPLES


As a design example, we consider a measurement system with
an ADC input and amplifiers’ output saturation limits equal to
[0, 2 V], which may be obtained in circuits biased with 3.3 V ,
and the maximum acceptable loss of resolution equal to 1 bit.
The necessary gain and dc level shift limits are [1, 256] and [0,
1 V], respectively.

A. Single-Stage Design
For a single stage design, we have: V,
bit, V, . For the
maximum acceptable loss of resolution we have and we
chose and , which yields passive components
of easy practical implementation. Directly from (18) we have
, which requires 4 bits for programming the gain. From
Fig. 4. Ideal and actual gain values.
(22) we have , which requires 8 bits for programming
the dc level shift and from (20) we have the maximum dc level
residue mV. From (17), the complete gain set is The number of programming values for the first stage, from (30)
is , requiring 4 bits for programming each one. From
(31), the maximum value of the dc level at the second stage input
(32) is 0.5 V and for this value we have . The ideal gain
and actual gain are shown (for both single-stage and two-stage
Fig. 3 shows the upper and lower limits of the relative gain error designs) in Fig. 4, as function of the ideal gain, making evident
given by (16), the minimum value of the relative gain error nec- the proposed strategy for selecting the appropriate gain values.
essary to ensure the full measurement range calculated from (9), From the presented example, it can be seen that for a large
and the actual relative gain error, which happens to be the same range of the desired gain it is more interesting to divide the con-
for the single-stage and two-stage designs. ditioning circuit into several stages. For the single-stage design,
the maximum gain value employed and the maximum ratio be-
B. Two-Stage Design tween gain values are 128 and 170.7, respectively, and for the
For a two-stage pipelined conditioning design, considering two-stage design, they are both equal to 16 (for the last stage).
the same saturation limit for both stages, the gain set found in Thus, for the two-stage design (as compared to the single-stage
(32) can be divided into two gains sets as design) the maximum ratio between passive components is re-
duced by a factor of 10.7. The gain bandwidth product spec-
ification for the second-stage amplifier is lowered by a factor
of approximately five (considering the effect of cascading two

Authorized licensed use limited to: Chittagong Univ of Engineering and Tech. Downloaded on June 13, 2009 at 01:30 from IEEE Xplore. Restrictions apply.
CATUNDA et al.: DESIGNING A PROGRAMMABLE ANALOG SIGNAL CONDITIONING CIRCUIT 1487

amplifiers in the total gain bandwidth product). Likewise, the Jean-François Naviner received the engineering
number of bits for programming the dc level shift is reduced degree in telecommunications and the Ph.D. degree
from the Ecole Nationale Supérieure des Télécom-
from eight to four bits. munications (ENST), Paris, France, in 1987 and
1992, respectively.
VII. CONCLUSION From 1988 to 1992, he was a Research Engineer
with ARECOM, Paris, where he was involved
A new methodology is proposed to define and select the ap- in CAD tools design for digital layout synthesis
and VLSI circuit design for image processing. In
propriate programming values for the gain and dc level shift for 1992, he joined the analog electronics group of
one or several pipelined signal conditioning stages, which as- the ENST Electronics Department. From 1995 to
sures no loss in the measurement range. This procedure is il- 1997, he spent a two years sabbatical at the Federal University of Paraíba,
Campina Grande, Brazil, as Visiting Professor successively with the Electrical
lustrated by an example, where it can be seen that it is more Engineering Department and then the Computer Science Department. He is
advantageous to divide the conditioning into several pipelined currently head of the Analog and Mixed Integrated Systems group of the ENST
stages, for a wide range of gains and dc level shifts. Dividing Electronics and Communications Department. His research interests include
architecture and design of mixed-signal ICs in CMOS technology, data con-
the signal conditioning circuit into several stages may also have verters, CAD techniques for mixed-signal design, and analog and mixed-signal
the advantage of lowering the required specifications of the op- reconfigurable circuits for telecommunications and instrumentation. His
erational amplifiers in respect of the gain bandwidth product. current projects include parallel analog-to-digital converter architecture, analog
front-end architecture and design for multimode-multistandard receivers,
The proposed procedure can therefore be employed for a dis- telecommunications data converters synthesis, and reconfigurable sensor
crete component signal conditioning circuit as well as for an interface for instrumentation.
integrated one, independent of the circuit technique to be used.
Nevertheless, the methods and analysis were carried out at the
functional level, and an analysis of the practical limitations and
imperfections of the analog circuits must be carried out, which
may result in a trade-off between the number of stages and the
signal conditioning accuracy.
Gurdip Singh Deep received the B.Tech.(Hons.)
degree in electrical engineering from the Indian
REFERENCES Institute of Technology (IIT), Kharagpur, in 1959,
[1] W. Q. Yang, “Combination of ADC and DAC to measure small variation the M.E. degree in power engineering (electrical)
with large standing signal,” in 3rd Int. Conf. Advanced A/D and D/A from the Indian Institute of Science, Bangalore, in
Conversion Techniques and Their Applications, Manchester, U.K., 1999. 1961, and the Ph.D. degree in electrical engineering
[2] P. Malcovati and F. Maloberti, “A fully integrated CMOS magnetic cur- from the IIT, Kanpur, in 1971.
rent monitor,” in Proc. IEEE Int. Symp. Circuits and Systems, Pavia, From 1961 to 1965, he was an Assistant Professor
Italy, 1999. at Guru Nanak Engineering College, Ludhiana, India,
[3] M. E. Gruchalla, J. O’Hara, D. Barr, T. Cote, L. Day, D. Gilpatrick, and from 1965 to 1972, he was with IIT, Kanpur,
M. Stettler, and D. Martinez, “Beam profile wire-scanner/halo-scraper as a Lecturer/Assistant Professor. From July 1972 to
sensor analog interface electronics,” in Proc. Particle Accelerator Conf., April 2002, he was a Titular Professor with the Center of Science and Tech-
Albuquerque, NM, 2001. nology, Federal University of Campina Grande, Campina Grande, Brazil. His
[4] FIPSOC—Field Programmable System on Chip, 2001. SIDSA. research interests are electronic instrumentation, sensors, and transducers.
[5] ispPAC10—In-System Programmable Analog Circuit Datasheet, 2001.
Lattice.
[6] Cypress Microsystems 2002, 2002. PsoC MCU devices.
[7] S. Y. C. Catunda, J.-F. Naviner, G. S. Deep, and R. C. S. Freire, “Mea-
surement system gain and DC level shift programming,” in IEEE Instru-
mentation and Measurement Technology Conf., Baltimore, MD, 2000.
presented.
Raimundo Carlos Silvério Freire was born on Oc-
tober 10, 1955, in Poço de Pedra, Brazil. He received
Sebastian Yuri Cavalcanti Catunda was born in the B.S. degree in electrical engineering from the
1971 in João Pessoa, Brazil. He received the B.S. Federal University of Maranhão, Maranhão, Brazil,
and M.S. degrees in electrical engineering from the in 1980, the M.S. degree in electrical engineering
Federal University of Paraíba (UFPB), Campina from the Federal University of Paraíba, Campina
Grande, Brazil, in 1993 and 1996, respectively, and Grande, Brazil, in 1982, and the Ph.D. degree in
the Ph.D. degree in electrical engineering from a electronics, automation, and measurements from the
joint doctoral program at UFPB and Ecole Nationale National Polytechnical Institute of Lorraine, Nancy,
Supérieure des Télécommunications (ENST), Paris, France, in 1988.
France, in 2000. He was an Electrical Engineer for Maranhão Edu-
Since June 1997, he has been an Assistant Pro- cational Television from 1980 to 1983. He was a Professor of electrical engi-
fessor with the Department of Electrical Engineering, neering at the Federal University of Maranhão from 1982 to 1985. Since De-
Federal University of Maranhão, São Luís, Brazil. His research interests include cember 1989, he has been with the Electrical Engineering Department, Federal
electronic instrumentation and sensors, control systems, and mixed-signal mi- University of Campina Grande. His research interests include electronic instru-
croelectronic circuits. mentation and sensors and microcomputer-based process control.

Authorized licensed use limited to: Chittagong Univ of Engineering and Tech. Downloaded on June 13, 2009 at 01:30 from IEEE Xplore. Restrictions apply.

You might also like