EasyManua.ls Logo

Infineon SP37 - Meas_Acceleration(); Description; Actions; Prototype

Infineon SP37
135 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
SP37
Tire Pressure Monitoring Sensor
ROM Library Functions
ROM Library Function Guide 45 Revision 1.0, 2011-12-15
2.4 Meas_Acceleration()
2.4.1 Description
This function performs an acceleration 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 acceleration with up to 64 samples at a specified sample rate. The function will return
the average (arithmetic mean) acceleration value in order to compensate for noise. Optionally, this function can
return the maximum value of the samples. The function performs a new temperature measurement for
compensating the acceleration measurements, unless a previously measured raw temperature value is supplied.
The number of samples and the 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 acceleration conditions. The device is set to IDLE mode during the delay between measurement
acquisitions.
2.4.2 Actions
• Measure acceleration sensor with channel and number of samples given by SensorConfig
• Check wire bonds between the ASIC and the sensor die & sensor beam integrity
• Average the measurement(s), or (optionally) use the maximum raw measurement, to obtain a raw acceleration
value
• (optionally) Perform a raw temperature measurement
• (optionally) Compensate the raw acceleration value
2.4.3 Prototype
unsigned char Meas_Acceleration (unsigned int SensorConfig, unsigned char SampRate, signed int idata *
AccelResult )

Table of Contents