Memory card
A memory card is provided in which power consumption is reduced by the pull-up resistor of an input terminal and a misoperation induced by the pull-down resistor of a host apparatus is prevented. The memory card has a select terminal connected to the pull-up resistor. When the mode of the memory card is determined based on an input from the select terminal, a relatively low resistance value is selected for the pull-up resistor of the select terminal before a determination timing and the pull-up resistor is restored to an initial resistance value after the mode determination. A relatively high resistance value reduces a leakage current consumed by the pull-up resistor of the select terminal. When a pull-down resistor is connected to the terminal of a memory card host to which the memory card is attached, if the resistance value of the pull-up resistor is excessively high, it is influenced by the drawing in of a current by the pull-down resistor. If the resistance value of the pull-up resistor of the select terminal is lowered at the time of mode determination, an adverse effect of the lowering of a potential by the pull-down resistor can be circumvented.
The present invention relates to a memory card such as Multimedia Card® or to an electronic device.
Multimedia Card® is a kind of a memory card which is embodying a simplified interface and reduced in size and weight. The Multimedia Card has seven connector terminals as external interface terminals. Since a serial interface has been adopted, a load on a host system can be reduced compared with an ATA (AT Attachment) interface adopted by a PC card or a hard disk, which renders the Multimedia Card usable in a simpler and easier system (See Non-Patent Document 1). There is also SD Card® which is another memory card derived from the standards of the Multimedia Card®. The SD Card includes the external terminals of the Multimedia Card, while some types of the Multimedia Card include the command specifications of the SD Card. Of SD Card hosts (host apparatus primarily using the SD Card), there are some which not only use the Multimedia Card as the SD Card but also attempt to use the Multimedia Card as it is. In the present specification, the Multimedia Card®, the SD Card®, and an SD Card host will be termed simply as an M card, an S card, and an S card host hereinafter, respectively.
[Non-Patent Document 1]
Hiroto Okada, “Making Full Use of Multimedia Card,” Interface, CQ Publishing Co., Ltd., December, 1999, Vol. 25, No. 12, pp. 124-131.
SUMMARY OF THE INVENTIONThe present inventors have examined the possibility of ensured use of an M card as it is by an SD Card host.
To prove the possibility, the present inventors have focused attention on a card recognizing operation performed by the S card host by using a chip select (CS) terminal. In accordance with the standards of the S card, the CS terminal of the S card host is pulled down at 10 kilo-ohm (kΩ) and the CS terminal of the S card is pulled up at 50 kilo-ohm (kΩ). In the operation of recognizing the S card, the S card host drives the CS terminal to the HIGH level. At this time, even a current path resulting from the pull-up resistor of the S card and the pull-down resistor of the S card host is insufficient to hinder the HIGH-level driving by the S card host. There are cases where the pull-up resistor of the CS terminal of the M card is set to 1.5 mega-ohm (MΩ) in terms of reducing a standby current. The present inventors have proved that, if the S card host performs a similar recognizing operation with respect to the M card, the pull-down resistor of the S card host draws in a current in the vicinity of the CS terminal of the M card so that a level drop occurs at the CS terminal of the M card, which may result in false mode recognition by the M card. Specifically, the M card has an MMC mode and an SPI mode as card modes and a card selecting method and the allocation of functions to the terminals differ according to the cardmodes. The allocation of functions to the terminals in the MMC mode is the same as that for the S card. The foregoing operation of recognizing the S card by the S card host is the same as the operation of setting the MMC mode to the M card in terms of driving the CS terminal. In other words, the M card can be set to the MMC mode by driving the CS terminal to the HIGH level. In an actual situation, however, the M card judges that the CS terminal has been driven to the LOW level due to the drawing in of the current in the vicinity of the CS terminal by the pull-down resistor of the S card host and the resultant potential drop and therefore shits to the SPI mode.
This prevents the S card host from accessing the M card as the SD card in terms of the function of command and data allocation to the interface terminals and also prevents the S card host from accessing the M card in the MMC mode.
It is therefore an object of the present invention to provide a memory card and an electronic device in each of which power consumption resulting from the pull-up resistor of an input terminal is reduced and a misoperation induced by the pull-down resistor of a host apparatus is less likely to occur.
Another object of the present invention is to provide a memory card as an M card which can be accessed by an S card host.
The above and other objects and novel features of the present invention will become apparent from the description of the present specification and the accompanying drawings.
A brief description will be given to the outline of the representative aspects of the present invention disclosed in the present application.
(1) In an aspect of the present invention, a memory card comprises: a plurality of external terminals; an interface unit; and an erasable and writable nonvolatile memory, wherein the plurality of external terminals include a select terminal connected to a pull-up resistor and the interface unit selects a relatively low resistance value for the pull-up resistor of the select terminal before performing mode determination for the memory card based on an input from the select terminal and selects a relatively high resistance value after the mode determination.
The relatively high resistance value adopted at times other than when mode determination is performed operates to reduce a leakage current consumed by the pull-up resistor of the select terminal. In terms of lower power consumption, the resistance value of the pull-up resistor is preferably higher. If the case where a pull-down resistor is connected to the terminal of a memory card host to which the memory card is attached is assumed, however, an excessively high pull-up resistance value is influenced by the drawing in of a current by the pull-down resistor. By lowering the resistance of the pull-up resistor of the select terminal during mode determination, such an adverse effect of the lowering of a potential by the pull-down resistor can be circumvented.
In a specific embodiment of the present invention, the mode determination for the memory card is performed in response to reception of an initialization command (CMD0) to the memory card.
In a specific embodiment of the present invention, when the mode determination is performed, the interface unit sets an interface mode with an outside to a first operating mode in response to a HIGH level of the select terminal and sets the interface mode with the outside to a second operating mode in response to a LOW level of the select terminal. For example, the memory card is based on a standard of Multimedia Card, the first operating mode is an SPI mode, and the second operating mode is an MMC mode.
In another specific embodiment of the present invention, the selection of the low resistance value is performed stepwise and the stepwise selection assumes that a lower resistance value is selected earlier. When a signal change is caused at the select terminal prior to the determination timing, the change is accelerated. This ensures the termination of the signal change at the terminal, which is necessary for the card mode determination, well ahead of the timing for the card mode determination even in a special case where the noise immunity of the memory host is low or the operating speed is over a maximum permissible speed. In short, the reliability of the card-mode determining operation in adverse environments can further be enhanced.
In the memory card according to the present invention, the plurality of external terminals include a data terminal having a pull-up resistor and the interface unit selects a relatively low resistance value for the pull-up resistor of the data terminal during a period after a write command until a start bit of data to be written which is supplied to the data terminal is detected and selects a relatively high initial resistance value after the detection of the start bit. This enhances the reliability of the detection of the leading portion of the data to be written even in the case where the noise immunity of a data input system is low or degraded.
(2) In another aspect of the present invention, a memory card comprises: a plurality of external terminals; and an internal circuit having erasable and writable nonvolatile storing means, wherein the internal circuit lowers, in performing mode determination in response to an initialization command and based on an input from a select terminal as one of the external terminals, a resistance value of a pull-up resistor of the select terminal before a determination timing and restores the pull-up resistor to an initial resistance value after the mode determination. By lowering the resistance value of the pull-up resistor of the select terminal during the mode determination, the adverse effect of the lowering of the potential by the pull-down resistor can be circumvented.
Alternatively, the internal circuit lowers, during a period after a write command until a start bit of data to be written which is supplied to a data terminal as one of the external terminals is detected, a resistance value of a pull-up resistor of the data terminal and restores the pull-up resistor to an initial value after the detection of the start bit. This enhances the reliability of the detection of the leading portion of the data to be written even in the case where the noise immunity of the data input system is low or degraded.
(3) In still another aspect of the present invention, an electronic device comprises: a plurality of external terminals; and an internal circuit, wherein the internal circuit relatively lowers, in performing mode determination in response to an initialization command and based on an input from a select terminal as one of the external terminals, an input impedance of the select terminal before a determination timing and returns the input impedance to an initial value after the mode determination. By lowering the input impedance of the select terminal during the mode determination, the adverse effect of the lowering of the potential by the pull-down resistor can be circumvented.
Alternatively, the internal circuit relatively lowers, during a period after a write command until a start bit of data to be written which is supplied to a data terminal as one of the external terminals is detected, an input impedance of the data terminal and returns the input impedance to an initial value after the detection of the start bit. This enhances the reliability of the detection of the leading portion of the data to be written even in the case where the noise immunity of the data input system is low or degraded.
BRIEF DESCRIPTION OF THE DRAWINGS
A detailed depiction of the flashed memory 3 is not provided particularly but it can adopt a structure using a nonvolatile memory cell of floating-gate type which has a threshold voltage controlled in accordance with an amount of accumulated charge or a polarity or a structure using a nonvolatile memory cell of locally-trapped-charge type such as a MONOS (Metal Oxide Nitride Oxide Semiconductor) which stores information based on a location at which the charge is trapped relative to source/drain electrodes. The number of bits of information stored in one memory cell is not limited to one bit. A multi-bit configuration for storing two or more bits may also be used.
The interface unit 2 has the host interface control unit 4, flash memory interface control unit 5, and buffer memory 6 of the M card 1 and a control unit 7 for controlling the foregoing elements. The control unit 7 can be composed of, e.g., a single-chip microcomputer. Input buffers IBUF1 to IBUF4 and output buffers OBUF1 and OBUF2 are disposed between the host interface control unit 4 and the connector terminals P0 to P6 in accordance with the functions of the terminals. Pull-up resistor circuits 8 and 9 are disposed in respective stages previous to the input buffers IBUF1 and IBUF2.
The M card 1 has an MMC mode and an SPI (Serial Peripheral Interface) mode. A plurality of M cards 1 can share a bus. In other words, a large number of M cards can be connected to a single M card host. The difference between the MMC mode and the SPI mode is the specifications of an external interface and an M-card selecting method.
In accordance with the specifications of the external interface of the MMC mode, the seven connectors P0 to P6 are operated to function as a reserve terminal (which is either open or fixed to a logic value “1”) NC, a command terminal (I/O terminal for receiving a command and outputting a response signal) CMD, circuit-ground-voltage (grounding) terminals Vss1 and Vss2, a power-voltage supply terminal Vcc, a clock input terminal CLK, and a data I/O terminal DAT. In accordance with the specifications of the external interface of the SPI mode, the seven connectors P0 to P6 are operated to function as a chip select terminal (negative logic) CSb, a data input terminal (for the inputting of data and a command from the host apparatus to the card) DI, circuit-ground-voltage (grounding) terminals Vss1 and Vss2, a power-voltage supply terminal Vcc, a clock input terminal CLK, and a data output terminal (for the outputting of data and a status from the memory card to the host apparatus) DO.
In accordance with the M-card selecting method of the MMC mode, an M card to be accessed is selected from among a plurality of M cards by allocating distinct relative addresses (RCA: Relative Card Addresses) to the individual cards in a one-to-one correspondence in a flow of card recognition and specifying one of the relative addresses. The card recognition is performed by the following operations. When the MMC mode has been specified for a plurality of M cards connected commonly to a bus, if a predetermined command is issued from the host apparatus of the M cards (M card host) to a command line (signal line to which the command terminal CMD is connected), the memory cards in a ready state simultaneously outputs card identification information (CID: Card Identification Number) with the same timing onto the command line on a per-bit basis. The command line has an open drain architecture so that an output to the command line becomes, e.g., a LOW-level or high-output impedance. Each of the memory cards compares, on each output of 1 bit, the state of the command line with the value of the corresponding bit in the card identification information of its own. If they are different, the memory card halts the operation of transmitting the CID and returns to the ready state. As a result, the one of the memory cards having the smallest CID value is allowed to eventually complete the transmission of the CID value of its own to the end and shifts to an identification state. An RCA is set to the memory card that has shifted to the identification state. By repeating the recognizing operation a plurality of times, the RCAs are set to all the memory cards.
In the SPI mode, a chip select signal has been connected to the foregoing chip select terminal CSb of each of the plurality of cards. The selection of the M card to be accessed is performed appropriately by asserting, to a select level, the chip select signal to the card to be accessed.
A brief description will be given to an initialization sequence for the M card. When an operation power source Vcc is turned ON, a clock signal is inputted from the terminal P4 (clock terminal CLK) and a command is inputted from the terminal P1 (command terminal CMD), as illustrated in
The pull-up resistor circuit 8 is disposed to eliminate factors causing the unstabilization of the terminal CSb, the detailed description of which will be given herein below.
The AND gate 24 has two inputs, which are the output 24 of the decoder 20 and the output 25 of the counter 21. To the NAND gate 23, the output of the AND gate 22 and an inverted signal of a card mode signal 26, which is an internal signal, are inputted. The card mode signal 26 is asserted to the HIGH level in the SPI mode. The output of the NAND gate 23 is maintained at the LOW level during a period from the 8-th bit of the initialization command CMD0 counted from the start bit to the 48-th bit as the final bit in the state where the card mode is not the SPI mode. During the period, the switch transistor 13 is brought into the ON state so that the resistance value of the pull-up resistor is reduced gradually with the resistance value of the resistor 12.
The foregoing M card 1 is allowed to be set to the MMC mode when the M card is recognized as the S card by the S card host 30. Although the interface has different functions according to the card mode as illustrated in
Consequently, in the state where the card mode is not the SPI mode, the pull-up resistor 12A is selected during a period from the 8-th bit of the initialization command CMD0 counted from the start bit to the 16-th bit and the pull-up resistor 12B is selected during a period from the 17-th bit of the initialization command CMD0 to the 48-th bit. In short, the selection of the pull-up resistor 12A or 12B each having a lower resistance value is performed stepwise and the stepwise selection assumes that the lower resistance value is selected earlier. This accelerates the restoration of the terminal P0 to the HIGH level or the transition thereof from the LOW level to the HIGH level. Accordingly, even in a special case where the noise immunity of a memory host is low or the operating speed is over a maximum permissible speed, it becomes possible to ensure the termination of a signal change at the terminal P0, which is necessary for card mode determination, well ahead of a timing for the card mode determination. In short, the reliability of the card-mode determining operation in adverse environments can further be enhanced.
According to the result of a simulation, if the maximum operating frequency of the M card is assumed to be 20 MHz and the capacitance of the terminal P0 is 5 pF, the rising time of the terminal P0 is 15 nanoseconds (ns), 150 ns, and 750 ns when the resistance of the pull-up resistor is 1 kΩ, 10 kΩ, and 50 kΩ, respectively. Even if 750 ns is assumed to be necessary, 750 ns corresponds to 15 clock cycles so that a timing allowance is provided with the one-stage switching of
Thus, the pull-up resistor of the terminal P6 operated to function as the data terminal DAT is switched from a high resistance of 1.5 M kΩ to a low resistance 40 of 50 kΩ during a period from the detection of the command CMD24 till the detection of the start bit of the data to be written. The switching to the low resistance improves the noise immunity and enhances the reliability of the detection of the start bit of the data to be written.
Although the invention achieved by the present inventors has been described specifically with reference to the embodiments thereof, the present invention is not limited thereto. It will be understood that various changes and modifications can be made in the invention without departing from the gist thereof.
For example, the selectable resistance value of the pull-up resistor is not limited to 50 kΩ and can be changed appropriately. The circuit of
The following is the brief description of the effects achievable by the representative aspects of the invention disclosed in the present application.
That is, power consumption resulting from the pull-up resistor of an input terminal can be reduced. In addition, a memory card and an electronic device which are less susceptible to a misoperation induced by the pull-down resistor of a host apparatus can be provided.
A memory card as an M card which is accessible by an S card host can be provided.
Claims
1-10. (canceled)
11. A memory card comprising:
- a plurality of external terminals which include a select terminal connected to at least a pair of pull-up resistors including a low resistance value resistor and a high resistance value resistor to provide a pull-up resistance;
- an interface unit; and
- a flash memory,
- wherein said interface unit switches from said high resistance value resistor to said low resistance value resistor before performing a mode determination for the memory card based on an input from said select terminal during a mode determination period to perform said mode determination using said low resistance value resistor, and switches back to said high resistance value resistor after said mode determination period, and then is capable of starting data input for data storing or data output for data reading from/to a device outside the memory card based on a protocol resulting from said mode determination.
12. A memory card according to claim 11, wherein said mode determination for the memory card is performed in response to reception of an initialization command to the memory card.
13. A memory card according to claim 11, wherein, when said mode determination is performed, said interface unit sets an interface mode to a first operating mode in response to a HIGH level of said select terminal, and sets the interface mode to a second operating mode in response to a LOW level of said select terminal.
14. A memory card according to claim 13, wherein said memory card is based on a Multimedia Card standard, said first operating mode is an SPI mode, and said second operating mode is an MMC mode.
15. A memory card according to claim 11, wherein a selection of a low resistance value of the pull-up resistance is performed stepwise and the stepwise selection assumes that a lower resistance value is selected earlier.
16. A memory card according to claim 11, wherein said plurality of external terminals includes a data terminal coupling to a pull-up resistor, and
- wherein said interface unit selects a relatively low resistance value for the pull-up resistance of said data terminal during a period after a write command until a start bit of data to be written which is supplied to said data terminal is detected, and selects a relatively high initial resistance value after said detection of the start bit.
Type: Application
Filed: Feb 8, 2007
Publication Date: Jun 14, 2007
Inventors: Shigeo Kurakata (Kawagoe), Kunihiro Katayama (Chigasaki), Motoki Kanamori (Tachikawa), Atsushi Shikata (Higashimurayama), Tetsuya Iida (Kokubunji)
Application Number: 11/703,745
International Classification: G06F 1/00 (20060101);