of transfer. You must consider that transfer modes can be changed at logical data transfer boundaries. For
example:
• At the beginning or end of a page in case of single page read or write.
• At the beginning or end of a complete multi-page pipeline read or write command.
transfer_spare_reg and MAP10 Transfer Mode Commands
The following table lists the functionality of the MAP10 transfer mode commands, and their mappings to
the
transfer_spare_reg
register in the
config
group.
Refer to
MAP10 Commands
for detailed information about the MAP10 commands.
Table 10-19: transfer_spare_reg and MAP10 Transfer Mode Commands
Resulting NAND Flash Controller Mode
MAP10 Transfer Mode Commands
transfer_spare_reg
Main
(27)
0x42
0
Spare
0x41
0
Main+spare
0x43
0
Main+spare
(27)
0x42
1
Spare
0x41
1
Main+spare
0x43
1
Related Information
on page 10-9
Configure for Default Area Access
You only need to configure for default area access if the transfer mode was previously changed to spare area
or main+spare area. To configure default area access:
1. Write to the command register, setting the
CMD_MAP
field to 2 and the
BLK_ADDR
field to any block.
2. Write 0x42 to the
Data
register.
The NAND flash controller determines the default area transfer mode from the setting of the
transfer_spare_reg
register in the
config
group. If it is set to 1, then the transfer mode becomes
main+spare area, otherwise it is main area.
Configure for Spare Area Access
To access only the spare area of the flash device, use the MAP10 command to set up the NAND flash controller
to read or write only the spare area on the device. After the flash controller is set up, use MAP01 read and
write commands to access the spare area of the appropriate block and page addresses. To configure the
NAND flash controller to access the spare area only, perform the following steps:
1. Write to the command register, setting the
CMD_MAP
field to 2 and the
BLK_ADDR
field to the target
block.
(27)
Default access mode (0x42) maps to either main (only) or main+spare mode, depending on the value of
transfer_spare_reg
.
NAND Flash Controller
Altera Corporation
cv_54010
transfer_spare_reg and MAP10 Transfer Mode Commands
10-34
2013.12.30