Data Sheet
MS5837-02BA 
Ultra Small Gel Filled Pressure & Temperature Sensor, with Stainless Steel Cap 
TE CONNECTIVITY SENSORS /// MS5837-02BA     09/2017 
Page 7 
PRESSURE AND TEMPERATURE CALCULATION 
Flow chart for pressure and temperature reading and software compensation 
Size 
 [1] 
[bit] 
min 
C1 
Pressure sensitivity | SENS 
T1 
unsigned int 16 
16 
0 
65535 
46372 
C2 
Pressure offset | OFF 
T1 
unsigned int 16 
16 
0 
65535 
43981 
C3 
Temperature coefficient of pressure sensitivity | TCS 
unsigned int 16 
16 
0 
65535 
29059 
C4 
Temperature coefficient of pressure offset | TCO 
unsigned int 16 
16 
0 
65535 
27842 
C5 
Reference temperature | T 
REF 
unsigned int 16 
16 
0 
65535 
31553 
C6 
Temperature coefficient of the temperature | TEMPSENS 
unsigned int 16 
16 
0 
65535 
28165 
D1 
Digital pressure value 
unsigned int 32 
24 
0 
16777216 
6465444 
D2 
Digital temperature value 
unsigned int 32 
24 
0 
16777216 
8077636 
dT 
Difference between actual and reference temperature  
[2] 
dT 
 = D2 - T 
REF 
 =  
D2 
 -  
C5 * 2 
8 
signed int 32 
25 
-16776960 
16777216 
68 
2000 
= 20.00 °C 
OFF 
Offset at actual temperature  
[3] 
OFF 
= 
OFF 
T1 
+ 
TCO 
* 
dT = 
C2 
* 
2 
17 
+ 
(C4 
* 
dT 
) 
/ 
2 
6 
signed int 64 
41 
-17179344900 
25769410560 
5764707214 
SENS 
Sensitivity at actual temperature  
[4] 
SENS 
= 
SENS 
T1 
+ 
TCS 
* 
dT 
= 
C1 * 2 
16 
+ 
( 
C3 
* 
dT 
) 
/ 
2 
7 
signed int 64 
41 
-8589672450 
12884705280 
3039050829 
110002 
= 1100.02 mbar 
Notes 
[1] 
[2] 
[3] 
[4] 
min and max have to be defined 
min and max have to be defined 
Maximal size of intermediate result during evaluation of variable 
120000 
1000 
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 (10…1200mbar with  
0.01mbar resolution) 
P 
 = D1 * SENS - OFF =  
(D1 * SENS / 2 
21 
 - OFF) / 2 
15 
min and max have to be defined 
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 values for calculation results: 
P 
MIN 
 = 10mbar P 
MAX  
= 2000mbar 
T 
MIN  
= -40°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 
Pressure and temperature value first order 
max 










