JP2584120B2 - Data recording method in memory card and memory card system - Google Patents

Data recording method in memory card and memory card system

Info

Publication number
JP2584120B2
JP2584120B2 JP25737590A JP25737590A JP2584120B2 JP 2584120 B2 JP2584120 B2 JP 2584120B2 JP 25737590 A JP25737590 A JP 25737590A JP 25737590 A JP25737590 A JP 25737590A JP 2584120 B2 JP2584120 B2 JP 2584120B2
Authority
JP
Japan
Prior art keywords
memory
block
data
address
cluster
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.)
Expired - Lifetime
Application number
JP25737590A
Other languages
Japanese (ja)
Other versions
JPH04137078A (en
Inventor
幸一 郷原
薫 足立
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.)
Fujifilm Holdings Corp
Original Assignee
Fuji Photo Film 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 Fuji Photo Film Co Ltd filed Critical Fuji Photo Film Co Ltd
Priority to JP25737590A priority Critical patent/JP2584120B2/en
Priority to US07/726,173 priority patent/US5303198A/en
Priority to EP91112963A priority patent/EP0477503B1/en
Priority to DE69124323T priority patent/DE69124323T2/en
Publication of JPH04137078A publication Critical patent/JPH04137078A/en
Application granted granted Critical
Publication of JP2584120B2 publication Critical patent/JP2584120B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Television Signal Processing For Recording (AREA)
  • For Increasing The Reliability Of Semiconductor Memories (AREA)
  • Memory System (AREA)
  • Read Only Memory (AREA)

Description

【発明の詳細な説明】 技術分野 本発明は、たとえば、画像データや文字データなどの
データを記憶するためのメモリカードにおけるデータ記
録方法およびメモリカードシステムに関する。
Description: TECHNICAL FIELD The present invention relates to a data recording method and a memory card system in a memory card for storing data such as image data and character data.

背景技術 近年、電子スチルカメラ等の画像データやワードプロ
セッサ等の文字データを記録する媒体として、フロッピ
ーデイスクに代わり、半導体メモリを用いたより小型な
メモリカードが使用されるようになってきた。
BACKGROUND ART In recent years, as a medium for recording image data such as an electronic still camera and character data such as a word processor, a smaller memory card using a semiconductor memory has been used instead of a floppy disk.

従来、このようなメモリカードには、高速な読み出
し、および書き込み行うことができるスタティックRAM
(SRAM)が用いられていた。
Conventionally, such a memory card has a static RAM that can perform high-speed reading and writing.
(SRAM) was used.

しかしながら、このSRAMは、揮発性の半導体メモリで
あるので、バックアップ用の電池が必要であり、また、
画像データのように大容量のデータを記憶するものにな
ると高価となって、メモリカードの値段が高くなるとい
う問題があった。
However, since this SRAM is a volatile semiconductor memory, a backup battery is required, and
There is a problem in that storing large-capacity data such as image data becomes expensive and the price of the memory card becomes high.

そこで、近年、安価でしかもバックアップ電池の必要
がない不揮発性の半導体メモリであるEEPROM(電気的に
消去・再書き込み可能な読出専用メモリ)をメモリカー
ドに採用することが検討されている。このEEPROMは、そ
の記憶期間が電池なしで10年間以上の優れており、近年
ではSRAMに匹敵する読み出しまたは書き込み速度を備え
るようになって、しかも、その値段がSRAMの4分の1程
度ものが開発されている。
Therefore, in recent years, adoption of an inexpensive EEPROM (electrically erasable and rewritable read-only memory), which is a nonvolatile semiconductor memory that does not require a backup battery, as a memory card has been studied. This EEPROM has an excellent storage period of 10 years or more without a battery, and in recent years has provided a reading or writing speed comparable to that of SRAM, and the price is about a quarter of that of SRAM. Is being developed.

しかしながら、このEEPROMは、デバイスの性質上、消
去を考慮に入れなければならないため、メモリカードに
そのためのピンを増やす必要性やメモリカードの使用に
対してそれを運用する側での特別の配慮が生じ、従来の
SRAMで構成されたメモリカードとの互換性をとることが
困難であるということが問題になっていた。
However, due to the nature of the device, this EEPROM must take erasure into account, so there is a need to increase the number of pins for the memory card and special considerations on the operation side of the use of the memory card. Arising
The problem is that it is difficult to achieve compatibility with a memory card configured with SRAM.

ピンを増やす必要性としては、EEPROMではデータの書
き換えを上書きとしては行えず、この場合消去、書き込
みの2ステップが必要となるため、SRAMを用いたメモリ
カードと比較して、そのカードに消去用のピンが必要と
なる問題があった。
The necessity of increasing the number of pins is that EEPROM cannot rewrite data as overwriting. In this case, two steps of erasing and writing are required. There was a problem that required pins.

また、特別の配慮が必要である面としては、EEPROMの
消去方法に一括消去型(フラッシュタイプ)と、ブロッ
ク単位の消去の2種類のタイプがあり、ブロック単位の
消去ができるものではSRAMと同様にブロック単位の書き
換えを行うことができるが、フラッシュタイプを用いる
場合、SRAMのようにブロック単位の書き替えが自由に行
えないという問題があった。
In addition, special considerations are required for EEPROM erasing methods such as a batch erasing type (flash type) and a block type erasing method. For erasing in block units, similar to SRAM, However, when the flash type is used, there is a problem that the rewriting cannot be freely performed in block units unlike SRAM.

さらに、EEPROMにおいては、その消去、書込み回数が
制限されており、たとえば100回〜10000回の消去、書込
みの制限があり、ブロック消去型のEEPROMでは、1個所
に書き込みが集中すると、寿命が極めて早くなるという
問題があった。
Further, the number of times of erasing and writing is limited in EEPROM, for example, there is a limit of 100 to 10000 times of erasing and writing. In a block erasing type EEPROM, when writing is concentrated in one place, the life is extremely shortened. There was a problem of getting faster.

目 的 本発明は、このような従来技術の欠点を解消して、EE
PROMを用いたメモリカードでピン数を増やす必要がな
く、SRAMを用いたメモリカードとの互換性を図ることが
でき、かつブロック消去型のEEPROMを用いた場合に、そ
の寿命を長く保持することができるメモリカードの記録
方法およびメモリカードシステムを提供することを目的
とする。
Objective The present invention overcomes such disadvantages of the prior art and provides an EE
It is not necessary to increase the number of pins in a memory card using a PROM, compatibility with a memory card using an SRAM can be achieved, and long life can be maintained when using a block erase type EEPROM. It is an object of the present invention to provide a memory card recording method and a memory card system capable of performing the above.

発明の開示 本発明に係るメモリカードの記録方法によれば、メイ
ンメモリをブロック消去型のEEPROMを用いたメモリカー
ドにおけるデータ記録方法において、複数のメモリブロ
ックを備えた前記EEPROMに、そのうちの少なくとも1メ
モリブロックを何も書き込まれていない状態にある予備
ブロックとしておき、前回までにデータが書き込まれた
一のメモリブロックにそのデータの書き換えが行われる
アクセスが生じた際に、そのメモリブロックと予備ブロ
ックとの間の物理的アドレスの交換を行って、前回まで
にデータが書き込まれた一のメモリブロックのメモリ内
容を消去することにより、そのメモリブロックを予備ブ
ロックとして、予備ブロックから変換されたメモリブロ
ックに今回のアクセスによるデータを書き込んで、デー
タ保持ブロックとしてデータの書き換えを行う。
DISCLOSURE OF THE INVENTION According to a recording method of a memory card according to the present invention, in a data recording method in a memory card using a block erase type EEPROM as a main memory, at least one of the EEPROMs having a plurality of memory blocks is stored in the EEPROM. A memory block is set as a spare block in which nothing has been written, and when an access to rewrite the data occurs in one memory block to which data has been written so far, the memory block and the spare block are used. By exchanging the physical address between the memory block and the memory block converted from the spare block by erasing the memory contents of one memory block in which data has been written up to the previous time, The data from this access is written to the Data is rewritten as a lock.

また、本発明に係るメモリカードシステムによれば、
メモリカードのメインメモリにブロック消去型のEEPROM
を用いてなるメモリカードシステムにおいて、このメモ
リカードシステムは、複数のメモリブロックを備えた前
記EEPROMにて構成されて、そのうちの少なくとも1メモ
リブロックが何も書き込まれていない状態にある予備ブ
ロックとして構成されたメインメモリ部と、該メインメ
モリ部の各メモリブロックの物理的アドレスと、これら
メモリブロックにデータが保持されているか否か、それ
らのデータ保持状態とを記憶するメインメモリ管理メモ
リと、外部装置から送られた論理アドレスを読み込ん
で、その論理アドレスに相当するメインメモリ部のメモ
リブロックを選択するブロック選択部と、外部装置から
送られる制御信号に応動して各部を制御するシステム制
御部とを備えてなり、前記ブロック選択部は、読み込ん
だ論理アドレスが書き込みのためのアドレスの場合に、
前記メインメモリ管理メモリに記憶されたそのメモリブ
ロックのデータ記憶状態を読み取って判別する判別機能
と、この判別機能の判別結果が、そのメモリブロックに
データが記憶されていると判断された場合に、メインメ
モリ管理メモリのメモリブロックと予備ブロックとの物
理的アドレスをメインメモリ管理メモリに交換して書き
込むアドレス交換機能と、このアドレス交換機能によっ
て予備ブロックのアドレスから交換されたメモリブロッ
クを、読み込んた論理アドレスの対象ブロックとして選
択する選択機能とを有しており、また、前記システム制
御部は、ブロック選択部のアドレス交換機能によって予
備ブロックのアドレスに変換されたメモリブロックのメ
モリ内容を消去する消去機能を有する構成によって、メ
モリブロックに書き換えが生じた場合に、メモリブロッ
クを順次交換して各メモリブロックの使用回数を平均化
している。
According to the memory card system of the present invention,
Block erase type EEPROM in main memory of memory card
In this memory card system, the memory card system is configured by the EEPROM having a plurality of memory blocks, and at least one of the memory blocks is configured as a spare block in which nothing is written. A main memory unit, a physical address of each memory block in the main memory unit, whether or not data is held in these memory blocks, and a data holding state thereof, and an external memory. A block selecting unit that reads a logical address sent from the device and selects a memory block of a main memory unit corresponding to the logical address, and a system control unit that controls each unit in response to a control signal sent from an external device. The block selecting unit writes the read logical address. In the case of the address for the body,
A determination function of reading and determining the data storage state of the memory block stored in the main memory management memory, and a determination result of the determination function, when it is determined that data is stored in the memory block, An address exchange function for exchanging the physical addresses of the memory block of the main memory management memory and the spare block into the main memory management memory and writing the data, and a logic block for reading the memory block exchanged from the address of the spare block by the address exchange function A selection function of selecting a target block of an address, and the system control unit erasing a memory content of the memory block converted into an address of the spare block by the address exchange function of the block selection unit. With the configuration having If the recombination occurs, and averaging the number of uses of each memory block are sequentially replacing the memory block.

実施例の説明 次に、本発明に係るメモリカードにおける記録方法お
よびメモリカードシステムの一実施例を図面を参照して
詳細に説明する。
Description of Embodiment Next, an embodiment of a recording method and a memory card system in a memory card according to the present invention will be described in detail with reference to the drawings.

この実施例におけるメモリカードMは、第1図に示す
ように、データを記憶するためのメインメモリ部10と、
このメインメモリ部10の書き込み制御、または読み出し
制御を行うための制御部20とから構成されている。この
メモリカードMは、電子スチルカメラまたはその再生装
置等の外部装置にコネクタ22を介して装着自在となって
いる。
As shown in FIG. 1, a memory card M according to this embodiment includes a main memory unit 10 for storing data,
The main memory unit 10 includes a control unit 20 for performing write control or read control. The memory card M is attachable via a connector 22 to an external device such as an electronic still camera or its playback device.

メインメモリ部10は、ブロック消去型のEEPROM(電気
的に消去・書込可能な不揮発性メモリ)によって構成さ
れている。このEEPROMは、複数のメモリブロック1,
2....を備えており、それらメモリブロックは、それぞ
れ、たとえば1画面分の画像データが記憶される1クラ
スタ単位となっている。メインメモリ部10は、その複数
のクラスタ1,2...のうちの少なくとも1クラスタが、デ
ータが何も書き込まれていない状態にある予備クラスタ
となっている。この予備クラスタは、データが保持され
たクラスタに上書きが生じた場合に使用される。詳しく
は、第2図に示すように、たとえば、上書きのアクセス
がクラスタ1に生じた場合、そのクラスタ1の物理アド
レスAと予備クラスタ4の物理アドレスDを交換して、
今回のデータをアドレスAとなったクラスタ4に書き込
み、アドレスDとなったクラスタのデータを消去して、
クラスタを入れ換えることにより、書き換えを行う。こ
れにより、メインメモリ部10内には、常に1個以上の予
備クラスタが存在するようになっている。これらクラス
タ1,2...は、それぞれ消去信号が供給されると、記憶さ
れた内容がすべて“1"の状態となってデータが消去され
る。
The main memory unit 10 is configured by a block erase type EEPROM (an electrically erasable / writable nonvolatile memory). This EEPROM has a plurality of memory blocks 1,
.., And each of these memory blocks is in units of one cluster in which image data for one screen is stored, for example. In the main memory unit 10, at least one of the clusters 1, 2,... Is a spare cluster in which no data is written. This spare cluster is used when the cluster holding the data is overwritten. Specifically, as shown in FIG. 2, for example, when an overwrite access occurs in the cluster 1, the physical address A of the cluster 1 and the physical address D of the spare cluster 4 are exchanged.
This data is written to the cluster 4 at the address A, and the data at the cluster at the address D is erased.
Rewriting is performed by exchanging clusters. Thereby, one or more spare clusters always exist in the main memory unit 10. When the erase signal is supplied to each of the clusters 1, 2,..., The stored contents are all set to “1” and the data is erased.

再び第1図において、制御部20は、アドレスおよびデ
ータの入出力処理を行うための入出力制御部24と、デー
タの書き込みまたは読み出しの際に、メインメモリ部10
の該当クラスタを選択するクラスタセレクト部26と、メ
インメモリ部10の各クラスタ1,2...の物理的アドレスお
よびそのデータ記憶状態を管理するためのメインメモリ
管理メモリ28と、選択されたクラスタの下位アドレスを
制御するためのアドレス制御部30と、こられ各部24〜30
を制御するためのシステム制御部32とを備えている。
In FIG. 1 again, the control unit 20 includes an input / output control unit 24 for performing input / output processing of addresses and data, and a main memory unit 10 for writing or reading data.
, A main memory management memory 28 for managing the physical addresses of the clusters 1, 2,... Of the main memory unit 10 and the data storage state thereof, and a selected cluster. Address control unit 30 for controlling the lower address of
And a system control unit 32 for controlling the

入出力制御部24は、コネクタ22を介して外部装置から
送られる書き込みまたは読み出しのためのアドレスを読
み込んでクラスタセレクト制御部26へ転送するアドレス
レジスタと、外部装置とメインメモリ部10との間にてデ
ータの受け渡しを行うためのデータレジスタとを備えて
いる。これらレジスタは、システム制御部32から送出さ
れるタイミング信号TSに応動して動作する。
The input / output control unit 24 reads an address for writing or reading sent from the external device via the connector 22 and transfers the address to the cluster selection control unit 26. And a data register for transferring data. These registers operate in response to a timing signal TS sent from the system control unit 32.

クラスタセレクト制御部26は、入出力制御部24を介し
て転送されたアドレスに従って、メインメモリ部10の該
当クラスタ1,2...を選択する回路である。この実施例に
おけるクラスタセレクト制御部26は、読み込んだアドレ
スが書き込みのためのアドレスの場合に、メインメモリ
管理メモリ28に記憶されたそのクラスタのデータ記憶状
態を読み取って判別する判別機能と、この判別機能によ
る判別の結果が、そのクラスタにデータが記憶されてい
ると判断された場合に、メインメモリ管理メモリ28にお
けるそのクラスタと予備クラスタとの物理的アドレスを
メインメモリ管理メモリ28に交換して書き込むアドレス
交換機能と、このアドレス交換機能によって交換された
クラスタを、読み込んだ論理アドレスの対象クラスタと
して選択する選択機能とを有している。
The cluster selection control unit 26 is a circuit that selects the corresponding cluster 1, 2,... In the main memory unit 10 according to the address transferred via the input / output control unit 24. The cluster selection control unit 26 in this embodiment has a determination function of reading and determining the data storage state of the cluster stored in the main memory management memory 28 when the read address is an address for writing; When the result of the determination by the function indicates that data is stored in the cluster, the physical addresses of the cluster and the spare cluster in the main memory management memory 28 are exchanged and written into the main memory management memory 28. It has an address exchange function and a selection function of selecting a cluster exchanged by the address exchange function as a target cluster of the read logical address.

メインメモリ管理用メモリ28は、不揮発性RAMなどの
不揮発性メモリによって構成されており、外部装置から
カードMを取り外した場合にも、その記憶内容を保持し
ているメモリである。このメインメモリ管理用メモリ28
は、メインメモリ部10の各クラスタ1,2....の物理アド
レスに対応してその各クラスタにデータが保持されてい
るか否かを記憶している。この場合、たとえば、データ
が保持されている場合は、該当アドレスに“1"のフラグ
が書き込まれており、データが保持されていない場合
は、そのアドレスに“0"のフラグが書き込まれており、
書き込みまたは消去の際に、そのフラグが書き換えられ
る。
The main memory management memory 28 is configured by a non-volatile memory such as a non-volatile RAM, and retains the stored contents even when the card M is removed from an external device. This main memory management memory 28
.. Correspond to the physical addresses of the clusters 1, 2,... Of the main memory unit 10, and whether or not data is held in each cluster is stored. In this case, for example, when data is held, a flag of "1" is written in the corresponding address, and when data is not held, a flag of "0" is written in the address. ,
At the time of writing or erasing, the flag is rewritten.

アドレス制御部30は、アドレスカウンタによって構成
されている。このアドレス制御部30は、システム制御部
32から送出されるタイミングクロックをカウントして、
クラスタセレクタ制御部26にて選択されたクラスタの各
バイト毎の読み出しまたは書き込みのための下位アドレ
スをメインメモリ部10へ送出する回路である。
The address control unit 30 is configured by an address counter. The address control unit 30 includes a system control unit.
Count the timing clock sent from 32,
This is a circuit for sending to the main memory unit 10 a lower address for reading or writing for each byte of the cluster selected by the cluster selector control unit 26.

システム制御部32は、コネクタ22を介して外部装置か
ら送られる書き込みのためのライト信号と、読み出しの
ためのリード信号とが供給されて、それぞれ書き込みま
たは読み出しの制御を行うための制御信号を上記各部24
〜30へ送出する。詳しくは、コネクタ22を介して制御信
号が供給されると、メインメモリ部10およびクラスタセ
レクト制御部26へ読み出しまたは書き込みを区別するた
めの識別信号ISを送出して、同時に、外部装置側へ処理
中を示すBUSY信号を送出する。入出力制御部24へはデー
タの書き込みまたは読み出しのためのタイミング信号TS
を送出して、この信号に同期してアドレス制御部30とメ
インメモリ部10へタイミングクロックTCLKを送出する。
また、このシステム制御部32は、上書きのアクセスが生
じて、メインメモリ管理メモリ28にて物理アドレスの入
れ換えが行われた場合、クラスタセレクト制御部26から
送出される入換信号SSを受けることにより、メインメモ
リ管理メモリ28にて予備クラスタのアドレスとなったデ
ータ保持クラスタの消去を行うための制御を行う。この
場合、メインメモリ管理用メモリ28から予備クラスタの
アドレスを読み出して、クラスタセレクタ制御部26へそ
のアドレスを送出して、消去クラスタを選択させ、メイ
ンメモリ部10へ消去信号を送出して予備ブロックを形成
する。
The system control unit 32 is supplied with a write signal for writing and a read signal for reading sent from an external device via the connector 22, and outputs a control signal for controlling writing or reading, respectively. Each part 24
Send to ~ 30. Specifically, when a control signal is supplied via the connector 22, an identification signal IS for distinguishing between reading and writing is sent to the main memory unit 10 and the cluster selection control unit 26, and at the same time, processing is performed to the external device side. A BUSY signal indicating the inside is transmitted. A timing signal TS for writing or reading data is input to the input / output control unit 24.
And sends a timing clock TCLK to the address control unit 30 and the main memory unit 10 in synchronization with this signal.
Further, when an overwrite access occurs and the physical address is replaced in the main memory management memory 28, the system control unit 32 receives the replacement signal SS transmitted from the cluster select control unit 26. Then, the main memory management memory 28 performs control for erasing the data holding cluster that has become the address of the spare cluster. In this case, the address of the spare cluster is read from the main memory management memory 28, the address is sent to the cluster selector control unit 26, the erase cluster is selected, and the erase signal is sent to the main memory unit 10 to send the spare block. To form

この制御部20を外部装置に接続するコネクタ22は、ア
ドレスおよびデータが伝送されるアドレスデータ兼用バ
ス100と制御信号が伝送される制御バス110に接続するた
めの端子を有している。
A connector 22 for connecting the control unit 20 to an external device has terminals for connecting to an address / data bus 100 for transmitting addresses and data and a control bus 110 for transmitting control signals.

アドレスデータ兼用バス100は、書き込みまたは読み
出しのためのアドレスと、書き込みアドレスに続いて送
られるデータとをメモリカードMへ伝送して、読み出さ
れたデータを外部装置へ伝送する。制御バス110は、書
き込みのためのライト信号と、読み出しのためのリード
信号とをメモリカードMへ伝送して、システム制御部32
から送出されるBUSY信号を外部装置へ伝送する。
The address / data bus 100 transmits an address for writing or reading and data transmitted following the write address to the memory card M, and transmits the read data to an external device. The control bus 110 transmits a write signal for writing and a read signal for reading to the memory card M, and
The BUSY signal sent from is transmitted to the external device.

次に、上記構成におけるメモリカードMの動作および
その記録方法を説明する。
Next, an operation of the memory card M having the above configuration and a recording method thereof will be described.

まず、操作者は、メモリカードMを、そのコネクタ22
を外部装置のアドレスデータ兼用バス100および制御バ
ス110へ接続することにより、外部装置に装着する。次
いで、外部装置が電子スチルカメラ等のようにデータの
記録を行う装置の場合、メモリカードMに制御バス110
からライト信号が送られると、システム制御部32は、そ
の信号がライト信号かリード信号かを判断して、入出力
制御部24へアドレスを読み込むためのタイミング信号TS
を送出して、同時に、クラスタセレクト制御部26へ書き
込みを示す識別信号を送出する。これにより、入出力制
御部24は、外部装置から書込アドレスが送られると、ア
ドレスレジスタにそのアドレスを読み込んで、読み込ん
だアドレスをクラスタセレクト制御部26へ転送する。ク
ラスタセレクト制御部26は、書込アドレスを読み込む
と、メインメモリ管理用メモリ28からそのアドレスに該
当するクラスタのデータ記憶状態を読み取って、そのア
ドレスに前回までのデータが保持されているか否かを判
断する。その判断結果が、データを保持していない状態
である場合、クラスタセレクト制御部26は、そのクラス
タの先頭アドレスを指定するクラスタ選択信号をメイン
メモリ部10へ送出する。次いで、外部装置から書込デー
タが送出されると、入出力制御部24は、そのデータレジ
スタにデータを読み込んで、システム制御部32から送出
されるタイミング信号TSに同期してメインメモリ部10へ
送出する。このときシステム制御部32は、アドレス制御
部30と、メインメモリ部10へ書き込みのためのタイミン
グ信号TCLKを送出する。これにより、メインメモリ部10
は、入出力制御部24から送出される書込データをクラス
タセレクト制御部26にて選択されたクラスタに、アドレ
ス制御部30のアドレス信号に従って順次1バイトづつ書
き込んでいく。書き込みが終了すると、システム制御部
32は、メインメモリ管理用メモリ28の該当アドレスに
“1"のフラグを書き込んで、外部装置へ送出しているBU
SY信号を解除して、次の命令待ち状態となる。
First, the operator inserts the memory card M into the connector 22.
Is connected to the address data shared bus 100 and the control bus 110 of the external device, so that the device is mounted on the external device. Next, when the external device is a device that records data, such as an electronic still camera, the control bus 110 is stored in the memory card M.
When a write signal is sent from the system controller 32, the system controller 32 determines whether the signal is a write signal or a read signal, and sends a timing signal TS for reading an address to the input / output controller 24.
At the same time, an identification signal indicating writing is sent to the cluster select control unit 26. Thus, when the write address is sent from the external device, the input / output control unit 24 reads the address into the address register, and transfers the read address to the cluster select control unit 26. When reading the write address, the cluster select control unit 26 reads the data storage state of the cluster corresponding to the address from the main memory management memory 28, and determines whether the previous data is held at the address. to decide. If the result of the determination is that no data is stored, the cluster select control unit 26 sends a cluster select signal specifying the start address of the cluster to the main memory unit 10. Next, when write data is sent from the external device, the input / output control unit 24 reads the data into the data register and sends the data to the main memory unit 10 in synchronization with the timing signal TS sent from the system control unit 32. Send out. At this time, the system control unit 32 sends a timing signal TCLK for writing to the address control unit 30 and the main memory unit 10. As a result, the main memory unit 10
Writes the write data sent from the input / output control unit 24 into the cluster selected by the cluster select control unit 26 one by one according to the address signal of the address control unit 30. When writing is completed, the system controller
A BU 32 writes a flag of “1” at a corresponding address of the main memory management memory 28 and sends it to an external device.
The SY signal is released, and the system waits for the next instruction.

また、外部装置からのアクセスが上書きの場合、この
アドレスを入出力制御部24から受けたクラスタセレクト
制御部26は、メインメモリ管理用メモリ28からそのアド
レスのデータ保持状態を読み取って、そのアドレスのク
ラスタにデータが書き込まれていることを判断する。こ
れにより、クラスタセレクト制御部26は、アクセス先の
クラスタと予備クラスタの物理的アドレスを交換してメ
インメモリ管理用メモリ28に書き込み、その予備クラス
タから変換されたクラスタをデータの書き込み先として
アクセスする。また、同時にクラスタセレクト制御部26
は、システム制御部32に入換信号SSを送出する。システ
ム制御部32は、入出力制御部24へタイミング信号TSを送
出するとともに、アドレス制御部30とメインメモリ部10
へタイミングクロックTCLKを送出する。これにより、外
部装置から供給される書込データが入出力制御部24のデ
ータレジスタを介してメインメモリ部10における予備ク
ラスタから変換されたクラスタへと順次1バイトづつ書
き込まれていく。この書き込みが終了すると、システム
制御部32は、メインメモリ管理用メモリ28から予備クラ
スタに変換されたクラスタのアドレスを読み取ってクラ
スタセレクト制御部26へ送出する。これにより、クラス
タセレクト制御部26は、予備セレクタに変換されたクラ
スタを選択する。そして、システム制御部32は、メイン
メモリ部10へ消去信号を送出する。この結果、予備クラ
スタへ変換されたクラスタのメモリの内容が消去され
る。消去が終了すると、システム制御部32は、BUSY信号
の解除を行って次の命令待ちとなる。
If the access from the external device is overwriting, the cluster select control unit 26 receiving this address from the input / output control unit 24 reads the data holding state of the address from the main memory management memory 28, and Determine that data has been written to the cluster. As a result, the cluster select control unit 26 exchanges the physical addresses of the access destination cluster and the spare cluster and writes them in the main memory management memory 28, and accesses the cluster converted from the spare cluster as a data write destination. . At the same time, the cluster selection control unit 26
Sends a replacement signal SS to the system control unit 32. The system control unit 32 sends the timing signal TS to the input / output control unit 24, and the address control unit 30 and the main memory unit 10
To send the timing clock TCLK to As a result, the write data supplied from the external device is sequentially written one byte at a time through the data register of the input / output control unit 24 into the converted cluster from the spare cluster in the main memory unit 10. When this writing is completed, the system control unit 32 reads the address of the cluster converted into the spare cluster from the main memory management memory 28 and sends it to the cluster select control unit 26. As a result, the cluster selection control unit 26 selects the cluster converted into the spare selector. Then, the system control unit 32 sends an erasure signal to the main memory unit 10. As a result, the contents of the memory of the cluster converted into the spare cluster are erased. When the erasing is completed, the system control unit 32 releases the BUSY signal and waits for the next instruction.

このように、この実施例においては、外部装置からは
実質的な消去の命令信号が供給されず、そのためにメモ
リカードMのコネクタ22に消去のためのピンを増加させ
る必要がない。この結果、ハード的に、SRAMを用いたメ
モリカードと互換性を図ることができる。また、この実
施例においては、データの書き換えの際に、クラスタの
交換を行うので、クラスタを平均的に使用することがで
き、したがって、1つのクラスタに書き換えが集中する
ことがなく、EEPROMすなわちメモリカードMの寿命を長
く保持することができる。
As described above, in this embodiment, no substantial erasure command signal is supplied from the external device, so that it is not necessary to increase the number of pins for erasure in the connector 22 of the memory card M. As a result, in terms of hardware, compatibility with a memory card using SRAM can be achieved. Further, in this embodiment, clusters are exchanged at the time of data rewriting, so that clusters can be used on average. Therefore, rewriting is not concentrated on one cluster, and the EEPROM, that is, the memory, is not used. The life of the card M can be maintained long.

また、メモリカードMを装着した外部装置が再生装置
の場合は、制御バス110からリード信号が供給される。
このリード信号を受信したシステム制御部32は、クラス
タセレクト制御部と、メインメモリ部10へ読み出しの際
の識別信号ISを送出して、入出力制御部24へ読み出しの
際のタイミング信号TSを送出する。これにより、入出力
制御部24は、外部装置から送出された読出アドレスをア
ドレスセレクト制御部26へ転送する。クラスタセレクト
制御部26は、読出アドレスを受けると、そのアドレスの
セレクタを選択するための信号をメインメモリ部10へ送
出する。このとき、システム制御部32は、アドレス制御
部30とメインメモリ部10へ読み出しのためのタイミング
クロックTCLKを送出する。この結果、メインメモリ部10
の該当クラスタからデータが1バイトづつ読み出され
て、入出力制御部24を介して外部装置へ伝送される。読
み出しが終了すると、システム制御部32は、BUSY信号を
解除して命令待ち状態となる。
When the external device on which the memory card M is mounted is a reproducing device, a read signal is supplied from the control bus 110.
Upon receiving this read signal, the system control unit 32 sends the cluster select control unit and the identification signal IS for reading to the main memory unit 10, and sends the timing signal TS for reading to the input / output control unit 24. I do. Thereby, the input / output control unit 24 transfers the read address sent from the external device to the address select control unit 26. Upon receiving the read address, cluster select control unit 26 sends a signal to main memory unit 10 for selecting a selector at that address. At this time, the system control unit 32 sends a timing clock TCLK for reading to the address control unit 30 and the main memory unit 10. As a result, the main memory unit 10
The data is read one byte at a time from the corresponding cluster and transmitted to the external device via the input / output control unit 24. When the reading is completed, the system control unit 32 releases the BUSY signal and enters a command waiting state.

なお、上記実施例においては、書き換えの際に、クラ
スタを変換した後に、データを書き込んで、予備クラス
タの消去を行っているが、クラスタを変換した後に、予
備クラスタの消去を行ってからデータを予備クラスタか
ら変換されたクラスタに書き込んでもよい。
In the above embodiment, at the time of rewriting, the data is written and the spare cluster is erased after converting the cluster. However, after converting the cluster, the data is erased after the spare cluster is erased. The data may be written in the cluster converted from the spare cluster.

効 果 以上詳細に説明したように本発明におけるメモリカー
ドの記録方法およびメモリカードシステムでは、ブロッ
ク消去型のEEPROMを用いて、その複数のメモリブロック
のうち少なくとも1つのメモリブロックを予備ブロック
としておいて、上書きを行うアクセスが生じた場合に、
そのアクセスの対象のメモリブロックと、予備ブロック
の物理的アドレスの交換を行って、予備ブロックから変
換されたメモリブロックに今回のデータを書き込んで、
予備ブロックのアドレスに変換されたメモリブロックの
内容を消去することにより、メモリブロックを順次交換
しつつ書き換えを行っている。したがって、外部装置か
らは実質的な消去の命令信号が供給されず、そのために
メモリカードにピンを増加させる必要がない。この結
果、ハード的に、SRAMを用いたメモリカードと互換性を
図ることができる。また、データの書き換えの際に、メ
モリブロックの交換を行うので、メモリブロックを平均
的に使用することができ、1つのメモリブロックに書き
換えが集中することがなく、EEPROMすなわちメモリカー
ドの寿命を長く保持することができるという優れた効果
を奏する。
Effect As described in detail above, in the memory card recording method and memory card system according to the present invention, at least one of the plurality of memory blocks is used as a spare block by using a block erase type EEPROM. , In the event of overwriting access,
The physical address of the memory block to be accessed and the spare block are exchanged, and the current data is written to the memory block converted from the spare block.
By erasing the contents of the memory block converted to the address of the spare block, rewriting is performed while sequentially replacing the memory blocks. Therefore, no substantial erase command signal is supplied from the external device, and there is no need to increase the number of pins in the memory card. As a result, in terms of hardware, compatibility with a memory card using SRAM can be achieved. In addition, since memory blocks are exchanged when rewriting data, the memory blocks can be used on an average basis, so that rewriting is not concentrated on one memory block and the life of the EEPROM, that is, the memory card is extended. It has an excellent effect that it can be held.

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

