Table 184. Short Response Format; Table 185. Long Response Format; Table 186. Command Path Status Flags - ST STM32F423 Reference Manual

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

Advertisement

RM0430
Bit position
47
46
[45:40]
[39:8]
[7:1]
0
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
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

Table 184. Short response format

Width
1
1
6
32
7
1

Table 185. Long response format

Width
1
1
6
127
1

Table 186. Command path status flags

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
RM0430 Rev 8
Secure digital input/output interface (SDIO)
Value
0
0
-
-
-
1
Value
0
Start bit
0
Transmission bit
111111
Reserved
-
CID or CSD (including internal CRC7)
1
End bit
Section 31.8.4 on page
Table
186:
7
) / G(x)]
0
, or
0
Description
Start bit
Transmission bit
Command index
Argument
CRC7(or 1111111)
End bit
Description
1070). The command path
1035/1324
1084

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F423 and is the answer not in the manual?

Table of Contents