Figure 27.13 nand command access (flash read) – Renesas SH7781 User Manual

Page 1405

Advertising
background image

27. NAND Flash Memory Controller (FLCTL)

Rev.1.00 Jan. 10, 2008 Page 1375 of 1658

REJ09B0261-0100

Start of command access (flash read)

FLTRCR.TREND = B'1?

End of command access (flash read)

Yes

No

Common control register (FLCMNCR)
ACM[1:0] = B'00 (command access mode)
CE0 = B'1 (enable the chip)
TYPESEL = B'1 (select NAND-type flash memory)

Command control register (FLCMDCR)
DOCMD1 = B'1 (execute first command stage)
DOADR = B'1 (execute address stage)
ADRMD = B'1 (address register value is output as
memory address)
ADRCNT[1:0] = B'10 (issue 3-byte address)
DOSR = B'1 (perform status read)

Command code register (FLCMCDR)
CMD[7:0] = H'00 (flash read command)

Address register (FLADR)
Set addresses to ADR[7:0], ADR[15:8], and ADR[23:16]

Data counter register (FLDTCNTR)
Specify number of bytes of read data to DTCNT[11:0]

Interrupt DMA control register (FLINTDMACR)
Set enable bit of DMA transfer or interrupt request to 1

Transfer control register (FLTRCR)
TRSTRT = B'1 (start flash memory access)

Perform flash memory reading
Issue first command
Issue address
Issue second command
Read status

End of flash memory access
FLTRCR.TREND = B'0 (clear processing end flag)
Read status
Check FLBSYCNT.STAT[7:0]

Figure 27.13 NAND Command Access (Flash Read)

Advertising