JPH05313989A - Memory card device - Google Patents

Memory card device

Info

Publication number
JPH05313989A
JPH05313989A JP11601792A JP11601792A JPH05313989A JP H05313989 A JPH05313989 A JP H05313989A JP 11601792 A JP11601792 A JP 11601792A JP 11601792 A JP11601792 A JP 11601792A JP H05313989 A JPH05313989 A JP H05313989A
Authority
JP
Japan
Prior art keywords
data
eeprom
write
page
unit
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.)
Pending
Application number
JP11601792A
Other languages
Japanese (ja)
Inventor
Koji Maruyama
晃司 丸山
Tomoyuki Maekawa
智之 前川
Shinpei Yoshioka
心平 吉岡
Kazuo Konishi
和夫 小西
Toshiaki Sato
聡明 佐藤
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.)
Toshiba Corp
Toshiba AVE Co Ltd
Original Assignee
Toshiba Corp
Toshiba AVE Co Ltd
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 Toshiba Corp, Toshiba AVE Co Ltd filed Critical Toshiba Corp
Priority to JP11601792A priority Critical patent/JPH05313989A/en
Priority to EP98123766A priority patent/EP0907142B1/en
Priority to KR1019930005571A priority patent/KR970001201B1/en
Priority to DE69334149T priority patent/DE69334149T2/en
Priority to EP93105535A priority patent/EP0563997A1/en
Publication of JPH05313989A publication Critical patent/JPH05313989A/en
Priority to US08/704,354 priority patent/US5745912A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System (AREA)
  • Read Only Memory (AREA)

Abstract

PURPOSE:To freely perform rewrite in unit of write data by retrieving a corresponding free recording area in unit of erasure data from the recording area of semiconductor memory, and performing the write in unit of write data. CONSTITUTION:A data input/output control circuit 14 reads out data of page unit written from an EEPROM 18 at every write of the data on the EEPROM 18, for example, in unit of page, and executes write verification to discriminate whether or not it coincides with the data recorded on buffer memory 16. The data input/output control circuit 14 performs the write on the EEPROM 18 again by transferring the data from the bufer memory 16 to the EEPROM 18 when non-coincidence is obtained between the data read out from the EEPROM 18 and the data recorded on the buffer memory 16, and the write can be completed when coincidence between the data read out from the EEPROM 18 and the data in the buffer memory 16 can be obtained while the above operation is performed for prescribed number of times.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、半導体メモリとして
EEPROM(エレクトリカリィ・イレーサブル・アン
ド・プログラマブル・リード・オンリー・メモリ)を使
用したメモリカード装置に係り、特に撮影した被写体の
光学像をデジタル画像データに変換して半導体メモリに
記録する電子スチルカメラ装置等に使用して好適するも
のに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a memory card device using an EEPROM (Electrically Erasable and Programmable Read Only Memory) as a semiconductor memory, and more particularly to a digital image of an optical image of a photographed subject. The present invention relates to a device suitable for use in an electronic still camera device or the like that converts data and records it in a semiconductor memory.

【0002】[0002]

【従来の技術】周知のように、撮影した被写体の光学像
を固体撮像素子を用いて電気的な画像信号に変換し、こ
の画像信号をデジタル画像データに変換して半導体メモ
リに記録する電子スチルカメラ装置が開発されている。
そして、この種の電子スチルカメラ装置にあっては、半
導体メモリをカード状のケースに内蔵してなるメモリカ
ードを、カメラ本体に着脱自在となるように構成するこ
とによって、通常のカメラにおけるフィルムと等価な取
り扱いができるようになされている。
2. Description of the Related Art As is well known, an electronic still which converts an optical image of a photographed object into an electric image signal by using a solid-state image pickup device, converts the image signal into digital image data, and records the digital image data in a semiconductor memory. Camera devices have been developed.
In this type of electronic still camera device, a memory card in which a semiconductor memory is built in a card-shaped case is configured to be detachable from the camera body so that it can be used as a film in a normal camera. Equivalent handling can be done.

【0003】ここで、電子スチルカメラ装置のメモリカ
ードは、現在、標準化が進められていて、内蔵される半
導体メモリとしては、複数枚のデジタル画像データを記
録するために大記憶容量のものが要求され、例えばSR
AM(スタティック・ランダム・アクセス・メモリ),
マスクROM及び電気的にデータの書き込みや消去が可
能なEEPROM等が考えられており、SRAMを用い
たメモリカードは既に商品化されている。
The memory card of the electronic still camera device is currently being standardized, and the built-in semiconductor memory is required to have a large storage capacity for recording a plurality of digital image data. For example, SR
AM (Static Random Access Memory),
A mask ROM and an EEPROM capable of electrically writing and erasing data have been considered, and a memory card using an SRAM has already been commercialized.

