JPH0547190A - Memory card device - Google Patents

Memory card device

Info

Publication number
JPH0547190A
JPH0547190A JP20031091A JP20031091A JPH0547190A JP H0547190 A JPH0547190 A JP H0547190A JP 20031091 A JP20031091 A JP 20031091A JP 20031091 A JP20031091 A JP 20031091A JP H0547190 A JPH0547190 A JP H0547190A
Authority
JP
Japan
Prior art keywords
data
page
eeprom
written
erased
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
JP20031091A
Other languages
Japanese (ja)
Inventor
Koji Maruyama
晃司 丸山
Kazuo Konishi
和夫 小西
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 JP20031091A priority Critical patent/JPH0547190A/en
Priority to DE69223099T priority patent/DE69223099T2/en
Priority to EP92113423A priority patent/EP0528280B1/en
Priority to EP96120115A priority patent/EP0772358A1/en
Publication of JPH0547190A publication Critical patent/JPH0547190A/en
Priority to US08/505,369 priority patent/US5579502A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To prevent to erase excessively even data unnecessitating to erase by corresponding to new data quantity to rewrite and by erasing the storing content of an EEPROM in pages. CONSTITUTION:By a holding means 14 inputting/outputting the data in bytes and a condition inputting the data of a prescribed byte number constituting a first page to this holding means 14, a discriminating means 13 discriminates whether the data of in bytes constituting continuously a next second page is inputted or not. Then, by the data input/output control circuit 13, in the state of being decided to be inputted by the above-mentioned discriminating means 13, the data constituting a first page held by the holding means 14 is written to the EEPROM 17 and, simultaneously, the storing area of the EEPROM 17 to write the data constituting the second page is erased in pages. Thus, a matter that next page is erased automatically in spite of the data to write is not present is prevented.

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は書き込みスピード及び読み出し
スピードが共に遅くなっている。また、EEPROM
は、ページモードにおいて、1ページ分の大量のデータ
を一斉に書き込み及び読み出しすることから、ランダム
アクセスモードに比してデータの書き込みスピード及び
読み出しスピードは速くなっている。
In the random access mode,
The SRAM has a high writing speed and a high reading speed, and the EEPROM has a low writing speed and a low reading speed. In addition, EEPROM
In the page mode, since a large amount of data for one page is written and read all at once, the data write speed and the data read 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. The erase mode includes a chip erase that erases all the contents stored in the EEPROM at once and a page erase that erases the contents stored in page units.

【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に対するデータの書き替え動作が、まず、書き替
えようとする記憶領域に新たなデータの書き込みを行な
うとともに、その時点で、記憶領域の次の1ページ分を
自動的にページイレースしておき、次の1ページ分のデ
ータの書き込みに対処させるという動作を繰り返すよう
にしていることである。
In this case, the EEP is particularly problematic.
In the data rewriting operation for the ROM, first, new data is written to the storage area to be rewritten, and at that time, the next one page of the storage area is automatically page erased. That is, the operation of coping with the writing of data for the next one page is repeated.

【0015】このため、1ページが例えば512バイト
で構成されているすると、入力データがそれ以下の例え
ば300バイトで終了すれば次のページはイレースされ
ないが、入力データが丁度512バイトで終了される
と、次に書き込むべきデータがないにもかかわらず次の
ページが自動的にイレースされてしまい、消去されなく
てもすむデータまでもが余分に消去されてしまうという
問題が生じている。
For this reason, if one page is composed of 512 bytes, for example, if the input data ends at 300 bytes below that, the next page is not erased, but the input data ends at just 512 bytes. Then, there is a problem that the next page is automatically erased even if there is no data to be written next, and even data that does not have to be erased is additionally erased.

【0016】[0016]

【発明が解決しようとする課題】以上のように、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 even when data is rewritten, data that does not need to be erased is additionally erased.

