JP3070994B2 - Memory card storage management method - Google Patents

Memory card storage management method

Info

Publication number
JP3070994B2
JP3070994B2 JP3244099A JP24409991A JP3070994B2 JP 3070994 B2 JP3070994 B2 JP 3070994B2 JP 3244099 A JP3244099 A JP 3244099A JP 24409991 A JP24409991 A JP 24409991A JP 3070994 B2 JP3070994 B2 JP 3070994B2
Authority
JP
Japan
Prior art keywords
header
storage
area
information
recording
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 - Fee Related
Application number
JP3244099A
Other languages
Japanese (ja)
Other versions
JPH0561760A (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 JP3244099A priority Critical patent/JP3070994B2/en
Publication of JPH0561760A publication Critical patent/JPH0561760A/en
Application granted granted Critical
Publication of JP3070994B2 publication Critical patent/JP3070994B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、メモリカードの記憶管
理方式、とくに、消去可能なプログラマブル読出し専用
記憶装置(EPROM) や電気的に消去可能なプログラマブル
読出し専用記憶装置(EEPROM)などの消去可能な読出し専
用記憶デバイスを記憶領域とするメモリカードの記憶管
理方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a storage management method for a memory card, and more particularly to an erasable programmable read only memory (EEPROM) such as an erasable programmable read only memory (EPROM) and an electrically erasable programmable read only memory (EEPROM). The present invention relates to a storage management method for a memory card having a read-only storage device as a storage area.

【0002】[0002]

【従来の技術】たとえばディジタル電子スチルカメラで
画像データの保存媒体に用いられる従来のメモリカード
は、記憶領域がSRAMであった。SRAMは、バックアップ用
の電源回路が必要であり、ビット単価が高価となる欠点
がある。近年、電池のバックアップが不要でブロック単
位または一括で電気的消去が可能なEEPROMを記憶領域と
するメモリカードが実用化され、容量も1Mビット程度の
ものが実現可能である。このようなEEPROMは、SRAMのメ
モリカードに代って用いられる可能性がある。
2. Description of the Related Art For example, a conventional memory card used as a storage medium for image data in a digital electronic still camera has a storage area of SRAM. The SRAM requires a power supply circuit for backup, and has a disadvantage that the unit cost per bit is high. 2. Description of the Related Art In recent years, a memory card using an EEPROM as a storage area that does not require a battery backup and can be electrically erased in blocks or collectively has been put into practical use, and a memory card having a capacity of about 1 Mbit can be realized. Such an EEPROM may be used in place of an SRAM memory card.

【0003】たとえば、本願の出願人と同じ出願人によ
る特許出願、特願平2-60927 に記載のメモリカードの記
憶管理方式では、メモリカードのEEPROMの記憶領域にお
いて、1コマ分の画像データが1つのパケットの形をと
る。1パケットの画像データは一般に、メモリの最小管
理単位である複数のクラスタに分散されて蓄積される。
これらのクラスタは、各パケットごとにメモリ・アロケ
ーション・テーブル(MAT) で管理される。つまり、1パ
ケットの画像データが複数のクラスタに分散されて記憶
される際、そのパケットに関する最初のクラスタの関連
をMAT にて定義し、その最初のクラスタの末尾にはそれ
に続く画像データが記憶されいているクラスタの識別情
報が記憶され、こうしたMAT から複数のクラスタに続く
チェーンを形成することによって1パケットの画像デー
タであることの関連性を定義する。これらのクラスタお
よびパケットなどを管理する管理情報は、メモリカード
のヘッダ領域に収容される。ヘッダは、メモリカード単
位に設けられ、これには、パケットの番号、パケットの
先頭クラスタ番号、使用クラスタ数、残留クラスタ数な
どの管理情報が書き込まれる。したがってヘッダは、1
パケットの画像データが記憶領域に書き込まれる毎に、
内容が更新される。このようなMAT 方式によるメモリ領
域の管理は、画像データのようなデータ長が固定されな
いデータの記憶については、クラスタの割当てに制限が
ないので有利である。
For example, in a memory management method of a memory card described in Japanese Patent Application No. 2-60927 by the same applicant as the present applicant, one frame of image data is stored in an EEPROM storage area of the memory card. Takes the form of one packet. In general, one packet of image data is distributed and stored in a plurality of clusters, which are minimum management units of a memory.
These clusters are managed in a memory allocation table (MAT) for each packet. That is, when one packet of image data is distributed and stored in a plurality of clusters, the association of the first cluster for the packet is defined by MAT, and the subsequent image data is stored at the end of the first cluster. The identification information of the cluster that is present is stored, and the relevance of being one packet of image data is defined by forming a chain following a plurality of clusters from such a MAT. Management information for managing these clusters and packets is contained in the header area of the memory card. The header is provided for each memory card, and management information such as a packet number, a leading cluster number of the packet, the number of used clusters, and the number of remaining clusters is written therein. Therefore, the header is 1
Each time the packet image data is written to the storage area,
The content is updated. The management of the memory area according to the MAT method is advantageous because there is no restriction on the assignment of clusters for storing data whose data length is not fixed, such as image data.

【0004】[0004]

【発明が解決しようとする課題】EEPROMは一般に、一括
消去方式やブロック単位の部分消去方式が価格の点で有
利である。また、その書換え限度も100 〜1000回程度で
ある。上述したようなMAT 方式は、ヘッダ領域を常時更
新する必要があるので、本来、SRAMなどの書換え可能な
記憶デバイスに好適である。しかし、一括消去方式やブ
ロック単位の部分消去方式のEEPROMには、そのままでは
適していない。
Generally, in the EEPROM, a batch erasing method and a partial erasing method in block units are advantageous in terms of cost. The rewriting limit is about 100 to 1000 times. The above-described MAT method is always suitable for a rewritable storage device such as an SRAM because the header area must be constantly updated. However, it is not suitable as it is for the EEPROM of the batch erasing method or the partial erasing method of the block unit.

【0005】本発明はこのような要求に鑑み、一括消去
方式やブロック単位の部分消去方式のEEPROMなどの不揮
発性メモリにおいてもMAT 方式が適用できるメモリカー
ドの記憶管理方式を提供することを目的とする。
The present invention has been made in view of such a demand, and has as its object to provide a storage management method for a memory card to which the MAT method can be applied even to a nonvolatile memory such as an EEPROM of a batch erasing method or a partial erasing method in block units. I do.

【0006】[0006]

【課題を解決するための手段】本発明によれば、初期化
において所定の論理状態に記録が消去されこれに情報が
追加的に書き込まれるEEPROMの記憶領域を有するメモリ
カードの記憶管理方式方式は、前記記憶領域に設けら
れ、画像情報の記憶に係る管理情報の少なくとも一部を
含むヘッダ情報がそれぞれ記録される複数のヘッダ記録
領域と、前記記憶領域に設けられ、複数のヘッダ記録領
域のそれぞれについて空塞を表示する空塞表示手段と、
画像情報を前記記憶領域に書き込み、第1の時点で、画
像情報に関するヘッダ情報を複数のヘッダ記録領域のう
ち空塞表示手段の示す空きのヘッダ記録領域に書き込
み、空塞表示手段における書き込んだヘッダ記録領域に
対応する表示を塞がり表示にする制御手段とを含む。
According to the present invention, there is provided a storage management system for a memory card having an EEPROM storage area in which a record is erased to a predetermined logical state at the time of initialization and information is additionally written into the memory. A plurality of header recording areas provided in the storage area, each recording header information including at least a part of management information relating to storage of image information; and a plurality of header recording areas provided in the storage area, respectively. Air / fence display means for displaying air / fence about,
The image information is written in the storage area, and at the first time, the header information relating to the image information is written in the empty header recording area indicated by the empty / busy display means among the plurality of header recording areas, and the header written in the empty / busy display means is written. Control means for closing the display corresponding to the recording area to make the display closed.

【0007】本発明によればまた、メモリカードの記憶
管理方式は、前記記憶領域に設けられ、画像情報の記憶
に係る管理情報の少なくとも一部を含むヘッダ情報が記
録されるヘッダ記録領域と、ヘッダ記録領域が形成され
る前記記憶領域における記憶位置を追加的に指示する複
数の記憶位置指示領域と、前記記憶領域に設けられ、複
数の記憶位置指示領域のうち最新に指示が追加された領
域を指示する指示手段と、画像情報を前記記憶領域に書
き込み、第1の時点で、指示手段に基づいて複数の記憶
位置指示領域における最新に指示が追加された領域を参
照し、この参照された記憶位置指示領域の指示する前記
記憶領域における位置を導出し、こうして導出された位
置のヘッダ記録領域に画像情報に関するヘッダ情報を書
き込む制御手段とを含む。
According to the present invention, a storage management method for a memory card includes a header recording area provided in the storage area and recording header information including at least a part of management information relating to storage of image information; A plurality of storage position indication areas for additionally indicating storage positions in the storage area in which the header recording area is formed; and an area provided in the storage area and among the plurality of storage position indication areas to which the latest instruction is added And the image information is written into the storage area, and at the first time point, the area to which the latest instruction has been added in the plurality of storage position instruction areas is referred to based on the instruction means, and this reference is made. Control means for deriving a position in the storage area indicated by the storage position instruction area, and writing header information relating to image information in a header recording area of the position thus derived; Including.

【0008】[0008]

【作用】本発明によれば、制御手段は、第2の時点で、
空塞表示手段指示する最新のヘッダ記録領域からヘッダ
情報を記憶手段に読み込む。画像情報を記憶領域に書き
込み、記憶手段のヘッダ情報を更新する。第1の時点で
制御手段は、記憶手段からヘッダ情報を読み出し、空塞
表示手段が空き表示をしているヘッダ記録領域にこれを
書き込み、この書き込んだヘッダ記録領域に対応する表
示を塞がり表示にする。
According to the present invention, the control means, at the second time,
The header information is read from the latest header recording area instructed by the air / occlusion display means into the storage means. The image information is written in the storage area, and the header information of the storage means is updated. At a first point in time, the control means reads the header information from the storage means, writes the header information in the header recording area where the empty / busy display means is displaying the empty state, and changes the display corresponding to the written header recording area to the closed display. I do.

【0009】本発明によればまた、制御手段は、指示手
段に基づいて複数の記憶位置指示領域における最新に指
示が追加された領域を参照してその指示する前記記憶領
域における位置を導出する。この導出された位置のヘッ
ダ記録領域に画像情報に関するヘッダ情報を書き込む。
According to the present invention, the control means refers to the area in the plurality of storage location indication areas to which the latest instruction has been added based on the indication means, and derives the position in the storage area to be designated. The header information relating to the image information is written in the header recording area at the derived position.

【0010】[0010]

【実施例】次に添付図面を参照して本発明によるメモリ
カードの記憶管理方式の実施例を詳細に説明する。図2
に、本発明をディジタル電子スチルカメラに適用した実
施例を示す。この実施例では、ディジタル電子スチルカ
メラ10にメモリカード11がコネクタ12を介して着脱可能
に接続される。カメラ10は、カード11に対してホストと
して機能し、撮影に必要な固体撮像デバイスなどの機能
部を有するが、説明の複雑化を避けるため、本発明の理
解に必要な部分のみが示されている。カメラ10は、撮像
デバイスによる撮影など、カメラの機能全体を制御する
システムコントローラ13およびその作業領域としてのメ
モリ14を有し、それらがバス15により相互に接続されて
いる。バス15は、メモリカード11とのインタフェースを
とるカードインタフェース16を介してコネクタ12に接続
されている。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing an embodiment of a memory card storage management system according to the present invention. FIG.
Next, an embodiment in which the present invention is applied to a digital electronic still camera will be described. In this embodiment, a memory card 11 is detachably connected to a digital electronic still camera 10 via a connector 12. The camera 10 functions as a host for the card 11 and has a functional unit such as a solid-state imaging device necessary for shooting, but in order to avoid complicating the description, only a part necessary for understanding the present invention is shown. I have. The camera 10 has a system controller 13 for controlling the entire functions of the camera, such as photographing by an imaging device, and a memory 14 as a work area thereof, and these are interconnected by a bus 15. The bus 15 is connected to the connector 12 via a card interface 16 that interfaces with the memory card 11.

【0011】メモリカード11は、本実施例では、カメラ
10で撮影された画像を表わす画像データをその関連デー
タとともに不揮発的に蓄積する記憶領域としてEEPROMの
記憶領域60を有する。EEPROM記憶領域60は、一括消去型
またはブロック消去などの部分消去型が有利に適用され
る。記憶領域60への書込み、読出しおよび消去は、カメ
ラすなわちホスト10のシステムコントローラ13の制御の
下にメモリコントローラ40によって行なわれる。メモリ
コントローラ40は、インタフェース45を介してカメラ10
のカードインタフェース16と接続される。メモリコント
ローラ40はまた、バッファメモリ50とも接続され、カメ
ラ10側からのバッファメモリ50の書込みと読出しも制御
する。EEPROM記憶領域60は、アクセスが比較的低速であ
り、たとえばカメラ10の連写による画像データの入力へ
対応するには十分でない。そこで本実施例では、高速の
SRAMのバッファメモリ50を設け、これを介してEEPROM記
憶領域60への書込みが行なわれる。
In this embodiment, the memory card 11 is a camera.
An EEPROM storage area 60 is provided as a storage area for non-volatile storage of image data representing the image captured in 10 together with its associated data. As the EEPROM storage area 60, a partial erase type such as a batch erase type or a block erase is advantageously applied. Writing, reading, and erasing of the storage area 60 are performed by the memory controller 40 under the control of the system controller 13 of the camera, that is, the host 10. The memory controller 40 controls the camera 10 via the interface 45.
Is connected to the card interface 16. The memory controller 40 is also connected to the buffer memory 50, and controls writing and reading of the buffer memory 50 from the camera 10. The EEPROM storage area 60 has a relatively low access speed, and is not enough to respond to input of image data by continuous shooting of the camera 10, for example. Therefore, in the present embodiment,
An SRAM buffer memory 50 is provided, through which writing to the EEPROM storage area 60 is performed.

【0012】図1、図3および図4には、EEPROM記憶領
域60の構成が例示されている。この記憶領域60は、初期
化されるとすべての記憶単位が2進の「1」に、すなわ
ち16進の「F」に設定される。勿論本発明は、「0」に
初期化されるタイプのEEPROMにも有効に適用される。本
実施例では一般に、記憶領域60にてデータの書替えは行
なわず、データがすでに記憶されている既存の記憶領域
とは別な記憶領域に新たなデータを書き込む追加書込み
方式をとっている。
FIGS. 1, 3 and 4 illustrate the configuration of the EEPROM storage area 60. FIG. When this storage area 60 is initialized, all storage units are set to binary “1”, that is, hexadecimal “F”. Of course, the present invention is also effectively applied to an EEPROM of a type initialized to "0". In this embodiment, in general, data is not rewritten in the storage area 60, and an additional writing method is employed in which new data is written in a storage area different from the existing storage area in which data is already stored.

【0013】カメラ10からメモリカード11の記憶領域60
に書き込むべきデータは、前述のように画像データのほ
かにディレクトリおよびメモリアロケーション・テーブ
ル(MAT) などの管理データがある。この管理データは、
カメラ10で撮影が行なわれる度に更新しなければならな
い。しかし画像データは通常の場合、記憶領域60におけ
る新たな領域への追加書込みでよい。
The storage area 60 of the camera 10 to the memory card 11
As described above, data to be written into the memory includes management data such as a directory and a memory allocation table (MAT) in addition to the image data. This management data
It must be updated each time a picture is taken by the camera 10. However, in the normal case, the image data may be additionally written to a new area in the storage area 60.

【0014】記憶領域60は、前述した最小の管理単位で
ある単位記憶領域すなわちクラスタ21で管理される。図
3からわかるように、記憶領域60は、所定の記憶容量、
たとえば8Kバイトの大きさの複数のクラスタ21で構成さ
れている。それらのクラスタ21のうち特定のクラスタ、
本実施例ではクラスタ#1は管理データが書き込まれる領
域である。他のクラスタ、すなわち#2以降のクラスタ
は、画像データが書き込まれる。
The storage area 60 is managed by a unit storage area, that is, the cluster 21, which is the minimum management unit described above. As can be seen from FIG. 3, the storage area 60 has a predetermined storage capacity,
For example, it is composed of a plurality of clusters 21 having a size of 8 Kbytes. Specific clusters among those clusters 21,
In this embodiment, cluster # 1 is an area where management data is written. Image data is written to other clusters, that is, clusters after # 2.

【0015】クラスタ#1は、図1に示すように、管理デ
ータが書き込まれるヘッダ領域28と、1パケットの画像
データを識別するパケット番号などの識別情報が書き込
まれるパケット識別領域22と、使用者が画像のコマすな
わちパケットを所望の順序に編集して再生するためのス
タートクラスタ番号およびデータ種別が書き込まれるデ
ィレクトリ領域24と、個々のパケットについてクラスタ
21の関連を示すデータ、すなわちそのパケットについて
関連するクラスタ21の記憶領域60におけるアドレスを示
すMAT データが記録されるMAT 領域26とを含む。後者の
4つの記憶領域22、24および26は、カメラ10による撮影
の度に新たな領域に情報が書き込まれ、図示の例では残
りの領域23、25および27は未使用状態である。
As shown in FIG. 1, cluster # 1 includes a header area 28 in which management data is written, a packet identification area 22 in which identification information such as a packet number for identifying one packet of image data is written, and a user. Is a directory area 24 in which a start cluster number and a data type for editing and reproducing a frame of an image, that is, a packet in a desired order, and a cluster for each packet.
MAT area 26 in which the MAT data indicating the address in the storage area 60 of the cluster 21 related to the packet is recorded. In the latter four storage areas 22, 24 and 26, information is written in new areas each time shooting is performed by the camera 10, and in the example shown, the remaining areas 23, 25 and 27 are unused.

【0016】ヘッダ領域28には、本実施例では16バイト
単位のヘッダ記録領域すなわちヘッダブロック33が形成
されるヘッダブロック領域34と、192 バイトのヘッダ情
報ポインタ36とが設けられている。ヘッダブロック領域
34は、本実施例では1536バイトの記憶容量を有し、した
がって94個のヘッダブロック33が書込み可能である。ヘ
ッダブロック33のそれぞれは、本実施例では、記憶領域
60において使用されたクラスタの数すなわち使用クラス
タ数、未使用のクラスタの数すなわち残留クラスタ数、
最終使用パケット番号、先頭未使用クラスタ番号および
パリティチェック符号などのヘッダ情報30が書き込まれ
る領域である。このようなMAT 方式によるメモリ管理方
式の詳細については、本願と同じ出願人による係属中の
特許出願、特願平 1-317796 を参照されたい。
In the present embodiment, a header recording area in units of 16 bytes, that is, a header block area 34 in which a header block 33 is formed, and a header information pointer 36 of 192 bytes are provided in the header area 28 in this embodiment. Header block area
34 has a storage capacity of 1536 bytes in this embodiment, so that 94 header blocks 33 can be written. In the present embodiment, each of the header blocks 33 is a storage area.
The number of clusters used in 60, that is, the number of used clusters, the number of unused clusters, that is, the number of remaining clusters,
This is an area where header information 30 such as a last used packet number, a head unused cluster number, and a parity check code is written. For details of such a memory management method using the MAT method, refer to a pending patent application by the same applicant as the present application, Japanese Patent Application No. 1-317796.

【0017】ここで本実施例に特徴的なことは、カメラ
10に特定のメモリカード11がコネクタ12によって接続さ
れ、カメラ10に電源が投入されると、ヘッダ領域28にお
ける最新のヘッダブロック33のデータがカメラ10のメモ
リ14に読み込まれ、撮影が行なわれるとメモリ14にてこ
れが更新され、カメラ10の電源をオフにする操作をする
と、カメラ10のシステムコントローラ13がこれに応動し
てメモリ14からヘッダ情報を読み出し、新たなヘッダブ
ロック33にこれを書き込むことである。以上の説明から
わかるように、ヘッダブロック33に書き込むべきデータ
の量は、必要最小限が望ましい。そうすれば、1つのメ
モリカード11についてカメラ10の電源をオフにする回数
を有効に増すことができる。ヘッダブロック33の更新に
ついては、後に詳述する。
The feature of this embodiment is that the camera
When a specific memory card 11 is connected to the connector 10 by the connector 12 and the camera 10 is turned on, the latest data of the header block 33 in the header area 28 is read into the memory 14 of the camera 10 and the photographing is performed. When this is updated in the memory 14 and the operation of turning off the power of the camera 10 is performed, the system controller 13 of the camera 10 reads the header information from the memory 14 in response thereto and writes the header information into the new header block 33. It is. As can be seen from the above description, the amount of data to be written to the header block 33 is desirably the minimum necessary. Then, the number of times of turning off the power of the camera 10 for one memory card 11 can be effectively increased. Update of the header block 33 will be described later in detail.

【0018】ヘッダ情報ポインタ36は、ヘッダブロック
領域34にある複数のヘッダブロック33のうち最新のヘッ
ダ情報が書き込まれたヘッダブロックを指定する空塞表
示領域である。本実施例では、ヘッダ情報ポインタ36は
192 バイトの記憶領域を使用し、図4における最も右の
ビット位置にある、すなわち最下位桁に最も近い位置に
ある2進の「0」のビット位置が最新のヘッダ情報の記
録されているヘッダブロック33を指す。図示の例では、
ヘッダ情報ポインタ36の左から第3ビット位置まで2進
の「0」であるので、番号3を有するヘッダブロック#3
が最新のヘッダ情報を担持していることを示している。
勿論、ヘッダブロック33の空塞または最新の記録状態も
しくは記録順序を表示するには、このようなポインタの
形をとらず、個々のヘッダブロック33に表示ビットを設
けるなどの他の方法をとってもよい。
The header information pointer 36 is an empty / busy display area for designating a header block in which the latest header information is written among a plurality of header blocks 33 in the header block area 34. In this embodiment, the header information pointer 36 is
A 192 byte storage area is used, and the bit position of the binary “0” located at the rightmost bit position in FIG. 4, that is, the position closest to the least significant digit is the header in which the latest header information is recorded. Refers to block 33. In the example shown,
Since it is binary “0” from the left to the third bit position of the header information pointer 36, the header block # 3 having the number 3
Indicates that the latest header information is carried.
Of course, in order to display the empty state of the header block 33 or the latest recording state or the recording order, other methods such as providing display bits in each header block 33 may be used instead of taking such a pointer form. .

【0019】前述のように、記憶領域60の記録情報をす
べて消去する初期化において、ヘッダ領域28のブロック
領域34の記録情報はすべて消去され、またヘッダ情報ポ
インタ36の各ビットも消去され、これらのビットはすべ
て「1」となる。そこで、カメラ10の電源をオフにする
際にカメラ10から送られる最初のヘッダ情報は、ヘッダ
ブロック#0に書き込まれる。その後、電源がオフされる
度に、更新されたヘッダ情報が新しいヘッダブロック#
1、#2、#3といった順に書き込まれる。この書込みに対
応して、その都度、ヘッダ情報ポインタ36のビット
「1」は最上位桁すなわち先頭より順番に「0」に反転
される。したがって、図4の左より順に見て最初のビッ
ト「0」が最新情報のヘッダブロック33の番号を示すこ
とになる。したがって、図4のヘッダ情報ポインタ36の
論理状態では、図1に示すヘッダブロック#3に最新のヘ
ッダ情報が書き込まれていることを示している。図1に
示す実施例は初期化のときにビットが「1」になるEEPR
OMを用いているが、初期化のとき「0」になるもので
は、ヘッダ情報ポインタ36のビットの値は逆に、最右端
の「1」が最新のヘッダブロック33の番号を示すことに
なる。
As described above, in the initialization for erasing all the recording information in the storage area 60, all the recording information in the block area 34 of the header area 28 is erased, and each bit of the header information pointer 36 is also erased. Are all "1". Therefore, the first header information sent from the camera 10 when the power of the camera 10 is turned off is written to the header block # 0. After that, every time the power is turned off, the updated header information
It is written in order of 1, # 2, # 3. In response to this writing, the bit “1” of the header information pointer 36 is inverted to “0” in order from the most significant digit, that is, from the head each time. Therefore, the first bit “0” as viewed from the left in FIG. 4 indicates the number of the header block 33 of the latest information. Therefore, the logical state of the header information pointer 36 in FIG. 4 indicates that the latest header information is written in the header block # 3 shown in FIG. In the embodiment shown in FIG. 1, the bit is set to "1" at initialization.
Although the OM is used, if the value is "0" at the time of initialization, the bit value of the header information pointer 36 is reversed, and the rightmost "1" indicates the number of the latest header block 33. .

【0020】カメラ10に、メモリカード11が装着され、
カメラ10の電源がオンされると、カメラ10のシステムコ
ントローラ13はこれに応動して、メモリカード11の記憶
領域60からのヘッダ28の読出し命令を出力する。この読
出し命令は、バス15、カードインタフェース16、コネク
タ12およびカード11側のインタフェース45を通してメモ
リコントローラ40に転送される。メモリコントローラ40
は、これに応動してヘッダ情報ポインタ36の最右端のビ
ット「0」に対応するヘッダブロック33のヘッダ情報を
読み出してインタフェース45に出力する。カメラ11のシ
ステムコントローラ13は、このヘッダ情報を受け取り、
そのメモリ14に格納する。
A memory card 11 is mounted on a camera 10,
When the power of the camera 10 is turned on, the system controller 13 of the camera 10 outputs a read command of the header 28 from the storage area 60 of the memory card 11 in response thereto. This read command is transferred to the memory controller 40 through the bus 15, the card interface 16, the connector 12, and the interface 45 on the card 11 side. Memory controller 40
Responds to this, reads out the header information of the header block 33 corresponding to the rightmost bit “0” of the header information pointer 36 and outputs it to the interface 45. The system controller 13 of the camera 11 receives this header information,
It is stored in the memory 14.

【0021】カメラ10のシステムコントローラ13はそこ
で、撮影が行なわれるごとに、メモリ14のこのヘッダ情
報を更新する。これとともにシステムコントローラ13
は、1コマすなわち1パケットの画像データ、格納すべ
きクラスタのアドレス、およびそれらの付帯情報を出力
する。メモリコントローラ40は、インタフェース45を介
してこれを受け取り、これらの画像データおよび管理情
報をバツファメモリ50に一旦蓄積した後、これから読み
出して、指定されたアドレスに従ってディレクトリ領域
24にディレクトリデータを、MAT 領域26にはMAT データ
を、また他のクラスタ領域には画像データを書き込む。
The system controller 13 of the camera 10 updates this header information in the memory 14 every time an image is taken. Along with this, the system controller 13
Outputs the image data of one frame, that is, one packet, the address of the cluster to be stored, and their accompanying information. The memory controller 40 receives the data via the interface 45, temporarily stores the image data and management information in the buffer memory 50, reads out the data from the buffer memory 50, and reads out the image data and the management information according to the designated address.
The directory data is written in 24, the MAT data in the MAT area 26, and the image data in the other cluster areas.

【0022】撮影が終了し使用者が電源をオフにする操
作をすると、カメラ10のシステムコントローラ13は、メ
モリ14からヘッダ情報を読み出し、これをカードインタ
フェース16を通してメモリカード11へ出力する。メモリ
コントローラ40は、これを受け取ると、バツファメモリ
50に一旦蓄積する。その後、ヘッダ情報ポインタ36を調
べ、その最初の、すなわち最左端のビット「1」に対応
するヘッダブロック33にバツファメモリ50からヘッダ情
報を読み出して書き込む。これとともにメモリコントロ
ーラ40は、ヘッダ情報ポインタ36の最も左にある、すな
わち最初のビット「1」を「0」に反転する。こうして
ヘッダ情報が入力される毎にメモリコントローラ40は、
同様な動作を繰り返して最新のヘッダ情報を新しいヘッ
ダブロック33に書き込む。なお、この実施例では、カメ
ラ10の電源をオフにする際、更新されたヘッダ情報を新
たなヘッダブロック33に書き込むように構成されてい
る。しかし、たとえば撮影の都度など、所定の撮影回数
の経過によって新たなヘッダブロック33に書き込むよう
に構成してもよい。
When the photographing is completed and the user performs an operation of turning off the power, the system controller 13 of the camera 10 reads the header information from the memory 14 and outputs this to the memory card 11 through the card interface 16. When the memory controller 40 receives this, the memory controller 40
Accumulate in 50 once. Thereafter, the header information pointer 36 is examined, and the header information is read out from the buffer memory 50 and written into the first, that is, the header block 33 corresponding to the leftmost bit “1”. At the same time, the memory controller 40 inverts the leftmost, that is, the first bit “1” of the header information pointer 36 to “0”. Each time the header information is input in this way, the memory controller 40
The same operation is repeated to write the latest header information into the new header block 33. In this embodiment, when the power of the camera 10 is turned off, the updated header information is written in a new header block 33. However, the configuration may be such that a new header block 33 is written after a predetermined number of times of shooting, for example, each time shooting is performed.

【0023】図5は本発明の他の実施例を示す。図1に
示す実施例では、ヘッダ情報の格納される領域が特定の
クラスタ#1に限定されていた。しかしこの方式では、記
憶容量の大きなEEPROMを使用したメモリカードの場合、
ヘッダ情報の更新回数が増え、したがってヘッダ領域と
して使用できる領域28の容量が不足することがある。図
5に示す実施例はこれを解決する方式で、ヘッダ情報を
書き込むべきヘッダ領域28は任意のクラスタ21に形成
し、特定のクラスタ、たとえばクラスタ#1にこのヘッダ
領域28の記録されているクラスタ21の番号を書き込む領
域81を設け、これを更新的に追加書き込みすることによ
って所期のヘッダ領域28にアクセスすることができる。
より詳細には、クラスタ番号領域81は、ヘッダ領域28の
形成されるクラスタ21の番号が書き込まれ、最新のヘッ
ダ領域28を含むクラスタ21を指示するクラスタ番号領域
81はポインタ82によって指示される。つまり、クラスタ
番号領域81は、図1に示す実施例におけるヘッダブロッ
ク33と同様に更新的に追加書き込みされ、ポインタ82
は、図1に示す実施例におけるヘッダ情報ポインタ36と
と同様に機能する。クラスタ番号領域81のクラスタ番号
は、クラスタ番号表84によって記憶領域60におけるクラ
スタアドレスに変換され、このクラスタアドレスによっ
て所期のヘッダ領域28を有するクラスタ21にアクセスさ
れる。
FIG. 5 shows another embodiment of the present invention. In the embodiment shown in FIG. 1, the area where the header information is stored is limited to the specific cluster # 1. However, in this method, in the case of a memory card using an EEPROM with a large storage capacity,
The number of updates of the header information increases, and thus the capacity of the area 28 usable as the header area may be insufficient. The embodiment shown in FIG. 5 solves this problem. A header area 28 in which header information is to be written is formed in an arbitrary cluster 21, and a cluster in which this header area 28 is recorded in a specific cluster, for example, cluster # 1. An area 81 in which the number 21 is written is provided, and the intended header area 28 can be accessed by additionally writing the area 81 in an updated manner.
More specifically, in the cluster number area 81, the number of the cluster 21 in which the header area 28 is formed is written, and a cluster number area indicating the cluster 21 including the latest header area 28
81 is indicated by the pointer 82. That is, the cluster number area 81 is additionally written in the same manner as the header block 33 in the embodiment shown in FIG.
Functions similarly to the header information pointer 36 in the embodiment shown in FIG. The cluster number in the cluster number area 81 is converted into a cluster address in the storage area 60 by the cluster number table 84, and the cluster 21 having the intended header area 28 is accessed by the cluster address.

【0024】カメラ10の電源を投入すると、まず特定の
領域80にアクセスし、ポインタ82およびクラスタ番号領
域81によって最新のヘッダ領域28のクラスタ21の番号を
索出する。このクラスタ番号、たとえばa1に従って最新
のヘッダ領域28から最新のヘッダブロック33の情報をメ
モリ14に取り込む。この動作は、図1に示す実施例と同
様である。ヘツダ情報をヘッダ領域28に書き込むとき
は、同様にして、最新のヘッダ領域28にアクセスし、そ
のポインタ36を参照して未使用のブロック33にへッダ情
報を書き込む。この方式は、1つのクラスタ21において
新たなヘッダブロック33への情報の書き込みが不能にな
ると、他のクラスタ33にヘッダ領域28を設定することに
よって、ヘッダ領域28を拡張的に使用ができる。
When the power of the camera 10 is turned on, a specific area 80 is first accessed, and the latest cluster 21 number of the header area 28 is searched by the pointer 82 and the cluster number area 81. The information of the latest header block 33 from the latest header area 28 is taken into the memory 14 according to this cluster number, for example, a1. This operation is similar to that of the embodiment shown in FIG. When writing header information to the header area 28, the latest header area 28 is similarly accessed, and the header information is written to an unused block 33 with reference to the pointer 36. In this method, when information cannot be written to a new header block 33 in one cluster 21, the header area 28 can be used extensively by setting the header area 28 in another cluster 33.

【0025】[0025]

【発明の効果】このように本発明によれば、一括消去方
式やブロック消去方式のEEPROMを用いたメモリカードに
おいても、書換え回数の多いヘッダデータを複数の領域
に追記的に書き込んで行くことにより、現行のSRAMカー
ドのヘッダ、ディレクトリおよびMAT を含むメモリ管理
方式が適用できる。したがって、フォーマットの互換性
があり、SRAMカードと同様に使用でき、SRAMカードより
消費電力が少ないEEPROMまたはEPROM のメモリカードを
実現できる。
As described above, according to the present invention, even in a memory card using an EEPROM of a batch erasing method or a block erasing method, header data with a large number of rewrites is additionally written in a plurality of areas. The memory management method including the current SRAM card header, directory and MAT can be applied. Therefore, an EEPROM or EPROM memory card having format compatibility, usable like an SRAM card, and consuming less power than an SRAM card can be realized.

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

【図1】図2に示す実施例における管理データの記憶領
域の構成を例示した図である。
FIG. 1 is a diagram illustrating a configuration of a storage area of management data in the embodiment shown in FIG. 2;

【図2】本発明によるメモリカードの記憶管理方式をデ
ィジタル電子スチルカメラに適用した実施例を示す機能
ブロック図である。
FIG. 2 is a functional block diagram showing an embodiment in which the storage management method of a memory card according to the present invention is applied to a digital electronic still camera.

【図3】図2に示す実施例における記憶領域の構成の例
を示す図である。
FIG. 3 is a diagram illustrating an example of a configuration of a storage area in the embodiment illustrated in FIG. 2;

【図4】図2に示す実施例におけるヘッダ情報ポインタ
の構成の例を示す図である。
FIG. 4 is a diagram showing an example of the configuration of a header information pointer in the embodiment shown in FIG.

【図5】本発明の他の実施例における管理データの記憶
領域の構成を例示する図である。
FIG. 5 is a diagram illustrating a configuration of a storage area of management data according to another embodiment of the present invention.

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

10 ディジタル電子スチルカメラ 11 メモリカード 13 システムコントローラ 14 メモリ 21 クラスタ 28 ヘッダ領域 33 ヘッダブロック 36 ヘッダポインタ 40 メモリコントローラ 50 バッファメモリ 60 EEPROM記憶領域 10 Digital electronic still camera 11 Memory card 13 System controller 14 Memory 21 Cluster 28 Header area 33 Header block 36 Header pointer 40 Memory controller 50 Buffer memory 60 EEPROM storage area

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 初期化において所定の論理状態に記録が
消去されこれに情報が追加的に書き込まれるEEPROMの記
憶領域を有するメモリカードの記憶管理方式において、
該方式は、 前記記憶領域に設けられ、画像情報の記憶に係る管理情
報の少なくとも一部を含むヘッダ情報がそれぞれ追加的
記録される複数のヘッダ記録領域と、 前記記憶領域に設けられ、該複数のヘッダ記録領域のそ
れぞれについて空塞を表示する空塞表示手段と、 前記画像情報を前記記憶領域に書き込み、第1の時点
で、該画像情報に関するヘッダ情報を前記複数のヘッダ
記録領域のうち前記空塞表示手段の示す空きのヘッダ記
録領域に書き込み、該空塞表示手段における該書き込ん
だヘッダ記録領域に対応する表示を塞がり表示にする制
御手段とを含むことを特徴とするメモリカードの記憶管
理方式。
1. A storage management method for a memory card having a storage area of an EEPROM in which a record is erased to a predetermined logical state in initialization and information is additionally written to the memory,
In the method, header information provided in the storage area and including at least a part of management information related to storage of image information is additionally provided.
A plurality of header recording area recorded in, provided in the storage area, and an empty busy display means for displaying the empty busy for each header recording area of the plurality of writes the image information in the storage area, first At the point of time, the header information relating to the image information is written into the empty header recording area indicated by the empty / occupied display means of the plurality of header recording areas, and the display corresponding to the written header recording area in the empty / occupied display means is performed. And a control means for closing and displaying the memory card.
【請求項2】 請求項1に記載の方式において、 前記制御手段は、前記ヘッダ情報を書換え可能に蓄積す
る記憶手段を有し、 前記制御手段は、第1の時点とは異なる第2の時点で、
前記空塞表示手段に基づいて前記複数のヘッダ記録領域
のうちの最新に書き込まれた記録領域からそれに含まれ
るヘッダ情報を読み出して前記記憶手段に蓄積し、該記
憶手段に蓄積されているヘッダ情報を常時更新すること
を特徴とするメモリカードの記憶管理方式。
2. The method according to claim 1, wherein said control means has a storage means for storing the header information in a rewritable manner, and said control means operates at a second time point different from the first time point. so,
The header information contained in the most recently written recording area of the plurality of header recording areas is read out from the plurality of header recording areas based on the empty / occupied display means and stored in the storage means, and the header information stored in the storage means is read out. The memory management method of a memory card, wherein the memory card is constantly updated.
【請求項3】 初期化において所定の論理状態に記録が
消去されこれに情報が追加的に書き込まれるEEPROMの記
憶領域を有するメモリカードの記憶管理方式において、
該方式は、 前記記憶領域に設けられ、画像情報の記憶に係る管理情
報の少なくとも一部を含むヘッダ情報が記録されるヘッ
ダ記録領域と、 該ヘッダ記録領域が形成される前記記憶領域における記
憶位置を追加的に指示する複数の記憶位置指示領域と、 前記記憶領域に設けられ、前記複数の記憶位置指示領域
のうち最新に指示が追加された領域を指示する指示手段
と、 前記画像情報を前記記憶領域に書き込み、第1の時点
で、前記指示手段に基づいて前記複数の記憶位置指示領
域における最新に指示が追加された領域を参照し、該参
照された記憶位置指示領域の指示する前記記憶領域にお
ける位置を導出し、該導出された位置の前記ヘッダ記録
領域に前記画像情報に関するヘッダ情報を書き込む制御
手段とを含むことを特徴とするメモリカードの記憶管理
方式。
3. A storage management method for a memory card having a storage area of an EEPROM in which a record is erased to a predetermined logical state during initialization and information is additionally written to the memory,
The method includes: a header recording area provided in the storage area and recording header information including at least a part of management information related to storage of image information; and a storage position in the storage area where the header recording area is formed. A plurality of storage location indication areas for additionally indicating, and an indication means provided in the storage area, for indicating an area of the plurality of storage location indication areas to which the latest instruction has been added; and At the first point in time, the storage means refers to the area of the plurality of storage location indication areas to which the latest instruction has been added based on the indication means, and designates the storage location indication area of the referenced storage location indication area. Control means for deriving a position in an area and writing header information relating to the image information in the header recording area at the derived position. Storage management method.
【請求項4】 請求項3に記載の方式において、前記ヘ
ッダ記録領域は、 前記ヘッダ情報がそれぞれ記録される第1の複数の記録
領域と、 第1の複数の記録領域のそれぞれについて空塞を表示す
る第2の記録領域とを含み、 前記制御手段は、第1の時点で、前記画像情報に関する
ヘッダ情報を第1の複数の記録領域のうち第2の記録領
域の示す空きの記録領域に書き込み、第2の記録領域に
おける該書き込んだ第1の記録領域に対応する表示を塞
がり表示にすることを特徴とするメモリカードの記憶管
理方式。
4. The method according to claim 3, wherein the header recording area comprises: a first plurality of recording areas in which the header information is respectively recorded; A second recording area to be displayed, wherein at a first point in time, the control means stores header information relating to the image information in an empty recording area indicated by a second recording area of the first plurality of recording areas. A storage management method for a memory card, wherein a display in a written and second recording area corresponding to the written first recording area is closed and displayed.
【請求項5】 請求項4に記載の方式において、 前記制御手段は、前記ヘッダ情報を書換え可能に蓄積す
る記憶手段を有し、 前記制御手段は、第1の時点とは異なる第2の時点で、
前記指示手段の指示および第2の記録領域の表示に基づ
いて第1の複数の記録領域のうちの最新に書き込まれた
記録領域からそれに含まれるヘッダ情報を読み出して前
記記憶手段に蓄積し、該記憶手段に蓄積されているヘッ
ダ情報を常時更新することを特徴とするメモリカードの
記憶管理方式。
5. The method according to claim 4, wherein said control means has storage means for rewritably accumulating said header information, and said control means operates at a second time point different from the first time point. so,
On the basis of the instruction of the instruction means and the display of the second recording area, the header information included in the most recently written recording area of the first plurality of recording areas is read and stored in the storage means, A storage management method for a memory card, wherein header information stored in a storage means is constantly updated.
JP3244099A 1991-08-30 1991-08-30 Memory card storage management method Expired - Fee Related JP3070994B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3244099A JP3070994B2 (en) 1991-08-30 1991-08-30 Memory card storage management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3244099A JP3070994B2 (en) 1991-08-30 1991-08-30 Memory card storage management method

Publications (2)

Publication Number Publication Date
JPH0561760A JPH0561760A (en) 1993-03-12
JP3070994B2 true JP3070994B2 (en) 2000-07-31

Family

ID=17113741

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3244099A Expired - Fee Related JP3070994B2 (en) 1991-08-30 1991-08-30 Memory card storage management method

Country Status (1)

Country Link
JP (1) JP3070994B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62285400A (en) * 1986-06-03 1987-12-11 住友重機械工業株式会社 Incident apparatus of magentic resonance type accelerator
US5960155A (en) 1993-08-09 1999-09-28 Ricoh Company, Ltd. Electronic still camera
US6750908B1 (en) 1994-02-03 2004-06-15 Canon Kabushiki Kaisha Image processing apparatus using recording medium which needs data erasing processing before recording of data
JP4281174B2 (en) * 1999-09-24 2009-06-17 ソニー株式会社 Data recording / reproducing apparatus, data recording / reproducing method, data recording / reproducing system, and program providing medium for providing data recording / reproducing program

Also Published As

Publication number Publication date
JPH0561760A (en) 1993-03-12

Similar Documents

Publication Publication Date Title
JP4085478B2 (en) Storage medium and electronic device system
US5905993A (en) Flash memory card with block memory address arrangement
US5890188A (en) Nonvolatile semiconductor memory device having means for selective transfer of memory block contents and for chaining together unused memory blocks
US7227788B2 (en) Memory management device and memory device
JP4356686B2 (en) Memory device and memory control method
JP4268396B2 (en) Non-volatile memory device file management that can be programmed once
JP2675429B2 (en) Data management method for memory card
US5724544A (en) IC memory card utilizing dual eeproms for image and management data
US20050278480A1 (en) Method of writing data into flash memory
EP1619583A1 (en) Data recording apparatus
US5689303A (en) Electronic still camera utilizing updatable frame catena information to maintain frame sequence
JPH09198852A (en) Memory device
US5829014A (en) Method of supervising storage of data in a memory card having EEPROM and a memory card system using the same
JP3070994B2 (en) Memory card storage management method
JPH11144478A (en) Information storage method of nonvolatile semiconductor memory and electronic apparatus
JP4308780B2 (en) Semiconductor memory device, memory controller, and data recording method
JP2584120B2 (en) Data recording method in memory card and memory card system
JPH0695955A (en) Flash file system
JP2635448B2 (en) Data recording method in memory card and memory card system
JPH05150913A (en) Silicon disk with flash memory as storage medium
EP0492450A2 (en) Memory card having an eeprom
JPH04147495A (en) Data recording method in ic memory card and ic memory card system
JPH04307647A (en) Memory card storage control system
JP4710274B2 (en) MEMORY DEVICE, MEMORY DEVICE CONTROL METHOD, AND DATA PROCESSING SYSTEM
JP2004341989A (en) Memory card pack and memory card

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20000509

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

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

Year of fee payment: 8

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

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20090526

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20100526

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20110526

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees