
SP37
Tire Pressure Monitoring Sensor
ROM Library Functions
ROM Library Function Guide
111
Revision 1.0, 2011-12-15
2.33
ECC_Check()
2.33.1
Description
This function evaluates the
E
rror
C
ode
C
orrection (ECC) result bit. This bit shows if an error in the read/executed
FLASH has been detected since the last call of this function.
Note: When a FLASH byte is programmed, the ECC unit generates and stores four ECC bits. With these additional
bits the ECC is able to correct single bit errors and detects two bit errors. The ECC is calculated from
read/executed FLASH and the result is stored in the ECC result bit. It cannot distinguish between a single
bit or two bit error.
2.33.2
Actions
•
Check the ECC result bit
2.33.3
Prototype
signed char
ECC_Check
(void)
2.33.4
Inputs
2.33.5
Outputs
2.33.6
Resource Usage
Table 141
ECC_Check: Input Parameters
Register / Address
Type
Name
Description
None
---
---
---
Table 142
ECC_Check: Output values
Register/ Address
Type
Name
Description
R7
signed char
Statusbyte
0: success
-1: ECC error detected
Table 143
ECC_Check: Resources
Type
Used or Modified
Registers
R7
SFR
ACC, PSW
Stack
0 Bytes
1)
1) Two additional bytes, not included here, are needed to call the library function