【0004】ところで、SRAMを用いたメモリカード
は、どのようなフォーマットのデータ構成にも対応する
ことができるとともに、データの書き込みスピード及び
読み出しスピードも速いという利点がある反面、書き込
んだデータを保持するためのバックアップ電池をメモリ
カード内に収容する必要があるため、電池収容スペース
を設置する分だけ記憶容量が削減されるとともに、SR
AM自体のコストが高く経済的な不利を招くという問題
を持っている。
By the way, the memory card using the SRAM has an advantage that it can correspond to a data structure of any format and has a high data writing speed and a high data reading speed, but holds the written data. Since it is necessary to store a backup battery in the memory card for this purpose, the storage capacity is reduced by the amount of the battery storage space and SR
There is a problem that the cost of AM itself is high and causes an economic disadvantage.

【0005】そこで、現在では、SRAMの持つ問題点
を解消するために、メモリカードに用いられる半導体メ
モリとしてEEPROMが注目されている。このEEP
ROMは、磁気ディスクに代わる記録媒体として注目を
浴びているもので、データ保持のためのバックアップ電
池が不要であるとともに、チップ自体のコストを安くす
ることができる等、SRAMの持たない特有な利点を有
することから、メモリカード用として使用するための開
発が盛んに行なわれている。
Therefore, in order to solve the problems of the SRAM, the EEPROM is now attracting attention as a semiconductor memory used for a memory card. This EEP
The ROM has been attracting attention as a recording medium that replaces the magnetic disk, and it does not require a backup battery for holding data and can reduce the cost of the chip itself, which is a unique advantage that SRAM does not have. Therefore, development for use as a memory card has been actively carried out.

【0006】ここで、図4は、SRAMを用いたメモリ
カード(SRAMカード)とEEPROMを用いたメモ
リカード(EEPROMカード)との長短を比較して示
している。まず、比較項目1,2のバックアップ電池及
びコストについては、既に前述したように、SRAMカ
ードはバックアップ電池が必要でありコストも高いとい
う問題があるのに対し、EEPROMカードはバックア
ップ電池が不要でコストも低くすることができるという
利点を有している。
Here, FIG. 4 shows a comparison between the length of a memory card using SRAM (SRAM card) and the length of a memory card using EEPROM (EEPROM card). First, regarding the backup battery and the cost of the comparison items 1 and 2, the SRAM card needs the backup battery and the cost is high as described above, while the EEPROM card does not need the backup battery and the cost is high. Also has the advantage that it can be lowered.

【0007】次に、比較項目3,4の書き込みスピード
及び読み出しスピードについては、アドレスで任意に指
定したバイトまたはビットに対して、データの書き込み
及び読み出しを行なう、SRAMとEEPROMとに共
通のランダムアクセスモードと、複数の連続するバイト
(数百バイト)でなるページを指定することにより、ペ
ージ単位で一括してデータの書き込み及び読み出しを行
なう、EEPROMに特有のページモードとに分けて考
えられる。
Regarding the write speed and read speed of comparison items 3 and 4, random access common to SRAM and EEPROM is performed for writing and reading data to or from a byte or bit arbitrarily designated by an address. A mode and a page mode peculiar to the EEPROM, in which data is written and read collectively in page units by designating a page made up of a plurality of consecutive bytes (several hundred bytes), can be considered.

【0008】そして、ランダムアクセスモードにおい
て、SRAMは書き込みスピード及び読み出しスピード
が共に速く、EEPROMは書き込みスピード及び読み
出しスピードが共に遅くなっている。また、EEPRO
Mは、ページモードにおいて、1ページ分の大量のデー
タを一斉に書き込み及び読み出しすることから、ランダ
ムアクセスモードに比してデータの書き込みスピード及
び読み出しスピードは速くなっている。
In the random access mode, the SRAM has both a high writing speed and a high reading speed, and the EEPROM has a low writing speed and a low reading speed. Also, EEPRO
In the page mode, the M simultaneously writes and reads a large amount of data for one page, so the data writing speed and the data reading speed are faster than in the random access mode.

【0009】さらに、比較項目5のイレース(消去)モ
ードは、EEPROMに特有のモードであり、SRAM
には存在しないモードである。すなわち、EEPROM
は、既にデータの書き込まれている領域に新たにデータ
を書き込む場合、先に書き込まれているデータを一旦イ
レースしないと新たなデータを書き込むことができない
ため、データの書き込みを行なうに際して、このイレー
スモードが実行されるようになっている。そして、この
イレースモードには、EEPROMに記録された全ての
データを一括して消去する一括イレースと、複数の連続
するページでなるブロックを指定することにより、ブロ
ック単位でデータを消去するブロックイレースとがあ
る。
Further, the erase (erase) mode of the comparison item 5 is a mode peculiar to the EEPROM, which is the SRAM.
Is a mode that does not exist in. That is, the EEPROM
When writing new data to the area where data has already been written, new data cannot be written unless the previously written data is erased. Therefore, when writing data, this erase mode Is to be executed. In this erase mode, there are a batch erase that erases all the data recorded in the EEPROM at once, and a block erase that erases data in block units by designating a block composed of a plurality of continuous pages. There is.

