Download Print this page

Freescale Semiconductor MPC8313E PowerQUICC II Pro Family Reference Manual page 544

Integrated
Hide thumbs Also See for MPC8313E PowerQUICC II Pro:

Advertisement

Enhanced Local Bus Controller
10.5.4.5
NAND Flash Block Erase Command Sequence Example
An example of configuring FCM to execute a block erase command to large-page NAND Flash is shown
in
Table
10-48. This sequence does not require use of the shared FCM buffer RAM, but returns with the
erase status in MDR[AS0]. The sequence is initiated by writing FMR[OP] = 10, and issuing a special
operation to the bank. At the conclusion of the sequence, eLBC will issue a command complete interrupt
(LTESR[CC]) if interrupts are enabled.
Note that operations specified by OP3 and OP4 (status read) should never be skipped while erasing a
NAND Flash device, because, in case that happens, contention may arise on LGPL4. A possible case is
that the next transaction from eLBC may try to use that pin as an output and since the NAND Flash device
might already be driving it, contention will occur. In case OP3 and OP4 operations are skipped, it may also
happen that a new command is issued to the NAND Flash device even when the device has not yet finished
processing the previous request. This may also result in unpredictable behavior.
Table 10-48. FCM Register Settings for Block Erase (OR n [PGS] = 1)
Register
FCR
FBAR
(e.g. block 0x00010AB4)
FPAR
FBCR
MDR
FIR
10.5.4.6
NAND Flash Program Command Sequence Example
An example of configuring FCM to execute a program command to large-page NAND Flash is shown in
Table
10-49. This sequence writes an entire page (main and spare region) from the shared FCM buffer
RAM, generating ECC as it proceeds. The shared buffer (buffer 1 for page index 5) must be initialized by
software prior to starting the sequence. The sequence is initiated by writing FMR[OP] = 10, and issuing a
special operation to the bank. At the conclusion of the sequence, eLBC will issue a command complete
interrupt (LTESR[CC]) if interrupts are enabled. The status of the programming operation is returned in
MDR[AS0].
Note that operations specified by OP5 and OP6 (status read) should never be skipped while programming
a NAND Flash device, because, in case that happens, contention may arise on LGPL4. A possible case is
that the next transaction from eLBC may try to use that pin as an output and since the NAND Flash device
might already be driving it, contention will occur. In case OP5 and OP6 operations are skipped, it may also
MPC8313E PowerQUICC™ II Pro Integrated Processor Family Reference Manual, Rev. 2
10-96
Initial Contents
0x6070D000
CMD0 = 0x60 = block address entry;
CMD1 = 0x70 = read status
CMD2 = 0xD0 = erase block;
block index
BLK locates index of 128-Kbyte block
0x00000000
PI = 0 to locate block boundary
unused
returns with AS0 holding erase status
0x426DB000
OP0 = CM0 = command 0;
OP1 = PA = page address;
OP2 = CM2 = command 2;
OP3 = CW1 = wait on Flash ready and issue command 1;
OP4 = RS = read erase status into MDR[AS0];
OP5–OP7 = NOP
Description
Freescale Semiconductor

Advertisement

loading

This manual is also suitable for:

Mpc8313 powerquicc ii pro