RM0351
Command formats
See
Table 220 on page 1401
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
CMD
Type
Argument
index
[31:0] data
CMD28 ac
address
[31:0] data
CMD29 ac
address
[31:0] write
CMD30 adtc
protect data
address
CMD31 Reserved
for command formats.
Table 237. Block-oriented write commands
Response
format
R1
SET_BLOCK_COUNT
R1
WRITE_BLOCK
R1
WRITE_MULTIPLE_BLOCK
PROGRAM_CID
PROGRAM_CSD
Table 238. Block-oriented write protection commands
Response
format
R1b
SET_WRITE_PROT
R1b
CLR_WRITE_PROT
R1
SEND_WRITE_PROT
DocID024597 Rev 3
SD/SDIO/MMC card host interface (SDMMC)
Abbreviation
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.
Abbreviation
If the card has write protection features,
this command sets the write protection bit
of the addressed group. The properties of
write protection are coded in the card-
specific data (WP_GRP_SIZE).
If the card provides write protection
features, this command clears the write
protection bit of the addressed group.
If the card provides write protection
features, this command asks the card to
send the status of the write protection
bits.
Description
Description
1427/1693
1450
Need help?
Do you have a question about the STM32L4x6 and is the answer not in the manual?
Questions and answers