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.

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

The bus transaction for a GEN_CMD is the same as the single-block read or write<br />

commands (WRITE_BLOCK, CMD24 or READ_SINGLE_BLOCK,CMD17). In this case, the<br />

argument denotes the direction of the data transfer rather than the address, and the data<br />

block has vendor-specific format and meaning.<br />

The card must be selected (in transfer state) before sending GEN_CMD (CMD56). The data<br />

block size is defined by SET_BLOCKLEN (CMD16). The response to GEN_CMD (CMD56)<br />

is in R1b format.<br />

Command types<br />

Both application-specific and general commands are divided into the four following types:<br />

● broadcast command (BC): sent to all cards; no responses returned.<br />

● broadcast command with response (BCR): sent to all cards; responses received<br />

from all cards simultaneously.<br />

● addressed (point-to-point) command (AC): sent to the card that is selected; does<br />

not include a data transfer on the SDIO_D line(s).<br />

● addressed (point-to-point) data transfer command (ADTC): sent to the card that is<br />

selected; includes a data transfer on the SDIO_D line(s).<br />

Command formats<br />

See Table 127 on page 850 for command formats.<br />

Commands for the MultiMediaCard/SD module<br />

Table 143. Block-oriented write commands<br />

CMD<br />

index<br />

CMD23 ac<br />

CMD24 adtc<br />

CMD25 adtc<br />

Type Argument<br />

[31:16] set to 0<br />

[15:0] number<br />

of blocks<br />

[31:0] data<br />

address<br />

[31:0] data<br />

address<br />

Response<br />

format<br />

R1 SET_BLOCK_COUNT<br />

R1 WRITE_BLOCK<br />

R1 WRITE_MULTIPLE_BLOCK<br />

CMD26 adtc [31:0] stuff bits R1 PROGRAM_CID<br />

CMD27 adtc [31:0] stuff bits R1 PROGRAM_CSD<br />

Abbreviation Description<br />

Defines the number of blocks which<br />

are going to be transferred in the<br />

multiple-block read or write command<br />

that follows.<br />

Writes a block of the size selected by<br />

the SET_BLOCKLEN command.<br />

Continuously writes blocks of data<br />

until a STOP_TRANSMISSION<br />

follows or the requested number of<br />

blocks has been received.<br />

Programming of the card identification<br />

register. This command must be<br />

issued only once per card. The card<br />

contains hardware to prevent this<br />

operation after the first programming.<br />

Normally this command is reserved<br />

for manufacturer.<br />

Programming of the programmable<br />

bits of the CSD.<br />

Doc ID 018909 Rev 3 874/1416

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

Saved successfully!

Ooh no, something went wrong!