[go: up one dir, main page]

JPH0830750A - Method and device for judging capacity of memory card - Google Patents

Method and device for judging capacity of memory card

Info

Publication number
JPH0830750A
JPH0830750A JP6161851A JP16185194A JPH0830750A JP H0830750 A JPH0830750 A JP H0830750A JP 6161851 A JP6161851 A JP 6161851A JP 16185194 A JP16185194 A JP 16185194A JP H0830750 A JPH0830750 A JP H0830750A
Authority
JP
Japan
Prior art keywords
data
address
read
capacity
memory card
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP6161851A
Other languages
Japanese (ja)
Inventor
Toshihide Nakane
敏秀 中根
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sony Corp
Original Assignee
Sony Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sony Corp filed Critical Sony Corp
Priority to JP6161851A priority Critical patent/JPH0830750A/en
Publication of JPH0830750A publication Critical patent/JPH0830750A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE:To easily judge a memory capacity even for a memory card or the like on a manufacturing line to which card attribute information is not recorded yet by judging the capacity of the memory card based on an address where read is performed when read data and specified data match. CONSTITUTION:Without accessing the entire memory space within the memory card, the data are read from the memory area of the memory card at every prescribed address interval, the specified data which do not appear in the entire data read at every prescribed address interval are set and thereafter, the read data and the specified data are successively compared. That is, a D1 detection circuit 27 compares the read data with the specified data stored in a D1 storage circuit 26. Then, when both do not match, the specified data are written in the address where the read is performed. Thus, the address where the read is performed when the read data and the specified data match corresponds to the capacity of the memory card.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、例えばいわゆるメモリ
カードの容量を判定するメモリカードの容量判定方法及
び装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a memory card capacity determination method and device for determining the capacity of a so-called memory card, for example.

【0002】[0002]

【従来の技術】従来より、いわゆるメモリカードは、カ
ード状のケース内にメモリコントローラと例えば半導体
メモリとを配してなり、上記半導体メモリに格納されて
いる各種データやプログラム等の読み出し(又は書き込
み及び読み出し)制御を、上記メモリコントローラが外
部からの要求等に応じて行うようになされている。
2. Description of the Related Art Conventionally, so-called memory cards have a memory controller and a semiconductor memory, for example, arranged in a card-shaped case, and read (or write) various data and programs stored in the semiconductor memory. And read) control is performed by the memory controller in response to an external request or the like.

【0003】上記半導体メモリとして例えばスタティッ
クRAM(スタテイック・ランダム・アクセス・メモ
リ、以下SRAMとする)を用いたメモリカードの構成
は、図4のようなものが存在する。
As a semiconductor memory, for example, a static RAM (Static Random Access Memory, hereinafter referred to as SRAM) is used as a memory card, and there is a memory card as shown in FIG.

【0004】この図4に示すメモリカード1には、複数
のメモリセルからなるSRAM3と、外部装置との接続
のためのコネクタ6と、このコネクタ6を介して外部装
置との間でデータやアドレス等の各種情報の送受を行う
と共に上記SRAM3へのデータの書き込み/読み出し
を制御するメモリコントローラ2とが主要構成要素とし
て配されている。また、これら主要構成要素の他には、
例えば、SRAM3へ誤って書き込みがなされないよう
にするためのライトプレテクトスイッチ5や、バックア
ップのためのバックアップ制御部4が設けられている。
さらに、メモリコントローラ2には、アドレスバスを介
して供給されるアドレス情報を内部のSRAM3用のア
ドレスデータにデコードするアドレスデコーダ7が設け
られている。
In the memory card 1 shown in FIG. 4, an SRAM 3 composed of a plurality of memory cells, a connector 6 for connecting to an external device, and data and address between the external device and the connector 6 are provided. A memory controller 2 for transmitting and receiving various kinds of information such as, and controlling writing / reading of data to / from the SRAM 3 is arranged as a main component. In addition to these main components,
For example, a write protect switch 5 for preventing accidental writing to the SRAM 3 and a backup controller 4 for backup are provided.
Further, the memory controller 2 is provided with an address decoder 7 that decodes the address information supplied via the address bus into the address data for the internal SRAM 3.

【0005】なお、図4の図中CEはカードイネーブル
信号の入力端子であり、当該カードイネーブル信号はメ
モリカードを活性化するカード選択用のローアクティブ
の信号である。また、図中OEはアウトプットイネーブ
ル信号の入力端子であり、当該アウトプットイネーブル
信号はデータの出力を制御するローアクティブ(データ
書き込み中は非アクティブにする)の信号である。図中
WEはライトイネーブル信号の入力端子で、当該ライト
イネーブル信号はデータの書き込みを制御するローアク
ティブの信号である。図中WPはライトプロテクト信号
の出力端子で、上記ライトプロテクトスイッチ5がオン
のとき”Hレベル”となり、この間はコマンドも含めて
新しいデータを書き込むことはできない。図中REGは
アトリビュートメモリセレクト信号の入力端子であり、
当該アトリビュートメモリセレクト信号は”Lレベル”
にするとアトリビュートメモリ空間が選択される。図中
BVD1.BVD2は電池電圧検出用信号の出力端子で
あり、当該電池電圧検出用信号はバックアップ用一次電
池の電圧状態を示す信号である。図中CD1,CD2は
カード検出信号の出力端子でありカード内部でグランド
(GND)に接続されていて、システム側でカードの挿
入/抜去を検出するのに用いられる。その他、図中Vc
cはカードの動作電源端子で、図中GNDは接地端子で
ある。
CE in the drawing of FIG. 4 is an input terminal of a card enable signal, and the card enable signal is a low active signal for card selection for activating a memory card. Further, in the figure, OE is an input terminal of an output enable signal, and the output enable signal is a low active (inactive during data writing) signal for controlling data output. In the figure, WE is a write enable signal input terminal, and the write enable signal is a low active signal for controlling data writing. In the figure, WP is an output terminal of a write protect signal, which becomes "H level" when the write protect switch 5 is ON, and new data including a command cannot be written during this period. In the figure, REG is an input terminal for the attribute memory select signal,
The attribute memory select signal is "L level"
When set to, the attribute memory space is selected. In the figure, BVD1. BVD2 is an output terminal for a battery voltage detection signal, and the battery voltage detection signal is a signal indicating the voltage state of the backup primary battery. In the figure, CD1 and CD2 are output terminals for card detection signals and are connected to the ground (GND) inside the card, and are used to detect insertion / removal of the card on the system side. Others, Vc in the figure
c is an operating power supply terminal of the card, and GND is a ground terminal in the figure.

【0006】[0006]

【発明が解決しようとする課題】ところで、上述したよ
うなメモリカード内のメモリ空間には、カード属性情報
(CIS:Card Information Structure)と呼ばれるデ
ータ列が格納されている。このカード属性情報には、メ
モリ容量をはじめ、メモリカードを動作させるのに必要
なパラメータが記述されている。
By the way, a data string called card attribute information (CIS: Card Information Structure) is stored in the memory space in the memory card as described above. In this card attribute information, parameters necessary for operating the memory card including the memory capacity are described.

【0007】上記カード属性情報は、メモリカードシス
テムにおいて重要であり、したがって、上記カード属性
情報の欠落したメモリカード、すなわち例えば製造ライ
ン上で未だカード属性情報を記録していないメモリカー
ドや、ユーザが誤ってカード属性情報を消去してしまっ
たメモリカードは、通常のメモリカードシステムでは使
用できない。
[0007] The card attribute information is important in the memory card system. Therefore, a memory card lacking the card attribute information, that is, a memory card in which the card attribute information is not yet recorded on the manufacturing line, or a user A memory card whose card attribute information is accidentally erased cannot be used in a normal memory card system.

