JPH0546490A - Memory card device - Google Patents

Memory card device

Info

Publication number
JPH0546490A
JPH0546490A JP20070591A JP20070591A JPH0546490A JP H0546490 A JPH0546490 A JP H0546490A JP 20070591 A JP20070591 A JP 20070591A JP 20070591 A JP20070591 A JP 20070591A JP H0546490 A JPH0546490 A JP H0546490A
Authority
JP
Japan
Prior art keywords
data
page
error
address
eeprom
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
JP20070591A
Other languages
Japanese (ja)
Inventor
Takaaki Suyama
高彰 須山
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 JP20070591A priority Critical patent/JPH0546490A/en
Priority to DE69223099T priority patent/DE69223099T2/en
Priority to EP92113423A priority patent/EP0528280B1/en
Priority to EP96120115A priority patent/EP0772358A1/en
Publication of JPH0546490A publication Critical patent/JPH0546490A/en
Priority to US08/505,369 priority patent/US5579502A/en
Pending legal-status Critical Current

Links

Landscapes

  • Read Only Memory (AREA)
  • For Increasing The Reliability Of Semiconductor Memories (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

PURPOSE:To unnecessitate securing an address table area by providing an error flag write means, a data write substitute means, an address write means, and a data read means. CONSTITUTION:The memory card is provided with an EEPROM 17, error detection means, error flag write means, and data write means. It also provided with an address write means writing a substitute destination address to be replaced by the data substitute means on a page with an error and a data read means 16 discriminating an error generated page while referring to an error flag area, discriminating a substitute destination address by reading a byte data on the page, and reading data from the substitute page based on the discriminated address. Especially, the address write means writes the substitute destination address on a plurality of bytes in the error generated page, and the data read means 16 reads data from a plurality of bytes on the error generated page, discriminating the substitute destination address by adopting the decision by majority.

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. The built-in semiconductor memory is required to have a large storage capacity for recording a plurality of pieces of digital image data.
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を用いたメモリカード
は、どのようなフォーマットのデータ構成にも対応する
ことができるとともに、データの書き込みスピード及び
読み出しスピードも速いという利点がある。反面、書き
込んだデータを保持するためのバックアップ電池をメモ
リカード内に収容する必要があるため、電池収容スペー
スを設置する分だけ記憶容量が削減されるとともに、S
RAM自体のコストが高く経済的な不利を招くという問
題を持っている。
By the way, the memory card using the SRAM has an advantage that it can correspond to a data structure of any format and that the data writing speed and the data reading speed are fast. On the other hand, since a backup battery for holding the written data needs to be housed in the memory card, the storage capacity is reduced as much as the battery housing space is installed, and S
There is a problem that the cost of the RAM itself is high and causes an economical disadvantage.

【0005】そこで、現在では、SRAMの持つ問題点
を解消する半導体メモリとしてEEPROMが注目され
ている。このEEPROMは磁気ディスクに代わる記録
媒体として有望視されている。特に、データ保持のため
のバックアップ電池が不要であるとともに、チップ自体
のコストを安くすることができる等、SRAMの持たな
い特有な利点を有する。このことから、メモリカード用
として使用するための開発が盛んに行なわれている。図
4に、SRAMを用いたメモリカード(SRAMカー
ド)とEEPROMを用いたメモリカード(EEPRO
Mカード)との長短を比較して示す。
Therefore, at present, an EEPROM is attracting attention as a semiconductor memory that solves the problems of the SRAM. This EEPROM is promising as a recording medium that replaces the magnetic disk. In particular, it has a unique advantage that the SRAM does not have, such as a backup battery for holding data is not required and the cost of the chip itself can be reduced. For this reason, development for use as a memory card has been actively conducted. FIG. 4 shows a memory card using SRAM (SRAM card) and a memory card using EEPROM (EEPRO).
(M card) is shown in comparison with the length.

【0006】まず、比較項目1,2のバックアップ電池
及びコストについては、既に前述したように、SRAM
カードはバックアップ電池が必要で、大容量化が困難で
あり、しかもコストも高いという問題を有している。こ
れに対し、EEPROMカードはバックアップ電池が不
要で、大容量化が容易であり、コストも低くすることが
できるという利点を有している。
First, regarding the backup battery and the cost of the comparison items 1 and 2, as described above, the SRAM
The card requires a backup battery, has a problem that it is difficult to increase the capacity and the cost is high. On the other hand, the EEPROM card has an advantage that a backup battery is unnecessary, the capacity can be easily increased, and the cost can be reduced.

【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は書き込みスピード及び読み出しスピード
が共に遅くなっている。また、ページモードにおいて、
EEPROMは1ページ分の大量のデータを一斉に書き
込み及び読み出しすることから、ランダムアクセスモー
ドに比してデータの書き込みスピード及び読み出しスピ
ードは速くなっている。
In the random access mode, SRAM
Both writing speed and reading speed are fast,
The writing speed and the reading speed of the EEPROM are both slow. Also, in page mode,
Since the EEPROM simultaneously writes and reads a large amount of data for one page, the data write speed and data read speed are faster than in the random access mode.

【0009】さらに、比較項目5のイレース(消去)モ
ードは、EEPROMに特有のモードであり、SRAM
には存在しないモードである。すなわち、EEPROM
は、既にデータの書き込まれている記憶領域に新たにデ
ータを書き込む場合、先に書き込まれているデータを一
旦イレースしないと新たなデータを書き込むことができ
ない。このため、データの書き込みを行なうに際して、
このイレースモードが実行されるようになっている。こ
のイレースモードには、前述のページ単位によるページ
消去の他、数Kバイトのブロック単位によるブロック消
去、全体を一括消去するチップ消去のモードがある。
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 a storage area where data has already been written, new data cannot be written unless the previously written data is erased once. Therefore, when writing data,
This erase mode is executed. This erase mode includes, in addition to page erasing in page units described above, block erasing in block units of several Kbytes, and chip erasing mode in which all of them are collectively erased.

【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 contents written in the ROM and check whether the contents have been written correctly. This is write verification.

【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 has unique advantages not found in the SRAM, such as no backup battery, easy capacity increase, low cost, and data writing / reading in page units. .. On the other hand, the data writing speed and the data reading speed in the random access mode are slow, and there is a disadvantage that a mode such as erase mode and 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. The points to be improved are as follows.

【0014】すなわち、特にコンピュータデータや画像
データ等の情報データを記録する場合には、情報データ
記憶領域の他に、データの属性を記録しておくヘッダデ
ータ記憶領域が不可欠である。このヘッダデータ記憶領
域の書替え回数は頻繁で、また信頼性が特に要求され
る。そのために、エラー検出、訂正等をチップ自体ある
いはソフトウェアで行う必要がある。いずれの場合もそ
のエラーは書き込み時にポーリングにより検出できる
が、後で読み出すときにエラー有無の判断、エラーに対
する処理、例えば置換に対処しなければならない。
That is, in particular, when recording information data such as computer data and image data, a header data storage area for recording data attributes is essential in addition to the information data storage area. The number of times of rewriting of the header data storage area is frequent, and reliability is particularly required. Therefore, it is necessary to perform error detection, correction, etc. by the chip itself or software. In any case, the error can be detected by polling at the time of writing, but at the time of reading later, it is necessary to deal with the judgment as to whether or not there is an error and the processing for the error, for example, replacement.

【0015】ここで、ヘッダデータ記憶領域にバイト読
み書きが可能なEEPROMを採用した例について、図
5を参照して説明する。エラーはランダムにバイト単位
で発生するものとする。
An example in which a byte readable / writable EEPROM is used in the header data storage area will be described with reference to FIG. The error shall occur randomly in bytes.

【0016】図5はヘッダデータ記憶領域の構成を示し
ている。全体は8Kバイト(8192バイト)であり、
32バイトを1ページとして区分けされ、256ページ
に区分される。各ページにはそれぞれエラーの有無を示
すエラーフラグ(1ビット)を書き込まれ、さらにエラ
ーが発生した場合にはそのページを別のページに置換す
るために、そこに置換先のアドレスを書き込まれること
になる。
FIG. 5 shows the structure of the header data storage area. The whole is 8K bytes (8192 bytes),
32 bytes are divided into one page and divided into 256 pages. An error flag (1 bit) indicating whether or not there is an error is written in each page, and in order to replace the page with another page when an error occurs, the address of the replacement destination is written there. become.

【0017】この場合、アドレスとしてページ毎に1バ
イトを要するため、エラーフラグと合わせて1ページ当
り2バイトを使用する。すなわち、全部で256ページ
であるから、全体としては512バイト(16ページ)
分のアドレステーブルが必要となる。
In this case, since 1 byte is required for each page as an address, 2 bytes are used for each page together with the error flag. That is, since there are 256 pages in all, 512 bytes (16 pages) as a whole
Minute address table is required.

【0018】このアドレステーブルに要するエリアは、
当然、本来のヘッダデータを書き込むことができないの
で、約6%のエリアが削減されてしまうことになる。ま
た、この例では1ページ32バイト構成としたが、16
バイト構成であれば倍の1024バイトが必要となり、
使用できないエリアが大きくなって、本来使用されるべ
きヘッダデータエリアを圧迫する問題が生じる。
The area required for this address table is
Of course, since the original header data cannot be written, the area is reduced by about 6%. Also, in this example, one page has 32 bytes, but 16 pages
If it is a byte structure, double 1024 bytes are required,
There is a problem that the area that cannot be used becomes large and the header data area that should be used is squeezed.

【0019】また、置換するエリアを予め用意しておく
必要があるが、このエリアを少なくすると、頻繁にアク
セスするページの置換が何度も行われ、ついには置換先
がなくなることも考えられる。この場合には、大容量の
情報データ記憶領域がまだ書替えできるにもかかわら
ず、小容量のヘッダデータ記憶領域が書替え不能となる
ために、全体が使用不可能になるといった自体に陥って
しまう。
Although it is necessary to prepare an area to be replaced in advance, if this area is reduced, it is conceivable that frequently accessed pages will be replaced many times and eventually there will be no replacement destination. In this case, although the large-capacity information data storage area can still be rewritten, the small-capacity header data storage area cannot be rewritten, so that the whole becomes unusable.

【0020】[0020]

【発明が解決しようとする課題】以上のように、SRA
Mに代えてEEPROMをメモリカードに使用すること
を考えた場合、EEPROMカードをSRAMカードラ
イクに使用できるように改良を施すことが、実用化に際
して重要な問題となっている。特に、EEPROMのエ
ラーエリアのデータを置換するために、アドレステーブ
ルエリアの確保が余儀なくされ、これによって本来のデ
ータエリアが削減され、記録データが制限されたり、全
体の寿命が短くなるといった問題の改善が強く要望され
ている。
As described above, SRA
Considering the use of the EEPROM for the memory card instead of the M, it is an important problem in practical use to improve the EEPROM card so that it can be used as an SRAM card. In particular, in order to replace the data in the error area of the EEPROM, the address table area must be secured, which reduces the original data area, limits the recorded data, and shortens the overall lifespan. Is strongly requested.

【0021】そこで、この発明は上記事情を考慮してな
されたもので、EEPROMを使用して、エラー発生エ
リアのデータ置換に際して、アドレステーブルエリアを
確保する必要がなく、SRAMカードライクに使用でき
るように改良を施した極めて良好なメモリカード装置を
提供することを目的とする。
Therefore, the present invention has been made in consideration of the above circumstances, and it is not necessary to secure an address table area when replacing data in an error occurrence area by using an EEPROM, and it can be used in an SRAM card-like manner. It is an object of the present invention to provide an extremely good memory card device which has been improved.

【0022】[0022]

【課題を解決するための手段】この発明に係るメモリカ
ード装置は、バイト単位の書き込み、読出しが可能で、
数バイトで構成される単位で複数ページに区分けされる
EEPROMと、前記ページ毎にエラーの有無を検出す
るエラー検出手段と、前記複数ページのうち、特定のペ
ージをエラーフラグエリアとして、各ページのエラー発
生の有無を示すエラーフラグを記録するエラーフラグ書
き込み手段と、前記エラーの発生したページの書き込み
データを空きページに置換して書き込むデータ書き込み
置換手段と、前記エラーの発生したページに前記データ
置換手段で置換される置換先アドレスを書き込むアドレ
ス書き込み手段と、前記エラーフラグエリアを参照して
エラー発生ページを判別し、そのページのバイトデータ
を読出して置換先アドレスを判別し、判別したアドレス
に基づいて置換ページからデータを読み出すデータ読出
し手段とを備える。
Means for Solving the Problems A memory card according to the present invention
The device can write and read in byte units,
Divided into multiple pages in units of several bytes
Detects whether there is an error in the EEPROM and each page.
Error detection means and a specific page of the multiple pages.
Page as an error flag area
An error flag document that records the error flag that indicates the presence or absence of raw
Writing means and writing of the page in which the error occurred
Write data by replacing data with free pages
Replacement means and the data on the page where the error occurred
Address for writing the replacement address to be replaced by the replacement means
Refer to the error writing area and the error flag area
Determine the page in which the error occurred and the byte data of that page
Is read to determine the replacement destination address, and the determined address
Read data from replacement page based on data read
And means.

【0023】特に、前記アドレス書き込み手段は、前記
エラー発生ページの複数バイトに置換先アドレスを書き
込み、前記データ読出し手段は、エラー発生ページの複
数バイトからデータを読出して、多数決により置換先ア
ドレスを判別するようにしたことを特徴とする。
In particular, the address writing means writes a replacement destination address in a plurality of bytes of the error occurrence page, and the data reading means reads data from a plurality of bytes of the error occurrence page and determines a replacement destination address by a majority decision. It is characterized by doing so.

【0024】[0024]

【作用】上記構成では、複数ページに区分けされるEE
PROMに対して、ページ毎にエラーの有無を検出し、
特定のページをエラーフラグエリアとして、各ページの
エラー発生の有無を示すエラーフラグを記録し、エラー
発生ページの書き込みデータは空きページに置換して書
き込み、エラー発生ページには置換先アドレスを書き込
み、読出し時にはエラーフラグエリアを参照してエラー
発生ページを判別し、そのページのバイトデータを読出
して置換先アドレスを判別し、判別したアドレスに基づ
いて置換ページからデータを読み出すようにしている。
With the above structure, the EE is divided into a plurality of pages.
For the PROM, detect whether there is an error for each page,
With a specific page as the error flag area, an error flag indicating whether or not an error has occurred on each page is recorded, the write data on the error page is written by replacing it with a blank page, and the replacement destination address is written on the error page, At the time of reading, the error flag area is referred to determine the page in which the error occurred, the byte data of the page is read to determine the replacement destination address, and the data is read from the replacement page based on the determined address.

【0025】すなわち、各エラー発生ページはエラーフ
ラグエリアを参照するだけで判別でき、置換先アドレス
を得るためのエリアはエラー発生ページとしているの
で、特別にそのエリアを確保する必要はない。
That is, since each error occurrence page can be identified only by referring to the error flag area, and the area for obtaining the replacement destination address is the error occurrence page, it is not necessary to reserve that area.

【0026】特に、エラー発生ページの全バイトあるい
はその一部に置換先アドレスを書き込み、エラー発生ペ
ージの全バイトあるいはその一部からデータを読出し
て、多数決により置換先アドレスを判別することによ
り、置換先アドレスが正確に得られ、エラー発生時のデ
ータ置換に対する信頼性を損なうことはない。
In particular, the replacement destination address is written in all the bytes of the error occurrence page or a part thereof, the data is read from all the bytes of the error occurrence page or a part thereof, and the replacement destination address is discriminated by the majority decision. The destination address is accurately obtained, and the reliability of data replacement when an error occurs is not impaired.

【0027】[0027]

【実施例】以下、この発明を電子スチルカメラ装置に適
用した場合の一実施例について図面を参照して詳細に説
明する。
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.

【0028】図1において、11はメモリカード本体
で、その一端部に設置されたコネクタ12を介して、図
示しない電子スチルカメラ本体に接続されるようになさ
れている。このコネクタ12には、電子スチルカメラ本
体側から、メモリカード本体11に書き込むべきデジタ
ルデータDAと、その書き込み場所を示すアドレスデー
タADと、アドレスデータADに同期したバスクロック
BCKが供給される。また、図示しないが、カードの書
き込み、読出し、消去の処理を指定する処理モード指定
データも供給される。
In FIG. 1, reference numeral 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 digital data DA to be written to the memory card body 11, address data AD indicating the writing location, and a bus clock BCK synchronized with the address data AD from the electronic still camera body side. Further, although not shown, processing mode designating data designating processing of writing, reading, and erasing of the card is also supplied.

【0029】ここで、電子スチルカメラ本体側から出力
されるデジタルデータDAには、メモリカードの属性情
報,各画像データに特有な各種情報,日付情報及び撮影
可能枚数情報等のメモリ管理情報であるヘッダデータH
Dと、被写体に対応する画像(音声を含む)データPD
とが含まれている。このうち、ヘッダデータHDは、そ
の全データ量が16Kバイト程度と小容量であり、例え
ば日付情報や撮影可能枚数情報等のようにバイト単位で
書き替える必要のあるものが多いという性質を有してい
る。また、画像データPDは、画像1枚分のデータ量が
非常に多く、しかも全体的にシーケンシャルであるとい
う性質を有している。
Here, the digital data DA output from the electronic still camera main body side includes memory card attribute information, various information peculiar to each image data, date information, and memory management information such as the number of recordable images. Header data H
D and image data PD (including sound) corresponding to the subject
And are included. Of these, the header data HD has a small total data amount of about 16 Kbytes, and has a property that it is often necessary to rewrite in byte units such as date information and information about the number of shootable images. ing. Further, the image data PD has a very large amount of data for one image, and has the property of being entirely sequential.

【0030】上記コネクタ12に供給されたデジタルデ
ータDAは、一旦バッファメモリ13に取り込まれ、記
録される。このときのバッファメモリ13のデジタルデ
ータDAの取り込みタイミングは、アドレス発生回路1
4から出力されるアドレスデータによってコントロール
される。このアドレス発生回路14は、セレクタ15に
よって選択されたクロックCKをカウントして、バッフ
ァメモリ13へのアドレスデータを生成する。
The digital data DA supplied to the connector 12 is once taken into the buffer memory 13 and recorded. At this time, the timing of fetching the digital data DA of the buffer memory 13 is as follows.
It is controlled by the address data output from 4. The address generation circuit 14 counts the clock CK selected by the selector 15 and generates address data for the buffer memory 13.

【0031】上記セレクタ15は、コネクタ12を通じ
て電子スチルカメラ本体側から供給されるバスクロック
BCKと、データ処理制御回路16から供給される読出
しクロックYCKのいずれか一方を、データ処理制御回
路16から出力されるセレクト信号SELによって選択
的に出力する。すなわち、バッファメモリ13のデジタ
ルデータDAの取り込み時にはバスクロックBCKを選
択し、その読出し時には読出しクロックYCKを、クロ
ックCKとしてアドレス発生回路14に導出する。
The selector 15 outputs from the data processing control circuit 16 one of the bus clock BCK supplied from the electronic still camera body side through the connector 12 and the read clock YCK supplied from the data processing control circuit 16. The selected signal SEL is selectively output. That is, the bus clock BCK is selected when the digital data DA of the buffer memory 13 is taken in, and the read clock YCK is derived to the address generation circuit 14 as the clock CK when reading it.

【0032】上記データ処理制御回路16は、コネクタ
12を通じて供給される処理モード指定データに基づい
て、その指定された処理モードに切り替わる。アドレス
データADは、データ処理制御回路16に供給されて、
ヘッダ用アドレスデータHADか画像用アドレスデータ
PADかが判別される。上記バッファメモリ13は、こ
のヘッダデータHDを全て記憶することができる記憶容
量(16Kバイト以上)を有している。このバッファメ
モリ13に取り込まれたデジタルデータDAは、データ
処理制御回路16の後述する制御に基づいて、バッファ
メモリ13から読み出され、EEPROM17に書き込
まれる。
The data processing control circuit 16 switches to the designated processing mode based on the processing mode designation data supplied through the connector 12. The address data AD is supplied to the data processing control circuit 16,
It is determined whether the header address data HAD or the image address data PAD. The buffer memory 13 has a storage capacity (16 Kbytes or more) capable of storing all the header data HD. The digital data DA taken into the buffer memory 13 is read from the buffer memory 13 and written into the EEPROM 17 under the control of the data processing control circuit 16 which will be described later.

【0033】このEEPROM17は、4Mビット以上
の大記憶容量を有し、バイト単位でのデータの書き込み
及び消去は行なえず、一括消去や数Kバイトでなるブロ
ック単位の消去が行なえるとともに、数百バイトでなる
ページ単位でのデータの書き込み及び読み出しが行なえ
るものである。
This EEPROM 17 has a large storage capacity of 4 Mbits or more, and cannot write or erase data in byte units, and can perform batch erasing or erasing in block units of several Kbytes, and several hundreds of bytes. Data can be written and read in page units of bytes.

【0034】上記EEPROM17のメモリ空間領域
は、ヘッダデータHD記憶領域と、画像データPD記憶
領域とに分けられる。このうち、ヘッダデータHD記憶
領域は図2(a)に示すように構成され、全容量819
2バイト、ページ容量32バイト、ページ数256に区
分けされている。
The memory space area of the EEPROM 17 is divided into a header data HD storage area and an image data PD storage area. Of these, the header data HD storage area is configured as shown in FIG.
It is divided into 2 bytes, page capacity 32 bytes, and page number 256.

【0035】256ページ分のエラーフラグは256ビ
ット=32バイト必要となる。これは1ページ分に相当
する。ここではエラーフラグエリアとして、最終ページ
を確保している。図2(b)にエラーフラグエリアを拡
大して示す。初期状態では、各ページのエラーフラグと
して全ビットに“0”が書き込まれているが、あるペー
ジにエラーが発生すると、そのページに対応するビット
を“1”に書き替えられる。また、エラー発生ページの
データは予め決められたページに置換されるが、この
際、図2(c)に拡大して示すように、エラー発生ペー
ジの各バイトに置換先ページのアドレスが書き込まれ
る。
The error flag for 256 pages requires 256 bits = 32 bytes. This corresponds to one page. Here, the last page is reserved as the error flag area. FIG. 2B shows an enlarged error flag area. In the initial state, “0” is written in all bits as an error flag of each page, but when an error occurs in a page, the bit corresponding to that page can be rewritten to “1”. Further, the data of the error occurrence page is replaced with a predetermined page. At this time, as shown in an enlarged view of FIG. 2C, the address of the replacement destination page is written in each byte of the error occurrence page. ..

【0036】上記構成において、カード内の動作制御は
データ処理制御回路16によって行われる。まず、電子
スチルカメラ本体側から送られてくる処理モード指定デ
ータが書き込み処理を指定しており、ヘッダデータHD
及び画像データPDをEEPROM17に書き込む場合
の動作について説明する。
In the above structure, the operation control in the card is performed by the data processing control circuit 16. First, the processing mode designation data sent from the electronic still camera body side designates the writing process, and the header data HD
Also, the operation of writing the image data PD in the EEPROM 17 will be described.

【0037】データ処理制御回路16は、入力されたア
ドレスデータADがヘッダ用アドレスデータHADであ
ると判断すると、EEPROM17に対してアウトイネ
ーブルデータOEをアクティブ状態(例えばHレベル)
にするとともに、EEPROM17のヘッダデータHD
記憶領域を全て指定するアドレスデータADを発生し
て、EEPROM17に記憶された全ヘッダデータHD
をページ単位で読み出させるように動作する。
When the data processing control circuit 16 determines that the input address data AD is the header address data HAD, the out enable data OE is activated to the EEPROM 17 (for example, H level).
And the header data HD of the EEPROM 17
All the header data HD stored in the EEPROM 17 is generated by generating the address data AD that specifies all the storage areas.
Operates so as to be read page by page.

【0038】次に、データ処理制御回路16は、バッフ
ァメモリ13に対してライトイネーブルデータWEをア
クティブ状態(例えばHレベル)にするとともに、セレ
クト信号SELを制御して、自己の生成する読出しクロ
ックYCKが、アドレス発生回路14に導出されるよう
にセレクタ15を切り替える。このため、読出しクロッ
クYCKに基づいてアドレス発生回路14で生成される
アドレスデータによって、EEPROM17から読み出
された全ヘッダデータHDがバッファメモリ13に書き
込まれる。
Next, the data processing control circuit 16 sets the write enable data WE to the buffer memory 13 in the active state (for example, H level) and controls the select signal SEL to generate the read clock YCK generated by itself. However, the selector 15 is switched so as to be led to the address generation circuit 14. Therefore, all the header data HD read from the EEPROM 17 is written in the buffer memory 13 by the address data generated by the address generation circuit 14 based on the read clock YCK.

【0039】その後、バッファメモリ13に全てのヘッ
ダデータHDが書き込まれた状態で、データ処理制御回
路16は、ヘッダ用アドレスデータHADに基づいて、
書き替えるべきヘッダデータHDのバイトを指定するセ
ットアドレスデータSAを生成しアドレス発生回路14
に出力するとともに、そのセットアドレスデータSAを
アドレス発生回路14にセットさせるためのアドレスセ
ットデータASをアドレス発生回路14に出力する。
After that, in a state in which all the header data HD are written in the buffer memory 13, the data processing control circuit 16 determines, based on the header address data HAD.
The address generation circuit 14 generates the set address data SA that specifies the bytes of the header data HD to be rewritten.
And the address set data AS for setting the set address data SA in the address generation circuit 14 to the address generation circuit 14.

【0040】すると、アドレス発生回路14は、アドレ
スセットデータASに基づいてセットされたセットアド
レスデータSAからアドレスデータを生成し、バッファ
メモリ13に出力する。このとき、データ処理制御回路
16は、バッファメモリ13に対してライトイネーブル
データWEをアクティブ状態にし、これによって、バッ
ファメモリ13の入力されたアドレスデータで指定され
たバイトの内容が、コネクタ12を介して入力された新
たなヘッダデータHDに書き替えられる。
Then, the address generation circuit 14 generates address data from the set address data SA set based on the address set data AS, and outputs it to the buffer memory 13. At this time, the data processing control circuit 16 activates the write enable data WE to the buffer memory 13, so that the contents of the byte designated by the input address data of the buffer memory 13 are transferred via the connector 12. It is rewritten to the new header data HD that has been input.

【0041】そして、バッファメモリ13内でバイト単
位でのヘッダデータHDの書き替えが完了すると、デー
タ処理制御回路16は、自己の生成するクロックYCK
がアドレス発生回路14に導出されるようにセレクタ1
5を制御し、かつバッファメモリ13に対してアウトイ
ネーブルデータOEをアクティブ状態にする。このた
め、クロックYCKに基づいてアドレス発生回路14で
生成されるアドレスデータによって、バッファメモリ1
3からヘッダデータHDが順次読み出される。
When the rewriting of the header data HD in bytes is completed in the buffer memory 13, the data processing control circuit 16 generates the clock YCK generated by itself.
Selector 1 so that the
5 and controls the out enable data OE to the buffer memory 13 in the active state. Therefore, the buffer memory 1 is generated by the address data generated by the address generation circuit 14 based on the clock YCK.
The header data HD is sequentially read from 3.

【0042】このとき、データ処理制御回路16は、E
EPROM17に対してライトイネーブルデータWEを
アクティブ状態にするとともに、EEPROM17のヘ
ッダデータHD記憶領域を全て指定するアドレスデータ
ADを発生する。このため、バッファメモリ13に記憶
された書き替え終了後の全ヘッダデータHDが、EEP
ROM17に転送され、そのヘッダデータHD記憶領域
にページ単位で書き込まれる。
At this time, the data processing control circuit 16 makes the E
The write enable data WE is activated for the EPROM 17, and the address data AD designating the entire header data HD storage area of the EEPROM 17 is generated. Therefore, all the header data HD after the rewriting stored in the buffer memory 13 is
The data is transferred to the ROM 17 and written in the header data HD storage area in page units.

【0043】その後、EEPROM17に全てのヘッダ
データHDが書き込まれた状態で、データ処理制御回路
16は、EEPROM17に対して、アウトイネーブル
データOEをアクティブ状態とするとともに、ヘッダデ
ータHD記憶領域を全て指定するアドレスデータADを
出力して、書き込んだヘッダデータHDを読み出し、バ
ッファメモリ13に記録されたヘッダデータHDと一致
しているか否かを判別する、書き込みベリファイを実行
する。
After that, with all the header data HD written in the EEPROM 17, the data processing control circuit 16 sets the out enable data OE to the EEPROM 17 in the active state and specifies all the header data HD storage areas. Address data AD is output, the written header data HD is read, and write verification is executed to determine whether the header data HD matches the header data HD recorded in the buffer memory 13.

【0044】そして、EEPROM17から読み出した
ヘッダデータHDと、バッファメモリ13に記録された
ヘッダデータHDとが一致していないと、再度、バッフ
ァメモリ13からEEPROM17にヘッダデータHD
を転送して書き込みを行ない、この動作が、EEPRO
M17から読み出したヘッダデータHDと、バッファメ
モリ13に記録されたヘッダデータHDとが完全に一致
するまで繰り返され、ここにヘッダデータHDの書き込
みが行なわれる。
If the header data HD read from the EEPROM 17 and the header data HD recorded in the buffer memory 13 do not match, the header data HD is read from the buffer memory 13 to the EEPROM 17 again.
Is transferred and written, and this operation is
This is repeated until the header data HD read from M17 and the header data HD recorded in the buffer memory 13 completely match, and the header data HD is written there.

【0045】ここで、データ処理制御回路16は、入力
されたアドレスデータADが画像用アドレスデータPA
Dであると判断すると、EEPROM18に対して、画
像用アドレスデータPADを出力するとともに、ライト
イネーブルデータWEをアクティブ状態とする。次に、
データ処理制御回路16は、セレクト信号SELを制御
して、自己の生成するクロックYCKが、アドレス発生
回路14に導出されるようにセレクタ15を切り替え
る。
Here, in the data processing control circuit 16, the input address data AD is the image address data PA.
When it is determined that the data is D, the image address data PAD is output to the EEPROM 18 and the write enable data WE is activated. next,
The data processing control circuit 16 controls the select signal SEL to switch the selector 15 so that the clock YCK generated by itself is derived to the address generation circuit 14.

【0046】このため、読み出し用クロックYCKに基
づいてアドレス発生回路14で生成されるアドレスデー
タによって、バッファメモリ13から画像データPDが
順次読み出され、EEPROM17にページ単位で書き
込まれることになる。
Therefore, the image data PD is sequentially read from the buffer memory 13 by the address data generated by the address generation circuit 14 based on the read clock YCK, and written in the EEPROM 17 page by page.

【0047】その後、EEPROM17に画像データP
Dが書き込まれた状態で、データ処理制御回路16は、
EEPROM17に対して、アウトイネーブルデータO
Eをアクティブ状態とするとともに、画像用アドレスデ
ータPADを出力して、書き込んだ画像データPDを読
み出させ、バッファメモリ13に記録された画像データ
PDと一致しているか否かを判別する、書き込みベリフ
ァイを実行する。
After that, the EEPROM 17 stores the image data P
With D written, the data processing control circuit 16
Out enable data O for the EEPROM 17
When E is set to the active state, the image address data PAD is output, the written image data PD is read out, and it is determined whether or not it matches the image data PD recorded in the buffer memory 13. Perform verification.

【0048】そして、EEPROM17から読み出した
画像データPDと、バッファメモリ13に記録された画
像データPDとが一致していなければ、再度、バッファ
メモリ13からEEPROM17に画像データPDを転
送して書き込み動作を行ない、この動作が、EEPRO
M17から読み出した画像データPDと、バッファメモ
リ13に記録された画像データPDとが完全に一致する
まで繰り返され、ここに画像データPDの書き込みが行
なわれる。
If the image data PD read from the EEPROM 17 and the image data PD recorded in the buffer memory 13 do not match, the image data PD is transferred from the buffer memory 13 to the EEPROM 17 again to perform the writing operation. Perform this operation, EEPRO
This is repeated until the image data PD read from M17 and the image data PD recorded in the buffer memory 13 completely match, and the image data PD is written there.

【0049】次に、電子スチルカメラ本体側から送られ
てくる処理モード指定データが読出し処理を指定してお
り、EEPROM17から、ヘッダデータHD及び画像
データPDをメモリカード本体11の外部に読み出す場
合の動作について説明する。
Next, when the processing mode designation data sent from the electronic still camera body side designates the reading process, the header data HD and the image data PD are read from the EEPROM 17 to the outside of the memory card body 11. The operation will be described.

【0050】まず、電子スチルカメラ本体側からコネク
タ12を介して読み出すべきデータの記録されたアドレ
スが指定される。すると、指定されたアドレスは、デー
タ処理制御回路16に供給されて、ヘッダ用アドレスデ
ータHADか画像用アドレスデータPADかが判別され
る。
First, the address where the data to be read from the electronic still camera main body side is specified via the connector 12 is designated. Then, the specified address is supplied to the data processing control circuit 16, and it is determined whether the address data HAD for the header or the address data PAD for the image.

【0051】その後、データ処理制御回路16は、判別
結果に基づいて、EEPROM17及びバッファメモリ
13に対してアウトイネーブルデータOE及びライトイ
ネーブルデータWEをアクティブ状態とするとともに、
自己の生成するクロックYCKが、アドレス発生回路1
4に導出されるようにセレクタ15を切り替え、EEP
ROM17からヘッダデータHD及び画像データPDを
ページ単位で読み出して、バッファメモリ13に書き込
ませる。
After that, the data processing control circuit 16 activates the out enable data OE and the write enable data WE to the EEPROM 17 and the buffer memory 13 based on the determination result, and
The clock YCK generated by itself is the address generation circuit 1
4 switches the selector 15 so that the EEP
The header data HD and the image data PD are read from the ROM 17 in page units and written in the buffer memory 13.

【0052】そして、データ処理制御回路16は、コネ
クタ12を介して電子スチルカメラ本体側から供給され
るバスクロックBCKが、アドレス発生回路14に導出
されるようにセレクタ15を切り替え、バスクロックB
CKに基づいてアドレス発生回路14で発生されるアド
レスデータで、バッファメモリ13からデータが読み出
され、コネクタ12を介して電子スチルカメラ本体に導
出されて、ここにヘッダデータHD及び画像データPD
の読み出しが行なわれる。上記EEPROM17におい
て、ヘッダデータHD記憶領域のあるページにエラーが
発生した場合の動作を、図3を参照して説明する。
Then, the data processing control circuit 16 switches the selector 15 so that the bus clock BCK supplied from the electronic still camera main body side via the connector 12 is led to the address generation circuit 14, and the bus clock BCK.
The address data generated by the address generation circuit 14 based on CK is read out from the buffer memory 13 and led out to the electronic still camera main body via the connector 12, where the header data HD and the image data PD are stored.
Is read. The operation of the EEPROM 17 when an error occurs in a page in the header data HD storage area will be described with reference to FIG.

【0053】データ処理制御回路16は、書き込み処理
の指定(Y)を判別すると(ステップa)、データの書
き込み時にポーリングを行い(ステップb)、エラーが
発生しているか否かを判別する(ステップc)。エラー
が発生していなければ(N)書き込み処理を終了する。
エラーが発生した場合(Y)、例えば図2(a)のよう
に第2ページでエラーが発生した場合には、同図(b)
のようにエラーフラグエリアの第2ページ対応ビットを
“1”に書替え、エラーフラグを立てる(ステップ
d)。
When the data processing control circuit 16 determines the designation (Y) of the writing process (step a), it polls at the time of writing the data (step b) and determines whether an error has occurred (step). c). If no error has occurred, the (N) writing process ends.
When an error occurs (Y), for example, when an error occurs on the second page as shown in FIG. 2A, the same figure (b)
As described above, the bit corresponding to the second page in the error flag area is rewritten to "1" and an error flag is set (step d).

