Data Sheet

MS5837-30BA
Ultra Small Gel Filled Pressure Sensor
SENSOR SOLUTIONS /// MS5837-30BA
10/11/2015
7
PRESSURE AND TEMPERATURE CALCULATION
Flow chart for pressure and temperature reading and software compensation.
Size
[1]
[bit]
min
max
C1
Pressure sensitiv ity | SENS
T1
unsigned int 16
16
0
65535
34982
C2
Pressure of f set | OFF
T1
unsigned int 16
16
0
65535
36352
C3
Temperature coef f icient of pressure sensitiv ity | TCS
unsigned int 16
16
0
65535
20328
C4
Temperature coef f icient of pressure offset | TCO
unsigned int 16
16
0
65535
22354
C5
Ref erence temperature | T
REF
unsigned int 16
16
0
65535
26646
C6
Temperature coef f icient of the temperature | TEMPSENS
unsigned int 16
16
0
65535
26146
D1
Digital pressure v alue
unsigned int 32
24
0
16777215
4958179
D2
Digital temperature value
unsigned int 32
24
0
16777215
6815414
dT
Dif f erence between actual and ref erence temperature
[2]
dT
= D2 - T
REF
=
D2
-
C5 * 2
8
signed int 32
25
-16776960
16777215
-5962
1981
= 19.81 °C
OFF
Of f set at actual temperature
[3]
OFF
=
OFF
T1
+
TCO
*
dT =
C2
*
2
16
+
(C4
*
dT
)
/
2
7
signed int 64
41
-17179344900
25769410560
2381326464
SENS
Sensitiv ity at actual temperature
[4]
SENS
=
SENS
T1
+
TCS
*
dT
=
C1 * 2
15
+
(
C3
*
dT
)
/
2
8
signed int 64
41
-8589672450
12884705280
1145816755
39998
= 3999.8 mbar
Notes
[1]
[2]
[3]
[4]
min and max have to be def ined
min and max hav e to be def ined
Maximal size of intermediate result during ev aluation of variable
300000
0
58
P
Recommended
variable type
Description | Equation
signed int 32
Actual temperature (-40…85°C with 0.01°C resolution)
TEMP = 20°C+dT*TEMPSENS = 2000+dT *C6 /2
23
Read digital pressure and temperature data
signed int 32
Temperature compensated pressure (0…30 bar with
0.25mbar resolution)
P
= D1 * SENS - OFF =
(D1 * SENS / 2
21
- OFF) / 2
13
min and max hav e to be def ined
Convert calibration data into coefficients (see bit pattern of W1 to W4)
Variable
Example /
Typical
Value
Calculate temperature compensated pressure
8500
-4000
TEMP
41
Start
Maximum v alues for calculation results:
P
MIN
= 0 bar P
MAX
= 30 bar
T
MIN
= -20°C T
MAX
= 85°C T
REF
= 20°C
Read calibration data (factory calibrated) from PROM
Read digital pressure and temperature data
Calculate temperature
Calculate temperature compensated pressure
Display pressure and temperature value