High speed modes for MultiMedia-Card interface
An electronic device having a MultiMediaCard host connected to a MultiMediaCard card via a bus system having a plurality of signal lines and a plurality of data lines, wherein the host is operable in a number of data modes. At least in one of the data modes the number of data lines used to convey data between the host and card is smaller than the number of data lines available on the bus system, leaving some unused data lines. An embedded module in the card is used to generate a clock signal, a command signal and further data to be conveyed between the host and the card on some or all of the unused data lines. When the electronic device is operable in an SPI mode, the CS line can be used for sending a command signal from the card to the host.
Latest Patents:
- COMPOSITIONS AND METHODS FOR TREATING CANCER
- FLOW CELL BASED MOTION SYSTEM CALIBRATION AND CONTROL METHODS
- POLYMER, COMPOSITION FOR ORGANIC ELECTROLUMINESCENT ELEMENT, ORGANIC ELECTROLUMINESCENT ELEMENT, ORGANIC EL DISPLAY DEVICE, ORGANIC EL LIGHTING, AND MANUFACTURING METHOD FOR ORGANIC ELECTROLUMINESCENT ELEMENT
- APPARATUS AND METHOD OF MANUFACTURING DISPLAY DEVICE
- DISPLAY DEVICE AND METHOD OF FABRICATING THE SAME
The present invention relates generally to MultiMediaCard (MMC) technology and, more particularly, to MMC interface based on MMC Specification 4.0.
BACKGROUND OF THE INVENTIONThe MultiMediaCard (MMC) is a universal low cost data storage and communication medium. It is designed to cover a wide area of applications such as electronic toys, electronic organizers, personal digital assistants, digital cameras, smart phones, digital recorders, MP3 players, pagers. Its targeted features include high mobility and high performance at a low cost. High performance can be expressed in terms of low power consumption and high data throughput at the memory card interface.
To provide for the forecasted migration of CMOS power (VDD) requirements and for compatibility and integrity of the MMC systems, two types of MMCs are currently defined. One is referred to as High Voltage MMC with a VDD range of 2.7-3.6 V, and the other is referred to as Low Voltage MMC with a VDD range of 1.65-1.95 V and 2.7-3.6 V.
According to the MMC Specification 4.0 (Draft 3), the MMC communication is based on a 13-pin bus operating in a low voltage range. The communication protocol for use with the MMCs is referred to as MultiMediaCard protocol.
The MMC transfers data via a configurable number of data bus signals. The communication signals are:
-
- CLK—with each cycle of this signal, a one-bit transfer on the command and each of the data lines is performed. The frequency may vary between zero and the maximum clock frequency of 20 MHz, 26 MHz or 52 MHz.
- CMD—a bidirectional command channel used for card initialization and transfer of commands. This signal has two operation modes: open-drain for initialization mode, and push-pull for fast command transfer. Commands are sent from the MMC bus master to the card, and responses are sent from the card to the host.
- DAT0-DAT7—bidirectional data channels. The DAT signals operate in a push-pull mode. Either the card or the host is driving these signals at a time. By default, after power up or reset, only DATO is used for data transfer. A wide data bus can be configured for data transfer using DAT1-DAT7 by the MMC controller.
The card is connected directly to the signals of the MMC bus. The card contacts as defined in TABLE I.
Note:
TYPE:
S = power supply;
I = input;
O = output;
PP = push-pull;
OD = open-drain
DAT0-DAT7 lines for read-only cards are outputs only.
The main design goal of the MultiMediaCard system is to provide a very low cost mass storage product implemented as a ‘card’ with a simple controlling unit, and a compact, easy-to-implement interface. It is based on modularity and the capability of reusing hardware over a large variety of cards. In general, there are four typical architectures of possible MMC systems: 1) software protocol emulation, wherein an MMC card is linked to a device (e.g. an LCD) by a micro-controller; 2) point-to-point liked system, wherein the MMC card is linked to a device by an MMC adapter and a device processor (e.g, an audio processor to drive a speaker), 3) single bus linked system, and 4) PC bus linked system. In most cases, an MMC card is used in conjunction with a host, as shown in
The MultiMediaCard bus is designed to connect either solid-state mass-storage memory or I/O devices in a card format to multimedia applications. The bus implementation allows the coverage of application fields from low-cost systems to systems with a fast data transfer rate. It is a single master bus with a single slave or a plurality of slaves. The MultiMediaCard bus master is the bus controller. As shown in
MultiMediaCard Bus Protocol
After a power-on reset, the host must initialize the card by a special message-based MultiMediaCard protocol. Each message is represented by one of the following tokens:
-
- 1. command: a command is a token which starts an operation. A command is sent from the host to a card and is transferred serially on the CMD line.
- 2. response: a response is a token which is sent from the card to the host as an answer to a previously received command. A response is transferred serially on the CMD line.
- 3. data: data can be transferred from the card to the host, or vice versa, via the data lines. The number of data lines used for the data transfer can be 1(DAT0), 4(DAT0-DAT3), or 8(DAT0-DAT7).
It should be noted that, in the older versions of the MMC specification (Version 3.31, for example), there is only one bi-directional data channel, DAT, as compared to 8 bi-directional data channels as defined in MMC Specification 4.0. With 8 bi-directional data channels, bus width can be selected among 1-bit, 4-bit and 8-bit modes for data transmission. The 1-bit mode is mainly used for backward compatibility. The other two modes are used for MMCs according to Specification 4.0 and higher. The 4-bit data bus gives a bandwidth of 8 times as compared to the 1-bit data bus because the clock frequency is doubled. The 8-bit data bus gives a bandwidth of 16 times. With the 4-bit mode, the data bus is not fully utilized.
An MMC card can also be used in an SPI (Serial Peripheral Interface) mode. The SPI mode consists of a secondary, optional communication protocol based on the SPI standard. This communication protocol is offered by Flash-based MultiMediaCards. This mode is a subset of the MultiMediaCard protocol, designed to communicate with an SPI channel, found in some micro-controllers. 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 MultiMediaCard SPI implementation uses a subset of the MultiMediaCard protocol and command set. The Serial Peripheral Interface is a general purpose synchronous serial interface. The MultiMediaCard SPI channel consists of the following signals:
-
- CS—Host to card Chip Select Signal
- CLK—Host to card clock signal
- DataIn—Host to card data signal
- DataOut—Card to host data signal
The MultiMediaCard SPI bus system is shown in
In MMC mode, the CS signal line is not used.
thus, when there are unused data lines and a possible CS signal line between an MMC host and a memory device in one or more operational modes, it is advantageous and disirable to provide a method for using these unused lines in order to improve the performance of the MMC host.
SUMMARY OF THE INVENTIONWith 8 bi-directional data channels in an MMC card, not all the data channels are used in the 4-bit bus width. The present invention makes use of the unused data channels for implementing new modes of operation. In one new mode of operation, according to the present invention, the MMC card is used as a Smart MMC card in that the MMC card has a master role. A Smart MMC card functions as more than just a memory embedded therein. As such, the MMC card can embed a variety of smart devices such as micro-controllers, complex I/O cards. These devices have a very efficient way to interrupt the terminal, a good DMA-like capability, and a high bandwidth of 200 Mbits.
Thus, according to the first aspect of the present invention, there is provided a method for enhancing performance of an electronic device having a host module operatively connected to a memory device via a bus system, the bus system comprising a plurality of signal lines and N data lines for conveying signals and data between the host module and the memory device, wherein the host module is operable in a plurality of data modes, said plurality of data modes including at least one data mode that uses M data lines to convey data between the host module and the memory device, with M smaller than N, leaving (N-M) unused data lines in the bus system. The method comprises:
-
- providing in the memory device a module for generating at least one further signal; and
- causing an exchange of data, based on said at least one further signal, between the host module and the memory device using at least one of the unused data lines even when the host module is operated in said at least one data mode.
The at least one further signal comprises a command signal and a clock signal, conveyed to the host module on another one of the unused data lines.
When N is equal to 8 and M is equal to 4, leaving 4 unused data lines, said at least one further signal comprises a clock signal conveyed from the memory device to the host module on another one of the unused data lines, and a command signal conveyed between the host module and the memory device on yet another one of the unused data lines. The at least one of the unused data lines comprises two unused data lines so as to allow the exchange of data to be carried out in a differential manner.
When the electronic device is operable in a serial peripheral interface (SPI) mode and the bus system further comprises a further signal line for conveying a chip select (CS) signal from the host module to the memory device, the further signal is conveyed from the memory device to the host module on the further signal line. The further signal comprises a command signal.
When N is equal to 8 and M is equal to 4, leaving 4 unused data lines for carrying out the exchange of data, the exchange of data can be carried out in two differential pairs.
When N is equal to 8 and M is equal to 1, leaving 7 unused data lines, said at least one further signal comprises a clock signal conveyed from the memory device to the host module on another one of the unused data lines, and a command signal conveyed between the host module and the memory device on yet another one of the unused data lines. The exchange of data is carried out on a different one of the unused data lines.
According to the second aspect of the present invention, there is provided an electronic device for use in conjunction with a memory device. The electronic device comprises:
-
- a host module; and
- a bus system operatively connecting the hose module to the memory device, the bus system comprising a plurality of signal lines and N data lines for conveying signals and data between the host module and the memory device, wherein the host module is operable in a plurality of data modes, said plurality of data modes including at least one data mode that uses M data lines to convey data between the host module and the memory device, with M smaller than N, leaving (N-M) unused data lines in the bus system, and wherein the memory device is capable of generating at least one further signal, for causing an exchange of data, based on the further signal, between the host module and the memory device using at least one of the unused data lines even when the host module is operated in said at least one data mode.
The memory device comprises an embedded module for generating said at least one further signal.
The at least one further signal comprises a command signal and a clock signal conveyed between the host module on another one of the unused data lines.
When the electronic device is operable in a serial peripheral interface, the bus system further comprises a further signal line for conveying a chip select (CS) signal from the host module to the memory device, and the further signal is conveyed from the memory device to the host module on the further signal line. The further signal comprises a command signal.
The electronic device comprises a software program, responsive to said at least one further signal, for processing the data exchanged between the host module and the memory device on at least one of the unused data lines.
The electronic device can be a mobile phone, a PDA, a camera, a digital recorder, an electronic toy, an electronic organizer, an MP3 player, a pager or the like.
According to the third aspect of the present invention, there is provided a memory device for use in conjunction with a host module via a bus system, the bus system comprising a plurality of signal lines and N data lines for conveying signals and data between the host module and the memory device, wherein the host module is operable in a plurality of data modes, said plurality of data modes include at least one data mode that uses M data lines to convey data between the host module and the memory device, with M smaller than N, leaving (N-M) unused data lines in the bus system. The memory module comprises:
-
- a module for generating at least one further signal; and
- a sub-bus system operatively connecting the module and at least some of the unused data lines for causing an exchange of data, based on the further signal, between the host module and the memory device using said at least some of the unused data lines even when the host module is operated in said at least one data mode. The at least one further signal comprises a clock signal and a command signal conveyed between the host module and the memory device on another one of the unused data lines.
The module for generating said at least one further signal can be a micro-controller, an I/O device or the like.
According to the fourth aspect of the present invention, a software program product embodied in a memory device, the memory device for use in conjunction with a host module via a bus system, the bus system comprising a plurality of signal lines and N data lines for conveying signals and data between the host module and the memory device, wherein the host module is operable in a plurality of data modes, said plurality of data modes including at least one data mode that uses M data lines to convey data between the host module and the memory device, with M smaller than N, leaving (N-M) unused data lines in the bus system, the software program comprises:
-
- a code for generating at least one further signal; and
- a code for causing an exchange of data, based on the further signal, between the host module and the memory device using said at least some of the unused data lines even when the host module is operated in said at least one data mode. The at least one further signal comprises a command signal and a clock signal.
According to the fifth aspect of the present invention, there is provided a software program product embodied in an electronic device for use in conjunction with a memory device, wherein the electronic device comprises
-
- a host module;
- a bus system operatively connecting the host module and the memory device, the bus system comprising a plurality of signal lines and N data lines for conveying signals and data between the host module and the memory device, wherein the host module is operable in a plurality of data modes, said plurality of data modes including at least one data mode that uses M data lines to convey data between the host module and the memory device, with M smaller than N, leaving (N-M) unused data lines in the bus system, and wherein the memory device is adapted to generate at least one further signal to cause an exchange of data, based on the further signal, between the host module and the memory device, said software program comprising:
- a first code for receiving the further signal; and
- a second code, responsive to the further signal, for causing the host module to facilitate said exchange of data using at least some of the unused data lines even when the host module is operated in said at least one data mode.
According to the present invention, the electronic device is operable in a serial peripheral interface (SPI) mode, and the bus system further comprises a further signal line for conveying a chip select (CS) signal from the host module to the memory device, and wherein the first code recognizes the further signal when the further signal is conveyed from the memory device to the host module on the further signal line.
The present invention will become apparent upon reading the description taken in conjunction with FIGS. 4 to 7b.
BRIEF DESCRIPTION OF THE DRAWINGS
At power-up, the MMC bus is in the 1-bit data mode to insure backward compatibility. Afterward the host determines whether the MMC card follows the MMC Specification 4.0 or higher, the host reads the EXT_CSD (extended card-specific data) register to determine the high-speed capabilities of the card. When the MMC card is operated in the 4-bit data mode, at least four of the data channels DAT0-DAT7 are not used.
Smart Mode 1
Assuming that the unused data channels at least comprise four data channels DAT4, DAT5, DAT6 and DAT7, one of these unused channels can be used for a clock signal CLKb from the card. The other one of these unused channels can be used for a specific line CMDb for commands issued by the MMC card toward the host, as shown in
Furthermore, one or two data lines DATb can be used by the card. In particular, only the card can send data or request that data be sent on these data lines. The signals CMDb and DATh are based on the CLKb clock, and not the clock CLK coming from the host. This is because the host could shutdown the clock CLK to reduce power consumption. But the host has to keep the card powered up when the card is in interrupt mode.
According to the present invention, the master part of the MMC card (i.e., CLKb, CMDb and DATh) is very limited and is much simpler than an MMC host. The MMC card can be designed to issue very few commands: an interrupt command and a data write command, for example. A data read command is also possible if DMA-like accesses are included. As can be seen in
Smart Mode 2
As shown in
It should be noted that there is no CLKb shown in the Smart Mode 2 configuration, as shown in
-
- The default value of the CS lines (now CMDb) is high, compatible with the SPI mode or the MMC mode of the card.
- When used in Smart Mode 2, the host activates the clock line (CLK) if it sees a high to low transition on the CS (CMDb) line in order to allow the transfer of the command from the MMC card to the MMC host. This high-to-low transition occurs when the MMC card operates in the Smart Mode 2 attempts to send an MMC command on the line, by driving the CS (CMDb) low which defines the start bit of the command.
- Whenever the MMC host sends a command to the MMC card, it keeps the clock running a few more cycles after the command or after receiving a response to the command. The MMC host can turn off the clock afterward.
Although changes are needed in the MMC host in order to implement Smart Mode 2, Smart Mode 2 offers the highest bandwidth possible of the MMC card toward the MMC host. As such, the MMC bus becomes a two-master bus with an equal amount of bandwidth for both masters.
It should be noted that Smart Mode 1 and Smart Mode 2, as described in conjunction with
Furthermore, when the 4-bit mode is used in an MMC system with 8 data lines, the four unused data lines can also be used as two differential pairs (DATb1, DATb2) to further increase the bandwidth, as shown in
It should be noted that, the MMC host as shown in
Thus, although the invention has been described with respect to a number of embodiments thereof, it will be understood by those skilled in the art that the foregoing and various other changes, omissions and deviations in the form and detail thereof may be made without departing from the scope of this invention.
Claims
1. A method for enhancing performance of an electronic device having a host module operatively connected to a memory device via a bus system, the bus system comprising a plurality of signal lines and N data lines for conveying signals and data between the host module and the memory device, wherein the host module is operable in a plurality of data modes, said plurality of data modes including at least one data mode that uses M data lines to convey data between the host module and the memory device, with M smaller than N, leaving (N-M) unused data lines in the bus system, said method comprising:
- providing in the memory device a module for generating at least one further signal; and
- causing an exchange of data, based on said at least one further signal, between the host module and the memory device using at least one of the unused data lines even when the host module is operated in said at least one data mode.
2. The method of claim 1, wherein said at least one further signal comprises a command signal, conveyed to the host module on another one of the unused data lines.
3. The method of claim 2, wherein said at least one further signal further comprises a clock signal conveyed to the host module on yet another one of the used data lines.
4. The method of claim 1, wherein N is equal to 8 and M is equal to 4, leaving 4 unused data lines, and wherein said at least one further signal comprises a clock signal conveyed from the memory device to the host module on another one of the unused data lines, and a command signal conveyed between the host module and the memory device on yet another one of the unused data lines.
5. The method of claim 4, wherein said at least one of the unused data lines comprises two unused data lines for carrying out the exchange of data in a differential manner.
6. The method of claim 1, wherein the electronic device is operable in a serial peripheral interface (SPI) mode and the bus system further comprises a further signal line for conveying a chip select (CS) signal from the host module to the memory device, and wherein the further signal is conveyed from the memory device to the host module on the further signal line.
7. The method of claim 6, wherein the further signal comprises a command signal.
8. The method of claim 6, wherein N is equal to 8 and M is equal to 4, leaving 4 unused data lines for carrying out the exchange of data.
9. The method of claim 8, wherein exchange of data is carried out in two differential pairs.
10. The method of claim 1, wherein N is equal to 8 and M is equal to 1, leaving 7 unused data lines, and wherein said at least one further signal comprises a clock signal conveyed from the memory device to the host module on another one of the unused data lines, and a command signal conveyed between the host module and the memory device on yet another one of the unused data lines.
11. The method of claim 10, wherein said exchange of data is carried out on a different one of the unused data lines.
12. The method of claim 1 1, wherein said exchange of data is carried out on two or more different unused data lines.
13. An electronic device for use in conjunction with a memory device, comprising:
- a host module; and
- a bus system operatively connecting the host module to the memory device, the bus system comprising a plurality of signal lines and N data lines for conveying signals and data between the host module and the memory device, wherein the host module is operable in a plurality of data modes, said plurality of data modes including at least one data mode that uses M data lines to convey data between the host module and the memory device, with M smaller than N, leaving (N-M) unused data lines in the bus system, and wherein the memory device is capable of generating at least one further signal, for causing an exchange of data, based on the further signal, between the host module and the memory device using at least one of the unused data lines even when the host module is operated in said at least one data mode.
14. The electronic device of claim 13, wherein the memory device comprises an embedded module for generating said at least one further signal.
15. The electronic device of claim 14, wherein said at least one further signal comprises a command signal conveyed to the host module on another one of the unused data lines.
16. The electronic device of claim 15, wherein said at least one further signal further comprises a clock signal conveyed to the host module on yet another one of the unused data lines.
17. The electronic device of claim 13, comprising a mobile phone.
18. The electronic device of claim 13, comprising a PDA.
19. The electronic device of claim 13, operable in a serial peripheral interface, wherein the bus system further comprises a further signal line for conveying a chip select (CS) signal from the host module to the memory device, and wherein the further signal is conveyed from the memory device to the host module on the further signal line.
20. The electronic device of claim 19, wherein the further signal comprises a command signal.
21. The electronic device of claim 13, comprising a software program, responsive to said at least one further signal, for processing the data exchanged between the host module and the memory device on at least one of the unused data lines.
22. A memory device for use in conjunction with a host module via a bus system, the bus system comprising a plurality of signal lines and N data lines for conveying signals and data between the host module and the memory device, wherein the host module is operable in a plurality of data modes, said plurality of data modes including at least one data mode that uses M data lines to convey data between the host module and the memory device, with M smaller than N, leaving (N-M) unused data lines in the bus system, said memory module comprising:
- a module for generating at least one further signal; and
- a sub-bus system operatively connecting the module and at least some of the unused data lines for causing an exchange of data, based on the further signal, between the host module and the memory device using said at least some of the unused data lines even when the host module is operated in said at least one data mode.
23. The memory device of claim 22, wherein said at least one further signal comprises a clock signal conveyed to the host module one another one of the unused data lines.
24. The memory device of claim 23, wherein said at least one further signal comprises a command signal conveyed to the host module on yet another one of the unused data line.
25. The memory device of claim 22, wherein the module for generating said at least one further signal comprises a micro-controller.
26. The memory device of claim 22, wherein the module for generating said at least one further signal comprises an input/output device.
27. A software program product embodied in a memory device, the memory device for use in conjunction with a host module via a bus system, the bus system comprising a plurality of signal lines and N data lines for conveying signals and data between the host module and the memory device, wherein the host module is operable in a plurality of data modes, said plurality of data modes including at least one data mode that uses M data lines to convey data between the host module and the memory device, with M smaller than N, leaving (N-M) unused data lines in the bus system, said software program comprising:
- a code for generating at least one further signal; and
- a code for causing an exchange of data, based on the further signal, between the host module and the memory device using said at least some of the unused data lines even when the host module is operated in said at least one data mode.
28. The software program product of claim 27, wherein said at least one further signal comprises a command signal.
29. The software program product of claim 27, wherein said at least one further signal comprises a clock signal.
30. A software program product embodied in an electronic device for use in conjunction with a memory device, wherein the electronic device comprises
- a host module;
- a bus system operatively connecting the host module and the memory device, the bus system comprising a plurality of signal lines and N data lines for conveying signals and data between the host module and the memory device, wherein the host module is operable in a plurality of data modes, said plurality of data modes including at least one data mode that uses M data lines to convey data between the host module and the memory device, with M smaller than N, leaving (N-M) unused data lines in the bus system, and wherein the memory device is adapted to generate at least one further signal to cause an exchange of data, based on the further signal, between the host module and the memory device, said software program comprising:
- a first code for receiving the further signal; and
- a second code, responsive to the further signal, for causing the host module to facilitate said exchange of data using at least some of the unused data lines even when the host module is operated in said at least one data mode.
31. The software program of claim 30, wherein the electronic device is operable in a serial peripheral interface (SPI) mode, and the bus system further comprises a further signal line for conveying a chip select (CS) signal from the host module to the memory device, and wherein the first code recognizes the further signal when the further signal is conveyed from the memory device to the host module on the further signal line.
Type: Application
Filed: Dec 11, 2003
Publication Date: Jun 16, 2005
Patent Grant number: 7159064
Applicant:
Inventor: Michel Gillet (Helsinki)
Application Number: 10/733,844