SanDisk SDSDB-016G-A11 Product Manual - Page 40

Status Register

Page 40 highlights

Revision 2.2 Chapter 3 - SD Card Interface Description SD Card Product Manual 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 31 30 29 28 27 26 25 24 23 22 21 20 Identifier OUT_OF_ RANGE ADDRESS_ ERROR Type E R X E R X BLOCK_LEN_ E R X ERROR ERASE_SEQ_ ERROR ERASE_ PARAM WP_ VIOLATION CARD_IS_ LOCKED LOC_UNLOCK _FAILED E R E R X E R X S X E R X COM_CRC_ ERROR ILLEGAL_ COMMAND CARD_ECC_ FAILED E R E R E R X CC_ERROR E R X Value 0 = no error 1 = error 0 = no error 1 = error 0 = no error 1 = error 0 = no error 1 = error 0 = no error 1 = error 0 = not protected 1 = protected 0 = unlocked 1 = locked 0 = no error 1 = error 0 = no error 1 = error 0 = no error 1 = error 0 = success 1 = failure 0 = no error 1 = error Description Clear Cond. The command's argument C was out of the allowed range for this card. A misaligned address that C did not match the block length was used in the command. The transferred block length C is not allowed for this card, or the number of transferred bytes does not match the block length. An error in the sequence of C erase commands occurred. An invalid selection of write- C blocks for erase occurred. Attempt to program a write- C protected block. When set, signals that the A card is locked by the host Set when a sequence or C password error has been detected in lock/ unlock card command or if there was an attempt to access a locked card The CRC check of the B previous command failed Command not legal for the B card state Card internal ECC was C applied but failed to correct the data. Internal card controller error C © 2004 SanDisk Corporation 3-20 12/08/04

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123

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