【0008】また、一般的なメモリカードにおいては、
メモリコントローラ2を簡略化するため、1つのメモリ
セルに対して複数のアドレスが割り当てられている。し
たがって、例えば、単純にあるアドレスに割り当てられ
たメモリセルの読み書きができるかどうかで、メモリ容
量の判定を行うことはできない。すなわち、例えば、A
0〜A25で表されるアドレス情報が供給され、A23
〜A25の上位アドレスビットをアドレスデコードに使
用しないような8メガバイト(MB)のメモリカードの
場合のメモリマップは、図5に示すようになり、上記A
0〜A22で表される領域はアドレス”000000
h”から”7FFFFFh”となるが、ここでアドレ
ス”800000h”,”1000000h”,・・・
をアクセスすると、無効データの代わりに、アドレス”
000000h”のデータが読み出されてしうようにな
る。したがって、上記単純にあるアドレスに割り当てら
れたメモリセルの読み書きができるかどうかでメモリ容
量の判定を行う方法をとると、全てのメモリカードを例
えば64MBのフル容量と誤認識してしまうことにな
る。
In a general memory card,
In order to simplify the memory controller 2, a plurality of addresses are assigned to one memory cell. Therefore, for example, the memory capacity cannot be determined by simply reading or writing the memory cell assigned to a certain address. That is, for example, A
Address information represented by 0 to A25 is supplied, and A23
The memory map for an 8-megabyte (MB) memory card in which the upper address bits of A25 are not used for address decoding is as shown in FIG.
The area represented by 0 to A22 has the address "000000."
It is changed from "h" to "7FFFFFh", but here, addresses "800000h", "1000000h", ...
Accessing the address instead of invalid data
The data of "000000h" will be read out. Therefore, if the method of judging the memory capacity by simply reading / writing the memory cell assigned to a certain address is adopted, all memory cards can be read. Will be erroneously recognized as a full capacity of 64 MB, for example.

【0009】そこで、本発明は、上述のような実情に鑑
みて提案されたものであり、製造ライン上で未だカード
属性情報を記録していないメモリカードや、ユーザが誤
ってカード属性情報を消去してしまったメモリカードで
あっても、容易にメモリ容量を判定できるメモリカード
の容量判定方法及び装置を提供することを目的とするも
のである。
Therefore, the present invention has been proposed in view of the above situation, and a memory card in which the card attribute information is not yet recorded on the manufacturing line, or the user mistakenly deletes the card attribute information. It is an object of the present invention to provide a memory card capacity determination method and device that can easily determine the memory capacity even if the memory card has been destroyed.

【0010】[0010]

【課題を解決するための手段】本発明は上述した目的を
達成するために提案されたものであり、メモリカードの
メモリ領域から所定のアドレス間隔毎にデータを読み出
し、上記所定のアドレス間隔毎に読み出した全データに
出現しない特定データを設定した後、上記メモリ領域の
所定のアドレス間隔毎にデータを読み出して順次上記特
定データと比較し、読み出したデータと上記特定データ
とが一致しないときに当該読み出しを行ったアドレスに
上記特定データを書き込み、読み出したデータと上記特
定データとが一致したときの当該読み出しを行ったアド
レスに基づいて、メモリカードの容量を判定することを
特徴とする。
DISCLOSURE OF THE INVENTION The present invention has been proposed in order to achieve the above-mentioned object, and reads data from a memory area of a memory card at predetermined address intervals, and at every predetermined address interval. After setting specific data that does not appear in all the read data, the data is read at predetermined address intervals in the memory area and sequentially compared with the specific data, and when the read data and the specific data do not match, The specific data is written to the read address, and the capacity of the memory card is determined based on the read address when the read data and the specific data match.

【0011】ここで、本発明のメモリカードの容量判定
方法では、上記メモリ領域から所定のアドレス間隔毎に
読み出したデータを記憶する。また、上記所定のアドレ
ス間隔は、メモリカードの最大メモリ容量に応じた全ア
ドレスに対して割り切れる間隔とする。さらに、本発明
のメモリカードの容量判定方法では、上記読み出しを行
ったアドレスのメモリ領域への上記特定データの書き込
みが不能となったときにも、当該アドレスに基づいてメ
モリカードの容量を判定する。
In the memory card capacity determination method of the present invention, the data read from the memory area at predetermined address intervals is stored. Further, the predetermined address interval is an interval divisible by all addresses according to the maximum memory capacity of the memory card. Further, in the memory card capacity determination method of the present invention, the capacity of the memory card is determined based on the address even when writing of the specific data into the memory area of the read address becomes impossible. .

【0012】次に、本発明のメモリカードの容量判定装
置は、所定のアドレス間隔毎にアドレス情報を設定する
アドレス設定手段と、上記アドレス設定手段で設定した
所定のアドレス間隔毎のアドレス情報に基づいてメモリ
カードのメモリ領域からデータを読み出す読み出し手段
と、上記所定のアドレス間隔毎に上記読み出した全デー
タに出現しない特定データを設定する特定データ設定手
段と、上記読み出し手段によって上記メモリ領域の所定
のアドレス間隔毎に読み出されたデータを順次上記特定
データと比較する比較手段と、上記比較手段での比較に
おいて上記読み出したデータと上記特定データとが一致
しないときには当該読み出しを行ったアドレスに上記特
定データを書き込む書き込み手段と、上記比較手段での
比較において上記読み出したデータと上記特定データと
が一致したときには当該読み出しを行ったアドレスに基
づいて、メモリカードの容量を判定する判定手段とを有
することを特徴とする。
Next, the memory card capacity determination device of the present invention is based on address setting means for setting address information at predetermined address intervals and address information at predetermined address intervals set by the address setting means. Means for reading data from the memory area of the memory card, specific data setting means for setting specific data that does not appear in all the read data at the predetermined address intervals, and a predetermined area of the memory area by the reading means. The comparing means for sequentially comparing the data read at each address interval with the specific data, and when the read data and the specific data do not match in the comparison by the comparing means, the specific address is read. In the comparison between the writing means for writing data and the comparing means, When the the viewing out data and the specific data match based on the address subjected to the read, and having a determining means for determining capacity of the memory card.

【0013】ここで、本発明のメモリカードの容量判定
装置には、さらに上記読み出し手段によって上記メモリ
領域から所定のアドレス間隔毎に読み出したデータを記
憶する記憶手段を設ける。また、上記アドレス設定手段
は、上記所定のアドレス間隔として、メモリカードの最
大メモリ容量に応じた全アドレスに対して割り切れる間
隔を設定する。さらに、本発明のメモリカードの容量判
定装置には、上記メモリ領域への上記特定データの書き
込みを確認する確認手段をも設け、上記読み出しを行っ
たアドレスのメモリ領域への上記特定データの書き込み
が不能であると上記確認手段が検出したときに、上記判
定手段は、当該アドレスに基づいてメモリカードの容量
を判定するようにもしている。
Here, the memory card capacity determination device of the present invention is further provided with storage means for storing data read from the memory area by the reading means at predetermined address intervals. Further, the address setting means sets, as the predetermined address interval, an interval divisible by all addresses according to the maximum memory capacity of the memory card. Further, the memory card capacity determination device of the present invention is also provided with a confirmation means for confirming the writing of the specific data in the memory area, so that the writing of the specific data in the memory area of the read address can be performed. When the confirmation means detects that the memory card is impossible, the determination means also determines the capacity of the memory card based on the address.

【0014】[0014]

【作用】本発明によれば、メモリカード内の全メモリ空
間をアクセスするのではなく、メモリカードのメモリ領
域から所定のアドレス間隔毎にデータを読み出し、これ
ら所定のアドレス間隔毎に読み出した全データに出現し
ない特定データを設定し、その後、メモリ領域の所定の
アドレス間隔毎にデータを読み出して順次特定データと
比較し、読み出したデータと特定データとが一致しない
ときにその読み出しを行ったアドレスに特定データを書
き込んでいくようにする。これにより、読み出したデー
タと特定データとが一致するようになったときのその読
み出しを行ったアドレスは、メモリカードの容量と対応
する。
According to the present invention, instead of accessing the entire memory space in the memory card, the data is read from the memory area of the memory card at predetermined address intervals, and all the data read at these predetermined address intervals. Specific data that does not appear in the memory area is set, then the data is read at specified address intervals in the memory area and sequentially compared with the specific data. When the read data and the specific data do not match, the read address is set to the read address. Write specific data. As a result, when the read data and the specific data match, the read address corresponds to the capacity of the memory card.

【0015】[0015]

【実施例】以下、図面を参照し、本発明の実施例につい
て詳述する。
Embodiments of the present invention will be described below in detail with reference to the drawings.

【0016】図1には本発明のメモリカードの容量判定
方法による容量判定処理の流れを示す。本発明のメモリ
カードの容量判定方法は、例えば前記図4に示すような
メモリカード1の製造ライン等における当該メモリカー
ド1の検査,測定装置、プログラム装置等の測定ターゲ
ットとなるメモリカード1のメモリ容量を自動設定する
際や、一般用途向けのメモリカードスロットを持つ機器
において、前記カード属性情報が消滅したメモリカード
1のメモリ容量を自動認識する際に使用される容量判定
方法である。また、図2には、本発明のメモリカードの
容量判定方法についての説明に用いるメモリカードのメ
モリマップを示している。なお、以下の例では、メモリ
カードの容量が512キロバイト(kB)であった場合
について説明する。
FIG. 1 shows the flow of capacity determination processing by the memory card capacity determination method of the present invention. The method for determining the capacity of a memory card according to the present invention is, for example, a memory of a memory card 1 which is a measurement target of an inspection, measurement device, program device, etc. of the memory card 1 in a manufacturing line of the memory card 1 as shown in FIG. This is a capacity determination method used when automatically setting the capacity or when automatically recognizing the memory capacity of the memory card 1 in which the card attribute information has disappeared in a device having a memory card slot for general use. Further, FIG. 2 shows a memory map of the memory card used for explaining the method of determining the capacity of the memory card of the present invention. In the following example, the case where the capacity of the memory card is 512 kilobytes (kB) will be described.

【0017】先ず、図1において、ステップS1ではメ
モリカードの容量を測定する際の容量測定分解能を選択
する。この容量測定分解能としては、例えば8kB,1
6kB,32kB,64kB,128kB等を挙げるこ
とができる。なお、これらの容量測定分解能には、現在
市販されているメモリカードの全メモリ容量(64M
B)に対して割り切れる値を使用することが好ましく、
また、容量測定に要する時間を考慮して本実施例では上
記容量測定分解能を128kBとしている。すなわち、
上記割り切れる値を使用することでメモリ容量の判定時
の誤差を少なくし(割り切れない余りを無くす)、ま
た、例えば128kBとすることで容量判定に要する時
間を短縮することができる。
First, in FIG. 1, in step S1, a capacity measurement resolution for measuring the capacity of the memory card is selected. The capacity measurement resolution is, for example, 8 kB, 1
6kB, 32kB, 64kB, 128kB etc. can be mentioned. Note that these capacity measurement resolutions include the total memory capacity (64M) of memory cards currently on the market.
It is preferable to use a divisible value for B),
Further, in consideration of the time required for the capacitance measurement, the capacitance measurement resolution is 128 kB in this embodiment. That is,
By using the divisible value, it is possible to reduce the error in determining the memory capacity (eliminate the undivisible remainder), and to reduce the time required for the capacity determination by setting it to 128 kB, for example.

【0018】次に、ステップS2ではメモリカードの例
えばSRAMに対するアドレスを先頭の”00000
h”にセットし、ステップS3では当該セットされたア
ドレスのデータをメモリカードから読み出し、これを記
憶する。
Next, in step S2, the address of, for example, the SRAM of the memory card is set to "0000" at the beginning.
Then, in step S3, the data of the set address is read from the memory card and stored.

【0019】ステップS4とステップS5では、既にセ
ットされたアドレスに128kB分のアドレスを加算
し、このアドレスが例えば上記64MB分に対応する”
4000000h”まできたか否かの判断を行い、アド
レスが未だ”4000000h”まで来ていないときに
は、ステップS3に戻る処理を繰り返す。なお、上記6
4MBは、さらに大きなものであってもよく、この場合
は当該アドレスも大きいものとなる。
In steps S4 and S5, an address of 128 kB is added to the already set address, and this address corresponds to the above 64 MB, for example. "
It is determined whether or not the address has reached 4000000h ", and if the address has not reached" 4000000h ", the process of returning to step S3 is repeated.
4 MB may be larger, and in this case, the address is also larger.

【0020】すなわち、上記ステップS1〜ステップS
5までの処理を図2を例に挙げて純に説明すると、ステ
ップS1において容量測定分解能が128kBに設定さ
れると、ステップS2において先頭のアドレス”000
00h”がセットされ、次のステップS3では当該アド
レス”00000h”のメモリ上のデータd0を読み出
して記憶する。次のステップS4では上記アドレス”0
0000h”から128kB分はなれたアドレス”20
000h”を設定し、ステップS5では未だアドレス”
4000000h”となっていないため、ステップS3
に戻る。このときのステップS3では、上記アドレス”
20000h”のメモリ上のデータd1を読み出して記
憶する。以下同様にして、128kB毎にメモリ上のデ
ータd2,d3,・・・を読み出して記憶してゆき、メ
モリカードの最大容量である64MB分に対応するアド
レス”4000000h”まで、当該メモリから読み出
すことができるアドレスのデータを読み出して記憶す
る。
That is, the above steps S1 to S
The process up to 5 will be described purely with reference to FIG. 2 as an example. When the capacity measurement resolution is set to 128 kB in step S1, the start address "000" is set in step S2.
00h "is set, and in the next step S3, the data d0 on the memory at the address" 00000h "is read and stored. In the next step S4, the address" 0 "is read.
Address "20" which is 128kB away from "0000h"
000h "is set, and the address is still in step S5"
Since it is not 4000000h ”, step S3
Return to At this time, in step S3, the address "
The data d1 on the memory of 20000h "is read and stored. Similarly, the data d2, d3, ... On the memory are read and stored every 128 kB, and the maximum capacity of the memory card is 64 MB. Up to the address "4000000h" corresponding to, the data of addresses that can be read from the memory is read and stored.

【0021】上述のようにしてアドレス”400000
0h”まで128kB毎にアドレスをセットしてゆき、
読み出すことができるアドレスのデータを読み出して記
憶した後は、ステップS6に進む。このステップS6で
は、上記128kB毎に読み出されて記憶した各データ
d0,d1,d2,・・・に存在しない数値(データD
1)を決定する。なお、このとき、上記128kB毎に
読み出されて記憶したデータd0,d1,d2,・・・
がそれぞれ例えば8ビットのデータであり、この8ビッ
トで表される全ての値が上記データd0,d1,d2,
・・・に含まれてしまうような場合、すなわち、8ビッ
トでは上記データD1(存在しない数値)を決定できな
い場合には、上記データd0,d1,d2,・・・の例
えばそれぞれ隣のデータも合わせた16ビットで、上記
存在しない数値を決定する。
As described above, the address "400000"
Address is set every 128kB until 0h ",
After the data at the readable address is read and stored, the process proceeds to step S6. In this step S6, a numerical value (data D that does not exist in each data d0, d1, d2, ...
Determine 1). At this time, the data d0, d1, d2, ...
Is, for example, 8-bit data, and all the values represented by the 8-bit data are the data d0, d1, d2.
.., that is, when the data D1 (numerical value that does not exist) cannot be determined with 8 bits, the data adjacent to the data d0, d1, d2 ,. The total 16 bits determine the nonexistent numerical value.

【0022】次のステップS7では、上記データD1を
メモリのアドレス”00000h”に書き込む。
In the next step S7, the data D1 is written in the address "00000h" of the memory.

【0023】次のステップS8とステップS9では、上
記データD1が書き込まれたアドレスに128kB分の
アドレスを加算し、このアドレスが”4000000
h”まできたか否かの判断を行う。
In the next steps S8 and S9, an address of 128 kB is added to the address in which the data D1 is written, and this address becomes "4000000."
It is determined whether or not h "has been reached.

【0024】上記ステップS9においてアドレスが”4
000000h”に達していないと判断した場合、ステ
ップS11では上記128kB分が加算されたアドレス
のメモリ上のデータを再度読み出し、次のステップS1
2では上記ステップS11で読み出したデータが上記デ
ータD1と一致するか否かの判断を行う。
In step S9, the address is "4".
If it is determined that the data has not reached 000000h ", the data in the memory at the address to which 128 kB has been added is read again in step S11, and the next step S1
In step 2, it is determined whether the data read in step S11 matches the data D1.

【0025】このステップS12において上記ステップ
S11で読み出したデータが上記データD1と一致しな
いと判断した場合には、ステップS13において当該ア
ドレスにデータD1を書き込み、次のステップS14で
は当該アドレスにデータD1が書き込めたか否かの判断
を行う。
When it is determined in step S12 that the data read in step S11 does not match the data D1, the data D1 is written in the address in step S13, and the data D1 is written in the address in the next step S14. It is judged whether or not it has been written.

【0026】このステップS14でデータD1が書き込
めたと判断したときには、ステップS8に戻る。
If it is determined in step S14 that the data D1 has been written, the process returns to step S8.

【0027】すなわち、上述したステップS6からステ
ップS14までの処理では、上記128kB毎の上記デ
ータd0,d1,d2,・・・が記録されていたメモリ
上の領域に、これらとは異なるデータD1を順次書き込
んでいくことが行われる。図2の例を用いて説明する
と、例えばアドレス”00000h”にデータD1を書
き込んだ後は、当該アドレス”00000h”から12
8kB分離れたアドレス”20000h”のメモリ上の
データd1を読み出し、このデータd1と上記データD
1とを比較し、これらが一致しないと判断したときに、
当該データD1をアドレス”20000h”に書き込
む。以下同様に、128キロバイト離れた次のアドレス
のデータを読み出し、上記データD1と比較し、上記デ
ータD1と一致しなければ当該データD1を書き込む処
理を繰り返す。
That is, in the processing from step S6 to step S14 described above, the data D1 different from the above data d0, d1, d2, ... Writing is done sequentially. To explain using the example of FIG. 2, for example, after writing the data D1 to the address “00000h”, the data from the address “00000h” to 12
The data d1 on the memory at the address "20000h" separated by 8 kB is read out, and this data d1 and the data D
When comparing 1 and it is determined that these do not match,
The data D1 is written in the address "20000h". Similarly, the data at the next address 128 kilobytes apart is read out, compared with the data D1, and if the data does not match the data D1, the process of writing the data D1 is repeated.

【0028】上記ステップS8からステップS14のル
ープにおいて、ステップS12でメモリ上から読み出し
たデータが上記データD1と一致したと判断したときに
は、ステップS15に進み、このステップS15におい
て当該メモリ上から読み出したデータと上記データD1
とが一致した現在のアドレスに対応する記憶領域の位置
(メモリの先頭からの位置)から、当該メモリカードの
容量を求めて、処理を終了する。
In the loop from step S8 to step S14, when it is determined that the data read from the memory in step S12 matches the data D1, the process proceeds to step S15, and the data read from the memory in step S15. And the above data D1
The capacity of the memory card is obtained from the position of the storage area (the position from the beginning of the memory) corresponding to the current address where and match, and the process ends.

【0029】例えば、メモリカードの容量が上記512
kBであったとすると、上記ステップS8からステップ
S14までのループを繰り返していくと、アドレスが”
80000h”となったところで、メモリから読み出し
たデータと上記データD1とが一致することになる。し
たがって、当該アドレス”80000h”すなわちバイ
ト数に換算した512kBが当該メモリカードの容量と
なる。
For example, if the capacity of the memory card is 512
If it is kB, when the loop from step S8 to step S14 is repeated, the address becomes "
At 80000h ", the data read from the memory coincides with the data D1. Therefore, the address" 80000h ", that is, 512 kB converted into the number of bytes becomes the capacity of the memory card.

【0030】ここで、例えば、前述の従来例で述べた自
己のメモリ空間に関係ない上位アドレスもデコードする
ようなタイプのメモリカードの場合は、上述のような処
理を行ってもアドレスの”80000h”から読み出し
たデータは上記データD1と一致しないことになるが、
このメモリカードの場合、当該”80000h”のアド
レスには新たにデータの書き込み(データD1の書き込
み)ができないので、上記ステップS14にてノーと判
断され、これによりステップS15に進んで当該メモリ
カードの容量はやはりアドレス”80000h”に対応
する容量すなわち512kBが容量となる。
Here, for example, in the case of a memory card of the type which also decodes the upper address irrelevant to its own memory space described in the above-mentioned conventional example, even if the above-mentioned processing is performed, the address "80000h" Although the data read from "does not match the above data D1,
In the case of this memory card, it is not possible to newly write data (write the data D1) to the address "80000h", so that it is determined as NO in the above step S14, and thus the process proceeds to step S15 and the memory card The capacity is still the capacity corresponding to the address "80000h", that is, 512 kB.

【0031】また、ステップS8で順次128kBのア
ドレス加算を行っていくメモリカードの容量判定の途中
において、上記ステップS9でアドレスが”40000
00h”に達してしまったときには、ステップS10に
進みカード自身が不良であるとして容量判定の処理を中
止する。
In addition, in the middle of the capacity determination of the memory card which sequentially performs the address addition of 128 kB in step S8, the address is changed to "40000" in step S9.
If it reaches "00h", the process proceeds to step S10, and the processing of capacity determination is stopped because the card itself is defective.

【0032】さらに、上述した説明では、メモリカード
の容量判定の際に、128kB毎のアドレスに先に書き
込まれていたデータd1,d2,d3,・・・を順次デ
ータD1に書き換えるようにしているが、これらデータ
d1,d2,d3,・・・が必要なデータであるなら
ば、これらデータを記憶しておいて、メモリカードの容
量判定後にそれぞれを元のアドレスの記憶領域に書き込
むようにすることも可能である。
Further, in the above description, when the capacity of the memory card is determined, the data d1, d2, d3, ... That have been previously written at the addresses of 128 kB are sequentially rewritten to the data D1. However, if these data d1, d2, d3, ... Are necessary data, these data are stored and each is written in the storage area of the original address after the capacity determination of the memory card. It is also possible.

