1-Bit Ecc Programming Guide - Samsung S5PC110 Manual

Risc microprocessor
Table of Contents

Advertisement

S5PC110_UM

4.3.6 1-BIT ECC PROGRAMMING GUIDE

1. To use SLC ECC in software mode, reset the ECCType to '0' (enable SLC ECC)'. ECC module generates
ECC parity code for all read / write data when MainECCLock (NFCON[7]) and SpareECCLock (NFCON[6])
are unlocked('0'). You must reset ECC value. To reset ECC value write the InitMECC (NFCONT[5]) and
InitSECC (NFCON[4]) bit as '1' and clear the MainECCLock (NFCONT[7]) bit to '0'(Unlock) before reading or
writing data.
MainECCLock (NFCONT[7]) and SpareECCLock(NFCONT[6]) bits control whether ECC Parity code is
generated or not.
2. The ECC module generates ECC parity code on register NFMECC0/1 whenever data is read or written.
3. After you complete reading or writing one page (not including spare area data), set the MainECCLock bit to '1'
(Lock). ECC Parity code is locked and the value of the ECC status register does not change.
4. To generate spare area ECC parity code, Clear SpareECCLock (NFCONT[6]) bit as '0' (Unlock).
5. The spare area ECC module generates ECC parity code on register NFSECC whenever data is read or
written.
6. After you complete reading or writing spare area, set the SpareECCLock bit to '1' (Lock). ECC Parity code is
locked and the value of the ECC status register will not be changed.
7. From now on, you can use these values to record to the spare area or check the bit error.
8. For example, to check the bit error of main data area on page read operation, you must move the ECC parity
codes (is stored to spare area) to NFMECCD0 and NFMECCD1 after ECC codes for main data area is
generated. From this point, the NFECCERR0 and NFECCERR1 have the valid error status values.
NOTE: NFSECCD is for ECC in the spare area (Usually, the user will write the ECC value generated from main data area to
spare area, of which the value will be the same as NFMECC0/1) which is generated from the main data area.
4 NAND FLASH CONTROLLER
4-7

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents