SanDisk SDSDH-1024 Product Manual - Page 105

Data Error Token, Clearing Status Bits

Page 105 highlights

Revision 2.2 Multiple Block Write Operation • First byte of each block. 7 0 11111100 If data is to be transferred: Start Block. If stop transmission is requested: Stop Tran 7 0 11111101 Chapter 5 - SPI Protocol SD Card Product Manual The format above is used only for Multiple-Block Write. In case of Multiple-Block Read, the stop transmission is done using STOP_TRAN Command (CMD12). 5.20 Data Error Token If a read operation fails and the card cannot provide the required data it will send a data error token, instead. This token is one byte long and has the format shown in Figure 5-10. Figure 5-10 Data Error Token 7 0 0000 Error CC Error Card ECC failed Out of Range The four least significant bits (LSB) are the same error bits as in response format R2. 5.21 Clearing Status Bits As described in the previous paragraphs, in SPI mode, status bits are reported to the host in three different formats: response R1, response R2 and data error token (the same bits may exist in multiple response types-e.g., Card ECC failed). However, in the SD mode, error bits are cleared when read by the host, regardless of the response format. Table 5-3 summarizes the set and clear conditions for the various status bits. The values for the type and clear condition columns are as follows. Type: E=error bit, S=State bit, R=Detected and set for the actual command response, X=Detected and set during command execution. The host must poll the card by issuing the status command in order to read these bits. Clear Condition: A=According to the card's current state, C=Clear by read © 2004 SanDisk Corporation 5-15 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-15
12/08/04
Multiple Block Write Operation
First byte of each block.
If data is to be transferred:
Start Block.
If stop transmission is requested:
Stop Tran
The format above is used only for Multiple-Block Write.
In case of Multiple-Block Read,
the stop transmission is done using STOP_TRAN Command (CMD12).
5.20
Data Error Token
If a read operation fails and the card cannot provide the required data it will send a data
error token, instead. This token is one byte long and has the format shown in Figure 5-10.
Figure 5-10
Data Error Token
The four least significant bits (LSB) are the same error bits as in response format R2.
5.21
Clearing Status Bits
As described in the previous paragraphs, in SPI mode, status bits are reported to the host in
three different formats: response R1, response R2 and data error token (the same bits may
exist in multiple response types—e.g., Card ECC failed).
However, in the SD mode, error bits are cleared when read by the host, regardless of the
response format.
Table 5-3 summarizes the set and clear conditions for the various status bits.
The values
for the
type
and
clear condition
columns are as follows.
Type
:
E
=error bit,
S
=State bit,
R
=Detected and set for the actual command response,
X
=Detected and set during command execution. The host must poll the card by issuing the
status command in order to read these bits.
Clear Condition
:
A
=According to the card’s current state,
C
=Clear by read
7
1
0
0
1
1
1
1
1
0
7
1
0
1
1
1
1
1
1
0
7
0
0
0
0
0
Error
CC Error
Card ECC failed
Out of Range