第1図は本発明によるメモリカードの一実施例を示すブ
ロック図、 第2図は、本発明の実施例におけるメモリカードの記録
方法を示す概念図である。 主要部分の符号の説明 M……メモリカード 1,2……クラスタ(メモリブロック) 10……メインメモリ部 20……制御部 22……コネクタ 24……入出力制御部 26……クラスタセレクト制御部 28……メインメモリ管理用メモリ 30……アドレス制御部 32……システム制御部 100……アドレスデータバス 110……制御バス
FIG. 1 is a block diagram showing an embodiment of a memory card according to the present invention, and FIG. 2 is a conceptual diagram showing a recording method of the memory card in the embodiment of the present invention. Description of Signs of Main Parts M: Memory Card 1, 2, Cluster (Memory Block) 10: Main Memory Unit 20: Control Unit 22: Connector 24: Input / Output Control Unit 26: Cluster Select Control Unit 28: Main memory management memory 30: Address control unit 32: System control unit 100: Address data bus 110: Control bus

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】メインメモリにブロック消去型のEEPROMを
用いたメモリカードにおけるデータ記録方法において、 複数のメモリブロックを備えた前記EEPROMに、そのうち
の少なくとも1メモリブロックを何も書き込まれていな
い状態にある予備ブロックとしておき、 前回までにデータが書き込まれた一のメモリブロックに
そのデータの書き換えが行われるアクセスが生じた際
に、 そのメモリブロックと予備ブロックとの間の物理的アド
レスの交換を行って、 前回までにデータが書き込まれたメモリブロックのメモ
リ内容を消去することにより、そのメモリブロックを予
備ブロックとして、 予備ブロックから変換されたメモリブロックに今回のア
クセスによるデータを書き込んでデータ保持ブロックと
して、 データの書き換えを行うことを特徴とするメモリカード
におけるデータ記録方法。
1. A data recording method for a memory card using a block erase type EEPROM as a main memory, wherein at least one of the memory blocks is not written in the EEPROM having a plurality of memory blocks. When a spare block is used, when a memory block to which data has been previously written is accessed to rewrite the data, the physical address is exchanged between the memory block and the spare block. Then, by erasing the memory contents of the memory block to which the data was written up to the previous time, the memory block is used as a spare block, and the data obtained by the current access is written to the converted memory block from the spare block to serve as a data holding block. It is characterized by rewriting data Data recording method in the memory card that.
【請求項2】メモリカードのメインメモリにブロック消
去型のEEPROMを用いてなるメモリカードシステムにおい
て、 このメモリカードシステムは、 複数のメモリブロックを備えた前記EEPROMにて構成され
て、そのうちの少なくとも1メモリブロックが何も書き
込まれていない状態にある予備ブロックとして構成され
たメインメモリ部と、 該メインメモリ部の各メモリブロックの物理的アドレス
と、これらメモリブロックにデータが保持されているか
否か、それらのデータ保持状態とを記憶するメインメモ
リ管理メモリと、 外部装置から送られた論理アドレスを読み込んで、その
論理アドレスに相当する前記メインメモリ部のメモリブ
ロックを選択するブロック選択部と、 外部装置から送られる制御信号に応動して各部を制御す
るシステム制御部とを備えてなり、 前記ブロック選択部は、読み込んだ論理アドレスが書き
込みのためのアドレスの場合に、前記メインメモリ管理
メモリに記憶されたそのメモリブロックのアドレスのデ
ータ記憶状態を読み取って判別する判別機能と、 この判別機能による判別の結果が、そのメモリブロック
にデータが記憶されていると判断された場合に、前記メ
インメモリ管理メモリのメモリブロックと予備ブロック
との物理的アドレスをメインメモリ管理メモリに交換し
て書き込むアドレス交換機能と、 該アドレス交換機能によって予備ブロックから交換され
たメモリブロックを、読み込んだ論理アドレスの対象ブ
ロックとして選択する選択機能とを有しており、 また、前記システム制御部は、ブロック選択部のアドレ
ス交換機能によって予備ブロックのアドレスに変換され
たメモリブロックのメモリ内容を消去する消去機能を有
してなることを特徴とするメモリカードシステム。
2. A memory card system using a block erase type EEPROM as a main memory of a memory card, wherein the memory card system comprises the EEPROM having a plurality of memory blocks, and at least one of the EEPROMs is provided. A main memory unit configured as a spare block in which no memory block is written, a physical address of each memory block in the main memory unit, and whether or not data is held in these memory blocks; A main memory management memory for storing these data holding states, a block selecting unit for reading a logical address sent from an external device and selecting a memory block of the main memory unit corresponding to the logical address; System control that controls each part in response to control signals sent from The block selecting unit reads and determines the data storage state of the address of the memory block stored in the main memory management memory when the read logical address is an address for writing. Function, and when it is determined that data is stored in the memory block, the physical addresses of the memory block and the spare block of the main memory management memory are replaced with the main memory management memory. And a selection function of selecting a memory block exchanged from a spare block by the address exchange function as a target block of the read logical address. Is reserved by the address exchange function of the block selector. Memory card system characterized by comprising a erasure function to erase the memory contents of the transformed memory block address.
JP25737590A 1990-09-28 1990-09-28 Data recording method in memory card and memory card system Expired - Lifetime JP2584120B2 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP25737590A JP2584120B2 (en) 1990-09-28 1990-09-28 Data recording method in memory card and memory card system
US07/726,173 US5303198A (en) 1990-09-28 1991-07-05 Method of recording data in memory card having EEPROM and memory card system using the same
EP91112963A EP0477503B1 (en) 1990-09-28 1991-08-01 Method of recording data in memory card having eeprom and memory card system using the same
DE69124323T DE69124323T2 (en) 1990-09-28 1991-08-01 Method for recording data in an EEPROM memory card and associated memory card system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25737590A JP2584120B2 (en) 1990-09-28 1990-09-28 Data recording method in memory card and memory card system