【0010】また、比較項目6の書き込みベリファイ
も、EEPROMに特有のモードであり、SRAMには
存在しないモードである。すなわち、EEPROMは、
データ書き込みを行なう場合、通常1回の書き込み動作
では完全な書き込みが行なわれない。このため、EEP
ROMに対して1回の書き込み動作を行なう毎にEEP
ROMの書き込み内容を読み出し、正確に書き込まれて
いるか否かをチェックする必要があり、これが書き込み
ベリファイである。
Further, the write verify of the comparison item 6 is also a mode peculiar to the EEPROM and is not present in the SRAM. That is, the EEPROM is
When writing data, complete writing is not normally performed in one writing operation. Therefore, EEP
EEP every time one write operation is performed to ROM
It is necessary to read the written contents of the ROM and check whether or not they are correctly written, and this is the write verify.

【0011】具体的には、EEPROMに書き込むべき
データをバッファメモリに記録しておき、バッファメモ
リからEEPROMにデータを転送して書き込んだ後、
EEPROMの書き込み内容を読み出し、バッファメモ
リの内容と比較して一致しているか否かを判別してい
る。そして、書き込みベリファイの結果、不一致(エラ
ー)と判定された場合には、再度バッファメモリの内容
をEEPROMに書き込む動作を繰り返すようにしてい
る。
Specifically, the data to be written in the EEPROM is recorded in the buffer memory, the data is transferred from the buffer memory to the EEPROM and written, and then,
The contents written in the EEPROM are read out and compared with the contents in the buffer memory to determine whether they match. Then, when it is determined as a result of the write verify that there is a mismatch (error), the operation of writing the contents of the buffer memory to the EEPROM again is repeated.

【0012】以上の比較結果から明らかなように、EE
PROMには、バックアップ電池が不要でありコストが
安く、しかもページ単位のデータ書き込み及び読み出し
が可能である等の、SRAMに見られない特有な利点が
備えられている反面、ランダムアクセスモードにおける
データの書き込みスピード及び読み出しスピードが遅い
とともに、イレースモードや書き込みベリファイ等のよ
うなSRAMにはないモードを必要とするという不都合
もある。
As is clear from the above comparison results, EE
The PROM does not require a backup battery, is low in cost, and is capable of writing and reading data in page units. It has unique advantages not found in SRAM, but on the other hand, it does not store data in the random access mode. There is also a disadvantage that the writing speed and the reading speed are slow and that a mode such as an erase mode and a write verify which is not in the SRAM is required.

【0013】そこで、メモリカードに使用する半導体メ
モリとして、現在使用されているSRAMに代えてEE
PROMを使用することを考えた場合、データの書き込
みスピード及び読み出しスピードの問題や、イレースモ
ード及び書き込みベリファイ等を必要とするという問題
を解消し、SRAMを内蔵したメモリカードと等価な取
り扱い方ができるように、つまりSRAMカードライク
に使用できるように細部に渡って種々の改良を施すこと
が、肝要なこととなっている。
Therefore, as the semiconductor memory used for the memory card, the EE is used instead of the currently used SRAM.
Considering the use of PROM, the problems of data write speed and read speed, the problem of needing erase mode and write verify, etc. can be solved, and it can be handled in the same manner as a memory card with built-in SRAM. As described above, that is, it is important to make various improvements in detail so that it can be used in an SRAM card-like manner.

【0014】この場合、特に問題となることは、EEP
ROMは、データの消去がブロック単位で行なわれ、デ
ータの書き込みがページ単位で行なわれる、つまり、消
去データ単位が書き込みデータ単位の数倍あるため、E
EPROMに既に記録されているデータを新たなデータ
に書き替える場合に、書き込みデータ単位でデータを書
き替えることが困難になるということである。
In this case, the EEP is particularly problematic.
In the ROM, data is erased in block units and data is written in page units, that is, the erase data unit is several times as large as the write data unit.
This means that when rewriting the data already recorded in the EPROM with new data, it becomes difficult to rewrite the data in write data units.

【0015】例えば1ページ分のデータを書き替える動
作は、従来では、図5に示すフローチャートのように行
なわれる。まず、開始されると(ステップS1)、ステ
ップS2でブロック単位の消去が行なわれ、次に、ステ
ップS3で1ページ分のデータ書き込みが行なわれる。
その後、ステップS4で、所定回のベリファイの後、正
しくデータが書き込まれたか否かが判別され、正しく書
き込まれていれば(YES)終了(ステップS5)さ
れ、正しく書き込まれていなければ(NO)、ステップ
S6でそのページを書き込み不良ページと判断して、デ
ータを他の空きページに書き込んで救済する不良救済処
理が行なわれる。
For example, the operation of rewriting data for one page is conventionally performed as shown in the flowchart of FIG. First, when it is started (step S1), block-based erasing is performed in step S2, and then data writing for one page is performed in step S3.
After that, in step S4, it is determined whether or not the data is correctly written after the predetermined number of verifications. If the data is correctly written (YES), the process ends (step S5), and if the data is not correctly written (NO). In step S6, the page is determined to be a defective page, and a defective relief process is performed to write the data to another empty page for relief.

【0016】しかしながら、上記のような従来のデータ
書き替え動作では、図6(a)に示すように、1ブロッ
クが2ページで構成され、3ブロックの各ページにそれ
ぞれデータA,B,C,D,E,Fが記録されている状
態で、データAをデータZに書き替えようとした場合、
同図(b)に示すようにデータAの記録領域を含む1ブ
ロックが全て消去された後、データAの記録領域にデー
タZが書き込まれるので、同図(c)に示すように無関
係のデータBまでもが消去されてしまうという問題が生
じる。
However, in the conventional data rewriting operation as described above, as shown in FIG. 6A, one block is composed of two pages, and the data A, B, C, and When attempting to rewrite data A into data Z while D, E, and F are recorded,
As shown in FIG. 3B, since one block including the data A recording area is completely erased, the data Z is written in the data A recording area, so that irrelevant data as shown in FIG. There is a problem that even B is erased.

【0017】[0017]

【発明が解決しようとする課題】以上のように、EEP
ROMを内蔵した従来のメモリカードでは、消去データ
単位と書き込みデータ単位とが異なるため、書き込みデ
ータ単位で自由にデータを書き替えることが困難になる
という問題を有している。
DISCLOSURE OF THE INVENTION Problems to be Solved by the Invention
A conventional memory card having a built-in ROM has a problem that it is difficult to freely rewrite data in write data units because the erase data unit and the write data unit are different.

【0018】そこで、この発明は上記事情を考慮してな
されたもので、消去データ単位と書き込みデータ単位と
が異なっていても、書き込みデータ単位で自由にデータ
を書き替えることが可能である極めて良好なメモリカー
ド装置を提供することを目的とする。
Therefore, the present invention has been made in consideration of the above circumstances, and it is extremely preferable that the data can be freely rewritten in the write data unit even if the erase data unit and the write data unit are different. It is an object of the present invention to provide a simple memory card device.

【0019】[0019]

【課題を解決するための手段】この発明に係るメモリカ
ード装置は、消去データ単位が書き込みデータ単位より
も大きく、データ書き替え時に、データ書き込み領域を
消去してからデータ書き込みを行なう半導体メモリを内
蔵したものを対象としている。そして、データ書き替え
が要求された状態で、半導体メモリの記録領域中から消
去データ単位に相当する空き記録領域を検索し、書き込
むべき第1のデータと、書き替えられる第2のデータの
記録領域を含む消去データ単位の記録領域に存在する書
き替えない第3のデータとを、空き記憶領域に書き込み
データ単位で書き込むように構成したものである。
A memory card device according to the present invention has a built-in semiconductor memory in which an erase data unit is larger than a write data unit and, when data is rewritten, a data write area is erased and then data is written. It is intended for those who have done. Then, in the state where the data rewriting is requested, a free recording area corresponding to the erase data unit is searched from the recording area of the semiconductor memory, and the recording area of the first data to be written and the second data to be rewritten The non-rewritable third data existing in the recording area of the erasing data unit including the data is written in the free storage area in the writing data unit.

【0020】[0020]

【作用】上記のような構成によれば、データ書き替えが
要求された状態で、半導体メモリの記録領域中から消去
データ単位に相当する空き記録領域を検索し、書き込む
べき第1のデータと、書き替えられる第2のデータの記
録領域を含む消去データ単位の記録領域に存在する書き
替えない第3のデータとを、該空き記憶領域に書き込み
データ単位で書き込むようにしたので、消去データ単位
と書き込みデータ単位とが異なっていても、書き替えな
い第3のデータが不要に消去されることなく、書き込み
データ単位で自由にデータを書き替えることができる。
According to the above configuration, in a state where data rewriting is requested, a free recording area corresponding to an erase data unit is searched from the recording area of the semiconductor memory, and the first data to be written, Since the non-rewritable third data existing in the erase data unit recording area including the rewritable second data recording area is written in the empty storage area in the write data unit, Even if the write data unit is different, the data can be freely rewritten in the write data unit without unnecessary erasure of the third data that is not rewritten.

【0021】[0021]

【実施例】以下、この発明を電子スチルカメラ装置に適
用した場合の一実施例について図面を参照して詳細に説
明する。図1において、11はメモリカード本体で、そ
の一端部に設置されたコネクタ12を介して、図示しな
い電子スチルカメラ本体に接続されるようになされてい
る。このコネクタ12には、電子スチルカメラ本体側か
ら、メモリカード本体11に書き込むべきデータや、そ
の書き込み場所を示すアドレスデータ等が供給される。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment in which the present invention is applied to an electronic still camera device will be described in detail below with reference to the drawings. In FIG. 1, 11 is a memory card main body, which is connected to an electronic still camera main body (not shown) via a connector 12 installed at one end thereof. The connector 12 is supplied with data to be written in the memory card body 11 and address data indicating the writing location from the electronic still camera body side.