【0017】そこで、この発明は上記事情を考慮してな
されたもので、書き替えるべき新たなデータの量に対応
してEEPROMの記憶内容をページイレースすること
ができ、消去しなくてもすむデータまでもが余分に消去
されてしまうという不都合を防止し得る極めて良好なメ
モリカード装置を提供することを目的とする。
Therefore, the present invention has been made in consideration of the above circumstances, and the contents stored in the EEPROM can be page erased in accordance with the amount of new data to be rewritten, and the data need not be erased. It is an object of the present invention to provide an extremely good memory card device capable of preventing the inconvenience that the contents are erased excessively.

【0018】[0018]

【課題を解決するための手段】この発明に係るメモリカ
ード装置は、データの消去及び書き込みがページ単位で
行なわれるEEPROMを備えたものを対象としてい
る。そして、データがバイト単位で入力される保持手段
と、この保持手段に第1のページを構成する所定のバイ
ト数のデータが入力された状態で、継続して次の第2の
ページを構成するバイト単位のデータが入力されたか否
かを判別する判別手段と、この判別手段で入力されたと
判定された状態で、保持手段に保持された第1のページ
を構成するデータをEEPROMに書き込むとともに、
第2のページを構成するデータを書き込むべきEEPR
OMの記憶領域をページ単位で消去する制御手段とを備
えるようにしたものである。
A memory card device according to the present invention is intended for a memory card device provided with an EEPROM for erasing and writing data in page units. Then, the holding means for inputting data in byte units and the next second page are continuously formed in a state where a predetermined number of bytes of data forming the first page are input to the holding means. A discriminating means for discriminating whether or not the data in byte unit is inputted, and in a state where it is judged that the data is inputted by the discriminating means, the data constituting the first page held in the holding means is written in the EEPROM
EEPR to write the data that makes up the second page
A control means for erasing the storage area of the OM in page units is provided.

【0019】[0019]

【作用】上記のような構成によれば、第1のページを構
成する全データが保持手段に保持された状態で、ただち
にEEPROMの第2のページを構成するデータを書き
込むべき記憶領域をページ単位で消去せずに、保持手段
に第1のページを構成する全データが入力された状態
で、継続して次の第2のページを構成するバイト単位の
データが入力されたか否かを判別し、入力されたと判定
された状態でEEPROMの第2のページを構成するデ
ータを書き込むべき記憶領域をページ単位で消去するよ
うにしたので、書き替えるべき新たなデータの量に対応
してEEPROMの記憶内容をページイレースすること
ができ、消去しなくてもすむデータまでもが余分に消去
されてしまうという不都合を防止することができる。
According to the above-mentioned structure, the storage area in which the data forming the second page of the EEPROM is to be immediately written is stored in page units while all the data forming the first page is held in the holding means. In the state where all the data forming the first page is input to the holding means without erasing with, it is determined whether or not the byte unit data forming the next second page is continuously input. Since the storage area of the EEPROM for writing the second page data is erased page by page when it is determined that the data has been input, the EEPROM storage corresponding to the amount of new data to be rewritten. The contents can be page erased, and it is possible to prevent the inconvenience that even data that does not need to be erased is erased excessively.

【0020】[0020]

【実施例】以下、この発明を電子スチルカメラ装置に適
用した場合の一実施例について図面を参照して詳細に説
明する。図1において、11はメモリカード本体で、そ
の一端部に設置されたコネクタ12を介して、図示しな
い電子スチルカメラ本体に接続されるようになされてい
る。このコネクタ12には、電子スチルカメラ本体側か
ら、メモリカード本体11に書き込むべきデジタルデー
タDAと、その書き込み場所を示すアドレスデータAD
とが供給される。これらデジタルデータDA及びアドレ
スデータADは、バスラインD0〜D7を介してデータ
入出力制御回路13に供給されている。
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 provided with digital data DA to be written in the memory card body 11 from the electronic still camera body side and address data AD indicating the writing location.
And are supplied. The digital data DA and the address data AD are supplied to the data input / output control circuit 13 via the bus lines D0 to D7.

