10.07.2015 Views

SanDisk SD Card

SanDisk SD Card

SanDisk SD Card

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Revision 2.2Chapter 5 – SPI Protocol<strong>SD</strong> <strong>Card</strong> Product ManualThe structure of the R1 format is shown in Figure 5-7.Figure 5-7 R1 Response Format700Idle StateErase ResetIllegal CommandCom CRC ErrorErase Seq ErrorAddress ErrorParameter Error5.18.2 Format R1bThis 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. Anon-zero value indicates card is ready for the next command.5.18.3 Format R2This response token is two bytes long and sent as a response to the SEND_STATUScommand. The format of the R2 status is shown in Figure 5-8.Figure 5-8 R2 Response Format7Byte 1 0 7 Byte 200<strong>Card</strong> is LockedWP EraseSkip, Lock/Unlock Cmd FailedErrorCC Error<strong>Card</strong> ECC FailedWP ViolationErase ParameterOut-of-Range, C<strong>SD</strong>_OverwriteIdle StateErase ResetIllegal CommandCom CRC ErrorErase Sequence ErrorAddress ErrorParameter ErrorFirst 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.• <strong>Card</strong> ECC failed—<strong>Card</strong> 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 twofunctions overloaded. It is set when the host attempts to erase a write-protected sectoror makes a sequence or password error during card lock/unlock operation.• <strong>Card</strong> is locked—Set when the user locks the card. Resets when it is unlocked.© 2004 <strong>SanDisk</strong> Corporation 5-13 12/08/04

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!