MEMORY CARD HAVING MEMORY DEVICE AND HOST APPARATUS ACCESSING MEMORY CARD
A memory card includes a clock I/O circuit, a data I/O circuit, a delay element, and an adjustment value holding circuit. The clock input/output circuit receives a first clock from a host apparatus. The data I/O circuit receives a second clock from the host apparatus in a write timing adjustment mode. The data I/O circuit transmits and receives data to and from the host apparatus in a data transfer mode. In the write timing adjustment mode, the delay element adjusts a phase of the second clock in accordance with the first clock so as to receive the data received in the data transfer mode in response to the first clock. The adjustment value holding circuit holds an adjustment value for the phase of the second clock adjusted. In the data transfer mode, the delay element adjusts a phase of the data in accordance with the adjustment value.
This application is a continuation of and claims the benefit under 35 U.S.C. §120 from U.S. patent application Ser. No. 11/862,741, filed Sep. 27, 2007, which claims priority under 35 U.S.C. §119 from Japanese Patent Application No. 2006-269967, filed Sep. 29, 2006, the entire contents of each are incorporated herein by reference.
BACKGROUND OF THE INVENTION1. Field of the Invention
The present invention relates to a memory card having a memory device on which a data write operation, a data read operation, and a data erase operation are performed in response to an access from a host apparatus, and also relates to the host apparatus. For example, the present invention relates to timing adjustment for a bus interface that connects the memory card and the host apparatus together.
2. Description of the Related Art
Memory cards such as SD memory cards, which are one type of removable memory devices, have often been used in various portable electronic apparatuses such as personal computers, PDAs, cameras, and cellular phones (see, for example, Jpn. Pat. Appln. KOKAI Publication No. 2003-196613). The SD memory card is able to transfer data at a maximum of 25 MB/sec owing to an expanded high speed mode. However, next-generation memory cards are desired to have a transfer ability equivalent to at least 50 MB/sec.
However, with bus interfaces used in memory cards and based on the current scheme, it is difficult to control operation timings owing to a variation in delay. This in turn makes it difficult to increase the frequency of clock signals used to synchronize operations. The timing and element properties depend on the implementations and combination of the memory card and a host system. This makes it impossible to pre-calculate a predetermined delay value. In this respect, the memory card is different from onboard DRAMs (Dynamic Random Access Memories) and the like.
BRIEF SUMMARY OF THE INVENTIONA first aspect of the present invention provides a memory card accessed by a host apparatus, the memory card comprising a clock input/output circuit which receives a first clock signal from the host apparatus via a clock line; a data I/O circuit which receives a second clock signal from the host apparatus via a data line in a write timing adjustment mode executed by the memory card, the data I/O circuit transmitting and receiving data to and from the host apparatus via the data line in a data transfer mode; a delay element which, in the write timing adjustment mode, adjusts a phase of the second clock signal output by the data I/O circuit in accordance with the first clock signal so as to receive the data received in the data transfer mode in response to the first clock signal supplied by the clock input/output circuit; and an adjustment value holding circuit which holds an adjustment value for the phase of the second clock signal adjusted by the delay element. In the data transfer mode, the delay element adjusts a phase of the data output by the data I/O circuit in accordance with the adjustment value held in the adjustment value holding circuit.
A second aspect of the present invention provides a host apparatus accessing a memory card, the host apparatus comprising a clock generating circuit which generates a first clock; a clock input/output circuit which supplies the first clock signal to the memory card via a clock line; a data I/O circuit which receives a second clock signal generated on the basis of the first clock signal, from the memory card via a data line in a read timing adjustment mode executed by the host apparatus, the data I/O circuit transmitting and receiving data to and from the memory card via the data line in a data transfer mode; a first delay element which, in the read timing adjustment mode, adjusts a phase of the first clock signal in accordance with the second clock signal output by the data I/O circuit; and an adjustment value holding circuit which holds an adjustment value for a phase of the first clock signal adjusted by the first delay element. In the data transfer mode, the first delay element adjusts the phase of the first clock generated by the clock generating circuit in accordance with the adjustment value held in the adjustment value holding circuit.
Embodiments of the present invention will be described below with reference to the drawings. In the description below, the same parts are denoted by the same reference numbers throughout the drawings.
First EmbodimentFirst, description will be given of a memory card and a host apparatus in accordance with a first embodiment of the present invention.
As shown in
Further, although not shown, the NAND flash memory 3 and the controller 4 may be arranged on a printed circuit board (PCB) or may be formed in the same large-scale integration (LSI) circuit.
When connected to the host apparatus 20, the memory card 1 is supplied with power to operate to execute a process corresponding to an access from the host apparatus 20. The memory card 1 has the NAND flash memory 3 and the controller 4 as described above.
The NAND flash memory 3 is a nonvolatile memory specified to have an erase block size (block size as an erase unit) of, for example, 256 bytes. The NAND flash memory 3 is also specified so that data is written to and read from the NAND flash memory 3, for example, in 2 Kbytes. The NAND flash memory 3 is produced using, for example, a 0.09-μm process technique. That is, the design rule for the NAND flash memory 3 is less than 0.1 μm.
In addition to CPU 8 and ROM 9, described above, the controller 4 includes a memory interface 5, a host interface 6, a buffer 7, and random access memory (RAM) 10. The memory interface 5 executes an interface process between the controller 4 and the NAND flash memory 3. The host interface 6 executes an interface process between the controller 4 and the host apparatus 20. A card interface 30 in the host apparatus 20 executes an interface process between the host apparatus 20 and the controller 4.
The card interface 30 and the host interface 6 will be shown and the data transfer between the interfaces will be described below.
Clock generating circuits 32 and 70 output clock signals having a frequency that is an integer times, at least twice (in this case, twice), as large as that of a clock signal generated by the clock generating circuit 31. The clock generating circuits 32 and 70 are not necessarily essential in the present embodiment but are able to realize a double data transfer rate on a bus interface with the same number of signals as shown in
With an SD memory card, a bus clock is generated by the clock generating circuit 31 in the host apparatus 20 and supplied to the memory card 1 via a clock I/O circuit 38, a bus interface, and a clock I/O circuit 69. Therefore, the write data and the clock signal are transferred in the same direction, that is, from the host apparatus 20 (card interface 30) to the memory card 1 (host interface 6). When the host apparatus 20 receives data, the phase relationship between each data bit and the clock signal is important. Reception timings can be adjusted to some degree on the basis of the wiring length of a data line through which data is transmitted and of a clock line through which the clock signal is transmitted, or by using transistors having the same properties. However, since the connection between the memory card 1 and the host apparatus 20 cannot be identified, the reception timing depends on the implementation. It is thus expected that the delay varies among the data bits. The data I/O circuit cells 34 and 65 are bidirectional, but
Differences from the configuration shown in
Moreover, a mode selecting circuit 61 and an adjustment value holding circuit 62 are connected to a delay element 66 in the host interface 6 in the memory card 1. Upon receiving the signal setting the write timing adjustment mode from the mode selecting circuit 61, the delay element 66 adjusts the phase of a clock pattern input to an input section of the delay element 66, that is, a delay value (adjustment value), so that the edge of a clock signal (a first clock signal) generated by the clock generating circuit 70 matches the edge of a clock pattern (a second clock signal) output by the data I/O circuit 65. At this time, the determined adjustment value is held in the adjustment value holding circuit 62. Upon receiving the signal setting the normal operation mode from the mode selecting circuit 61, the delay element 66 uses the adjustment value held in the adjustment value holding circuit 62 to adjust a delay value for write data input to the input section of the delay element 66. That is, in the write timing adjustment mode, a clock signal supplied to a clock terminal of the reception flip flop 67 is supplied to the phase adjustable delay element 66. On the basis of the clock signal, the delay element 66 adjusts the phase of the clock pattern to determine the current adjustment value. Moreover, the determined adjustment value is held in the adjustment value holding circuit 62. Then, in the normal operation mode, the delay element 66 adjusts the delay value for the write data in accordance with the adjustment value held in the adjustment value holding circuit 62. This makes it possible to ensure an appropriate setup and hold time for the reception flip flop 67.
In the write timing adjustment mode, the transmission flip flop 33 is supplied with a clock signal of a double frequency by the clock generating circuit 32. Consequently, such a waveform as shown in
Now, description will be given of a memory card and a host apparatus in accordance with a second embodiment. Arrangements similar to those in the first embodiment are denoted by the same reference numbers and will not be described below. The configuration of the memory card and host apparatus shown in
A clock signal generated by the clock generating circuit 31 in the card interface 30 in the host apparatus 20 is supplied to the host interface 6 in the memory card 1 via clock I/O circuits 38 and 69. The clock signal supplied by the host interface 6 has its frequency doubled by the clock generating circuit 21. The resulting clock signal is supplied to a clock terminal of the transmission flip flop 22. The transmission flip flop 22 holds read data input to the input terminal D in the DDR mode and outputs the data from an output terminal Q to the data bus. As seen in
The read data output via the data I/O circuit 65 by the transmission flip flop 22 is supplied to the delay element 23 via the data bus and the data I/O circuit 34 in the host apparatus 20. The delay element 23 eliminates a variation among the data bits of the read data supplied to the delay element 23, which is able to adjust the delay value. The resulting read data is supplied to and held in the reception flip flop 24. If a clock signal generated by the host apparatus 20 is input to the input terminal D of the flip flop terminal 22 and a clock pattern then output to the host apparatus 20 is used to adjust read timings, then the read data passes through the transmission flip flop 22 in the memory card 1 back to the reception flip flop 24 in the host apparatus 20 using the clock signal generated by the host apparatus 20 as a start point. Owing to the large length of the path, the delay in the path varies very significantly. When DRAM or the like using DDR is used, the controller and the memory circuit are arranged onboard, and the wiring between the controller and the memory circuit can be fixed. However, for the SD memory card, the length of an SD bus line and the properties of the element vary depending on the implementations of the host system and the card. This prevents the delay value from being pre-calculated. To correctly receive data, it is necessary to adjust the phase of the clock signal supplied to the flip flop 24 and the phase of the input data so as to provide the appropriate setup and hold time for the flip flop 24. Thus, a phase adjustable delay element 25 needs to be interposed in front of the clock generating circuit 26, which doubles the frequency of the clock signal, to adjust the delay value (phase) of the clock signal supplied to the flip flop 24.
Differences from the configuration shown in
Moreover, a phase detecting circuit 28 determining the delay value is connected to the delay element 23 interposed in the data bus in the card interface 30 in the host apparatus 20. The mode selecting circuit 61 and the adjustment value holding circuit 62 are connected to the delay element 25. Further, an output from the delay element 23 is supplied to the delay element 25. Upon receiving the signal setting the read timing adjustment mode from the mode selecting circuit 61, the delay element 25 adjusts the phase of a clock signal input to an input section of the delay element 25, that is, a delay value (adjustment value), so that the edge of a clock signal (a first clock signal) generated by the clock generating circuit 31 matches the edge of a clock pattern (a second clock signal) output by the delay element 23. At this time, the determined adjustment value is held in the adjustment value holding circuit 62. Upon receiving the signal setting the normal operation mode from the mode selecting circuit 61, the delay element 25 uses the adjustment value held in the adjustment value holding circuit 62 to adjust a delay value for the clock signal input to the input section of the delay element 25. That is, in the read timing adjustment mode, the clock pattern output by the delay element 23 is supplied to the phase adjustable delay element 25 in order to adjust the setup and hold time for the reception flip flop 24. On the basis of the clock pattern, the delay element 25 adjusts the phase of the clock signal to determine the current adjustment value. Moreover, the determined adjustment value is held in the adjustment value holding circuit 62. Then, in the normal operation mode, the delay element 25 adjusts the delay value for the clock signal in accordance with the adjustment value held in the adjustment value holding circuit 62. This makes it possible to ensure the appropriate setup and hold time for the reception flip flop 24.
In the read timing adjustment mode, the transmission flip flop 22 is supplied with a clock signal of a double frequency. Consequently, such a waveform as shown in
Once the write timing adjustment mode and read timing adjustment mode in accordance with the first and second embodiments are executed, the results are held in the adjustment value holding circuit 62. Further, if the delay may be varied by, for example, a variation in temperature, the adjustment value (delay value) can be readjusted by executing the adjustment mode again periodically or under particular conditions.
The embodiment of the present invention can provide the memory card and host apparatus which are able to stably transfer data even when operating at a high clock frequency.
Further, the above embodiments can not only be individually carried out not but also be appropriately combined. Moreover, each of the above embodiments includes various levels of inventions. The various levels of inventions can thus be extracted by appropriately combining a plurality of the components disclosed in the embodiments.
Additional advantages and modifications will readily occur to those skilled in the art. Therefore, the invention in its broader aspects is not limited to the specific details and representative embodiments shown and described herein. Accordingly, various modifications may be made without departing from the spirit or scope of the general inventive concept as defined by the appended claims and their equivalents.
Claims
1. A memory card accessed by a host apparatus, the memory card comprising:
- a clock input/output circuit which receives a first clock signal from the host apparatus via a clock line;
- a data I/O circuit which receives a second clock signal from the host apparatus via a data line in a write timing adjustment mode executed by the memory card, the data I/O circuit transmitting and receiving data to and from the host apparatus via the data line in a data transfer mode;
- a delay element which, in the write timing adjustment mode, adjusts a phase of the second clock signal output by the data I/O circuit in accordance with the first clock signal so as to receive the data received in the data transfer mode in response to the first clock signal supplied by the clock input/output circuit; and
- an adjustment value holding circuit which holds an adjustment value for the phase of the second clock signal adjusted by the delay element,
- wherein in the data transfer mode, the delay element adjusts a phase of the data output by the data I/O circuit in accordance with the adjustment value held in the adjustment value holding circuit.
Type: Application
Filed: Oct 14, 2010
Publication Date: Feb 10, 2011
Inventor: Akihisa FUJIMOTO (Yamato-shi)
Application Number: 12/904,771
International Classification: G06F 1/08 (20060101);