【0054】ここで、あるページにエラーが発生すれ
ば、そのフラグは“1”に保持される。このため、エラ
ーフラグエリアの書替え回数は最大でも8回であり、一
般に保証される回数(1万回以上)をはるかに下回るの
で、このエリアに対するエラーは発生しないと考えてよ
い。
Here, if an error occurs in a certain page, the flag is held at "1". Therefore, the number of times of rewriting in the error flag area is 8 at the maximum, which is far below the guaranteed number (10,000 times or more) in general, and it can be considered that no error occurs in this area.

【0055】次に、空いている置換先ページを探し、図
2(c)に示すように、そのアドレス(図2では第20
0ページ)を第2ページの全バイト(32バイト)に書
き込む(ステップe)。この例では、アドレスは1バイ
トであるが、2バイトのアドレスでも同様である。この
とき、当然エラーが発生したバイトには書き込めない
が、これは無視する。
Next, a free replacement page is searched for, and its address (20th in FIG. 2) is searched as shown in FIG. 2C.
Write page 0 to all bytes (32 bytes) of page 2 (step e). In this example, the address is 1 byte, but the same applies to a 2-byte address. At this time, of course, the byte in which the error occurred cannot be written, but this is ignored.

【0056】最後に、ステップbに戻り、当初書き込む
べきだったヘッダデータを置換先ページ(第200ペー
ジ)内に書き込む。このとき、ステップcで再度エラー
発生を判別した場合には、ステップd,eを繰り返し、
置換処理を行う。エラー発生が検出されなければ、書き
込み処理、エラーページの置換処理を終了する。
Finally, returning to step b, the header data that should have been initially written is written in the replacement destination page (the 200th page). At this time, if it is determined in step c that an error has occurred again, steps d and e are repeated,
Perform replacement processing. If no error is detected, the writing process and the error page replacement process are terminated.

