29.01.2015 Views

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

RM0008<br />

Secure digital input/output interface (SDIO)<br />

suspend/resume operation on the MMC/SD bus, the MMC/SD module performs the<br />

following steps:<br />

1. Determines the function currently using the SDIO_D [3:0] line(s)<br />

2. Requests the lower-priority or slower transaction to suspend<br />

3. Waits for the transaction suspension to complete<br />

4. Begins the higher-priority transaction<br />

5. Waits for the completion of the higher priority transaction<br />

6. Restores the suspended transaction<br />

SD I/O ReadWait<br />

The optional ReadWait (RW) operation is defined only for the SD 1-bit <strong>and</strong> 4-bit modes. The<br />

ReadWait operation allows the MMC/SD module to signal a card that it is reading multiple<br />

registers (IO_RW_EXTENDED, CMD53) to temporarily stall the data transfer while allowing<br />

the MMC/SD module to send comm<strong>and</strong>s to any function within the SD I/O device. To<br />

determine when a card supports the ReadWait protocol, the MMC/SD module must test<br />

capability bits in the internal card registers. The timing for ReadWait is based on the<br />

interrupt period.<br />

20.4.14 Comm<strong>and</strong>s <strong>and</strong> responses<br />

Application-specific <strong>and</strong> general comm<strong>and</strong>s<br />

The SD card host module system is designed to provide a st<strong>and</strong>ard interface for a variety of<br />

applications types. In this environment, there is a need for specific customer/application<br />

features. To implement these features, two types of generic comm<strong>and</strong>s are defined in the<br />

st<strong>and</strong>ard: application-specific comm<strong>and</strong>s (ACMD) <strong>and</strong> general comm<strong>and</strong>s (GEN_CMD).<br />

When the card receives the APP_CMD (CMD55) comm<strong>and</strong>, the card expects the next<br />

comm<strong>and</strong> to be an application-specific comm<strong>and</strong>. ACMDs have the same structure as<br />

regular MultiMediaCard comm<strong>and</strong>s <strong>and</strong> can have the same CMD number. The card<br />

recognizes it as ACMD because it appears after APP_CMD (CMD55). When the comm<strong>and</strong><br />

immediately following the APP_CMD (CMD55) is not a defined application-specific<br />

comm<strong>and</strong>, the st<strong>and</strong>ard comm<strong>and</strong> is used. For example, when the card has a definition for<br />

SD_STATUS (ACMD13), <strong>and</strong> receives CMD13 immediately following APP_CMD (CMD55),<br />

this is interpreted as SD_STATUS (ACMD13). However, when the card receives CMD7<br />

immediately following APP_CMD (CMD55) <strong>and</strong> the card does not have a definition for<br />

ACMD7, this is interpreted as the st<strong>and</strong>ard (SELECT/DESELECT_CARD) CMD7.<br />

To use one of the manufacturer-specific ACMDs the SD card Host must perform the<br />

following steps:<br />

1. Send APP_CMD (CMD55)<br />

The card responds to the MultiMediaCard/SD module, indicating that the APP_CMD bit<br />

is set <strong>and</strong> an ACMD is now expected.<br />

2. Send the required ACMD<br />

The card responds to the MultiMediaCard/SD module, indicating that the APP_CMD bit<br />

is set <strong>and</strong> that the accepted comm<strong>and</strong> is interpreted as an ACMD. When a non-ACMD<br />

is sent, it is h<strong>and</strong>led by the card as a normal MultiMediaCard comm<strong>and</strong> <strong>and</strong> the<br />

APP_CMD bit in the card status register stays clear.<br />

When an invalid comm<strong>and</strong> is sent (neither ACMD nor CMD) it is h<strong>and</strong>led as a st<strong>and</strong>ard<br />

MultiMediaCard illegal comm<strong>and</strong> error.<br />

Doc ID 13902 Rev 9 487/995

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!