Section 31 Multimedia Card Interface (MMCIF)
Rev. 1.00 Oct. 01, 2007 Page 1351 of 1956
REJ09B0256-0100
31.5
Operations when Using DMAC
31.5.1
Operation in Read Sequence
To transfer data using the DMAC, set MMCIF (DMACR) after setting the DMAC. Transmit the
read command after setting DMACR.
When using DMA, next block read is resumed automatically when the AUTO bit in DMACR is
set to 1 under the condition that normal read is detected after a block transfer end of a pre-defined
multiblock transfer. Figure 31.19 shows an example of the operational flow for a pre-defined
multiblock read in MMC mode using auto-mode.
•
Clear FIFO.
•
Set the block number to TBNCR.
•
Set DMACR.
•
Read command transmission is started.
•
Command response and read data are received from card.
•
When the card does not return the command response, the command response is detected by
the command timeout error (CTERI).
•
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 reception) is detected through the CRC error
flag or data timeout flag. When these flags are detected, set the CMDOFF bit in OPCR to 1,
issue CMD12, and suspend the command sequence.
•
The data remains in FIFO after the read sequence end. Set the SET[2:0] bits in DMACR to 100
to read all data left in FIFO if necessary.
•
Confirm the DMAC transfer completion and clear the DMAEN bit in DMACR to 0.
•
Set the CMDOFF bit to 1 and clear DMACR to H'00 when a CRC error (CRCERI) or
command timeout error (CTERI) occurs in the command response reception.
•
Set the CMDOFF bit to 1, clear DMACR to H'00, and clear FIFO when a CRC error
(CRCERI) or data timeout error (DTERI) occurs in the read data reception.
Note: * In multiblock transfer, when the command sequence is ended (1 is written to the
CMDOFF bit) before command response reception ends (CRPI), the command
response may not be received correctly. Therefore, to receive the command response,
the command sequence must be continued (set the RD_CONTI bit to 1) until the
command response reception ends.
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 ...