2.33
ECC_Check()
2.33.1
Description
This function evaluates the Error Code Correction (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
Table 141
ECC_Check: Input Parameters
Register / Address
None
2.33.5
Outputs
Table 142
ECC_Check: Output values
Register/ Address
R7
2.33.6
Resource Usage
Table 143
ECC_Check: Resources
Type
Used or Modified
Registers
R7
SFR
ACC, PSW
Stack
0 Bytes
1) Two additional bytes, not included here, are needed to call the library function
ROM Library Function Guide
Type
Name
---
---
Type
Name
signed char
Statusbyte
1)
Tire Pressure Monitoring Sensor
Description
---
Description
0: success
-1: ECC error detected
111
SP37
ROM Library Functions
Revision 1.0, 2011-12-15