Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Sensor’s Full-Scale
Voltage Spans
Zero Pressure
Offset Voltage
Figure 1. Positioning the Sensor’s Full-Scale Span within the A/D’s or Amplifier’s Dynamic Range
A similar requirement that warrants the use of a dc level THE TWO OP-AMP GAIN STAGE
shift is the prevention of the pressure sensor's voltage from TRANSFER FUNCTION
extending into the saturation regions of the operational
amplifiers. This also would cause a nonlinearity in the sensor The transfer function of the two op-amp signal-conditioning
output measurements. For example, if an op-amp powered stage, shown in Figure 2, can be determined using nodal
with a single-ended 5.0 V supply saturates near the low rail of analysis at nodes 1 and 2. The analysis can be simplified by
the supply at 0.2 V, a positive dc level shift may be required to calculating the transfer function for each of the signals with the
position the zero pressure offset voltage at or above 0.2 V. other two signals grounded (set to zero), and then employing
Likewise, if the same op-amp saturates near the high rail of superposition to realize the overall transfer function. As shown
the supply at 4.8 V, a negative dc level shift may be required in Figure 2, VIN2 and VIN1 are the differential amplifier input
to position the full-scale pressure voltage at or below 4.8 V. It signals (with VIN2 > VIN1), and VREF is the positive dc level
should be obvious that if the gain of the amplifiers is too large, adjust point. For a sensor with a small zero pressure offset
the span may be too large to be positioned within the 4.6 V and operational amplifiers powered from a single-ended
window (regardless of ability to level shift dc offset). In such a supply, it may be necessary to add a positive dc level shift to
case, the gain must be decreased to reduce the span. keep the operational amplifiers from saturating near zero
volts.
VCC
Node 1 R2
Node 2 R4
R1
VREF R3
VIN1 VO
U1
U1
VO
VIN2
AN1525
Sensors
2 Freescale Semiconductor
First, the transfer function for VIN1 is determined by APPLICATION TO PRESSURE
grounding VREF and VIN2 at Node 1: SENSOR CIRCUITS
V IN1 V O′ – V IN1 The previous section showed the derivation of the general
-------------- = ------------------------------- (1) transfer function for the two op-amp signal-conditioning circuit.
R1 R2 The simplified form of this transfer function, as applied to a
pressure sensor application, is derived in this section.
and at Node 2: For pressure sensors, VIN1 and VIN2 are referred to as S-
and S+, respectively. The simplification is obtained by setting
V O′ VO
---------- = – -------- (2) R4 R1
R3 R4 ------- = -------
R3 R2
By solving Equations (1) and (2) for VO’ and equating the
Through this simplification, Equation (7) reduces to
results, Equation (3) is established:
⎛ R4 ⎞ + -
⎛ R2 ⎞ R3 V O = ⎜ ------- + 1⎟ ( S – S ) + VREF (8)
⎜ ------- + 1⎟ V IN1 = – ------- V O (3) ⎝ R3 ⎠
R
⎝ 1 ⎠ R4
⎛ R4 ⎞ ⎛ R4 ⎞
V O2 = ⎜ ------- + 1⎟ V IN2 (5) V O = ⎜ ------- + 1⎟ V SENSOR + V REF (10)
⎝ R3 ⎠ R
⎝ 3 ⎠
where VO2 represents the part of VO that VIN2 contributes. Finally, the term VREF is the positive offset voltage added to
Finally, to calculate the transfer function between VO and the amplified sensor output voltage. VREF can only be positive
VREF, VIN1, and VIN2 are grounded to obtain the following when using a positive single-ended supply. This offset (dc
transfer function: level shift) allows the user to adjust the absolute range that the
sensor voltage spans. For example, if the gain established by
R4 R2 R4 and R3 creates a span of four volts and this signal swing is
V OREF = ---------------- V REF (6) superimposed upon a dc level shift (offset) of 0.5 volts, then a
R3 R1
signal range from 0.5 V to 4.5 V results.
VREF is typically adjusted by a resistor divider as shown
where VOREF represents the part of VO that VREF contributes. in Figure 3. A few design constraints are required when
Using superposition for the contributions of VIN1, VIN2, and designing the resistor divider to set the voltage at VREF.
VREF gives the overall transfer function for the signal- • To establish a stable positive dc level shift (VREF), VCC
conditioning stage. should be regulated; otherwise, VREF will vary as VCC
varies.
V O = V O1 + V O2 + V OREF
• When looking into the resistor divider from R1, the effective
resistance of the parallel combination of the resistors,
⎛ R 4⎞ ⎛ R 2 ⎞ ⎛ R4 ⎞ R4 R2
V O = ⎜ – -------⎟ ⎜ ------- + 1⎟ V IN1 + ⎜ ------- + 1⎟ V IN2 + ---------------- V REF (7) RREF1 and RREF2, should be at least an order of
R
⎝ 3⎠ ⎝ 1 R ⎠ R
⎝ 3 ⎠ R3 R1 magnitude smaller than R1's resistance. If the resistance of
the parallel combination is not small in comparison to R1,
Equation (7) is the general transfer function for the signal- R1's value will be significantly affected by the parallel
conditioning stage. However, the general form is not only combination's resistance. This effect on R1 will
cumbersome, but also if care is not taken to match certain consequently affect the amplifier's gain and reduce the
resistance ratios, poor common mode rejection results. A common mode rejection.
simplified form of this equation that provides good common
mode rejection is shown in the next section.
AN1525
Sensors
Freescale Semiconductor 3
without additional constraints on the resistor values. To obtain
VCC good common mode rejection, use a similar simplification as
before; that is, set
R1 = R4
RREF1 and
R1 = R4
R1
VREF To U1
Defining the voltage differential between VIN2 and VIN1 as
VSENSOR, the simplified transfer function is
RREF2
⎛ R 4 2R 4 ⎞
V O = ⎜ ------- + ----------- + 1⎟ V SENSOR + V REF (12)
R
⎝ 3 R G ⎠
AN1525
Sensors
4 Freescale Semiconductor
VCC
ROFF
RG
Node1 R2
Node 2 R4
R1
VREF U1 R3 U1
VIN1 VO
VO
VIN2
Figure 5. Two Op-Amp Signal Conditioning Stage with Variable Gain and Negative dc Level Shift Adjust
To derive the general transfer function, nodal analysis and • To establish a stable negative dc level shift, VCC should be
superposition are used: regulated; otherwise, the amount of negative level shift will
vary as VCC varies.
⎛ R4 R4 R2 R4 ⎞ • ROFF should be the only resistor varied to adjust the
V O = ⎜ ------- + --------- + ----------------- + 1⎟ V IN2
R
⎝ 3 R G R 3 GR ⎠ negative level shift. Varying R4 will change the gain of the
two op-amp circuit and reduce the common mode
⎛ R4 R4 R2 R4 R2 R4 ⎞ rejection.
– ⎜ ------- + --------- + ---------------- + -----------------⎟ V IN1
⎝ R 3 R G R 1 R 3 R 3 R G⎠ • To determine the value of ROFF:
R2 R4 R4 1. Determine the amount of negative dc level shifting
+ ---------------- V REF + ----------------- ( V IN2 – V CC ) (14) required (defined here as V–SHIFT).
R1 R3 R OFF
2. R4 already should have been determined to set the gain
for the desired signal-conditioned sensor output.
As before, defining the sensor's differential output as
3. Although V–SHIFT is dependent on S+, S+ changes only
VSENSOR, defining VIN2 as S+ for pressure sensor
slightly over the entire pressure range. With Freescale’s
applications, and using the simplification that
MPX10 powered at a 5.0 V supply, S+ will have a value
R1 = R4 of approximately 2.51 V at zero pressure and will
and increase as high as 2.53 V at full-scale pressure. This
R2 = R3 error over the full-scale pressure span of the device is
negligible when considering that many applications use
obtains the following simplified transfer function: an 8-bit A/D converter to segment the pressure range.
⎛ R 4 2R 4 ⎞ Using an 8-bit A/D, the 20 mV (0.02 V) error
V O = ⎜ ------- + ----------- + 1⎟ V SENSOR + V REF corresponds to only 1 bit of error over the entire
⎝ R3 RG ⎠ pressure range (1 bit / 255 bits x 100% = 0.4% error).
R4 4. ROFF is then calculated by the following equation:
+
+ ----------------- ( S – V CC ) (15)
R OFF S +– V CC
R OFF = ----------------------- R 4 (18)
The gain is V – shift
R 4 2R 4
G = ------- + ----------- + 1 (16) An alternative to using this equation is to use a
R3 RG potentiometer for ROFF that has a resistance range on the
order of R4 (perhaps 1 to 5 times the value of R4). Use the
To adjust the gain, refer to the guidelines presented in the potentiometer to fine tune the negative dc level shift, while
section on Two Op-Amp Gain Stage with Variable Gain. monitoring the zero pressure offset output voltage, VO. As
VREF is the positive dc level shift, and the negative dc level before, if a fixed resistor is preferable, then measure the
shift is: potentiometer's resistance and replace the potentiometer with
R4
V – shift = ----------------- ( S+– V CC ) (17) the closest 1% resistor value.
R OFF
Important Note: The common mode rejection of this
The following guidelines will help design the circuitry for the amplifier topology will be low and perhaps unacceptable in
negative dc voltage level shift: some applications. (A SPICE model of this amplifier topology
showed the common mode rejection to be 28 dB.) However,
AN1525
Sensors
Freescale Semiconductor 5
this circuit is presented as a solution for applications where • Its non-inverting configuration provides gain via the ratio of
only two operational amplifiers are available and the common R6 and R5.
mode rejection is not critical when considering the required • It has negative dc voltage level shifting capability typically
system performance. Adding a third op-amp to the circuit for created by a resistor divider at V-SHIFT, as discussed in the
the negative dc level shifting capability (as shown in the next section on Application to Pressure Sensor Circuits.
section) is a solution that provides good common mode Although this configuration requires a third op-amp for the
rejection, but at the expense of adding an additional op-amp. negative dc level shift, it has no intrinsic error nor low
common mode rejection associated with the negative level
THE THREE OP-AMP GAIN STAGE shift (as does the previous two op-amp stage). Depending
FOR NEGATIVE dc LEVEL SHIFTING on the application's accuracy requirement, this may be a
This circuit adds a third op-amp to the output of the two op- more desirable configuration for providing the negative dc
amp gain block (see Figure 6). This op-amp has a dual level shift.
function in the overall amplifier circuit:
RG VCC
R5 R6
V–SHIFT
R2
R4
R1
VREF R3
VO
VIN1 U1 U1
U1
VO
VIN2 VO
Figure 6. Three Op-Amp Gain Stage with Variable Gain and Negative DC Level Shift
The transfer function for this stage will be similar to the Defining the voltage differential between VIN2 and VIN1 as
chosen two op-amp gain stage configuration (either the fixed VSENSOR, the simplified transfer function is
gain with positive dc level shift circuit or the variable gain with
[ [
positive dc level shift circuit) with additional terms for the R6 [ ⎛ R 4 2R 4 ⎞
negative level shift and gain. As an example, the variable-gain V O = 1 + ------- ⎜ ------- + ----------- + 1⎟ ( V SENSOR )
R5 ⎝ R3 RG ⎠
two op-amp gain circuit is used here. All of the design
considerations and explanations for the variable gain two op-
R6[
amp circuit apply. + V REF – -------V – shift (20)
The transfer function may be derived with nodal analysis R5
and superposition.
The gain is
[ R6
V O = 1 + -------
R5
[ [( R4 R4 R2 R4 (
------- + --------- + ----------------- + 1 V IN2
R3 RG R3 RG
R6
G = 1 + -------
R5
R 4 2R 4
------- + ----------- + 1
R3 RG
(21)
⎛ R 4 R 4 R 2 R 4 R 2 R 4⎞
– ⎜ ------- + --------- + ----------------- + ----------------⎟ V IN1 VREF is the positive dc level shift (offset), and V–SHIFT is the
⎝ R 3 R G R 3 R G R 1 R 3⎠ negative dc level shift.
The preceding simplifications have been performed in the
⎛ R 2 R 4⎞ R6[ previous sections, but by examining Equation 20, notice that
+ ⎜ ---------------
-⎟ V
REF – -------V – shift (19) the third op-amp's gain term also amplifies the positive and
⎝ R 1 R 3⎠ R5
negative dc voltage level shifts, VREF and V–SHIFT. If R6 and R5
First, use the same simplifications as before; that is, set are chosen to make an arbitrary contribution to the overall
system gain, designing an appropriate amount of positive and
R1 = R4 negative dc level shift can be difficult. To simplify the transfer
and function, set R5 = R6, and the following equation for VO results:
R2 = R3
⎛ R 4 2R 4 ⎞
V O = 2 ⎜ ------- + ----------- + 1⎟ ( V SENSOR ) + V REF – V – shift (22)
⎝ R3 RG ⎠
AN1525
Sensors
6 Freescale Semiconductor
Now the third op-amp's contribution to the overall system presented in the section on Application to Pressure Sensor
gain is a factor of two. When designing the overall system gain Circuits.
and the positive dc level shift, use the following guidelines:
• Since the third op-amp contributes a gain of two to the CONCLUSION
overall system, design the gain that the two op-amp circuit The amplifier circuits discussed in this paper apply to
contributes to the system to be one-half the desired pressure sensor applications, but the amplifier circuits can be
system gain. The gain term for the two op-amp circuit is: interfaced to low-level, differential-voltage output sensors, in
general. All of the circuits exhibit the desired instrumentation
R 4 2R 4
G = ------- + ----------- + 1 amplifier characteristics of high input impedance, low output
R3 RG impedance, high gain capability, and differential to single-
ended conversion of the sensor signal. Each amplifier circuit
which is the same as presented in Equation 16. provides positive dc level shift capability, while the last two
circuit topologies presented are also able to provide a
• Similarly, since the third op-amp also amplifies VREF by negative dc voltage level shift. This enables the user to
two (refer to Equation 22), the resistor divider that creates position the sensor's dynamic output within a specified range
VREF should be designed to provide one-half the desired (e.g., within the high and low references of an A/D converter).
positive dc voltage level shift needed for the final output. Also detailed is a method of using an additional feedback
When designing the voltage divider for VREF, use the same resistor to adjust easily the differential voltage gain, while not
design constraints as were given in the section on sacrificing common mode rejection. Combining the
Application to Pressure Sensor Circuits. appropriate sensor device and amplifier interface circuit
With the above simplification of R5 = R6, the negative dc provides sensor users with a versatile system solution for
level shift, V–SHIFT, which is also created by a voltage divider, applications in which the ideal fully single-conditioned sensor
is now amplified by a factor of unity. When designing the does not exist or in which such signal flexibility is warranted.
voltage divider, use the same design constraints as were
AN1525
Sensors
Freescale Semiconductor 7
How to Reach Us:
Home Page:
www.freescale.com
E-mail:
support@freescale.com
AN1525
Rev. 1
05/2005