The mass storage menagerie The changing world of small storage has spawned more than a few options for memory cards. Steve Kolokowsky surveys what's availableThe mass storage menagerie The changing world of small storage has spawned more than a few options for memory cards. Steve Kolokowsky surveys what's available Lately it seems like there is a new mass storage standard introduced every day. It's getting difficult to keep track of all of the new standards. CompactFlash was the only game in town for a while, but now the maker of a new device has to choose between CF, SD, SDIO, MMC, RS-MMC, MMC Plus, Memory Stick, XD, and CE-ATA mass storage devices. Sometimes a new standard has an obvious advantage, sometimes it seems like Betamax vs. VHS. In this article we'll give a brief picture of these interfaces and sort out their differences. Compact Flash The CompactFlash (CF) standard is the granddaddy of all small mass storage devices. This standard was originally developed 10 years ago by SanDisk. It features an 8 or 16-bit parallel data bus with transfer rates ranging from 3MB/s to 66MB/s. The CF standard is still in use in many devices that require the high transfer rates of a 16-bit wide UDMA bus (66MB/s) and high capacity. CF+ form factor hard drives are currently available up to 10GB in capacity and CF memory cards are available up to 8GB. Because the first CF cards were NOR Flash, the CF standard requires the card to hide the messier aspects of interfacing to NAND Flash. The host communicates to the card as if it were an IDE hard drive and the controller on the CF card performs the bad-block management, wear leveling, and logical to physical mapping required to work with NAND Flash. Development of the CompactFlash specification is continuing. The latest release (3.0) came at the end of 2004. The major change in this version is the addition of UDMA transfer speeds up to 66MB/s. CompactFlash cards never became popular as removable storage for mobile phones, but they have kept a large market share in digital cameras, especially at the high-end of the market, where large capacity and high-speed are a must. Several other peripherals can be connected to the CF+ version of the interface, including Ethernet, RS-232, fax/modem, USB, Bluetooth, and 802.11b wireless LAN. MMC and SD - are they the same? The MMC multimedia card and SD (secure digital) standards are often referred to as if they are a single spec. However, they are two different standards. The SD card spec is owned by a group headed by Matsushita, Toshiba and SanDisk. The MMC spec is controlled by the MMCA (Multi-Media Card Association), led by a much broader group including Lexar, Micron and Samsung. The multimedia card was introduced in 1997 by Siemens and SanDisk. The MMC form factor is much smaller than the CF standard, allowing the design of smaller portable devices. In basic applications, MMC can be controlled via a standard 3-wire SPI interface plus a chip select. The SPI interface can be clocked up to 20MHz. For applications that require more bandwidth, the spec provides increased bus widths of 4- and 8-bits. The 4.0 version of the MMC spec adds a 52MHz transfer rate, enabling 50MB/s bus bandwidth. Unlike the CompactFlash spec, the MMC spec is not available for free. According to the MMCA website: "If you are not a manufacturer of multimedia cards, you can order the spec 3.1 for US$500 or spec 4.1 (MMC mobile and MMC plus) for US$1,000. And... your company does not need to be a member of the MMCA." On top of the MMC framework, there are now three types of cards: MMC plus, MMC mobile and MMC micro. The MMC plus is a normal size MMC card that supports 2.7 to 3.6V operation, x1/x4/x8 bus widths, minimum of 2.4MB/s read/write performance and 26MHz (52MHz optional). The MMC mobile is a reduced size card that supports reduced voltage range: 1.65 to 1.95V and 2.7 to 3.6V. The MMC mobile also must support the performance required for MMC plus status. MicroSD is the latest addition to the family. At less than a third the size of miniSD, microSD is the smallest card available today. Secure Digital Surprisingly, the secure digital card was never widely adopted. SD cards contain encryption hardware similar to Sony's MagicGate which is used in Memory Sticks. It took eight more years and Steve Jobs before the music industry would accept digital music distribution, and this feature is now a digital appendix. In early 2006, the MMC Association adopted version 1.1 of a competing secure card standard called secure MMC. There is a good overview of secure MMC on Samsung's website. MMC cards can fit into a physical slot designed to hold an SD card. SD cards come in two form factors: thin and standard. A thin SD card can fit into a MMC slot, but a standard SD card cannot, since it is too thick. The protocols used by MMC cards and SD cards are 100% compatible at rev 2.11 of the SD card spec, but they have diverged somewhat since then. The pin arrangement of both MMC and SD cards is compatible. The maximum number of pins on a SD card is nine, while on a MMC card it is 13. The only function of additional pins is to increase the bus width. Since the bus width is programmable, a controller can easily find the lowest common denominator and set itself up accordingly. All of the microprocessors with built-in MMC support also support SD cards. Tiny Cards - MMC micro vs. MicroSD (Trans-Flash) The MMC and SD groups have added to the confusion by creating two different standards for tiny flash cards. MMC micro and MicroSD (also called TransFlash) are both backward compatible with existing SD/MMC sockets using a mechanical adapter. Both are astoundingly small, less than 200mm3. However, MMC micro is much faster than MicroSD. MMC micro uses the higher 52MHz clock rate defined by the MMC spec, while the MicroSD continues to use the 25MHz rate. In addition, the MMC micro card has a 4-bit data bus while MicroSD only supports serial data transfer. In addition, the MMC micro card supports 1.8V operation, while the MicroSD only operates at 2.7 to 3.6V. The MMC micro is the clear choice for small portable devices, until something even smaller and faster comes along! xD-Picture card The xD-Picture card (extreme digital picture card) was introduced in July 2002. Like Sony's Memory Stick, this is a proprietary format. Because this is a tightly-controlled proprietary format, it is difficult to get much information from the xD-Picture license authority at www.xd-picture.com. If you would like to know how much an xD-Picture license will cost your company, you must fill out an NDA with the xD-Picture Licensors. The xD-Picture card is similar to the SmartMedia standard in that it is a packaging technology for raw NAND Flash. There is no controller embedded in the xD-Picture card so the controlling CPU is responsible for maintaining the logical to physical table, managing bad blocks, and performing ECC to correct errors. The advantage to this is that it reduces silicon area and it allows the managing CPU to have a much greater level of control over the interface, which should allow it to reduce write times. The disadvantage is that the managing CPU must implement all of the SmartMedia control functions. SDIO SDIO defines a peripheral interface based on the SD standard. There are two main applications for SDIO today: removable and non-removable. The existing removable devices are used as Palm and Windows Mobile expansion devices to add Bluetooth, camera, GPS and 802.11b capability to these platforms. Non-removable devices follow the same electrical standard without the requirements imposed by the physical standard. Some cell phones contain 802.11 chips that interface to the CPU via SDIO. This saves precious I/O pins for more important functions. Bluetooth, camera, GPS and 802.11b devices have application specifications defined for them. application specifications are much like the Class definitions created for PCI and USB devices. They allow any host to talk to any peripheral, as long as they both support the application specification. The physical interface for SDIO is the same as SD card, but devices are permitted to extend out of the ‘top' of the card. Once they are outside the box, devices are free to expand in any direction, which enables devices like the SDIO cameras. One important difference between the SDIO spec and the SD card spec is the addition of a low-speed card standard. This card requires only the SPI and 1-bit SD transfer modes. The intended use of low-speed cards is to support low-speed I/O capabilities with a minimum of hardware. The low-speed cards support such functions as modems, bar-code scanners, GPS receivers etc. If a card is a ‘Combo card' (memory plus SDIO) then full-speed and 4-bit operation is mandatory for both the memory and SDIO portions of the card. CE-ATA CE-ATA facilitates the marriage of consumer electronics and ATA hard drives. Hard drives are increasingly used in consumer electronics, but the 40-pin ATA connector and 50-pin CF connector simply consume too many I/Os to be used in a small hand-held device. In the CE-ATA spec, the ATA command structure is overlaid on top of the MMC physical layer. This allows re-use of the existing MMC controllers built into Freescale's and TI's application processors. The CE-ATA connector uses 12 pins to implement the 9-pin SD/MMC interface. The three additional pins provide a reserved pin and an extra power/ground pair so the HDD motor can operate at a different voltage than the signal lines. CE-ATA's interface performance is identical to 4-bit SD/MMC. It can transfer data up to 12.5MB/s with a 25MHz clock or up to 26MB/s with a 52MHz clock. Conclusion Although the wide variety of small storage options may seem daunting at first, choice is a good thing: CF has higher capacity, CE-ATA enables disk drive interfaces without higher pin counts, and the SD- card family provides a variety of form factors with a common interface. Ultimately, the system designer must choose the right storage medium to meet the needs of their product. Cypress www.cypress.com Steve Kolokowsky is a member of the technical staff in Cypress Semiconductor's Consumer & Computation Div