【0021】また、電子スチルカメラ本体からは、コネ
クタ12に対して、メモリカード本体11を選択したと
きH(ハイ)レベルとなるカードイネーブル信号CE
と、バスラインD0〜D7に供給されたデータがアドレ
スデータADのときL(ロー)レベルとなりデジタルデ
ータDAのときHレベルとなるアドレス/データ切替信
号A/Dと、後述するEEPROMに対するデータ書き
込み要求のときLレベルとなりデータ読み出し要求のと
きHレベルとなるリード/ライト切替信号R/Wと、ア
ドレスデータADに同期したバスクロックBCKとが、
供給されるようになっている。
Further, from the electronic still camera main body, to the connector 12, a card enable signal CE which becomes H (high) level when the memory card main body 11 is selected.
And an address / data switching signal A / D which becomes L (low) level when the data supplied to the bus lines D0 to D7 is address data AD and becomes H level when the data is digital data DA, and a data write request to an EEPROM described later. The read / write switching signal R / W which becomes L level at the time of and becomes H level at the time of data read request, and the bus clock BCK synchronized with the address data AD
It is being supplied.

【0022】これらカードイネーブル信号CE,アドレ
ス/データ切替信号A/D,リード/ライト切替信号R
/W及びバスクロックBCKも、データ入出力制御回路
13に供給されている。また、電子スチルカメラ本体か
らは、コネクタ12を介してEEPROMに対するデー
タのイレースを要求する命令も、データ入出力制御回路
13に供給されるようになっている。また、このデータ
入出力制御回路13からは、電子スチルカメラ本体から
のデジタルデータDAの入力許可時にHレベルとなり、
入力拒否時にLレベルとなるレディ/ビジィ切替信号R
DY/BSYが発生されるようになっている。
These card enable signal CE, address / data switching signal A / D, read / write switching signal R
/ W and the bus clock BCK are also supplied to the data input / output control circuit 13. Further, from the electronic still camera body, a command for requesting data erase to the EEPROM is also supplied to the data input / output control circuit 13 via the connector 12. Further, from the data input / output control circuit 13, when the input of the digital data DA from the electronic still camera main body is permitted, it becomes H level,
Ready / busy switching signal R which becomes L level when input is rejected
DY / BSY is generated.

【0023】ここで、概略的な動作について説明する
と、上記コネクタ12に供給されたデジタルデータDA
は、データ入出力制御回路13の制御により、一旦バッ
ファメモリ14に取り込まれ記録される。このときのバ
ッファメモリ14のデジタルデータDAの取り込みタイ
ミングは、アドレス発生回路15から出力されるアドレ
スデータによってコントロールされる。また、このアド
レス発生回路15は、セレクタ16によって選択された
クロックCKをカウントして、バッファメモリ14への
アドレスデータを生成している。このセレクタ16に
は、上記バスクロックBCKとデータ入出力制御回路1
3から出力されるクロックYCKとが供給されるように
なっている。
Here, a schematic operation will be described. The digital data DA supplied to the connector 12 is described.
Under the control of the data input / output control circuit 13, is temporarily stored in the buffer memory 14 and recorded. At this time, the fetch timing of the digital data DA of the buffer memory 14 is controlled by the address data output from the address generation circuit 15. The address generation circuit 15 also counts the clock CK selected by the selector 16 to generate address data for the buffer memory 14. The selector 16 includes the bus clock BCK and the data input / output control circuit 1
The clock YCK output from the circuit 3 is supplied.

【0024】そして、バッファメモリ14のデジタルデ
ータDAの取り込み時には、セレクタ16が、データ入
出力制御回路13から出力されるセレクト信号SELに
よってバスクロックBCKを選択し、クロックCKとし
てアドレス発生回路15に導出している。このため、電
子スチルカメラ本体からコネクタ12に送出されたデジ
タルデータDAは、バスクロックBCKに基づいて生成
されるアドレスデータにしたがって、バッファメモリ1
4に書き込まれることになる。
Then, when the digital data DA of the buffer memory 14 is fetched, the selector 16 selects the bus clock BCK by the select signal SEL output from the data input / output control circuit 13 and outputs it to the address generation circuit 15 as the clock CK. is doing. Therefore, the digital data DA sent from the electronic still camera body to the connector 12 is stored in the buffer memory 1 according to the address data generated based on the bus clock BCK.
4 will be written.

