Erase_Userconfigsector(); Description; Actions; Prototype - Infineon SP37 Function Manual

High integrated single-chip tpms sensor with a low power embedded microcontroller and wireless fsk/ask uhf transmitter
Table of Contents

Advertisement

2.29

Erase_UserConfigSector()

2.29.1

Description

This function erases the FLASH user configuration sector located at FLASH address 5780
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
V
voltage
and Endurance E
batFL
2.29.2

Actions

Erase the FLASH user configuration sector
2.29.3

Prototype

signed char Erase_UserConfigSector (void)
2.29.4

Inputs

Table 125
Erase_UserConfigSector: Input Parameters
Register / Address
None
2.29.5

Outputs

Table 126
Erase_UserConfigSector: Output values
Register/ Address
R7
2.29.6

Resource Usage

Table 127
Erase_UserConfigSector: Resources
Type
Registers
SFR
Stack
1) Two additional bytes, not included here, are needed to call the library function
ROM Library Function Guide
n
are within specified range (see [1]).
FL
Type
Name
---
---
Name
Type
signed char
Statusbyte
Used or Modified
R0, R1, R2, R3, R4, R5, R6, R7
ACC, B, CRC0, CRC1, CRCC, CRCD, DIVIC, DPH, DPL, PSW, TCON, TH0,
TH1, TL0, TL1
1)
5 Bytes
Tire Pressure Monitoring Sensor
Description
---
Description
0: success
-1: failed
103
SP37
ROM Library Functions
-- 57FF
if the
H
H
T
, supply
FL
Revision 1.0, 2011-12-15

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents