SanDisk SDSDH-1024 Product Manual - Page 103

R2 Response Format

Page 103 highlights

Revision 2.2 The structure of the R1 format is shown in Figure 5-7. Figure 5-7 R1 Response Format 7 0 0 Chapter 5 - SPI Protocol SD Card Product Manual Idle State Erase Reset Illegal Command Com CRC Error Erase Seq Error Address Error Parameter Error 5.18.2 Format R1b This response token is identical to R1 format with the optional addition of the busy signal. The busy signal token can be any number of bytes. A zero value indicates card is busy. A non-zero value indicates card is ready for the next command. 5.18.3 Format R2 This response token is two bytes long and sent as a response to the SEND_STATUS command. The format of the R2 status is shown in Figure 5-8. Figure 5-8 R2 Response Format 7 Byte 1 07 Byte 2 0 0 Card is Locked WP EraseSkip, Lock/Unlock Cmd Failed Error CC Error Card ECC Failed WP Violation Erase Parameter Out-of-Range, CSD_Overwrite Idle State Erase Reset Illegal Command Com CRC Error Erase Sequence Error Address Error Parameter Error First byte is identical to response R1. The content of the second byte is described below. • Erase param-An invalid selection, sectors for erase. • Write-protect (WP) violation-The command tried to write a write-protected block. • Card ECC failed-Card internal ECC was applied but failed to correct the data. • CC error-Internal card-controller error. • Error-A general or an unknown error occurred during the operation. • Write-protect erase-skip/lock/unlock command failed-This status bit has two functions overloaded. It is set when the host attempts to erase a write-protected sector or makes a sequence or password error during card lock/unlock operation. • Card is locked-Set when the user locks the card. Resets when it is unlocked. © 2004 SanDisk Corporation 5-13 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 5 – SPI Protocol
Revision 2.2
SD Card Product Manual
© 2004 SanDisk Corporation
5-13
12/08/04
The structure of the R1 format is shown in Figure 5-7.
Figure 5-7
R1 Response Format
5.18.2
Format R1b
This response token is identical to R1 format with the optional addition of the busy signal.
The busy signal token can be any number of bytes. A zero value indicates card is busy. A
non-zero value indicates card is ready for the next command.
5.18.3
Format R2
This response token is two bytes long and sent as a response to the SEND_STATUS
command. The format of the R2 status is shown in Figure 5-8.
Figure 5-8
R2 Response Format
First byte is identical to response R1. The content of the second byte is described below.
Erase param
—An invalid selection, sectors for erase.
Write-protect (WP) violation
—The command tried to write a write-protected block.
Card ECC failed
—Card internal ECC was applied but failed to correct the data.
CC error
—Internal card-controller error.
Error
—A general or an unknown error occurred during the operation.
Write-protect erase-skip/lock/unlock command failed
—This status bit has two
functions overloaded.
It is set when the host attempts to erase a write-protected sector
or makes a sequence or password error during card lock/unlock operation.
Card is locked
—Set when the user locks the card.
Resets when it is unlocked.
7
0
0
Idle State
Erase Reset
Illegal Command
Com CRC Error
Erase Seq Error
Address Error
Parameter Error
7
0
0
7
0
Byte 1
Byte 2
Com CRC Error
Address Error
Idle State
CC Error
WP Violation
Card is Locked
WP EraseSkip, Lock/Unlock Cmd Failed
Error
Erase Parameter
Parameter Error
Erase Reset
Illegal Command
Erase Sequence Error
Card ECC Failed
Out-of-Range, CSD_Overwrite