09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>RM0090</strong> Flexible static memory controller (FSMC)<br />

Figure 422. NAND/PC Card controller timing for common memory access<br />

HCLK<br />

A[25:0]<br />

NCEx<br />

NREG,<br />

NIOW,<br />

NIOR<br />

NWE,<br />

NOE (1)<br />

write_data<br />

read_data<br />

High<br />

1. NOE remains high (inactive) during write access. NWE remains high (inactive) during read access.<br />

32.6.4 NAND Flash operations<br />

MEMxSET + 1 MEMxWAIT + 1 MEMxHOLD + 1<br />

MEMxHIZ<br />

i15570b<br />

The command latch enable (CLE) and address latch enable (ALE) signals of the NAND<br />

Flash device are driven by some address signals of the FSMC controller. This means that to<br />

send a command or an address to the NAND Flash memory, the CPU has to perform a write<br />

to a certain address in its memory space.<br />

A typical page read operation from the NAND Flash device is as follows:<br />

1. Program and enable the corresponding memory bank by configuring the FSMC_PCRx<br />

and FSMC_PMEMx (and for some devices, FSMC_PATTx, see Section 32.6.5: NAND<br />

Flash pre-wait functionality on page 1355) registers according to the characteristics of<br />

the NAND Flash (PWID bits for the databus width of the NAND Flash, PTYP = 1,<br />

PWAITEN = 1, PBKEN = 1, see section Common memory space timing register 2..4<br />

(FSMC_PMEM2..4) on page 1361 for timing configuration).<br />

2. The CPU performs a byte write in the common memory space, with data byte equal to<br />

one Flash command byte (for example 0x00 for Samsung NAND Flash devices). The<br />

CLE input of the NAND Flash is active during the write strobe (low pulse on NWE), thus<br />

the written byte is interpreted as a command by the NAND Flash. Once the command<br />

is latched by the NAND Flash device, it does not need to be written for the following<br />

page read operations.<br />

3. The CPU can send the start address (STARTAD) for a read operation by writing the<br />

required bytes (for example four bytes or three for smaller capacity devices),<br />

STARTAD[7:0], STARTAD[15:8], STARTAD[23:16] and finally STARTAD[25:24] for<br />

64 Mb x 8 bit NAND Flash) in the common memory or attribute space. The ALE input of<br />

the NAND Flash device is active during the write strobe (low pulse on NWE), thus the<br />

written bytes are interpreted as the start address for read operations. Using the<br />

Valid<br />

Doc ID 018909 Rev 3 1354/1416

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!