SanDisk SDSDH-1024 Product Manual - Page 45

SD Card Protocol Description

Page 45 highlights

Revision 2.2 Chapter 4 - SD Card Protocol Description SanDisk SD Card Product Manual 4 SD Card Protocol Description 4.1 SD Bus Protocol Communication over the SD bus is based on command and data bit streams, which are initiated by a start bit and terminated, by a stop bit: • Command-token that starts an operation. A command is sent from the host either to a single card (addressed command) or to all connected cards (broadcast command). A command is transferred serially on the CMD line. • Response-token that is sent from an addressed card, or (synchronously) from all connected cards, to the host as an answer to a previously received command. A response is transferred serially on the CMD line. • Data-Data can be transferred from the card to the host or vice versa. Data is transferred via the data lines. Figure 4-1 "No Response" and "No Data" Operations From host to card(s) From host to card From card to host CMD DAT Command Operation (no response) Command Response Operation (no data) Card addressing is implemented using a session address that is assigned to the card during the initialization phase. The basic transaction on the SD bus is the command/response transaction (see Figure 4-1). This type of bus transaction transfers their information directly within the command or response structure. In addition, some operations have a data token. Data transfers to and from the SD Card are done in blocks. CRC bits always follow data blocks. Single and multiple block operations are defined. Note that the Multiple Block Operation mode is better for faster write operation. A multiple block transmission is terminated when a stop command follows on the CMD line. The host can configure a data transfer to use single or multiple data lines (provided the card supports this feature). © 2004 SanDisk Corporation 4-1 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 4 – SD Card Protocol Description
Revision 2.2
SanDisk SD Card Product Manual
© 2004 SanDisk Corporation
4-1
12/08/04
4
SD Card Protocol Description
4.1
SD Bus Protocol
Communication over the SD bus is based on command and data bit streams, which are
initiated by a start bit and terminated, by a stop bit:
Command
—token that starts an operation. A command is sent from the host either to a
single card (addressed command) or to all connected cards (broadcast command). A
command is transferred serially on the CMD line.
Response
—token that is sent from an addressed card, or (synchronously) from all
connected cards, to the host as an answer to a previously received command. A
response is transferred serially on the CMD line.
Data
—Data can be transferred from the card to the host or vice versa. Data is
transferred via the data lines.
Figure 4-1
“No Response” and “No Data” Operations
Card addressing is implemented using a session address that is assigned to the card during
the initialization phase. The basic transaction on the SD bus is the command/response
transaction (see Figure 4-1). This type of bus transaction transfers their information directly
within the command or response structure. In addition, some operations have a data token.
Data transfers to and from the SD Card are done in blocks. CRC bits always follow data
blocks. Single and multiple block operations are defined. Note that the Multiple Block
Operation mode is better for faster write operation. A multiple block transmission is
terminated when a stop command follows on the CMD line. The host can configure a data
transfer to use single or multiple data lines (provided the card supports this feature).
Command
CMD
From host
to card(s)
DAT
From card
to host
Response
Command
Operation (no response)
Operation (no data)
From host
to card