Memory card

Abstract: A memory card is used on a card write and/or read apparatus which has a data bus with an arbitrary bit width and writes and/or reads a datum to and/or from the memory card. The memory card comprises a data input/output terminal (5, 21, 62a, 62b), a memory part (1, 12, 13, M0-M7) having a data bus with a bit width of at least n bits for coupling to the data bus of the card write and/or read apparatus via the data input/output terminal, an address input terminal (2, 16, 70) for receiving an address signal, a first input terminal (7, 19, 66) for receiving a first chip select signal which selects a first byte, a second input terminal (8, 20, 65) for receiving a second chip select signal which selects a second byte, and a decoder circuit (9, 15, 61) for determining a bit width of the data bus of the memory part to be used for data communication between the card write and/or read apparatus to one of n bits and n/N bits based on the first and second chip select signals and one or a plurality of arbitrary bits of the address signal by supplying control signals to the memory part, where n, N and n/N are positive integers.

Description: BACKGROUND OF THE INVENTION The present invention generally relates to memory cards, and more particularly to a memory card which has a memory function and has a shape of a credit card, for example. There has been proposed a memory card which has no central processing unit (CPU) but has a built-in memory such as a random access memory (RAM) and a read only memory (ROM). For example, the memory card uses a data bus having a bit width of eight bits or sixteen bits, and there are proposals to use a data bus having a bit width which is a multiple of eight such as thirty-two bits and sixty-four bits. When such a memory card is loaded into a card write and/or read apparatus (hereinafter simply referred to as a card write/read apparatus), it is possible to write an arbitrary information to the memory card and/or read a prestored information from the memory card. FIG.1 shows an example of a conventional memory card. The memory card comprises an input buffer 100, a memory 101, an input/output buffer 102, and terminals 103 through 107. An address signal ADR is applied to the terminal 103, a write enable signal WE is applied to the terminal 104, a chip select signal CS is applied to the terminal 105, and an output enable signal OE is applied to the terminal 106. A write datum which is to be written into the memory 101 and a read datum which is read out from the memory 101 are input and output via the data input/output terminal 107. The input of the write datum is controlled by the input/output buffer 102 in response to the write enable signal WE. On the other hand, the output of the read datum is controlled by the input/output buffer 102 in response to the output enable signal OE. According to the conventional memory card, the bit width of the data input/output terminal 107, that is, the bit width of a data bus, determines the card write/read apparatus to which the memory card may be loaded. In other words, a memory card which has a data bus with a bit width of eight bits is used exclusively on a card write/read apparatus having a data bus with a bit width of eight bits. Similarly, a memory card which has a data bus with a bit width of sixteen bits is used exclusively on a card write/read apparatus having a data bus with a bit width of sixteen bits. For this reason, when the bit width of the data bus of the card write/read apparatus is changed from eight bits to sixteen bits, it no longer becomes possible to use the memory card which has the data bus with the bit width of eight bits and the memory cards used on this card write/read apparatus must all have the data bus with the bit width of sixteen bits. As a result, an extremely large scale modification must be made in order to extend the functions of the card write/read apparatus because it is necessary to change all the memory cards. Therefore, the bit width of the data bus of the card write/read apparatus conventionally determines the memory cards which may be used thereon. Thus, there is a problem in that a memory card which has a data bus with a bit width different from that of the card write/read apparatus cannot be used on this card write/read apparatus. It is possible to consider enabling compatible use of the memory card which has the data bus with the bit width of sixteen bits on the card write/read apparatus which has the data bus with the bit width of eight bits and the card write/read apparatus which has the data bus with the bit width of sixteen bits. In this case, if the memory cards used have the data bus with the bit width of sixteen bits to start with, it is possible to continue using these memory cards even when the bit width of the data bus of the card write/read apparatus is changed from eight bits to sixteen bits to extend the functions thereof. FIG.2 shows another example of the conventional memory card. In FIG.2, those parts which are substantially the same as those corresponding parts in FIG.1 are designated by the same reference numerals, and a description thereof will be omitted. The memory card shown in FIG.2 has a data bus with a bit width of sixteen bits. The memory card comprises two 256 k x 8 bit RAMs 101 L and 101 H , a terminal 105 L for receiving a chip select signal CS0 which selects a lower byte (that is, the RAM 101 L ), and a terminal 105 H for receiving a chip select signal CS1 which selects an upper byte (that is, the RAM 101 H ). The following Table 1 shows an operation mode of the memory card determined by the chip select signals CS0 and CS1, where "H" denotes a high logic level and "L" denotes a low logic level. When the memory card shown in FIG.2 is used on the card write/read apparatus having the data bus with the bit width of eight bits, it is necessary to generate the chip select signals CS0 and CS1 by providing a decoder circuit within the card write/read apparatus because the card write/read apparatus having the data bus with the bit width of eight bits originally does not have the function of generating the chip select signals CS0 and CS1. Accordingly, in this case, there is a problem in that the card write/read apparatus having the data bus with the bit width of eight bits must be redesigned extensively to incorporate the decoder circuit by taking into account a signal delay which occurs within the decoder circuit. Further, after such a redesigning is made, it no longer is possible to use the memory card which has the data bus with the bit width of eight bits. A system for information transfer between a local and a main bus designed to permit the use of both 8 and 16 bit machines is known from GB A 2 021 823. The digital information is divided into a lower portion and an upper portion to allow a selective transfer of bytes compatible with both byte and word length digital information. SUMMARY OF THE INVENTION Accordingly, it is a general object of the present invention to provide a novel and useful memory card in which the problems described above are eliminated. Another and more specific object of the present invention is to provide a portable IC card for use on a card write and/or read apparatus which has a data bus with an arbitrary bit width and writes and/or reads a datum to and/or from the card, comprising data input/output terminal means, memory means having a data bus with a bit width of at least n bits for coupling to the data bus of the card write and/or read apparatus via the data input/output terminal means, address input terminal means for receiving from the card write and/or read apparatus an address signal, first input terminal means for receiving from the card write and/or read apparatus a first chip select signal which selects a first byte, second input terminal means for receiving from the card write and/or read apparatus a second chip select signal which selects a second byte, and decoder means for determining a bit width of the data bus of the memory means to be used for data communication between the card write and/or read apparatus to one of n bits and n/N bits based on the first and second chip select signals and one or a plurality of arbitrary bits of the address signal by supplying control signals to the memory means, where n, N and n/N are positive integers. According to the memory card of the present invention, it is possible to use the memory card on card write and/or read apparatus having data buses with different bit widths. In addition, it is possible to extend the functions of the card write and/or read apparatus without the need to modify the design of the card write and/or read apparatus. Other objects and further features of the present invention will be apparent from the following detailed description when read in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS FIG.1 is a system block diagram showing an example of a conventional memory card; FIG.2 is a system block diagram showing another example of the conventional memory card; FIG.3 is a system block diagram for explaining an operating principle of a memory card according to the present invention; FIG.4 is a system block diagram showing a first embodiment of the memory card according to the present invention; FIG.5 is a diagram for explaining the use of the first embodiment of the memory card on a card write/read apparatus which has a data bus with a bit width of eight bits; FIGS.6A and 6B respectively show embodiments of the use of the first embodiment of the memory card; FIG.7 is a circuit diagram showing an embodiment of a decoder circuit which may be used in the first embodiment of the memory card; FIGS.8(A) through 8(E) are timing charts for explaining an operation of the decoder circuit shown in FIG.7; FIG.9 is a system block diagram showing a second embodiment of the memory card according to the present invention; and FIG.10 is a perspective view generally showing an embodiment of an external appearance of the memory card. DESCRIPTION OF THE PREFERRED EMBODIMENTS First, a description will be given of an operating principle of a memory card according to the present invention, by referring to FIG.3. In FIG.3, a memory card comprises a memory means 1 which has a data bus with a bit width of at least n bits, an address input terminal 2 for receiving an address signal ADR, an n-bit data output terminal 5 for outputting a read datum which is read out from the memory means 1, a first input terminal 7 for receiving a first chip select signal CS0 which selects a first byte, a second input terminal 8 for receiving a second chip select signal CSN which selects a second byte, and a decoder circuit 9. The decoder circuit 9 generates control signals CE0 and CEN based on the first and second chip select signals CS0 and CSN which are received via the first and second input terminals 7 and 8 and a predetermined bit of the address signal ADR. The control signals CS0 and CSN control the bit width of the memory means 1 to n bits or n/N bits depending on a bit width of a data bus of a card write/read apparatus on which the memory card is to be used, where n, N and n/N are positive integers. Therefore, this memory card can be used on a card write/read apparatus which has a data bus with a bit width of n bits and a card write/read apparatus which has a data bus with a bit width of n/N bits. In other words, when n = 16 and N = 2, for example, the memory card according to the present invention can be used on a card write/read apparatus which has a data bus with a bit width of eight bits and a card write/read apparatus which has a data bus with a bit width of sixteen bits. Next, a description will be given of a first embodiment of the memory card according to the present invention, by referring to FIG.4. A memory card shown in FIG.4 generally comprises an input buffer 11, 256 k x 8 bit RAMs 12 and 13, an input/output buffer 14, a decoder circuit 15, and terminals 16 through 21. Bits A0 through A18 of the address signal ADR are applied to the terminal 16, and the bit A0 is supplied to the decoder circuit 15 while the remaining bits A1 through A18 are supplied to the input buffer 11. A write enable signal WE is applied to the terminal 17 and is supplied to each of the input buffer 11, the RAMs 12 and 13 and the input/output buffer 14. An output enable signal OE is applied to the terminal 18 and is supplied to the input/output buffer 14. A chip select signal CS1 which selects the upper byte (that is, the RAM 12) is applied to the terminal 19 and is supplied to the decoder circuit 15. A chip select signal CS0 which selects the lower byte (that is, the RAM 13) is applied to the terminal 20 and is supplied to the decoder circuit 15. Based on the bit A0 and the chip select signals CS0 and CS1, the decoder circuit 15 generates control signals CE0 and CE1 which are supplied to the respective RAMs 12 and 13. In this embodiment, when the logic values of the chip select signals CS0 and CS1 are the same, the memory bit width is set to sixteen bits regardless of the logic value of the bit A0. On the other hand, when the logic values of the chip select signals CS0 and CS1 are mutually different, the memory bit width is set to eight bits. When the memory bit width is set to eight bits, one of the the RAMs 12 and 13 is used depending on the logic value of the bit A0. In this embodiment, the RAM 12 is selectively used when the bit A0 has a low logic level and the logic values of the chip select signals CS0 and CS1 are mutually different. The following Table 2 shows the relationships of the chip select signals CS0 and CS1, the bit A0 and the control signals CE0 and CE1, where "H" and "L" respectively denote high and low logic levels and "X" denotes a don't care. FIG.5 is a diagram for explaining the use of the first embodiment of the memory card on a card write/read apparatus which has a data bus with a bit width of eight bits. In FIG.5, only essential parts of a card write/read apparatus 40 and a memory card 41 are shown for the sake of convenience. As shown, the 8-bit data bus of the card write/read apparatus 40 is connected to a terminal 30 as if it were a 16-bit data bus. That is, the apparent bit width of the data bus is sixteen bits. The terminal 30 of the card write/read apparatus 40 is connected to the data input/output terminal 21 of the memory card 41. In addition, terminals 31, 32 and 33 of the card write/read apparatus are respectively connected to the corresponding terminals 19, 16₀ and 20 of the memory card 41. The terminal 31 is connected to a power source voltage Vcc and is thus constantly fixed to the high logic level. The bit A0 of the address signal ADR is supplied to the terminal 32, and the chip select signal CS is supplied to the terminal 33. Accordingly, in FIG.5, the memory card 41 is used on the card write/read apparatus 40 as if it were a memory card having a data bus with a bit width of eight bits. Furthermore, there is no need to provide a decoder circuit or the like within the card write/read apparatus 40, and it is unnecessary to make a design modification of the card write/read apparatus 40 depending on the bit width of the data bus of the memory card. Therefore, the memory card 41 can be used on a card write/read apparatus which has a data bus with a bit width of eight bits and a card write/read apparatus which has a data bus with a bit width of sixteen bits, without making a design modification on the card write/read apparatuses. For this reason, a memory card which has a data bus with a bit width of eight bits can still be used on the card write/read apparatus which has the data bus with the bit width of eight bits, and a memory card which has a data bus with a bit width of sixteen bits can still be used on the card write/read apparatus which has the data bus with the bit width of sixteen bits. The following Table 3 shows the operation mode of the memory card, the state of the data input/output terminal 21 and the state of the power source current which are determined on the signals CS0 and CS1, A0, OE and WE. In Table 3, "High Imp" denotes a high impedance state, and the same designations are used as in Table 2. Table 3 is divided into part A and part B due to the limited space. FIGS.6A and 6B respectively show embodiments of the use of the first embodiment of the memory card. FIG.6A shows a case where the memory card 41 is used on a card write/read apparatus which has a CPU 50a, a main memory device 51a and an 8-bit data bus 52a. FIG.6B shows a case where the memory card 41 is used on a card write/read apparatus which has a CPU 50b, a main memory device 51b and a 16-bit data bus 52b. FIG.8 shows an embodiment of the decoder circuit 15 shown in FIG.4. The decoder circuit 15 comprises a NAND circuit 151, OR circuits 152 and 153, and AND circuits 154 and 155 which are connected as shown. The control signal CE0 is output from the OR circuit 153, and the control signal CE1 is output from the AND circuit 154. FIGS.9(A) through 9(E) show timing charts for explaining the operation of the decoder circuit 15 shown in FIG.8 for different input signals CS0 and CS1 and A0. FIGS.9(A) and 9(B) respectively show the chip select signals CS0 and CS1, and FIG.9(C) shows the bit A0 of the address signal ADR. FIGS.9(D) and 9(E) respectively show the control signals CE1 and CE0 output from the decoder circuit 15. Next, a description will be given of a second embodiment of the memory card according to the present invention, by referring to FIG.9. In this embodiment, a memory card comprises 8-bit memories M0 through M7, a decoder circuit 61, data input/output terminals 62a and 62b, and terminals 63 through 70. An upper byte made up of bits I/O₀ through I/O₇ of an input/output datum I/O₀ through I/O₁₅ is input and output via the data input/output terminal 62a, and a lower byte made up of bits I/O₈ through I/O₁₅ of the input/output datum I/O₀ through I/O₁₅ is input and output via the data input/output terminal 62b. A write enable signal WE is applied to the terminal 63, and an output enable signal OE is applied to the terminal 64. Chip select signals CS1 and CS0 are respectively applied to the terminals 65 and 66. Out of an address signal ADR made up of bits A₀ through A N+3 , bits A₀, A N+2 and A N+3 are respectively applied to the corresponding terminals 67, 68 and 69, while the remaining bits A₁ through A N+1 are applied to the terminal 70. In this embodiment, there is provided no input buffer nor input/output buffer which correspond to those of the first embodiment. However, it is possible to obtain substantially the same effects as those obtainable by the first embodiment. The bit width of the data bus is of course not limited to eight bits and sixteen bits. For example, the data buses may have bit widths of eight bits, sixteen bits and thirty-two bits. FIG.10 generally shows an embodiment of an external appearance of the memory card. In FIG.10, a memory card 200 comprises a printed circuit 201, memory integrated circuits (ICs) 202 connected to the printed circuit 201, an interface connector 203, a cover 204 and the like.

