RM0008
Table 103. Short response format
Bit position
47
46
[45:40]
[39:8]
[7:1]
0
Table 104. Long response format
Bit position
135
134
[133:128]
[127:1]
0
The command register contains the command index (six bits sent to a card) and the
command type. These determine whether the command requires a response, and whether
the response is 48 or 136 bits long (see
implements the status flags shown in
Table 105. Command path status flags
Flag
CMDREND
CCRCFAIL
CMDSENT
CTIMEOUT
CMDACT
The CRC generator calculates the CRC checksum for all bits before the CRC code. This
includes the start bit, transmitter bit, command index, and command argument (or card
status). The CRC checksum is calculated for the first 120 bits of CID or CSD for the long
response format. Note that the start bit, transmitter bit and the six reserved bits are not used
in the CRC calculation.
The CRC checksum is a 7-bit value:
CRC[6:0] = Remainder [(M(x) * x
G(x) = x
M(x) = (start bit) * x
M(x) = (start bit) * x
Width
1
1
6
32
7
1
Width
1
1
6
127
1
Description
Set if response CRC is OK.
Set if response CRC fails.
Set when command (that does not require response) is sent
Response timeout.
Command transfer in progress.
7
3
+ x
+ 1
39
+ ... + (last bit before CRC) * x
119
+ ... + (last bit before CRC) * x
Value
0
0
-
-
-
1
Value
0
Start bit
0
Transmission bit
111111
Reserved
-
CID or CSD (including internal CRC7)
1
End bit
Section 19.9.4 on page
Table
105:
7
) / G(x)]
0
, or
0
SDIO interface (SDIO)
Description
Start bit
Transmission bit
Command index
Argument
CRC7(or 1111111)
End bit
Description
455). The command path
421/690
Need help?
Do you have a question about the STM32F102 Series and is the answer not in the manual?
Questions and answers