SanDisk SDSDH-1024 Product Manual - Page 93

Read Operation-Data Error, Multiple Block Read Operation, Single

Page 93 highlights

Revision 2.2 Chapter 5 - SPI Protocol SD Card Product Manual Figure 5-2 Read Operation-Data Error From Host to Card DataIn Command From Card to Host Next Command Data Error Token from Card to Host Command DataOut Response 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 From host to card(s) DataIn Command From card to host Data from card to host Stop Transmission command Command From card to host DataOut Response Data Block CRC Data Block CRC Response 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 From host to card Start block From card token to host Data from host to card Data response and busy from card New command from host DataIn Command Data Block Command DataOut Response Response Busy © 2004 SanDisk Corporation 5-3 12/08/04

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123

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