【0057】また、データ処理制御回路16は、読出し
処理の指定(N)を判別すると(ステップa)、まずエ
ラーフラグエリアを参照し、読出しページのフラグが
“0”であれば(N)、そのページのデータを読出して
(ステップi)、読出し処理を終了する。また、読出し
ページのフラグが“1”であれば(Y)、エラーがある
ページと判断し、そのエラー発生ページに書き込まれて
いる全バイトの置換先アドレスを読出し(ステップ
g)、比較して多数決によりアドレスを決定する(ステ
ップh)。ここで読み出すデータ数は一部のみでもかま
わない。最後に、決定された置換先アドレスに基づい
て、置換先ページからヘッダデータを読出し(ステップ
i)、読出し処理を終了する。
Further, when the data processing control circuit 16 determines the designation (N) of the reading process (step a), it first refers to the error flag area, and if the flag of the reading page is "0" (N), The data of the page is read (step i), and the reading process is completed. If the read page flag is "1" (Y), it is determined that there is an error page, and the replacement destination address of all bytes written in the error page is read (step g) and compared. The address is determined by majority (step h). Only a part of the data may be read out here. Finally, based on the determined replacement destination address, the header data is read from the replacement destination page (step i), and the reading process ends.

【0058】したがって、上記実施例のような構成によ
れば、データ量が少なくバイト単位で書き替えるものが
多いという性質を有するヘッダデータHDに対して書き
替え要求があった場合、EEPROM17から全ヘッダ
データHDをバッファメモリ13に読み出し、このバッ
ファメモリ13内でランダムアクセスによりバイト単位
でヘッダデータHDを書き替え、再びバッファメモリ1
3の全ヘッダデータHDをEEPROM17にページ単
位で書き込むようにしたので、バイト単位でのデータの
書き込み及び読み出しができない大記憶容量のEEPR
OM17を用いても、容易にバイト単位でのデータの書
き込み及び読み出しが可能となる。
Therefore, according to the configuration of the above embodiment, when there is a rewriting request for the header data HD having a property that the data amount is small and the data is rewritten in byte units, all the headers are read from the EEPROM 17. The data HD is read to the buffer memory 13, and the header data HD is rewritten byte by byte in the buffer memory 13 by random access.
Since all the header data HD of No. 3 is written to the EEPROM 17 in page units, the EEPR having a large storage capacity in which writing and reading of data in byte units cannot be performed.
Even using the OM 17, it is possible to easily write and read data in byte units.

