
SP37
Tire Pressure Monitoring Sensor
ROM Library Functions
ROM Library Function Guide
103
Revision 1.0, 2011-12-15
2.29
Erase_UserConfigSector()
2.29.1
Description
This function erases the FLASH user configuration sector located at FLASH address 5780
H
-- 57FF
H
if the
Lockbyte 3 is not set. If Lockbyte 3 is set this function will return -1 without any action.
This function returns -1 and has no effect if executed in DEBUG mode.
Note: The application software has to ensure that FLASH is only programmed or erased when all required
environmental conditions are fulfilled. Special care has to be taken that ambient temperature
T
FL
, supply
voltage
V
batFL
and Endurance E
n
FL
are within specified range (see
).
2.29.2
Actions
•
Erase the FLASH user configuration sector
2.29.3
Prototype
signed char
Erase_UserConfigSector
(void)
2.29.4
Inputs
2.29.5
Outputs
2.29.6
Resource Usage
Table 125
Erase_UserConfigSector: Input Parameters
Register / Address
Type
Name
Description
None
---
---
---
Table 126
Erase_UserConfigSector: Output values
Register/ Address
Name
Type
Description
R7
signed char
Statusbyte
0: success
-1: failed
Table 127
Erase_UserConfigSector: Resources
Type
Used or Modified
Registers
R0, R1, R2, R3, R4, R5, R6, R7
SFR
ACC, B, CRC0, CRC1, CRCC, CRCD, DIVIC, DPH, DPL, PSW, TCON, TH0,
TH1, TL0, TL1
Stack
5 Bytes
1)
1) Two additional bytes, not included here, are needed to call the library function