【0033】次に、上述した本発明のメモリカードの容
量判定方法を実現する本発明実施例の容量判定装置につ
いて、図3を用いて説明する。
Next, a capacity determination device of an embodiment of the present invention which realizes the above-described capacity determination method for a memory card of the present invention will be described with reference to FIG.

【0034】すなわち、本実施例のメモリカードの容量
判定装置は、図3に示すように、所定のアドレス間隔
(例えば前述した128kBや16kB,32kB,6
4kB等)毎にアドレス情報を設定する測定分解能入力
手段10及びアドレス設定部11と、上記アドレス設定
部11で設定した所定のアドレス間隔毎のアドレス情報
に基づいて被容量判定カード13のメモリカードのメモ
リ領域(例えばSRAM)からデータを読み出す読み出
し手段としてのデータ読み出し制御回路29と、上記所
定のアドレス毎に読み出したデータを記憶する読み出し
データメモリ14と、上記所定のアドレス間隔毎に上記
読み出した全データ(前記d1,d2,d3,・・・
等)に出現しない特定データ(前記データD1)を設定
する特定データ設定手段であるD1設定部15のD1決
定回路25と、上記アドレス設定部11及びデータ読み
出し制御回路29によって上記メモリ領域の所定のアド
レス間隔毎に読み出されたデータを、順次D1記憶回路
26に記憶された上記特定データD1と比較する比較手
段としてのD1検出回路27と、上記D1検出回路27
での比較において上記読み出したデータと上記特定デー
タD1とが一致しないときには当該読み出しを行ったア
ドレスに上記D1記憶回路26に記憶された特定データ
D1を書き込む書き込み手段であるデータ書き込み制御
回路28と、上記D1検出回路27での比較において上
記読み出したデータと上記特定データD1とが一致した
ときには当該読み出しを行ったアドレスに基づいてメモ
リカードの容量を判定すると共に、上記メモリ領域への
上記特定データD1の書き込みを確認する確認手段であ
るD1書き込み確認回路30において上記特定データの
書き込みが不能であると検出したときにも当該アドレス
に基づいてメモリカードの容量を判定する判定手段であ
るカード容量判定回路18とを有することを特徴として
いる。
That is, as shown in FIG. 3, the memory card capacity determination device according to the present embodiment has a predetermined address interval (for example, 128 kB, 16 kB, 32 kB, 6 described above).
Measurement resolution input means 10 and address setting unit 11 for setting address information for each 4 kB), and for the memory card of the capacity determination card 13 based on the address information for each predetermined address interval set by the address setting unit 11. A data read control circuit 29 as a read means for reading data from a memory area (for example, SRAM), a read data memory 14 for storing the data read at each of the predetermined addresses, and all the data read at the predetermined address intervals. Data (d1, d2, d3, ...
Etc.), the D1 determining circuit 25 of the D1 setting unit 15 which is the specific data setting means for setting the specific data (the data D1), and the address setting unit 11 and the data read control circuit 29 are used to determine the predetermined area of the memory area. The D1 detection circuit 27 as a comparison means for sequentially comparing the data read at each address interval with the specific data D1 stored in the D1 storage circuit 26, and the D1 detection circuit 27.
When the read data and the specific data D1 do not match in the comparison in step 1, the data write control circuit 28 which is a writing means for writing the specific data D1 stored in the D1 storage circuit 26 to the read address, When the read data and the specific data D1 match in the comparison in the D1 detection circuit 27, the capacity of the memory card is determined based on the read address, and the specific data D1 to the memory area is determined. Card capacity determination circuit that is a determination means that determines the capacity of the memory card based on the address even when the D1 write confirmation circuit 30, which is a confirmation means for confirming the writing of the data, detects that the specific data cannot be written. It is characterized by having 18 and.

【0035】すなわちこの図3において、測定分解能入
力手段10からは、前記ステップS1でのメモリカード
の容量を測定する際の容量測定分解能が選択入力され
る。この容量測定分解能の入力は、例えばユーザがキー
入力したり、或いは当該測定分解能入力手段10に予め
設定されていた値が入力される。以下の説明では、前記
128kBの分解能が入力されたとする。
That is, in FIG. 3, the capacity measurement resolution at the time of measuring the capacity of the memory card in the step S1 is selectively input from the measurement resolution input means 10. The capacitance measurement resolution is input by a user, for example, or by inputting a value preset in the measurement resolution input means 10. In the following description, it is assumed that the resolution of 128 kB is input.

【0036】上記測定分解能入力手段10からの容量測
定分解能情報は、アドレス設定部11に送られる。
The capacity measurement resolution information from the measurement resolution input means 10 is sent to the address setting section 11.

【0037】当該アドレス設定部11のアドレス加算回
路21は、上記容量測定分解能情報が供給されると、そ
の容量測定分解能に応じて例えば0,128,256,
384,・・・のように、前記128kB毎に対応する
加算情報を出力してアドレス生成回路23に送る。
When the capacity measurement resolution information is supplied, the address adder circuit 21 of the address setting section 11 receives, for example, 0, 128, 256, according to the capacity measurement resolution.
, 384, ..., Addition information corresponding to each 128 kB is output and sent to the address generation circuit 23.

【0038】当該アドレス生成回路23は、上記アドレ
ス加算回路21からの最初の加算情報が入力されると、
前記ステップS2のように先ず前記メモリカードである
被容量判定カード13の例えばSRAMに対する先頭の
アドレス”00000h”をセットし、このアドレス”
00000h”を上記被容量判定カード13に送る。そ
の後、当該アドレス生成回路23は、前記ステップS3
のように上記アドレス加算回路21からの加算情報に応
じて、前記128kB毎に対応するアドレスの情報を上
記被容量判定カード13に送る。
When the first addition information from the address addition circuit 21 is input to the address generation circuit 23,
As in step S2, first, the head address "00000h" of the capacity determination card 13 which is the memory card, for example, the SRAM is set, and this address "
"00000h" is sent to the capacity determination card 13. After that, the address generating circuit 23 causes the step S3.
As described above, according to the addition information from the address addition circuit 21, the information of the address corresponding to each 128 kB is sent to the capacity determination card 13.

【0039】また、上記アドレス生成回路23からのア
ドレスの情報は、アドレス最大値検出回路24にも送ら
れ、当該アドレス最大値検出回路24では、前記ステッ
プS5のように、上記アドレスの情報が例えば前記64
MBに対応するアドレス”4000000h”となった
か否かの検出を行う。このアドレス最大値検出回路24
において64MBに対応するアドレスの最大値を検出す
ると、その検出出力はアドレスリセット回路22に送ら
れる。
Further, the address information from the address generation circuit 23 is also sent to the maximum address value detection circuit 24. In the maximum address value detection circuit 24, the information of the address is, for example, as in step S5. 64
It is detected whether or not the address "4000000h" corresponding to the MB has been reached. This address maximum value detection circuit 24
When the maximum value of the address corresponding to 64 MB is detected at, the detection output is sent to the address reset circuit 22.

【0040】このアドレスリセット回路22では、上記
検出出力が供給されると、アドレス生成回路23をリセ
ットするアドレスリセット信号を出力する。これによ
り、アドレス生成回路23では、生成するアドレスが”
00000h”にリセットされる。
When the detection output is supplied, the address reset circuit 22 outputs an address reset signal for resetting the address generation circuit 23. As a result, in the address generation circuit 23, the generated address is "
Is reset to 00000h ".

【0041】また、上述のようにしてアドレスの情報が
供給された被容量判定カード13は、データ読み出し制
御回路29によってデータ読み出し状態となされると共
に、上記アドレス生成回路23からのアドレス情報に応
じたSRAMの記憶領域からデータが読み出される。こ
の被容量判定カード13から読み出されたデータは、読
み出しデータメモリ14に送られ、前記ステップS3の
ように、このメモリ14に上記カード13から読み出さ
れたデータが記憶される。
Further, the capacity determination card 13 to which the address information is supplied as described above is brought into a data read state by the data read control circuit 29, and the address information from the address generation circuit 23 is responded to. Data is read from the storage area of the SRAM. The data read from the capacity determination card 13 is sent to the read data memory 14, and the data read from the card 13 is stored in the memory 14 as in step S3.

【0042】当該読み出しデータメモリ14に、上記1
28kBに対応するSRAMの記憶領域から読み出され
たデータが全て格納されると、それら各データはD1設
定部15のD1決定回路25に送られる。
In the read data memory 14, the above 1
When all the data read from the storage area of the SRAM corresponding to 28 kB is stored, the respective data are sent to the D1 determining circuit 25 of the D1 setting unit 15.

【0043】当該D1決定回路25は、上記読み出しデ
ータメモリ14から供給された各データを見て、前記ス
テップS6のように、前記データD1を決定する。この
D1決定回路25で決定されたデータD1は、D1記憶
回路26に送られて記憶される。
The D1 deciding circuit 25 decides the data D1 as in step S6, by looking at each data supplied from the read data memory 14. The data D1 determined by the D1 determination circuit 25 is sent to the D1 storage circuit 26 and stored therein.

【0044】このD1記憶回路26に記憶された後に読
み出されたデータD1は、書き込み/読み出し制御部1
6のデータ書き込み制御回路28に送られる。このデー
タ書き込み制御回路28は、上記データD1を上記被容
量判定カード13に書き込むようにするが、このときカ
ード13に対して上記アドレス生成回路23から供給さ
れるアドレスは、前記リセット後のアドレス”0000
0h”となっており、したがって、上記データD1はス
テップS7のように当該アドレス”00000h”に書
き込まれる。
The data D1 read out after being stored in the D1 storage circuit 26 is the write / read control unit 1.
6 to the data write control circuit 28. The data write control circuit 28 writes the data D1 into the capacity determination card 13, and at this time, the address supplied from the address generation circuit 23 to the card 13 is the address after the reset. 0000
Since it is 0h ", the data D1 is written in the address" 00000h "as in step S7.

【0045】上記アドレス”00000h”へのデータ
D1の書き込み後、アドレス生成回路23からは前記各
128kB毎に対応するアドレスが順次供給される。こ
のときの被容量判定カード13からは、データ読み出し
制御回路29からの読み出し制御信号に基づいて、上記
各128kB毎に対応するアドレスのデータが読み出さ
れ、この読み出しデータがD1検出回路27に送られ
る。
After writing the data D1 to the address "00000h", the address generation circuit 23 sequentially supplies the addresses corresponding to each 128 kB. At this time, the data of the address corresponding to each 128 kB is read from the capacity determination card 13 based on the read control signal from the data read control circuit 29, and the read data is sent to the D1 detection circuit 27. To be

【0046】このD1検出回路27には上記D1記憶回
路26からのデータD1が供給されている。したがっ
て、当該D1検出回路27では、ステップS12のよう
に上記カード13から読み出されたデータと上記データ
D1とを比較し、これらデータが一致しないときには、
上記D1記憶回路26からデータD1を出力させること
で、上記被容量判定カード13のSRAMの前記各12
8kB毎に対応するアドレスには順次データD1が書き
込まれていくことになる。
The D1 detection circuit 27 is supplied with the data D1 from the D1 storage circuit 26. Therefore, the D1 detection circuit 27 compares the data read from the card 13 with the data D1 as in step S12, and when these data do not match,
By outputting the data D1 from the D1 storage circuit 26, each of the 12 items of the SRAM of the capacity determination card 13 is output.
The data D1 is sequentially written to the address corresponding to each 8 kB.

【0047】上述のようにして被容量判定カード13に
データD1が順次書き込まれていくと共に、各128k
B毎に対応するアドレスからのデータの読み出しを行っ
てゆき、上記D1検出回路27において被容量判定カー
ド13から読み出されたデータが上記データD1と一致
したことを検出すると、当該D1検出回路27からは当
該一致した旨を示す情報が、カード容量判定回路18に
送られる。
As described above, the data D1 is sequentially written in the capacity determination card 13 and each 128 k
Data is read from the address corresponding to each B, and when the D1 detection circuit 27 detects that the data read from the capacity determination card 13 matches the data D1, the D1 detection circuit 27 concerned. From the above, information indicating the match is sent to the card capacity determination circuit 18.

【0048】カード容量判定回路18には、アドレス生
成回路23からのアドレスの情報と、上記D1検出回路
27から供給された上記一致した旨を示す情報とに基づ
いて、前記ステップS15のように、当該被容量判定カ
ード13のカード容量を判定する。前述の図1の例で
は、512kBと判定する。
Based on the address information from the address generation circuit 23 and the information indicating the coincidence supplied from the D1 detection circuit 27, the card capacity determination circuit 18 determines, as in step S15, The card capacity of the capacity determination card 13 is determined. In the example of FIG. 1 described above, it is determined to be 512 kB.

【0049】また、上記データ書き込み制御回路28か
らの書き込み制御信号と、上記D1記憶回路26からの
データD1は、D1書き込み確認回路30にも送られる
ようになっている。当該D1書き込み確認回路30では
これら書き込み制御信号とデータD1とから被容量判定
カード13へのデータD1の書き込みを確認するように
しており、カード13へのデータD1の書き込みができ
ないときには、前記ステップS14のように、その旨の
情報をカード容量判定回路18に送る。
The write control signal from the data write control circuit 28 and the data D1 from the D1 storage circuit 26 are also sent to the D1 write confirmation circuit 30. The D1 write confirmation circuit 30 confirms the writing of the data D1 to the capacity determination card 13 based on the write control signal and the data D1. When the data D1 cannot be written to the card 13, the step S14 is performed. As described above, the information to that effect is sent to the card capacity determination circuit 18.

【0050】さらに、カード容量判定回路18には、上
記アドレス最大値検出回路24からのアドレス最大値の
検出出力も供給されるようになっている。したがって、
当該カード容量判定回路18は、前記ステップS9のよ
うに、被容量判定カード13のカード容量判定の途中に
おいて、アドレス生成回路23から出力されているアド
レスが”4000000h”に達してしまったときに
は、当該被容量判定カード13自身が不良であるとして
容量判定の処理を中止する。
Further, the card capacity determination circuit 18 is also supplied with the detection output of the maximum address value from the maximum address value detection circuit 24. Therefore,
When the address output from the address generation circuit 23 reaches "4000000h" in the middle of the card capacity determination of the capacity-determined card 13, the card capacity determination circuit 18 determines that the address of the capacity-determined card 13 is "4000000h". Since the capacity determination card 13 itself is defective, the capacity determination process is stopped.