【0025】その後、データ入出力制御回路13は、バ
ッファメモリ14に対するデジタルデータDAの書き込
みが終了すると、セレクト信号SELを制御して、自己
の生成するクロックYCKが、アドレス発生回路15に
導出されるようにセレクタ16を切り替える。このた
め、クロックYCKに基づいてアドレス発生回路15で
生成されるアドレスデータによって、バッファメモリ1
4からデジタルデータDAが読み出される。
After that, when the writing of the digital data DA into the buffer memory 14 is completed, the data input / output control circuit 13 controls the select signal SEL so that the clock YCK generated by itself is led to the address generation circuit 15. The selector 16 is switched as follows. Therefore, the buffer memory 1 is generated by the address data generated by the address generation circuit 15 based on the clock YCK.
The digital data DA is read from 4.

【0026】このとき、データ入出力制御回路13は、
EEPROM17に対してチップイネーブル信号CEN
及びライトイネーブル信号WEを出力するとともに、ア
ドレスデータADを出力し、バッファメモリ14から読
み出されたデジタルデータDAを、EEPROM17に
例えば512バイトのページ単位で書き込むように制御
する。そして、EEPROM17にデジタルデータDA
が書き込まれた状態で、データ入出力制御回路13は、
EEPROM17に対して、アウトイネーブルデータO
E及び先にデータの書き込みを指定したアドレスデータ
ADを出力して、EEPROM17から書き込んだデジ
タルデータDAを読み出させ、バッファメモリ14に記
録されたデジタルデータDAと一致しているか否かを判
別する、書き込みベリファイを実行する。
At this time, the data input / output control circuit 13 is
Chip enable signal CEN for EEPROM 17
And the write enable signal WE is output, the address data AD is output, and the digital data DA read from the buffer memory 14 is controlled to be written in the EEPROM 17, for example, in 512-byte page units. Then, the digital data DA is stored in the EEPROM 17.
Is written, the data input / output control circuit 13
Out enable data O for the EEPROM 17
E and the address data AD that previously specifies the writing of data are output, the written digital data DA is read from the EEPROM 17, and it is determined whether or not it matches the digital data DA recorded in the buffer memory 14. , Write verify is executed.

【0027】そして、EEPROM17から読み出した
デジタルデータDAと、バッファメモリ14に記録され
たデジタルデータDAとが一致していないと、データ入
出力制御回路13は、再度、バッファメモリ14からE
EPROM17にデジタルデータDAを転送して書き込
みを行ない、この動作が、EEPROM17から読み出
したデジタルデータDAと、バッファメモリ14に記録
されたデジタルデータDAとが完全に一致するまで繰り
返され、ここにデジタルデータDAのEEPROM17
への書き込みが行なわれる。
If the digital data DA read from the EEPROM 17 and the digital data DA recorded in the buffer memory 14 do not match, the data input / output control circuit 13 again reads from the buffer memory 14 E.
The digital data DA is transferred to and written in the EPROM 17, and this operation is repeated until the digital data DA read from the EEPROM 17 and the digital data DA recorded in the buffer memory 14 completely match. DA EEPROM 17
Is written to.

【0028】また、電子スチルカメラ本体からEEPR
OM17に記録されたデータをイレースする命令が発生
されると、データ入出力制御回路13は、その消去命令
に基づいて消去回路18を駆動する。この消去回路18
は、データ入出力制御回路13の制御に基づいて、EE
PROM17のアドレスライン及びデータラインに消去
用の信号を出力することにより、EEPROM17を電
気的にチップイレースまたはページイレースする。
In addition, from the electronic still camera body to the EEPR
When an instruction to erase the data recorded in the OM 17 is generated, the data input / output control circuit 13 drives the erasing circuit 18 based on the erasing instruction. This erase circuit 18
On the basis of the control of the data input / output control circuit 13,
By outputting a signal for erasing to the address line and data line of the PROM 17, the EEPROM 17 is electrically chip-erased or page-erased.