【0022】そして、このコネクタ12に供給されたデ
ータは、バスライン13を介してデータ入出力制御回路
14に取り込まれる。このデータ入出力制御回路14
は、バスライン15を介してデータの高速書き込み及び
高速読み出しが可能なバッファメモリ16に接続されて
おり、取り込んだデータを一旦バッファメモリ16に記
録する。その後、データ入出力制御回路14は、バッフ
ァメモリ16に記録したデータを読み取り、バスライン
17を介して複数(図示の場合は4つ)のEEPROM
18の書き込みサイクルに対応したタイミングで出力
し、EEPROM18に記録する。
The data supplied to the connector 12 is taken into the data input / output control circuit 14 via the bus line 13. This data input / output control circuit 14
Is connected to a buffer memory 16 capable of high-speed writing and high-speed reading of data via a bus line 15, and the taken-in data is temporarily recorded in the buffer memory 16. Thereafter, the data input / output control circuit 14 reads the data recorded in the buffer memory 16, and a plurality of (four in the illustrated case) EEPROMs are read via the bus line 17.
It is output at a timing corresponding to the write cycle of 18 and is recorded in the EEPROM 18.

【0023】この場合、データ入出力制御回路14は、
EEPROM18に例えばページ単位でデータが書き込
まれる毎に、EEPROM18から書き込んだページ単
位のデータを読み出し、バッファメモリ16に記録され
ているデータと一致しているか否かを判別する書き込み
ベリファイを実行する。そして、データ入出力制御回路
14は、EEPROM18から読み出したデータと、バ
ッファメモリ16に記録されたデータとが一致していな
い場合、再度、バッファメモリ16からEEPROM1
8にデータを転送して書き込みを行なわせ、この動作が
所定回数繰り返される間に、EEPROM18から読み
出したデータとバッファメモリ16に記録されたデータ
とが完全に一致したとき、データの書き込みが完了され
る。
In this case, the data input / output control circuit 14 is
Every time data is written in the EEPROM 18, for example, in page units, the written page data is read from the EEPROM 18, and write verify is performed to determine whether or not the data matches the data recorded in the buffer memory 16. Then, when the data read from the EEPROM 18 and the data recorded in the buffer memory 16 do not match, the data input / output control circuit 14 causes the buffer memory 16 to read the EEPROM 1 again.
When the data read from the EEPROM 18 and the data recorded in the buffer memory 16 are completely matched while this operation is repeated a predetermined number of times, the data writing is completed. It

【0024】次に、EEPROM18から、データをメ
モリカード本体11の外部に読み出す場合には、電子ス
チルカメラ本体側からコネクタ12を介して読み出すべ
きデータを指定するアドレスがデータ入出力制御回路1
4に供給される。すると、データ入出力制御回路14
は、入力されたアドレスに基づいてEEPROM18か
らデータを読み出し、一旦バッファメモリ16に記録す
る。その後、データ入出力制御回路14は、バッファメ
モリ16に記録したデータを読み出しコネクタ12を介
して外部に導出し、ここにデータの読み出しが行なわれ
る。
Next, when the data is read from the EEPROM 18 to the outside of the memory card main body 11, the address designating the data to be read from the electronic still camera main body side via the connector 12 is the data input / output control circuit 1.
4 is supplied. Then, the data input / output control circuit 14
Reads data from the EEPROM 18 based on the input address and temporarily records the data in the buffer memory 16. After that, the data input / output control circuit 14 leads the data recorded in the buffer memory 16 to the outside through the read connector 12, and the data is read there.

【0025】したがって、上記のような構成によれば、
電子スチルカメラ本体とメモリカード本体11との間に
おけるデータ転送は、必ずバッファメモリ16を介して
行なわれるので、電子スチルカメラ本体側から見たメモ
リカード本体11へのデータの書き込みスピード及び読
み出しスピードを向上させることができる。また、EE
PROM18に特有の書き込みベリファイも、バッファ
メモリ16を用いてメモリカード本体11の内部で自動
的に処理されるので、メモリカード本体11の取り扱い
としては、全くSRAMカードライクに使用することが
できる。
Therefore, according to the above configuration,
Since data transfer between the electronic still camera body and the memory card body 11 is always performed via the buffer memory 16, the speed of writing and reading data to and from the memory card body 11 as seen from the electronic still camera body side can be improved. Can be improved. Also, EE
The write verify unique to the PROM 18 is also automatically processed inside the memory card main body 11 by using the buffer memory 16, so that the memory card main body 11 can be used just like an SRAM card.