Claims: A portable IC card for use on a card write and/or read apparatus which has a data bus with an arbitrary bit width and writes and/or reads a datum to and/or from said memory card, said card comprising data input/output terminal means (5, 21, 62a, 62b); memory means (1, 12, 13, M0-M7) having a data bus with a bit width of at least n bits for coupling to the data bus of the card write and/or read apparatus via said data input/output terminal means; and address input terminal means (2, 16, 70) for receiving from the card write and/or read apparatus an address signal, further comprising: first input terminal means (7, 19, 66) for receiving from the card write and/or read apparatus a first chip select signal which selects a first byte; second input terminal means (8, 20, 65) for receiving from the card write and/or read apparatus a second chip select signal which selects a second byte; and decoder means (9, 15, 61) for determining a bit width of the data bus of said memory means to be used for data communication between the card write and/or read apparatus to one of n bits and n/N bits based on the first and second chip select signals and one or a plurality of arbitrary bits of the address signal by supplying control signals to said memory means, where n, N and n/N are positive integers. The portable IC card as claimed in claim 1, wherein said memory means (1, 12, 13, M0-M7) comprises a first n/2-bit output memory (12) and a second n/2-bit output memory (13) which respectively have an output of n/2 bits, said first and second n/2-bit output memories being enabled by the control signals received from said decoder means (9, 15, 61) and determining the bit width of the data bus used. The portable IC card as claimed in claim 2, wherein n = 16 and N = 2, said first n/2-bit output memory (12) being used for writing and reading the first byte of the datum, said second n/2-bit output memory (13) being used for writing and reading the second byte of the datum. The portable IC card as claimed in any of claims 1 to 3, further comprising third input terminal means (17, 63) for receiving a write enable signal and input buffer means (11) for receiving the first and second chip select signals and the write enable signals from said first, second and third input terminal means (7, 19, 66; 8, 20, 65; 17, 63) and the address signal from said address input terminal means (2, 16, 70), said input buffer means supplying the write enable signal and bits of the address signal excluding the one or plurality of arbitrary bits to said memory means (1, 12, 13, M0-M7), write and read operations of said memory means being enabled depending on a logic value of said write enable signal. The portable IC card as claimed in claim 4, characterized in that there are further provided fourth input terminal means (18, 64) for receiving an output enable signal and input/output buffer means (14) coupled to said memory means (1, 12, 13, M0-M7) for receiving a datum to be written into said memory means via said data input/output terminal means (5, 21, 62a, 62b) and for outputting a datum read out from said memory means to said data input/output terminal means depending on a logic value of the output enable signal. The portable IC card as claimed in claim 5, wherein said write enable signal and said output enable signal are respectively received from the card write and/or read apparatus. The portable IC card as claimed in any of claims 1 to 6, wherein n = 16 and N = 2. The portable IC card as claimed in claim 1 wherein said memory means (1, 12, 13, M0-M7) comprises a plurality of n/2-bit output memories (M0-M7) which respectively have an output of n/2 bits, said n/2-bit output memories being respectively enabled by the control signals received from said decoder means (61). The portable IC card as claimed in any of claims 1 to 8, wherein said first and second chip select signals have logic values which are selected depending on the bit width of the data bus of the card write and/or read apparatus which uses said memory card.

Inventors: ENDOH TETSUHIKO, ITAKURA KATSUHIKO, KOMYOJI HIROSUKE, MASUYAMA MASARU, TAKEMAE YOSHIHIRO, TANAKA RYUJI, ENDOH, TETSUHIKO, ITAKURA, KATSUHIKO, KOMYOJI, HIROSUKE, MASUYAMA, MASARU, TAKEMAE, YOSHIHIRO, TANAKA, RYUJI
Applicants: FUJITSU LTD, FUJITSU VLSI LTD, FUJITSU LIMITED, FUJITSU VLSI LIMITED
Application year: 1989
Main classification: G06K19
IPC codes: G06F12, G06K7, G06F13, G06K19