
SP37
Tire Pressure Monitoring Sensor
ROM Library Functions
ROM Library Function Guide
31
Revision 1.0, 2011-12-15
2.2
Meas_Pressure()
2.2.1
Description
This function performs a pressure sensor measurement.
The result can be either:
•
Compensated for sensitivity, offset and temperature
•
Output as raw value without performing the compensation
The function can measure pressure with up to 64 samples at a specified sample rate. The function will return the
maximum or average (arithmetic mean) pressure value in order to compensate for noise. The function performs a
new temperature measurement for compensating the pressure measurements, unless a previously measured raw
temperature value is supplied. Number of samples and raw temperature source are both determined by
SensorConfig
. SampleRate controls how frequently the measurement acquisitions occur and will not influence
the measurement result under stable input pressure conditions. The device is set to IDLE mode during the delay
between measurement acquisitions.
SensorConfig
can be configured to automatically determine the high/low
pressure range. The choice of the pressure measurement range can also be performed manually.The pressure
hysteresis thresholds detection can be selected: either predefined from Infineon factory-default setting, or
specified when calling this function - see PressResult.
2.2.2
Actions
•
Measure pressure sensor with channel and number of samples given by
SensorConfig
•
Check wire bonds between the ASIC and the sensor die
•
Average the measurement result(s), or (optionally) use the maximum raw measurement, to obtain a raw
pressure value
•
(optionally) Switch between Low and High pressure range automatically, using configured thresholds
•
(optionally) Perform a raw temperature measurement
•
(optionally) Compensate the raw pressure value
2.2.3
Prototype
unsigned char
Meas_Pressure
(unsigned int
SensorConfig
, unsigned char
SampRate
, signed int idata
*
PressResult
)