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 />

20.5.1 R1 (normal response comm<strong>and</strong>)<br />

Code length = 48 bits. The 45:40 bits indicate the index of the comm<strong>and</strong> to be responded to,<br />

this value being interpreted as a binary-coded number (between 0 <strong>and</strong> 63). The status of the<br />

card is coded in 32 bits.<br />

Table 143.<br />

R1 response<br />

Bit position Width (bits Value Description<br />

47 1 0 Start bit<br />

46 1 0 Transmission bit<br />

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

[39:8] 32 X Card status<br />

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

0 1 1 End bit<br />

20.5.2 R1b<br />

It is identical to R1 with an optional busy signal transmitted on the data line. The card may<br />

become busy after receiving these comm<strong>and</strong>s based on its state prior to the comm<strong>and</strong><br />

reception.<br />

20.5.3 R2 (CID, CSD register)<br />

Code length = 136 bits. The contents of the CID register are sent as a response to the<br />

CMD2 <strong>and</strong> CMD10 comm<strong>and</strong>s. The contents of the CSD register are sent as a response to<br />

CMD9. Only the bits [127...1] of the CID <strong>and</strong> CSD are transferred, the reserved bit [0] of<br />

these registers is replaced by the end bit of the response. The card indicates that an erase<br />

is in progress by holding MCDAT low. The actual erase time may be quite long, <strong>and</strong> the host<br />

may issue CMD7 to deselect the card.<br />

Table 144.<br />

R2 response<br />

Bit position Width (bits Value Description<br />

135 1 0 Start bit<br />

134 1 0 Transmission bit<br />

[133:128] 6 ‘111111’ Comm<strong>and</strong> index<br />

[127:1] 127 X Card status<br />

0 1 1 End bit<br />

20.5.4 R3 (OCR register)<br />

Code length: 48 bits. The contents of the OCR register are sent as a response to CMD1.<br />

The level coding is as follows: restricted voltage windows = low, card busy = low.<br />

Doc ID 13902 Rev 9 491/995

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

Saved successfully!

Ooh no, something went wrong!