【0059】しかも、電子スチルカメラ本体とメモリカ
ード本体11との間におけるデータ転送は、必ずバッフ
ァメモリ13を介して行なわれるので、データの書き込
みスピード及び読み出しスピードも向上し、SRAMカ
ードライクに使用することができるようになる。また、
EEPROM17に特有の書き込みベリファイも、メモ
リカード本体11の内部に設けられたバッファメモリ1
3を用いて行なうようにしているので、メモリカード本
体11の取り扱いとしては、全くSRAMカードライク
に使用することができる。
Moreover, since data transfer between the electronic still camera main body and the memory card main body 11 is always performed via the buffer memory 13, the data writing speed and the data reading speed are improved, and it is used for SRAM card-like. Will be able to. Also,
The write verify unique to the EEPROM 17 is also provided in the buffer memory 1 provided inside the memory card body 11.
3 is used, the memory card main body 11 can be used just like an SRAM card.

【0060】さらに、エラー発生ページのデータ置換の
ために要したエリアは、エラーフラグ格納のための1ペ
ージ(32バイト)のみであり、別にアドレステーブル
エリアを確保する必要がないので、図5に示した従来の
場合より15ページ(480バイト)も削減でき、全体
に対する割合も約0.4%にとどめることができる。こ
の削減したエリアは、本来のヘッダデータの書き込みエ
リアとして利用でき、例えば置換先ページとして用いる
こともできる。これによって、アクセスするページの置
換が低減され、小容量のヘッダデータ記憶領域が書替え
不能となるために、全体が使用不可能になるといった問
題も解消できる。
Further, the area required for replacing the data of the error page is only one page (32 bytes) for storing the error flag, and it is not necessary to reserve another address table area. 15 pages (480 bytes) can be reduced compared to the conventional case shown, and the ratio to the whole can be limited to about 0.4%. This reduced area can be used as an original header data write area, and can also be used as a replacement page, for example. As a result, it is possible to solve the problem that the replacement of the accessed page is reduced and the small-capacity header data storage area cannot be rewritten, so that the entire area becomes unusable.

