
SP37
Tire Pressure Monitoring Sensor
ROM Library Functions
ROM Library Function Guide
54
Revision 1.0, 2011-12-15
2.6
Raw_Temperature()
2.6.1
Description
This function performs a raw temperature measurement. The Raw Temperature result is uncompensated and may
be used as input for
,
and
.
2.6.2
Actions
•
Measures the temperature sensor with 2 ADC samples for averaging (arithmetic mean)
2.6.3
Prototype
unsigned char
Raw_Temperature
( signed int idata *
TempResult
)
2.6.4
Inputs
2.6.5
Outputs
Table 34
Raw_Temperature: Input Parameters
Register / Address
Type
Name
Description
R7
signed int
idata*
TempResult
Pointer to an integer array in RAM to receive the
measurement result
Table 35
Raw_Temperature: Output values
Register/ Address
Type
Name
Description
R7
unsigned char StatusByte
0000.0000
B
: Success
xxxx.xxx1
B
: Underflow of ADC Result
xxxx.xx1x
B
: Overflow of ADC Result
xxx1.xxxx
B
: VMIN warning
*Temp0
signed int
Raw Temperature
16 Bit scaled signed ADC Result Value