Professional Documents
Culture Documents
Technical Review:
Non-volatile Digital Storage in Mobile Electronics (SD Cards)
Introduction
Secure Digital (SD) cards are a type of non-volatile digital storage used in many consumer
electronics. Non-volatile memory retains the data stored on it even when it is powered off. This
paper focuses on the types of SD cards, the underlying technology, and how to use them in an
embedded system.
Commercial Applications
Because SD cards are small, durable, and inexpensive, they are used in many consumer
electronics including digital cameras, mp3 players, cell phones, PDAs, and GPS units [1]. SD
cards are also used to log data from electronic sensors for use in academic, scientific, and
industrial applications. For example, they have been proposed for use in the implementation of a
“Car Black Box” designed to record information about car accidents [2]. Serial data loggers that
record directly to a SD memory card can be purchased as off-the-shelf modules [3]. These
premade modules are designed to make interfacing with SD card easy for small-scale projects.
SD memory cards come in several different sizes. MiniSD and microSD cards contain the same
underlying technology as the original SD memory card, but with smaller packaging. These
smaller cards can be placed in a mechanical adapter to allow them to be used in devices designed
for the larger SD cards [4,5]. MicroSD is the smallest of the three types of cards and is
approximately the size of a fingernail. Currently, about 80% of mobile handsets ship with a
microSD or miniSD slot [4].
Underlying Technology
The SD Card Association (Panasonic, SanDisk, and Toshiba) developed the SD Memory Card
specifications and revealed the technology in 2000 [6]. SD cards contain flash memory, a type of
EEPROM (Electrically Erasable Programmable Read-Only Memory) that is erased and written
in large blocks instead of individual bytes. Reads and writes are usually performed in 512 byte
blocks, but erasures are performed in bigger blocks. Depending on the size of the card, the size
of the erase block is typically either 32x512 bytes or 64x512 bytes [1]. Flash memory is
significantly cheaper than non-flash EEPROM and provides larger memory capacities and faster
write times. SD cards also offer several advantages over using embedded IC flash chips alone.
Since the memory cards are removable, the storage capacity of the device can be easily upgraded
as memory density increases. Additionally, SD cards contain a memory controller that identifies
defects in the flash memory and provides ECC for more reliable operation [1].
SD cards have two modes of communication: Serial Peripheral Interface (SPI) mode and Secure
Digital (SD) mode. SPI mode uses the Motorola SPI protocol that is implemented in many
microcontrollers. However, since SPI is a de facto standard rather than an internationally ratified
standard, the SPI settings must be adjusted to match the implementation used by the SD memory
card. The simplified specifications provide implementation details for communicating using SPI
mode at 25MHz [7]. However, the simplified specifications do not provide details for the SD
mode over a one-bit or four-bit interface because protocol is proprietary. Access to the full
specifications requires a $2500/yr membership to the SD Card Association.
[2] D. G. Lee, S. M. Jung, and M. S. Lim, "System on Chip Design of Embedded Controller for
Car Black Box," 2007 IEEE Intelligent Vehicles Symposium, p. 1174–1177, 2007.
[7] SD Group and SD Card Association. (2006, Sep.) SD Specifications - Simplified Physical
Layer Specification. [Online].
http://www.sdcard.org/about/memory_card/pls/Simplified_Physical_Layer_Spec.pdf
[8] Microchip. (2008) AN1045 - Implementing File I/O Functions Using Microchip’s Memory
Disk Drive File System Library. [Online].
http://ww1.microchip.com/downloads/en/AppNotes/01045b.pdf
[10] www.Captain.at. (2007, Jun.) Atmel ATmega - SD Flash Memory Extension. [Online].
http://www.captain.at/electronic-atmega-sd-card.php