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