The World Leader in High Performance Signal Processing Solutions SD/SDIO Introduction Cliff Cai.

Slides:



Advertisements
Similar presentations
INPUT-OUTPUT ORGANIZATION
Advertisements

Dr. Rabie A. Ramadan Al-Azhar University Lecture 3
INTERFACING SD CARD WITH MSP430F FEW COMMANDS IN SPI MODE  CMD0 :- Resets the sd card & used in initialization process.  CMD17 :- used to read.
MC68HC11 System Overview. System block diagram (A8 version)
1 Agenda TMA2 Feedback TMA3 T821 Bock 2. 2 Packet Switching.
Protocol Layer Bottom-up view of the USB protocol Bottom-up view of the USB protocol –Byte/Bit Ordering –SYNC Field –Packet Field Formats PID Field PID.
TK2633 Introduction to Parallel Data Interfacing DR MASRI AYOB.
Gursharan Singh Tatla SLIP and PPP 27-Mar
Serial I/O - Programmable Communication Interface
PH4705 ET4305 Interface Standards A number of standard digital data interfaces are used in measurement systems to connect instruments and computers for.
Interrupts (contd..) Multiple I/O devices may be connected to the processor and the memory via a bus. Some or all of these devices may be capable of generating.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 2: Computer-System Structures Computer System Operation I/O Structure Storage.
Input-Output Problems L1 Prof. Sin-Min Lee Department of Mathematics and Computer Science.
WANs and Routers Routers. Router Description Specialized computer Like a general purpose PC, a router has:  CPU  Memory  System Bus Connecting Internal.
CPU Chips The logical pinout of a generic CPU. The arrows indicate input signals and output signals. The short diagonal lines indicate that multiple pins.
Interface circuits I/O interface consists of the circuitry required to connect an I/O device to a computer bus. Side of the interface which connects to.
6. The CPU and Memory Chapt. 7.
USB: UNIVERSAL SERIAL BUS Joe Kaewbaidhoon Alex Motalleb Vishal Joshi Prepared for EECS 373 University of Michigan, Ann Arbor 1.
Compact Flash for CoolRunner™-II CPLDs. Quick Start Training Agenda Introduction What is Compact Flash? CoolRunner-II Implementation Block Diagram Applications.
INPUT-OUTPUT ORGANIZATION
MODES OF Details of Pins Pin 1 –Connected Ground Pins 2-16 –acts as both input/output. Outputs address at the first part of the cycle and outputs.
Computer Architecture Lecture 08 Fasih ur Rehman.
Serial Peripheral Interface Module MTT M SERIAL PERIPHERAL INTERFACE (SPI)
Khaled A. Al-Utaibi Memory Devices Khaled A. Al-Utaibi
Introduction Electrical Considerations Data Transfer Synchronization Bus Arbitration VME Bus Local Buses PCI Bus PCI Bus Variants Serial Buses 11/06/20141Input/Output.
Chapter 8 Input/Output. Busses l Group of electrical conductors suitable for carrying computer signals from one location to another l Each conductor in.
Memory interface Memory is a device to store data
Introduction to USB © 2010 Renesas Electronics America Inc. All rights reserved.
LSU 10/22/2004Serial I/O1 Programming Unit, Lecture 5.
HyperTransport™ Technology I/O Link Presentation by Mike Jonas.
Networks LANS,. FastPoll True Questions Answer A for True and B for False A wireless infrastructure network uses a centralized broadcasting device, such.
DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK–
SDR Test bench Architecture WINLAB – Rutgers University Date : October Authors : Prasanthi Maddala,
PIT: Programmable Interval Timer
The University of New Hampshire InterOperability Laboratory Introduction To PCIe Express © 2011 University of New Hampshire.
PCI Team 3: Adam Meyer, Christopher Koch,
MICROPROCESSOR INPUT/OUTPUT
1. Introduction 2. Methods for I/O Operations 3. Buses 4. Liquid Crystal Displays 5. Other Types of Displays 6. Graphics Adapters 7. Optical Discs 10/01/20151Input/Output.
Universal Synchronous/Asynchronous Receiver/Transmitter (USART)
Universal Asynchronous Receiver/Transmitter (UART)
DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK
Guide to Linux Installation and Administration, 2e1 Chapter 2 Planning Your System.
(More) Interfacing concepts. Introduction Overview of I/O operations Programmed I/O – Standard I/O – Memory Mapped I/O Device synchronization Readings:
Input/Output 2 What is I/O? How we get the CPU to communicate with devices From the computer’s point of view, it’s just 1’s and 0’s Gets interpreted.
HDMI High-Definition Multimedia Interface Mythri P K September 2010.
 8251A is a USART (Universal Synchronous Asynchronous Receiver Transmitter) for serial data communication.  Programmable peripheral designed for synchronous.
