Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
U1A 1k 1k
2 – MC33284
1
3 +
11
* For MPX2010, R10 = 150 Ohms
For applications requiring greater precision a fully performance. Component cost, however, is significantly
integrated instrument amplifier such as an LTC1100CN8 higher.
gives better results. In Figure 3 one of these amplifiers is used
to provide a gain of 100, as well as differential to single ended SENSOR SPECIFIC INTERFACE AMPLIFIER
conversion. Zero offset is provided by dividing down the
A low cost interface designed specifically for pressure
precision reference to 0.5 V and buffering with U2B. This
sensors improves upon the instrumentation amplifier in
voltage is fed into the LTC1100CN8's ground pin which is
Figure 2. Shown in Figure 4, it uses one quad op amp and
equivalent to returning R3 to pin 14 of U1D in Figure 2. An
several resistors to amplify and level shift the sensor's output.
additional non-inverting gain stage consisting of U2A, R1 and
Most of the amplification is done in U1A which is configured as
R2 is used to scale the sensor's full scale span to 4 V. R2 is
a differential amplifier. It is isolated from the sensor's positive
also returned to the buffered 0.5 V to maintain the 0.5 V zero
output by U1B. The purpose of U1B is to prevent feedback
offset that was established in the instrumentation amplifier.
current that flows through R5 and R6 from flowing into the
Output voltage range is therefore 0.5 to 4.5 V.
sensor. At zero pressure the voltage from pin 2 to pin 4 on the
Both of these instrumentation amplifier circuits do their
sensor is 0 V. For example, let's say that the common mode
intended job with a relatively straightforward tradeoff between
voltage on these pins is 4.0 V. The zero pressure output
cost and performance. The circuit of Figure 2 has the usual
voltage at pin 1 of U1A is then 4.0 V, since any other voltage
cumulative tolerance problem that is associated with
would be coupled back to pin 2 via R6 and create a non-zero
instrumentation amplifiers that have discrete resistors, but it
bias across U1A's differential inputs. This 4.0 V zero pressure
has a relatively low cost. The integrated instrumentation
DC output voltage is then level translated to the desired zero
amplifier in Figure 3 solves this problem with precision
pressure offset voltage (VOFFSET) by U1C and U1D.
trimmed film resistors and also provides superior input offset
AN1318
Sensors
2 Freescale Semiconductor
B+
U1
1 8
NC NC
2 7
VIN NC
3 6
VT OUT
4 5
GND TRIM
C3
MC1404 0.01 µF
U1
C1
1 µF 6 5
3 2 + 7
C2 XDCR1
MPX2000 Series 3 8 U2A
0.1 µF + 1
Pressure 3 1 2 – Output
–
4 1 Sensor 4 LTC1100CN8
MC34072
4
R3
19.1 k 1%
U2B
R2 R1
5 10 k 1% 6.04 k 1%
+ 7
6
R4 –
1 k 1%
MC34072
B+
U2
3
MC78L08ACP
I 1
O
G
2
C1 C2
1 µF 0.1 µF 3 4
+ 1
2
– U1C
U1A
MC33274 MC33274
10
+ 8
R6 7.5k 9 Output
–
XDCR1 R1 2 k
3 2
MPX2000
Series R
GND 120* R2 2 k
Pressure
Sensor 4 1
R8
1.5 k U1B U1D
6 MC33274 MC33274
– 7 12 +
5 + 14
13
11 –
R9 200 R3
820 R4 1k
ZERO
CAL.
AN1318
Sensors
Freescale Semiconductor 3
To see how the level translation works, let's look at the 7.5 V at pin 14 of U1D. Similarly 4.0 V at pin 10 of U1C implies
simplified schematic in Figure 5. Again assuming a common 4.0 V at pin 9, and the drop across R2 is 7.5 V - 4.0 V = 3.5 V.
mode voltage of 4.0 V, the voltage applied to pin 12 of U1D is Again 3.5 V across R2 implies an equal drop across R1, and
4.0 V, implying that pin 13 is also at 4.0 V. This leaves 4.0 V - the voltage at pin 8 is 4.0 V - 3.5 V = 0.5 V. For this DC output
VOFFSET across R3, which is 3.5 V if VOFFSET is set to 0.5 V. voltage to be independent of the sensor's common mode
Since no current flows into pin 13, the same current flows voltage it is necessary to satisfy the condition that R4/R3 =
through both R3 and R4. With both of these resistors set to the R2/R1. In Figure 4, VOFFSET is produced by R8 and
same value, they have the same voltage drop, implying a 3.5 adjustment pot R9. R3's value is adjusted such that the total
V drop across R4. Adding the voltages (0.5 + 3.5 + 3.5) yields source impedance into pin 13 is approximately 1 k.
B+
3 4
+8 + 1
2
–
U1A U1C
MC33274 MC33274
10
+ 8
9 Output
3 2 R6 7.5 k –
XDCR1 R1 2 k
MPX2000 Series R5
Pressure 120*
Sensor R2 2 k
4 1
U1B
MC33274
6 – 7 12 +
5 + 14
13 –
11
GND U1D
R3 MC33274
1k R4 1 k
VOFFSET
Gain is approximately (R6/R5)(R1/R2+1), which is 125 for MC68HC11 as an example, the interface circuit output is
the values shown in Figure 4. A gain of 125 is selected to connected to any of the E ports, such as port E0 as shown in
provide a 4 V span for the 32 mV of full scale sensor output Figure 6. To get maximum accuracy from the A/D conversion,
that is obtained with 8 V B+. VREFH is tied to 4.85 V and VREFL is tied to 0.30 V by dividing
The resulting 0.5 V to 4.5 V output from U1C is preferable down a 5 V reference with 1% resistors.
to the 0.75 to 4.75 V range developed by the instrument
amplifier configuration in Figure 2. It also uses fewer parts. SINGLE SLOPE A/D CONVERTER
This circuit does not have the instrument amplifier's propensity
The 8 bit A/D converters that are commonly available on
for oscillation and therefore does not require compensation
chip in microcomputers are usually well suited to pressure
capacitor C3 that is shown in Figure 2. It also requires one
sensing applications. In applications that require more than 8
less resistor, which in addition to reducing component count
bits, the circuit in Figure 7 extends resolution to 11 bits with an
also reduces accumulated tolerances due to resistor
external analog-to-digital converter. It also provides an
variations.
interface to digital systems that do not have an internal A/D
This circuit as well as the instrumentation amplifier
function.
interfaces in Figure 2 and Figure 3 is designed for direct
connection to a microcomputer A/D input. Using the
AN1318
Sensors
4 Freescale Semiconductor
B+ +5 V
15.0 Ohms
VS 1%
~4.85 V VREFH
MPX2000 453 Ohms
Series RC1 1%
Pressure
Sensor ~.302 V VREFL
30.1 Ohms
1%
BIAS
RV1 RP2
MC68HC11
B+
S+ S–
+
Interface 0
Output
Amplifier 1
RP1 RV2 – 2
GND 3
Port E
4
5
RC2 6
7
GND
VSS
Return
Beginning with the ramp generator, a timing ramp is with an output from PA7, and the sample and hold circuits are
generated with current source U5 and capacitor C3. delatched with an output from PB1. Resolution is limited by
Initialization is provided by Q1 which sets the voltage on C3 at clock frequency and ramp linearity. With the ramp generator
approximately ground. With the values shown, 470 µA flowing shown in Figure 7 and a clock frequency of 2 MHz; resolution
into 0.47 µF provide approximately a 5 msec ramp time from is 11 bits.
zero to 5 V. Assuming zero pressure on the sensor, inputs to From a software point of view, the A/D conversion consists
both comparators U2A and U2B are at the same voltage. of latching the sample and hold, reading the value of the
Therefore, as the ramp voltage sweeps from zero to 5 V, both microcomputer's free running counter, turning off Q1, and
PA0 and PA1 will go low at the same time when the ramp waiting for the three comparator outputs to change state from
voltage exceeds the common mode voltage. The processor logic 1 to logic 0. The analog input voltage is determined by
counts the number of clock cycles between the time that PA0 counting, in 0.5 µsec steps, the number of clock cycles
and PA1 go low, reading zero for zero pressure. between PA0 and PA1 going low.
In this circuit, U4A and U4B form the front end of an
instrument amplifier. They differentially amplify the sensor's LONG DISTANCE INTERFACES
output. The resulting amplified differential signal is then
In applications where there is a significant distance
sampled and held in U1 and U3. The sample and hold function
between the sensor and microcomputer, two types of
is performed in order to keep input data constant during the
interfaces are typically used. They are frequency output and
conversion process. The stabilized signals coming out of U1
4-20 mA loops. In the frequency output topology, pressure is
and U3 feed a higher output voltage to U2A than U2B,
converted into a zero to 5 V digital signal whose frequency
assuming that pressure is applied to the sensor. Therefore,
varies linearly with pressure. A minimum frequency
the ramp will trip U2B before U2A is tripped, creating a time
corresponds to zero pressure and above this, frequency
difference between PA0 going low and PA1 going low. The
output is determined by a Hz/unit pressure scaling factor. If
processor reads the number of clock cycles between these
minimizing the number of wires to a remote sensor is the most
two events. This number is then linearly scaled with software
important design consideration, 4-20 mA current loops are the
to represent the amplified output voltage, accomplishing the
topology of choice. These loops utilize power and ground as
analog to digital conversion.
the 4-20 mA signal line and therefore require only two wires to
When the ramp reaches the reference voltage established
the sensor. In this topology 4 mA of total current drain from the
by R9 and R10, comparator U2C is tripped, and a reset
sensor corresponds to zero pressure, and 20 mA to full scale.
command is generated. To accomplish reset, Q1 is turned on
AN1318
Sensors
Freescale Semiconductor 5
U5
LM334Z3 D1
+10 8 –U2C14
1N914 9 + PA2
R4 C3 LM139A +5
147 0.47 mF R9
1k
R6 R5 C7 R10
0.1 mF 9.09 k
1.5 k 5% 4.7
5% Q1
PA7
2N7000 U7
MC68HC11E9FN
+8.5 –8.5
U1
3 4 1 1 4
+5 3 5 R7 5 U2A
+
2 - + 2
U4A 8 22 k 5% 4 PA1
MC33078 LF398A –
LM139A
7 6
R2 402 k
3 2 C5
XDCR1 C1 22 pF 0.01 mF
MPX2000 Series R5 UM
Pressure Sensor 120* C2 22 pF
4 1 PB1
R3 402 k +8.5 –8.5
U4B U3
1 4 U2B
6 MC33078
7 3 5 6 1
R8
–
+
5– 7 PA0
11 8
+
LM139A
LF398A 22 k 5%
7 6
C4 11
0.01 mF U2D
+ 13
Polyprop 10
NOTE: Unless otherwise specified –
LM139A
All resistors are 1% Metal Film
B+
U1
3 MC78L08ACP
I 1
O U4
G 3 MC78L05ACP
2 I
C2 O1
C1 0.1 mF R9 G
1k
1 mF XDCR1 C3 2 C4
MPX2000 Series R10 0.1 mF
Pressure Sensor 3 4 0.01 mF 240
2 +– U3
U2A U2D AD654 8 6 7 Output
MC33274 +VS CT CT
12 MC3327414 4 V Q1
R4 7.5 k 13 +– IN
3 2
R6 2 k FOUT 1 BS107A
R8 3 RT
120*
GND 4 1 R7 2 k R11 VS COM
4.3 k 5 2
R5 U2B
1.5 k MC33274
6- 7 10
8
5+ 9 +–
11
R3 200 U2C R12 Nominal Output:
R2 1 kHz @ Zero Pressure
820 MC33274 1k
Full Scale Cal. 10 kHz @ Full Scale
ZERO R1 1 k 5V
CAL.
AN1318
Sensors
6 Freescale Semiconductor
A relatively straightforward circuit for converting pressure to a twisted pair line is relatively easy. Where very long distances
frequency is shown in Figure 9. It consists of three basic parts. are involved, the primary disadvantage is that 3 wires (VCC,
The interface amplifier is the same circuit that was described ground, and an output line) are routed to the sensor.
in Figure 4. Its 0.5 to 4.5 V output is fed directly into an AD654 A 4-20 mA loop reduces the number of wires to two. Its
voltage-to-frequency converter. On the AD654, C3 sets output is embedded in the VCC and ground lines as an active
nominal output frequency. Zero pressure output is calibrated current source. A straightforward way to apply this technique
to 1 kHz by adjusting the zero pressure input voltage with R3. to pressure sensing is shown in Figure 10. In this figure an
Full scale adjustments are made with R12 which sets the full MPX7000 series high impedance pressure sensor is mated to
scale frequency to 10 kHz. The output of the AD654 is then fed an XTR101 4-20 mA two-wire transmitter. It is set up to pull
into a buffer consisting of Q1 and R10. The buffer is used to 4 mA from its power line at zero pressure and 20 mA at full
clean up the edges and level translate the output to 5 V. scale. At the receiving end a 240 ohm resistor referenced to
Advantages of this approach are that the frequency output is signal ground will provide a 0.96 to 4.8 V signal that is suitable
easily read by a microcomputer's timer and transmission over for microcomputer A/D inputs.
2 mA
4–20 mA Output
+
1 1 8 R1
0 1 D1
XDCR1 3 2 4 750 1N4002 2.4 V
MPX7000 R3 + 1/2 W
30 5
Series U1
Sensor Q1 C1
6 XTR101 MPSA06 0.01 mF 96 – 4.8 V
4 1
R5 3 –
100
PLOOP
1 2 17 1 9 240
D2 4 3
1N4565A SPAN
6.4 V @ .5 mA –
R6 R4 Return
100 k 1M
Offset
R2
1k
Bias for the sensor is provided by two 1 mA current sources The sensor's common mode voltage is one half its supply
(pins 10 and 11) that are tied in parallel and run into a voltage or 3.2 V. R2 boosts this common mode voltage by
1N4565A 6.4 V temperature compensated zener reference. 1k•2mA or 2 V, establishing a common mode voltage for the
The sensor's differential output is fed directly into XTR101's transmitter's input of 5.2 V. To allow operation over a 12 to
inverting and non-inverting inputs. Zero pressure offset is 40 V range, dissipation is off-loaded from the IC by boosting
calibrated to 4 mA with R6. Biased with 6.4 V, the sensor's full the output with Q1 and R1. D1 is also included for protection.
scale output is 24.8 mV. Given this input R3 + R5 nominally It prohibits reverse polarity from causing damage. Advantages
total 64 ohms to produce the 16 mA span required for 20 mA of this topology include simplicity and, of course, the two wire
full scale. Calibration is set with R5. interface.
The XTR101 requires that the differential input voltage at
pins 3 and 4 has a common mode voltage between 4 and 6 V.
AN1318
Sensors
Freescale Semiconductor 7
R6 R5 R7
15 % 453 % 30.1 %
1
D/A VRH VRL 2
TCAP1 3
4
TCAP2 5
6
+5 VDD 7
28
PD0 33
PD1 34
PD2 35
36
PD3 37
PD4 38
VPP6 39
8
IRQ PC0 IEEE LCD 5657
PC2 31
PC1 32 or Equivalent
PD5 PC7 9
PC6 10
3 1 U1 PC5 11
XDCR1 PC4 29
MC68HC705B5FN PC3 30
MPX5100
12
Liquid
2 PB2 26 Crystal
PB1 27 Display
PB7 13
R4 PB6 14
PB5 15
4.7 k PB4 24
PB3 25
R2 R3 U2 RESET 16
10 k 10 k PA0
PA2 22
MC34064P5 PA1 23
PA7 17
PD6 PA6 18
PA5 19
PD7 PA4 20
PA3 21
J1 J2 OSC1 40
C1
22 pF R1 Y1
10 M 4 MHz
OSC2
VSS RDI TDO
C2
22 pF
AN1318
Sensors
8 Freescale Semiconductor
considering these tradeoffs it is important to throw software
into the equation. Techniques such as automatic zero
pressure calibration can allow one of the inexpensive analog
interfaces to provide performance that could otherwise only be
obtained with a more costly precision interface.
REFERENCES
1. Baum, Jeff, “Frequency Output Conversion for
MPX2000 Series Pressure Sensors,” Freescale
Application Note AN1316/D.
2. Lucas, William, “An Evaluation System for Direct
Interface of the MPX5100 Pressure Sensor with a
Microprocessor,” Freescale Application Note AN1305.
3. Lucas, William, “An Evaluation System for Interfacing
the MPX2000 Series Pressure Sensors to a
Microprocessor,” Freescale Application Note AN1315.
4. Schultz, Warren, “Compensated Sensor Bar Graph
Pressure Gauge,” Freescale Application Note AN1309.
5. Schultz, Warren, “Interfaced Sensor Evaluation
Board,” Freescale Application Note AN1312.
6. Schultz, Warren, “Sensor Building Block Evaluation
Board,” Freescale Application Note AN1313.
7. Williams, Denise, “A Simple 4-20 mA Pressure
Transducer Evaluation Board,” Freescale Application
Note AN1303.
AN1318
Sensors
Freescale Semiconductor 9
NOTES
AN1318
Sensors
10 Freescale Semiconductor
NOTES
AN1318
Sensors
Freescale Semiconductor 11
How to Reach Us:
Home Page:
www.freescale.com
E-mail:
support@freescale.com
AN1318
Rev. 2
05/2005