Meas_Temperature(); Description; Actions; Prototype - Infineon SP37 Function Manual

High integrated single-chip tpms sensor with a low power embedded microcontroller and wireless fsk/ask uhf transmitter
Table of Contents

Advertisement

2.5

Meas_Temperature()

2.5.1

Description

This function performs a temperature measurement and returns both raw and compensated temperature results.
The Compensated Temperature result is compensated for sensitivity and offset errors. The Raw Temperature
result is uncompensated and may be used as input for Meas_Sensor(), Meas_Pressure(),
and Comp_Temperature().
2.5.2

Actions

Measures the temperature sensor with 2 ADC samples for averaging (arithmetic mean).
Compensate for offset using calibration data stored in FLASH (Compensated Temperature)
2.5.3

Prototype

unsigned char Meas_Temperature ( signed int idata * Temp_Result )
2.5.4

Inputs

Table 30
Meas_Temperature: Input Parameters
Register / Address
R7
2.5.5

Outputs

Table 31
Meas_Temperature: Output values
Register/ Address
R7
*Temp_Result+0
*Temp_Result+1
ROM Library Function Guide
Type
Name
signed int
Temp_Result
idata*
Type
Name
unsigned char StatusByte
signed int
Compensated
Temperature
signed int
Raw Temperature
Tire Pressure Monitoring Sensor
Description
Pointer to an integer array in RAM to receive the
measurement result
Description
0000.0000
: Success
B
xxxx.xxx1
: Underflow of ADC Result
B
xxxx.xx1x
: Overflow of ADC Result
B
xxx1.xxxx
: VMIN warning
B
8000
= -256.0 °C
H
0000
= 0.0 °C
H
7FFF
= 255.9921875 °C
H
( = 256 °C - 1 LSB where 1 LSB = 1/128 °C)
16 Bit scaled signed ADC Result Value
51
SP37
ROM Library Functions
Meas_Acceleration()
Revision 1.0, 2011-12-15

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents