SD card
![]() SD (top), miniSD, microSD cards | |
Media type | Memory card |
---|---|
Capacity | SDSC (SD): 1 MB to 2 GB, some 4 GB available. SDHC: 4 GB to 32 GB SDXC: ≥32 GB to 2 TB |
Developed by | SD Card Association |
Dimensions | Standard: Template:Convert/3 Mini: Template:Convert/3 Micro: Template:Convert/3 |
Weight | Standard: ~2 g Mini: ~0.8 g Micro: ~0.25 g |
Usage | Portable devices, including digital cameras and handheld computers |
Extended from | MultiMediaCard (MMC) |
Secure Digital or (SD) is a non-volatile memory card format for use in portable devices, such as mobile phones, digital cameras, GPS navigation devices, and tablet computers.
The Secure Digital standard is maintained by the SD Card Association (SDA). SD technologies have been implemented in more than 400 brands across dozens of product categories and more than 8,000 models.[1]
The Secure Digital format includes four card families available in three different form factors. The four families are the original Standard-Capacity (SDSC), the High-Capacity (SDHC), the eXtended-Capacity (SDXC), and the SDIO, which combines input/output functions with data storage.[2][3][4] The three form factors are the original size, the "mini" size, and the "micro" size (see illustration). There are many combinations of form factors and device families.
Electrically passive adapters allow the use of a smaller card in a host device built to hold a larger card.
Host devices that comply with newer versions of the specification provide backward compatibility and accept older SD cards, but older host devices do not recognize newer cards. The SDA uses several trademarked logos to enforce compliance with its specifications and assure users of compatibility.[5] This article explains several factors that can prevent the use of a newer SD card:
- A newer card may offer greater capacity than the host device can handle.
- A newer card may use a file system the host device cannot navigate.
- Use of an SDIO card requires the host device be designed for the input/output functions the card provides.
- The organization of the card was changed starting with the SDHC family.
- Some vendors produced SDSC cards above 1 GB before the SDA had standardized a method of doing so.
Types of cards
The SDA extended the SD specification in various ways:
- It defined electrically identical cards in smaller sizes: miniSD and microSD (originally named TransFlash or TF). Smaller cards are usable in larger slots through use of a passive adapter. By comparison, Reduced Size MultiMediaCards (RS-MMCs) are simply shorter MMCs and can be used in MMC slots by use of a physical extender.
- It defined higher-capacity cards, some with faster speeds and added capabilities: SDHC (Secure Digital High Capacity) and SDXC (Secure Digital eXtended Capacity). These cards redefine the interface so that they cannot be used in older host devices.
- It defined an SDIO card family that provides input-output functions and may also provide memory functions. These cards are only fully functional in host devices designed to support their input-output functions.
Physical size
![](http://upload.wikimedia.org/wikipedia/commons/thumb/a/a7/MicroSD_MemoryCard_002.jpg/150px-MicroSD_MemoryCard_002.jpg)
The SD card specification defines three physical sizes. The SD and SDHC families are available in all three sizes, but the SDXC family is not available in the mini size, and the SDIO family is not available in the micro size.
Standard size
- SD (SDSC), SDHC, SDXC, SDIO
- Template:Convert/3
- Template:Convert/3 (as thin as MMC) for Thin SD (rare)
Mini size
- miniSD, miniSDHC, miniSDIO
- Template:Convert/3
Micro size
- microSD, microSDHC, microSDXC
- Template:Convert/3
Nano size
- nanoSD, nanoSDHC, nanoSDXC
- Template:Convert/3
SDHC
![](http://upload.wikimedia.org/wikipedia/commons/thumb/8/80/TwinMOS_16gb_sdhc.jpg/150px-TwinMOS_16gb_sdhc.jpg)
The Secure Digital High Capacity (SDHC) format, defined in Version 2.0 of the SD specification, supports cards with capacities up to 32 GB.[1] The SDHC trademark is licensed to ensure compatibility.[6]
SDHC cards are physically and electrically identical to standard-capacity SD cards (SDSC). The major compatibility issues between SDHC and SDSC cards are the redefinition of the Card-Specific Data (CSD) register in Version 2.0 (see below), and the fact that SDHC cards are shipped preformatted with the FAT32 file system.
Host devices that accept SDHC cards are required to accept SDSC cards.[1] However, host devices designed for SDSC do not recognize SDHC or SDXC memory cards, although some devices can do so through a firmware upgrade.[7] Older operating systems require patches to support SDHC. For instance, Microsoft Windows XP before SP3 requires a patch to support access to SDHC cards.[8] Windows Vista SP1 also requires a later service pack.[9][10]
SDXC
![](http://upload.wikimedia.org/wikipedia/commons/thumb/9/92/SDXC.svg/150px-SDXC.svg.png)
The Secure Digital eXtended Capacity (SDXC) format supports cards up to 2 TB (2048 GB), compared to a limit of 32 GB for SDHC cards in the SD 2.0 specification.
History
SDXC was announced at Consumer Electronics Show (CES) 2009 (January 7–10, 2009). At the same show, SanDisk and Sony also announced a comparable Memory Stick XC variant with the same 2 TB maximum as SDXC,[11] and Panasonic announced plans to produce 64 GB SDXC cards.[12]
On March 6, 2009, Pretec introduced the first SDXC card,[13] a 32 GB card with a read/write speed of 400 Mbit/s. But it was not until early 2010 that compatible host devices came onto the market, including Sony's Handycam HDR-CX55V camcorder, Canon's EOS 550D (also known as Rebel T2i) Digital SLR camera,[14] a USB card reader from Panasonic, and an integrated SDXC card reader from JMicron.[15] The earliest laptops to integrate SDXC card readers relied on a USB 2.0 bus, which does not have the bandwidth to support SDXC at full speed.[16]
Also in early 2010, commercial SDXC cards appeared from Toshiba (64 GB),[17][18] Panasonic (64 GB and 48 GB),[19] and SanDisk (64 GB).[20] In early 2011, Centon Electronics, Inc. (64 GB and 128 GB) and Lexar (128 GB) began shipping SDXC cards rated at Speed Class 10.[21] Pretec offered cards from 8 GB to 128 GB rated at Speed Class 16.[22]
In September 2011, SanDisk released a 64 GB microSDXC card.[23] Kingmax released a comparable product in 2011.[24]
Compatibility with SDHC
SDXC host devices accept all previous families of SD memory cards.[25] Conversely, SDHC host devices accept SDXC cards that follow Version 3.0, since the interface is identical,[3] but the following issues may affect usability:
- SDXC cards are pre-formatted with Microsoft's proprietary and patented exFAT file system, which the host device might not support. Since Microsoft does not publish the specifications of exFAT and its use requires a non-free license, many alternative or older operating systems do not support exFAT for technical or legal reasons. The use of exFAT on some SDXC cards may render SDXC unsuitable as a universal exchange medium, as an SDXC card that uses exFAT would not be usable in all host devices. Since the FAT32 file system supports volumes up to the SDXC's maximum theoretical capacity of 2 TB as well, a user could reformat an SDXC card to use FAT32 for greater portability between computers (see below). FAT32-formatted SDXC cards can be used in a host device built for SDHC if the host device can handle 64 GB and larger volumes.
- SDHC host devices do not test the new capability bits defined for SDXC 4.0 cards and thus cannot use the new features of SDXC, such as transfer speeds above UHS104 (104 MB/s).
Host operating system support
Microsoft Windows versions that support SDXC are: Windows 8 (RT and Pro), Windows 7, Windows Vista SP1+,[3] Windows XP SP2 or SP3 with KB955704,[26] Windows Server 2008 SP1+, Windows Server 2003 SP2 or SP3 with KB955704, and Windows CE 6.0 and higher.
Apple Mac OS X versions that support SDXC cards and exFAT are Mac OS X Snow Leopard 10.6.5 or later including OS X Lion 10.7.[27][28]
BSD and Linux systems that support SDHC cards also support SDXC cards that contain a compatible file system, but they normally do not support the proprietary exFAT file system that is installed on SDXC cards, because of patent issues. However, Google Code contains an implementation.[29] The user may reformat the card to contain a different file system (see below).
SDIO
![](http://upload.wikimedia.org/wikipedia/commons/thumb/0/04/HP_PhotoSmart_SDIO_Kamera.jpg/150px-HP_PhotoSmart_SDIO_Kamera.jpg)
A SDIO (Secure Digital Input Output) card is an extension of the SD specification to cover I/O functions. Host devices that support SDIO (typically PDAs like the Palm Treo, but occasionally laptops or mobile phones) can use the SD slot to support GPS receivers, modems, barcode readers, FM radio tuners, TV tuners, RFID readers, digital cameras, and interfaces to Wi-Fi, Bluetooth, Ethernet, and IrDA. Many other SDIO devices have been proposed, but it is now more common for I/O devices to connect using the USB interface.
SDIO cards support most of the memory commands of SD cards. SDIO cards can be structured as 8 logical cards, although currently, the typical way that an SDIO card uses this capability is to structure itself as one I/O card and one memory card.
Host support for SDIO
The SDIO and SD interfaces are mechanically and electrically identical. Host devices built for SDIO cards generally accept SD memory cards without I/O functions. However, the reverse is not true, because host devices need suitable drivers and applications to support the card's I/O functions. For example, an HP SDIO camera usually does not work with PDAs that do not list it as an accessory. Inserting an SDIO card into any SD slot causes no physical damage nor disruption to the host device, but users may be frustrated that the SDIO card does not function fully when inserted into a seemingly compatible slot. (Bluetooth devices exhibit comparable compatibility issues, although to a lesser extent thanks to standardized Bluetooth profiles.)
Features
Card security (non-DRM)
Read-only cards
The host device can command the SD card to become read-only (to reject subsequent commands to write information to it). There are several different ways to achieve this, one of which is irreversible.
Write protection tab
When looking at the card from the top, the right side (the side with the beveled corner) must be notched.
On the left side, there may be a write-protection notch. If the notch is omitted, the card can be read and written. If the card is notched, it is read-only, except that the notch may be partly covered by a sliding tab. In this case, the user can slide the tab upward (toward the contacts) to declare the card read/write, or downward to declare it read-only.
The presence of a notch, and the presence and position of a tab, have no effect on the SD card's operation. A host device that supports write protection should refuse to write to an SD card that is designated read-only in this way. Some host devices do not support write protection, which is an optional feature of the SD specification. Drivers and devices that do obey a read-only indication may give the user a way to override it. The miniSD and microSD formats do not support write protection with the notch-and-tab method.
Typical cards sold as a medium for protected content are permanently marked read-only by having a notch and no sliding tab.
Card password
A host device can lock an SD card using a password of up to 16 bytes, typically supplied by the user. A locked card interacts normally with the host device except that it rejects commands to read and write data. A locked card can be unlocked only by providing the same password. The host device can, after supplying the old password, specify a new password or disable locking. Without the password (typically, in the case that the user forgets the password), the host device can command the card to erase all the data on the card for future re-use (except card data under DRM), but there is no way to gain access to the existing data.
DRM features
All cards incorporate a digital rights management (DRM) scheme. Roughly 10% of the storage capacity of an SD card is not available to the user, but is used by the on-card processor to verify the identity of an application program that it then allows to read protected content. The card prohibits other accesses, such as users trying to make copies of protected files.
The DRM scheme embedded in the SD cards is the Content Protection for Recordable Media (CPRM or CPPM) specification of the 4C Entity, which features the Cryptomeria cipher (also termed C2). The specification is kept secret and is accessible only to licensees. The scheme has not been broken or hacked, but this feature of SD cards is rarely used to protect content. DVD-Audio uses the same DRM scheme.
Windows Media files can be DRM-encoded so as to make use of the SD card's DRM abilities.[citation needed]
Windows Phone 7 devices use SD cards designed for access only by the phone manufacturer or mobile provider. An SD card inserted into the phone underneath the battery compartment becomes locked "to the phone with an automatically generated key" so that "the SD card cannot be read by another phone, device, or PC".[30] Symbian devices, however, are some of the few that can perform the necessary low-level format operations on locked SD cards. It is therefore possible to use a device such as the Nokia N8 to reformat the card for subsequent use in other devices.[31]
A Super Digital product formerly[32] made by Super Talent was essentially the SD card without the DRM features.
Vendor enhancements
![](http://upload.wikimedia.org/wikipedia/commons/thumb/2/28/USB-SD-Cards.jpg/150px-USB-SD-Cards.jpg)
![](http://upload.wikimedia.org/wikipedia/commons/thumb/c/cc/Five_SanDisk_SD_cards_in_various_colors_20111127.jpg/150px-Five_SanDisk_SD_cards_in_various_colors_20111127.jpg)
Vendors have sought to differentiate their products in the market through various vendor-specific features:
- Integrated Wi-Fi — Eye-Fi produces several SD cards with built-in Wi-Fi transceivers providing static security (WEP 40; 104; and 128, WPA-PSK, and WPA2-PSK). The card lets any digital camera with an SD slot transmit captured images over a wireless network, or store the images on the card's memory until it is in range of a wireless network.[33] Some models geotag their pictures.
- Pre-loaded content — In 2006, SanDisk announced Gruvi, a microSD card with extra digital rights management (DRM) features, which they intended as a medium for publishing content. SanDisk again announced pre-loaded cards in 2008, under the slotMusic name, this time not using any of the DRM capabilities of the SD card.[34] In 2011, SanDisk offered various collections of 1000 songs on a single slotMusic card for about $40,[35] now restricted to compatible devices and without the ability to copy the files.
- Integrated USB connector — The SanDisk SD Plus product can be plugged directly into a USB port without needing a USB card reader.[36] Other companies introduced comparable products, such as the Duo SD product of OCZ Technology and the 3 Way (microSDHC, SDHC, and USB) product of A-DATA, which was available in 2008 only.
- Different colors — SanDisk has used various colors of plastic or adhesive label, including a "gaming" line in translucent plastic colors that indicated the card's capacity.
- Integrated display — In 2006, A-DATA announced a Super Info SD card with a digital display that provided a two-character label and showed the amount of unused memory on the card.[37]
Speeds
An SD card's speed is measured by how quickly information can be read from, or written to, the card. In applications that require sustained write throughput, such as video recording, the device might not perform satisfactorily if the SD card's class rating falls below a particular speed. For example, a camcorder built for a Class 6 card may suffer dropouts or corrupted video if a slower card is used. Digital cameras may experience a noticeable lag between shots, while the camera writes the picture to a slower card.
A card's speed depends on many factors, such as the following:
- The likelihood of soft errors that the card's controller must re-try
- The fact that, on most cards, writing data requires the controller to read and erase a larger region, then rewrite that entire region with the desired part changed
- The possibility of fragmentation: that a body of information the host views as a unit is, for historical reasons, written to non-contiguous regions of memory. (This possibility does not cause rotational or head-movement delays as with magnetic media, but it does vary the amount of computation the card's controller must do.)
In early SD cards, the speed was measured with the "×" rating, which compared the average speed of reading data to that of the original CD-ROM drive. Currently, the official unit of measurement is the Speed Class Rating, which guarantees a minimum rate at which data can be written to the card.
The newer families of SD card improve card speed by increasing the bus rate (the frequency of the clock signal that strobes information into and out of the card). Whatever the bus rate, the card can signal to the host that it is "busy" until a read or a write operation is complete. Compliance with a higher speed rating is a guarantee that the card limits its use of the "busy" indication.
Speed Class Rating
![](http://upload.wikimedia.org/wikipedia/commons/thumb/1/19/Pretec_32GB_SDHC_20090713.jpg/150px-Pretec_32GB_SDHC_20090713.jpg)
The SD Association defines standard speed classes indicating minimum performance to record video. Both read and write speeds must exceed the specified value. These are defined in terms of suitability for different applications:[38]
- Class 2 for SD video recording
- Class 4 and 6 for HD ~ Full HD video recording,
- Class 10 for Full HD video recording and HD still consecutive recording
- UHS Speed Class 1 for real-time broadcasts and large-size HD videos
The specification defines these classes in terms of performance curves that translate into the following minimum read-write performance levels on an empty card:[39]
Class Minimum performance Class 2
2 MB/sec Class 4
4 MB/sec Class 6
6 MB/sec Class 10
10 MB/sec
Speed Classes 2, 4, and 6 assert that the card supports the respective number of megabytes per second as a minimum sustained write speed for a card in a fragmented state. Class 10 asserts that the card supports 10 MB/s as a minimum non-fragmented sequential write speed.[39] By comparison, the older "×" rating measured maximum speed under ideal conditions, and was vague as to whether this was read speed or write speed.
The host device can read a card's speed class, unlike the earlier "×" speed ratings. A device can warn the user if the card reports a speed class that falls below an application's minimum need.[39]
“×” rating
The “×” rating is a multiple of the standard CD-ROM drive speed of 150 kB/s (approximately 1.23 Mbit/s). Basic cards transfer data up to six times (6×) the CD-ROM speed; that is, 900 kB/s or 7.37 Mbit/s. The 2.0 specification defines speeds up to 200×, but is not as specific as Speed Classes are on how to measure speed. Manufacturers may report best-case speeds and may report the card's fastest read speed, which is typically faster than the write speed. Some vendors, including Transcend and Kingston report their cards' write speed.[40] When a card lists both a speed class and an “×” rating, the latter may be assumed a read speed only.
This table shows the approximate relationship between certain “×” ratings and the newer Speed Class designations:
UHS Speed Class
The Ultra-High Speed (UHS) designation is available on some SDHC and SDXC cards.[41] The following ultra-high speeds are specified:
- UHS-I cards, specified in SD Version 3.01,[39] support a clock frequency of 100 MHz (a quadrupling of the original "Default Speed"), which in four-bit transfer mode could transfer 50 MB/s. UHS-I cards declared as UHS104 also support a clock frequency of 208 MHz, which could transfer 104 MB/s. UHS-I is the only class for which products are currently available.[42]
- Double data rate operation at 50 MHz (DDR50) is also specified in Version 3.01, and is mandatory for microSDHC and microSDXC cards labeled as UHS-I. In this mode, four bits are transferred when the clock signal rises and another four bits when it falls, transferring an entire byte on each full clock cycle.
- UHS-II cards, defined in Version 4.0, further raise the data transfer rate to a theoretical maximum of 312 MB/s.[43][44]
UHS memory cards work best with UHS host devices. The combination lets the user record HD resolution videos to tapeless camcorders while performing other functions. It is also suitable for real-time broadcasts and capturing large HD videos.
Cards that comply with UHS show UHS-I or UHS-II on the label, and report this capability to the host device. Use of UHS requires that the host device command the card to drop from 3.3-volt to 1.8-volt operation and select the 4-bit transfer mode.
Market penetration
![](http://upload.wikimedia.org/wikipedia/commons/thumb/c/c6/Sdadaptersandcards.jpg/150px-Sdadaptersandcards.jpg)
Secure Digital cards are used in many consumer electronic devices, and have become a widespread means of storing several gigabytes of data in a small size. Devices where the user may remove and replace cards often, such as digital cameras, camcorders, and video game consoles, tend to use full-sized cards. Devices where small size is paramount, such as mobile phones, tend to use microSD cards. SD cards are not the most economical solution in devices that need only a small amount of non-volatile memory, such as station presets in small radios. They may also not present the best choice for applications where higher storage capacities or speeds are a requirement as provided by other flash card standards such as CompactFlash.
Many personal computers of all types and personal digital assistants (PDAs) use SD cards, either through built-in slots or through an active electronic adaptor. Adaptors exist for the PC card, ExpressBus, USB, FireWire, and the parallel printer port. Active adaptors also let SD cards be used in devices designed for other formats, such as CompactFlash. The FlashPath adaptor lets SD cards be used in a floppy disk drive.
Digital cameras
![](http://upload.wikimedia.org/wikipedia/commons/thumb/b/b1/Canon_HF100_with_PQI_SDHC_card_20080610.jpg/150px-Canon_HF100_with_PQI_SDHC_card_20080610.jpg)
SD/MMC cards replaced Toshiba's SmartMedia as the dominant memory card format used in digital cameras. In 2001, SmartMedia had achieved nearly 50% use, but by 2005 SD/MMC had achieved over 40% of the digital camera market and SmartMedia's share had plummeted, with cards not being easily available in 2007.
At this time all the leading digital camera manufacturers use SD in their consumer product lines, including Canon, Casio, Fujifilm, Kodak, Leica, Nikon, Olympus, Panasonic, Pentax, Ricoh, Samsung, and Sony. Formerly, Olympus and Fujifilm used XD-Picture Cards (xD cards) exclusively, while Sony only used Memory Stick; however as of January 2010[update], all three support SD.
Some prosumer and professional digital camera models continue to offer CompactFlash, either on a second card slot or as the only storage, as they offer much higher capacities and faster transfer speeds and historically offered a better price/capacity ratio as well.
Secure Digital memory cards can be used in Sony XDCAM EX camcorders via the MEAD-SD01 adapter.[45]
Personal computers
![](http://upload.wikimedia.org/wikipedia/commons/thumb/6/6c/Kingston_FCR-HS219-1_20110523.jpg/150px-Kingston_FCR-HS219-1_20110523.jpg)
Although many personal computers accommodate SD cards as an auxiliary storage device through a built-in slot or a USB adaptor, SD cards cannot be used as the primary hard disk through the onboard ATA controller because none of the SD card variants supports ATA signalling. This use requires a separate SD controller chip[46] or a SD-to-CompactFlash converter. However, on computers that support bootstrapping from a USB interface, an SD card in a USB adaptor can be the primary hard disk, provided it contains an operating system that supports USB access once the bootstrap is complete.
Embedded systems
![](http://upload.wikimedia.org/wikipedia/commons/thumb/6/6b/Arduino_Ethernet_Shield_%28pre-production_sample%29.jpg/150px-Arduino_Ethernet_Shield_%28pre-production_sample%29.jpg)
In 2008, the SDA specified Embedded SD, "leverag[ing] well-known SD standards" to enable non-removable SD-style devices on printed circuit boards.[47] SanDisk provides such memory components under the iNAND brand.[48]
Most modern microcontrollers have built-in SPI logic that can interface to an SD card operating in its SPI mode, providing non-volatile storage. Even if a microcontroller lacks the SPI feature, the feature can be emulated by bit banging. For example, a home-brew hack combines spare General Purpose Input/Output (GPIO) pins of the processor of the Linksys WRT54G router with MMC support code from the Linux kernel.[49] This technique can achieve throughput of up to 1.6 Mbit/s.
History
![](http://upload.wikimedia.org/wikipedia/commons/thumb/c/c0/8_bytes_vs._8Gbytes.jpg/150px-8_bytes_vs._8Gbytes.jpg)
In 1999, SanDisk, Matsushita, and Toshiba agreed to develop and market the Secure Digital (SD) Memory Card, which was a development of the MultiMediaCard (MMC). The new card provided both digital rights management (DRM) up to the Secure Digital Music Initiative (SDMI) standard, and a high memory density for the time.
The new format was designed to compete with the Memory Stick, a DRM product that Sony released the prior year. It was mistakenly predicted that DRM features[50] would be widely used due to pressure from music and other media suppliers to prevent piracy.
The trademarked SD logo was originally developed for the Super Density Disc, which was the unsuccessful Toshiba entry in the DVD format war. This is why the D resembles an optical disc.
At the 2000 Consumer Electronics Show (CES) trade show, the three companies announced the creation of the SD Card Association (SDA) to promote SD cards. The SD Card Association's headquarters are in San Ramon, California, United States and it comprises some 30 product manufacturers that make interoperable memory cards and devices. Early samples of the SD Card were available in the first quarter of 2000, with production quantities of 32 and 64 MB cards available 3 months later.
Relation to MMC
![](http://upload.wikimedia.org/wikipedia/commons/thumb/a/a4/Flash_memory_cards_size.jpg/150px-Flash_memory_cards_size.jpg)
The SD cards changed the MMC design in several ways:
- Asymmetrical slots in the sides of the SD card prevent inserting it upside down, while an MMC goes in most of the way but makes no contact if inverted.
- Most SD cards are 2.1 mm (0.083 inches) thick, compared to 1.4 mm (0.055 inches) for MMCs. The SD specification defines a card called Thin SD with a thickness of 1.4 mm, but they are rare, as the SDA went on to define even smaller form factors.
- The card's electrical contacts are recessed beneath the surface of the card, protecting them from contact with a user's fingers.
- The SD specification envisaged capacities and transfer rates exceeding those of MMC, and these have both grown over time. For a comparison table, see below.
Full-sized SD cards do not fit in the slimmer MMC slots, and there are other issues that affect the ability to use one format in a host device designed for the other.
Follow-on products
In March 2003, SanDisk Corporation announced the introduction of the miniSD and demonstrated it at CeBIT 2003.[51] The SDA adopted the miniSD card in 2003 as a small form factor extension to the SD card standard. While the new cards were designed especially for mobile phones, they are usually packaged with a miniSD adapter that provides compatibility with a standard SD memory card slot.
At CTIA Wireless 2005, the SDA announced the small microSD form factor (and SDHC, with capacities in excess of 2 GB and a minimum sustained read and write speed of 17.6 Mbit/s). SanDisk had conceived microSD when its CTO and the CTO of Motorola concluded that current memory cards were too large for mobile phones. The card was originally called T-Flash, but just before product launch, T-Mobile sent a cease and desist order to SanDisk claiming that T-Mobile owned the trademark on T-(anything)[citation needed], and the name was changed to TransFlash. TransFlash and microSD cards are the same; each can be used in devices made for the other.[52] SanDisk induced the SDA to administer the microSD standard. The SDA approved the final microSD specification on July 13, 2005. Initially, microSD cards were available in capacities of 32, 64, and 128 MB.
In April 2006, the SDA released a detailed specification for the non-security related parts of the SD memory card standard and for the Secure Digital Input Output (SDIO) cards and the standard SD host controller.
In September, 2006, SanDisk announced the 4 GB miniSDHC.[53] Like the SD and SDHC, the miniSDHC card has the same form factor as the older miniSD card but the HC card requires HC support built into the host device. Devices that support miniSDHC work with miniSD and miniSDHC, but devices without specific support for miniSDHC work only with the older miniSD card.
In January 2009, the SDA announced the SDXC family, which supports cards up to 2 TB and speeds up to 300 MByte/s.
Openness of the standard
![](http://upload.wikimedia.org/wikipedia/commons/thumb/1/13/SD-microSD_adaptor.jpg/150px-SD-microSD_adaptor.jpg)
Like most memory card formats, SD is covered by numerous patents and trademarks. Royalties for SD card licences are imposed for manufacture and sale of memory cards and host adapters (US$1,000/year plus membership at US$1,500/year), but SDIO cards can be made without royalties.
Early versions of the SD specification were available only after agreeing to a non-disclosure agreement (NDA) that prohibited development of an open source driver. However, the system was eventually reverse-engineered, and free software drivers provided access to SD cards that did not use DRM. Since then, the (SDA) has provided a simplified version of the specification under a less restrictive license.[54] Although most open-source drivers were written before this, it has helped to solve compatibility issues.
In 2006, the SDA also released a simplified version of the specification of the host controller interface (as opposed to the specification of SD cards) and later also for the physical layer, ASSD extensions, SDIO, and SDIO Bluetooth Type-A, under a disclaimers agreement.[55] Again, most of the information had already been discovered and Linux had a fully free driver for it. Still, building a chip conforming to this specification caused the One Laptop per Child project to claim "the first truly Open Source SD implementation, with no need to obtain an SDI license or sign NDAs to create SD drivers or applications."[56]
The fact that the complete SD specification is proprietary mainly affects embedded systems and laptops, since users of desktop PCs generally read SD cards via USB-based card readers. These card readers present a standard USB mass storage interface to memory cards, thus separating the operating system from the details of the underlying SD interface. However, embedded systems (such as portable music players) usually gain direct access to SD cards and thus need complete programming information. Desktop card readers are themselves embedded systems; their manufacturers have usually paid the SDA for complete access to the SD specifications. Many notebook computers now include SD card readers not based on USB; device drivers for these essentially gain direct access to the SD card, as do embedded systems.
Technical details
Transfer modes
The physical interface comprises 9 pins, except that the miniSD card adds two unconnected pins in the center and the microSD card omits one of the two VSS (Ground) pins.
SD card pin assignment | miniSD card pin assignment | microSD card pin assignment |
---|---|---|
![]() |
![]() |
![]() |
Various SD cards may support various combinations of the following bus types and transfer modes. The SPI bus and one-bit SD bus are mandatory for all SD families, as explained in the next section.
- SPI: Serial Peripheral Interface Bus is primarily used by embedded microcontrollers. This bus type supports only a 3.3-volt interface.
- One-bit SD: Separate command and data channels and a proprietary transfer format.
- Four-bit SD: Uses extra pins plus some reassigned pins. UHS-I and UHS-II requires this bus type.
Once the host device and the SD card negotiate a bus interface, the usage of the numbered pins is the same for all three card sizes:
|
|
|
Notes:
- Direction is relative to card. I = Input, O = Output.
- PP = Push-Pull logic, OD = Open-Drain logic.
- S = Power Supply, NC = Not Connected (or logical high).
Interface
![](http://upload.wikimedia.org/wikipedia/commons/thumb/8/84/Sd_insides.png/150px-Sd_insides.png)
![](http://upload.wikimedia.org/wikipedia/commons/thumb/d/d0/SD-extreMEmory_2GB_alt_innen.jpg/150px-SD-extreMEmory_2GB_alt_innen.jpg)
![](http://upload.wikimedia.org/wikipedia/commons/thumb/f/f0/Pretec_16GB_SDHC_without_cover_20090420.jpg/150px-Pretec_16GB_SDHC_without_cover_20090420.jpg)
Command interface
SD cards and host devices initially communicate through a synchronous one-bit interface, where the host device provides a clock signal that strobes single bits in and out of the SD card. The host device thereby sends 48-bit commands and receives responses. The card can signal that a response will be delayed, but the host device can abort the dialogue.
Through issuing various commands, the host device can:
- Determine the type, memory capacity, and capabilities of the SD card
- Command the card to use a different voltage, different clock speed, or advanced electrical interface
- Prepare the card to receive a block to write to the flash memory, or read and reply with the contents of a specified block.
The command interface is an extension of the MultiMediaCard (MMC) interface. SD cards dropped support for some of the commands in the MMC protocol, but added commands related to copy protection. By using only commands supported by both standards until determining the type of card inserted, a host device can accommodate both SD and MMC cards.
Electrical interface
All SD card families initially use a 3.3-volt electrical interface. On command, SDHC and SDXC cards switch to 1.8-volt operation.[39]
At initial power-up or card insertion, the host device selects either the Serial Peripheral Interface (SPI) bus or the one-bit SD bus by the voltage level present on Pin 1. Thereafter, the host device may issue a command to switch to the four-bit SD bus interface, if the SD card supports it. For various card types, support for the four-bit SD bus is either optional or mandatory.[39]
After determining that the SD card supports it, the host device can also command the SD card to switch to a higher transfer speed. Until determining the card's capabilities, the host device should not use a clock speed faster than 400 kHz. SD cards other than SDIO (see below) have a "Default Speed" clock rate of 25 MHz. The host device is not required to use the maximum clock speed that the card supports. It may operate at less than the maximum clock speed to conserve power.[39] Between commands, the host device can stop the clock entirely.
SDIO cards
The SDIO family comprises Low-Speed and Full-Speed cards. Both types of SDIO cards support SPI and one-bit SD bus types. Low-Speed SDIO cards are allowed to also support the four-bit SD bus; Full-Speed SDIO cards are required to support the four-bit SD bus. To use a SDIO card as a "combo card" (for both memory and I/O), the host device must first select four-bit SD bus operation. Two other unique features of Low-Speed SDIO are a maximum clock rate of 400 kHz for all communications, and the use of Pin 8 as "interrupt" to try to initiate dialogue with the host device.[57]
- Ganging cards together
The one-bit SD protocol was derived from the MMC protocol, which envisaged the ability to put up to 3 cards on a bus of common signal lines. The cards use open collector interfaces, where a card may pull a line to the low voltage level; the line is at the high voltage level (because of a pull-up resistor) if no card pulls it low. Though the cards shared clock and signal lines, each card had its own chip select line to sense that the host device had selected it.
The SD protocol envisaged the ability to gang 30 cards together without separate chip select lines. The host device would broadcast commands to all cards and identify the card to respond to the command using its unique serial number.
In practice, cards are rarely ganged together because open-collector operation has problems at high speeds and increases power consumption. Newer versions of the SD specification recommend separate lines to each card.
Achieving higher card speeds
The SD specification defines four-bit-wide transfers. (The MMC specification supports this and also defines an eight-bit-wide mode.) Transferring several bits on each clock pulse improves the card speed. Advanced SD families have also improved speed by offering faster clock frequencies and double data rate (explained here).
File system
Like other types of flash memory card, an SD card of any SD family is a block-addressable storage device, in which the host device can read or write fixed-size blocks by specifying their block number.
MBR and FAT
Most SD cards ship preformatted with one or more MBR partitions, where the first or only partition contains a file system. This lets them operate like the hard disk of a personal computer. Per the SD card specification, an SD card is formatted with MBR and the following file system:
Most consumer products that take an SD card expect that it is partitioned and formatted this way. The universal support for FAT16 and FAT32 allow the use of SDSC and SDHC cards on most host computers with a compatible SD reader, to present the user with the familiar method of named files in a hierarchical directory tree.
On such SD cards, standard utility programs such as Mac OS X's "Disk Utility" or Windows' SCANDISK can be used to repair a corrupted filing system and sometimes recover deleted files. Defragmentation tools for FAT file systems may be used on such cards. The resulting consolidation of files may provide a marginal improvement in the time required to read or write the file,[58] but not an improvement comparable to defragmentation of hard drives, where storing a file in multiple fragments may involve a time penalty to move between physical areas of the drive. Moreover, defragmentation performs writes to the SD card that count against the card's rated lifespan. The write endurance of the physical memory is discussed in the article on flash memory; newer technology to increase the storage capacity of a card currently provides worse write endurance.
When reformatting an SD card smaller than 4 GB, FAT16 should be used if the card is for a consumer device. (FAT16 is also an option for 4 GB cards, but it requires the use of 64 kiB clusters, which are not widely supported.) FAT16 does not support cards above 4 GB.
The SDXC specification makes Microsoft's proprietary exFAT file system mandatory,[59] which is supported only by some proprietary operating systems.
Other file systems
Because the host views the SD card as a block storage device, the card does not require MBR partitions or any specific file system. The card can be reformatted to use any file system the operating system supports. For example:
- Under Unix-like operating systems such as Linux or FreeBSD, SD cards can be formatted using the UFS, Ext2, Ext3, Ext4, btrfs, HFS Plus, or ReiserFS file system.
- Under Mac OS X, SD cards can be partitioned as GUID devices and formatted with the HFS Plus file system.
- Under Windows and some Unix systems, SD cards can be formatted using NTFS and, on later versions, exFAT.
Any recent version of the above can format SD cards using the UDF file system.
Additionally, an SD card called Live SD can contain an embedded operating system (such as Live USB). Computers that can bootstrap from an SD card (either using a USB adapter or inserted into the computer's flash media reader) instead of the hard disk drive may thereby be able to recover from a corrupted hard disk drive. A Live SD can be write-locked to preserve the system's integrity.
Risks of reformatting
Reformatting an SD card with a different file system, or even with the same one, may make the card slower, or shorten its lifespan. Some cards use wear leveling, in which frequently modified blocks are mapped to different portions of memory at different times, and some wear-leveling algorithms are designed for the access patterns typical of the file allocation table on a FAT16 or FAT32 device.[60] In addition, the preformatted file system may use a cluster size that matches the erase region of the physical memory on the card; reformatting may change the cluster size and make writes less efficient. The SD Association provides free formatting software to overcome these problems.[61]
Power use
The power consumption of microSD cards varies by manufacturer, but is in the range of 66–330 mW (20–100 mA at a supply voltage of 3.3 V). Specifications from TwinMos technologies list a maximum of 149 mW (45 mA) during transfer. Toshiba, on the other hand, lists 264–330 mW (80–100 mA).[62]
Storage capacity and incompatibilities
All SD cards let the host device determine how much information the card can hold, and the specification of each SD family gives the host device a guarantee of the maximum capacity a compliant card reports.
By the time the Version 2.0 (SDHC) specification was completed in June 2006,[63] vendors had already devised 2 GB and 4 GB SD cards, either as specified in Version 1.01, or by creatively reading Version 1.00. The resulting cards do not work correctly in some host devices.[64][65]
SDSC cards above 1 GB
![](http://upload.wikimedia.org/wikipedia/commons/thumb/1/18/Sd4gy_crop.jpg/150px-Sd4gy_crop.jpg)
A host device can ask any inserted SD card for its 128-bit identification string (the Card-Specific Data or CSD). In standard-capacity cards (SDSC), 12 bits identify the number of memory clusters (ranging from 1 to 4,096) and 3 bits identify the number of blocks per cluster (which decode to 4, 8, 16, 32, 64, 128, 256, or 512 blocks per cluster). The host device multiplies these figures (as shown in the following section) with the number of bytes per block to determine the card's capacity in bytes.
SD version 1.00 assumed 512 bytes per block. This permitted SDSC cards up to 4,096 × 512 × 512 = 1 GB, for which there are no known incompatibilities.
Version 1.01 let an SDSC card use a 4-bit field to indicate 1,024 or 2,048 bytes per block instead.[39] Doing so enabled cards with 2 GB and 4 GB capacity, such as the Transcend 4 GB SD card and the Memorette 4 GB SD card.
Early SDSC host devices that assume 512-byte blocks therefore do not fully support the insertion of 2 GB or 4 GB cards. In some cases, the host device can read data that happens to reside in the first 1 GB of the card. If the assumption is made in the driver software, success may be version-dependent. In addition, any host device might not support a 4 GB SDSC card, since the specification lets it assume that 2 GB is the maximum for these cards.
Storage capacity calculations
The format of the Card-Specific Data (CSD) register changed between version 1 (SDSC) and version 2.0 (which defines SDHC and SDXC).
Version 1
In Version 1 of the SD specification, capacities up to 2 GB are calculated by combining fields of the CSD as follows:
Capacity=(C_SIZE+1) × 2(C_SIZE_MULT + 2 + READ_BL_LEN) Where: 0 <= C_SIZE <= 4095, 0 <= C_SIZE_MULT <= 7, READ_BL_LEN is 9 (for 512 bytes/sector) or 10 (for 1024 bytes/sector)
Later versions state (at Section 4.3.2) that a 2 GB SDSC card shall set its READ_BL_LEN (and WRITE_BL_LEN) to indicate 1024 bytes, so that the above computation correctly reports the card's capacity; but that, for consistency, the host device shall not request (by CMD16) block lengths over 512 bytes.[39]
Versions 2 and 3
In the definition of SDHC cards in Version 2.0, the C_SIZE portion of the CSD is 22 bits and it indicates the memory size in multiples of 512 KB. (The C_SIZE_MULT field is removed and READ_BL_LEN is no longer used to compute capacity.) Two bits that were formerly reserved now identify the card family: 0 is SDSC; 1 is SDHC or SDXC; 2 and 3 are reserved.[39] Because of these redefinitions, older host devices do not correctly identify SDHC or SDXC cards nor their correct capacity.
- SDHC cards are restricted to reporting a capacity not over 32 GiB.
- SDXC cards are allowed to use all 22 bits of the C_SIZE field. An SDHC card that did so (reported C_SIZE > 65375 to indicate a capacity of over 32 GiB) would violate the specification. A host device that relied on C_SIZE rather than the specification to determine the card's maximum capacity might support such a card, but the card might fail in other SDHC-compatible host devices.
Capacity is calculated thus:
Capacity=(C_SIZE+1)*524288 where for SDHC 4112<=C_SIZE<=65375 (approx. 2 GB) < capacity < 32 GiB for SDXC 65535<=C_SIZE 32 GiB <= capacity <= 2 TiB max.
Capacities above 4 GB can only be achieved by following Version 2.0 or later versions. In addition, capacities equal to 4 GB must also do so to guarantee compatibility.
Comparison to other flash memory formats
Overall, SD is less open than CompactFlash or USB flash memory drives. Those open standards can be implemented without paying for licensing, royalties, or documentation. (CompactFlash and USB flash drives may require licensing fees for the use of the SDA's trademarked logos.)
However, SD is much more open than Memory Stick, for which no public documentation nor any documented legacy implementation is available. All SD cards can be accessed freely using the well-documented SPI bus.
xD cards are simply 18-pin NAND flash chips in a special package and support the standard command set for raw NAND flash access. Although the raw hardware interface to xD cards is well understood, the layout of its memory contents—necessary for interoperability with xD card readers and digital cameras—is totally undocumented. The consortium that licenses xD cards has not released any technical information to the public.
Template:MultiMediaCard comparison
See also
- Comparison of memory cards
- Serial Peripheral Interface Bus (SPI)
- Flash memory
- Universal Flash Storage
References
- ^ a b c "About". SD Card Association. Retrieved 2011-12-08.
- ^ "Capacity". SD Card Association. Retrieved 2011-12-08.
- ^ a b c "Using SDXC". SD Card Association. Retrieved 2011-12-08.
- ^ "SDIO". SD Card Association. Retrieved 2011-12-08.
- ^ "Using SD Memory Cards is Easy" (video on YouTube) – SD Card Association
- ^ What are SDHC, miniSDHC, and microSDHC? SanDisk.com
- ^ What's new in Firmware 2.41 Beta (for COWON D2) JetAudio
- ^ "Microsoft Support 934428 – Hotfix for Windows XP that adds support for SDHC cards that have a capacity of more than 4 GB". Support.microsoft.com. 2008-02-15. Retrieved 2010-08-22.
- ^ "Microsoft Support 939772 – Some Secure Digital (SD) cards may not be recognized in Windows Vista". Support.microsoft.com. 2008-05-15. Retrieved 2010-08-22.
- ^ "Microsoft Support 949126 – A Secure Digital High Capacity (SDHC) card is not recognized on a Windows Vista Service Pack 1-based computer". Support.microsoft.com. 2008-02-21. Retrieved 2010-08-22.
- ^ "SanDisk and Sony to expand Memory Stick Pro and Memory Stick Micro formats". Sandisk.com. Retrieved 2010-08-22.
- ^ "SD Card, Memory Stick formats to reach 2 terabytes, but when? – Betanews". 090108 betanews.com
- ^ "Pretec introduces world's first SDXC card: Digital Photography Review". Dpreview.com. 2009-03-06. Retrieved 2010-08-22.
- ^ "Canon EOS Rebel T2i / 550D Digital SLR Camera Review". The-Digital-Picture.com
- ^ Ng, Jansen (2009-11-24). "Lack of Card Readers Holding Back SDXC Flash Memory Adoption". DailyTech. Retrieved 2009-12-22.
- ^ Ng, Jansen (2009-11-30). "Lenovo, HP, Dell Integrating SDXC Readers in New 32nm Intel "Arrandale" Laptops". DailyTech. Retrieved 2009-12-22.
- ^ Ng, Jansen (2009-12-22). "Toshiba Sampling First SDXC Flash Memory Cards". DailyTech. Retrieved 2009-12-22.
- ^ "Toshiba's 64 GB SDXC card to finally go on sale (in Japan)". CrunchGear. Retrieved 2010-08-09.
- ^ "Panasonic Introduces New 64 GB* and 48 GB* SDXC Memory Cards, Available Globally in February 2010". Panasonic. Retrieved 2010-08-09.
- ^ "Sandisk ships its highest capacity sd card ever". SanDisk. Retrieved 2010-08-09.
- ^ Lexar ships 128 GB Class 10 SDXC card; March 2011.
- ^ "SDXC/SDHC 433X Class 16 Card from Pretec". Pretec. 2011-06-13. Retrieved 2010-12-03.
- ^ First 64GB microSD Card Here; When Will Smartphones Support It?
- ^ Kingmax flaunts world's first 64GB microSD card
- ^ About Compatibility with Host Devices SD Association
- ^ WindowsXP-KB955704-x86-ENU.exe (2009-01-26). "Download: Update for Windows XP (KB955704) – Microsoft Download Center – Download Details". Microsoft.com. Retrieved 2012-03-21.
{{cite web}}
: CS1 maint: numeric names: authors list (link) - ^ "About the SD and SDXC card slots". Apple Inc. 2011-05-03. Retrieved 2011-09-05.
- ^ "Apple released exFAT support in OS X 10.6.5 update". Tuxera.com. 2010-11-22. Retrieved 2012-01-04.
- ^ Exfat for BSD and Linux systems from Google Code
- ^ "Windows Phone 7 Secure Digital Card Limitations".
- ^ "Windows Phone 7's microSD mess: the full story (and how Nokia can help you out of it)".
- ^ "Super Talent Super Digital Overview & Specs". Cnet.com. Retrieved 2012-07-28.
- ^ "Home". Eye-Fi. Retrieved 2010-08-22.
- ^ AudioHolics
- ^ "slotRadio". SanDisk. Retrieved 2011-11-27.
- ^ SanDisk Ultra II SD Plus USB/SD card The Register, 2005-07-25
- ^ "A-DATA Super Info SD Card 512MB". techpowerup.com. 2007-02-20. Retrieved 2011-12-30.
- ^ SD Speed Class SDCard.org
- ^ a b c d e f g h i j "SD Part 1, Physical Layer Simplified Specification, Version 3.01" (PDF). Retrieved 2011-12-04.
- ^ "Kingston Technology Company – Flash Memory Cards and X-Speed Ratings". Kingston.com. Retrieved 2010-08-22.
- ^ "SD cards branded with an upper-case 'I' are faster, yo". Engadget. Retrieved 2010-08-22.
- ^ "SD Speed Class/UHS Speed Class". Retrieved 21 Nov 2011.
- ^ "SD Card Association Triples Speeds with UHS-II" (PDF). 5 January 2011. Retrieved 2011-08-09.
- ^ "SD Card Association announces UHS-II, ultra high-speed SD card specification". Rob Galbraith. 2011-01-05. Retrieved 2011-01-05.
- ^ MEAD-SD01 SDHC card adapter (Sony)
- ^ "TS-7800 Embedded". Embeddedarm.com. Retrieved 2010-08-22.
- ^ "Embedded SD". SD Card Association. Retrieved 2011-11-30.
- ^ "iNAND Embedded Flash Drives". SanDisk. Retrieved 2011-11-30.
- ^ "Linksys WRT54G-TM SD/MMC mod – DD-WRT Wiki". Dd-wrt.com. 2010-02-22. Retrieved 2010-08-22.
- ^ "Press Releases 17 July 2003". Toshiba. 2003-07-17. Retrieved 2010-08-22.
- ^ SanDisk Introduces The World's Smallest Removable Flash Card For Mobile Phones-The miniSD Card SanDisk.com
- ^ PhoneScoop – Sandisk T-Flash announcement.
- ^ SanDisk Introduces 4GB miniSDHC Flash Card for Mobile Phones SanDisk.com
- ^ "Sharp Linux PDA promotes the use of proprietary SD card, but more open MMC works just fine". Linux.com. Retrieved 2010-08-22.
- ^ Simplified Specification Agreement from the SDA's website
- ^ "OLPC mailing list archive". Mailman.laptop.org. Retrieved 2010-08-22.
- ^ "Simplified Version of SDIO CARD SPEC". SD Card Association. Retrieved 2011-12-09.
- ^ Fragmentation and Speed SDCard.org
- ^ "SDXC memory cards promise 2TB of storage, 300MBps transfer". Engadget.com. Retrieved 2010-08-22.
- ^ "Optimizing Linux with cheap flash drives". Linux Weekly News. Retrieved 2011-04-11.
- ^ SD Formatter 3.1 for SD/SDHC/SDXC, SD Association
- ^ microSD & microSDHC Cards TOSHIBA Memory Solutions
- ^ A look into how SDHC will affect the future Nand Flash market. DRAMeXchange, December 2006
- ^ SD Compatibility, CARDSPEED – Card Readers and Memory Cards, December 1, 2006
- ^ "WinXP SP3 can't read 4GB SD card in multicard reader". Eggheadcafe.com. Retrieved 2010-08-22.
External links
![](http://upload.wikimedia.org/wikipedia/en/thumb/4/4a/Commons-logo.svg/30px-Commons-logo.svg.png)
- Organizations
- Official website, SD Card Association, sdcard.org
- Specifications
- SD Simplified Specifications, sdcard.org, Free
- Microsoft Extensible Firmware Initiative FAT32 File System Specification, Microsoft
- Software
- Interfacing
- Interfacing to SD cards, great technical details
- Interfacing AVR (Arduino) to SD cards, C source code
- Interfacing ARM to SD cards, C source code
- Interfacing MSP430 to SD cards, C source code, Michigan State University
- Interfacing MAXQ2000 to SD cards, good technical descriptions, C source code, maxim-ic.com
- SD card controller, Verilog source code, opencores.org