
SP37
Tire Pressure Monitoring Sensor
ROM Library Functions
ROM Library Function Guide
108
Revision 1.0, 2011-12-15
2.31.5
Outputs
2.31.6
Resource Usage
2.31.7
Execution Information
Table 134
WriteFlashCodeSectorLine: Output values
Register/ Address
Type
Name
Description
R7
signed char
Statusbyte
0: success
-1: Lockbyte 2 is set (Code Sector Lock), without
writing anything; or the function was called while
the device is in debug Mode.
-2: After data verification, errors are detected
-3: The StartAddress” is not multiple of 32 or the
“StartAddress” is out-of-range (nothing was
performed); or “
Table 135
WriteFlashCodeSectorLine: Resources
Type
Used or Modified
Registers
R0, R1, R2, R3, R4, R5, R6, R7
SFR
ACC, PSW, DPTR, CFG1, TCON, TMOD, TH0, TL0, TH1, TL1, DSR, CRC0, CRC1,
CRCD, CRCC, DIVIC
Stack
5 Bytes
1)
1) Two additional bytes, not included here, are needed to call the library function
Table 136
WriteFlashCodeSectorLine: Execution Time and Charge Consumption
Parameter
Symbol
Values
Unit
Note / Test Condition
Min.
Typ.
Max.
Execution Time
t
–
3850
4317
µs
DIVIC = 00
H
, FLASH written with all bit 1
Charge Consumption
Q
–
7,857
11,379
µC
DIVIC = 00
H
, FLASH written with all bit 1