Table 154. Block-Oriented Write Commands - ST STM32F101 series Reference Manual

Advanced arm-based 32-bit mcus
Hide thumbs Also See for STM32F101 series:
Table of Contents

Advertisement

Secure digital input/output interface (SDIO)
The bus transaction for a GEN_CMD is the same as the single-block read or write
commands (WRITE_BLOCK, CMD24 or READ_SINGLE_BLOCK,CMD17). In this case, the
argument denotes the direction of the data transfer rather than the address, and the data
block has vendor-specific format and meaning.
The card must be selected (in transfer state) before sending GEN_CMD (CMD56). The data
block size is defined by SET_BLOCKLEN (CMD16). The response to GEN_CMD (CMD56)
is in R1b format.
Command types
Both application-specific and general commands are divided into the four following types:
broadcast command (BC): sent to all cards; no responses returned.
broadcast command with response (BCR): sent to all cards; responses received
from all cards simultaneously.
addressed (point-to-point) command (AC): sent to the card that is selected; does
not include a data transfer on the SDIO_D line(s).
addressed (point-to-point) data transfer command (ADTC): sent to the card that is
selected; includes a data transfer on the SDIO_D line(s).
Command formats
See
Table 138 on page 564
Commands for the MultiMediaCard/SD module
CMD
Type
Argument
index
[31:16] set to 0
CMD23 ac
[15:0] number
of blocks
[31:0] data
CMD24 adtc
address
[31:0] data
CMD25 adtc
address
CMD26 adtc
[31:0] stuff bits R1
CMD27 adtc
[31:0] stuff bits R1
589/1128
for command formats.

Table 154. Block-oriented write commands

Response
Abbreviation
format
R1
SET_BLOCK_COUNT
R1
WRITE_BLOCK
R1
WRITE_MULTIPLE_BLOCK
PROGRAM_CID
PROGRAM_CSD
DocID13902 Rev 15
Description
Defines the number of blocks which
are going to be transferred in the
multiple-block read or write command
that follows.
Writes a block of the size selected by
the SET_BLOCKLEN command.
Continuously writes blocks of data
until a STOP_TRANSMISSION
follows or the requested number of
blocks has been received.
Programming of the card identification
register. This command must be
issued only once per card. The card
contains hardware to prevent this
operation after the first programming.
Normally this command is reserved
for manufacturer.
Programming of the programmable
bits of the CSD.
RM0008

Advertisement

Table of Contents
loading

This manual is also suitable for:

Stm32f107 seriesStm32f102 seriesStm32f103 seriesStm32f105 seriesStm32f101 series

Table of Contents