【0029】次に、EEPROM17から、デジタルデ
ータDAをメモリカード本体11の外部に読み出す動作
について説明する。まず、電子スチルカメラ本体側から
コネクタ12を介して読み出し要求と読み出すべきデー
タの記録されたアドレスが指定される。すると、データ
入出力制御回路13は、EEPROM17に対してチッ
プイネーブル信号CEN,アウトイネーブルデータOE
及びアドレスデータADを出力し、EEPROM17か
らページ単位でデジタルデータDAを読み出すととも
に、自己の生成するクロックYCKがアドレス発生回路
15に導出されるようにセレクタ16を切り替え、バッ
ファメモリ13に書き込ませる。
Next, the operation of reading the digital data DA from the EEPROM 17 to the outside of the memory card body 11 will be described. First, a read request and a recorded address of data to be read are specified from the electronic still camera body side via the connector 12. Then, the data input / output control circuit 13 sends the chip enable signal CEN and the out enable data OE to the EEPROM 17.
Also, the address data AD is output, the digital data DA is read from the EEPROM 17 in page units, and the selector 16 is switched so that the clock YCK generated by itself is derived to the address generation circuit 15 and written in the buffer memory 13.

【0030】その後、データ入出力制御回路13は、コ
ネクタ12を介して電子スチルカメラ本体側から供給さ
れるバスクロックBCKが、アドレス発生回路15に導
出されるようにセレクタ16を切り替え、バスクロック
BCKに基づいてアドレス発生回路15で発生されるア
ドレスデータで、バッファメモリ14からデータを読み
出し、コネクタ12を介して電子スチルカメラ本体に導
出させ、ここにデジタルデータDAの読み出しが行なわ
れる。
Thereafter, the data input / output control circuit 13 switches the selector 16 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 15, and the bus clock BCK. Based on the address data generated by the address generation circuit 15, the data is read from the buffer memory 14 and led out to the electronic still camera body through the connector 12, and the digital data DA is read there.

【0031】したがって、上記のような構成によれば、
電子スチルカメラ本体とメモリカード本体11との間に
おけるデータ転送は、必ずバッファメモリ14を介して
行なわれるので、データの書き込みスピード及び読み出
しスピードも向上し、SRAMカードライクに使用する
ことができるようになる。また、EEPROM17に特
有の書き込みベリファイも、メモリカード本体11の内
部に設けられたバッファメモリ14を用いて行なうよう
にしているので、メモリカード本体11の取り扱いとし
ては、全くSRAMカードライクに使用することができ
る。
Therefore, according to the above configuration,
Since the data transfer between the electronic still camera body and the memory card body 11 is always performed via the buffer memory 14, the data writing speed and the data reading speed are improved so that the data can be used in an SRAM card-like manner. Become. Further, since the write verify peculiar to the EEPROM 17 is also carried out by using the buffer memory 14 provided inside the memory card body 11, the memory card body 11 should be used just like an SRAM card. You can

【0032】ここで、EEPROM17に対するデジタ
ルデータDAの書き込み動作の詳細なタイミングを、図
2に示している。まず、カードイネーブル信号CEがH
レベルとなってメモリカード本体11が指定されると、
アドレス/データ切替信号A/DがLレベルでバスライ
ンD0〜D7にアドレスデータADが供給される。この
とき、アドレスデータADに同期してバスクロックBC
Kが発生されるとともに、リード/ライト切替信号R/
WがLレベルのデータ書き込み要求状態となされ、レデ
ィ/ビジィ切替信号RDY/BSYがHレベルの入力許
可状態となされている。
Here, the detailed timing of the writing operation of the digital data DA to the EEPROM 17 is shown in FIG. First, the card enable signal CE is H
When the memory card body 11 is designated as the level,
When the address / data switching signal A / D is at L level, the address data AD is supplied to the bus lines D0 to D7. At this time, the bus clock BC is synchronized with the address data AD.
K is generated and read / write switching signal R /
W is in the L level data write request state, and ready / busy switching signal RDY / BSY is in the H level input enable state.

【0033】このような状態で、アドレス/データ切替
信号A/DがHレベルに反転し、バスラインD0〜D7
のデータがデジタルデータDAに変わると、以後、D0
〜D511までの512個つまり1ページ分のデジタル
データDAが512個のバスクロックBCKとともにデ
ータ入出力制御回路13に入力され、順次バッファメモ
リ14に書き込まれる。すると、データ入出力制御回路
13は、D0〜D511までの1ページ分のデジタルデ
ータDAがバッファメモリ14に書き込まれた状態で、
513個目のバスクロックBCKが発生されるまで待
ち、その513個目のバスクロックBCKに対応するD
512のデジタルデータDAが存在するか否かを判別す
る。
In such a state, the address / data switching signal A / D is inverted to H level and the bus lines D0 to D7.
When the data of No. changes to digital data DA, D0
512 digital data DA up to D511, that is, one page of digital data DA is input to the data input / output control circuit 13 together with 512 bus clocks BCK and sequentially written in the buffer memory 14. Then, the data input / output control circuit 13, in a state where the digital data DA for one page from D0 to D511 is written in the buffer memory 14,
Wait until the 513th bus clock BCK is generated, and then the D corresponding to the 513th bus clock BCK
It is determined whether or not the 512 digital data DA exists.

【0034】そして、データ入出力制御回路13は、5
13個目のバスクロックBCKに対応するD512のデ
ジタルデータDAが存在した場合、そのD512のデジ
タルデータDAをバッファメモリ14に書き込むととも
に、該513個目のバスクロックBCKに同期して、レ
ディ/ビジィ切替信号RDY/BSYをLレベルに反転
させ、電子スチルカメラ本体からの入力拒否状態とな
る。このとき、データ入出力制御回路13は、消去回路
18を介してD512以降の1ページ分のデジタルデー
タDAを書き込むべき、EEPROM17の1ページ分
の記憶領域を自動的にページイレースする。
The data input / output control circuit 13 outputs 5
When the digital data DA of D512 corresponding to the thirteenth bus clock BCK exists, the digital data DA of D512 is written in the buffer memory 14, and the ready / busy state is synchronized with the 513th bus clock BCK. The switching signal RDY / BSY is inverted to the L level, and the input of the electronic still camera body is rejected. At this time, the data input / output control circuit 13 automatically page erases the storage area for one page of the EEPROM 17 into which the digital data DA for one page after D512 should be written via the erasing circuit 18.

【0035】その後、データ入出力制御回路13は、バ
ッファメモリ14に書き込まれたデジタルデータDAの
うち、D0〜D511までの1ページ分のデジタルデー
タDAを、既にページイレースしているEEPROM1
7の記憶領域にページ単位で書き込ませ、この書き込み
動作の間、レディ/ビジィ切替信号RDY/BSYをL
レベルにして入力拒否状態を保っている。
After that, the data input / output control circuit 13 has already erased one page of digital data DA from D0 to D511 among the digital data DA written in the buffer memory 14 to the EEPROM 1 which has already erased the page.
7 is written in the memory area in page units, and the ready / busy switching signal RDY / BSY is set to L during this writing operation.
It is set to the level and the input refusal state is maintained.