【0051】その後、当該カード容量判定回路18は、
例えば液晶表示装置等のカード容量表示手段17に対し
て、上記被容量判定カード13の容量が判定できたとき
にはそのカード容量を表示し、上記カード13が不良で
あるときにはその旨を表示する。
Thereafter, the card capacity judgment circuit 18 concerned
For example, when the capacity of the capacity determination card 13 can be determined, the card capacity display means 17 such as a liquid crystal display device displays the card capacity, and when the card 13 is defective, the fact is displayed.

【0052】また、システムコントローラ12は、予め
設定されたプログラムに従って各構成要素を制御する。
The system controller 12 also controls each component according to a preset program.

【0053】なお、図3の構成においても、被容量判定
カード13のSRAMの128kB毎のアドレスに先に
書き込まれていたデータd1,d2,d3,・・・を順
次データD1に書き換えるようにしているが、これらデ
ータd1,d2,d3,・・・が必要なデータであるな
らば、読み出しデータメモリ14に記憶しているこれら
データを、当該被容量判定カード13の容量判定後に、
それぞれ元のアドレスの記憶領域に書き込むようにする
ことも可能である。
Also in the configuration of FIG. 3, the data d1, d2, d3, ... That have been previously written to the addresses of 128 kB of the SRAM of the capacity determination card 13 are sequentially rewritten to the data D1. However, if these data d1, d2, d3, ... Are necessary data, these data stored in the read data memory 14 are stored in the read data memory 14 after the capacity determination of the capacity determination card 13.
It is also possible to write each in the storage area of the original address.

【0054】上述したようなことから、本実施例のメモ
リカードの容量判定方法及び装置においては、メモリカ
ードの生産ライン等でカード属性情報が書かれていない
カードを測定、検査する際に、作業者がカード容量を設
定する必要がなくなり、省力化を図ることができる。ま
た、メモリカードのユーザが使用するホストコンピュー
タに、本発明の容量判定方法の判定アルゴリズムを搭載
することで、カード容量に関するカード属性情報を誤消
去したカードであっても使用可能となる。
From the above, the method and apparatus for determining the capacity of the memory card according to the present embodiment, when measuring and inspecting a card in which the card attribute information is not written in the production line of the memory card, etc. It is not necessary for a person to set the card capacity, and labor can be saved. Further, by mounting the judgment algorithm of the capacity judgment method of the present invention on the host computer used by the user of the memory card, even a card in which the card attribute information regarding the card capacity is erroneously erased can be used.

【0055】さらに、例えばコンピュータにおいては、
通常、起動時に実装されているRAMの動作チェックを
行い、そのメモリ容量を認識しているが、動作チェック
を省略して、上述した本発明のメモリ容量判定方法で当
該RAMのメモリ容量を認識すれば、起動時間を短縮で
きることになる。
Further, for example, in a computer,
Normally, the operation check of the RAM installed at startup is performed and its memory capacity is recognized, but the operation check is omitted and the memory capacity of the RAM is recognized by the memory capacity determination method of the present invention described above. If this is the case, the startup time can be shortened.

【0056】[0056]

【発明の効果】上述のように本発明においては、メモリ
カード内の全メモリ空間をアクセスするのではなく、メ
モリカードのメモリ領域から所定のアドレス間隔毎にデ
ータを読み出し、これら所定のアドレス間隔毎に読み出
した全データに出現しない特定データを設定し、その
後、メモリ領域の所定のアドレス間隔毎にデータを読み
出して順次特定データと比較し、読み出したデータと特
定データとが一致しないときにその読み出しを行ったア
ドレスに特定データを書き込んでいくようにする。これ
により、読み出したデータと特定データとが一致したと
きのその読み出しを行ったアドレスは、メモリカードの
容量と対応し、したがって、例えば、製造ライン上で未
だカード属性情報を記録していないメモリカードや、ユ
ーザが誤ってカード属性情報を消去してしまったメモリ
カードであっても、容易にかつ短時間にメモリ容量を判
定可能である。
As described above, in the present invention, instead of accessing the entire memory space in the memory card, data is read from the memory area of the memory card at predetermined address intervals, and at each predetermined address interval. Set specific data that does not appear in all the read data, then read the data at every predetermined address interval of the memory area and compare with the specified data sequentially, and read when the read data and the specified data do not match Write the specific data to the address where As a result, when the read data and the specific data match, the read address corresponds to the capacity of the memory card, and therefore, for example, a memory card that has not yet recorded card attribute information on the manufacturing line. Alternatively, even if the user accidentally erases the card attribute information, the memory capacity can be easily determined in a short time.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明のメモリカードの容量判定方法の処理の
流れを示すフローチャートである。
FIG. 1 is a flowchart showing a processing flow of a memory card capacity determination method of the present invention.

【図2】メモリカードからデータを読み出す位置と特定
データを書き込み位置とについて説明するための図であ
る。
FIG. 2 is a diagram for explaining a position for reading data from a memory card and a position for writing specific data.

【図3】本発明実施例のメモリカードの容量判定装置の
概略構成を示すブロック回路図である。
FIG. 3 is a block circuit diagram showing a schematic configuration of a memory card capacity determination device according to an embodiment of the present invention.

【図4】メモリカードの内部構成を簡単に示すブロック
回路図である。
FIG. 4 is a block circuit diagram briefly showing an internal configuration of a memory card.

【図5】メモリカード内のメモリ領域の容量について説
明するための図である。
FIG. 5 is a diagram for explaining a capacity of a memory area in a memory card.

【符号の説明】[Explanation of symbols]

