SanDisk SDSDH-1024 Product Manual - Page 104

Data Tokens

Page 104 highlights

Revision 2.2 Chapter 5 - SPI Protocol SD Card Product Manual 5.18.4 Format R3 The SD Card sends this response token when an READ_OCR command is received. The response length is five bytes. The structure of the first (MSB) byte is identical to response type R1. The other four bytes contain the OCR Register. Figure 5-9 R3 Response Format 39 32 31 0 0 R1 OCR 5.18.5 Formats R4 and R5 These response formats are reserved for I/O mode (refer to SDIO Card Specification). 5.18.6 Data Response Every data block written to the card is acknowledged by a data response token. It is onebyte long and has the following format: 76 0 xxx0 Status 1 The 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 Error In case of any error (CRC or Write) during Write Multiple Block operation, the host will stop the data transmission using CMD12. In case of Write Error (response '110') the host may 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 Tokens Read and write commands have data transfers associated with them; data is transmitted or received 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. 7 0 11111110 © 2004 SanDisk Corporation 5-14 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-14
12/08/04
5.18.4
Format R3
The SD Card sends this response token when an READ_OCR command is received. The
response length is five bytes. The structure of the first (MSB) byte is identical to response
type R1. The other four bytes contain the OCR Register.
Figure 5-9
R3 Response Format
5.18.5
Formats R4 and R5
These response formats are reserved for I/O mode (refer to SDIO Card Specification).
5.18.6
Data Response
Every data block written to the card is acknowledged by a data response token. It is one-
byte long and has the following format:
The 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 Error
In case of any error (CRC or Write) during Write Multiple Block operation, the host will
stop the data transmission using CMD12. In case of Write Error (response ’110’) the host
may 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 Tokens
Read and write commands have data transfers associated with them; data is transmitted or
received 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.
39
0
32
31
0
R1
OCR
7
x
x
x
0
0
Status
1
6
7
1
0
0
1
1
1
1
1
1