SP37
Tire Pressure Monitoring Sensor
ROM Library Functions
ROM Library Function Guide 98 Revision 1.0, 2011-12-15
2.26.6 Resource Usage
2.26.7 Execution Information
2.26.8 Code Example
Figure 12 Code example for usage of Read_ID()
Table 115 Read_ID: Resources
Type Used or Modified
Registers R0, R3, R4, R5, R6, R7
SFR ACC, DPH, DPL, PSW
Stack 2 Bytes
1)
1) Two additional bytes, not included here, are needed to call the library function
Table 116 Read_ID: Execution Time and Charge Consumption
Parameter Symbol Values Unit Note / Test Condition
Min. Typ. Max.
Execution Time
t – 32 35 µs DIVIC = 00
H
Charge Consumption Q – 0,048 0,082 µC DIVIC = 00
H
// Library function prototypes
#include "SP37_ROMLibrary.h"
// ID structure is defined in SP37_ROMLibrary.h
idata ID_Struct ID_Result;
void main()
{
// Read Sensor ID function call
Read_ID(&ID_Result);
}