8279 KEYBOARD AND DISPLAY INTERFACING
Direct Memory Access (DMA) Microprocessors I -1. Topics to be discussed  Basic DMA Concept Basic DMA Concept  DMA pins and timing DMA pins and timing.
L/O/G/O Input Output Chapter 4 CS.216 Computer Architecture and Organization.
80386DX functional Block Diagram PIN Description Register set Flags Physical address space Data types.
Overview von Neumann Architecture Computer component Computer function
Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower than CPU.
Computer operation is of how the different parts of a computer system work together to perform a task.
High Speed Digital Systems Lab Spring/Winter 2010 Project definition Instructor: Rolf Hilgendorf Students: Elad Mor, Ilya Zavolsky Integration of an A/D.
1 Device Controller I/O units typically consist of A mechanical component: the device itself An electronic component: the device controller or adapter.
ECE 456 Computer Architecture Lecture #9 – Input/Output Instructor: Dr. Honggang Wang Fall 2013.
10/15: Lecture Topics Input/Output –Types of I/O Devices –How devices communicate with the rest of the system communicating with the processor communicating.
박 유 진.  Short RF Range(~10m)  Reduce range by obstruction  Low data rate(1Mbps)  Normal Audio data rate : 1.5 Mbps  CD Quality Audio data rate :
Memory Interface EEE 365 [FALL 2014] LECTURER 12 ATANU K SAHA BRAC UNIVERSITY.
Chapter 6 Input/Output Organization
Serial mode of data transfer
HyperTransport™ Technology I/O Link
Chapter 11: Inter-Integrated Circuit (I2C) Interface
1 Input-Output Organization Computer Organization Computer Architectures Lab Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes.
Dr. Michael Nasief Lecture 2
I2C PROTOCOL SPECIFICATION
Serial Communication Interface: Using 8251
Serial EEPROM (Atmel 24C-512)
Presentation transcript:

The World Leader in High Performance Signal Processing Solutions SD/SDIO Introduction Cliff Cai

Agenda 1. General Description 2. SD Memory Card System Concept 3. SD Memory Card Functional Description 4. SPI Mode 5. SDIO Q&A

General Description SD 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. System Features Targeted for portable and stationary applications Memory capacity: Standard Capacity SD Memory Card: Up to and including 2 GB High Capacity SD Memory Card: More than 2GB (up to and including 32GB) Voltage range: High Voltage SD Memory Card : V Dual Voltage SD Memory Card : Low Voltage Range (T.B.D) and V Designed for read-only and read/write cards. Default mode:clock rate MHz, up to 12.5 MB/s interface speed (4 bit mode) High-Speed mode:clock rate MHz, up to 25 MB/s interface speed ( 4 bit mode) Switch function command supports High-Speed, eCommerce, and future functions

Correction of memory field errors Card removal during read operation will never harm the content Content Protection Mechanism - Complies with highest Password Protection of cards (CMD42 - LOCK_UNLOCK) Write Protect feature using mechanical switch Built-in write protection features (permanent and temporary) Card Detection (Insertion/Removal) Application specific commands Comfortable erase mechanism

SD Memory Card System Concept 1. Read-Write Property Read/Write (RW) cards Read Only Memory (ROM) cards. 2. Supply Voltage High Voltage SD Memory Cards: V. Dual Voltage SD Memory Cards –Dual Voltage SD Memory Cards that can operate within the voltage range of Low Voltage Range (T.B.D) and V. 3. Card Capacity Standard Capacity SD Memory Cards: up to and including 2 G bytes High Capacity SD Memory Cards:up to and including 32 GB(specification 2.00). 2 types of High Capacity SD Memory Card are specified. Type A (Single State Card) has single High Capacity memory area Type B (Dual State Card) has both High Capacity memory area and Standard Capacity memory area. In Type B card, only one memory area can be used at any given time.

Figure-1: Hosts-Cards Usability

4.Speed Class Four Speed Classes are defined and indicate minimum performance of the cards Class 0 - These class cards do not specify performance. It includes all the legacy cards prior to specification 2.00, regardless of its performance Class 2 - Are more than or equal to 2 MB/sec performance. Class 4 - Are more than or equal to 4 MB/sec performance. Class 6 - Are more than or equal to 6 MB/sec performance. 5.Bus Topology The SD bus includes the following 9 signals: CLK : Host to card clock signal CMD : Bidirectional Command/Response signal DAT 0 - DAT 3 : 4 Bidirectional data signals. VDD, VSS1, VSS2 : Power and ground signals.

Figure-2: SD Memory Card system bus Topology

