09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

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

28.5.1 R1 (normal response command)<br />

28.5.2 R1b<br />

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

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

card is coded in 32 bits.<br />

Table 149. 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 Command index<br />

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

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

0 1 1 End bit<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 commands based on its state prior to the command<br />

reception.<br />

28.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 and CMD10 commands. The contents of the CSD register are sent as a response to<br />

CMD9. Only the bits [127...1] of the CID and 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, and the host<br />

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

Table 150. 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’ Command index<br />

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

0 1 1 End bit<br />

877/1416 Doc ID 018909 Rev 3

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

Saved successfully!

Ooh no, something went wrong!