【0036】このようにして、バッファメモリ14から
EEPROM17への1ページ分のデジタルデータの書
き込みが終了されると、データ入出力制御回路13は、
レディ/ビジィ切替信号RDY/BSYをHレベルの入
力許可状態とし、D513以降のデジタルデータDAを
先にバッファメモリ14に書き込んだD512のデジタ
ルデータDAに続けてバッファメモリ14に書き込むよ
うに制御し、以下同様な動作が繰り返されて、EEPR
OM17に対するページ書き込み動作が行なわれる。
When the writing of one page of digital data from the buffer memory 14 to the EEPROM 17 is completed in this way, the data input / output control circuit 13
The ready / busy switching signal RDY / BSY is set to the input permission state of H level, and the digital data DA after D513 is controlled to be written in the buffer memory 14 following the digital data DA of D512 previously written in the buffer memory 14, The same operation is repeated thereafter, and the EEPR
A page write operation for the OM 17 is performed.

【0037】したがって、上記実施例のような構成によ
れば、D0〜D511までの1ページ分のデジタルデー
タDAをバッファメモリ14に書き込んだ状態で、ただ
ちにレディ/ビジィ切替信号RDY/BSYをLレベル
にしてEEPROM17をページイレースせず、1ペー
ジ分+1個目である513個目のバスクロックBCKが
発生されるまで待ち、その513個目のバスクロックB
CKに対応するD512のデジタルデータDAが存在す
るか否かを判別し、存在した場合にレディ/ビジィ切替
信号RDY/BSYをLレベルにして、D512以降の
1ページ分のデジタルデータDAを書き込むべきEEP
ROM17の記憶領域をページイレースするようにした
ので、EEPROM17に書き込むべきデジタルデータ
DAが丁度512バイトで終了された場合でも、EEP
ROM17の次のページが自動的にイレースされてしま
うことがなく、消去されなくてもすむデジタルデータD
Aまでもが余分に消去されてしまうという不都合を防止
することができる。
Therefore, according to the configuration of the above embodiment, the ready / busy switching signal RDY / BSY is immediately set to the L level while the digital data DA for one page D0 to D511 is written in the buffer memory 14. Then, the EEPROM 17 is not page-erased, and waits until the 513th bus clock BCK which is the 1st page + 1 is generated, and the 513th bus clock B is generated.
It is determined whether or not the digital data DA of D512 corresponding to CK exists, and if there is, the ready / busy switching signal RDY / BSY is set to L level, and the digital data DA for one page after D512 should be written. EEP
Since the storage area of the ROM 17 is page erased, even if the digital data DA to be written in the EEPROM 17 is just 512 bytes, the EEP
The next page of the ROM 17 is not erased automatically and the digital data D need not be erased.
It is possible to prevent the inconvenience that even A is erased excessively.

【0038】この場合、1ページ分+1個目である51
3個目のバスクロックBCKに対応するD512のデジ
タルデータDAが存在するか否かを判別せずに、図3に
示すように512個目のバスクロックBCKに同期して
レディ/ビジィ切替信号RDY/BSYをLレベルにし
EEPROM17の次のページをイレースしてしまう
と、EEPROM17に書き込むべきデジタルデータD
Aが丁度512バイトで終了された場合に、EEPRO
M17の次のページが自動的にイレースされてしまい、
消去されなくてもすむデジタルデータDAまでもが余分
に消去されてしまうという不都合が生じることになる。
なお、この発明は上記実施例に限定されるものではな
く、この外その要旨を逸脱しない範囲で種々変形して実
施することができる。
In this case, one page plus the first 51
As shown in FIG. 3, the ready / busy switching signal RDY is synchronized with the 512th bus clock BCK without determining whether the digital data DA of D512 corresponding to the third bus clock BCK exists. When / BSY is set to L level and the next page of the EEPROM 17 is erased, the digital data D to be written in the EEPROM 17
EEPRO if A ends in just 512 bytes
The next page of M17 is erased automatically,
Even if it is not erased, even the digital data DA will be erased excessively.
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.

【0039】[0039]

