
SP37
Tire Pressure Monitoring Sensor
ROM Library Functions
ROM Library Function Guide
118
Revision 1.0, 2011-12-15
2.36.2
Actions
•
Compare Value1 with defined thresholds from threshold type 1
•
Compare Value2 with defined thresholds from threshold type 2
•
Return compensated value
2.36.3
Prototype
unsigned char
GetCompValue
(unsigned char code *
TablePointer
, unsigned char
Value1
, unsigned char
Value2
)
2.36.4
Inputs
shows how the compensated value table must appear in FLASH memory.
Table 153
GetCompValue: Input Parameters
Register / Address
Type
Name
Description
R6 (MSB)
R7 (LSB)
unsigned char
code*
TablePointer
Pointer to the first Byte of lookup table
R5
unsigned char Value1
Measured Value1 for comparison with
thresholds from threshold type 1 to select
column
R3
unsigned char Value2
Measured Value2 for comparison with
thresholds from threshold type 2 to select row