User Manual

SPI Protocol Definition
TriFlash with SD Interface Product Manual (Preliminary), Rev. 1.2 © 2002/2003 SANDISK CORPORATION
5-7
5.1.11. Card Lock/Unlock
The Card Lock/Unlock feature is currently not supported in the SanDisk TriFlash.
5.1.12. Application Specific Commands
The Application Specific commands are identical to SD Bus mode with the exception of the APP_CMD status bit
(refer to Section 3.5.5), which is not available in SPI.
5.1.13. Copyright Protection Commands
All the special Copyright Protection ACMDs and security functionality are the same as for SD Bus mode.
5.2. SPI Command Set
The following sections provide valuable information for TriFlash’s SPI command set.
5.2.1. Command Format
All the TriFlash commands are 6 bytes long and transmitted MSB first.
Byte 1 Bytes 2—5 Byte 6
7 6 5 0 31 0 7 0
0 1 Command Command Argument CRC 1
Commands and arguments are listed in Table 5-2.
7-bit CRC Calculation: G(x) = x
7
+ x
3
+ 1
M(x) = (start bit)x
39
+ (host bit)x
38
+...+ (last bit before CRC)x
0
CRC[6...0] = Remainder[(M(x)x
7
)/G(x)]
5.2.2. Command Classes
As in SD mode, the SPI commands are divided into several classes (See Table 5-1). Each class supports a set of
device functions. A TriFlash device will support the same set of optional command classes in both communication
modes (there is only one command class table in the CSD register). The available command classes, and the
supported commands for a specific class, however, are different in the SD Bus and the SPI communication mode.
NOTE: Except the classes that are not supported in SPI mode (class 1, 3 and 9), the mandatory required classes for
the SD mode are the same for the SPI mode.