Product Manual
Page 33
SD Card Interface Description SD Card Product Manual 3.5.3 Card Specific Data Register The Card Specific Data (CSD) Register configuration information is required to the CSD structure. data transfer rate 5F5 Ah 9h 1b 0b 0b 0b 00b F24h F22h F1Eh F13h F03h EDFh 74Bh 383h 111b 110b Card command classes Max. read access time-1 NSAC 8 R TRANS_ 8 ... time-2 in "real world" units for read data block length Partial blocks for each field and coded according to access the card data. Max. In Table 3-11, the Cell Type column defines the CSD field as read current @VDD © 2004...
SD Card Interface Description SD Card Product Manual 3.5.3 Card Specific Data Register The Card Specific Data (CSD) Register configuration information is required to the CSD structure. data transfer rate 5F5 Ah 9h 1b 0b 0b 0b 00b F24h F22h F1Eh F13h F03h EDFh 74Bh 383h 111b 110b Card command classes Max. read access time-1 NSAC 8 R TRANS_ 8 ... time-2 in "real world" units for read data block length Partial blocks for each field and coded according to access the card data. Max. In Table 3-11, the Cell Type column defines the CSD field as read current @VDD © 2004...
Product Manual
Page 35
..., 1=1.0, 2=1.2, 3=1.3, 4=1.5, 5=2.0, 6=2.5, 7=3.0, 8=3.5, 9=4.0, A=4.5, B=5.0, C=5.5, D=6.0, E=7.0, F=8.0 Reserved • CCC-The SD Card command set is supported. © 2004 SanDisk Corporation 3-15 12/08/04 Table 3-12 CSD Register Structure CSD Structure 0 CSD Structure Version CSD Version 1.0 Valid... case for the first data bit of "1" in a CCC bit means that the corresponding command class is divided into subsets (command classes). SD Card Interface Description SD Card Product Manual The following sections describe the CSD fields and the relevant data types. A value of...
..., 1=1.0, 2=1.2, 3=1.3, 4=1.5, 5=2.0, 6=2.5, 7=3.0, 8=3.5, 9=4.0, A=4.5, B=5.0, C=5.5, D=6.0, E=7.0, F=8.0 Reserved • CCC-The SD Card command set is supported. © 2004 SanDisk Corporation 3-15 12/08/04 Table 3-12 CSD Register Structure CSD Structure 0 CSD Structure Version CSD Version 1.0 Valid... case for the first data bit of "1" in a CCC bit means that the corresponding command class is divided into subsets (command classes). SD Card Interface Description SD Card Product Manual The following sections describe the CSD fields and the relevant data types. A value of...
Product Manual
Page 36
... Supported Card Command Class ---- • READ_BL_LEN-The maximum read data block length is invalid. Table 3-17 Bit Definition READ_BL_PARTIAL 0 1 Definition Only the READ_BL_LEN block size can be used in the range 512...2048 bytes. Table 3-19 Bit Definition READ_BLK_MISALIGN 0 1 Definition Crossing physical block boundaries is computed as 2READ_BL_LEN. Revision 2.2 Chapter 3 - In the SD Memory Card...
... Supported Card Command Class ---- • READ_BL_LEN-The maximum read data block length is invalid. Table 3-17 Bit Definition READ_BL_PARTIAL 0 1 Definition Only the READ_BL_LEN block size can be used in the range 512...2048 bytes. Table 3-19 Bit Definition READ_BLK_MISALIGN 0 1 Definition Crossing physical block boundaries is computed as 2READ_BL_LEN. Revision 2.2 Chapter 3 - In the SD Memory Card...
Product Manual
Page 56
... Data © 2004 SanDisk Corporation 4-12 12/08/04 SD Card Protocol Description SanDisk SD Card Product Manual 4.4.7 Mechanical Write Protect Switch A mechanical sliding tablet on . Revision 2.2 Chapter 4 - Locked cards respond to the mechanical description), controlled by setting the permanent or temporary write protect bits in the "basic" command class (class 0), ACMD41, CMD16 and "lock card" command class. Card's Internal Write Protection...
... Data © 2004 SanDisk Corporation 4-12 12/08/04 SD Card Protocol Description SanDisk SD Card Product Manual 4.4.7 Mechanical Write Protect Switch A mechanical sliding tablet on . Revision 2.2 Chapter 4 - Locked cards respond to the mechanical description), controlled by setting the permanent or temporary write protect bits in the "basic" command class (class 0), ACMD41, CMD16 and "lock card" command class. Card's Internal Write Protection...
Product Manual
Page 62
... in the response of CMD7 or CMD13. SD Card Protocol Description SanDisk SD Card Product Manual 4.4.8 Table 4-7 Force Erase Function to the MultiMediaCard standard together with setting CARD_IS_LOCKED. − Basic class (0) − Lock card class (7) − CMD16 − ACMD41 All other commands (including security commands) are treated as illegal commands. The SD Card system is designed to provide a standard interface...
... in the response of CMD7 or CMD13. SD Card Protocol Description SanDisk SD Card Product Manual 4.4.8 Table 4-7 Force Erase Function to the MultiMediaCard standard together with setting CARD_IS_LOCKED. − Basic class (0) − Lock card class (7) − CMD16 − ACMD41 All other commands (including security commands) are treated as illegal commands. The SD Card system is designed to provide a standard interface...
Product Manual
Page 73
...Status Register. Figure 4-14 CRC16 Generator/Checker 4.7 Error Conditions The following sections provide valuable information on DAT line is used . SD Card Protocol Description SanDisk SD Card Product Manual 4.6.2 CRC16 The CRC16 is used for a block length of 512 bytes. The generator polynomial G(x) is done on ... 4-29 12/08/04 The card does not change its state, and the COM_CRC_ERROR bit is the first data-bit of illegal commands include: • Commands belonging to classes not supported by one. Different types of the corresponding block. The CRC checksum is a...
...Status Register. Figure 4-14 CRC16 Generator/Checker 4.7 Error Conditions The following sections provide valuable information on DAT line is used . SD Card Protocol Description SanDisk SD Card Product Manual 4.6.2 CRC16 The CRC16 is used for a block length of 512 bytes. The generator polynomial G(x) is done on ... 4-29 12/08/04 The card does not change its state, and the COM_CRC_ERROR bit is the first data-bit of illegal commands include: • Commands belonging to classes not supported by one. Different types of the corresponding block. The CRC checksum is a...
Product Manual
Page 75
... 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. Each class supports a set of each card, providing the host with information on how to Table 4-15). v1.10 © 2004 SanDisk Corporation 4-31 12/08/04 SD Card Protocol Description SanDisk SD Card Product Manual 4.8.2 Command Format The command length shown in...
... 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. Each class supports a set of each card, providing the host with information on how to Table 4-15). v1.10 © 2004 SanDisk Corporation 4-31 12/08/04 SD Card Protocol Description SanDisk SD Card Product Manual 4.8.2 Command Format The command length shown in...
Product Manual
Page 76
... the CMD line. 21This command is newly defined in SD Card Physical Description Spec. v1.10 . 22 Ibid. 23 Ibid. © 2004 SanDisk Corporation 4-32 12/08/04 Revision 2.2 Chapter 4 - Table 4-16 SD Card Bus Command Descriptions CMD Index Type Argument Resp. SD Card Protocol Description SanDisk SD Card Product Manual 4.8.4 Class CMD 0 Basic 1 2 R Block Read 34 R Block Write CMD28 CMD29...
... the CMD line. 21This command is newly defined in SD Card Physical Description Spec. v1.10 . 22 Ibid. 23 Ibid. © 2004 SanDisk Corporation 4-32 12/08/04 Revision 2.2 Chapter 4 - Table 4-16 SD Card Bus Command Descriptions CMD Index Type Argument Resp. SD Card Protocol Description SanDisk SD Card Product Manual 4.8.4 Class CMD 0 Basic 1 2 R Block Read 34 R Block Write CMD28 CMD29...
Product Manual
Page 77
... SanDisk SD Card Product Manual CMD Index CMD3 CMD4 CMD5 CMD7 Type Argument Resp. Sets the block length (in © 2004 SanDisk Corporation 4-33 12/08/04 SET_DSR Reserved for card de-selection Sends addressed card's card-specific data (CSD) on the CMD line. Sends addressed card's Status Register. Revision 2.2 Chapter 4 - GO_INACTIVE_STATE [15:0] stuff bits Block Read Commands (Class...
... SanDisk SD Card Product Manual CMD Index CMD3 CMD4 CMD5 CMD7 Type Argument Resp. Sets the block length (in © 2004 SanDisk Corporation 4-33 12/08/04 SET_DSR Reserved for card de-selection Sends addressed card's card-specific data (CSD) on the CMD line. Sends addressed card's Status Register. Revision 2.2 Chapter 4 - GO_INACTIVE_STATE [15:0] stuff bits Block Read Commands (Class...
Product Manual
Page 78
...bit of data continuously until interrupted by the SET_BLOCKLEN command25 Writes blocks of the addressed. SD Card Protocol Description SanDisk SD Card Product Manual CMD Index Type Argument Resp. If card supports this feature, it sets the write protection bit of the CSD. In case ...that write partial blocks is specified in bytes) for manufacturer adtc [31:0] stuff R1 bits PROGRAM_CSD Write Protection Commands (Class...
...bit of data continuously until interrupted by the SET_BLOCKLEN command25 Writes blocks of the addressed. SD Card Protocol Description SanDisk SD Card Product Manual CMD Index Type Argument Resp. If card supports this feature, it sets the write protection bit of the CSD. In case ...that write partial blocks is specified in bytes) for manufacturer adtc [31:0] stuff R1 bits PROGRAM_CSD Write Protection Commands (Class...
Product Manual
Page 79
... length is set /reset the password or lock/unlock the card. Used to set by 16 CRC bits are allowed in SD Memory Card -Reserved for all previously selected write blocks. SD Card Protocol Description SanDisk SD Card Product Manual CMD Index Type Argument Resp. Abbreviation CMD31 Reserved Erase Commands (Class 5) CMD32 ac [31:0] data address CMD33 ac [31:0] data...
... length is set /reset the password or lock/unlock the card. Used to set by 16 CRC bits are allowed in SD Memory Card -Reserved for all previously selected write blocks. SD Card Protocol Description SanDisk SD Card Product Manual CMD Index Type Argument Resp. Abbreviation CMD31 Reserved Erase Commands (Class 5) CMD32 ac [31:0] data address CMD33 ac [31:0] data...
Product Manual
Page 80
... for I /O Mode Commands (Class 9) CMD52...CMD54 Reserved for each command system specification. © 2004 SanDisk Corporation 4-36 12/08/04 I /O mode (refer to get a data block from the card. CMD51 Type Argument Reserved Resp. Revision 2.2 Chapter 4 - "0" the host sends block of data from the card for access mode. SD Card Protocol Description SanDisk SD Card Product Manual CMD Index...
... for I /O Mode Commands (Class 9) CMD52...CMD54 Reserved for each command system specification. © 2004 SanDisk Corporation 4-36 12/08/04 I /O mode (refer to get a data block from the card. CMD51 Type Argument Reserved Resp. Revision 2.2 Chapter 4 - "0" the host sends block of data from the card for access mode. SD Card Protocol Description SanDisk SD Card Product Manual CMD Index...
Product Manual
Page 82
...stby stby --- tran prg --- --- --- stby tran data rcv prg dis --- Class 2 CMD16 CMD17 CMD18 --- --- --- --- Class 4 CMD16 see class 2 © 2004 SanDisk Corporation 4-38 12/08/04 The SD Card application-specific command state-transitions can be found in Class 8. tran --- --- --- --- dis --- --- CMD15 --- --- --- Reserved for SD security applications. ident --- --- --- --- --- --- --- --- CMD12 --- --- --- --- --- CMD2 --- stby stby --- --- --- --- --- --- prg --- CMD10 --- --- --- data...
...stby stby --- tran prg --- --- --- stby tran data rcv prg dis --- Class 2 CMD16 CMD17 CMD18 --- --- --- --- Class 4 CMD16 see class 2 © 2004 SanDisk Corporation 4-38 12/08/04 The SD Card application-specific command state-transitions can be found in Class 8. tran --- --- --- --- dis --- --- CMD15 --- --- --- Reserved for SD security applications. ident --- --- --- --- --- --- --- --- CMD12 --- --- --- --- --- CMD2 --- stby stby --- --- --- --- --- --- prg --- CMD10 --- --- --- data...
Product Manual
Page 83
..., 44, 45, 46, 47, 48, 49 ACMD41, card VDD range compatible ACMD41, card busy ACMD41, card VDD range not compatible ACMD42 ACMD51 idle - - - - data - - - - - - - - - Class 9 CMD52CMD54 Refer to the SD Card Security Specification for an explanation of the SD Security features. prg --- --- --- --- --- --- --- --- --- stby tran data rcv prg dis - - - SD Card Protocol Description SanDisk SD Card Product Manual Current Status idle ready ident...
..., 44, 45, 46, 47, 48, 49 ACMD41, card VDD range compatible ACMD41, card busy ACMD41, card VDD range not compatible ACMD42 ACMD51 idle - - - - data - - - - - - - - - Class 9 CMD52CMD54 Refer to the SD Card Security Specification for an explanation of the SD Security features. prg --- --- --- --- --- --- --- --- --- stby tran data rcv prg dis - - - SD Card Protocol Description SanDisk SD Card Product Manual Current Status idle ready ident...
Product Manual
Page 84
...length 48 bit. The status of the command to which it is coded in 32 bits. Revision 2.2 Chapter 4 - SD Card Protocol Description SanDisk SD Card Product Manual 4.9.1 Current Status idle ready ident stby tran data rcv prg dis ina State Change Trigger Changes to 4-22 ...responses supported in the Table 4-19 to Class 10 CMD6 - - - - Table 4-19 Response R1 Bit Position 47 46 [45:40] [39:8] [7:1] 0 Width (bits) 1 1 6 32 7 1 Value 0 0 x x x 1 Description start bit (0), followed by x in the SanDisk SD Card. A response always starts with the MSB....
...length 48 bit. The status of the command to which it is coded in 32 bits. Revision 2.2 Chapter 4 - SD Card Protocol Description SanDisk SD Card Product Manual 4.9.1 Current Status idle ready ident stby tran data rcv prg dis ina State Change Trigger Changes to 4-22 ...responses supported in the Table 4-19 to Class 10 CMD6 - - - - Table 4-19 Response R1 Bit Position 47 46 [45:40] [39:8] [7:1] 0 Width (bits) 1 1 6 32 7 1 Value 0 0 x x x 1 Description start bit (0), followed by x in the SanDisk SD Card. A response always starts with the MSB....
Product Manual
Page 96
... host is allowed to provide 8 (eight) clock cycles for these eight clocks. • A read operations occur are (card independent) either 100 times longer than Class 0 or 7 commands. • It is not going to respond anymore and try to complete the operation before shutting down ... line down . Without a clock edge, the SD Card (unless previously disconnected by the SD cards). • It is irrelevant. It can be running for the card to output data or response tokens. However, the host must provide a clock edge for the SanDisk SD Card to turn off its busy signal. If the ...
... host is allowed to provide 8 (eight) clock cycles for these eight clocks. • A read operations occur are (card independent) either 100 times longer than Class 0 or 7 commands. • It is not going to respond anymore and try to complete the operation before shutting down ... line down . Without a clock edge, the SD Card (unless previously disconnected by the SD cards). • It is irrelevant. It can be running for the card to output data or response tokens. However, the host must provide a clock edge for the SanDisk SD Card to turn off its busy signal. If the ...
Product Manual
Page 98
...- + + specific 9 I/O mode + + 10 Switch + ++++ + + 11 R Key: NS = Not supported 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 SD mode, the SPI commands are different in SPI mode. Byte 1 76 5 0 0 1 Command Byte 2-5 31 0 Command Argument Byte 6 7 0 CRC...
...- + + specific 9 I/O mode + + 10 Switch + ++++ + + 11 R Key: NS = Not supported 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 SD mode, the SPI commands are different in SPI mode. Byte 1 76 5 0 0 1 Command Byte 2-5 31 0 Command Argument Byte 6 7 0 CRC...
Product Manual
Page 99
... group 1 for CMD39 is (binary) '100111.' The reserved commands are defined in SD Memory Card mode as well. Table 5-2 SPI Bus Command Description CMD Index CMD0 CMD1 CMD2 CMD3... --- --- Forces the card to SDIO Card Specification). The responses are reserved in Section 5.16. A "yes" in SPI mode. With these restrictions, the command class description in the CSD is...Reserved. Reserved for I/O mode (refer to tt ii © 2004 SanDisk Corporation 5-9 12/08/04 SPI Protocol SD Card Product Manual 5.17.3 Command Description The following table provides a detailed ...
... group 1 for CMD39 is (binary) '100111.' The reserved commands are defined in SD Memory Card mode as well. Table 5-2 SPI Bus Command Description CMD Index CMD0 CMD1 CMD2 CMD3... --- --- Forces the card to SDIO Card Specification). The responses are reserved in Section 5.16. A "yes" in SPI mode. With these restrictions, the command class description in the CSD is...Reserved. Reserved for I/O mode (refer to tt ii © 2004 SanDisk Corporation 5-9 12/08/04 SPI Protocol SD Card Product Manual 5.17.3 Command Description The following table provides a detailed ...