SanDisk SDSDH-1024 Product Manual - Page 88

Data Write

Page 88 highlights

Revision 2.2 Chapter 4 - SD Card Protocol Description SanDisk SD Card Product Manual Multiple Block Read In multiple-block read mode, the card sends a continuous flow of data blocks following the initial host read command. The data flow is terminated by a stop transmission command, CMD12. The Timing of Multiple Block Read Command timing diagram describes the timing of the data blocks, and the Timing of Stop Command (CMD12, Data Transfer Mode) timing diagram describes the response to a stop command. The data transmission stops two clock cycles after the end bit of the stop command. Timing of Multiple Block Read Command Host Command NCR Cycles Response CMD S T Content CRC E Z Z P * P S T Content CRC E Z Z P P P P P P P P P P P P P NAC Cycles Read Data DAT Z Z Z **** Z Z Z Z Z Z P ********** P S D D D ***** NAC Cycles Read Data D E P ********** P S D D D D D Timing of Stop Command (CMD12, Data Transfer Mode) Host Command NCRCycles Response CMD S T Content CRC E Z Z P *** P S T Content CRC E DAT D D D ******** D D D E Z Z ********** 4.12 Data Write Single Block Write The host selects one card for data write operation by CMD7. The host sets the valid block length for block-oriented data transfer by CMD16. The basic bus timing for a write operation is shown in the Block Write Command timing diagram. The sequence starts with a single block write command, CMD24 that determines (in the argument field) the start address. The card responds on the CMD line, and the data transfer from the host starts NWR clock cycles after the card response was received. The data is suffixed with CRC check bits to allow the card to check it for transmission errors. The card sends back the CRC check result as a CRC status token on the DAT0 line. In the case of transmission error the card sends a negative CRC status ('101'). In the case of non-erroneous transmission the card sends a positive CRC status ('010') and starts the data programming procedure. When a flash programming error occurs the card will ignore all further data blocks. In this case no CRC response will be sent to the host and, therefore, there will not be CRC start bit on the bus and the three CRC status bits will read ('111'). Block Write Command Timing Host Command CMD E Z DAT0 Z Z DAT1-3 Z Z NCR ZP* **** **** Card Response P S T Content CRC Z Z Z *** Z Z Z *** ZZ ZZ EZZP NW R Z Z P*P S Z Z P*P S Write Data Content CRC Content CRC EZ EZ PPPPPPPP CRC Status Busy Z S Status E S L*L E Z Z XXXXXXXXXZ © 2004 SanDisk Corporation 4-44 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-44
12/08/04
Multiple Block Read
In multiple-block read mode, the card sends a continuous flow of data blocks following the
initial host read command. The data flow is terminated by a stop transmission command,
CMD12. The
Timing of Multiple Block Read Command
timing diagram describes the
timing of the data blocks, and the
Timing of Stop Command (CMD12, Data Transfer Mode)
timing diagram describes the response to a stop command. The data transmission stops two
clock cycles after the end bit of the stop command.
Timing of Multiple Block Read Command
Timing of Stop Command (CMD12, Data Transfer Mode)
4.12
Data Write
Single Block Write
The host selects one card for data write operation by CMD7. The host sets the valid block
length for block-oriented data transfer by CMD16.
The basic bus timing for a write operation is shown in the
Block Write Command
timing
diagram. The sequence starts with a single block write command, CMD24 that determines
(in the argument field) the start address. The card responds on the CMD line, and the data
transfer from the host starts N
WR
clock cycles after the card response was received.
The data is suffixed with CRC check bits to allow the card to check it for transmission
errors. The card sends back the CRC check result as a CRC status token on the DAT0 line.
In the case of transmission error the card sends a negative CRC status (‘101’). In the case
of non-erroneous transmission the card sends a positive CRC status (‘010’) and starts the
data programming procedure. When a flash programming error occurs the card will ignore
all further data blocks. In this case no CRC response will be sent to the host and, therefore,
there will not be CRC start bit on the bus and the three CRC status bits will read (‘111‘).
Block Write Command Timing
CMD
S
T
E
Z
*
P
S
T
Response
CRC
E
Z
P
DAT
Z
Z
****
Z
Z
**********
Z
P
S
D
D
Z
Z
Z
Z
P
D
*****
Z
P
Z
P
P
P
P
P
P
P
P
P
P
P
P
N
CR
Cycles
D
E
P
**********
P
D
D
S
D
D
D
Content
CRC
Content
Host Command
N
AC
Cycles
N
AC
Cycles
Read Data
Read Data
CMD
S
T
E
Z
***
P
S
T
Z
P
N
CR
Cycles
Content
CRC
Host Command
Content
E
CRC
D
D
D
********
D
D
D
E
Z
Z
**********
Response
DAT
CMD
E
Z
Busy
CRC
E
Z
Z
P
P
P
P
P
P
P
P
P
N
CR
Card Response
Content
Host
Command
Write Data
CRC Status
Z
P
*
P
S
******************
T
DAT0
Z
Z
****
S
Z
Z
Z
E
S
E
Z
***
Z
Z
Z
Z
P*P
Content
CRC
E
Z
Z
S
Status
L*L
DAT1-3
Z
Z
****
S
Z
Z
Z
X
X
X
Z
***
Z
Z
Z
Z
P*P
Content
CRC
E
Z
Z
X
X
X
X
X
X
N
WR