Section 31 Multimedia Card Interface (MMCIF)
Rev. 1.00 Oct. 01, 2007 Page 1354 of 1956
REJ09B0256-0100
31.5.2
Operation in Write Sequence
To transfer data using the DMAC, set MMCIF (DMACR) after setting the DMAC.
When using DMA, it is possible to process the inter-block interrupt by hardware in pre-defined
multiblock transfer by setting the AUTO bit in DMACR to 1. Figure 31.20 shows an example of
the operational flow for a pre-defined multiblock write sequence in MMC mode using auto-mode.
•
Clear FIFO.
•
Set the block number to TBNCR.
•
Set the START bit in CMDSTRT to 1 and command transmission will begin.
•
Command response is received from the card.
•
If the card does not return the command response, the command response is detected through
the command timeout error (CTERI).
•
Set the DMACR and write data in FIFO.
•
Confirm the DMAC transfer completion and clear the DMAEN bit in DMACR to 0.
•
The end of the command sequence is detected by poling the BUSY flag in CSTR or through
the pre-defined multiblock transfer end flag (BTI).
•
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, and suspend the command sequence.
•
Confirm there is no data busy condition. Detect the data busy state through the data busy end
flag (DBSYI).
•
Detect whether the current state is the data busy state through the DTBUSY bit in CSTR after
the data transfer end (after DRPI detection). If it is still the data busy state, use the DBSYI flag
to confirm the end of the data busy condition.
•
Set the CMDOFF bit to 1 and end the command sequence.
•
Set the CMDOFF bit to 1 when a CRC error (CRCERI) or command timeout error (CTERI)
occurs in the command response reception.
•
Set the CMDOFF bit to 1, clear the DMACR to H'00, and clear FIFO when a CRC error
(CRCERI) or data timeout error (DTERI) occurs in the write data transmission.
Note: Access from the DMAC to FIFO must be done in bytes or words.
Summary of Contents for SH7763
Page 2: ...Rev 1 00 Oct 01 2007 Page ii of lxvi ...
Page 122: ...Section 2 Programming Model Rev 1 00 Oct 01 2007 Page 56 of 1956 REJ09B0256 0100 ...
Page 144: ...Section 3 Instruction Set Rev 1 00 Oct 01 2007 Page 78 of 1956 REJ09B0256 0100 ...
Page 170: ...Section 4 Pipelining Rev 1 00 Oct 01 2007 Page 104 of 1956 REJ09B0256 0100 ...
Page 282: ...Section 7 Caches Rev 1 00 Oct 01 2007 Page 216 of 1956 REJ09B0256 0100 ...
Page 378: ...Section 9 Interrupt Controller INTC Rev 1 00 Oct 01 2007 Page 312 of 1956 REJ09B0256 0100 ...
Page 514: ...Section 12 DDR SDRAM Interface DDRIF Rev 1 00 Oct 01 2007 Page 448 of 1956 REJ09B0256 0100 ...
Page 630: ...Section 13 PCI Controller PCIC Rev 1 00 Oct 01 2007 Page 564 of 1956 REJ09B0256 0100 ...
Page 710: ...Section 16 Clock Pulse Generator CPG Rev 1 00 Oct 01 2007 Page 644 of 1956 REJ09B0256 0100 ...
Page 732: ...Section 17 Watchdog Timer and Reset WDT Rev 1 00 Oct 01 2007 Page 666 of 1956 REJ09B0256 0100 ...
Page 752: ...Section 18 Power Down Mode Rev 1 00 Oct 01 2007 Page 686 of 1956 REJ09B0256 0100 ...
Page 772: ...Section 19 Timer Unit TMU Rev 1 00 Oct 01 2007 Page 706 of 1956 REJ09B0256 0100 ...
Page 824: ...Section 21 Compare Match Timer CMT Rev 1 00 Oct 01 2007 Page 758 of 1956 REJ09B0256 0100 ...
Page 1124: ...Section 26 I 2 C Bus Interface IIC Rev 1 00 Oct 01 2007 Page 1058 of 1956 REJ09B0256 0100 ...
Page 1350: ...Section 30 SIM Card Module SIM Rev 1 00 Oct 01 2007 Page 1284 of 1956 REJ09B0256 0100 ...
Page 1484: ...Section 33 Audio Codec Interface HAC Rev 1 00 Oct 01 2007 Page 1418 of 1956 REJ09B0256 0100 ...
Page 1560: ...Section 35 USB Host Controller USBH Rev 1 00 Oct 01 2007 Page 1494 of 1956 REJ09B0256 0100 ...
Page 1720: ...Section 37 LCD Controller LCDC Rev 1 00 Oct 01 2007 Page 1654 of 1956 REJ09B0256 0100 ...
Page 2025: ......
Page 2026: ...SH7763 Hardware Manual ...