Chapter 5 – SPI Protocol
Revision 2.2
SD Card Product Manual
© 2004 SanDisk Corporation
5-3
12/08/04
Figure 5-2
Read Operation—Data Error
In the case of a Multiple Block Read operation, every transferred block has a 16-bit CRC
suffix. The Stop Transmission command (CMD12) will actually stop the data transfer
operation (the same as in SD Bus mode).
Figure 5-3
Multiple Block Read Operation
5.5 Data
Write
In SPI mode, the SD Card supports single block or multiple-block write operations. Upon
reception of a valid write command (SD Card CMD24 or CMD25), the card will respond
with a response token and will wait for a data block to be sent from the host. CRC suffix
and start address restrictions are identical to the read operation (see Figure 5-4). The only
valid block length, however, is 512 bytes. Setting a smaller block length will cause a write
error on the next write command.
Figure 5-4
Single Block Write Operation
Command
DataIn
Command
Response
Data Error
From Host
to Card
From Card
to Host
Data Error
Token from
Card to Host
Next Command
DataOut
Command
DataIn
From host
to card(s)
DataOut
Command
From card
to host
From card
to host
Data Block
CRC
Response
Data Block
CRC
Response
Stop
Transmission
command
Data from
card to host
Command
DataIn
From host
to card
Data from
host to
card
DataOut
Data Block
Response
Busy
New
command
from host
From card
to host
Command
Response
Start block
token
Data
response
and busy
from card