logo资料库

MMC-System-Spec-v3.31(MMC卡资料).pdf

第1页 / 共150页
第2页 / 共150页
第3页 / 共150页
第4页 / 共150页
第5页 / 共150页
第6页 / 共150页
第7页 / 共150页
第8页 / 共150页
资料共150页,剩余部分请下载后查看
1 General Description
2 System Features
3 MultiMediaCard System Concept
3.1 Card Concept
3.1.1 Form Factors
3.2 Bus Concept
3.2.1 Bus Lines
3.2.2 Bus Protocol
3.3 Controller Concept
3.3.1 Application Adapter Requirements
3.3.2 MultiMediaCard Adapter Architecture
4 MultiMediaCard Functional Description
4.1 General
4.2 Card Identification Mode
4.2.1 Card Reset
4.2.2 Operating Voltage Range Validation
4.2.3 Card Identification Process
4.3 Interrupt Mode
4.4 Data Transfer Mode
4.4.1 Data Read
4.4.2 Data Write
4.4.3 Erase
4.4.4 Write Protect Management
4.4.5 Card Lock/Unlock Operation
4.4.6 Application specific commands
4.5 Clock Control
4.6 Error Conditions
4.6.1 CRC and Illegal Command
4.6.2 Read, Write and Erase Time-out Conditions
4.6.3 Read ahead in Stream and multiple block read operation
4.7 Commands
4.7.1 Command Types
4.7.2 Command Format
4.7.3 Command Classes
4.7.4 Detailed Command Description
4.8 Card State Transition Table
4.9 Responses
4.10 Card Status
4.11 Memory Array Partitioning
4.12 Timings
4.12.1 Command and Response
4.12.2 Data Read
4.12.3 Data Write
4.12.4 Timing Values
5 Card Registers
5.1 OCR Register
5.2 CID Register
5.3 CSD Register
5.4 RCA Register
5.5 DSR Register
6 The MultiMediaCard Bus
6.1 Hot Insertion and Removal
6.2 Power Protection
6.3 Power Up
6.4 Programmable Card Output Driver
6.5 Bus Operating Conditions
6.6 Bus Signal Levels
6.6.1 Open-Drain Mode Bus Signal Level
6.6.2 Push-Pull Mode Bus Signal Level - High Voltage MultiMediaCard
6.6.3 Push-Pull Mode Bus Signal Level - Low voltage MultiMediaCard
6.7 Bus Timing
7 SPI Mode
7.1 Introduction
7.2 SPI Interface Concept
7.3 SPI Bus Topology
7.4 MultiMediaCard Registers in SPI Mode
7.5 SPI Bus Protocol
7.5.1 Mode Selection
7.5.2 Bus Transfer Protection
7.5.3 Data Read
7.5.4 Data Write
7.5.5 Erase & Write Protect Management
7.5.6 Read CID/CSD Registers
7.5.7 Reset Sequence
7.5.8 Clock Control
7.5.9 Error Conditions
7.5.10 Memory Array Partitioning
7.5.11 Card Lock/unlock
7.5.12 Application Specific commands
7.6 SPI Mode Transaction Packets
7.6.1 Command Tokens
7.6.2 Responses
7.6.3 Data Tokens
7.6.4 Data Error Token
7.6.5 Clearing Status Bits
7.7 Card Registers
7.8 SPI Bus Timing Diagrams
7.8.1 Command / Response
7.8.2 Data read
7.8.3 Data write
7.8.4 Timing Values
7.9 SPI Electrical Interface
7.10 SPI Bus Operating Conditions
7.11 Bus Timing
8 Error protection
8.1 Error Correction Codes (ECC)
8.2 Cyclic Redundancy Codes (CRC)
9 MultiMediaCard Mechanical Specification
9.1 Card Package
9.1.1 External Signal Contacts (ESC)
9.1.2 Design and Format
9.1.3 Reliability and Durability
9.1.4 Quality Assurance
9.2 System: Card and Connector
9.2.1 Card Hot Insertion
9.2.2 Inverse Insertion
9.2.3 Card Orientation
10 MultiMediaCard Standard Compliance
11 File Formats for the MultiMediaCard
11.1 Hard Disk-like File System with Partition Table
11.2 DOS FAT File System without Partition Table
11.3 Universal File System for the MultiMediaCard
12 Abbreviations and terms
Appendix A: Application notes
A.1 Power Supply Decoupling
A.2 Payload Block Length and ECC Types Handling
A.3 Connector
A.3.1 General
A.3.2 Card Insertion and Removal
A.3.3 Characteristics
A.4 Description of method for storing passwords on the card
A.5 MultiMediaCard Macro Commands
Appendix B: Changes Between System Specification Versions
B.1 Changes from version 1.4 to 2.0
B.2 Changes from version 2.0 to 2.11
B.3 Changes from version 2.11 to 2.2
B.4 Version 3.0
B.5 Changes from version 2.2 to 3.1
B.6 Changes from version 3.1 to 3.2
B.7 Changes from version 3.2 to 3.3
The MultiMediaCard System Specification Version 3.31 MMCA Technical Committee
Revision History Version Date Section/ Page Changes compared to previous issue MultiMediaCard System all Chap. 4,6,10 Initial version of system specification Complete revision 09-09-96 27-09-96 15-11-96 25-2-98 1/99 5/99 all all all 4, 5, 7, 9, 10, 11 Password locking Complete revision. Added new chapters Several changes in SPI mode (chapter 7). Smaller changes in chapters 2, 4, 5. All references to “MMC” changed to “MultiMediaCard”. Several new features introduced: • Data interchange format • • Application specific commands Several clarifications and minor corrections for MultiMediaCard mode (chapter 4) and SPI mode (chapter 7). Backward compatible change of card dimensional tolerances (chapter 9). Corrections in the status/command cross reference table (chapter 4) ESD tolerance, SPI status bits, Definition of card top side. This is a major upgrade of the spec that contains new mechanical, electrical as well as protocol changes. See appendix for details. The CSD version identification fields in 3.0 version are not compati- ble with old versions. 3.1 fixes the issues, replaces and obsoletes 3.0 Definition of Low Voltage MultiMediaCard completed. Some details added to the mechanical form factor of the card. Erase and Group write protect classes defined as mandatory for Read/Write cards and 2 CSD bits where allocated for application specific use. Introduced the reduced size MMC. The high voltage range is now mandatory for all cards, as well as OCR register and CMD1 imple- mentation. Corrected some typos in the wording. Corrected connector order in figure 72 1.0 1.1 1.2 1.4 2.0 2.1 2.11 2.2 3.0 3.1 3.2 6/99 1/00 1/01 6/01 1/02 4 7, 9 All 5 4, 5, 6, 9 3.3 3/03 2, 3, 8 3.31 5/03 A 2 MultiMediaCard System Specification Version 3.31 Official Release (c) May 2003 MMCA
MultiMediaCard System You acknowledge that the attached standard (the “Standard”) is provided to you on an “AS IS” basis. MULTIMEDIACARD ASSOCIATION (“MMCA”) MAKES NO EXPRESS, IMPLIED OR STATUTORY WARRANTIES AND EXPRESSLY DISCLAIMS THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON- INFRINGEMENT OF THIRD PARTY RIGHTS. MMCA SHALL NOT BE LIABLE FOR (I) TECHNICAL OR EDITORIAL ERRORS OR OMISSIONS CONTAINED WITHIN THE STANDARD, OR (II) ANY INCIDENTAL, SPECIAL, EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS OR LOSS OF USE) RESULTING FROM THE FURNISHING, PERFORMANCE OR USE OF THE STANDARD, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Copyright (c) May 2003 MultiMediaCard Association P.O. Box 2012 Cupertino, CA 95015-2012 USA. World rights reserved. No part of this publication may be transmitted, reproduced or distributed in any way, including but not limited to photocopying, electronic copying, magnetic or other recording, without the prior written consent of MMCA. MultiMediaCard System Specification Version 3.31 Official Release (c) May 2003 MMCA 3
MultiMediaCard System 4 MultiMediaCard System Specification Version 3.31 Official Release (c) May 2003 MMCA
MultiMediaCard System Table Of Contents 1 2 3 3.1 3.1.1 3.2 3.2.1 3.2.2 3.3 3.3.1 3.3.2 4 4.1 4.2 4.2.1 4.2.2 4.2.3 4.3 4.4 4.4.1 4.4.2 4.4.3 4.4.4 4.4.5 4.4.6 4.5 4.6 4.6.1 4.6.2 4.6.3 4.7 4.7.1 4.7.2 4.7.3 4.7.4 4.8 4.9 General Description .......................................................................................................... 11 System Features ................................................................................................................ 13 MultiMediaCard System Concept .................................................................................. 15 Card Concept ...................................................................................................................... 18 Form Factors .................................................................................................................................... 19 Bus Concept ........................................................................................................................ 20 Bus Lines ......................................................................................................................................... 20 Bus Protocol ..................................................................................................................................... 21 Controller Concept ............................................................................................................. 24 Application Adapter Requirements .................................................................................................. 25 MultiMediaCard Adapter Architecture ............................................................................................ 25 MultiMediaCard Functional Description ....................................................................... 29 General ............................................................................................................................... 29 Card Identification Mode ................................................................................................... 30 Card Reset ........................................................................................................................................ 30 Operating Voltage Range Validation ............................................................................................... 30 Card Identification Process .............................................................................................................. 32 Interrupt Mode .................................................................................................................... 32 Data Transfer Mode ............................................................................................................ 34 Data Read ......................................................................................................................................... 35 Data Write ........................................................................................................................................ 37 Erase ................................................................................................................................................. 39 Write Protect Management .............................................................................................................. 39 Card Lock/Unlock Operation ........................................................................................................... 40 Application specific commands ....................................................................................................... 42 Clock Control ..................................................................................................................... 43 Error Conditions ................................................................................................................. 43 CRC and Illegal Command .............................................................................................................. 43 Read, Write and Erase Time-out Conditions ................................................................................... 44 Read ahead in Stream and multiple block read operation ................................................................ 44 Commands .......................................................................................................................... 45 Command Types .............................................................................................................................. 45 Command Format ............................................................................................................................ 45 Command Classes ............................................................................................................................ 45 Detailed Command Description ....................................................................................................... 46 Card State Transition Table ................................................................................................ 52 Responses ........................................................................................................................... 53 MultiMediaCard System Specification Version 3.31 Official Release (c) March 2003 MMCA 5
MultiMediaCard System 4.10 Card Status .......................................................................................................................... 55 4.11 Memory Array Partitioning ................................................................................................ 58 4.12 Timings ............................................................................................................................... 59 4.12.1 Command and Response .................................................................................................................. 60 4.12.2 Data Read ......................................................................................................................................... 61 4.12.3 Data Write ........................................................................................................................................ 62 Timing Values .................................................................................................................................. 65 4.12.4 5 5.1 5.2 5.3 5.4 5.5 6 6.1 6.2 6.3 6.4 6.5 6.6 6.6.1 6.6.2 6.6.3 6.7 7 7.1 7.2 7.3 7.4 7.5 7.5.1 7.5.2 7.5.3 7.5.4 7.5.5 7.5.6 7.5.7 7.5.8 6 Card Registers ................................................................................................................... 67 OCR Register ...................................................................................................................... 67 CID Register ....................................................................................................................... 67 CSD Register ...................................................................................................................... 68 RCA Register ...................................................................................................................... 76 DSR Register ...................................................................................................................... 77 The MultiMediaCard Bus ................................................................................................ 79 Hot Insertion and Removal ................................................................................................. 79 Power Protection ................................................................................................................. 80 Power Up ............................................................................................................................ 81 Programmable Card Output Driver .................................................................................... 82 Bus Operating Conditions ................................................................................................... 84 Bus Signal Levels ............................................................................................................... 85 Open-Drain Mode Bus Signal Level ................................................................................................ 85 Push-Pull Mode Bus Signal Level - High Voltage MultiMediaCard .............................................. 85 Push-Pull Mode Bus Signal Level - Low voltage MultiMediaCard ................................................ 85 Bus Timing ......................................................................................................................... 86 SPI Mode ........................................................................................................................... 89 Introduction ......................................................................................................................... 89 SPI Interface Concept ......................................................................................................... 89 SPI Bus Topology ............................................................................................................... 89 MultiMediaCard Registers in SPI Mode ............................................................................ 90 SPI Bus Protocol ................................................................................................................. 91 Mode Selection ................................................................................................................................. 91 Bus Transfer Protection .................................................................................................................... 91 Data Read ......................................................................................................................................... 92 Data Write ........................................................................................................................................ 93 Erase & Write Protect Management ................................................................................................ 95 Read CID/CSD Registers ................................................................................................................. 95 Reset Sequence ................................................................................................................................. 96 Clock Control ................................................................................................................................... 96 MultiMediaCard System Specification Version 3.31 Official Release (c) March 2003 MMCA
MultiMediaCard System Table Of Contents 7.5.9 Error Conditions ............................................................................................................................... 96 7.5.10 Memory Array Partitioning .............................................................................................................. 97 7.5.11 Card Lock/unlock ............................................................................................................................. 97 7.5.12 Application Specific commands ...................................................................................................... 97 7.6 SPI Mode Transaction Packets ........................................................................................... 98 Command Tokens ............................................................................................................................ 98 7.6.1 Responses ....................................................................................................................................... 101 7.6.2 7.6.3 Data Tokens ................................................................................................................................... 104 Data Error Token ........................................................................................................................... 104 7.6.4 Clearing Status Bits ........................................................................................................................ 105 7.6.5 7.7 Card Registers .................................................................................................................. 106 SPI Bus Timing Diagrams ................................................................................................ 107 7.8 Command / Response .................................................................................................................... 107 7.8.1 Data read ........................................................................................................................................ 108 7.8.2 7.8.3 Data write ....................................................................................................................................... 109 Timing Values ................................................................................................................................ 111 7.8.4 SPI Electrical Interface ..................................................................................................... 111 7.9 7.10 SPI Bus Operating Conditions .......................................................................................... 111 Bus Timing ....................................................................................................................... 111 7.11 8 8.1 8.2 9 9.1 9.1.1 9.1.2 9.1.3 9.1.4 9.2 9.2.1 9.2.2 9.2.3 10 11 11.1 11.2 Error protection .............................................................................................................. 113 Error Correction Codes (ECC) ......................................................................................... 113 Cyclic Redundancy Codes (CRC) .................................................................................... 113 MultiMediaCard Mechanical Specification ................................................................. 117 Card Package .................................................................................................................... 117 External Signal Contacts (ESC) ..................................................................................................... 118 Design and Format ......................................................................................................................... 118 Reliability and Durability ............................................................................................................. 122 Quality Assurance .......................................................................................................................... 122 System: Card and Connector ............................................................................................ 122 Card Hot Insertion .......................................................................................................................... 122 Inverse Insertion ............................................................................................................................. 123 Card Orientation ............................................................................................................................. 123 MultiMediaCard Standard Compliance ...................................................................... 125 File Formats for the MultiMediaCard ......................................................................... 127 Hard Disk-like File System with Partition Table ............................................................. 127 DOS FAT File System without Partition Table ............................................................... 129 MultiMediaCard System Specification Version 3.31 Official Release (c) March 2003 MMCA 7
MultiMediaCard System 11.3 Universal File System for the MultiMediaCard ............................................................... 129 12 Abbreviations and terms ................................................................................................ 131 Appendix A: Application notes .................................................................................................... 133 Power Supply Decoupling ................................................................................................ 133 A.1 A.2 Payload Block Length and ECC Types Handling ............................................................ 133 A.3 Connector .......................................................................................................................... 134 A.3.1 General .............................................................................................................................. 134 A.3.2 Card Insertion and Removal ............................................................................................. 134 A.3.3 Characteristics ................................................................................................................... 135 Description of method for storing passwords on the card ................................................ 136 A.4 A.5 MultiMediaCard Macro Commands ................................................................................. 137 Appendix B: Changes Between System Specification Versions ................................................ 146 Changes from version 1.4 to 2.0 ....................................................................................... 146 B.1 Changes from version 2.0 to 2.11 ..................................................................................... 146 B.2 B.3 Changes from version 2.11 to 2.2 ..................................................................................... 147 Version 3.0 ........................................................................................................................ 147 B.4 Changes from version 2.2 to 3.1 ....................................................................................... 147 B.5 B.6 Changes from version 3.1 to 3.2 ....................................................................................... 148 Changes from version 3.2 to 3.3 ....................................................................................... 149 B.7 8 MultiMediaCard System Specification Version 3.31 Official Release (c) March 2003 MMCA
分享到:
收藏