Atmel Evaluation Kit AT91SAM9X35-EK AT91SAM9X35-EK Data Sheet

Product codes
AT91SAM9X35-EK
Page of 1301
321
SAM9X35 [DATASHEET]
11055E–ATARM–10-Mar-2014
27.4.1.1 SLC/MLC Write Operation with Spare Enable Bit Set
When the SPAREEN field of the PMECC_CFG register is set to one, the spare area of the page is encoded with the
stream of data of the last sector of the page. This mode is entered by writing one in the DATA field of the PMECC_CTRL
register. When the encoding process is over, the redundancy is written to the spare area in user mode, USER field of the
PMECC_CTRL must be set to one.
Figure 27-3. NAND Write Operation with Spare Encoding
27.4.1.2 MLC/SLC Write Operation with Spare Area Disabled
When the SPAREEN field of PMECC_CFG is set to zero the spare area is not encoded with the stream of data. This
mode is entered by writing one to the DATA field of the PMECC_CTRL register.
Figure 27-4. NAND Write Operation
Sector 0
512 or 1024 bytes
Sector 1
Sector 2
Sector 3
Spare
pagesize = n * sectorsize
sparesize
ecc_area
start_addr
end_addr
ECC computation enable signal
Write NAND operation with SPAREEN set to one
Sector 0
512 or 1024 bytes
Sector 1
Sector 2
Sector 3
pagesize = n * sectorsize
ECC computation enable signal
Write NAND operation with SPAREEN set to zero