【0026】ここで、図2は、1ページ分のデータを書
き替える動作のフローチャートを示している。まず、開
始されると(ステップS7)、データ入出力制御回路1
4は、ステップS8で、EEPROM18内の消去され
た空きブロック(以下置換先ブロックという)を検索
し、ステップS9で、その置換先ブロックの1ページに
書き替えるべき新たなデータを書き込む。次に、データ
入出力制御回路14は、ステップS10で、所定回のベ
リファイの後、正しくデータが書き込まれたか否かを判
別し、正しく書き込まれていなければ(NO)、そのペ
ージを書き込み不良ページと判断して、ステップS8の
処理に戻されて他の置換先ブロックの検索を実行する。
Here, FIG. 2 shows a flowchart of the operation of rewriting data for one page. First, when started (step S7), the data input / output control circuit 1
In step S8, the erased empty block (hereinafter referred to as a replacement block) in the EEPROM 18 is searched in step S8, and new data to be rewritten is written in one page of the replacement block in step S9. Next, in step S10, the data input / output control circuit 14 determines whether or not the data is correctly written after the predetermined number of verifications, and if the data is not correctly written (NO), the page is written as a defective page. Then, the process returns to step S8 to search for another replacement block.

【0027】また、ステップS10で正しく書き込まれ
た(YES)と判断された場合、データ入出力制御回路
14は、ステップS11で、データ書き替えが要求され
たページを含むブロック(以下置換元ブロックという)
内に、データ書き替えが要求されたページ以外にデータ
の記録されたページがあるか否かを判別し、ある場合
(YES)、ステップS12で、そのページのデータを
読み出してステップS9の処理に戻され、読み出したデ
ータを検索した置換先ブロックの他のページに書き込
み、ない場合(NO)、終了(ステップS13)され
る。
If it is determined in step S10 that the data has been correctly written (YES), the data input / output control circuit 14 determines in step S11 the block including the page for which data rewriting is requested (hereinafter referred to as the replacement source block). )
It is determined whether or not there is a page in which data is recorded in addition to the page for which data rewriting is requested, and if there is (YES), in step S12, the data of that page is read and the process of step S9 is performed. The returned data is written into the other page of the retrieved replacement block and the read data is not written (NO), and the process ends (step S13).

【0028】具体的に言えば、図3(a)に示すよう
に、1ブロックが2ページで構成され、3ブロックの各
ページにそれぞれデータA,B,C,D,E,Fが記録
されている状態で、データAをデータZに書き替えよう
とした場合、データ入出力制御回路14は、EEPRO
M18内の置換先ブロックを検索し、同図(b)に示す
ように、その置換先ブロックの1ページに書き替えるべ
き新たなデータZを書き込む。その後、データ入出力制
御回路14は、データZが正しく書き込まれたことを判
断した状態で、置換元ブロック内にデータ書き替えが要
求されたページ以外にデータの記録されたページがある
か否かを判別し、この場合データBの記録されたページ
があるので、そのページからデータBを読み出して、置
換先ブロックの他のページに書き込む。そして、データ
入出力制御回路14は、電子スチルカメラ本体側から置
換元ブロックのアドレスつまりデータA,Bの記録され
ていたブロックのアドレスが指定された場合、置換先の
ブロックの対応するアドレスを指定するように、例えば
内部レジスタ等に記録を残し、ここに、データAからデ
ータZへの書き替えが完了される。
Specifically, as shown in FIG. 3A, one block consists of two pages, and data A, B, C, D, E, and F are recorded on each page of the three blocks. When it is attempted to rewrite the data A into the data Z while the data is input, the data input / output control circuit 14 causes the EEPRO
The replacement block in M18 is searched, and new data Z to be rewritten is written in one page of the replacement block as shown in FIG. After that, the data input / output control circuit 14 determines whether or not there is a page in which data is recorded in the replacement source block other than the page for which data rewriting is requested, in a state where it is determined that the data Z has been correctly written. In this case, since there is a page in which the data B is recorded, the data B is read from that page and written in another page of the replacement destination block. Then, when the address of the replacement source block, that is, the address of the block in which the data A and B are recorded, is specified from the electronic still camera body side, the data input / output control circuit 14 specifies the corresponding address of the replacement destination block. Thus, for example, the recording is left in the internal register or the like, and the rewriting from the data A to the data Z is completed here.

【0029】したがって、上記実施例のような構成によ
れば、データ書き込み可能な置換先ブロックを検索し、
その1ページに新データZを書き込んだ後、置換元ブロ
ックのデータBを置換先ブロックの他のページに書き込
むとともに、外部から見た場合、置換元ブロックのアド
レスが置換先のブロックのアドレスに対応するようにし
たので、従来のように置換元ブロックのデータBが不要
に消去されることなく、データAを新データZに書き替
えることができる。
Therefore, according to the configuration of the above embodiment, the data writable replacement block is searched,
After writing the new data Z to that page, the data B of the replacement source block is written to another page of the replacement destination block, and when viewed from the outside, the address of the replacement source block corresponds to the address of the replacement destination block. Since this is done, the data A of the replacement source block can be rewritten to the new data Z without being unnecessarily erased as in the conventional case.

