beautypg.com

Renesas SH7781 User Manual

Page 1267

background image

24. Multimedia Card Interface (MMCIF)

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

REJ09B0261-0100

No

End of command sequence

Write data to FIFO

Set DATAEN to 1

Yes

DTBUSY detected?

Yes

DBSYI interrupt

detected?

No

Yes

*

CRCERI interrupt

detected?

No

Yes

Note: * Write block size of data (if block size < or = FIFO size) or FIFO size of data (if block size > FIFO size).

Len:

Block length [bytes]

Cap:

FIFO size [bytes]

n (FEI): Number of FIFO empty interrupts (FEI) from the start of read sequence
n (DRPI): Number of data response interrupts (DRPI) from the start of write sequence

Legend:

DTERI interrupt

detected?

Yes

No

DRPI interrupt

detected?

Yes

Cap

× n (FEI)

- Len (1 + n (DRPI))

≥ Len

No

No

Yes

TBNCR = n(DRPI)?

No

Yes

BTI interrupt

detected?

No

Yes

DTI interrupt

detected?

No

Yes

FEI interrupt

detected?

No

Set CMDOFF to 1

Set CMDOFF to 1

Execute CMD12

1

2

Set CMDOFF to 1

Figure 24.20 (4) Example of Operational Flow for Commands with Write Data

(Pre-defined Multiple Block Transfer)