【0061】尚、以上説明した中で使用した数値は一例
にすぎず、これに限定されるものではない。また、この
発明はメモリカードのように全体の容量が制限されるメ
ディアには最適であるが、他のメディアに対しても適用
可能である。この外その要旨を逸脱しない範囲で種々変
形して実施することができる。
The numerical values used in the above description are merely examples, and the present invention is not limited to these. Further, the present invention is suitable for a medium such as a memory card whose total capacity is limited, but can be applied to other media. In addition, various modifications can be made without departing from the scope of the invention.

【0062】[0062]

【発明の効果】以上詳述したようにこの発明によれば、
EEPROMを使用して、エラー発生エリアのデータ置
換に際して、アドレステーブルエリアを確保する必要が
なく、SRAMカードライクに使用できるように改良を
施した極めて良好なメモリカード装置を提供することが
できる。
As described in detail above, according to the present invention,
By using the EEPROM, it is not necessary to secure the address table area when replacing the data in the error occurrence area, and it is possible to provide a very good memory card device improved so that it can be used for SRAM card-like.

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

【図1】この発明に係るメモリカード装置の一実施例と
して電子スチルカメラ用の場合の構成を示すブロック構
成図。
FIG. 1 is a block configuration diagram showing a configuration for an electronic still camera as an embodiment of a memory card device according to the present invention.

