
SP37
Tire Pressure Monitoring Sensor
ROM Library Functions
ROM Library Function Guide
20
Revision 1.0, 2011-12-15
2
ROM Library Functions
The following library functions are available for application usage:
Table 3
ROM Library functions
ROM Library function
Description
Page
Meas_Sensor()
Measures the ambient air pressure or acceleration
Meas_Pressure()
Measures the ambient air pressure
Scale_Pressure()
Scale pressure into a single byte for RF transmission
Meas_Acceleration()
Measures the acceleration
Meas_Temperature()
Measures the ambient temperature
Raw_Temperature()
Measures the raw temperature
Comp_Temperature()
Compensates raw temperature data
Meas_Supply_Voltage()
Measures the battery voltage
Start_Supply_Voltage()
These three functions perform a Battery Voltage
measurement during an RF Transmission.
Trig_Supply_Voltage()
Get_Supply_Voltage()
ADC_Selftest()
Returns the delta of ADC test measurements
Powerdown()
Forces the device to POWER DOWN state
ThermalShutdown()
Forces the device to THERMAL SHUTDOWN state
StartXtalOsc()
Enables the Crystal Oscillator
StopXtalOsc()
Stops the Crystal Oscillator
PLL_Ref_Signal_Check()
Evaluates Crystal Resonator signal
VCO_Tuning()
Tunes the VCO frequency
IntervalTimerCalibration()
Calibrates the Interval Timer precounter
LFBaudrateCalibration()
Calibrates the LF baudrate divider
SMulIntInt()
Multiplies two signed values (16 bit * 16 bit)
UDivLongLong()
Divides two unsigned values (32 bit : 32 bit)
UDivIntInt()
Divides two unsigned values (16 bit : 16 bit)
CRC8_Calc()
Calculates an 8 Bit CRC with polynom 83
H
CRC_Baicheva_Calc()
Calculates an 8 Bit CRC with poylnom 97
H
Read_ID()
Returns the unique device ID
ManuRevNb()
Returns the device revision number
FW_Revision_Nb()
Returns the ROM- and Flash library revision number
Erase_UserConfigSector()
Erases the FLASH user configuration sector
WriteFlashUserConfigSectorLine()
Writes one FLASH line (32 Bytes) in the FLASH user
configuration sector
WriteFlashCodeSectorLine()
Writes one FLASH line (32 Bytes) in the FLASH
Code Sector 0.
FlashSetLock()
Sets the Lockbyte to protect the User Configuration
sector
ECC_Check()
Evaluates the ECC result bit