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.

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

attribute memory space makes it possible to use a different timing configuration of the<br />

FSMC, which can be used to implement the prewait functionality needed by some<br />

NAND Flash memories (see details in Section 32.6.5: NAND Flash pre-wait<br />

functionality on page 1355).<br />

4. The controller waits for the NAND Flash to be ready (R/NB signal high) to become<br />

active, before starting a new access (to same or another memory bank). While waiting,<br />

the controller maintains the NCE signal active (low).<br />

5. The CPU can then perform byte read operations in the common memory space to read<br />

the NAND Flash page (data field + Spare field) byte by byte.<br />

6. The next NAND Flash page can be read without any CPU command or address write<br />

operation, in three different ways:<br />

– by simply performing the operation described in step 5<br />

– a new random address can be accessed by restarting the operation at step 3<br />

– a new command can be sent to the NAND Flash device by restarting at step 2<br />

32.6.5 NAND Flash pre-wait functionality<br />

Some NAND Flash devices require that, after writing the last part of the address, the<br />

controller wait for the R/NB signal to go low as shown in Figure 423.<br />

Figure 423. Access to non ‘CE don’t care’ NAND-Flash<br />

NCE<br />

CLE<br />

ALE<br />

NWE<br />

NOE<br />

I/O[7:0]<br />

R/NB<br />

High<br />

0x00 A7-A0 A15-A8 A23-A16 A25-A14<br />

1. CPU wrote byte 0x00 at address 0x7001 0000.<br />

2. CPU wrote byte A7-A0 at address 0x7002 0000.<br />

3. CPU wrote byte A15-A8 at address 0x7002 0000.<br />

4. CPU wrote byte A23-A16 at address 0x7002 0000.<br />

5. CPU wrote byte A25-A24 at address 0x7802 0000: FSMC performs a write access using FSMC_PATT2<br />

timing definition, where ATTHOLD ≥ 7 (providing that (7+1) × HCLK = 112 ns > tWB max). This guarantees<br />

that NCE remains low until R/NB goes low and high again (only requested for NAND Flash memories<br />

where NCE is not don’t care).<br />

1355/1416 Doc ID 018909 Rev 3<br />

tWB<br />

(1) (2) (3) (4) (5)<br />

NCE must stay low<br />

tR<br />

ai17733b

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

Saved successfully!

Ooh no, something went wrong!