Comp_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.7

Comp_Temperature()

2.7.1

Description

This function will convert a previously obtained raw temperature value into a compensated temperature value. This
function can be called after a pressure, acceleration or raw temperature measurement to compensate the raw
temperature. Thus, the current ambient temperature is obtained without taking an extra temperature
measurement.
2.7.2

Actions

Compensate raw temperature data using calibration data stored in FLASH.
2.7.3

Prototype

unsigned char Comp_Temperature (signed int idata TempRawIn, signed int idata * TempResult)
2.7.4

Inputs

Table 38
Comp_Temperature: Input Parameters
Register / Address
R6(MSB),
R7(LSB)
R5
2.7.5

Outputs

Table 39
Comp_Temperature: Output values
Register/ Address
R7
*Temp_Result
*Temp_Result+1
ROM Library Function Guide
Type
Name
signed int
TempRawIn
idata
signed int
Temp_Result
idata*
Type
Name
unsigned char StatusByte
signed int
Compensated
Temperature
signed int
Raw Temperature
Tire Pressure Monitoring Sensor
Description
Raw measurement value (gathered from
Meas_Pressure() or Meas_Acceleration() or
Raw_Temperature)
Pointer to an integer array in RAM to receive the
measurement result
Description
0000.0000
: Success
B
xxxx.xxx1
: Underflow of Result
B
xxxx.xx1x
: Overflow of Result
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
56
SP37
ROM Library Functions
Revision 1.0, 2011-12-15

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents