No
The data lines
are in use
Start
Read the MMCi.MMCHS_PSTATE[1]
DATI bit
DATI = 0x0
Yes
The data lines are not in use
Send a data command
(see command transfer flow)
Is there any error
End
Yes
BWR or BRR
is set
Write or Read 4 bytes into the
MMCi.MMCHS_DATA register
Transfer type
Yes
Finite
Infinite
For
MMC and SD only:
Is Auto-CMD12
enabled
Read the MMCi.MMCHS_STAT[24]
ACE bit and verify if there are errors by
reading the MMCi.MMCHS_AC12
register
Send CMD12 for MMC and SD
cards
CMD52 for SDIO cards
No
(or for SDIO)
No
A
A
TC interrupt
occurred
Yes
Transfer complete
Read the MMCi.MMCHS_STAT
Poll BWR if a write command
Poll BRR if a read command
No
Repeat MMCHS_DATA access
(BLEN + 3)/4 times.
Read the MMCi.MMCHS_STAT
DEB or
DCRC or DTO
interrupt occurred
No
Set MMCi.MMCHS_SYSCTL[26] SRD
bit to 0x1 and wait until it returns to 0x0
End
No event rises in
MMCHS_STAT
End
End
Yes
There was an error
during the data transfer
No
mmchs-034
Public Version
MMC/SD/SDIO Basic Programming Model
www.ti.com
24.5.2.4 Read/Write Transfer Flow Wthout DMA and With Polling
describes a read/write transfer without using the DMA and with polling.
Figure 24-39. MMC/SD/SDIO Controller Read/Write Transfer Flow Without DMA and With Polling
3404
MMC/SD/SDIO Card Interface
SWPU177N – December 2009 – Revised November 2010
Copyright © 2009–2010, Texas Instruments Incorporated
Содержание OMAP36 Series
Страница 174: ...174 List of Tables SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 692: ...692 MPU Subsystem SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 1084: ...1084 IVA2 2 Subsystem SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 1990: ...1990 2D 3D Graphics Accelerator SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 2334: ...2334 Memory Subsystem SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 2700: ...2700 Memory Management Units SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 2868: ...2868 HDQ 1 Wire SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 2974: ...2974 UART IrDA CIR SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 3054: ...3054 Multichannel SPI SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 3462: ...3462 MMC SD SDIO Card Interface SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 3508: ...3508 General Purpose Interface SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 3584: ...3584 Initialization SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 3648: ...3648 Debug and Emulation SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...