【0030】また、上記実施例では、置換元ブロックの
データA,Bを残したままにしたが、この置換元ブロッ
クは、ブロック単位の消去を行なうことにより、次のデ
ータの書き込みに供させることができる。さらに、置換
元ブロックをブロック単位で消去した後、置換先ブロッ
クのデータZ,Bを置換元ブロックに移し変えるように
すれば、EEPROM18のメモリマップ上もデータA
をデータZに書き替えた形態となり、置換元ブロックの
アドレスと置換先のブロックのアドレスとを対応させる
必要もなくなって便利である。また、予め所定量の空き
ブロックを置換先ブロックとしてEEPROM18内に
設定しておくこともできる。なお、この発明は上記実施
例に限定されるものではなく、この外その要旨を逸脱し
ない範囲で種々変形して実施することができる。
Further, in the above embodiment, the data A and B of the replacement source block are left as they are, but the replacement source block is used for writing the next data by erasing in block units. You can Furthermore, after the replacement source block is erased in block units, if the data Z and B of the replacement destination block are moved to the replacement source block, the data A is also displayed on the memory map of the EEPROM 18.
Is replaced with the data Z, which is convenient because there is no need to associate the address of the replacement source block with the address of the replacement destination block. It is also possible to set a predetermined amount of empty blocks in the EEPROM 18 as replacement blocks in advance. The present invention is not limited to the above-described embodiments, but can be variously modified and implemented without departing from the scope of the invention.

【0031】[0031]

【発明の効果】以上詳述したようにこの発明によれば、
消去データ単位と書き込みデータ単位とが異なっていて
も、書き込みデータ単位で自由にデータを書き替えるこ
とが可能である極めて良好なメモリカード装置を提供す
ることができる。
As described in detail above, according to the present invention,
Even if the erase data unit and the write data unit are different, it is possible to provide a very good memory card device in which the data can be freely rewritten in the write data unit.

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

【図1】この発明に係るメモリカード装置の一実施例を
示すブロック構成図。
FIG. 1 is a block diagram showing an embodiment of a memory card device according to the present invention.

【図2】同実施例の動作を説明するために示すフローチ
ャート。
FIG. 2 is a flowchart shown to explain the operation of the embodiment.

【図3】同実施例の動作を具体的に説明するために示す
図。
FIG. 3 is a diagram specifically shown for explaining the operation of the embodiment.

【図4】SRAMカードとEEPROMカードとの長短
を比較して示す図。
FIG. 4 is a diagram showing the lengths of an SRAM card and an EEPROM card in comparison.

【図5】従来のデータ書き替え動作を説明するために示
すフローチャート。
FIG. 5 is a flowchart shown to explain a conventional data rewriting operation.

【図6】従来のデータ書き替え動作の問題点を説明する
ために示す図。
FIG. 6 is a diagram shown for explaining a problem of a conventional data rewriting operation.

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

11…メモリカード本体、12…コネクタ、13…バス
ライン、14…データ入出力制御回路、15…バスライ
ン、16…バッファメモリ、17…バスライン、18…
EEPROM。
11 ... Memory card main body, 12 ... Connector, 13 ... Bus line, 14 ... Data input / output control circuit, 15 ... Bus line, 16 ... Buffer memory, 17 ... Bus line, 18 ...
EEPROM.

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.5 識別記号 庁内整理番号 FI 技術表示箇所 G11C 16/06 (72)発明者 吉岡 心平 神奈川県横浜市磯子区新杉田町8番地 株 式会社東芝映像メディア技術研究所内 (72)発明者 小西 和夫 神奈川県横浜市磯子区新杉田町8番地 株 式会社東芝映像メディア技術研究所内 (72)発明者 佐藤 聡明 東京都港区新橋3丁目3番9号 東芝エ ー・ブイ・イー株式会社内─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 5 Identification number Internal reference number FI Technical display location G11C 16/06 (72) Inventor Shinpei Yoshioka 8 Shinsita-cho, Isogo-ku, Yokohama-shi, Kanagawa Stock company Toshiba Corporation Video Media Technology Laboratory (72) Inventor Kazuo Konishi 8 Shinsita-cho, Isogo-ku, Yokohama, Kanagawa Prefecture Stock Company Toshiba Media Media Technology Laboratory (72) Inventor Satoshi Sato 3-3-9 Shimbashi, Minato-ku, Tokyo Toshiba Abu E Co., Ltd.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 消去データ単位が書き込みデータ単位よ
りも大きく、データ書き替え時に、データ書き込み領域
を消去してからデータ書き込みを行なう半導体メモリを
内蔵したメモリカード装置において、前記データ書き替
えが要求された状態で、前記半導体メモリの記録領域中
から前記消去データ単位に相当する空き記録領域を検索
し、書き込むべき第1のデータと、書き替えられる第2
のデータの記録領域を含む前記消去データ単位の記録領
域に存在する書き替えない第3のデータとを、前記空き
記憶領域に書き込みデータ単位で書き込むように構成し
てなることを特徴とするメモリカード装置。
1. An erase data unit is larger than a write data unit, and when rewriting data, in a memory card device having a built-in semiconductor memory that erases a data writing area and then writes data, the data rewriting is required. In this state, a free recording area corresponding to the erase data unit is searched from the recording area of the semiconductor memory, and the first data to be written and the second data to be rewritten
And a third data which is not rewritten and exists in the recording area of the erasing data unit including the recording area of the data of (1) to the free storage area in the unit of write data. apparatus.
JP11601792A 1992-04-02 1992-05-08 Memory card device Pending JPH05313989A (en)

