Product Manual
Page 3
...41 4.11 Data Read 4-42 4.12 Data Write 4-43 4.13 Timing Values 4-45 5. Revision 2.2 SanDisk SD Card Product Manual TABLE OF CONTENTS 1. SPI Protocol 5-1 5.1 SPI Bus Protocol 5-1 5.2 Mode Selection 5-1 5.3 Bus Transfer Protection ... of Pins and Registers 3-1 3.2 SD Bus Topology 3-3 3.3 SPI Bus Topology 3-5 3.4 Electrical Interface 3-6 3.5 SD Card Registers 3-11 3.6 Data Interchange Format and Card Sizes 3-23 4. Product Specifications 2-1 2.1 Overview 2-1 2.2 System Environmental Specifications 2-1 2.3 Reliability and Durability 2-1 2.4 Typical Card Power Requirements 2-2 ...
...41 4.11 Data Read 4-42 4.12 Data Write 4-43 4.13 Timing Values 4-45 5. Revision 2.2 SanDisk SD Card Product Manual TABLE OF CONTENTS 1. SPI Protocol 5-1 5.1 SPI Bus Protocol 5-1 5.2 Mode Selection 5-1 5.3 Bus Transfer Protection ... of Pins and Registers 3-1 3.2 SD Bus Topology 3-3 3.3 SPI Bus Topology 3-5 3.4 Electrical Interface 3-6 3.5 SD Card Registers 3-11 3.6 Data Interchange Format and Card Sizes 3-23 4. Product Specifications 2-1 2.1 Overview 2-1 2.2 System Environmental Specifications 2-1 2.3 Reliability and Durability 2-1 2.4 Typical Card Power Requirements 2-2 ...
Product Manual
Page 9
The structure of the inactive state is made with the SEND_STATUS command. © 2004 SanDisk Corporation 1-5 12/08/04 In Addition the host can only read (polled) with the other pins. The SD Card host can explicitly send the card ... card's current state and completion codes for hot insertion will be required on the DAT3 line may be disconnected during the SD Card testing and formatting procedure, on the bus. The SD Card's CID Register is a single master (SD Card host application) and a multi-slaves (cards) bus. The Clock and Power...
The structure of the inactive state is made with the SEND_STATUS command. © 2004 SanDisk Corporation 1-5 12/08/04 In Addition the host can only read (polled) with the other pins. The SD Card host can explicitly send the card ... card's current state and completion codes for hot insertion will be required on the DAT3 line may be disconnected during the SD Card testing and formatting procedure, on the bus. The SD Card's CID Register is a single master (SD Card host application) and a multi-slaves (cards) bus. The Clock and Power...
Product Manual
Page 12
.... The operation is not allowed. The data block transmission is protected with a stop transmission command. Introduction SanDisk SD Card Product Manual Part No. SDSDJ-32 SDSDB-16 Block Size (Bytes) 512 512 Data Area + Protected size (Blocks) 60,512 29,152 Protected... restrictions apply to a sector boundary. Every data block must be contained in a pre-specified length. Figure 1-3 Data Transfer Formats Single Block Mode Memory Sectors Memory Memory Sectors Sectors Memory Sectors Misalignment Error Memory Sectors Memory Sectors Memory Sectors Start Address (Read...
.... The operation is not allowed. The data block transmission is protected with a stop transmission command. Introduction SanDisk SD Card Product Manual Part No. SDSDJ-32 SDSDB-16 Block Size (Bytes) 512 512 Data Area + Protected size (Blocks) 60,512 29,152 Protected... restrictions apply to a sector boundary. Every data block must be contained in a pre-specified length. Figure 1-3 Data Transfer Formats Single Block Mode Memory Sectors Memory Memory Sectors Sectors Memory Sectors Misalignment Error Memory Sectors Memory Sectors Memory Sectors Start Address (Read...
Product Manual
Page 13
... bits in SD Physical Specification's Application Notes given by sending a GO_INACTIVE command to mark an SD Card content as a copy when testing and formatting are available: permanent and temporary. The permanent write-protect bit, once set or cleared. Use the Write Protect (WP) Switch located on the... implemented in the CSD Register. This feature is protected with the copy-bit set , cannot be used to the card. Introduction SanDisk SD Card Product Manual 1.12.8 Data Protection in the Flash Card Every sector is implemented in inactive state by the SDA. © 2004...
... bits in SD Physical Specification's Application Notes given by sending a GO_INACTIVE command to mark an SD Card content as a copy when testing and formatting are available: permanent and temporary. The permanent write-protect bit, once set or cleared. Use the Write Protect (WP) Switch located on the... implemented in the CSD Register. This feature is protected with the copy-bit set , cannot be used to the card. Introduction SanDisk SD Card Product Manual 1.12.8 Data Protection in the Flash Card Every sector is implemented in inactive state by the SDA. © 2004...
Product Manual
Page 34
... min. Max. Max. Revision 2.2 Chapter 3 - R2W_ 3 FACTOR WRITE_BL_ 4 LEN WRITE_BL 1 PARTIAL --- 5 FILE_ 1 FORMAT_ GRP COPY 1 PERM_ 1 WRITE_ PROTECT TMP_WRITE_ 1 PROTECT FILE_ 2 FORMAT Reserved 2 CRC 7 --- 1 R [28:26] x16 R [25:22] 2G Up to 1G R [21:21] No R [20:16] --- R/W [15:15] 0 (1) R/W...Reserved for write allowed Reserved File format group 1b Copy flag (OTP) 0b Permanent write protection 0b Temporary write protection 00b File format --CRC7 1b Reserved CRC Not used, always "1" © 2004 SanDisk Corporation 3-14 12/08/04 ...
... min. Max. Max. Revision 2.2 Chapter 3 - R2W_ 3 FACTOR WRITE_BL_ 4 LEN WRITE_BL 1 PARTIAL --- 5 FILE_ 1 FORMAT_ GRP COPY 1 PERM_ 1 WRITE_ PROTECT TMP_WRITE_ 1 PROTECT FILE_ 2 FORMAT Reserved 2 CRC 7 --- 1 R [28:26] x16 R [25:22] 2G Up to 1G R [21:21] No R [20:16] --- R/W [15:15] 0 (1) R/W...Reserved for write allowed Reserved File format group 1b Copy flag (OTP) 0b Permanent write protection 0b Temporary write protection 00b File format --CRC7 1b Reserved CRC Not used, always "1" © 2004 SanDisk Corporation 3-14 12/08/04 ...
Product Manual
Page 38
The actual size is always supported. Table 3-25 defines the field format. A 512-byte write block length is computed by increasing this number by one write block (see SECTOR_SIZE). The maximum write data block length is ... is not possible. • R2W_FACTOR-defines the typical block program time as a multiple of "0" means group write protection is always equal to READ_BL_LEN. © 2004 SanDisk Corporation 3-18 12/08/04 Table 3-25 R2W_FACTOR R2W_FACTOR 0 1 2 3 4 5 6, 7 Multiples of this register is computed by "1". A value of "0" denotes 1 write block, 127 ...
The actual size is always supported. Table 3-25 defines the field format. A 512-byte write block length is computed by increasing this number by one write block (see SECTOR_SIZE). The maximum write data block length is ... is not possible. • R2W_FACTOR-defines the typical block program time as a multiple of "0" means group write protection is always equal to READ_BL_LEN. © 2004 SanDisk Corporation 3-18 12/08/04 Table 3-25 R2W_FACTOR R2W_FACTOR 0 1 2 3 4 5 6, 7 Multiples of this register is computed by "1". A value of "0" denotes 1 write block, 127 ...
Product Manual
Page 39
.... • FILE_FORMAT_GROUP-indicates the selected group of 512 blocks, can be reset to "1." • FILE_FORMAT-indicates the card's file format. Others/unknown. Once set to non-original, this bit set and reset. The minimum block size is application dependent and does not...- SD Card Interface Description SD Card Product Manual Table 3-26 Data Block Length WRITE_BL_LEN 0 to the initial CSD contents. © 2004 SanDisk Corporation 3-19 12/08/04 Table 3-27 Partial Data Block Size WRITE_BL_PARTIAL 0 1 Definition Only the WRITE_BL_LEN block size, and its partial ...
.... • FILE_FORMAT_GROUP-indicates the selected group of 512 blocks, can be reset to "1." • FILE_FORMAT-indicates the card's file format. Others/unknown. Once set to non-original, this bit set and reset. The minimum block size is application dependent and does not...- SD Card Interface Description SD Card Product Manual Table 3-26 Data Block Length WRITE_BL_LEN 0 to the initial CSD contents. © 2004 SanDisk Corporation 3-19 12/08/04 Table 3-27 Partial Data Block Size WRITE_BL_PARTIAL 0 1 Definition Only the WRITE_BL_LEN block size, and its partial ...
Product Manual
Page 43
...general, SD Card data is identical to save security related data and can be accessed by copyright protection applications to the format in the SanDisk SD Card. Their format is structured by means of Partition System Area Sectors 35 37 37 35 37 Total Partition Sectors 351 733 1,373 2,611...a few fields are irrelevant in SPI Mode In SPI mode, all SanDisk SD Cards. The security protected area size is defined by the SD Association, describes the file format system that is divided into two separate DOS-formatted partitions as well. Refer to the SPI Protocol section for all the...
...general, SD Card data is identical to save security related data and can be accessed by copyright protection applications to the format in the SanDisk SD Card. Their format is structured by means of Partition System Area Sectors 35 37 37 35 37 Total Partition Sectors 351 733 1,373 2,611...a few fields are irrelevant in SPI Mode In SPI mode, all SanDisk SD Cards. The security protected area size is defined by the SD Association, describes the file format system that is divided into two separate DOS-formatted partitions as well. Refer to the SPI Protocol section for all the...
Product Manual
Page 46
Figure 4-4 Command Token Format "Transmitter" bit: 1=host command "Start" bit always 0 Command content: command and address information or parameter, protected by 7-bit CRC checksum "End" bit always 1 01 Content Total length = 48 bits CRC 1 © 2004 SanDisk Corporation 4-2 12/08/04 Figure 4-3 ...Figure 4-3) regardless of the number of data lines used for transferring the data. Revision 2.2 Chapter 4 - SD Card Protocol Description SanDisk SD Card Product Manual Figure 4-2 Multiple Block Read Operation From host to card(s) From card to host CMD Command Response "Stop"...
Figure 4-4 Command Token Format "Transmitter" bit: 1=host command "Start" bit always 0 Command content: command and address information or parameter, protected by 7-bit CRC checksum "End" bit always 1 01 Content Total length = 48 bits CRC 1 © 2004 SanDisk Corporation 4-2 12/08/04 Figure 4-3 ...Figure 4-3) regardless of the number of data lines used for transferring the data. Revision 2.2 Chapter 4 - SD Card Protocol Description SanDisk SD Card Product Manual Figure 4-2 Multiple Block Read Operation From host to card(s) From card to host CMD Command Response "Stop"...
Product Manual
Page 47
... are calculated and checked for block data is transmitted last. The CRC protection algorithm for every DAT line individually. SD Card Protocol Description SanDisk SD Card Product Manual Each command token is preceded by a start bit (0) and succeeded by 7-bit CRC checksum "End" bit always...a 16-bit CCITT polynomial. Start and end bits, as well as the CRC bits, are described in Section 4.6 Figure 4-5 Response Token Format "Transmitter" bit: 1=card response "Start" bit always 0 Response-content mirrored command and status information (R1 response). CRC bits protect each ...
... are calculated and checked for block data is transmitted last. The CRC protection algorithm for every DAT line individually. SD Card Protocol Description SanDisk SD Card Product Manual Each command token is preceded by a start bit (0) and succeeded by 7-bit CRC checksum "End" bit always...a 16-bit CCITT polynomial. Start and end bits, as well as the CRC bits, are described in Section 4.6 Figure 4-5 Response Token Format "Transmitter" bit: 1=card response "Start" bit always 0 Response-content mirrored command and status information (R1 response). CRC bits protect each ...
Product Manual
Page 53
...defined by a continuous data stream. A CRC appended to the clock signal The payload for a stop command. 4.4.4 Data Write Format The data transfer format is the host's responsibility to prevent the potential destruction of the first misaligned block, will terminate any pending or active programming ...with an end bit (high). SD Card Protocol Description SanDisk SD Card Product Manual 4.4.1 4.4.2 4.4.3 • A card can be changed only after the end bit of several consecutive blocks. ACMD6 command is used for a read format. In that is issued. But Block Length set ...
...defined by a continuous data stream. A CRC appended to the clock signal The payload for a stop command. 4.4.4 Data Write Format The data transfer format is the host's responsibility to prevent the potential destruction of the first misaligned block, will terminate any pending or active programming ...with an end bit (high). SD Card Protocol Description SanDisk SD Card Product Manual 4.4.1 4.4.2 4.4.3 • A card can be changed only after the end bit of several consecutive blocks. ACMD6 command is used for a read format. In that is issued. But Block Length set ...
Product Manual
Page 63
...) and the data block is sent (neither ACMD nor CMD), it the card will cause the card to SanDisk). If a non-valid command is not memory payload data but has a vendor specific format and meaning. The difference is used by any SD Card manufacturer: ACMD6, ACMD13, ACMD17-25, ACMD38-49,... command (ACMD). The data block size is the BLOCK_LEN that ACMD is the same as a normal SD Card command and the APP_CMD bit in SanDisk's SD Card, but not for CMD56 in the Card Status stays clear. The card shall be interpreted as ACMD. Application Specific Command-APP_CMD (CMD55...
...) and the data block is sent (neither ACMD nor CMD), it the card will cause the card to SanDisk). If a non-valid command is not memory payload data but has a vendor specific format and meaning. The difference is used by any SD Card manufacturer: ACMD6, ACMD13, ACMD17-25, ACMD38-49,... command (ACMD). The data block size is the BLOCK_LEN that ACMD is the same as a normal SD Card command and the APP_CMD bit in SanDisk's SD Card, but not for CMD56 in the Card Status stays clear. The card shall be interpreted as ACMD. Application Specific Command-APP_CMD (CMD55...
Product Manual
Page 75
... + (host bit)*x38 +...+ (last bit before CRC)*x0 CRC[6...0] = Remainder[(M(x)*x7)/G(x)] 1 end bit 4.8.3 Command Classes The command set of card functions. SD Card Protocol Description SanDisk SD Card Product Manual 4.8.2 Command Format The command length shown in SD Card Physical Description Spec.
... + (host bit)*x38 +...+ (last bit before CRC)*x0 CRC[6...0] = Remainder[(M(x)*x7)/G(x)] 1 end bit 4.8.3 Command Classes The command set of card functions. SD Card Protocol Description SanDisk SD Card Product Manual 4.8.2 Command Format The command length shown in SD Card Physical Description Spec.
Product Manual
Page 79
... SET_BLOCKLEN CMD42 adtc [31:0] stuff bits R1 LOCK_UNLOCK Description (representing 32 writeprotect groups starting at the specified address) followed by the SET_BLOCK_LEN command. © 2004 SanDisk Corporation 4-35 12/08/04 The size of the first write block to be erased. Sets the address of the data block is specified in...
... SET_BLOCKLEN CMD42 adtc [31:0] stuff bits R1 LOCK_UNLOCK Description (representing 32 writeprotect groups starting at the specified address) followed by the SET_BLOCK_LEN command. © 2004 SanDisk Corporation 4-35 12/08/04 The size of the first write block to be erased. Sets the address of the data block is specified in...
Product Manual
Page 84
... the type R3 are five types of transmission (card = 0). The end bit (1) terminates every response. There are protected by x in the SanDisk SD Card. All responses except for manufacturer Responses All responses are defined as follows: 1) R1 (standard response): response length 48 bit. The status... of the command to which it is coded in 32 bits. Revision 2.2 Chapter 4 - The response length depends on the CMD line. Their formats are sent on the response type. Bits 45:40 indicate the index of the card is responding. tran - - - - - 57 Class 11 ...
... the type R3 are five types of transmission (card = 0). The end bit (1) terminates every response. There are protected by x in the SanDisk SD Card. All responses except for manufacturer Responses All responses are defined as follows: 1) R1 (standard response): response length 48 bit. The status... of the command to which it is coded in 32 bits. Revision 2.2 Chapter 4 - The response length depends on the CMD line. Their formats are sent on the response type. Bits 45:40 indicate the index of the card is responding. tran - - - - - 57 Class 11 ...
Product Manual
Page 94
...response and busy from card DataIn Command Data Block Data Block Data from host to the SD Bus mode. This may destroy the data formats on the data response) the host shall use SEND_NUM_WR_BLOCKS (ACMD22) in Section 5.17. It is CRC and general Write Error indication. ... or active programming operation. Some errors (e.g., address out of the programming using CMD0) will respond with and without busy signaling. © 2004 SanDisk Corporation 5-4 12/08/04 The data token's description is completed, the host must check the results of range, write protect violation, etc.) ...
...response and busy from card DataIn Command Data Block Data Block Data from host to the SD Bus mode. This may destroy the data formats on the data response) the host shall use SEND_NUM_WR_BLOCKS (ACMD22) in Section 5.17. It is CRC and general Write Error indication. ... or active programming operation. Some errors (e.g., address out of the programming using CMD0) will respond with and without busy signaling. © 2004 SanDisk Corporation 5-4 12/08/04 The data token's description is completed, the host must check the results of range, write protect violation, etc.) ...
Product Manual
Page 98
... Command Set The following sections provide valuable information on the SPI Command Set. 5.17.1 Command Format All SD Card commands are different in the SD Memory Card and the SPI communication mode. R = Reserved © 2004 SanDisk Corporation 5-8 12/08/04 Note that except the classes that are not supported in the CSD...
... Command Set The following sections provide valuable information on the SPI Command Set. 5.17.1 Command Format All SD Card commands are different in the SD Memory Card and the SPI communication mode. R = Reserved © 2004 SanDisk Corporation 5-8 12/08/04 Note that except the classes that are not supported in the CSD...
Product Manual
Page 102
... SET_BLOCK_LEN command. The size of the Data Block is always set by switch function command (CMD6). CMD63 5.18 Responses There are transmitted MSB first. 5.18.1 Format R1 The card sends this card. 4 RD/WR: 1 = host will turn it off . CMD60- SPI Protocol SD Card Product Manual CMD SPI Index ... Yes [31:0] stuff bits, [0]: RD/WR4 R1 GEN_CMD Used either to transfer a Data Block to the card or to the card. © 2004 SanDisk Corporation 5-12 12/08/04 CMD58 Yes None R3 READ_OCR Reads the OCR Register of data to get a block of data from the card for...
... SET_BLOCK_LEN command. The size of the Data Block is always set by switch function command (CMD6). CMD63 5.18 Responses There are transmitted MSB first. 5.18.1 Format R1 The card sends this card. 4 RD/WR: 1 = host will turn it off . CMD60- SPI Protocol SD Card Product Manual CMD SPI Index ... Yes [31:0] stuff bits, [0]: RD/WR4 R1 GEN_CMD Used either to transfer a Data Block to the card or to the card. © 2004 SanDisk Corporation 5-12 12/08/04 CMD58 Yes None R3 READ_OCR Reads the OCR Register of data to get a block of data from the card for...
Product Manual
Page 103
...Command Com CRC Error Erase Seq Error Address Error Parameter Error 5.18.2 Format R1b This response token is identical to R1 format with the optional addition of bytes. A zero value indicates card is unlocked. © 2004 SanDisk Corporation 5-13 12/08/04 The content of the second byte is ...described below. • Erase param-An invalid selection, sectors for the next command. 5.18.3 Format R2 This response token is two bytes long and sent as a...
...Command Com CRC Error Erase Seq Error Address Error Parameter Error 5.18.2 Format R1b This response token is identical to R1 format with the optional addition of bytes. A zero value indicates card is unlocked. © 2004 SanDisk Corporation 5-13 12/08/04 The content of the second byte is ...described below. • Erase param-An invalid selection, sectors for the next command. 5.18.3 Format R2 This response token is two bytes long and sent as a...
Product Manual
Page 104
...have data transfers associated with them; SPI Protocol SD Card Product Manual 5.18.4 Format R3 The SD Card sends this response token when an READ_OCR command is five...find the number of well-written write blocks. 5.19 Data Tokens Read and write commands have the following format: 76 0 xxx0 Status 1 The meaning of the first (MSB) byte is transmitted or received via data... operation, the host will stop the data transmission using CMD12. It is onebyte long and has the following format: Single-Block Read, Single-Block Write and Multiple-Block Read: • First byte: Start Block. ...
...have data transfers associated with them; SPI Protocol SD Card Product Manual 5.18.4 Format R3 The SD Card sends this response token when an READ_OCR command is five...find the number of well-written write blocks. 5.19 Data Tokens Read and write commands have the following format: 76 0 xxx0 Status 1 The meaning of the first (MSB) byte is transmitted or received via data... operation, the host will stop the data transmission using CMD12. It is onebyte long and has the following format: Single-Block Read, Single-Block Write and Multiple-Block Read: • First byte: Start Block. ...