Publications (2)

Publication Number Publication Date
JPH04137078A JPH04137078A (en) 1992-05-12
JP2584120B2 true JP2584120B2 (en) 1997-02-19

Family

ID=17305518

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25737590A Expired - Lifetime JP2584120B2 (en) 1990-09-28 1990-09-28 Data recording method in memory card and memory card system

Country Status (1)

Country Link
JP (1) JP2584120B2 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3485938B2 (en) * 1992-03-31 2004-01-13 株式会社東芝 Nonvolatile semiconductor memory device
US6549974B2 (en) 1992-06-22 2003-04-15 Hitachi, Ltd. Semiconductor storage apparatus including a controller for sending first and second write commands to different nonvolatile memories in a parallel or time overlapped manner
FR2693575B1 (en) * 1992-07-09 1994-08-19 Gemplus Card Int Mass memory card with input / output function.
US5822781A (en) * 1992-10-30 1998-10-13 Intel Corporation Sector-based storage device emulator having variable-sized sector
JPH10134559A (en) * 1996-10-31 1998-05-22 Sony Corp Semiconductor storage
JP2003242788A (en) * 2003-02-10 2003-08-29 Toshiba Corp Nonvolatile semiconductor memory device and control method therefor
JP4158934B2 (en) * 2005-08-08 2008-10-01 ソリッド ステート ストレージ ソリューションズ エルエルシー Semiconductor storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61113102A (en) * 1984-11-07 1986-05-31 Canon Inc Information recording reproducing device
JPS61227300A (en) * 1985-03-29 1986-10-09 Yokogawa Electric Corp Writing method to electrically changeable rom
JPS62283496A (en) * 1986-05-31 1987-12-09 Canon Inc Management system for of number of times of writing programmable read only memory
JPS6398889A (en) * 1986-10-14 1988-04-30 Oki Electric Ind Co Ltd Optical disk file device
JPH02118999A (en) * 1988-10-27 1990-05-07 Fujitsu Ltd Ic card

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6460896A (en) * 1987-08-31 1989-03-07 Pfu Ltd System for controlling rewrite of data of non-volatile memory device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61113102A (en) * 1984-11-07 1986-05-31 Canon Inc Information recording reproducing device
JPS61227300A (en) * 1985-03-29 1986-10-09 Yokogawa Electric Corp Writing method to electrically changeable rom
JPS62283496A (en) * 1986-05-31 1987-12-09 Canon Inc Management system for of number of times of writing programmable read only memory
JPS6398889A (en) * 1986-10-14 1988-04-30 Oki Electric Ind Co Ltd Optical disk file device
JPH02118999A (en) * 1988-10-27 1990-05-07 Fujitsu Ltd Ic card

Also Published As

Publication number Publication date
JPH04137078A (en) 1992-05-12

Similar Documents

Publication Publication Date Title
KR100307894B1 (en) Flash EEPROM Main Memory in Computer Systems
US6366977B1 (en) Semiconductor storage device employing cluster unit data transfer scheme and data management method thereof
EP0528280B1 (en) Memory card apparatus
US5604917A (en) IC memory card having masking function for preventing writing of data into a fixed memory area
JP3821536B2 (en) Nonvolatile semiconductor disk device
KR930010981A (en) Storage device using flash memory
JPH1115705A (en) Memory management method, record medium and memory management device
WO1995018407A1 (en) Solid state memory system
US6345333B1 (en) Method and apparatus for reverse rewriting
US5724544A (en) IC memory card utilizing dual eeproms for image and management data
US5233591A (en) Auto changer apparatus with a defect control memory
US5829014A (en) Method of supervising storage of data in a memory card having EEPROM and a memory card system using the same
JP2584120B2 (en) Data recording method in memory card and memory card system
JP2635448B2 (en) Data recording method in memory card and memory card system
JP2584119B2 (en) Data recording method in memory card and memory card system
JPH09171486A (en) Pc card
JPH11272569A (en) Data restoration system for outer storage device using flash memory
JP3017524B2 (en) Data recording method and IC memory card system in IC memory card
JPH05150913A (en) Silicon disk with flash memory as storage medium
JP3117244B2 (en) EEPROM control device
JP3070994B2 (en) Memory card storage management method
JP3099908B2 (en) EEPROM control device
JPH04313882A (en) Record control system for memory card
JPH04307647A (en) Memory card storage control system
JP2932392B2 (en) Memory card

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071121

Year of fee payment: 11

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071121

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081121

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091121

Year of fee payment: 13

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091121

Year of fee payment: 13

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101121

Year of fee payment: 14

EXPY Cancellation because of completion of term