GD32F20x User Manual
644
24.5.5.
Two status fields of the card
The SD Memory supports two status fields and others just support the first one:
Card Status: Error and state information of a executed command, indicated in the response
SD Status: Extended status field of 512 bits that supports special features of the SD Memory
Card and future Application-Specific features.
Card status
The response format R1 contains a 32-bit field named card status. This field is intended to
transmit the card’s status information (which may be stored in a local status register) to the
host. If not specified , the status entries are always related to the previous issued command.
The type and clear condition fields in the table are abbreviated as follows:
Type
•E: Error bit. Send an error condition to the host. These bits are cleared as soon as the
response (reporting the error) is sent out.
•S: Status bit. These bits serve as information fields only, and do not alter the execution of
the command being responded to. These bits are persistent, they are set and cleared in
accordance with the card status.
•R: Exceptions are detected by the card during the command interpretation and validation
phase (Response Mode).
•X: Exceptions are detected by the card during command execution phase (Execution Mode).
Clear condition
•A: According to current state of the card.
•B: Always related to the previous command. Reception of a valid command will clear it (with
a delay of one command).
•C: Cleared by read
Table 24-23. Card status
Bits
Identifier
Type
Value
Description
Clear
Condition
31
OUT_OF_RANGE
ERX
’0’= no error
’1’= error
The command’s argument
was out of the allowed range
for this card.
C
30
ADDRESS_ERROR
ERX
’0’= no error
’1’= error
A misaligned address which
did not match the block
length was used in the
command.
C
29 BLOCK_LEN_ERROR ERX
’0’= no error
The transferred block length
C
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 ...