Low-Pressure Sensing with MPX201 O Sensor
Low-Pressure Sensing with MPX201 O Sensor
AN1551
Low-Pressure Sensing with the
MPX201 O Pressure Sensor
Jeffery Baum
Systems Engineering Group Leader
Sensor Products Division
Motorola Semiconductor Products Sector
Phoenix, Arizona
INTRODUCTION ,,,
,X $k\
Until recently, low+ost semiconductor pressure sensors Now that the pressure rang~ ~f i~k~est has been estab-
were designed to measure typical full–scale pressures only as Iished, the stage has been s~~~~~biderthe system solution
Freescale Semiconductor, Inc...
low as 10 kPa (1.5 psi). Of course, “measure” is a relative term. that is the enabling tec~~{d~ for achieving such low–
“Measure” is used hereto imply that an output of reasonable pressure sensing capaM~~{&o important in presenting this
magnitude, signal–to–noise ratio, and accuracy is produced low–pressure systemtwkn are some of the other applica-
by the sensing device. Such sensor products are available in tion characteristi~$esl~s the pressure range. For example,
various levels of integration and package types. Depending on the desired pre~~~~esolution, accuracy, available power
the level of application customization required and the budget supply volts@’Y~&end–equipment system architecture play
available, a sensor user may choose from a range of low– a major r@&.~&@@terminingthe implementation of this system
‘+~kv<$.
pressure sensor products such as a 10 kPa “bare-elemen? soluti~,n. s$$
,,:$,:
‘ -.,.
(uncompensated) device, a 10 kPa calibrated and tempera- ,,,:{.
+
~ ,$1>...
ture compensated device, or a fully signal+onditioned (high–
\r~EPOPMENT HISTORY
level output), calibrated, and temperature compensated inte- $. \..:\\.,
“,~.;i:
grated 10 kPa device. These options are typically available as ,$~~\ti,““”‘~orsimplicity’s sake, Iefs refer to this low-pressure sensing
well for higher pressures ranging up to 1000 kPa. “’”’itsvstem solution as the “smartsensinq” or “smart sensor svs-
What if the sensor user mu=t measure full–scale press~resfF ‘ t~m.” One of the key performance a~vantages of the smati
that are two, four, or even ten times lower than what #~#n- sensor system is that the output of the actual sensing element
tional sensor technology is capable of measuring?.;,@es~&h is ratiometric (linearly propoflional) to the excitation voltage
applications and customers exist?” The answe$$$~#@and applied to the sensing element. Since most semiconductor
“yes.” There are many potential customers t~~$~}~~~e such pressure sensors are characterized with a constant voltage
low–pressure sensing ability, the two ap~~~$~p’examples power supply, current excitation will not be discussed.
discussed here are: (1) heating v~~F~~$on and air– Although a sensor’s [Link] specified at a given power
conditioning (HVAC) in the context ,~#~#iJ#ng controls and supply voltage, there is some maximum supply that can be
(2) water–level sensing in applia~ce @~plications such as applied, beyond which power dissipation and self–heating
clothes washing machines, \*$$$$&i\,
.>;>>b\*$:: produce significant output errors or exceed the package’s
For the purposes of meas~,~~l{~w pressures, the units of thermal handling capability. This means that the strategy of
inches of water ~ H20) okd’i~$efers of water (mm H20) will increasing the sensor’s excitation to improve the sensor’s
be used. Typical HVA@ ap&@tions have a full–scale pres- sensitivity (increase signal output for a given applied pres-
sure of 40 mm H20 ,W*@shing machines have either 300 or sure) can be done in a dc fashion only up to some maximum
600 mm H20, de@~~/}#%n the region of the world (Note:just supply voltage. For Motorola pressure sensors, this limit
for reference ~{~~&&, 10 kPa = 4U’ H20 = 1000 mm H20 = allows only about a 5070 to 60% inCreaSe in sensitivity,
~$.,...
:J~,<,.~$‘<*
,::,~
1.5 psi). depending on the specific device family.
Of coW*~&sensor intended for a higher pressure range About five years ago, some of my colleagues were working
than @.~~$f interest can be used. However, the effect is that on pulsing the sensor supply voltage with a conventional volt-
onl~~$-ll potiion on the device’s dynamic output range is age and very low duty–cycle, sampling–and–holding the
w!~~the actual operating range. This low-level output may resulting output, and then filtering the output to produce a dc
thw be paired up with a larger than ideal amplifier gain. Thus, sensor output with very low–power consumption. This was the
a poor signal–to–noise ratio is usually the result, Some sensor impetus to consider pulsing a sensor at a much higher than
manufacturers have recently introduced pressure sensors recommended voltage and a low duty–cycle (1070 or less) for
designed for @ and 5“ H20 full–scale ranges (approx. the purpose of increased sensitivity. It is true that some of the
100–1 25 mm H20). These devices typically employ silicon sensor’s parasitic drawbacks, like its zero–pressure offset
with very thinly micromachined diaphragms or other sensing voltage and temperature coeticient of offset, are increased as
technologies that are significantly larger in form factor without well, but some of the sensor’s negative characteristics are
— any additional functionality. Thin diaphragm devices tend to be lessened. In addition, other sources of error and noise in the
extremely fragile and unstable. Even in cases where the system are not subjected to the higher amplifier gain that
— device is suticiently robust for the intended operating pres- would be required if operating the sensor at a conventional
sure range, the sensor has vey poor overpressure capability. supply voltage.
Table 1. MPX201O Operating Character@~,,(&upply Voltage = 10 Vdc, TA=25°C unless otherwise noted)
... .>>
~,. ....
:.3. ,.,:,$ .
Characteristic ~.j$:$,
.;.::\i,, ,+~$,$ Min Typ Max Unit
..,$.,
*i{\, :<$::\’+.l]$
s —
Pressure Range .,:.,.?%
.~i~).~~
~,. 0 10 kPa
,.\,> [.
—
Supply Voltage ,,.,~,j..:.,
,x :~$
.>j, 10 16 Vdc
,,. ...
Supply Current ,.~, — 6.0 — mAdc
Much greater gains in output signal level (sensor span) can pressures below 10 H20#~~#ly~’of full–scale pressure reso-
be obtained, if it is possible to operate the sensor at signifi- lution and better than ~~,$~wscale accuracy. The following
cantly higher voltages. Since the thermal/power dissipation subsystems comprise~d’tfiardware potiion of this solution
limitation imposed by the maximum dc supply voltage can be
8-BIT
p, ,LO,?E, , MICROCONTROLLER
t
I
POWER SUPPLY
5v*5yo REJECTION
CIRCUITRY
REGUMTOR
I
A
~ tins
,,., .,,.
‘!...,,
POWER SUPPLY
REJECTION DIVIOER
ti
111>1
m \
I LL
Creates the control signal to pulse the sensor. power supply voltage th~~$an introduce error into the pres-
sure measurement. Th&~~&]s amplified output at the zerb
Samples the pressure sensor’s output.
pressure offset and f-le pressure are stored at each of
Signal averages a programmable number of samples for two different sup@~vo[t~es. In addition, the scaled and digi-
noise reduction. tized represen~~$WN3f the applied supply voltages is stored.
Samples a scaled< own version of the pressure sensor Compensatifg&Power supply variation in software allows
supply voltage. Monitoring the power supply voltage allows higher ~fl~y~ahce with lower tolerance, or even unregu-
the microcontroller to reject sensor output changes result- IatedF sfi~ly voltages. For HVAC applications, where a
ing from power supply variations. 24w%,line voltage will be simply rectified and filtered to pro-
Uses serial communications interface (SPI) to receive :~$d~.a&ude 24–Vdc supply, this approach has major perfor-
., .,.
commands from and to send sensor information to a .~%;@~,@ebenefits. The impact on applications where a regulated
master MCU. ~~::~pply iS available is that a lower+ost regulator or de-to-de
“+ converter can be used without compromising system accu-
Resistor Divider for Rejection of Supply ~~~ :’ racy significantly.
,$:}$::
,,>’,
Voltage Variation ~<11,~v\\i
~.
Since the pressure sensor’s output voltage is r@t@ficto
ND Sample Averaging
its supply voltage, any variation in supply volta@%Wi[~*esult in
Noise inherent to the 8–bit ND successive approximation
variation of the pressure sensor’s output voltW~Wbtienuat-
conversion method used by the smart sensor accounts for
ing the supply voltage (since the supply:-fray exceed
+1–bit resolution. Signal noise, which exhibits a measured
the 5 V range of the ND) with a resi~ot}~~~er, this scaled
peak–to–peak range larger in magnitude than 1 bit of WD
voltage can be sampled by the ~~r*roller’s ND con-
resolution, can be minimized by a sample averaging
verter. By sampling the scaled sg&~ $bltage, the microcon-
technique.
troller can compensate for any~~a~~ces in the pressure sen-
The current technique uses 16 ND converted pressure
sor’s output voltage that ~~$~~lo supply variations. This
samples, sums the result, and divides by 16 (the number of
technique allows correct ‘~k~s$hre determination even when
samples) to get the average:
the pressure sensor{@’&we~ed with an unregulatedsupply.
,:~,
~....,
!.~)i
.,>::,
5 V Regulatq~~:&:+ ‘“
.% ..~.+l
Avg= XT;
n (an) where n = 16 (1)
A 5 V t5Y0~~~~ge regulator is required for the following 1
functions;.:’~:~~, ‘*’ Assuming a gaussian distribution of noise, this averaging
● To ~~~id~#stable5 Vforthe high voltage reference (VRH) technique improves the signal-to-noise ratio (SNR).
@f@@’
~..<*. @f&rocontroller’s
?...&*J..
. WD converter. A stable voltage ref-
~Yl,~qce Is crucial for sampling any analog voltage signals.
● :$\~oprovide a stable 5 V for the resistor divider that is used
Smart Sensor Unit ID and Software
Revision Level
‘to level shift the amplified zero–pressure offset voltage.
This solution may be implemented as a single sensing sys-
tem using a nondedicated MCU to provide the sensing func-
Low Voltage Inhibit (LVI) Circuitry
tion and smart features or as a slaved smafl sensor (with
Low voltage inhibit circuitry is required to ensure proper
dedicated sensing MCU) that communicates over a serial bus
power+n–reset (POR) of the microcontroller and to put the
to a master controller or microprocessor (Host). Pati identifi-
MCU in a known state when the supply voltage is decreased
cation and software revision level can also be read on request
— below the MCU supply voltage threshold.
from the master MCU. This information is utilized by the
master MCU to determine what the full–scale pressure range
SOFWARE DESCRIPTION
of a given smart sensor unit is. This allows for multiple sensor
The smart sensor system’s EPROM resident code provides units with different pressure ranges to be controlled and
the control pulse for the sensor’s excitation voltage and per- sensed from a single master MCU.
For More Information On This Product,
Motorola Sensor Device Data Go to: [Link] 5
Freescale Semiconductor, Inc.
,,.>,..
and sends commands to the slave regarding data requests,
calibration, etc. The command codes are parsed at the slave (This calculation is peti&~&#y the master MCU.)
.*$:>x&
.$9:&
“
in a look–up table, at which time the corresponding request Dynamic Zero @igflk:;hrrent input pressure as the offset
is serviced via subroutine. Table 2 lists the Master/Slave value, in order $~~w a nonzero pressure as the offset
commands. ,~t~f,.,,, !,i~
reference. ,~ ; .??
i>,, .
, ‘?::,,..+*>
.,,’,’;
Request Pressure Returns the percent of full–scale Undo D@c’Zero Resets offset to the otiginal stored
pressure applied to the sensor in the form of $00 (0) through offse~~see ~namic Zero).
$FF (255) and is equivalent to: y::>,.
~~~~~~e Range Returns a value representing the sensor’s
~m~~wbale pressure range.
+tsk
‘{~
1 /+
Din
MSB LSB
o I
* REQUESTS PRESSURE
JSR WRITSPI SEND THE CO~ TO THE SENSOR.
* ... THE VALUE RETURNED IN ACCUMULATOR A
* WILL BE IN THE RANGE O. .OXFF = O. .100%
Freescale Semiconductor, Inc...
. \sq%
.:i. ,&*
..,:~,~;k..,;,?;<.a
~
rtn_data = writ e_spi (OXO1 ); /* OXO 1 IS THE C-~ THE SENSOR
THAT RE~,F~kRESS~ . THE VALUE IN
rtn_d&~~.,w~ BE IN THE RANGE OF
-. ‘~
i..$s.
[Link]$yo.. 10 O% FULL SCALE PRESSURE THE
S-.p+I~ THROUGH THE LOOP. THE INITIAL
,s,.
“*~@JYHROUGH THE LOOP, THE DATA
$:$’Y-D IS INDETERMINATE *I
} ,,L>lr).+
4~.J>,r\8
~,:~.’
,\< \.J*t\
*., *.. -.
The next example is cod@:$~@#embly for the MC68HC1 1:
.’.:~:;.
, ~)$
.~..$F
* PORT OFFSETS INTO ,:~~ I/@ NAP
PORTS EQU ~?~’?~<~;’ a $1000 ASS~ THE 1/0 STARTS AT $1000
PORTD EQQ y ‘~?$ $8
J..~’{,,..$
.....
DDRD ~.,+\.,
?@2:k: ‘ ::
SPCR
SPSR ..,,%~$ds: $29
SPDR .yk ,,:%U $2A
~:+.
, ,..~,~
.,3.J@\
,,+;.,>,,.,
,.,>,,
.><*:,,
,J.$),,lt.,:,
,, ORG $EOOO
~~$~~~ INITIALIZE THE 1/0
I+$@bti LDX #PORTS BASE ADDRESS OF THE 1/0
..i,,
LDAA #$29
STAA PORTD, X SS* PD5 = 1, PD3 = 1, PDO = 1
LDAA #$3B
STAA DDRD, X SS* PD5 = 1, pD3 = I, pD~ = ~, pD~ = ~
LDAA #$5E
ST~ SPCR, X EN-LE THE SPI , NAKE MCU THE MASTR,
* SCK = E CLK /4
RTS 1/0 INITIALIZATION IS COMPLETE
MFAX: RMFAXO@ [Link] – TOUCHTONE (602) 2W609 HONG KONG: Motorola Semiconductors H.K. Ltd.; 8B Tai Ping Industrial Park, —
INTERNET [Link] com 51 Tng Kok Road, Tai Po, N.T., Hong Kong. 852-26629298
llllllllllllllllllllllllllllllllllllllllllllllllll