[go: up one dir, main page]

JP2675429B2 - Data management method for memory card - Google Patents

Data management method for memory card

Info

Publication number
JP2675429B2
JP2675429B2 JP2268304A JP26830490A JP2675429B2 JP 2675429 B2 JP2675429 B2 JP 2675429B2 JP 2268304 A JP2268304 A JP 2268304A JP 26830490 A JP26830490 A JP 26830490A JP 2675429 B2 JP2675429 B2 JP 2675429B2
Authority
JP
Japan
Prior art keywords
data
management
memory card
area
management information
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
JP2268304A
Other languages
Japanese (ja)
Other versions
JPH04145596A (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 JP2268304A priority Critical patent/JP2675429B2/en
Priority to GB9121440A priority patent/GB2248707B/en
Publication of JPH04145596A publication Critical patent/JPH04145596A/en
Application granted granted Critical
Publication of JP2675429B2 publication Critical patent/JP2675429B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F7/00Mechanisms actuated by objects other than coins to free or to actuate vending, hiring, coin or paper currency dispensing or refunding apparatus
    • G07F7/08Mechanisms actuated by objects other than coins to free or to actuate vending, hiring, coin or paper currency dispensing or refunding apparatus by coded identity card or credit card or other personal identification means
    • G07F7/10Mechanisms actuated by objects other than coins to free or to actuate vending, hiring, coin or paper currency dispensing or refunding apparatus by coded identity card or credit card or other personal identification means together with a coded signal, e.g. in the form of personal identification information, like personal identification number [PIN] or biometric data
    • G07F7/1008Active credit-cards provided with means to personalise their use, e.g. with PIN-introduction/comparison system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/0223User address space allocation, e.g. contiguous or non contiguous base addressing
    • G06F12/023Free address space management
    • G06F12/0238Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory
    • G06F12/0246Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory in block erasable memory, e.g. flash memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/34Payment architectures, schemes or protocols characterised by the use of specific devices or networks using cards, e.g. integrated circuit [IC] cards or magnetic cards
    • G06Q20/341Active cards, i.e. cards including their own processing means, e.g. including an IC or chip
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/34Payment architectures, schemes or protocols characterised by the use of specific devices or networks using cards, e.g. integrated circuit [IC] cards or magnetic cards
    • G06Q20/357Cards having a plurality of specified features
    • G06Q20/3576Multiple memory zones on card
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/60Memory management
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F7/00Mechanisms actuated by objects other than coins to free or to actuate vending, hiring, coin or paper currency dispensing or refunding apparatus
    • G07F7/08Mechanisms actuated by objects other than coins to free or to actuate vending, hiring, coin or paper currency dispensing or refunding apparatus by coded identity card or credit card or other personal identification means
    • G07F7/0806Details of the card
    • G07F7/0813Specific details related to card security
    • G07F7/082Features insuring the integrity of the data on or in the card
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1435Saving, restoring, recovering or retrying at system level using file system or storage system metadata
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2212/00Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
    • G06F2212/40Specific encoding of data in memory or cache
    • G06F2212/401Compressed data

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Television Signal Processing For Recording (AREA)

Description

【発明の詳細な説明】 技術分野 本発明は、たとえば画像データなどのデータを記憶す
るメモリカードに係り、特に、そのデータの記憶状態を
管理するためのデータ管理方式に関する。
TECHNICAL FIELD The present invention relates to a memory card for storing data such as image data, and more particularly to a data management system for managing a storage state of the data.

背景技術 近年、たとえばディジタル電子スチルカメラにおい
て、撮影した画像を表わす画像データを記録する媒体と
して、フロッピディスクに代わり、半導体メモリを用い
たさらに小型なメモリカードが使用されるようになって
きた。
2. Description of the Related Art In recent years, for example, in digital electronic still cameras, a smaller memory card using a semiconductor memory has been used instead of a floppy disk as a medium for recording image data representing a captured image.

このような、メモリカードを用いたシステムにおい
て、それぞれの画像についてメモリへの記憶順序および
記憶済みを示す管理データをあわせて記憶する方式が、
本出願人による係属中の特許出願、特願昭62−120073に
て出願されている。また、本願と同じ出願人による係属
中の特許出願、特願平1−10997では、可変の大きさの
データを効率的に記憶できるメモリ管理方式が提案され
ている。このメモリ管理方式によれば、メモリカードの
記憶領域が複数のクラスタ(記憶単位)に分かれて、各
クラスタごとに情報の記憶を管理するように構成されて
おり、複数のクラスタのうち、たとえば1コマの画像情
報が記憶されるものの関連情報をメモリアロケーション
テーブル(MAT)にて指示し、1コマの画像情報の初頭
部分が記憶されるクラスタの情報をディレクトリにて指
示するように構成されていた。
In such a system using a memory card, a method of storing the management data indicating the memory storage order and memory storage for each image is
The present applicant has filed a pending patent application, Japanese Patent Application No. 62-120073. In addition, a pending patent application by the same applicant as this application, Japanese Patent Application No. 1-10997, proposes a memory management system capable of efficiently storing variable size data. According to this memory management system, the storage area of the memory card is divided into a plurality of clusters (storage units), and the storage of information is managed for each cluster. Although the image information of the frame is stored, the related information is designated by the memory allocation table (MAT), and the information of the cluster in which the beginning portion of the image information of one frame is stored is designated by the directory. .

このような従来のデータ管理方式を採用したメモリカ
ードでは、このMATとよばれる管理テーブルおよびディ
レクトリ等の管理データが、たとえば、メモリカードの
記憶領域の始めの領域に記憶されて、電子スチルカメラ
側では、その管理領域の情報を読み出して、新たにメモ
リカードに記憶させる画像データの格納個所等を定め
て、あわせて新たな管理情報を作成してメモリカードに
記憶させる構成であった。
In a memory card adopting such a conventional data management system, management data such as a management table called MAT and a directory is stored in, for example, the beginning area of the memory area of the memory card, and the electronic still camera side Then, the information of the management area is read out, the storage location of the image data to be newly stored in the memory card is determined, and new management information is also created and stored in the memory card.

ところで、このようなシステムに用いられるメモリカ
ードとしては、従来、高速な読み出しおよび書き込みを
行うことができるスタティックRAM(SRAM)が用いられ
ていた。しかしながら、このSRAMは、揮発性の半導体メ
モリであるので、バックアップ用の電池が必要であり、
また、画像データのように大容量のデータを記憶するも
のになると高価となって、カードの値段が高くなるとい
う問題があった。そこで、近年、安価でしかもバックア
ップ電池の必要がない不揮発性の半導体メモリであるEE
PROM(電気的に消去および再書き込み可能な読出専用メ
モリ)をメモリカードに採用することが検討されてい
る。このEEPROMは、その記憶期間が電池なしで10年間以
上と優れており、近年ではSRAMに匹敵する読み出しまた
は書き込み速度を備えるようになって、しかも、その値
段がSRAMの4分の1程度のものが開発されている。
By the way, as a memory card used in such a system, conventionally, a static RAM (SRAM) capable of high-speed reading and writing has been used. However, since this SRAM is a volatile semiconductor memory, it requires a backup battery,
Further, there has been a problem that the storage of a large amount of data such as image data is expensive and the cost of the card is high. Therefore, in recent years, EE is a non-volatile semiconductor memory that is inexpensive and does not require a backup battery.
The adoption of PROM (electrically erasable and rewritable read-only memory) for a memory card is under consideration. This EEPROM has an excellent storage time of 10 years or more without a battery, and in recent years it has come to have a read or write speed comparable to SRAM, and the price is about a quarter of SRAM. Is being developed.

しかしながら、このEEPROMにおいては、再書き込みを
行う際に、前回に書き込まれたデータを一旦消去した後
に、書き込みを行うという2ステップの動作が必要であ
り、その消去方法としては、一括消去型(フラッシュタ
イプ)と、ブロック単位の消去の2種類のタイプがあっ
た。ブロック単位の消去を行うEEPROMでは、SRAMと同様
に、ブロック単位の書き換えを行うことができる。しか
し、このEEPROMに、上記のような従来のデータ管理方式
を採用した場合、メモリカードの管理領域に1つのヘッ
ダしか設けられていないために、その管理情報の書き換
えを行っているときに、システム(カメラ)側に電源断
等の事故が発生した場合、管理情報の消去を行ったのち
であるので、最悪の場合、管理情報が完全に失われてし
まうというおそれがあった。管理領域が完全に失われて
しまうと、カード内容を外部に展開することが不可能と
なってしまい、以後そのメモリカードを使用することが
できなくなってしまうというおそれがあった。
However, this EEPROM requires a two-step operation of once erasing the previously written data and then writing when rewriting, and the erasing method is a batch erasing type (flash Type) and block-based erasing. An EEPROM that erases in block units can be rewritten in block units, similar to SRAM. However, when the conventional data management method as described above is adopted for this EEPROM, since only one header is provided in the management area of the memory card, the system cannot be rewritten while the management information is being rewritten. When an accident such as a power failure occurs on the (camera) side, the management information is erased. Therefore, in the worst case, the management information may be completely lost. If the management area is completely lost, the contents of the card cannot be expanded to the outside, and there is a risk that the memory card cannot be used thereafter.

目 的 本発明はこのような従来技術の欠点を解消し、データ
の記憶状態を管理するための管理情報をメモリカードに
書き込む際に事故が発生した場合、最悪の場合でもその
管理情報を完全に失うことがなく、メモリカードの安全
性の向上を図ったメモリカードおよびそのデータ管理方
式を提供することを目的とする。
Aim The present invention solves the drawbacks of the prior art as described above, and when an accident occurs when writing management information for managing the storage state of data to a memory card, the management information can be completely saved even in the worst case. It is an object of the present invention to provide a memory card and a data management method for the memory card, in which the safety of the memory card is improved without loss.

発明の開示 本発明によれば、ホスト処理装置に着脱自在に形成さ
れて、このホスト処理装置から送られるデータを記憶す
るメモリカードにおいて、このメモリカードの記憶領域
は、所定の記憶容量を有する記憶単位に分かれて、その
記憶領域には、記憶単位ごとに蓄積されたデータの記憶
状態を管理するための管理情報が記憶される管理領域が
少なくとも2つ以上形成されていることを特徴とする。
DISCLOSURE OF THE INVENTION According to the present invention, in a memory card that is detachably formed in a host processing device and stores data sent from the host processing device, a storage area of the memory card has a storage capacity of a predetermined storage capacity. The storage area is divided into units, and at least two or more management areas for storing management information for managing the storage state of the data accumulated for each storage unit are formed.

また、本発明によれば、ホスト処理装置に着脱自在に
形成されて、このホスト処理装置から送られるデータを
記憶し、あわせてデータの管理情報を記憶するメモリカ
ードにおけるデータ管理方式において、このメモリカー
ドは、データの記憶状態を管理するための管理情報を記
憶する管理領域を少なくとも2つ以上備え、そのホスト
処理装置は、メモリカードのデータの書き換えを行う際
に、メモリカードに記憶された前回の管理情報をメモリ
カードの一の管理領域から読み出して、今回のデータの
書き換えに関する管理情報を作成し、その管理情報を少
なくとも2つの管理領域にそれぞれ時間差をおいて書き
込むことを特徴とする。
Further, according to the present invention, in a data management system in a memory card which is detachably formed in a host processing device, stores data sent from the host processing device, and also stores management information of the data, The card has at least two management areas for storing management information for managing the storage state of the data, and the host processing device, when rewriting the data of the memory card, stores the previous data stored in the memory card. Is read out from one management area of the memory card, management information relating to rewriting of data this time is created, and the management information is written in at least two management areas with a time lag.

さらに、本発明によれば、ホスト処理装置に着脱自在
に形成されて、このホスト処理装置から送られるデータ
を記憶し、あわせてその管理情報を記憶するメモリカー
ドにおけるデータ管理方式において、このメモリカード
は、データの記憶状態を管理するための管理情報を記憶
する管理領域を少なくとも2つ以上備えて、このメモリ
カードは、データの書き換えの際に、その書き換え後の
管理情報を一の管理領域に書き込み、その書き込みの後
に、一の管理領域に書き込まれた管理情報を他の管理領
域に書き移して、現在の管理情報を少なくとも2つの管
理領域に有することを特徴とする。
Further, according to the present invention, in the data management system in the memory card which is detachably formed in the host processing device, stores the data sent from the host processing device, and also stores the management information thereof. Has at least two management areas for storing management information for managing the storage state of data, and when rewriting data, this memory card stores the management information after the rewriting in one management area. It is characterized in that the management information written in one management area is transferred to another management area after the writing and the current management information is stored in at least two management areas.

実施例の説明 次に添付図面を参照して本発明によるメモリカードお
よびメモリカードにおけるデータ管理方式の実施例を詳
細に説明する。
Description of Embodiments Embodiments of a memory card and a data management system in the memory card according to the present invention will be described in detail with reference to the accompanying drawings.

この実施例におけるメモリカード10は、第1図に示す
ように、データを記憶するための蓄積部1と、その記憶
領域にデータを書き込みまたは読み出すための制御を行
うコントローラ3と、電子スチルカメラ等のホスト処理
装置に着脱自在に形成されたコネクタ部5とを備えて、
蓄積部1には2つのデータ管理領域16A,16Bを備えてい
る。
As shown in FIG. 1, the memory card 10 in this embodiment includes a storage unit 1 for storing data, a controller 3 for controlling writing or reading data in the storage area, an electronic still camera, etc. Of the host processing device of FIG.
The storage unit 1 includes two data management areas 16A and 16B.

蓄積部1は、ブロック消去型のEEPROMによって構成さ
れている。このEEPROMの記憶領域は、第2図に示すよう
に、所定の記憶容量のクラスタ14に分割されている。こ
のEEPROMは、そのクラスタ単位に消去が行われる。クラ
スタ14のはじめのクラスタ(#1)には、画像データの
管理情報が記憶される第1の管理データ領域16Aが割り
当てられ、次のクラスタ(#2)に同第2の管理データ
領域16Bが割り当てられている。記憶領域の残りの領域
は、画像データを蓄積する画像データ領域20として使用
される。クラスタ14の容量は、たとえば、1枚の画像を
標準形式の映像信号で表わすのに必要なデータ、これを
「パケット」(第3図)と称するが、この画像データの
正の整数分の1を蓄積する程度でもよい。なお、このパ
ケット22は画像データに関連する音声データを含む単位
と解釈してよい。
The storage unit 1 is composed of a block erasing type EEPROM. The storage area of this EEPROM is divided into clusters 14 each having a predetermined storage capacity, as shown in FIG. This EEPROM is erased in cluster units. A first management data area 16A in which management information of image data is stored is allocated to the first cluster (# 1) of the cluster 14, and a second management data area 16B is allocated to the next cluster (# 2). It is assigned. The remaining area of the storage area is used as an image data area 20 for accumulating image data. The capacity of the cluster 14 is, for example, data necessary for representing one image by a video signal in a standard format, which is called "packet" (Fig. 3). May be accumulated. The packet 22 may be interpreted as a unit including audio data related to image data.

管理データ領域16A,16Bにはそれぞれ、ヘッダ16a,パ
ケット属性16c,ディレクトリ(DIR)16dおよびメモリア
ロケーションテーブル(MAT)16eが格納される。
A header 16a, a packet attribute 16c, a directory (DIR) 16d, and a memory allocation table (MAT) 16e are stored in the management data areas 16A and 16B, respectively.

本実施例では基本的には、1パケットの画像データ22
を任意のクラスタ14に格納する。MAT領域16eには、1パ
ケットの画像データ22の蓄積されているクラスタ14の関
連情報を示すデータすなわちMATデータを蓄積する。MAT
データはたとえば、第3図に示すようにパケットの画像
データ22の一部が蓄積されているクラスタ14について、
残りの画像データのうちのそれに直接つながるものの蓄
積されているクラスタ14の識別情報、たとえば番号を含
む。残りの画像データがないときは、所定の符号、たと
えば「全1」(2進値)によってそのクラスタ14がその
パケット22の最終であることを表示する。より詳細に
は、MAT領域16eには1クラスタ当り2バイトを用い、こ
れに続くクラスタ14の番号を格納する。MAT16eの値は、
本実施例では、そのクラスタ14に画像データが記憶され
ていない、たとえば未使用状態または消去された状態で
は「全0」を、パケット22の末尾であるときは、他の所
定の符号、たとえば「全1」すなわち16進の「FFFF」を
とる。そのパケット22についてこれに続く他のクラスタ
14が存在する場合は、その継続クラスタ14の番号を示す
値をとる。
In this embodiment, basically, one packet of image data 22
Are stored in an arbitrary cluster 14. In the MAT area 16e, data indicating related information of the cluster 14 in which one packet of image data 22 is stored, that is, MAT data is stored. MAT
The data is, for example, for the cluster 14 in which a part of the image data 22 of the packet is accumulated as shown in FIG.
It contains identification information, eg a number, of the cluster 14 in which the remaining image data directly connected to it is stored. When there is no remaining image data, a predetermined code, for example, "all 1s" (binary value), indicates that the cluster 14 is the last of the packet 22. More specifically, 2 bytes per cluster are used in the MAT area 16e, and the number of the cluster 14 following this is stored. The value of MAT16e is
In the present embodiment, "all 0s" are set when the image data is not stored in the cluster 14, for example, in the unused state or the erased state, and at the end of the packet 22, another predetermined code, for example, ""1", that is, "FFFF" in hexadecimal. Other clusters following this for its packet 22
If 14 exists, it takes a value indicating the number of the continuous cluster 14.

ディレクトリ領域16dには、スタートクラスタおよび
データ種別を示す情報が蓄積される。スタートクラスタ
情報は、画像単位に、すなわちパケット22ごとにその画
像データのうちの先頭のものが蓄積されているクラスタ
14を指し示す識別情報、たとえばスタートクラスタ番号
を示すものである。これによって、1枚の画像の画像デ
ータがどのクラスタ14に格納されているかが特定され
る。また、データ種別を示す情報は、蓄積部1に記憶さ
れている情報の種別を示し、たとえば画像データ、音声
データ、文字データまたはプログラムなどの別を示す。
Information indicating the start cluster and the data type is stored in the directory area 16d. The start cluster information is a cluster in which the first one of the image data is accumulated for each image, that is, for each packet 22.
The identification information points to 14, for example, the start cluster number. In this way, it is specified in which cluster 14 the image data of one image is stored. The information indicating the data type indicates the type of information stored in the storage unit 1, and indicates, for example, image data, audio data, character data, or a program.

たとえば、蓄積部1の記憶容量が64Mビットの例で
は、クラスタ14の大きさを64Kビットとして1024個のク
ラスタ14を設けることができる。各クラスタ14には、物
理的配置の順に番号#0〜#1023を付与する。クラスタ
#0および#1にはそれぞれ管理領域16A,16Bが割り当
てられて管理データをそれぞれ格納する。管理データ
は、本実施例では、ヘッダ16a,パケット属性16c,ディレ
クトリ16dおよびMAT16eを含み、これらはそれぞれのサ
ブエリアに格納される。残りのクラスタ#2〜#1023に
は、たとえば画像データが蓄積され、この画像データに
は個々の画像に固有のヘッダ情報も含まれる。
For example, when the storage capacity of the storage unit 1 is 64 Mbits, the size of the cluster 14 is 64 Kbits, and 1024 clusters 14 can be provided. Numbers # 0 to # 1023 are assigned to each cluster 14 in the order of physical arrangement. Management areas 16A and 16B are allocated to the clusters # 0 and # 1, respectively, and store management data. In this embodiment, the management data includes a header 16a, a packet attribute 16c, a directory 16d and a MAT 16e, which are stored in their respective sub areas. Image data, for example, is accumulated in the remaining clusters # 2 to # 1023, and the image data also includes header information unique to each image.

1つのパケット22は、1つまたはそれ以上のクラスタ
14に格納される。したがってパケットとは、1枚の画像
を表わす画像データが格納される論理領域とも言える。
パケット22には、たとえば画像データの入力順などの実
用上の順番に番号が付与され、あるパケット22が消去さ
れた場合は、その番号は空きになり、次回以降に格納す
る画像データに新たに付与される。1パケットの画像デ
ータ22は1つまたは複数のクラスタ14に格納される。末
尾のクラスタ14には空き領域14a(第3図)が存在する
ことがある。蓄積部1に格納できるパケット22の容量
は、蓄積部1のクラスタ14の数−2である。
One packet 22 is one or more clusters
Stored in 14. Therefore, the packet can be said to be a logical area in which image data representing one image is stored.
Packets 22 are numbered in a practical order such as the order of inputting image data, and when a packet 22 is deleted, the number becomes empty and is newly added to the image data to be stored next time or later. Granted. One packet of image data 22 is stored in one or more clusters 14. There may be an empty area 14a (FIG. 3) in the last cluster 14. The capacity of the packet 22 that can be stored in the storage unit 1 is the number of the clusters 14 of the storage unit −2.

そこでディレクトリ領域16dには、1つのパケット22
についてその先頭のクラスタ14の番号が記憶される。本
実施例では、クラスタ数が1024個であるので、たとえば
スタートクラスタ番号に10ビットを使用し、他のビット
は空きである。未使用のディレクトリは「全0」で表わ
される。
Therefore, one packet 22 is stored in the directory area 16d.
The number of the cluster 14 at the head of the is stored. In this embodiment, since the number of clusters is 1024, for example, 10 bits are used for the start cluster number and other bits are free. Unused directories are represented by "all zeros".

本実施例ではさらに、管理データ領域16A,16Bにパケ
ット属性領域16cがそれぞれ設けられている。パケット
属性16cは、1つのパケット22についてそれが使用され
ているか否かを示す情報を含み、この他に、たとえば上
書きの可否、コピーの可否、および読み出しの可否を示
す表示を含んでもよい。より具体的には、パケット属性
領域16cは、第4図に示すようにビットマップ方式をと
ってもよい。この方式では、1パケット当り1ビットの
表示が割り当てられ、各ビットはそのパケット22が使用
済みであるか否かを表示している。この実施例では、2
進の「1」の使用済みを示し、「0」が未使用を示して
いる。ビットマップ上の特定のパケット位置は、ビット
マップポインタ17で指示される。
In this embodiment, further, a packet attribute area 16c is provided in each of the management data areas 16A and 16B. The packet attribute 16c includes information indicating whether or not the packet 22 is used for one packet 22, and may further include, for example, an indication indicating whether or not overwriting is possible, whether or not copying is possible, and whether or not reading is possible. More specifically, the packet attribute area 16c may take a bitmap method as shown in FIG. In this method, 1 bit is assigned to each packet, and each bit indicates whether the packet 22 has been used. In this example, 2
A hexadecimal "1" indicates used, and a "0" indicates unused. A specific packet position on the bitmap is indicated by the bitmap pointer 17.

第5図には、パケット属性16cをパケット22当り1バ
イトで構成した例を示し、各バイトのうちの4ビットが
パケット属性の表示に使用されている。最上位ビットMS
Bの第1ビットb1は上書みの可否を示し、ライトプロテ
クトは「1」、またオーバライト許容は「0」で示す。
この場合、上書きは消去を含むものと解釈してよい。第
2ビットb2はパケット22の空塞を示し、「1」で使用済
みを、また「0」で未使用を表示している。さらに、第
3ビットb3は、蓄積部1に蓄積されている情報のコピー
の可否を表示するビットであり、コピー禁止が「1」
で、またコピー許容が「0」で示されている。同様に第
4ビットb4は、蓄積部1に蓄積されている情報の読み出
しの可否を示し、読み出し禁止は「1」で、また読み出
し許容は「0」で示す。たとえば、記憶領域20において
使用不可能となったパケットについては、パケット属性
16cとして「11X1XXXX」が表示される。ここで「X」は
“don't care"ビットである。
FIG. 5 shows an example in which the packet attribute 16c is composed of 1 byte per packet 22, and 4 bits of each byte are used for displaying the packet attribute. Most significant bit MS
The first bit b1 of B indicates whether overwriting is possible, write protection is indicated by "1", and overwrite permission is indicated by "0".
In this case, overwriting may be interpreted as including erasing. The second bit b2 indicates whether the packet 22 is empty or closed, where "1" indicates used and "0" indicates unused. Furthermore, the third bit b3 is a bit indicating whether or not the information stored in the storage unit 1 can be copied, and the copy prohibition is "1".
, And the copy permission is indicated by “0”. Similarly, the fourth bit b4 indicates whether or not the information stored in the storage unit 1 can be read. The read prohibition is “1” and the read permission is “0”. For example, for a packet that cannot be used in storage area 20, the packet attribute
"11X1XXXX" is displayed as 16c. Here, "X" is a "don't care" bit.

ヘッダ16aには、使用クラスタ数、残留クラスタ数、
最大使用パケット番号、先頭未使用パケット番号および
パリティ16bが格納される。使用クラスタ数は、記憶領
域20において画像データが有効に書き込まれているクラ
スタ4の総数を示すデータである。残留クラスタ数は、
記憶領域20において画像データの書き込みに提供可能
な、すなわち空きのクラスタ14の数を示す。メモリカー
ド10のROM領域(図示せず)には、記憶領域の容量を示
すデータが格納されたものがある。そのようなカードの
場合、使用クラスタ数および(または)残留クラスタ数
は、記憶容量と比較して両者の合理性をチェックするの
に使用することができる。
The header 16a contains the number of used clusters, the number of remaining clusters,
The maximum used packet number, the head unused packet number, and the parity 16b are stored. The number of used clusters is data indicating the total number of clusters 4 in which image data is effectively written in the storage area 20. The number of residual clusters is
The number of clusters 14 that are available for writing image data in the storage area 20, that is, the number of empty clusters 14, is shown. Some ROM areas (not shown) of the memory card 10 store data indicating the capacity of the storage area. For such cards, the number of used clusters and / or the number of remaining clusters can be used to check the reasonableness of both in comparison with the storage capacity.

ヘッダ16aの最大使用パケット番号は、記憶領域20に
記憶されているパケット22のうち最もパケット番号の大
きいものを示すデータである。この場合、一連の使用パ
ケットのなかには消去されたものがあることもあるが、
その場合でも、最も値の大きい番号が最大使用パケット
番号となる。これは、メモリカード10を再生装置に装填
して画像データ20を読み出す際、再生装置は、後述のよ
うにパケット属性16cおよびディレクトリ16dを読み込む
が、最大使用パケット番号を参照することによりそれら
の使用量を把握することができ、これによって読み込み
領域を限定することができる。また、先頭未使用パケッ
ト番号は、記憶領域20における未使用パケットのうち最
若番のものの番号を指す。先頭未使用パケット番号は、
たとえば再生装置で画像データ20の再生の際、これを書
き込むことができる。これによって、そのメモリカード
10を電子スチルカメラ52(第6図)に装填して画像記録
を行なわせる場合、カメラ52の処理負荷を軽減すること
ができる。
The maximum used packet number of the header 16a is data indicating the largest packet number of the packets 22 stored in the storage area 20. In this case, some of the packets in use may have been deleted,
Even in that case, the number with the largest value is the maximum packet number used. This is because when the memory card 10 is loaded into the playback device and the image data 20 is read, the playback device reads the packet attribute 16c and the directory 16d as described later, but uses them by referring to the maximum use packet number. The amount can be grasped, and thus the reading area can be limited. The head unused packet number indicates the number of the smallest unused packet in the storage area 20. The first unused packet number is
For example, when reproducing the image data 20 with the reproducing device, this can be written. This allows that memory card
When the electronic still camera 52 (FIG. 6) is loaded with the 10 to record an image, the processing load of the camera 52 can be reduced.

ヘッダ16aには、最大使用パケット番号および先頭未
使用パケット番号に加えて、またはこれの代りに、最大
使用クラスタ番号および先頭未使用クラスタ番号を含ん
でもよい。最大使用クラスタ番号は、記憶領域20のクラ
スタ14のうち最もクラスタ番号の大きいものを示すデー
タである。この場合も、一連の使用クラスタのなかには
使用していないものがあることもあるが、その場合で
も、最も値の大きい番号が最大使用クラスタ番号とな
る。また、先頭未使用クラスタ番号は、記憶領域20にお
ける未使用クラスタのうち最若番のものの番号を指す。
最大使用クラスタ番号および先頭未使用クラスタ番号も
やはり、前述した最大使用パケット番号および先頭未使
用パケット番号の場合と同様の効果を生ずる。
The header 16a may include the maximum used cluster number and the head unused cluster number in addition to or instead of the maximum used packet number and the head unused packet number. The maximum used cluster number is data indicating the largest cluster number among the clusters 14 in the storage area 20. In this case as well, there is a case in which some of the series of used clusters are not used, but even in this case, the number with the largest value is the maximum used cluster number. Further, the head unused cluster number indicates the number of the smallest unused cluster in the storage area 20.
The maximum used cluster number and the head unused cluster number also have the same effect as the case of the maximum used packet number and the head unused packet number described above.

ヘッダ16はまた、パリティ領域を含む。ヘッダ16a
は、1アドレスで指定される記憶領域として1バイトを
含む。パリティは、ヘッダ16aの全バイトにわたって各
桁ごとに対応するビットのアドレス方向、すなわち縦方
向におけるパリティを計算したものであり、ヘッダデー
タ領域16aの最終アドレスの記憶位置に格納される。こ
の計算は、各桁ごとに2進の加算を実行して桁上げを削
除することによって実現される。これによって、ヘッダ
データ領域16aのデータ内容の正当性を検査することが
できる。なお、本実施例ではパリティ検査を利用してい
るが、本発明はこれのみに限定されず、たとえばCRC符
号など、誤り訂正の可能な検査符号系を用いてもよい。
The header 16 also includes a parity area. Header 16a
Contains 1 byte as a storage area specified by 1 address. The parity is calculated by calculating the parity in the address direction, that is, the vertical direction of the corresponding bit for each digit over all bytes of the header 16a, and is stored in the storage position of the final address of the header data area 16a. This calculation is accomplished by performing a binary addition for each digit to remove the carry. As a result, the validity of the data content of the header data area 16a can be checked. Although the parity check is used in the present embodiment, the present invention is not limited to this, and a check code system capable of error correction, such as a CRC code, may be used.

ヘッダ16aはこの他に、たとえばメモリカード10にユ
ーザが与えることのできるカード番号や名称などのユー
ザデータを格納するユーザ領域を含んでもよい。さら
に、たとえば画像用のカードであることなど、カード10
の種別を示す識別表示をフォーマットバージョンデータ
を含んでもよい。このフォーマットバージョンデータ
は、たとえば電子スチルカメラ52にデータ処理用のメモ
リカードが装填された場合など、初期の種類のメモリカ
ード10以外のメモリカードが記録装置や再生装置に接続
された場合、装置やカードを保護するのに利用される。
In addition to this, the header 16a may include a user area for storing user data such as a card number and a name that can be given to the memory card 10 by the user. In addition, a card 10 such as being a card for images
The format display data may be included in the identification display indicating the type. This format version data is used when the electronic still camera 52 is loaded with a memory card for data processing, when a memory card other than the initial type memory card 10 is connected to the recording device or the reproducing device, Used to protect cards.

ところで、第2図のクラスタ#4に例示するように、
あるパケット22の先頭クラスタには画質モードを示すデ
ータ14cが含まれる。画質モード14cは、パケット22を形
成する画像および(または)音声のデータの符号化圧縮
モードを示す。たとえば、画像データは、標準モード
や、たとえば1bit/pelなどの圧縮率を有する高密度圧縮
モードなどの符号化圧縮モードによって1パケット分の
総データ量が異なり、したがて1パケットの圧縮された
画像データを格納できるクラスタ14の所要数も異なる。
本実施例では、電子カメラ52などの記録装置で画像デー
タ20をメモリカード10に記憶する最、この画質モード14
cをパケット22の先頭クラスタ14bに書き込むことによ
り、そのメモリカード10を再生する再生装置は、再生の
際、アクセスすべきクラスタ14の数を識別することがで
きるようになっている。
By the way, as illustrated in the cluster # 4 of FIG.
The first cluster of a packet 22 includes data 14c indicating the image quality mode. The image quality mode 14c indicates an encoding compression mode of image and / or audio data forming the packet 22. For example, the total amount of image data for one packet differs depending on the standard mode or the encoding compression mode such as the high-density compression mode having a compression rate of 1 bit / pel, and thus the one packet is compressed. The required number of clusters 14 that can store image data is also different.
In this embodiment, when the image data 20 is stored in the memory card 10 by the recording device such as the electronic camera 52, the image quality mode 14
By writing c to the first cluster 14b of the packet 22, the reproducing device for reproducing the memory card 10 can identify the number of clusters 14 to be accessed during reproduction.

再び第1図において、コントローラ3は、コネクタ5
を介して送られる制御信号に応動して蓄積部1にデータ
の書き込みおよび読み出しのための許可信号ESを送出
し、バス100を介して送られるアドレス信号ADを蓄積部
1へ送出する。カメラ側から送られる制御信号として
は、バス100を介して送られるアドレス信号またはデー
タ信号の区別を示すステート信号A0,A1、データの読み
出しのためのリード信号RD、データの書き込みのための
ライト信号WR、カメラ側へ処理中の指示を示すビジー信
号BUSY等がある。この実施例におけるコントローラ3
は、カード10がカメラ52に装着されて、管理データを読
み出した場合に、蓄積部10の管理領域16Aまたは16Bの一
方から管理データを読み出すための制御を行った後に、
その領域の管理データを消去する信号を蓄積部1へ送出
する機能を有する。また、カメラ52にて更新された上述
の管理データが送信された場合に、消去された管理領域
16Aまたは16Bにその管理データを書き込み、その書き込
みが終了すると、他方の管理領域を消去して、一方の管
理領域に書き込まれた管理データを他方の管理領域に書
き移す制御を行う機能を有する。コネクタ5は、日本電
子工業協会(JEIDA)にて企画された「ICメモリカード
ガイドライン」に沿った、たとえば、20ピンのコネクタ
にて構成されている。
Referring again to FIG. 1, the controller 3 has a connector 5
In response to a control signal sent via the storage unit 1, a permission signal ES for writing and reading data to the storage unit 1 is sent, and an address signal AD sent via the bus 100 is sent to the storage unit 1. As control signals sent from the camera side, state signals A0 and A1 indicating the distinction between address signals or data signals sent via the bus 100, a read signal RD for reading data, a write signal for writing data. There are WR, a busy signal BUSY indicating an instruction in process to the camera side, and the like. Controller 3 in this embodiment
When the card 10 is attached to the camera 52 and the management data is read, after performing the control for reading the management data from one of the management areas 16A or 16B of the storage unit 10,
It has a function of sending a signal for erasing the management data in the area to the storage unit 1. In addition, when the above management data updated by the camera 52 is transmitted, the management area deleted
The management data is written in 16A or 16B, and when the writing is completed, the other management area is erased and the management data written in one management area is transferred to the other management area. The connector 5 is composed of, for example, a 20-pin connector according to the "IC memory card guideline" planned by the Japan Electronics Manufacturers Association (JEIDA).

このようなメモリカード10が適用されるディジタル電
子スチルカメラの実施例を第6図に示す。この図におい
て、ディジタル電子スチルカメラ52には、メモリカート
リッジ10がコネクタ5によって着脱可能に接続される。
このカメラ52は、撮像レンズ54を通して撮像デバイス56
によって被写界を撮像し、これを表わす画像データをメ
モリカード10に記憶させる静止画像撮影装置である。撮
像デバイス56の出力は、信号処理回路58によって色調整
などの信号処理が施され、アナログ・ディジタル(A/
D)変換回路60によって対応のディジタルデータに変換
される。このディジタルデータは、信号処理回路62によ
って色分離されて、圧縮符号化され、データセレクタ64
を通してコネクタ5へ出力される。
An embodiment of a digital electronic still camera to which such a memory card 10 is applied is shown in FIG. In this figure, a memory cartridge 10 is detachably connected to a digital electronic still camera 52 by a connector 5.
This camera 52 has an imaging device 56 through an imaging lens 54.
It is a still image capturing device that captures an image of a field and stores the image data representing the field in the memory card 10. The output of the image pickup device 56 is subjected to signal processing such as color adjustment by the signal processing circuit 58, and the analog / digital (A /
D) Converted into corresponding digital data by the conversion circuit 60. This digital data is color-separated by the signal processing circuit 62, compression-encoded, and the data selector 64.
Through the connector 5 to the connector 5.

カメラ52は操作表示部66を有し、これは、たとえば露
光指示、データ圧縮モード指定およびライトプロテクト
指定などの様々な指示を手操作にて入力し、また、たと
えば画像データの記録に必要な空きクラスタが存在しな
い旨を表わす警報など、装置の状態を使用者に表示す
る。操作表示部66へ入力された指示はシステム制御部68
に送られ、また装置の状態は同制御部68から操作表示部
66に与えられる。
The camera 52 has an operation display unit 66, which manually inputs various instructions such as an exposure instruction, a data compression mode designation, and a write protect designation, and a space required for recording image data, for example. Display the device status to the user, such as an alarm indicating that there is no cluster. The instruction input to the operation display unit 66 is the system control unit 68.
The status of the device is sent from the control unit 68 to the operation display unit.
Given to 66.

システム制御部68は、カメラ52全体の動作を制御する
制御装置であり、メモリカード10へのデータの書き込み
制御も行なう。
The system control unit 68 is a control device that controls the operation of the entire camera 52, and also controls writing of data to the memory card 10.

システム制御部68には圧縮率設定回路70が接続され、
これは、システム制御部68の制御の下に操作表示部66で
指示されたデータ圧縮モードに応じた画像データの符号
化圧縮率を信号処理回路62に設定する回路である。圧縮
符号化方式は、たとえば2次元コサイン変換などの直交
変換、またはサブサンプリグおよび量子化などが有利に
適用される。
A compression ratio setting circuit 70 is connected to the system control unit 68,
This is a circuit for setting, in the signal processing circuit 62, the coding compression rate of image data according to the data compression mode instructed by the operation display unit 66 under the control of the system control unit 68. As the compression encoding method, for example, orthogonal transformation such as two-dimensional cosine transformation, or sub sampling and quantization is advantageously applied.

データセレクタ64は、信号処理回路62からの画像デー
タとシステム制御部68の関与する制御データとを選択的
にコネクタ50を通してメモリカード10に送出する選択回
路であり、これには、管理領域更新回路72および管理領
域読出し回路74が接続されている。管理領域更新回路72
は、メモリカード10の管理データ領域16A,16Bに書き込
む管理データを生成する回路である。また管理領域読出
し回路74は、メモリカード10の管理領域20に格納されて
いる管理データを読み出してシステム制御回路74に入力
する読み出し回路である。
The data selector 64 is a selection circuit that selectively sends the image data from the signal processing circuit 62 and the control data related to the system control unit 68 to the memory card 10 through the connector 50. 72 and the management area read circuit 74 are connected. Management area update circuit 72
Is a circuit for generating management data to be written in the management data areas 16A and 16B of the memory card 10. The management area read circuit 74 is a read circuit that reads the management data stored in the management area 20 of the memory card 10 and inputs it to the system control circuit 74.

動作状態では、メモリカード10をコネクタ5によって
カメラ52に接続すると、システム制御部68は、カード10
の蓄積部1のデータ管理領域16A(またはデータ管理領
域16B)に蓄積されているヘッダ16a〜MAT16eを管理デー
タ読出し回路74を介してカード10の蓄積部1から順次読
み出す。これは、アドレス指定回路76によってアドレス
バス78で管理領域16Aのヘッダ領域16a〜MAT領域16eのア
ドレスが指定されて、蓄積部1の管理データ領域16Aか
ら読み出されたヘッダ16a〜MAT16eがコネクタ5および
データセレクタ64を通して管理データ読出し回路74に読
み出されることによって行なわれる。これら管理データ
が管理データ領域16から読み出されて、システム制御部
68に送られると、システム制御部68は、受信信号をメモ
リカード10に送出する。メモリカード10では、その受信
信号を受けると、コントローラ3から管理領域16Aの内
容を消去する信号が蓄積部1へ送出され、管理領域16A
が消去されて更新されて送られる管理データの書き込む
準備が行なわれる。
In the operating state, when the memory card 10 is connected to the camera 52 by the connector 5, the system controller 68 causes the card 10 to operate.
The headers 16a to MAT16e stored in the data management area 16A (or the data management area 16B) of the storage unit 1 are sequentially read from the storage unit 1 of the card 10 via the management data reading circuit 74. This is because the addresses of the header areas 16a to MAT area 16e of the management area 16A are specified by the address specifying circuit 76 by the address specifying circuit 76, and the headers 16a to MAT16e read from the management data area 16A of the storage unit 1 are connected to the connector 5 by the connector 5. And is read by the management data read circuit 74 through the data selector 64. These management data are read from the management data area 16 and the system control unit
When sent to 68, the system control unit 68 sends the received signal to the memory card 10. In the memory card 10, when the received signal is received, a signal for erasing the contents of the management area 16A is sent from the controller 3 to the storage unit 1, and the management area 16A
Is prepared for writing the management data to be erased, updated and sent.

システム制御部68は、管理データを受信すると、ま
ず、この読み出されたヘッダ16aに含まれているフォー
マットバージョンをチェックし、本実施例ではこれに画
像用表示のないフォーマットバージョンであれば、その
メモリガードを排斥する表示を操作表示部66に表示す
る。また、ユーザのカード番号が含まれていれば、これ
も表示する。次に、ヘッダ16aについてパリティチェッ
クを行ない、その結果をヘッダ16aに含まれたパリティ
を照合する。このパリティチェックは、前述のように、
ヘッダ16aの全バイトにわたって各桁ごとに対応するビ
ットのアドレス方向に各桁ごとに2進の加算を実行して
桁上げを削除することによって行なわれる。
Upon receiving the management data, the system control unit 68 first checks the format version included in the read header 16a, and in the present embodiment, if the format version does not include an image display, the A display for rejecting the memory guard is displayed on the operation display unit 66. If the card number of the user is included, this is also displayed. Next, a parity check is performed on the header 16a, and the result is compared with the parity included in the header 16a. This parity check is, as mentioned above,
This is done by performing a binary addition for each digit in the address direction of the corresponding bit for each digit over all bytes of the header 16a and deleting the carry.

パリティチェックの結果が良好であれば、システム制
御部68はクラスタ数のチェックを行なう。これは、メモ
リカード10より読み込んだカード容量からその記憶領域
の総クラスタ数を算出し、総クラスタ数が使用クラスタ
数と残留クラスタ数の和に一致するか否かのチェックで
ある。使用クラスタ数および残留クラスタ数はヘッダ16
aに含まれる管理データである。このチェックに合格す
ると、システム制御部68は操作表示部66に撮影可能を表
示する。
If the result of the parity check is good, the system control unit 68 checks the number of clusters. This is a check whether the total number of clusters in the storage area is calculated from the card capacity read from the memory card 10 and whether the total number of clusters is equal to the sum of the number of used clusters and the number of remaining clusters. The number of used clusters and the number of remaining clusters are 16
It is the management data included in a. If this check is passed, the system control unit 68 displays on the operation display unit 66 that shooting is possible.

操作表示部66を撮影ボタンを操作すると、これに応動
してシステム制御部68は、撮像デバイス52を制御して被
写界の撮影を行なう。撮像デバイス52の出力は、信号処
理回路58で色調整などの信号処理が施され、アナログ・
ディジタル変換回路60によって対応のディジタルデータ
に変換される。このディジタルデータは、信号処理回路
62によって色分離され、圧縮率設定回路70で設定された
圧縮率で圧縮符号化され、データバッファ63、データセ
レクタ64およびコネクタ50を通してメモリカード10へ出
力される。
When the shooting button is operated on the operation display unit 66, the system control unit 68 controls the imaging device 52 in response to the operation to shoot the object scene. The output of the image pickup device 52 is subjected to signal processing such as color adjustment in the signal processing circuit 58, and the analog signal is output.
The digital conversion circuit 60 converts the corresponding digital data. This digital data is the signal processing circuit.
The colors are separated by 62, compression-encoded at the compression rate set by the compression rate setting circuit 70, and output to the memory card 10 through the data buffer 63, the data selector 64, and the connector 50.

その際、システム制御部68は、読み込んだMATデータ1
6eにより、その空き表示「全0」の立っているクラスタ
を探す。1パケット22の記憶に必要なクラスタ数は、圧
縮率設定回路70に指示されている圧縮率よりシステム制
御部68にて算出される。システム制御部68はこうして、
記憶領域20における所要のクラスタ14の先頭の記憶位置
を指定するアドレスを生成し、カード10にこれを送る。
カード10では、アドレス指定回路76にて各クラスタ14に
おける記憶位置アドレスをアドレスバス78に生成し、こ
れによってデータバス80上の画像データが画像データ記
憶領域20に書き込まれる。なお、その際、先頭のクラス
タ14bには、圧縮率に応じた画質モード14cを示すデータ
を書き込む。
At that time, the system control unit 68 reads the MAT data 1
6e is used to search for a cluster in which the empty display "all 0s" is standing. The number of clusters required to store one packet 22 is calculated by the system control unit 68 from the compression rate instructed to the compression rate setting circuit 70. The system control unit 68
An address designating the beginning storage position of the required cluster 14 in the storage area 20 is generated and sent to the card 10.
In the card 10, the address designating circuit 76 generates a storage position address in each cluster 14 on the address bus 78, whereby the image data on the data bus 80 is written in the image data storage area 20. At that time, data indicating the image quality mode 14c corresponding to the compression rate is written in the first cluster 14b.

こうして、1パケット22の画像データと、場合によっ
てはそれに関連する音声データが記憶領域20に蓄積され
ると、システム制御部68は管理データ更新回路72を制御
してMAT16eの更新を行なう。つまり、1パケット22のデ
ータの記録に使用したクラスタ14が連鎖するように、MA
T16eには各クラスタ14に対応して次のクラスタの番号を
記入し、最終のクラスタには「全1」を記入する。管理
データ更新回路72は、こうして更新されたMATデータ16e
をカード10へ転送し、これは管理データ領域16Aに書き
込まれる。
In this way, when the image data of one packet 22 and the audio data associated therewith are accumulated in the storage area 20, the system control unit 68 controls the management data update circuit 72 to update the MAT 16e. In other words, the MA used to record the data of one packet 22 is linked to the cluster 14
The number of the next cluster is entered in T16e corresponding to each cluster 14, and "all 1s" is entered in the final cluster. The management data update circuit 72 uses the MAT data 16e thus updated.
To the card 10, which is written to the management data area 16A.

同様にしてディレクトリ16dも更新される。ディレク
トリ16dの更新は、データ種別およびスタートクラスタ
について行なわれる。スタートクラスタは、1パケット
22のデータの記録に使用した一連のクラスタ14のうちの
先頭のもののクラスタ番号であり、これが管理データ更
新回路72で作成されてカード10の管理データ領域16Aに
格納される。
Similarly, the directory 16d is updated. The directory 16d is updated for the data type and start cluster. Start cluster is 1 packet
The cluster number of the first one of the series of clusters 14 used for recording data 22 is created by the management data update circuit 72 and stored in the management data area 16A of the card 10.

システム制御部68は次に、パケット属性16cを更新す
る。つまり、カード10に記憶したパケット22についてそ
の属性表示を設定する。第4図に示すビットマップ方式
では、記憶したパケット22のパケット属性ビットを使用
表示「1」にする。第5図に示す方式では、パケット22
の空塞b2を使用表示「1」に設定し、また、操作表示部
66に設定された状態に応じて上書きの可否b1,コピーの
可否b3、読出しの可否b4をセットする。これも管理デー
タ領域16Aに転送される。
The system control unit 68 then updates the packet attribute 16c. That is, the attribute display is set for the packet 22 stored in the card 10. In the bit map method shown in FIG. 4, the packet attribute bit of the stored packet 22 is set to the use indication “1”. In the method shown in FIG.
Set the air block b2 of the use display to "1", and the operation display
Depending on the state set in 66, overwrite permission b1, copy permission b3, and read permission b4 are set. This is also transferred to the management data area 16A.

最後にシステム制御68はヘッダ16aの書換えを行な
う。1パケット22のデータの記憶に要したクラスタ数に
応じて、使用クラスタ数を加算するとともに残留クラス
タ数を減じ、先頭未使用パケット番号を更新する。ま
た、最大使用パケット番号に変更があれば、これも更新
する。先頭未使用クラスタ番号および最大使用クラスタ
番号についても同様である。こうして更新された結果の
ヘッダ16aの全データについて各桁ごとに対応するビッ
トの縦方向にパリティを作成し、その結果でパリティ16
bを更新する。更新されたヘッダ16aは管理データ領域16
Aに書き込まれる。
Finally, the system control 68 rewrites the header 16a. Depending on the number of clusters required to store the data of one packet 22, the number of used clusters is added, the number of remaining clusters is reduced, and the head unused packet number is updated. Also, if there is a change in the maximum used packet number, this is also updated. The same applies to the top unused cluster number and the maximum used cluster number. Parity is created in the vertical direction of the corresponding bit for each digit for all the data of the header 16a that is updated in this way, and the parity 16
Update b. The updated header 16a is stored in the management data area 16
Written to A.

このように、画像データのメモリカード10への記憶に
際して、画像データ20、MAT16e,ディレクトリ16d,パケ
ット属性16cおよびヘッダ16aの順にメモリカード10への
書き込みが行なわれる。この際に、これらの一連の動作
の途中でカード10をコネクタ5から引き抜くような事態
が生じたり、カメラ52にて電源断等の不意の事故が生じ
た場合、カメラ側にて更新されていない管理データが失
われてしまうが、この実施例におけるメモリカード10に
は、管理領域16Bにその管理データが記憶されているの
で、その管理データを再び読み出すことにより、中断し
た上記動作を繰り返して最新の管理データを生成するこ
とができる。なお、そのような事態において、後に管理
領域16Bから管理データを読み出す場合は、管理領域16B
は、消去せずに必要な部分のみ読み出しを行う。この結
果、後のカード10の記録、再生動作が有効に行なわれ
る。次いで、すべての管理データの更新が行なわれて、
その管理データが管理領域16Aにすべて格納されると、
コントローラ3は、管理領域16Bを消去して、管理領域1
6Aに記録された最新の管理データを管理領域16Bに書き
込む。これにより、次回のデータ更新に備えることがで
きる。
Thus, when storing the image data in the memory card 10, the image data 20, the MAT 16e, the directory 16d, the packet attribute 16c, and the header 16a are written in the memory card 10 in this order. At this time, if a situation occurs in which the card 10 is pulled out from the connector 5 in the middle of these series of operations, or if an unexpected accident such as power-off of the camera 52 occurs, it is not updated on the camera side. Although the management data will be lost, since the management data is stored in the management area 16B of the memory card 10 in this embodiment, the management data is read again to repeat the interrupted operation described above and update the latest data. Management data can be generated. In such a situation, when reading the management data from the management area 16B later, the management area 16B
Reads only the necessary part without erasing. As a result, later recording and reproducing operations of the card 10 are effectively performed. Then all management data updates are done,
When all the management data is stored in the management area 16A,
The controller 3 erases the management area 16B to replace the management area 1
The latest management data recorded in 6A is written in the management area 16B. This makes it possible to prepare for the next data update.

なお、上記実施例においては、管理データがヘッダ16
a〜MAT16eの4つの管理データによって構成されている
場合を説明したが、この発明においては、その数および
方式に限らず記憶する本データの管理を行うための情報
であればよく、その必要な管理データを2つ以上備えた
方式は、本発明に含まれる。また、上記実施例において
は、メモリカードの蓄積部としてEEPROMを例に上げて説
明したが、SRAM等の他の半導体メモリを用いてもよい。
さらに、上記実施例においては、メモリカード10内部に
おいて、一方の管理領域に更新された管理データを他方
の管理領域に書き込むようにしたが、カメラ側から更新
した管理データを再び他方の管理領域に書き込むように
してもよい。
In the above embodiment, the management data is the header 16
Although a case has been described in which the management data is composed of four management data items a to MAT16e, the present invention is not limited to the number and method thereof, and may be any information as long as it is information for managing the stored data. A system provided with two or more management data is included in the present invention. Further, in the above embodiment, the description has been given by taking the EEPROM as an example of the storage unit of the memory card, but other semiconductor memory such as SRAM may be used.
Further, in the above embodiment, the management data updated in one management area is written in the other management area inside the memory card 10, but the management data updated from the camera side is again written in the other management area. It may be written.

効 果 以上説明したように本発明では、メモリカードにデー
タの記憶状態を管理するための管理情報を記憶する管理
領域を少なくとも2つ以上備えているので、片方の管理
領域に更新した管理データを書き込んでいる途中等に、
電源断等の事故が発生した場合でも、他方の管理領域に
管理データを保持しているので、その管理データを読み
出すことにより、続けて動作を行うことができる。した
がって、カードの管理データの消失等を防止することが
でき、カメラ等のホスト側の不意の事故等でも、カード
内容の展開を不可能にしたり、カードの使用ができなく
なるという重大な問題を解消することができる。
Effect As described above, according to the present invention, at least two management areas for storing management information for managing the storage state of data are provided in the memory card. In the middle of writing,
Even if an accident such as power failure occurs, the management data is held in the other management area, so that the operation can be continued by reading the management data. Therefore, it is possible to prevent the loss of management data of the card, and solve the serious problem that the contents of the card cannot be expanded or the card cannot be used even in the event of an unexpected accident on the host side such as a camera. can do.

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

第1図は本発明によるメモリカードの一実施例を示すブ
ロック図、 第2図は本発明の実施例におけるメモリカードの記憶領
域の構成例を示す図、 第3図は同実施例に適用される記憶方式を示す概念図、 第4図および第5図は、第2図に示す記憶領域の構成例
におけるパケット属性データのフォーマットを例示する
説明図、 第6図は本発明をディジタル電子スチルカメラに適用し
た例を示す機能ブロック図である。 主要部分の符号の説明 1……蓄積部 3……コントローラ 5……コネクタ 10……メモリカード 14……クラスタ 14c……画質モード 16A,16B……管理領域 16a……ヘッダ 16c……パケット属性 16d……ディレクトリ 16e……MAT(メモリアロケーションテーブル) 20……画像データ 22……パケット 66……操作表示部 68……システム制御部
FIG. 1 is a block diagram showing an embodiment of a memory card according to the present invention, FIG. 2 is a diagram showing a configuration example of a storage area of a memory card in the embodiment of the present invention, and FIG. 3 is applied to the same embodiment. 4 and 5 are explanatory views illustrating the format of the packet attribute data in the configuration example of the storage area shown in FIG. 2, and FIG. 6 is a digital electronic still camera according to the present invention. It is a functional block diagram showing an example applied to. Description of main part code 1 …… Storage unit 3 …… Controller 5 …… Connector 10 …… Memory card 14 …… Cluster 14c …… Image quality mode 16A, 16B …… Management area 16a …… Header 16c …… Packet attribute 16d ...... Directory 16e ...... MAT (memory allocation table) 20 …… Image data 22 …… Packet 66 …… Operation display 68 …… System control

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 昭62−17852(JP,A) 特開 昭63−286077(JP,A) 特開 平2−193236(JP,A) 実開 昭63−63879(JP,U) ─────────────────────────────────────────────────── ─── Continuation of the front page (56) References JP 62-17852 (JP, A) JP 63-286077 (JP, A) JP 2-193236 (JP, A) Actual development Sho 63- 63879 (JP, U)

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】ホスト処理装置に着脱自在に形成されて、
該ホスト処理装置から送られるデータを記憶し、あわせ
てデータの管理情報を記憶するメモリカードにおけるデ
ータ管理方式において、 前記メモリカードは、データの記憶状態を管理するため
の同じ管理情報を記憶する管理領域を2つ備え、 前記ホスト処理装置は、メモリカードのデータの書き換
えを行う際に、メモリカードに記憶された前回の管理情
報をメモリカードの一の管理領域から読み出して該一の
管理領域に記憶された前回の管理情報を消去し、該消去
した後に前記読み出した一の管理領域からの前回の管理
情報が失われた場合に、前回の管理情報をメモリカード
の他の一つの管理領域から読み出し、該前回の管理情報
に基づいて今回のデータの書き換えに関する更新される
管理情報を作成し、その更新される管理情報を前記2つ
の管理領域にそれぞれ書き込むことを特徴とするメモリ
カードにおけるデータ管理方式。
1. A detachable host processing device,
In a data management method for a memory card that stores data sent from the host processing device and also stores data management information, the memory card stores the same management information for managing a data storage state. Two areas are provided, and the host processing device reads the previous management information stored in the memory card from one management area of the memory card and rewrites it to the one management area when rewriting the data of the memory card. When the previous management information stored in the memory card is erased and the previous management information from the one management area read after the deletion is lost, the previous management information is deleted from the other management area of the memory card. The management information that is read out, updated management information relating to the rewriting of the current data is created based on the management information of the previous time, and the updated management information is set to the above-mentioned 2 Data management method in a memory card and writes each management area.
【請求項2】ホスト処理装置に着脱自在に形成されて、
該ホスト処理装置から送られるデータを記憶し、あわせ
てその管理情報を記憶するメモリカードにおけるデータ
管理方式において、 前記メモリカードは、データの記憶状態を管理するため
の同じ管理情報を記憶する管理領域を2つ備えて、 該メモリカードは、データの書き換えの際に、その書き
換え後の管理情報を一の管理領域に書き込み、その書き
込みの後に、一の管理領域に書き込まれた管理情報を他
の管理領域に書き移して、現在の管理情報を前記2つの
管理領域に有することを特徴とするメモリカードにおけ
るデータ管理方式。
2. A host processing device which is detachably formed,
In a data management method in a memory card that stores data sent from the host processing device and also stores management information thereof, the memory card stores a management area for storing the same management information for managing a storage state of data. When the data is rewritten, the memory card is provided with two pieces of management information, and the management information after the rewriting is written in one management area, and after the writing, the management information written in the one management area is written in another area. A data management method in a memory card, wherein the current management information is written in a management area and the current management information is stored in the two management areas.
JP2268304A 1990-10-08 1990-10-08 Data management method for memory card Expired - Lifetime JP2675429B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2268304A JP2675429B2 (en) 1990-10-08 1990-10-08 Data management method for memory card
GB9121440A GB2248707B (en) 1990-10-08 1991-10-08 Memory card and data management system in memory card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2268304A JP2675429B2 (en) 1990-10-08 1990-10-08 Data management method for memory card

Publications (2)

Publication Number Publication Date
JPH04145596A JPH04145596A (en) 1992-05-19
JP2675429B2 true JP2675429B2 (en) 1997-11-12

Family

ID=17456671

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2268304A Expired - Lifetime JP2675429B2 (en) 1990-10-08 1990-10-08 Data management method for memory card

Country Status (2)

Country Link
JP (1) JP2675429B2 (en)
GB (1) GB2248707B (en)

Families Citing this family (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2693575B1 (en) * 1992-07-09 1994-08-19 Gemplus Card Int Mass memory card with input / output function.
JPH06231023A (en) * 1993-10-19 1994-08-19 Olympus Optical Co Ltd Information recorder
JPH06231014A (en) * 1993-10-19 1994-08-19 Olympus Optical Co Ltd Information recorder
JPH07210438A (en) * 1994-01-24 1995-08-11 Fujitsu Ltd File management method
KR0127029B1 (en) * 1994-10-27 1998-04-01 김광호 Memory card and its recording, reproducing and erasing method
KR0155043B1 (en) * 1995-04-27 1998-11-16 김광호 Ic card memory and the control method which can record and play voices and images together or separately
JP3509285B2 (en) * 1995-05-12 2004-03-22 富士通株式会社 Compressed data management method
US5999697A (en) * 1995-07-21 1999-12-07 Sony Corporation Apparatus for recording and/or reproducing still images
JPH10207788A (en) * 1997-01-28 1998-08-07 Casio Comput Co Ltd Information recording apparatus, data management method thereof, and recording medium
JPH10124400A (en) * 1996-10-23 1998-05-15 Sony Corp Data processor and method for accessing data recording medium
JP3519913B2 (en) * 1997-06-10 2004-04-19 三洋電機株式会社 Digital still camera
JP3640154B2 (en) * 1997-09-30 2005-04-20 ソニー株式会社 Nonvolatile memory, nonvolatile memory management method, storage device having nonvolatile memory, data management device for managing nonvolatile memory, and data processing system
FR2772957B1 (en) * 1997-12-19 2000-02-04 Gemplus Card Int PROCESS FOR MANAGING EVOLVING APPLICATIONS IN A TERMINAL / CHIP CARD SYSTEM
TW463107B (en) * 1998-12-22 2001-11-11 Ibm Extended card file system
JP2001051909A (en) 1999-08-05 2001-02-23 Matsushita Electric Ind Co Ltd Portable communication terminal equipment
JP4596602B2 (en) * 2000-05-09 2010-12-08 大日本印刷株式会社 Nonvolatile memory data management method
JP2005506632A (en) * 2001-10-24 2005-03-03 コーニンクレッカ フィリップス エレクトロニクス エヌ ヴィ Security device for mass storage devices
CN1430179A (en) 2001-12-11 2003-07-16 松下电器产业株式会社 IC card and its data processing method
JP3820999B2 (en) * 2002-01-25 2006-09-13 ソニー株式会社 Proximity communication system and proximity communication method, data management apparatus and data management method, storage medium, and computer program
DE10229706A1 (en) * 2002-07-02 2004-12-09 T-Mobile Deutschland Gmbh Method for managing memory space in a storage medium of a digital terminal device for data storage according to the method of prioritized pixel transmission
JP2004164493A (en) * 2002-11-15 2004-06-10 Wescom Inc Data management system for non-volatile memory, data management method for non-volatile memory, and its program
EP2309391A2 (en) * 2004-03-31 2011-04-13 Sanyo Electric Co., Ltd. Information recording method and information recording/reproduction device
EP1729218A4 (en) * 2004-04-20 2007-07-18 Matsushita Electric Ind Co Ltd NON-VOLATILE STORAGE SYSTEM
BRPI0513375A (en) * 2004-07-15 2008-05-06 Mastercard International Inc Method and system for integrating payment card transaction parameters
US8439271B2 (en) 2004-07-15 2013-05-14 Mastercard International Incorporated Method and system using a bitmap for passing contactless payment card transaction variables in standardized data formats
JP3675472B2 (en) * 2004-08-06 2005-07-27 ソニー株式会社 Recording / reproducing apparatus and recording / reproducing method
JP4812278B2 (en) * 2004-10-18 2011-11-09 日産自動車株式会社 Data rewriting method for electronic control unit
JP2008242501A (en) * 2005-07-15 2008-10-09 Matsushita Electric Ind Co Ltd Data recording device, data recording method, and recording medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6217852A (en) * 1985-07-16 1987-01-26 Yokogawa Electric Corp Device for protecting data contents in eeprom
JPS6363879U (en) * 1986-10-14 1988-04-27
JPH0620283B2 (en) * 1987-05-19 1994-03-16 富士写真フイルム株式会社 Image data recording device
JPH02193236A (en) * 1989-01-21 1990-07-30 Fuji Photo Film Co Ltd Storage management system for memory card

Also Published As

Publication number Publication date
GB2248707A (en) 1992-04-15
GB9121440D0 (en) 1991-11-20
JPH04145596A (en) 1992-05-19
GB2248707B (en) 1994-11-23

Similar Documents

Publication Publication Date Title
JP2675429B2 (en) Data management method for memory card
JPH03232029A (en) Storage managing system for memory card
US6192191B1 (en) Data storage based on serial numbers
US5590306A (en) Memory card management system for writing data with usage and recording codes made significant
US5454096A (en) Storage management system for memory card using memory allocation table
JPH02198274A (en) Picture data compressing and recording device
JPS63286077A (en) Picture data storage device
US7403696B2 (en) Recording apparatus, reproducing apparatus, recording method, and reproducing method
JP4487954B2 (en) Data recording apparatus, data recording method, and program
JPH06197308A (en) Electronic still camera
US5829014A (en) Method of supervising storage of data in a memory card having EEPROM and a memory card system using the same
JP3391479B2 (en) Memory card management method and method
JPH02193236A (en) Storage management system for memory card
JP2002024060A (en) File storage device
US7865061B2 (en) Recording apparatus for recording data to recording medium with a Plurality of clusters
JP3070994B2 (en) Memory card storage management method
JP2002135711A (en) Electronic camera device and recording medium
US6750908B1 (en) Image processing apparatus using recording medium which needs data erasing processing before recording of data
JP2892806B2 (en) Electronic still camera
EP0669751B1 (en) Data processing apparatus using recording medium which needs data erasing processing before recording of data
JP3102565B2 (en) Memory card storage management method
JP3552247B2 (en) Electronic still camera
JP3831472B2 (en) Electronic still camera erasing operation control device
JP2836984B2 (en) Memory card with key and display
JP3244446B2 (en) Digital camera

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: 20080718

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: 20080718

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20090718

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20090718

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20100718

Year of fee payment: 13