10 測定分解能入力手段 11 アドレス設定部 12 システムコントローラ 13 被容量判定カード 14 読み出しデータメモリ 15 D1設定部 16 書き込み/読み出し制御部 17 カード容量表示手段 18 カード容量判定回路 21 アドレス加算回路 22 アドレスリセット回路 23 アドレス生成回路 24 アドレス最大値検出回路 25 D1決定回路 26 D1記憶回路 27 D1検出回路 28 データ書き込み制御回路 29 データ読み出し制御回路 30 D1書き込み確認回路 10 measurement resolution input means 11 address setting section 12 system controller 13 capacity judgment card 14 read data memory 15 D1 setting section 16 write / read control section 17 card capacity display means 18 card capacity judgment circuit 21 address addition circuit 22 address reset circuit 23 Address generation circuit 24 Address maximum value detection circuit 25 D1 determination circuit 26 D1 storage circuit 27 D1 detection circuit 28 Data write control circuit 29 Data read control circuit 30 D1 write confirmation circuit

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 メモリカードのメモリ領域から所定のア
ドレス間隔毎にデータを読み出し、 上記所定のアドレス間隔毎に読み出した全データに出現
しない特定データを設定した後、 上記メモリ領域の所定のアドレス間隔毎にデータを読み
出して順次上記特定データと比較し、読み出したデータ
と上記特定データとが一致しないときに当該読み出しを
行ったアドレスに上記特定データを書き込み、読み出し
たデータと上記特定データとが一致したときの当該読み
出しを行ったアドレスに基づいて、メモリカードの容量
を判定することを特徴とするメモリカードの容量判定方
法。
1. A method for reading data from a memory area of a memory card at a predetermined address interval, setting specific data that does not appear in all the read data at a predetermined address interval, and then setting a predetermined address interval of the memory area. The data is read for each and sequentially compared with the specific data. When the read data and the specific data do not match, the specific data is written to the read address, and the read data and the specific data match. A method for determining the capacity of a memory card, characterized in that the capacity of the memory card is determined based on the read address at the time.
【請求項2】 上記メモリ領域から所定のアドレス間隔
毎に読み出したデータを記憶することを特徴とする請求
項1記載のメモリカードの容量判定方法。
2. The method for determining the capacity of a memory card according to claim 1, wherein the data read from the memory area at predetermined address intervals is stored.
【請求項3】 上記所定のアドレス間隔は、メモリカー
ドの最大メモリ容量に応じた全アドレスに対して割り切
れる間隔とすることを特徴とする請求項1又は2に記載
のメモリカードの容量判定方法。
3. The capacity determination method for a memory card according to claim 1, wherein the predetermined address interval is an interval that is divisible by all addresses according to the maximum memory capacity of the memory card.
【請求項4】 上記読み出しを行ったアドレスのメモリ
領域への上記特定データの書き込みが不能となったとき
に、当該アドレスに基づいてメモリカードの容量を判定
することを特徴とする請求項1から請求項3のうちのい
ずれか1項に記載のメモリカードの容量判定方法。
4. When the writing of the specific data into the memory area of the read address becomes impossible, the capacity of the memory card is determined based on the address. The memory card capacity determination method according to claim 3.
【請求項5】 所定のアドレス間隔毎にアドレス情報を
設定するアドレス設定手段と、 上記アドレス設定手段で設定した所定のアドレス間隔毎
のアドレス情報に基づいてメモリカードのメモリ領域か
らデータを読み出す読み出し手段と、 上記所定のアドレス間隔毎に上記読み出した全データに
出現しない特定データを設定する特定データ設定手段
と、 上記読み出し手段によって上記メモリ領域の所定のアド
レス間隔毎に読み出されたデータを順次上記特定データ
と比較する比較手段と、 上記比較手段での比較において上記読み出したデータと
上記特定データとが一致しないときには当該読み出しを
行ったアドレスに上記特定データを書き込む書き込み手
段と、 上記比較手段での比較において上記読み出したデータと
上記特定データとが一致したときには当該読み出しを行
ったアドレスに基づいて、メモリカードの容量を判定す
る判定手段とを有することを特徴とするメモリカードの
容量判定装置。
5. An address setting means for setting address information for each predetermined address interval, and a reading means for reading data from a memory area of a memory card based on the address information for each predetermined address interval set by the address setting means. Specific data setting means for setting specific data that does not appear in all the read data at the predetermined address intervals, and data read by the reading means at predetermined address intervals of the memory area sequentially. Comparing means for comparing with the specific data; writing means for writing the specific data to the read address when the read data and the specific data do not match in the comparison by the comparing means; In the comparison, the read data matches the specified data. When the is based on an address issued the read capacity determining apparatus for a memory card, characterized in that it comprises a determination means for determining the capacity of the memory card.
【請求項6】 上記読み出し手段によって上記メモリ領
域から所定のアドレス間隔毎に読み出したデータを記憶
する記憶手段を設けることを特徴とする請求項5記載の
メモリカードの容量判定装置。
6. The capacity determining device for a memory card according to claim 5, further comprising storage means for storing data read by the reading means from the memory area at predetermined address intervals.
【請求項7】 上記アドレス設定手段は、上記所定のア
ドレス間隔として、メモリカードの最大メモリ容量に応
じた全アドレスに対して割り切れる間隔を設定すること
を特徴とする請求項5又は6に記載のメモリカードの容
量判定装置。
7. The address setting means sets, as the predetermined address interval, an interval divisible by all addresses according to the maximum memory capacity of the memory card. Memory card capacity determination device.
【請求項8】 上記メモリ領域への上記特定データの書
き込みを確認する確認手段を設け、 上記読み出しを行ったアドレスのメモリ領域への上記特
定データの書き込みが不能であると上記確認手段が検出
したときに、上記判定手段は、当該アドレスに基づいて
メモリカードの容量を判定することを特徴とする請求項
5から請求項7のうちのいずれか1項に記載のメモリカ
ードの容量判定装置。
8. A confirming means for confirming the writing of the specific data to the memory area is provided, and the confirming means detects that the specific data cannot be written to the memory area of the read address. 8. The memory card capacity determination device according to claim 5, wherein the determination means determines the capacity of the memory card based on the address.
JP6161851A 1994-07-14 1994-07-14 Method and device for judging capacity of memory card Withdrawn JPH0830750A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6161851A JPH0830750A (en) 1994-07-14 1994-07-14 Method and device for judging capacity of memory card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6161851A JPH0830750A (en) 1994-07-14 1994-07-14 Method and device for judging capacity of memory card

Publications (1)

Publication Number Publication Date
JPH0830750A true JPH0830750A (en) 1996-02-02

Family

ID=15743158

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6161851A Withdrawn JPH0830750A (en) 1994-07-14 1994-07-14 Method and device for judging capacity of memory card

Country Status (1)

Country Link
JP (1) JPH0830750A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7143237B2 (en) 2002-08-26 2006-11-28 Kabushiki Kaisha Toshiba Memory card authentication system, memory card host device, memory card, storage area switching method, and storage area switching program
CN113297014A (en) * 2020-02-22 2021-08-24 北京希姆计算科技有限公司 Method and device for identifying capacity of memory to be tested, electronic equipment and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7143237B2 (en) 2002-08-26 2006-11-28 Kabushiki Kaisha Toshiba Memory card authentication system, memory card host device, memory card, storage area switching method, and storage area switching program
US7401183B2 (en) 2002-08-26 2008-07-15 Kabushiki Kaisha Toshiba Memory card authentication system, memory card host device, memory card, storage area switching method, and storage area switching program
US7797490B2 (en) 2002-08-26 2010-09-14 Kabushiki Kaisha Toshiba Memory card authentication system, memory card host device, memory card, storage area switching method, and storage area switching program
CN113297014A (en) * 2020-02-22 2021-08-24 北京希姆计算科技有限公司 Method and device for identifying capacity of memory to be tested, electronic equipment and storage medium
CN113297014B (en) * 2020-02-22 2024-03-08 广州希姆半导体科技有限公司 Identification method and device for memory capacity to be tested, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US8042021B2 (en) Memory card and memory controller
US7065608B2 (en) Apparatus for recording data and method for writing data to flash memory
KR970001201B1 (en) Memory card device
KR0121800B1 (en) Memory card device
JP2001243122A (en) Memory controller and flash memory system with controller and method for writing data into flash memory
US5003506A (en) Memory capacity detection apparatus and electronic applied measuring device employing the same
JP2000105725A (en) Chip enable signal generation circuit and memory device
JP3122222B2 (en) Memory card device
US5383147A (en) IC card and method of checking the memory capacity of IC card
KR20030035906A (en) Nonvolatile memory
JPH0830750A (en) Method and device for judging capacity of memory card
CN118262776A (en) LPDDR DBI function test method, device, equipment and medium
JPH10124403A (en) Writing method for block erase flash memory
US7743277B2 (en) System and method for detecting and reducing data corruption in a storage device
JPH05150913A (en) Silicon disk with flash memory as storage medium
US5479609A (en) Solid state peripheral storage device having redundent mapping memory algorithm
WO2002056183A1 (en) Semiconductor memory device and method for accessing the same
JP2513421B2 (en) Storage device
JP2972587B2 (en) How to diagnose cache memory
JPS6143387A (en) Information processing method of ic card
JPH09293014A (en) Method for recognizing memory storage capacity
JPS5922150A (en) Memory control system
JPH06131899A (en) Semiconductor storage
JPH01214948A (en) Access controller for random access memory
JPH11120800A (en) Flash memory built-in information processing system

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20011002