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 Manual5.18.4 Format R3The <strong>SD</strong> <strong>Card</strong> sends this response token when an READ_OCR command is received. Theresponse length is five bytes. The structure of the first (MSB) byte is identical to responsetype R1. The other four bytes contain the OCR Register.Figure 5-9 R3 Response Format3932 31 00R1OCR5.18.5 Formats R4 and R5These response formats are reserved for I/O mode (refer to <strong>SD</strong>IO <strong>Card</strong> Specification).5.18.6 Data ResponseEvery data block written to the card is acknowledged by a data response token. It is onebytelong and has the following format:760x x x 0Status 1The meaning of the status bits is defined as follows:‘010’—Data accepted.‘101’—Data rejected due to a CRC error.‘110’—Data rejected due to a Write ErrorIn case of any error (CRC or Write) during Write Multiple Block operation, the host willstop the data transmission using CMD12. In case of Write Error (response ’110’) the hostmay send CMD13 (SEND_STATUS) in order to get the cause of the write problem.ACMD22 can be used to find the number of well-written write blocks.5.19 Data TokensRead and write commands have data transfers associated with them; data is transmitted orreceived via data tokens. All data bytes are transmitted MSB.Data tokens are 4 to 515 bytes long and have the following format:Single-Block Read, Single-Block Write and Multiple-Block Read:• First byte: Start Block.• Bytes 2-513 (depends on the data block length): User Data.• Last two bytes: 16-bit CRC.7011 1 1 1 1 10© 2004 <strong>SanDisk</strong> Corporation 5-14 12/08/04

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

Saved successfully!

Ooh no, something went wrong!