Priority Applications (6)

Application Number Priority Date Filing Date Title
JP11601792A JPH05313989A (en) 1992-05-08 1992-05-08 Memory card device
EP98123766A EP0907142B1 (en) 1992-04-02 1993-04-02 Memory card apparatus
KR1019930005571A KR970001201B1 (en) 1992-04-02 1993-04-02 Memory card device
DE69334149T DE69334149T2 (en) 1992-04-02 1993-04-02 memory card
EP93105535A EP0563997A1 (en) 1992-04-02 1993-04-02 Memory card apparatus
US08/704,354 US5745912A (en) 1992-04-02 1996-08-28 Memory card apparatus including a link table for managing the correspondency between the recorded contents in the memory card and that in the link table

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11601792A JPH05313989A (en) 1992-05-08 1992-05-08 Memory card device

Publications (1)

Publication Number Publication Date
JPH05313989A true JPH05313989A (en) 1993-11-26

Family

ID=14676744

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11601792A Pending JPH05313989A (en) 1992-04-02 1992-05-08 Memory card device

Country Status (1)

Country Link
JP (1) JPH05313989A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004021191A1 (en) * 2002-08-29 2004-03-11 Matsushita Electric Industrial Co., Ltd. Semiconductor memory device and method for writing data into flash memory
JP2012198953A (en) * 2011-03-18 2012-10-18 Toshiba Corp Nonvolatile semiconductor memory

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02292798A (en) * 1989-04-13 1990-12-04 Sundisk Corp Flash eeprom system
JPH0314272A (en) * 1989-06-13 1991-01-22 Mitsubishi Electric Corp Nonvolatile semiconductor storage device
JPH04137077A (en) * 1990-09-28 1992-05-12 Fuji Photo Film Co Ltd Data recording method and memory card system for memory card
JPH05216780A (en) * 1992-02-05 1993-08-27 Seiko Instr Inc Method for reloading flash eeprom memory card

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02292798A (en) * 1989-04-13 1990-12-04 Sundisk Corp Flash eeprom system
JPH0314272A (en) * 1989-06-13 1991-01-22 Mitsubishi Electric Corp Nonvolatile semiconductor storage device
JPH04137077A (en) * 1990-09-28 1992-05-12 Fuji Photo Film Co Ltd Data recording method and memory card system for memory card
JPH05216780A (en) * 1992-02-05 1993-08-27 Seiko Instr Inc Method for reloading flash eeprom memory card

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004021191A1 (en) * 2002-08-29 2004-03-11 Matsushita Electric Industrial Co., Ltd. Semiconductor memory device and method for writing data into flash memory
CN100347685C (en) * 2002-08-29 2007-11-07 松下电器产业株式会社 Semiconductor memory device and method for writing data into flash memory
KR100944054B1 (en) * 2002-08-29 2010-02-24 파나소닉 주식회사 Semiconductor memory device and method for writing data into flash memory
USRE42648E1 (en) 2002-08-29 2011-08-23 Panasonic Corporation Semiconductor memory apparatus and method for writing data into the flash memory device
JP2012198953A (en) * 2011-03-18 2012-10-18 Toshiba Corp Nonvolatile semiconductor memory

Similar Documents

Publication Publication Date Title
KR100193779B1 (en) Semiconductor disk device
EP0907142B1 (en) Memory card apparatus
KR100987241B1 (en) Memory Device and Recording/Reproducing Apparatus Using the Same
US6161195A (en) EEPROM memory card device having defect relieving means
US5483491A (en) Memory card device
US5724544A (en) IC memory card utilizing dual eeproms for image and management data
JP3122222B2 (en) Memory card device
JPH04307644A (en) Memory card storage control system
US20080294837A1 (en) Memory controller for controlling a non-volatile semiconductor memory and memory system
JP3117244B2 (en) EEPROM control device
JPH0546490A (en) Memory card device
JPH05313989A (en) Memory card device
JPH0546488A (en) Memory card device
JP3163124B2 (en) Electronic still camera device
JPH05150913A (en) Silicon disk with flash memory as storage medium
JP3099908B2 (en) EEPROM control device
JPH06139138A (en) Memory card device
JPH04313882A (en) Record control system for memory card
JPH06139131A (en) Memory card device
JPH0756780A (en) Memory card device
JPH05151099A (en) Memory card device
JP3359942B2 (en) Memory card device
JPH0547189A (en) Memory card device
JPH04307647A (en) Memory card storage control system
JPH0546469A (en) Memory card