Renesas SH7781 User Manual

Page 1281

Advertising
background image

24. Multimedia Card Interface (MMCIF)

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

REJ09B0261-0100

• An error in a command sequence (during data transmission) is detected through the CRC error

flag (CRCERI) or data timeout error flag. When these flags are detected, set the CMDOFF bit
in OPCR to 1, issue CMD12 (Stop Tran in SPI mode), and suspend the command sequence.

• Confirm there is no data busy state. Detect end of the data busy state by the data busy end flag

(DBSYI).

• Detect whether in the data busy state through the DTBUSY bit in CSTR after data transfer end

(after DRPI is detected). If still in the data busy state, wait for the DBSY flag to confirm that
the data busy state has ended.

• Set the CMDOFF bit to 1 and end the command sequence.
• Set the CMDOFF bit to 1 and clear DMACR to H'00 if a CRC error (CRCERI) or a command

timeout error (CTERI) occurs in the command response reception.

• Set the CMDOFF bit to 1, clear DMACR to H'00, and clear FIFO if a CRC error (CRCERI) or

a data timeout error (DTERI) occurs in the write data transmission.

Note: Access from the DMAC to FIFO must be done in bytes or words.

Advertising