GD32W51x User Manual
771
are only available for SD card. CMD60, CMD61 are only available for CE-ATA device.
2. All the ACMDs shall be preceded with APP_CMD command (CMD55).
3. CMD8 has different meaning for MMC and SD memory.
Detailed command description
The following tables describe in detail all bus commands. The responses R1-R7 are defined
in
. The registers CID, CSD and DSR are described in
. The card
shall ignore stuff bits and reserved bits in an argument.
Table 23-4. Basic commands (class 0)
Cm d
index
type
argum ent
Response
form at
Abbreviation
Description
CMD0
bc
[31:0] stuff bits
-
GO_IDLE_STA TE
Resets all cards to idle state
CMD1
bc
[31:0] OCR
w ithout busy
R3
SEND_OP_COND
Asks the card, in idle state, to
send its Operating Conditions
Register contents in the
response on the CMD line.
CMD2
bcr
[31:0] stuff bits
R2
ALL_SEND_CID
Asks any card to send the CID
numbers on the CMD line (any
card that is connected to the
host w ill respond)
CMD3
bcr
[31:0] stuff bits
R6
SEND_RELA TIV E
_ADDR
Ask the card to publish a new
relative address (RCA)
CMD4
bc
[31:16] DSR
[15:0] stuff bits
-
SET_DSR
Programs the DSR of all cards
CMD5
bcr
[31:25]reserved
bits
[24]S18R
[23:0] I/O OCR
R4
IO_SEND_OP_CO
ND
Only for I/O cards. It is similar to
the operation of ACMD41 for SD
memory cards, used to inquire
about the voltage range needed
by the I/O card.
CMD6
ac
[31:26] Set to 0
[25:24] Access
[23:16] Index
[15:8] Value
[7:3] Set to 0
[2:0] Cmd Set
R1b
SWITCH
Only for MMC. Sw itches the
mode of operation of the
selected card or modifies the
EXT_CSD registers.