6.Bus Protocol Communication over the SD bus is based on command and data bit streams that are initiated by a start bit and terminated by a stop bit. Command: a command is a token that starts an operation. A command is sent from the host either to a single card (addressed command) or to all connected cards (broadcast command). A command is transferred serially on the CMD line. Response: a response is a token that 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 transferred serially on the CMD line. Data: data can be transferred from the card to the host or vice versa. Data is transferred via the data lines.

Figure-3: Command Token Format Figure-4: Response Token Format

Figure-5: “no response” and “no data” Operations Figure-6: (Multiple) Block Read Operation

Figure-7: (Multiple) Block Write Operation

Figure-8: Data Packet Format - Usual Data Two types of Data packet format for the SD card: 1. Usual data (8-bit width): The usual data (8-bit width) are sent in LSB (Least Significant Byte) first,MSB (Most Significant Byte) last sequence. But in the individual byte, it is MSB (Most Significant Bit)first, LSB (Least Significant Bit) last.

2.Wide width data (SD Memory Register): The wide width data is shifted from the MSB bit. Figure-9: Data Packet Format - Wide Width Data

7.SD Memory Card–Pins and Registers Pin#SD ModeSPI Mode NameTypeDescriptionNameTypeDescription 1CD/DAT3I/OCard Detect /Data Line 3CSIChip Select (neg true) 2CMDI/OCommand/ResponseDIIData In 3Vss1SSupply voltage groundVss1SSupply voltage ground 4VDDSSupply voltageVDDSSupply voltage 5CLKIClockSCLKIClock 6Vss2SSupply voltage groundVss2SSupply voltage ground 7DAT0I/OData Line 0DOOData Out 8DAT1I/OData Line 1RSV 9DAT2I/OData Line 2RSV Table-1: SD memory Card Pad Assignment Figure-10: SD Memory Card shape and interface(top view)

Table -2: SD Memory Card Registers NameWidthDescription CID128Card identification number; card individual number for identification.Mandatory RCA16Relative card address; local system address of a card, dynamically suggested by the card and approved by the host during initialization. Mandatory. DSR16Driver Stage Register; to configure the card’s output drivers. Optional. CSD128Card Specific Data; information about the card operation conditions. Mandatory SCR64SD Configuration Register; information about the SD Memory Card’s Special Features capabilities Mandatory OCR32Operation conditions register. Mandatory. SSR512SD Status; information about the card proprietary features.Mandatory CSR32Card Status; information about the card status. Mandatory

SD Memory Card Functional Description 1.General All communication between host and cards is controlled by the host (master). The host sends commands of two types: broadcast and addressed (point-to- point) commands. Broadcast commands Broadcast commands are intended for all cards. Addressed (point-to-point) commands The addressed commands are sent to the addressed card and cause a response from this card. Card identification mode The host will be in card identification mode after reset and while it is looking for new cards on the bus. Cards will be in this mode after reset until the SEND_RCA command (CMD3) is received. Data transfer mode Cards will enter data transfer mode after their RCA is first published. The host will enter data transfer mode after identifying all the cards on the bus.

Figure -11: Card Initialization and Identification Flow (SD mode) 2.Card Identification Mode

Figure-12: SD Memory Card State Diagram (data transfer mode) 3. Data Transfer Mode

SPI Mode 1.Introduction The SPI mode consists of a secondary communication protocol that is offered by Flash-based SD Memory Cards. The interface is selected during the first reset command after power up (CMD0) and cannot be changed once the part is powered on. The SPI standard defines the physical link only, and not the complete data transfer protocol. The SD Memory Card SPI implementation uses a subset of the SD Memory Card protocol and command set. 2.SPI Bus Protocol

Figure -13: SPI Mode Initialization Flow 2.1 Card Identification Mode

Figure -15: Single Block Read Operation Figure -14: ‘No data’ Operations Figure -16: Multiple Block Read Operation 2.2 Transfer Protocol

Figure -17: Single Block Write Operation Figure -18: Multiple Block Write Operation

SDIO 1. General Description The SDIO (SD Input/Output) card is based on and compatible with the SD memory card. This compatibility includes mechanical, electrical, power, signaling and software. The intent of the SDIO card is to provide high-speed data I/O with low power consumption for mobile electronic devices. 2. Differences in I/O card Initialization A new command (IO_SEND_OP_COND, CMD5) is added to replace the ACMD41 for SDIO initialization by I/O aware hosts 3. Differences with SD Memory Specification 4. New I/O Read/Write Commands IO_RW_DIRECT Command (CMD52):This command reads or writes 1 byte using only 1 command/response pair. A common use is to initialize registers or monitor status values for I/O functions. IO_RW_EXTENDED Command (CMD53):This command is included in command class 9 (I/O Commands). This command allows the reading or writing of a large number of I/O registers with a single command.

Thanks Q&A