Chapter 3 – SD Card Interface Description
Revision 2.2
SD Card Product Manual
© 2004 SanDisk Corporation
3-20
12/08/04
3.5.4 Status
Register
The SD Card Status Register structure is defined in Table 3-29. The
Type
and
Clear
Condition
fields in the table are coded as follows:
Type:
•
E—Error bit
•
S—Status bit
•
R—Detected and set for the actual command response
•
X—Detected and set during command execution. The host must poll the card by
sending status command in order to read these bits.
Clear Condition:
•
A—According to the card current state
•
B—Always related to the previous command. Reception of a valid command will clear
it (with a delay of one command)
•
C—Clear by read.
Table 3-29
Status Register Description
Bit Identifier
Type Value
Description Clear
Cond.
31 OUT_OF_
RANGE
E R X
0 = no error
1 = error
The command’s argument
was out of the allowed
range for this card.
C
30 ADDRESS_
ERROR
E R X
0 = no error
1 = error
A misaligned address that
did not match the block
length was used in the
command.
C
29 BLOCK_LEN_
ERROR
E R X
0 = no error
1 = error
The transferred block length
is not allowed for this card,
or the number of transferred
bytes does not match the
block length.
C
28 ERASE_SEQ_
ERROR
E R
0 = no error
1 = error
An error in the sequence of
erase commands occurred.
C
27 ERASE_
PARAM
E R X
0 = no error
1 = error
An invalid selection of write-
blocks for erase occurred.
C
26 WP_
VIOLATION
E R X
0 = not protected
1 = protected
Attempt to program a write-
protected block.
C
25 CARD_IS_
LOCKED
S X
0 = unlocked
1 = locked
When set, signals that the
card is locked by the host
A
24 LOC_UNLOCK
_FAILED
E R X
0 = no error
1 = error
Set when a sequence or
password error has been
detected in lock/ unlock card
command or if there was an
attempt to access a locked
card
C
23 COM_CRC_
ERROR
E R
0 = no error
1 = error
The CRC check of the
previous command failed
B
22 ILLEGAL_
COMMAND
E R
0 = no error
1 = error
Command not legal for the
card state
B
21 CARD_ECC_
FAILED
E R X
0 = success
1 = failure
Card internal ECC was
applied but failed to correct
the data.
C
20
CC_ERROR
E R X
0 = no error
1 = error
Internal card controller error
C