![GigaDevice Semiconductor GD32F20 Series User Manual Download Page 630](http://html.mh-extra.com/html/gigadevice-semiconductor/gd32f20-series/gd32f20-series_user-manual_2225801630.webp)
GD32F20x User Manual
630
Card
command
class(CCC)
0
1
2
3
4
5
6
7
8
9
10
11
Supported
command
Class
description
ba
s
ic
Strea
m
re
a
d
Bloc
k
re
a
d
Strea
m
wr
ite
Bloc
k
wr
ite
e
ras
e
w
rite
p
rote
c
tio
n
Lo
c
k
c
a
rd
a
pp
li
c
a
tio
n
s
pe
c
if
ic
I/
O
m
od
e
s
w
itc
h
res
e
rve
d
ACMD41
M
+
ACMD42
M
+
ACMD51
M
+
Note:
1.CMD1, CMD11, CMD14, CMD19, CMD20, CMD23, CMD26, CMD39 and CMD40 are
only available for MMC. CMD5, CMD32-34, CMD50, CMD52, CMD53, CMD57 and ACMDx
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 24-4. Basic commands (class 0)
Cmd
index
type
argument
Response
format
Abbreviation
Description
CMD0
bc
[31:0] stuff bits
-
GO_IDLE_STATE
Resets all cards to idle state
CMD1
bc
[31:0] OCR
without 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 will respond)
CMD3
bcr
[31:0] stuff bits
R6
SEND_RELATIVE
_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
Summary of Contents for GD32F20 Series
Page 191: ...GD32F20x User Manual 191 Bits Fields Descriptions 31 0 TRNDATA 31 0 32 Bit Random data ...
Page 290: ...GD32F20x User Manual 290 conversion is ongoing ...
Page 325: ...GD32F20x User Manual 325 15 0 ALRM 15 0 RTC alarm value low ...
Page 385: ...GD32F20x User Manual 385 ...
Page 523: ...GD32F20x User Manual 523 clears AERR bit by writing 0 to it ...