【図2】同実施例に用いるEEPROMのヘッダデータ
記憶領域の構成を示す構成図。
FIG. 2 is a configuration diagram showing a configuration of a header data storage area of an EEPROM used in the embodiment.

【図3】同実施例のエラー発生時の動作を説明するため
のフローチャート。
FIG. 3 is a flowchart for explaining an operation when an error occurs in the embodiment.

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

【図5】従来のEEPROMカードに採用されているヘ
ッダデータ記憶領域の構成を示す構成図。
FIG. 5 is a configuration diagram showing a configuration of a header data storage area adopted in a conventional EEPROM card.

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

11…メモリカード本体、12…コネクタ、13…バッ
ファメモリ、14…アドレス発生回路、15…セレク
タ、16…データ処理制御回路、17…EEPROM。
11 ... Memory card main body, 12 ... Connector, 13 ... Buffer memory, 14 ... Address generating circuit, 15 ... Selector, 16 ... Data processing control circuit, 17 ... EEPROM.

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.5 識別記号 庁内整理番号 FI 技術表示箇所 G11C 29/00 302 9288−5L ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 5 Identification number Office reference number FI technical display location G11C 29/00 302 9288-5L

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 バイト単位の書き込み、読出しが可能
で、数バイトで構成される単位で複数ページに区分けさ
れるEEPROMと、前記ページ毎にエラーの有無を検
出するエラー検出手段と、前記複数ページのうち、特定
のページをエラーフラグエリアとして、各ページのエラ
ー発生の有無を示すエラーフラグを記録するエラーフラ
グ書き込み手段と、前記エラーの発生したページの書き
込みデータを空きページに置換して書き込むデータ書き
込み置換手段と、前記エラーの発生したページに前記デ
ータ置換手段で置換される置換先アドレスを書き込むア
ドレス書き込み手段と、前記エラーフラグエリアを参照
してエラー発生ページを判別し、そのページのバイトデ
ータを読出して置換先アドレスを判別し、判別したアド
レスに基づいて置換ページからデータを読み出すデータ
読出し手段とを具備してなることを特徴とするメモリカ
ード装置。
1. An EEPROM capable of writing and reading in byte units and divided into a plurality of pages in units composed of several bytes, an error detecting unit for detecting the presence or absence of an error for each page, and the plurality of pages. Among them, an error flag writing unit that records an error flag indicating whether or not an error has occurred in each page by using a specific page as an error flag area, and data to be written by replacing the write data of the page in which the error has occurred with a blank page Write replacement means, address writing means for writing the replacement destination address to be replaced by the data replacement means on the page where the error has occurred, and the error flag area to determine the error page, and the byte data of the page To determine the replacement destination address, and based on the determined address, replace A memory card device, comprising: a data reading means for reading data from a page.
【請求項2】 前記アドレス書き込み手段は、前記エラ
ー発生ページの複数バイトに置換先アドレスを書き込
み、前記データ読出し手段は、エラー発生ページの複数
バイトからデータを読出して、多数決により置換先アド
レスを判別するようにしたことを特徴とする請求項1記
載のメモリカード装置。
2. The address writing means writes a replacement destination address in a plurality of bytes of the error occurrence page, and the data reading means reads data from a plurality of bytes of the error occurrence page and determines a replacement destination address by a majority decision. The memory card device according to claim 1, wherein
JP20070591A 1991-08-09 1991-08-09 Memory card device Pending JPH0546490A (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP20070591A JPH0546490A (en) 1991-08-09 1991-08-09 Memory card device
DE69223099T DE69223099T2 (en) 1991-08-09 1992-08-06 Recording device for a memory card
EP92113423A EP0528280B1 (en) 1991-08-09 1992-08-06 Memory card apparatus
EP96120115A EP0772358A1 (en) 1991-08-09 1992-08-06 Memory card apparatus
US08/505,369 US5579502A (en) 1991-08-09 1995-07-21 Memory card apparatus using EEPROMS for storing data and an interface buffer for buffering data transfer between the EEPROMS and an external device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20070591A JPH0546490A (en) 1991-08-09 1991-08-09 Memory card device

Publications (1)

Publication Number Publication Date
JPH0546490A true JPH0546490A (en) 1993-02-26

Family

ID=16428860

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20070591A Pending JPH0546490A (en) 1991-08-09 1991-08-09 Memory card device

Country Status (1)

Country Link
JP (1) JPH0546490A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0919967A2 (en) 1997-09-29 1999-06-02 Sharp Kabushiki Kaisha Semiconductor memory device and sales processor having the same
US6421279B1 (en) 1993-04-08 2002-07-16 Hitachi, Ltd. Flash memory control method and apparatus processing system therewith
JP2005196658A (en) * 2004-01-09 2005-07-21 Buffalo Inc External memory unit
JP2008048763A (en) * 2006-08-22 2008-03-06 Daiman:Kk Game machine
JP2008079753A (en) * 2006-09-27 2008-04-10 Daiman:Kk Game machine
JP2008079754A (en) * 2006-09-27 2008-04-10 Daiman:Kk Game machine
US7418436B2 (en) 2002-01-31 2008-08-26 Matsushita Electric Industrial Co., Ltd. Information processing apparatus, memory management apparatus, memory management method, and information processing method
JP2008228955A (en) * 2007-03-20 2008-10-02 Daiman:Kk Game machine
JP2014534539A (en) * 2011-11-18 2014-12-18 マイクロン テクノロジー, インク. Device and method for storing validity mask and operating device

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6421279B1 (en) 1993-04-08 2002-07-16 Hitachi, Ltd. Flash memory control method and apparatus processing system therewith
EP0919967A2 (en) 1997-09-29 1999-06-02 Sharp Kabushiki Kaisha Semiconductor memory device and sales processor having the same
US6233698B1 (en) 1997-09-29 2001-05-15 Sharp Kabushiki Kaisha Semiconductor memory device and sales processor having the same
US7418436B2 (en) 2002-01-31 2008-08-26 Matsushita Electric Industrial Co., Ltd. Information processing apparatus, memory management apparatus, memory management method, and information processing method
JP2005196658A (en) * 2004-01-09 2005-07-21 Buffalo Inc External memory unit
JP2008048763A (en) * 2006-08-22 2008-03-06 Daiman:Kk Game machine
JP2008079753A (en) * 2006-09-27 2008-04-10 Daiman:Kk Game machine
JP2008079754A (en) * 2006-09-27 2008-04-10 Daiman:Kk Game machine
JP2008228955A (en) * 2007-03-20 2008-10-02 Daiman:Kk Game machine
JP2014534539A (en) * 2011-11-18 2014-12-18 マイクロン テクノロジー, インク. Device and method for storing validity mask and operating device
US9274883B2 (en) 2011-11-18 2016-03-01 Micron Technology, Inc. Apparatuses and methods for storing validity masks and operating apparatuses

Similar Documents

Publication Publication Date Title
KR970001201B1 (en) Memory card device
US5579502A (en) Memory card apparatus using EEPROMS for storing data and an interface buffer for buffering data transfer between the EEPROMS and an external device
US20080028132A1 (en) Non-volatile storage device, data storage system, and data storage method
US8060684B2 (en) Memory control apparatus, memory control method and program
US20050036372A1 (en) Data storing apparatus
JP3122201B2 (en) Memory card device
JP3122222B2 (en) Memory card device
JPH0546490A (en) Memory card device
JPH04307644A (en) Memory card storage control system
JP3117244B2 (en) EEPROM control device
JP2635448B2 (en) Data recording method in memory card and memory card system
JP3163124B2 (en) Electronic still camera device
JPH0546488A (en) Memory card device
JP3099908B2 (en) EEPROM control device
JPH0546459A (en) Memory card device
JPH0546469A (en) Memory card
JP2818628B2 (en) Data recording method in memory card and memory card system
JPH0547189A (en) Memory card device
JP3175974B2 (en) Memory card device
JPH04307647A (en) Memory card storage control system
JPH06139138A (en) Memory card device
JPH05151099A (en) Memory card device
JPH0546468A (en) Memory card
JPH06139131A (en) Memory card device
JPH05313989A (en) Memory card device