10.07.2015 Views

SanDisk SD Card

SanDisk SD Card

SanDisk SD Card

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Revision 2.2Chapter 5 – SPI Protocol<strong>SD</strong> <strong>Card</strong> Product ManualFigure 5-2Read Operation—Data ErrorFrom Hostto <strong>Card</strong>DataInCommandFrom <strong>Card</strong>to HostNext CommandData ErrorToken from<strong>Card</strong> to HostCommandDataOutResponseData ErrorIn the case of a Multiple Block Read operation, every transferred block has a 16-bit CRCsuffix. The Stop Transmission command (CMD12) will actually stop the data transferoperation (the same as in <strong>SD</strong> Bus mode).Figure 5-3 Multiple Block Read OperationFrom hostto card(s)DataInCommandFrom cardto hostData fromcard to hostCommandStopTransmissioncommandFrom cardto hostDataOutResponse Data Block CRC Data Block CRCResponse5.5 Data WriteIn SPI mode, the <strong>SD</strong> <strong>Card</strong> supports single block or multiple-block write operations. Uponreception of a valid write command (<strong>SD</strong> <strong>Card</strong> CMD24 or CMD25), the card will respondwith a response token and will wait for a data block to be sent from the host. CRC suffixand start address restrictions are identical to the read operation (see Figure 5-4). The onlyvalid block length, however, is 512 bytes. Setting a smaller block length will cause a writeerror on the next write command.Figure 5-4 Single Block Write OperationFrom hostto cardFrom cardto hostStart blocktokenData fromhost tocardDataresponseand busyfrom cardNewcommandfrom hostDataInCommandData BlockCommandDataOutResponseResponseBusy© 2004 <strong>SanDisk</strong> Corporation 5-3 12/08/04

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

Saved successfully!

Ooh no, something went wrong!