【発明の効果】以上詳述したようにこの発明によれば、
書き替えるべき新たなデータの量に対応してEEPRO
Mの記憶内容をページイレースすることができ、消去し
なくてもすむデータまでもが余分に消去されてしまうと
いう不都合を防止し得る極めて良好なメモリカード装置
を提供することができる。
As described in detail above, according to the present invention,
EEPRO corresponding to the amount of new data to be rewritten
It is possible to provide a very good memory card device capable of page-erasing the stored contents of M and preventing the inconvenience that even data that does not need to be erased is erased excessively.

【図面の簡単な説明】[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 timing chart shown for explaining the operation of the embodiment.

【図3】同実施例の効果を説明するために示すタイミン
グ図。
FIG. 3 is a timing chart shown for explaining the effect of the embodiment.

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

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

11…メモリカード本体、12…コネクタ、13…デー
タ入出力制御回路、14…バッファメモリ、15…アド
レス発生回路、16…セレクタ、17…EEPROM、
18…消去回路。
11 ... Memory card main body, 12 ... Connector, 13 ... Data input / output control circuit, 14 ... Buffer memory, 15 ... Address generation circuit, 16 ... Selector, 17 ... EEPROM,
18 ... Erase circuit.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 須山 高彰 東京都港区新橋3丁目3番9号 東芝エ ー・ブイ・イー株式会社内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Takaaki Suyama 3-3-9 Shimbashi, Minato-ku, Tokyo Inside Toshiba Abu E., Ltd.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 データの消去及び書き込みがページ単位
で行なわれるEEPROMを備えたメモリカード装置に
おいて、前記データがバイト単位で入力される保持手段
と、この保持手段に第1のページを構成する所定のバイ
ト数のデータが入力された状態で、継続して次の第2の
ページを構成するバイト単位のデータが入力されたか否
かを判別する判別手段と、この判別手段で入力されたと
判別された状態で、前記保持手段に保持された前記第1
のページを構成するデータを前記EEPROMに書き込
むとともに、前記第2のページを構成するデータを書き
込むべき前記EEPROMの記憶領域をページ単位で制
御手段とを具備してなることを特徴とするメモリカード
装置。
1. In a memory card device having an EEPROM in which data is erased and written in page units, holding means for inputting the data in byte units and a predetermined page constituting the first page in the holding means. In the state where the data of the number of bytes has been input, it is determined that the determination unit determines whether or not the data of the byte unit forming the next second page is continuously input, and the determination unit has input the data. The first portion held by the holding means in the closed state.
Memory card device for writing the data forming the page of the above into the EEPROM and controlling the storage area of the EEPROM for writing the data forming the second page in page units. .
JP20031091A 1991-08-09 1991-08-09 Memory card device Pending JPH0547190A (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP20031091A JPH0547190A (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
JP20031091A JPH0547190A (en) 1991-08-09 1991-08-09 Memory card device

Publications (1)

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

Family

ID=16422191

Family Applications (1)

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

Country Status (1)

Country Link
JP (1) JPH0547190A (en)

Similar Documents

Publication Publication Date Title
US7116578B2 (en) Non-volatile memory device and data storing method
EP0907142B1 (en) Memory card apparatus
EP0498392A2 (en) IC memory card system
KR19990007270A (en) Memory Management Method
JP3122201B2 (en) Memory card device
US5724544A (en) IC memory card utilizing dual eeproms for image and management data
JP3122222B2 (en) Memory card device
JP2002108713A (en) Memory device and memory access control method
US5847997A (en) PC card
JP3117244B2 (en) EEPROM control device
JPH0546490A (en) Memory card device
JPH0547189A (en) Memory card device
JP2584119B2 (en) Data recording method in memory card and memory card system
JPH0547190A (en) Memory card device
JP3163124B2 (en) Electronic still camera device
JP3099908B2 (en) EEPROM control device
JPH0546459A (en) Memory card device
JPH0546488A (en) Memory card device
JP3359942B2 (en) Memory card device
JP2006277736A (en) Writing method of nonvolatile storage device
JPH0546469A (en) Memory card
JPH06139138A (en) Memory card device
JPH06139131A (en) Memory card device
JPH0546468A (en) Memory card
JPH05313989A (en) Memory card device