SD Physical Specsv101
SD Physical Specsv101
Simplified Version of :
Part 1
cia d
PHYSICAL LAYER SPECIFICATION
n
Version 1.01
so ar
tio
C
April 15 2001
SD
SD Group
As
CONFIDENTIAL
SD-Memory Card Specifications / Part 1. Physical Layer Specification; Version 1.01
Revision History
cia d
Date Version Changes compared to previous issue
n
March 22th, 2000 1.0 Base version
April 15th, 2001 1.01 Detailed description of the revision history is given in the full version of
Spec Ver 1.01.
so ar
tio
C
SD
As
1 General description - 4
2 System features - 6
cia d
n
4 SD Memory Card Functional Description - 20
5 Card Registers - 20
so ar
tio
6 SD Memory Card Hardware Interface - 20
7 SPI Mode - 20
9 Appendix - 31
1 General description
SD Memory Card (Secure Digital Memory Card) is a memory card that is specifically designed to
meet the security, capacity, performance and environment requirements inherent in newly emerging
audio and video consumer electronic devices. The SD Memory Card will include a copyright protec-
tion mechanism that complies with the security of the SDMI standard and will be faster and capable
for higher Memory capacity. The SD Memory Card security system uses mutual authentication and
a "new cipher algorithm" to protect from illegal usage of the card content. A none secured access to
the user‘s own content is also available. The physical form factor, pin assignment and data transfer
protocol are forward compatible with the MultiMediaCard with some additions.
The SD Memory Card communication is based on an advanced 9-pin interface (Clock, Command,
4xData and 3xPower lines) designed to operate in at maximum operating frequency of 25MHz of
and low voltage range. The communication protocol is defined as a part of this specification. The SD
Memory Card host interface supports regular MultiMediaCard operation as well. In other words,
MultiMediaCard forward compatibility was kept. Actually the main difference between SD Memory
cia d
Card and MultiMediaCard is the initialization process.
n
The SD Memory Card Specifications were divided to several documents. The SD Memory Card
documentation structure is given in Figure 1.
so ar
tio
Audio Specification other Application Documents
SD
Memory
Card File System Specification
Security
C
Spec.
SD Memory Card Physical Layer Spec. (This Document)
This specification along with other application specifications describe the specification of certain
application (in this case - Audio Application) and the requirements to implement it.
Describes the physical interface and the command protocol used by the SD Memory Card.
The purpose of the SD Memory Card Physical Layer specification is the definition of the SD Memory
Card, its environment and handling.
The document is split up into several portions. Chapter 3 gives a general overview of the system
concepts. The common SD Memory Card characteristics are described in Chapter 4. As this
description defines an overall set of card properties, we recommend to use the product documenta-
tion in parallel. The card registers are described in Chapter 5.
Chapter 6 defines the electrical parameters of the SD Memory Card’s hardware interface.
Chapter 8 describes the physical and mechanical properties of the SD Memory Cards and the mini-
mal recommendations to the card slots or cartridges.
As used in this document, “shall” or “will” denotes a mandatory provision of the standard. “Should”
denotes a provision that is recommended but not mandatory. “May” denotes a feature whose pres-
ence does not preclude compliance, that may or may not be present at the option of the implemen-
tor.
cia d
n
so ar
tio
C
SD
As
2 System features
cia d
n
• Maximum data rate with up to 10 cards
• Correction of memory field errors
•
so ar
Card removal during read operation will never harm the content
tio
• Forward compatibility to MultiMediaCard
• Copyrights Protection Mechanism - Complies with highest security of SDMI stan-
dard.
C
• Password Protection of cards (option)
• Write Protect feature using mechanical switch
• Built-in write protection features (permanent and temporary)
• Card Detection (Insertion/Removal)
SD
• SD Memory Card thickness is defined as either 2.1mm (normal) and 1.4mm (Thin
SD Memory Card) .
The SD Memory Card provides application designers with a low cost mass storage device, imple-
mented as a removable card, that supports high security level for copyright protection and a com-
pact, easy-to-implement interface.
SD Memory Cards can be grouped into several card classes which differ in the functions they pro-
vide (given by the subset of SD Memory Card system commands):
• Read/Write (RW) cards (Flash, One Time Programmable - OTP, Multiple Time Programmable -
MTP). These cards are typically sold as blank (empty) media and are used for mass data stor-
age, end user recording of video, audio or digital images.
• Read Only Memory (ROM) cards. These cards are manufactured with a fixed data content. They
are typically used as a distribution media for software, audio, video etc.
In terms of operating supply voltage, two types of SD Memory Cards are defined:
• SD Memory Cards which supports initialization/identification process with a range of 2.0-3.6v
and operating voltage within this range as defined in the CSD register.
cia d
n
• SDLV Memory Cards - Low Voltage SD Memory Cards, that can be operate in voltage range of
1.6-3.6V. The SDLV Memory Cards will be labeled differently then SD Memory Cards.
SD Memory Card system includes the SD Memory Card (or several cards) the bus and their Host /
so ar
tio
Application. The Host and Application specification is beyond the scope of this document. The fol-
lowing sections provides an overview of the card, bus topology and communication protocols of the
SD Memory Card system. The copyright protection (security) system description is given in “SD
Memory Card Security Specification” document.
3.1.1 SD bus
HOST
CLK CLK
Vdd Vdd
Vss Vss SD Memory
Card (A)
D0-3(A), D0-D3, CMD
CMD(A)
CLK
Vdd
Vss SD Memory
Card (B)
D0-3(B), D0-D3, CMD
cia d
n
CMD(B)
so ar CLK
tio
Vdd
Vss MultiMediaCard
(C)
D0, CS, CMD
D0-3(C) D1&D2 Not
CMD(C) Connected
C
Figure 2: SD Memory Card system bus Topology
SD bus allows dynamic configuration of the number of data lines. After power up, by default, the SD
Memory Card will use only DAT0 for data transfer. After initialization the host can change the bus
width (number of active data lines). This feature allows easy trade off between HW cost and system
performance. Note that while DAT1-DAT3 are not in use, the related Host’s DAT lines should
be in tri-state (input mode).
The SPI compatible communication mode of the SD Memory Card is designed to communicate with
a SPI channel, commonly found in various microcontrollers in the market. The interface is selected
during the first reset command after power up and cannot be changed as long as the part is pow-
ered on.
The SPI standard defines the physical link only, and not the complete data transfer protocol. The SD
Memory Card SPI implementation uses the same command set of the SD mode. From the applica-
tion point of view, the advantage of the SPI mode is the capability of using an off-the-shelf host,
hence reducing the design-in effort to minimum. The disadvantage is the loss of performance, rela-
tively to the SD mode which enables the wide bus option.
The SD Memory Card SPI interface is compatible with SPI hosts available on the market. As any
other SPI device the SD Memory Card SPI channel consists of the following four signals:
CS: Host to card Chip Select signal.
CLK: Host to card clock signal
cia d
n
DataIn: Host to card data signal.
DataOut: Card to host data signal.
so ar
Another SPI common characteristic are byte transfers, which is implemented in the card as well. All
tio
data tokens are multiples of bytes (8 bit) and always byte aligned to the CS signal.
HOST
CS
CS(A)
C
Vdd Vdd SD Memory
Vss Vss CARD (A)
(SPI mode)
CLK,DataIN,DataOut
CS
SD
CS(B)
Vdd
SD Memory
Vss
CARD (B)
CLK, (SPI mode)
CLK,DataIN,DataOut
DataIN,
DataOut
CS(C) CS
Vdd
MultiMediaCard
Vss
CARD (C)
(SPI mode)
CLK,DataIN,DataOut
As
The card identification and addressing methods are replaced by a hardware Chip Select (CS) sig-
nal. There are no broadcast commands. For every command, a card (slave) is selected by asserting
3.2.1 SD bus
Communication over the SD bus is based on command and data bit streams which are initiated by a
start bit and terminated by a stop bit.
• Command: a command is a token which starts an operation. A command is sent from the host
cia d
either to a single card (addressed command) or to all connected cards (broadcast command). A
n
command is transferred serially on the CMD line.
• Response: a response is a token which is sent from an addressed card, or (synchronously) from
all connected cards, to the host as an answer to a previously received command. A response is
so ar
transferred serially on the CMD line.
tio
• Data: data can be transferred from the card to the host or vice versa. Data is transferred via the
data lines.
DAT
Card addressing is implemented using a session address, assigned to the card during the initializa-
tion phase. The structure of commands, responses and data blocks is described in Chapter 4. The
basic transaction on the SD bus is the command/response transaction (refer to Figure 4). This type
of bus transactions transfer their information directly within the command or response structure. In
addition, some operations have a data token.
Data transfers to/from the SD Memory Card are done in blocks. Data blocks always succeeded by
CRC bits. Single and multiple block operations are defined. Note that the Multiple Block operation
mode is better for faster write operation. A multiple block transmission is terminated when a stop
As
command follows on the CMD line. Data transfer can be configured by the host to use single or mul-
tiple data lines.
DAT data block crc data block crc data block crc
The block write operation uses a simple busy signaling of the write operation duration on the DAT0
cia d
n
data line (see Figure 6) regardless of the number of data lines used for transferring the data.
so ar
tio
crc ok
response
from from data from and busy stop command
host card host from stops data trans-
to card to host to card card fer
transmitter bit:
’1’= host command Command content: command and address information
or parameter, protected by 7 bit CRC checksum
end bit:
start bit: always ‘1’
always’0’
0 1 CONTENT CRC 1
total length=48 bits
As
Each command token is preceded by a start bit (‘0’) and succeeded by an end bit (‘1’). The total
length is 48 bits. Each token is protected by CRC bits so that transmission errors can be detected
and the operation may be repeated.
Response tokens have four coding schemes depending on their content. The token length is either
48 or 136 bits. The detailed commands and response definition is given in Chapter 4.7. The CRC
protection algorithm for block data is a 16 bit CCITT polynomial. All used CRC types are described
in Chapter 4.5.
transmitter bit:
’0’=card response Response content: mirrored command and status infor-
mation (R1 response), OCR register (R3 response) or
RCA (R6), protected by a 7bit CRC checksum end bit:
start bit: always ‘1’
always’0’
R2
0 0 CONTENT=CID or CSD CRC 1
total length=136 bits
cia d
n
Figure 8: Response token format
so ar
tio
In the CMD line the MSB bit is transmitted first the LSB bit is the last.
when the wide bus option is used, the data is transferred 4 bits at a time (refer to Figure 9). Start
and end bits, as well as the CRC bits, are transmitted for every one of the DAT lines. CRC bits are
calculated and checked for every DAT line individually. The CRC status response and Busy indica-
tion will be sent by the card to the host on DAT0 only (DAT1-DAT3 during that period are don’t care).
C
start bit: MSB (4095) LSB (0) end bit:
always’0’ always ‘1’
block length
DAT3 4095 3
Wide bus (all four data lines used): 0 CRC 1
DAT2 4094 2
0 CRC 1
DAT1 4093 1
0 CRC 1
DAT0 4092 0
0 CRC 1
As
(block length) / 4
While the SD channel is based on command and data bit streams which are initiated by a start bit
and terminated by a stop bit, the SPI channel is byte oriented. Every command or data block is built
of 8-bit bytes and is byte aligned to the CS signal (i.e. the length is a multiple of 8 clock cycles).
Similar to the SD protocol, the SPI messages consist of command, response and data-block tokens
All communication between host and cards is controlled by the host (master). The host starts every
bus transaction by asserting the CS signal low.
The response behavior in the SPI mode differs from the SD mode in the following three aspects:
• The selected card always responds to the command.
• Two new (8 & 16 bit) response structure is used
• When the card encounters a data retrieval problem, it will respond with an error response (which
replaces the expected data block) rather than by a time-out as in the SD mode.
In addition to the command response, every data block sent to the card during write operations will
be responded with a special data response token.
cia d
n
• Data Read
Single and multiple block read commands are supported in SPI mode. However, in order to comply
with the SPI industry standard, only two (unidirectional) signal are used (refer to Chapter 10). Upon
so ar
tio
reception of a valid read command the card will respond with a response token followed by a data
token of the length defined in a previous SET_BLOCKLEN (CMD16) command. A multiple block
read operation is terminated, similar to the SD protocol, with the STOP_TRANSMISSION com-
mand.
C
from from data from card stop Com-
host card to host mand
to card to host
A valid data block is suffixed with a 16 bit CRC generated by the standard CCITT polynomial
x16+x12+x5+1.
In case of a data retrieval error, the card will not transmit any data. Instead, a special data error
As
token will be sent to the host. Figure 11 shows a data read operation which terminated with an error
• Data Write
Single and multiple block write operations are supported in SPI mode. Upon reception of a valid
write command, the card will respond with a response token and will wait for a data block to be sent
cia d
n
from the host. CRC suffix, block length and start address restrictions are identical to the read opera-
tion (see Figure 12).
so ar
tio
Data
data start
response and data stop
token
busy from token
from from data from card data from
host card host host
to card to host to card to card
After a data block has been received, the card will respond with a data-response token. If the data
block has been received without errors, it will be programmed. As long as the card is busy program-
ming, a continuous stream of busy tokens will be sent to the host (effectively holding the DataOut
line low).
As
1 2 3 45 678
9
wp
SD Memory
Card
Figure 13 describes the general idea of the shape and interface contacts of SD Memory Card. The
detailed physical dimensions and mechanical description is given in chapter 9.
cia d
n
The following table defines the card contacts:
so ar SD Mode SPI Mode
tio
Pin #
Name Type1 Description Name Type Description
1 CD/DAT32 I/O/PP3 Card Detect / CS I Chip Select (neg true)
Data Line [Bit 3]
2 CMD PP Command/Response DI I Data In
C
3 VSS1 S Supply voltage ground VSS S Supply voltage ground
4 VDD S Supply voltage VDD S Supply voltage
5 CLK I Clock SCLK I Clock
6 VSS2 S Supply voltage ground VSS2 S Supply voltage ground
SD
Each card has a set of information registers (see also Chapter 5 in the SD Memory Card Physical
Layer Specification):
cia d
n
The host may reset the cards by switching the power supply off and on again. Each card shall have
its own power-on detection circuitry which puts the card into a defined state after the power-on. No
explicit reset signal is necessary. The cards can also be reset by sending the GO_IDLE (CMD0)
command.
so ar
tio
C
VDD
DAT2 CMD CLK DAT0
CD/DAT3 Interface driver DAT1
OCR[31:0]
CID[127:0]
Card
RCA[15:0] interface
Power on detection
SD
DSR[15:0] controller
reset
CSD[127:0]
SCR[63:0]
Memory core
As
cia d
n
CMD3 CMD3 SD memory card each card is
reset and identified indepen-
dently and the RCA (CMD3) is
assigned by the card.
so ar
tio
Operation Commands SEND_NUM_WR_BLOCK two new command for improved
SET_WR_BLK_COUNT write performance (ACMD23,
ACMD22) are supported in SD.
Maximum Clock rate 25MHz 20MHz
Copyright protection supported (optional in not supported
C
Read Only type of cards)
Write protect switch supported not supported When MultiMediaCard is inserted
into an SD Memory Card slot, it
always perceived as non-write-
protected card (window closed)
Feature of Pin #1 Has a card internal pull-up Defined as "not In SD Memory Card pin #1 may
SD
1. As defined in the MultiMediaCard system specification V2.11. Published by the MMCA technical commitee.
I/O Mode not supported supported I/O (Interrupt) mode is not sup-
(optional) ported in SD Memory Card.
Table 3: Differences between SD Memory Card and MultiMediaCard Feature set
The only difference (as opposed to addition) between the SD Memory Card and the MultiMediaCard
is the bus topology and initialization protocol. While the MultiMediaCard stack is connected on the
same bus and being identified using synchronous transmission of Open-drain outputs, each SD
Memory Card has an independent point-to-point connection to the host, and the cards are identified
serially, one at a time (refer to Table 4 for a command set comparison between SD Memory Card
and MultiMediaCard. Detailed description of the SD Memory card protocol commands can be found
in Chapter 4).
The initializing procedure in the SD protocol is defined to successfully identify either a MultiMedi-
aCard or a SD Memory Card, which ever is currently connected on the bus. After card detection, the
host executes the initializing procedure and ends up with an identified card of a known type.
cia d
n
Once the card is initialized the application can determine the card capabilities by querying the vari-
ous configuration registers, and decide whether or not to use it.
The physical dimension of the SD Memory Card is thicker than MultiMediaCard (2.1mm vs. 1.4mm;
so ar
tio
refer to Chapter 9) but it is defined in such a way that a MultiMediaCard can be inserted into SD
Memory Card socket. Note that because of the small differences between the mechanical definition
of the pads layout of MultiMediaCard it is required that the SD Host will set its own DAT1-DAT3 lines
to be in Input Mode (Tri-State) while they are not in use.
Three different card detect mechanisms are defined for the SD Memory Card (e.g. mechanical
insertion which can be sensed using the WP switch, Electrical insertion which can be sensed using
C
the pull-up resistor on DAT3 and periodical attempts to initialize the card). Since some of these
methods may be not relevant (or behave differently) for the MultiMediaCard, it is recommended not
to depend on the preemptive card detects methods only. The host should implement a polling
mechanism or allow the operator to request card identification.
SD
SD Memory MultiMedia
Class CMD Comment
Card Card
CMD2 CMD2 CMD2 Similar command except buffer type used to transmit
(Mandatory) to response of the card. (SD Memory Card: push-pull,
MultiMediaCard: open-drain)
SD Memory MultiMedia
Class CMD Comment
Card Card
Class 1 CMD11 Reserved CMD11 SD Memory Card doesn’t support stream access.
Class 3 CMD20 Reserved CMD20 SD Memory Card dose not support stream access.
cia d
n
Class 6 CMD28 CMD28-31 CMD28-31 Same commands.
-31 (Optional)
CMD34 Reserved CMD34-37 SD Memory Card dose not support TAG and Erase
Class 5
-37 Group commands
Class 9 CMD39 Reserved CMD39-41 SD Memory Card dose not support I/O mode.
-41
This chapter is omitted from the simplified version of the physical layer specification
5 Card Registers
This chapter is omitted from the simplified version of the physical layer specification
This chapter is omitted from the simplified version of the physical layer specification
cia d
7 SPI Mode
n
This chapter is omitted from the simplified version of the physical layer specification
so ar
tio
C
SD
As
This chapter describes the mechanical and electromechanical features of the SD Memory Card,
and furthermore the minimal recommendations to the SD Memory Card connector. All technical
drafts follow DIN ISO standard.
cia d
n
- appealing appearance
Number of ESC 9
distance from front edge 1.2 mm
ESC grid 2.5mm
contact dimensions 1.7mm x 4.0mm
electrical resistance 30 mΩ (worst case: 100 mΩ)
micro interrupts < 0.1 µs
As
cia d
8.1.3 Reliability and durability
n
temperature operation: -25°C / 85°C (Target spec)
storage: -40°C (168h) / 85°C (500h)
so ar
tio
junction temperature: max. 95°C
moisture and corrosion operation: 25°C / 95% rel. humidity
storage: 40°C / 93% rel. hum./500h
salt water spray:
3% NaCl/35C; 24h acc. MIL STD Method 1009
durability 10.000 mating cycles; Test procedure: tbd.
C
bending (note 1) 10N
torque (note 1) 0.15N.m or +/-2.5 deg .
drop test 1.5m free fall
UV light exposure UV: 254nm, 15Ws/cm² according to ISO 7816-1
visual inspection no warpage; no mold skin; complete form; no cavities
SD
shape and form (note 1) surface smoothness <= -0.1 mm/cm² within contour; no
cracks; no pollution (fat, oil dust, etc.)
Minimum moving force of WP 40gf (Ensures that the WP switch will not slide while it is
switch inserted to the connector).
WP Switch cycles minimum 1000 Cycles (@ Slide force 0.4N to 5N)
Note (1): The SDA’s recommended test methods for Torque, bending and Warpage are defined in seperate Application
Notes document.
cia d
Human body model according to IEC61000-4-2
n
The SDA’s recommended test methods for the non-contact/air discharge tests are given in a
separate Application Note document.
so ar
tio
8.1.5 Quality assurance
cia d
n
so ar
tio
C
SD
Notes for all the mechanical descriptions of the SD Memory Card (including Thin SD Memory Card):
1) The numbers enclosed by a square means that it is the distance between base lines. Those val-
ues are for information only (the given general tolerances are not related to them).
cia d
n
so ar
tio
C
SD
As
cia d
n
so ar
tio
Inter Connect
Area
C
Substrate
Area
SD
Note: Refer to Table 6 for the definition of ’substrate’ and ’Inter Connect’ areas.
Figure 18 describes the Write Protect switch position at all various cases and card types.
As
- R /W card(W P s w i t c h i s m o v a b l e )
Write unable Write enable
cia d
n
This form is same as
taking off the WP Switch
so ar from R/W card.
tio
Figure 18: WP Switch definition for all cases and card types
To guarantee a reliable initialization during hot insertion, some measures shall be taken on the host
SD
side. For instance, a special hot-insertion capable card connector may be used to guarantee the
proper sequence of card pin connection.
The card contacts are contacted in three steps:
1) Ground Vss (pin 3) and supply voltage Vdd (pin 4).
2) CLK, CMD, DAT0, DAT1, DAT2 and Vss (pin 6).
3) CD / DAT3 (pin 1).
Pins 3 and 4 should make first contact when inserting, and release last when extracting.
As another method, a switch could ensure that the power is switched on only after all card pads are
contacted. Of course, any other similar mechanism is allowed.
As
Inverse insertion is prevented by the reclining corners of SD Memory Card and connector.
cia d
n
so ar Figure 19: Inverse insertion
tio
8.3.3 Card Orientation
For the benefit of unified terminology when discussing the three dimensional orientation of a card
(e.g. for connector definition), the non contact-pads side (the side with the card label) is defined as
the TOP side of the card and the contact-pads side of the card is defined as the BOTTOM side of
C
the card.
SD Memory cards with mechanical dimensions that will be suitable for extra small applications will
be available.
The "Thin SD Memory card" has very similar form factor as the SD Memory Card that is given in
Chapter 8.2 above except it thickness. The thickness of the "Thin SD Memory Card" is 1.4mm+/-
0.15mm.
Figure 20, 21 and 17 are the mechanical drawings of Thin SD Memory Card.
Note that even though the WP switch appears in the given diagram it was defined as an optional for
Thin SD Memory Card.
As
cia d
n
so ar
tio
C
Figure 20: Mechanical Drawing of Thin SD Memory Card
SD
As
cia d
n
so ar
tio
C
SD
9 Appendix
This chapter is omitted from the simplified version of the physical layer specification
cia d
n
so ar
tio
C
SD
As
cia d
n
group a number of sectors, composite erase and write protect unit
LOW, HIGH binary interface states with defined assignment to a voltage level
NSAC defines the worst case for the clock rate dependent factor of the data access time
so ar
tio
MSB, LSB the Most Significant Bit or Least Significant Bit
MTP Multiple Time Programmable memory
OCR Operation Conditions Register
OTP One Time Programmable memory
C
payload net data
push-pull a logical interface operation mode, a complementary pair of transistors is used
to push the interface level to HIGH or LOW
RCA Relative Card Address register
ROM Read Only Memory
SD