
181
AT85C51SND3Bx
7632A–MP3–03/06
Figure 81. Nand Flash Write Protection Scheme
Since the NFWP signal state is part of the device status, the user can detect a fault be
reading it.
ECC Error Management When an ECC error is detected, the ECCERRI flag is set in NFINT and the 4-byte ECC
error FIFO is updated. The FIFO content is read byte by byte using the NFERR register
as detailed in
Table 199.
First byte of the FIFO returns a status if the error can or can not be corrected. If it can no
be corrected other 3-byte FIFO are cleared, If it can be corrected, the following 3 bytes
return the address of the byte in error within the page (2 bytes) and the address of the
bit in error within the byte (1 byte).
For example, if the byte read at offset 1921 (starting from 0) in a 2K page is E3 (wrong)
instead of A3:
• byte offset MSB will be 07h
• byte offset LSB will be 81h
• bit offset will be 06h
Table 199. ECC Error Descriptor
protected
FPB
LPB
protected
FPB
LPB
protected
FPB < LPB FPB > LPB
Block 0 Block 0
protected
FPB = LPB
Default
Block 0
FPB
LPB
Offset Description
0
Error Identification Byte
Refer to Table 200 for information on byte content.
1
First 256-byte group of the sector
Byte offset
2
Second 256-byte group of the sector
Byte offset
3
Bit offset in the byte
Refer to Table 200 for information on byte content.
Table 200. ECC Error Identification Byte
7 6 5 4 3 2 1 0
0 0 0 0 SHERRID1 SHERRID0 FHERRID1 FHERRID0
Kommentare zu diesen Handbüchern