TC1784
Program Memory Unit (PMU)
User´s Manual
5-60
V1.1, 2011-05
PMU, V1.47
5.6.4
Error Correction and Margin Control
Error detection and correction is provided for all read accesses to Program Flash and
Data Flash. The combination of error detection with the also available margin check
provides an excellent verify function for Flash data safety.
5.6.4.1
Dynamic Error Correction
The Flash module supports the following error detection and correction functions for read
accesses to both, the Program Flash as well as the Data Flash:
•
Detection of single-bit errors within 64-bit read data and correction on the fly
•
Detection of double-bit errors
•
Two read error flags in the Flash Status Register FSR, indicating a single-bit error:
– Flag PFSBER indicates, that one (or more) single-bit error was detected and
corrected in the Program Flash
– Flag DFSBER indicates, that one (or more) single-bit error was detected and
corrected in the Data Flash
•
Two read error flags in the Flash Status Register FSR, indicating a double-bit error:
– Flag PFDBER indicates, that one (or more) double-bit error was detected in the
Program Flash
– Flag DFDBER indicates, that one (or more) double-bit error was detected in the
Data Flash.
•
An error interrupt is generated in case of any single-bit error, if enabled in the FCON
register.
•
An error interrupt is generated in case of any double-bit error, if enabled in the FCON
register. This interrupt shall only be used for margin check, when trap is disabled
•
A bus error trap is reported in case of a double-bit error during access to
Program Flash or Data Flash, as soon as the disturbed instruction or data is
transferred to the PMI or DMI unit via the LMB bus. This trap can be disabled for
margin checks.
Note: A single-bit or a double-bit error may also be caused by a disturbed EC-code with
correct 64-bit data, or by a wrong selection of access time with wait states.
Error detection and correction is controlled using a SEC-DED algorithm that results in an
8-bit error correction code (ECC) for every 64-bit data in PFlash and in DFlash. This 8-
bit ECC is dynamically generated during write operations to the assembly buffer and
then programmed to the Flash array with the Write Page command. For every read
access to the Flash the 64-bit read data is fetched together with its associated 8-bit ECC.
The ECC algorithm is selected in such a way, that all zero data have an all zero ECC
and all one data have an all one ECC. It is thus supported, that erased locations
(all zero) have a correct EC-code, and it is also supported to re-program a Data Flash
page to all ones to indicate a special page, e.g. with an invalidation stamp. This over-
program operation also results in a correct EC-code (all ones).
Содержание TC1784
Страница 1: ...User s Manual V1 1 2011 05 Microcontrollers TC1784 32 Bit Single Chip Microcontroller ...
Страница 3: ...User s Manual V1 1 2011 05 Microcontrollers TC1784 32 Bit Single Chip Microcontroller ...
Страница 950: ...TC1784 Direct Memory Access Controller DMA User s Manual 11 132 V1 1 2011 05 DMA V3 03 ...
Страница 1949: ...TC1784 General Purpose Timer Array GPTA v5 User s Manual 21 297 V1 1 2011 05 GPTA v5 V1 14 ...
Страница 2350: ...w w w i n f i n e o n c o m Published by Infineon Technologies AG Doc_Number ...