29.01.2015 Views

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

RM0008<br />

Figure 187. SDIO comm<strong>and</strong> transfer<br />

at least 8 SDIO_CK cycles<br />

SDIO_CK<br />

Comm<strong>and</strong> Response Comm<strong>and</strong><br />

State Idle Send Wait Receive Idle Send<br />

SDIO_CMD<br />

Hi-Z Controller drives Hi-Z Card drives Hi-Z Controller drives<br />

ai14707<br />

●<br />

Comm<strong>and</strong> format<br />

– Comm<strong>and</strong>: a comm<strong>and</strong> is a token that starts an operation. Comm<strong>and</strong> are sent<br />

from the host either to a single card (addressed comm<strong>and</strong>) or to all connected<br />

cards (broadcast comm<strong>and</strong> are available for MMC V3.31 or previous). Comm<strong>and</strong>s<br />

are transferred serially on the CMD line. All comm<strong>and</strong>s have a fixed length of 48<br />

bits. The general format for a comm<strong>and</strong> token for MultiMediaCards, SD-Memory<br />

cards <strong>and</strong> SDIO-Cards is shown in Table 121. CE-ATA comm<strong>and</strong>s are an<br />

extension of MMC comm<strong>and</strong>s V4.2, <strong>and</strong> so have the same format.<br />

The comm<strong>and</strong> path operates in a half-duplex mode, so that comm<strong>and</strong>s <strong>and</strong><br />

responses can either be sent or received. If the CPSM is not in the Send state, the<br />

SDIO_CMD output is in the Hi-Z state, as shown in Figure 187 on page 464. Data<br />

on SDIO_CMD are synchronous with the rising edge of SDIO_CK. Table shows<br />

the comm<strong>and</strong> format.<br />

Table 121.<br />

Comm<strong>and</strong> format<br />

Bit position Width Value Description<br />

47 1 0 Start bit<br />

46 1 1 Transmission bit<br />

[45:40] 6 - Comm<strong>and</strong> index<br />

[39:8] 32 - Argument<br />

[7:1] 7 - CRC7<br />

0 1 1 End bit<br />

– Response: a response is a token that is sent from an addressed card (or<br />

synchronously from all connected cards for MMC V3.31 or previous), to the host<br />

as an answer to a previously received comm<strong>and</strong>. Responses are transferred<br />

serially on the CMD line.<br />

Note:<br />

The SDIO supports two response types. Both use CRC error checking:<br />

● 48 bit short response<br />

● 136 bit long response<br />

If the response does not contain a CRC (CMD1 response), the device driver must ignore the<br />

CRC failed status.<br />

464/995 Doc ID 13902 Rev 9

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

Saved successfully!

Ooh no, something went wrong!