JP4521245B2 - Storage device control apparatus and program - Google Patents

Storage device control apparatus and program Download PDF

Info

Publication number
JP4521245B2
JP4521245B2 JP2004316204A JP2004316204A JP4521245B2 JP 4521245 B2 JP4521245 B2 JP 4521245B2 JP 2004316204 A JP2004316204 A JP 2004316204A JP 2004316204 A JP2004316204 A JP 2004316204A JP 4521245 B2 JP4521245 B2 JP 4521245B2
Authority
JP
Japan
Prior art keywords
storage
storage device
logical
logical address
address
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
JP2004316204A
Other languages
Japanese (ja)
Other versions
JP2006127242A (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 Corp
Original Assignee
Fujifilm Corp
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 Fujifilm Corp filed Critical Fujifilm Corp
Priority to JP2004316204A priority Critical patent/JP4521245B2/en
Publication of JP2006127242A publication Critical patent/JP2006127242A/en
Application granted granted Critical
Publication of JP4521245B2 publication Critical patent/JP4521245B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は記憶デバイス制御装置及びプログラムに係り、特に、各々物理アドレスが付与された記憶ブロックを複数備えると共に、有効なデータを記憶している記憶ブロック内の特定領域に該記憶ブロックに付与された論理アドレスが書き込まれる書替可能な不揮発性の記憶デバイスと接続される記憶デバイス制御装置、及び、コンピュータを前記記憶デバイス制御装置として機能させるための記憶デバイス制御プログラムに関する。   The present invention relates to a storage device control apparatus and a program, and more particularly, a plurality of storage blocks each having a physical address assigned thereto, and assigned to a specific area in a storage block storing valid data. The present invention relates to a storage device control apparatus connected to a rewritable nonvolatile storage device to which a logical address is written, and a storage device control program for causing a computer to function as the storage device control apparatus.

フラッシュメモリはデータの書き込み及び消去を電気的に行うことが可能な不揮発性メモリであり、例えばデジタルスチルカメラ(DSC)で撮影された画像データ等を記録するための記録メディアに用いられたり、コンピュータのBIOSを記憶するためのメモリとして用いられる等、様々な分野で広範に用いられている。一般に、フラッシュメモリにはデータの書き込み及び消去の単位である記憶ブロックが複数設けられており、各記憶ブロックには物理アドレスが各々付与されているが、フラッシュメモリに対するデータの書込/消去回数には制限があるため、フラッシュメモリへのデータの書き込みに際しては、記憶ブロックへのデータの書き込みが必ずしも物理アドレスの昇順に行われるとは限らず、データの書き込みが特定の記憶ブロックに集中することを回避するために、連続するデータが物理アドレスがとびとびの記憶ブロックに分けて書き込まれることもある。   A flash memory is a non-volatile memory that can electrically write and erase data. For example, a flash memory is used as a recording medium for recording image data taken by a digital still camera (DSC), or a computer. It is widely used in various fields, such as being used as a memory for storing BIOS. In general, a flash memory is provided with a plurality of storage blocks which are units for writing and erasing data, and each storage block is given a physical address. Therefore, when writing data to the flash memory, writing data to the storage block is not necessarily performed in ascending order of physical addresses, and data writing is concentrated on a specific storage block. In order to avoid this, continuous data may be written separately in storage blocks with discrete physical addresses.

このため、フラッシュメモリが接続される機器(例えばフラッシュメモリ内蔵の記録メディアが挿入されるDSC)にはメモリ制御部が設けられており、このメモリ制御部は、上位のアプリケーション・プログラムがフラッシュメモリに対してデータの読み出し等を行う際に、読出対象のデータが書き込まれている記憶ブロックの位置(物理アドレス)を認識して指定する等の煩雑な処理を不要とするために、フラッシュメモリに設けられている各記憶ブロックのうち、有効なデータを書き込んだ記憶ブロックに論理アドレスを付与し、付与した論理アドレスを対応する記憶ブロックの特定領域に書き込む処理を行う。   For this reason, a memory control unit is provided in a device to which the flash memory is connected (for example, a DSC into which a recording medium with a built-in flash memory is inserted). In order to eliminate the need for complicated processing such as recognizing and specifying the location (physical address) of the storage block in which the data to be read is written, when reading data from it, etc. Among each storage block, a logical address is assigned to a storage block in which valid data is written, and a process of writing the assigned logical address to a specific area of the corresponding storage block is performed.

また、フラッシュメモリがアクセス可能な状態になると(例えば機器の電源が投入されていると共にフラッシュメモリが接続されている状態になると)、メモリ制御部はフラッシュメモリに設けられている全ての記憶ブロックに順にアクセスし、論理アドレスが書き込まれている記憶ブロックを発見する毎に、発見した記憶ブロックから論理アドレスを読み出し、前記記憶ブロックの物理アドレスと共にテーブルへ登録することで、有効なデータが書き込まれている記憶ブロックの論理アドレスと物理アドレスとを対応付ける論理/物理変換テーブルを作成する。この論理/物理変換テーブルは、フラッシュメモリに対してデータの読み出しや書き込みに際しての論理アドレスから物理アドレスへの変換に用いられる。   Further, when the flash memory becomes accessible (for example, when the power of the device is turned on and the flash memory is connected), the memory control unit stores all the storage blocks provided in the flash memory. Each time a storage block in which a logical address is written is found, the logical address is read from the found storage block and registered in the table together with the physical address of the storage block, so that valid data is written. A logical / physical conversion table that associates a logical address and a physical address of a storage block is created. This logical / physical conversion table is used for conversion from a logical address to a physical address when data is read from or written to the flash memory.

上記に関連して特許文献1には、PCカードに内蔵されているメモリ部における所定のアドレスのブロック又はセクタ内に全ての欠陥セクタアドレスを製造時に格納しておき、格納された全ての欠陥セクタアドレスを用いて論理/物理アドレス変換テーブルを作成する技術が開示されている。
特開平11−345174号公報
In relation to the above, Patent Document 1 discloses that all defective sector addresses are stored in a block or sector of a predetermined address in a memory unit built in a PC card at the time of manufacture, and all stored defective sectors are stored. A technique for creating a logical / physical address conversion table using addresses is disclosed.
JP-A-11-345174

しかしながら近年、記録メディアは大容量化の傾向にあり、これに伴って記録メディアに内蔵されているフラッシュメモリの論理/物理変換テーブルの作成に要する時間が長時間化しているという問題がある。特にDSCでは起動時間(電源投入から撮影可能状態となる迄の時間)の短縮が求められており、論理/物理変換テーブルの作成に時間がかかることは、DSCの起動時間の増大に繋がるので望ましくない。   However, in recent years, recording media have a tendency to increase in capacity, and accordingly, there is a problem that it takes a long time to create a logical / physical conversion table of a flash memory built in the recording medium. In particular, DSC is required to shorten the activation time (the time from when the power is turned on until it is ready to shoot), and it takes time to create a logical / physical conversion table, which leads to an increase in the activation time of the DSC. Absent.

また、特許文献1に記載の技術は、初期的な欠陥を或る割合で許容したメモリデバイス(MGM:Mostly Good Memory)に適用することを前提とした技術であり、有効なデータを書き込んだ記憶ブロックに論理アドレスを付与すると共に、付与した論理アドレスを対応する記憶ブロックの特定領域に書き込む方式にこの技術を適用したとしても、初期的な欠陥が0又はごく僅かなフラッシュメモリに対しては論理/物理変換テーブルの作成に要する時間を短縮することは困難である。   The technique described in Patent Document 1 is a technique that is premised on being applied to a memory device (MGM: Mostly Good Memory) that allows an initial defect at a certain ratio. Even if this technique is applied to a method in which a logical address is assigned to a block and the assigned logical address is written to a specific area of the corresponding storage block, it is logical for a flash memory that has zero or very few initial defects. / It is difficult to shorten the time required to create the physical conversion table.

本発明は上記事実を考慮して成されたもので、論理/物理変換テーブルの作成に要する時間を短縮できる記憶デバイス制御装置及び記憶デバイス制御プログラムを得ることが目的である。   The present invention has been made in consideration of the above facts, and an object of the present invention is to obtain a storage device control apparatus and a storage device control program that can reduce the time required to create a logical / physical conversion table.

上記目的を達成するために請求項1記載の発明に係る記憶デバイス制御装置は、各々物理アドレスが付与された記憶ブロックを複数備えると共に、有効なデータを記憶している記憶ブロック内の特定領域に該記憶ブロックに付与された論理アドレスが書き込まれる書替可能な不揮発性の記憶デバイスと接続される記憶デバイス制御装置であって、稼働開始毎に、前記記憶デバイスに書き込まれている論理アドレスを全て読み出し、論理アドレスと物理アドレスとを対応付ける論理/物理変換テーブルを作成するテーブル作成手段と、稼働終了時又は前記記憶デバイスのうち論理アドレスが付与されている記憶ブロックの個数が変化した時に、前記論理アドレスが付与されている記憶ブロックの個数を表す個数情報を前記記憶デバイスに書き込む書込手段と、を備え、前記テーブル作成手段は、前記記憶デバイスからの論理アドレスの読み出しに先立ち、前記書込手段によって前記記憶デバイスに書き込まれた個数情報を読み出し、前記記憶デバイスから読み出した論理アドレスの個数が前記個数情報が表す個数に達した時点で前記記憶デバイスからの論理アドレスの読み出しを終了することを特徴としている。   In order to achieve the above object, a storage device control device according to the first aspect of the present invention comprises a plurality of storage blocks each assigned a physical address, and is provided in a specific area in the storage block storing valid data. A storage device controller connected to a rewritable non-volatile storage device to which a logical address assigned to the storage block is written, and every time the operation starts, all logical addresses written to the storage device are Read, and a table creation means for creating a logical / physical conversion table that associates a logical address with a physical address, and when the operation ends or when the number of storage blocks to which a logical address is assigned among the storage devices changes, Number information indicating the number of storage blocks to which addresses are assigned is written to the storage device. Prior to reading the logical address from the storage device, the table creation means reads the number information written to the storage device by the writing means, and reads the logical information read from the storage device. When the number of addresses reaches the number indicated by the number information, reading of the logical address from the storage device is terminated.

請求項1記載の発明に係る記憶デバイス制御装置に接続される記憶デバイスは、書替可能な不揮発性の記憶デバイス(例えばフラッシュメモリ)であり、各々物理アドレスが付与された記憶ブロックを複数備え、有効なデータを記憶している記憶ブロック内の特定領域に該記憶ブロックに付与された論理アドレスが書き込まれる。また請求項1記載の発明では、稼働開始毎(例えば装置の電源が投入されると共に記憶デバイスが接続され記憶デバイスにアクセス可能な状態になる毎)に、テーブル作成手段により、記憶デバイスに書き込まれている論理アドレスが全て読み出され、論理アドレスを物理アドレスへ変換するための論理/物理変換テーブルが作成される。   The storage device connected to the storage device control apparatus according to claim 1 is a rewritable nonvolatile storage device (for example, a flash memory), and includes a plurality of storage blocks each assigned a physical address, The logical address given to the storage block is written in a specific area in the storage block storing valid data. According to the first aspect of the present invention, each time the operation is started (for example, every time the apparatus is turned on and the storage device is connected and the storage device becomes accessible), the data is written into the storage device by the table creating means. All the logical addresses are read out, and a logical / physical conversion table for converting the logical addresses into physical addresses is created.

また、請求項1記載の発明に係る書込手段は、稼働終了時(例えば装置の電源が切断されるか記憶デバイスとの接続が解除される時)又は記憶デバイスのうち論理アドレスが付与されている記憶ブロックの個数が変化した時に、論理アドレスが付与されている記憶ブロックの個数を表す個数情報を記憶デバイスに書き込む。そして、前述のテーブル作成手段は、記憶デバイスからの論理アドレスの読み出しに先立ち、書込手段によって記憶デバイスに書き込まれた個数情報を読み出し、記憶デバイスから読み出した論理アドレスの個数が個数情報が表す個数に達した時点で記憶デバイスからの論理アドレスの読み出しを終了する。   Further, the writing means according to the first aspect of the invention is provided with a logical address at the end of operation (for example, when the apparatus is powered off or disconnected from the storage device) or the storage device. When the number of storage blocks changes, the number information indicating the number of storage blocks to which a logical address is assigned is written to the storage device. Then, prior to reading the logical address from the storage device, the table creation means reads the number information written to the storage device by the writing means, and the number of logical addresses read from the storage device is the number represented by the number information. At this point, reading of the logical address from the storage device is terminated.

このように、請求項1記載の発明では、テーブル作成手段によるアクセス順序で最後の記憶ブロックに論理アドレスが書き込まれていない限りは、書込手段によって記憶デバイスに書き込まれた個数情報に基づき、テーブル作成手段が全ての記憶ブロックにアクセスする前に、記憶デバイスに書き込まれている全ての論理アドレスの読み出しが終了したことを認識することができ、論理/物理変換テーブル作成のためにテーブル作成手段がアクセスする記憶ブロックの数を減らすことができる。従って、請求項1記載の発明によれば、論理/物理変換テーブルの作成に要する時間を短縮することができる。   Thus, according to the first aspect of the present invention, unless the logical address is written in the last storage block in the access order by the table creating means, the table is based on the number information written in the storage device by the writing means. Before the creation means accesses all the storage blocks, it can recognize that reading of all the logical addresses written in the storage device has been completed, and the table creation means can create a logical / physical conversion table. The number of storage blocks to be accessed can be reduced. Therefore, according to the first aspect of the present invention, the time required to create the logical / physical conversion table can be shortened.

また、請求項2記載の発明に係る記憶デバイス制御装置は、各々物理アドレスが付与された記憶ブロックを複数備えると共に、有効なデータを記憶している記憶ブロック内の特定領域に該記憶ブロックに付与された論理アドレスが書き込まれる書替可能な不揮発性の記憶デバイスと接続される記憶デバイス制御装置であって、稼働開始毎に、前記複数の記憶ブロックに一定順序でアクセスして前記記憶デバイスに書き込まれている論理アドレスを全て読み出し、論理アドレスと物理アドレスとを対応付ける論理/物理変換テーブルを作成するテーブル作成手段と、稼働終了時又は前記記憶デバイスのうち論理アドレスが付与されている記憶ブロックの個数が変化した時に、前記一定順序に対応する記憶ブロックの配列のうち、前記論理アドレスが付与されている記憶ブロックが存在している範囲内の先頭位置を表す先頭位置情報及び末尾位置を表す末尾位置情報の少なくとも一方を含む範囲情報を前記記憶デバイスに書き込む書込手段と、を備え、前記テーブル作成手段は、前記記憶デバイスからの論理アドレスの読み出しに先立ち、前記書込手段によって前記記憶デバイスに書き込まれた範囲情報を読み出し、読み出した範囲情報に前記先頭位置情報が含まれている場合には、前記記憶デバイスからの論理アドレスの読み出しを前記先頭位置情報が表す先頭位置から開始し、読み出した範囲情報に前記末尾位置情報が含まれている場合には、前記記憶デバイスからの論理アドレスの読み出しが前記末尾位置情報が表す末尾位置に達した時点で前記記憶デバイスからの論理アドレスの読み出しを終了することを特徴としている。   In addition, the storage device control device according to the invention of claim 2 includes a plurality of storage blocks each assigned with a physical address, and assigns the storage block to a specific area in the storage block storing valid data. A storage device controller connected to a rewritable nonvolatile storage device to which a written logical address is written, and each time the operation starts, the plurality of storage blocks are accessed in a predetermined order and written to the storage device Table creation means for creating a logical / physical conversion table for reading all the logical addresses and associating the logical addresses with the physical addresses, and the number of storage blocks to which logical addresses are assigned at the end of operation or among the storage devices Of the storage block corresponding to the fixed order, the logical address And writing means for writing to the storage device range information including at least one of start position information indicating the start position and end position information indicating the end position within the range where the storage block to which the storage block is assigned is present. The table creation means reads the range information written to the storage device by the writing means prior to reading the logical address from the storage device, and the read position information includes the head position information. In this case, reading of the logical address from the storage device is started from the head position represented by the head position information, and when the read range information includes the tail position information, the logical address from the storage device is Logical address from the storage device when the address read reaches the end position represented by the end position information It is characterized in that to end the reading.

請求項2記載の発明では、稼働終了時又は記憶デバイスのうち論理アドレスが付与されている記憶ブロックの個数が変化した時に、書込手段により、一定順序(テーブル作成手段による記憶ブロックのアクセス順序)に対応する記憶ブロックの配列のうち、論理アドレスが付与されている記憶ブロックが存在している範囲内の先頭位置を表す先頭位置情報及び末尾位置を表す末尾位置情報の少なくとも一方を含む範囲情報が記憶デバイスに書き込まれる。そしてテーブル作成手段は、記憶デバイスからの論理アドレスの読み出しに先立ち、書込手段によって記憶デバイスに書き込まれた範囲情報を読み出し、読み出した範囲情報に先頭位置情報が含まれている場合には、記憶デバイスからの論理アドレスの読み出しを先頭位置情報が表す先頭位置から開始し、読み出した範囲情報に末尾位置情報が含まれている場合には、記憶デバイスからの論理アドレスの読み出しが末尾位置情報が表す末尾位置に達した時点で記憶デバイスからの論理アドレスの読み出しを終了する。   According to the second aspect of the present invention, when the operation ends or when the number of storage blocks to which a logical address is assigned is changed among the storage devices, the writing means makes a fixed order (access order of storage blocks by the table creating means). Range information including at least one of start position information indicating the start position and end position information indicating the end position in the range in which the storage block to which the logical address is assigned exists is present. Written to the storage device. The table creation means reads the range information written to the storage device by the writing means prior to reading the logical address from the storage device, and stores the head position information if the read range information includes the head position information. When reading of the logical address from the device starts from the start position indicated by the start position information, and the end position information is included in the read range information, the read of the logical address from the storage device is indicated by the end position information. When the end position is reached, reading of the logical address from the storage device is terminated.

このように、請求項2記載の発明では、書込手段によって記憶デバイスに先頭位置情報が書き込まれる場合、テーブル作成手段によるアクセス順序で先頭の記憶ブロックに論理アドレスが書き込まれていない限りは、前述の先頭位置情報に基づき、テーブル作成手段による記憶ブロックのアクセス順序に対応する記憶ブロックの配列のうち、先頭側に存在している論理アドレス未書込の記憶ブロックへのテーブル作成手段によるアクセスが省かれることになる。また、書込手段によって記憶デバイスに末尾位置情報が書き込まれる場合には、テーブル作成手段によるアクセス順序で末尾の記憶ブロックに論理アドレスが書き込まれていない限りは、前述の末尾位置情報に基づき、テーブル作成手段による記憶ブロックのアクセス順序に対応する記憶ブロックの配列のうち、末尾側に存在している論理アドレス未書込の記憶ブロックへのテーブル作成手段によるアクセスが省かれることになる。   Thus, in the invention described in claim 2, when the head position information is written to the storage device by the writing means, the logical address is not written unless the logical address is written to the head storage block in the access order by the table creating means. In the storage block array corresponding to the access order of the storage blocks by the table creation means, access by the table creation means to the storage block at the head side where the logical address is not written is saved. Will be. Further, when the tail position information is written to the storage device by the writing means, the table is based on the tail position information described above unless the logical address is written to the tail storage block in the access order by the table creating means. In the storage block array corresponding to the access order of the storage blocks by the creation means, access by the table creation means to the storage block that has not yet been written with the logical address is omitted.

従って、請求項2記載の発明についても、論理/物理変換テーブル作成のためにテーブル作成手段がアクセスする記憶ブロックの数を減らすことができ、論理/物理変換テーブルの作成に要する時間を短縮することができる。なお、請求項2記載の発明において、書込手段は、先頭位置情報及び末尾位置情報を各々書き込むことが望ましい。   Therefore, the invention described in claim 2 can also reduce the number of storage blocks accessed by the table creating means for creating the logical / physical conversion table, and shorten the time required for creating the logical / physical conversion table. Can do. In the invention described in claim 2, it is desirable that the writing means writes the head position information and the tail position information.

また、請求項3記載の発明に係る記憶デバイス制御装置は、各々物理アドレスが付与された記憶ブロックを複数備えると共に、有効なデータを記憶している記憶ブロック内の第1特定領域に該記憶ブロックに付与された論理アドレスが書き込まれる書替可能な不揮発性の記憶デバイスと接続される記憶デバイス制御装置であって、稼働開始毎に、前記記憶デバイスに書き込まれている論理アドレスを全て読み出し、論理アドレスと物理アドレスとを対応付ける論理/物理変換テーブルを作成するテーブル作成手段と、稼働終了時又は前記記憶デバイスのうち論理アドレスが付与されている記憶ブロックの個数が変化した時に、前記論理アドレスが付与されている一連の記憶ブロックのうちの先頭の記憶ブロックの位置を表す位置情報を前記記憶デバイスに書き込むと共に、前記一連の記憶ブロックを構成する各記憶ブロック内の第2特定領域に、前記一連の記憶ブロックにおける次の記憶ブロックの位置を表す位置情報を書き込む書込手段と、を備え、前記テーブル作成手段は、前記記憶デバイスからの論理アドレスの読み出しに先立ち、前記書込手段によって前記記憶デバイスに書き込まれた前記先頭の記憶ブロックの位置を表す位置情報を読み出した後に、読み出した位置情報が表す位置に存在している記憶ブロックから論理アドレス及び位置情報を読み出すことを繰り返すことで、前記一連の記憶ブロックを構成する各記憶ブロックから論理アドレスを順に読み出すことを特徴としている。   According to a third aspect of the present invention, there is provided a storage device control apparatus comprising a plurality of storage blocks each provided with a physical address, and the storage block in a first specific area in the storage block storing valid data. A storage device controller connected to a rewritable nonvolatile storage device to which a logical address assigned to the storage device is written, and reads out all the logical addresses written to the storage device every time the operation is started. Table creation means for creating a logical / physical conversion table for associating an address with a physical address, and the logical address is assigned when the operation ends or when the number of storage blocks to which a logical address is assigned in the storage device changes Position information indicating the position of the first storage block in a series of stored storage blocks. Writing means for writing to the device and writing position information indicating the position of the next storage block in the series of storage blocks to a second specific area in each of the storage blocks constituting the series of storage blocks; The table creation means reads the position information indicating the position of the first storage block written to the storage device by the writing means prior to reading the logical address from the storage device, and then reads the position information. The logical address and the position information are repeatedly read out from the storage block existing at the position represented by, thereby sequentially reading out the logical address from each storage block constituting the series of storage blocks.

請求項3記載の発明では、稼働終了時又は記憶デバイスのうち論理アドレスが付与されている記憶ブロックの個数が変化した時に、書込手段により、論理アドレスが付与されている一連の記憶ブロックのうちの先頭の記憶ブロックの位置を表す位置情報が記憶デバイスに書き込まれると共に、一連の記憶ブロックを構成する各記憶ブロック内の第2特定領域に、一連の記憶ブロックにおける次の記憶ブロックの位置を表す位置情報が書き込まれる。そしてテーブル作成手段は、記憶デバイスからの論理アドレスの読み出しに先立ち、書込手段によって記憶デバイスに書き込まれた先頭の記憶ブロックの位置を表す位置情報を読み出した後に、読み出した位置情報が表す位置に存在している記憶ブロックから論理アドレス及び位置情報を読み出すことを繰り返すことで、一連の記憶ブロックを構成する各記憶ブロックから論理アドレスを順に読み出す。   In the invention according to claim 3, at the time of the end of operation or when the number of storage blocks to which logical addresses are assigned among the storage devices changes, among the series of storage blocks to which logical addresses are assigned by the writing means The position information indicating the position of the first storage block is written to the storage device, and the position of the next storage block in the series of storage blocks is indicated in the second specific area in each storage block constituting the series of storage blocks. Location information is written. Then, prior to reading the logical address from the storage device, the table creation means reads the position information indicating the position of the first storage block written to the storage device by the writing means, and then at the position indicated by the read position information. By repeatedly reading the logical address and the position information from the existing storage block, the logical address is sequentially read from each storage block constituting the series of storage blocks.

このように、請求項3記載の発明では、テーブル作成手段が、論理アドレスが書き込まれている記憶ブロックのみをアクセスするので、論理/物理変換テーブル作成のためにテーブル作成手段がアクセスする記憶ブロックの数を減らすことができ、論理/物理変換テーブルの作成に要する時間を短縮することができる。   Thus, in the invention described in claim 3, since the table creation means accesses only the storage block in which the logical address is written, the storage block accessed by the table creation means for creating the logical / physical conversion table is stored. The number can be reduced, and the time required to create the logical / physical conversion table can be shortened.

また、請求項4記載の発明に係る記憶デバイス制御プログラムは、各々物理アドレスが付与された記憶ブロックを複数備えると共に、有効なデータを記憶している記憶ブロック内の特定領域に該記憶ブロックに付与された論理アドレスが書き込まれる書替可能な不揮発性の記憶デバイスと接続されるコンピュータを、稼働開始毎に、前記記憶デバイスに書き込まれている論理アドレスを全て読み出し、論理アドレスと物理アドレスとを対応付ける論理/物理変換テーブルを作成するテーブル作成手段、及び、稼働終了時又は前記記憶デバイスのうち論理アドレスが付与されている記憶ブロックの個数が変化した時に、前記論理アドレスが付与されている記憶ブロックの個数を表す個数情報を前記記憶デバイスに書き込む書込手段として機能させると共に、前記テーブル作成手段は、前記記憶デバイスからの論理アドレスの読み出しに先立ち、前記書込手段によって前記記憶デバイスに書き込まれた個数情報を読み出し、前記記憶デバイスから読み出した論理アドレスの個数が前記個数情報が表す個数に達した時点で前記記憶デバイスからの論理アドレスの読み出しを終了することを特徴としている。   In addition, the storage device control program according to the invention of claim 4 includes a plurality of storage blocks each assigned with a physical address, and is assigned to the storage block in a specific area in the storage block storing valid data. Every time the computer connected to the rewritable nonvolatile storage device to which the written logical address is written is read out, all the logical addresses written in the storage device are read out, and the logical address is associated with the physical address. Table creation means for creating a logical / physical conversion table, and a storage block to which the logical address is assigned at the end of operation or when the number of storage blocks to which a logical address is assigned in the storage device changes. Functions as a writing means for writing the number information representing the number to the storage device. The table creation means reads the number information written to the storage device by the writing means prior to reading the logical address from the storage device, and the number of logical addresses read from the storage device is Reading the logical address from the storage device is terminated when the number indicated by the number information is reached.

請求項4記載の発明に係る記憶デバイス制御プログラムは、各々物理アドレスが付与された記憶ブロックを複数備えると共に、有効なデータを記憶している記憶ブロック内の第1特定領域に該記憶ブロックに付与された論理アドレスが書き込まれる書替可能な不揮発性の記憶デバイスと接続されるコンピュータを、上記のテーブル作成手段及び書込手段として機能させるためのプログラムであるので、コンピュータが請求項4記載の発明に係る記憶デバイス制御プログラムを実行することにより、コンピュータが請求項1に記載の記憶デバイス制御装置として機能することになり、請求項1記載の発明と同様に、論理/物理変換テーブルの作成に要する時間を短縮することができる。   The storage device control program according to the invention of claim 4 includes a plurality of storage blocks each assigned with a physical address, and is assigned to the storage block in a first specific area in the storage block storing valid data. The computer according to claim 4 is a program for causing a computer connected to a rewritable nonvolatile storage device to which a written logical address is written to function as the table creating means and the writing means. By executing the storage device control program according to the first aspect, the computer functions as the storage device control apparatus according to the first aspect, and it is necessary to create the logical / physical conversion table as in the first aspect. Time can be shortened.

また、請求項5記載の発明に係る記憶デバイス制御プログラムは、各々物理アドレスが付与された記憶ブロックを複数備えると共に、有効なデータを記憶している記憶ブロック内の特定領域に該記憶ブロックに付与された論理アドレスが書き込まれる書替可能な不揮発性の記憶デバイスと接続されるコンピュータを、稼働開始毎に、前記複数の記憶ブロックに一定順序でアクセスして前記記憶デバイスに書き込まれている論理アドレスを全て読み出し、論理アドレスと物理アドレスとを対応付ける論理/物理変換テーブルを作成するテーブル作成手段、及び、稼働終了時又は前記記憶デバイスのうち論理アドレスが付与されている記憶ブロックの個数が変化した時に、前記一定順序に対応する記憶ブロックの配列のうち、前記論理アドレスが付与されている記憶ブロックが存在している範囲内の先頭位置を表す先頭位置情報及び末尾位置を表す末尾位置情報の少なくとも一方を含む範囲情報を前記記憶デバイスに書き込む書込手段として機能させると共に、前記テーブル作成手段は、前記記憶デバイスからの論理アドレスの読み出しに先立ち、前記書込手段によって前記記憶デバイスに書き込まれた範囲情報を読み出し、読み出した範囲情報に前記先頭位置情報が含まれている場合には、前記記憶デバイスからの論理アドレスの読み出しを前記先頭位置情報が表す先頭位置から開始し、読み出した範囲情報に前記末尾位置情報が含まれている場合には、前記記憶デバイスからの論理アドレスの読み出しが前記末尾位置情報が表す末尾位置に達した時点で前記記憶デバイスからの論理アドレスの読み出しを終了することを特徴としている。   The storage device control program according to the invention of claim 5 includes a plurality of storage blocks each assigned a physical address, and is assigned to a specific area in the storage block storing valid data. Each time a computer connected to a rewritable nonvolatile storage device to which a written logical address is written is accessed, the plurality of storage blocks are accessed in a predetermined order, and the logical address written in the storage device Table creation means for creating a logical / physical conversion table that correlates logical addresses and physical addresses, and when the operation ends or the number of storage blocks to which logical addresses are assigned among the storage devices changes , Among the array of storage blocks corresponding to the certain order, the logical address is And functioning as writing means for writing range information including at least one of head position information representing a head position within a range where a given storage block exists and tail position information representing a tail position to the storage device, and The table creation means reads the range information written to the storage device by the writing means prior to reading the logical address from the storage device, and the read position information includes the head position information Starts reading the logical address from the storage device from the start position represented by the start position information, and if the read range information includes the end position information, the logical address from the storage device When the reading of the data reaches the end position represented by the end position information, the logic from the storage device It is characterized in that to terminate the reading of the dress.

請求項5記載の発明に係る記憶デバイス制御プログラムは、各々物理アドレスが付与された記憶ブロックを複数備えると共に、有効なデータを記憶している記憶ブロック内の第1特定領域に該記憶ブロックに付与された論理アドレスが書き込まれる書替可能な不揮発性の記憶デバイスと接続されるコンピュータを、上記のテーブル作成手段及び書込手段として機能させるためのプログラムであるので、コンピュータが請求項5記載の発明に係る記憶デバイス制御プログラムを実行することにより、コンピュータが請求項2に記載の記憶デバイス制御装置として機能することになり、請求項2記載の発明と同様に、論理/物理変換テーブルの作成に要する時間を短縮することができる。   The storage device control program according to the invention of claim 5 includes a plurality of storage blocks each assigned a physical address, and is assigned to the first specific area in the storage block storing valid data. The computer according to claim 5 is a program for causing a computer connected to a rewritable nonvolatile storage device to which a written logical address is written to function as the table creating means and the writing means. By executing the storage device control program according to the above, the computer functions as the storage device control apparatus according to claim 2, and as with the invention according to claim 2, it is necessary to create a logical / physical conversion table. Time can be shortened.

また、請求項6記載の発明に係る記憶デバイス制御プログラムは、各々物理アドレスが付与された記憶ブロックを複数備えると共に、有効なデータを記憶している記憶ブロック内の第1特定領域に該記憶ブロックに付与された論理アドレスが書き込まれる書替可能な不揮発性の記憶デバイスと接続されるコンピュータを、稼働開始毎に、前記記憶デバイスに書き込まれている論理アドレスを全て読み出し、論理アドレスと物理アドレスとを対応付ける論理/物理変換テーブルを作成するテーブル作成手段、及び、稼働終了時又は前記記憶デバイスのうち論理アドレスが付与されている記憶ブロックの個数が変化した時に、前記論理アドレスが付与されている一連の記憶ブロックのうちの先頭の記憶ブロックの位置を表す位置情報を前記記憶デバイスに書き込むと共に、前記一連の記憶ブロックを構成する各記憶ブロック内の第2特定領域に、前記一連の記憶ブロックにおける次の記憶ブロックの位置を表す位置情報を書き込む書込手段として機能させると共に、前記テーブル作成手段は、前記記憶デバイスからの論理アドレスの読み出しに先立ち、前記書込手段によって前記記憶デバイスに書き込まれた前記先頭の記憶ブロックの位置を表す位置情報を読み出した後に、読み出した位置情報が表す位置に存在している記憶ブロックから論理アドレス及び位置情報を読み出すことを繰り返すことで、前記一連の記憶ブロックを構成する各記憶ブロックから論理アドレスを順に読み出すことを特徴としている。   The storage device control program according to claim 6 includes a plurality of storage blocks each assigned with a physical address, and the storage block is stored in a first specific area in the storage block storing valid data. A computer connected to a rewritable non-volatile storage device to which a logical address assigned to the device is written is read out every time the operation starts, and the logical address and the physical address are read out. And a table creation means for creating a logical / physical conversion table for associating with each other, and a series to which the logical address is assigned when the operation ends or when the number of storage blocks to which the logical address of the storage device is assigned changes. Position information indicating the position of the first storage block among the storage blocks of Writing to the chair, and functioning as writing means for writing position information indicating the position of the next storage block in the series of storage blocks to the second specific area in each storage block constituting the series of storage blocks, The table creation means reads the position information indicating the position of the first storage block written to the storage device by the writing means prior to reading the logical address from the storage device, and then reads the position information. The logical address and the position information are repeatedly read out from the storage block existing at the position represented by, thereby sequentially reading out the logical address from each storage block constituting the series of storage blocks.

請求項6記載の発明に係る記憶デバイス制御プログラムは、各々物理アドレスが付与された記憶ブロックを複数備えると共に、有効なデータを記憶している記憶ブロック内の第1特定領域に該記憶ブロックに付与された論理アドレスが書き込まれる書替可能な不揮発性の記憶デバイスと接続されるコンピュータを、上記のテーブル作成手段及び書込手段として機能させるためのプログラムであるので、コンピュータが請求項6記載の発明に係る記憶デバイス制御プログラムを実行することにより、コンピュータが請求項3に記載の記憶デバイス制御装置として機能することになり、請求項3記載の発明と同様に、論理/物理変換テーブルの作成に要する時間を短縮することができる。   The storage device control program according to the invention of claim 6 includes a plurality of storage blocks each assigned a physical address, and is assigned to the first specific area in the storage block storing valid data. The computer according to claim 6 is a program for causing a computer connected to a rewritable nonvolatile storage device to which a written logical address is written to function as the table creating means and the writing means. By executing the storage device control program according to the above, the computer functions as the storage device control apparatus according to the third aspect, and as in the third aspect, it is necessary to create a logical / physical conversion table. Time can be shortened.

以上説明したように請求項1及び請求項4記載の発明は、稼働終了時又は記憶デバイスのうち論理アドレスが付与されている記憶ブロックの個数が変化した時に、論理アドレスが付与されている記憶ブロックの個数を表す個数情報を記憶デバイスに書き込んでおき、論理/物理変換テーブル作成時に、記憶デバイスから読み出した論理アドレスの個数が個数情報が表す個数に達した時点で記憶デバイスからの論理アドレスの読み出しを終了するようにしたので、論理/物理変換テーブルの作成に要する時間を短縮できる、という優れた効果を有する。   As described above, the invention according to claim 1 and claim 4 is a storage block to which a logical address is assigned when the operation ends or when the number of storage blocks to which a logical address is assigned in the storage device changes. The number information that represents the number of addresses is written in the storage device, and when the logical / physical conversion table is created, the logical address is read from the storage device when the number of logical addresses read from the storage device reaches the number represented by the number information. Therefore, the time required for creating the logical / physical conversion table can be shortened.

また、請求項2及び請求項5記載の発明は、稼働終了時又は記憶デバイスのうち論理アドレスが付与されている記憶ブロックの個数が変化した時に、一定順序に対応する記憶ブロックの配列のうち、論理アドレスが付与されている記憶ブロックが存在している範囲内の先頭位置を表す先頭位置情報及び末尾位置を表す末尾位置情報の少なくとも一方を含む範囲情報を記憶デバイスに書き込んでおき、論理/物理変換テーブル作成時に、記憶デバイスに書き込まれた範囲情報に先頭位置情報が含まれている場合には、記憶デバイスからの論理アドレスの読み出しを先頭位置情報が表す先頭位置から開始し、範囲情報に末尾位置情報が含まれている場合には、記憶デバイスからの論理アドレスの読み出しが末尾位置情報が表す末尾位置に達した時点で記憶デバイスからの論理アドレスの読み出しを終了するようにしたので、論理/物理変換テーブルの作成に要する時間を短縮できる、という優れた効果を有する。   The inventions according to claim 2 and claim 5 are the arrangements of storage blocks corresponding to a certain order when the operation ends or when the number of storage blocks to which logical addresses are assigned in the storage device changes. Range information including at least one of the head position information indicating the head position and the tail position information indicating the tail position in the range where the storage block to which the logical address is assigned exists is written in the storage device, and the logical / physical If the start position information is included in the range information written to the storage device when creating the conversion table, reading of the logical address from the storage device starts from the start position indicated by the start position information and ends with the end of the range information. When position information is included, when the logical address read from the storage device reaches the end position indicated by the end position information. In since so as to end the reading of the logical address from the storage device, it is possible to shorten the time required to create the logical / physical conversion table has the excellent effect that.

また、請求項3及び請求項6記載の発明は、稼働終了時又は記憶デバイスのうち論理アドレスが付与されている記憶ブロックの個数が変化した時に、論理アドレスが付与されている一連の記憶ブロックのうちの先頭の記憶ブロックの位置を表す位置情報を記憶デバイスに書き込むと共に、一連の記憶ブロックを構成する各記憶ブロック内の第2特定領域に、一連の記憶ブロックにおける次の記憶ブロックの位置を表す位置情報を書き込んでおき、論理/物理変換テーブル作成時に、先頭の記憶ブロックの位置を表す位置情報を読み出し、読み出した位置情報が表す位置に存在している記憶ブロックから論理アドレス及び位置情報を読み出すことを繰り返すことで、一連の記憶ブロックを構成する各記憶ブロックから論理アドレスを順に読み出すようにしたので、論理/物理変換テーブルの作成に要する時間を短縮できる、という優れた効果を有する。   Further, the inventions according to claim 3 and claim 6 are a series of storage blocks to which logical addresses are assigned at the end of operation or when the number of storage blocks to which logical addresses are assigned in the storage device changes. The position information indicating the position of the first storage block is written to the storage device, and the position of the next storage block in the series of storage blocks is indicated in the second specific area in each storage block constituting the series of storage blocks. Write the position information, read the position information indicating the position of the first storage block when creating the logical / physical conversion table, and read the logical address and position information from the storage block existing at the position indicated by the read position information. By repeating this, the logical addresses are sequentially read from the storage blocks constituting the series of storage blocks. Since the manner, thereby shortening the time required for creating the logical / physical conversion table, with an excellent effect that.

以下、図面を参照して本発明の実施形態の一例を詳細に説明する。   Hereinafter, an example of an embodiment of the present invention will be described in detail with reference to the drawings.

〔第1実施形態〕
図1には、本第1実施形態に係る撮影記録装置10が示されている。撮影記録装置10の本体12は略箱型とされ、図1(A)に示すように、本体12の正面側中央やや上寄りにレンズ14が取付けられている。また、本体12のレンズ14の上方には、ユーザが撮影範囲等を目視で確認するための光学ファインダ16と、補助光を発するためのストロボ18と、マイクロフォン20が各々取付けられている。ストロボ18は、低照度であることが検出された場合や、ユーザによって発光が指示された場合に発光される。
[First Embodiment]
FIG. 1 shows an imaging / recording apparatus 10 according to the first embodiment. The main body 12 of the photographic recording apparatus 10 is substantially box-shaped, and a lens 14 is attached to the center of the front side of the main body 12 slightly upward as shown in FIG. Further, an optical viewfinder 16 for allowing a user to visually check a photographing range, a strobe 18 for emitting auxiliary light, and a microphone 20 are attached above the lens 14 of the main body 12. The strobe 18 emits light when it is detected that the illumination is low or when the user instructs to emit light.

また、本体12の上面には、正面から見て左側にシャッターボタン22が設けられており、本体12の正面から見て左側の側面には、フラッシュメモリを内蔵した記録メディア68(図2参照)を装填可能なスロット24が設けられている。図1(B)に示すように、本体12の背面の上方側には光学ファインダ16と電源スイッチ26が設けられており、左下方側には、反射型又は透過型のカラーLCD28が取付けられている。また、LCD28の右側には、撮影モードの切り替えや各種の設定スイッチ30が各々取付けられており、更にその右上方には動画像の撮影を行う際に操作される動画記録開始/停止ボタン31が配設されている。   Further, a shutter button 22 is provided on the upper surface of the main body 12 on the left side when viewed from the front, and a recording medium 68 containing a flash memory on the left side surface when viewed from the front of the main body 12 (see FIG. 2). Is provided in the slot 24. As shown in FIG. 1B, an optical viewfinder 16 and a power switch 26 are provided on the upper rear side of the main body 12, and a reflective or transmissive color LCD 28 is mounted on the lower left side. Yes. Further, on the right side of the LCD 28, shooting mode switching and various setting switches 30 are respectively attached. Further, on the upper right side, a moving image recording start / stop button 31 operated when shooting a moving image is provided. It is arranged.

図2には撮影記録装置10の電気系の構成が示されている。本体12内部のレンズ14の焦点位置に相当する位置には、エリアCCDセンサ34が配置されており、被写体を反射してレンズ14に入射された光はエリアCCDセンサ34の受光面に結像される。エリアCCDセンサ34は、図示しないタイミング発生回路(図示省略)によって発生されたタイミング信号に同期したタイミングで駆動され、画像信号(受光面上にマトリクス状に配列された多数個の光電変換セルの各々における受光量を表す信号)を出力する。エリアCCDセンサ34の信号出力端には、A/D変換器36、画像信号処理回路38が順に接続されている。エリアCCDセンサ34から出力された画像信号は、A/D変換器36によってデジタルの画像データに変換されて画像信号処理回路38へ入力される。画像信号処理回路38では、入力された画像データに対して色補正・γ補正等の各種処理を行う。   FIG. 2 shows the configuration of the electrical system of the photographic recording apparatus 10. An area CCD sensor 34 is disposed at a position corresponding to the focal position of the lens 14 inside the main body 12, and light incident on the lens 14 after reflecting the subject is imaged on the light receiving surface of the area CCD sensor 34. The The area CCD sensor 34 is driven at a timing synchronized with a timing signal generated by a timing generation circuit (not shown) (not shown), and receives an image signal (each of a large number of photoelectric conversion cells arranged in a matrix on the light receiving surface). A signal indicating the amount of light received at. An A / D converter 36 and an image signal processing circuit 38 are sequentially connected to the signal output terminal of the area CCD sensor 34. The image signal output from the area CCD sensor 34 is converted into digital image data by the A / D converter 36 and input to the image signal processing circuit 38. The image signal processing circuit 38 performs various processes such as color correction and γ correction on the input image data.

画像信号処理回路38はバス40に接続されており、このバス40には、CPU42、DMAC(ダイレクト・メモリ・アクセス・コントローラ)44、メディアI/F(インタフェース)部46、YC処理回路48、符号化回路50、液晶/ビデオI/F部56、メモリコントローラ60が各々接続されていると共に、電源スイッチ26・各種の設定スイッチ30・シャッターボタン22の半押しや全押し等の操作に応じて接点が切り替わるシャッタースイッチ(図示省略)等を含んで構成された操作部62が接続されている。なお、図示は省略するが、CPU42はROM、RAM、入出力ポート等の周辺回路を含んで構成されており、液晶/ビデオI/F部56にはLCD28が、メモリコントローラ60にはSDRAM(シンクロナスDRAM)64及びフラッシュROM66が各々接続されている。   The image signal processing circuit 38 is connected to a bus 40, which includes a CPU 42, a DMAC (direct memory access controller) 44, a media I / F (interface) unit 46, a YC processing circuit 48, a code Circuit 50, liquid crystal / video I / F unit 56, and memory controller 60 are connected to each other, and contacts are made according to operations such as half-press or full-press of the power switch 26, various setting switches 30, and the shutter button 22. An operation unit 62 configured to include a shutter switch (not shown) that switches between and the like is connected. Although not shown in the figure, the CPU 42 includes peripheral circuits such as a ROM, a RAM, and an input / output port. An eggplant DRAM) 64 and a flash ROM 66 are connected to each other.

なお、フラッシュROM66には、CPU42で各種の処理を実行するための各種の処理プログラムが予め記憶されており、各種の処理プログラムの中には、後述する稼働時処理を行うための稼働時プログラムが含まれている。この稼働時プログラムの中には、後述する論理/物理変換テーブル作成処理を行うための論理/物理変換テーブル作成プログラム、領域確保処理を行うための領域確保プログラム、領域解放処理を行うための領域解放プログラムが各々サブルーチンとして含まれている。これらの論理/物理変換テーブル作成プログラム、領域確保プログラム、領域解放プログラム(及び第3実施形態で説明する電源切断時処理を行うための電源切断時プログラム)は本発明に係る記憶デバイス制御プログラムに対応しており、CPU42がこれらのプログラムを実行することで、撮影記録装置10は本発明に係る記憶デバイス制御装置として機能する。   The flash ROM 66 stores in advance various processing programs for executing various processes by the CPU 42. Among the various processing programs, an operating program for performing an operating process described later is included. include. Among the operating programs, a logical / physical conversion table creation program for performing a logical / physical conversion table creation process, which will be described later, an area reservation program for performing an area reservation process, and an area release for performing an area release process Each program is included as a subroutine. These logical / physical conversion table creation program, area reservation program, and area release program (and the power-off program for performing the power-off process described in the third embodiment) correspond to the storage device control program according to the present invention. When the CPU 42 executes these programs, the photographing / recording apparatus 10 functions as a storage device control apparatus according to the present invention.

画像の撮影時、画像信号処理回路38から出力された画像データは液晶/ビデオI/F部56に入力され、液晶/ビデオI/F部56によって被写体が動画像としてLCD28に表示される。ユーザによってシャッターボタン22が半押しされると、CPU42は画像信号処理回路38から出力された画像データのAF評価値を演算し、AF評価値が最大となるようにレンズ14のAF機構を駆動するAF処理を行うと共に、自動的に露出を決定するAE処理を行う。そして、ユーザによってシャッターボタン22が全押しされると、シャッターボタン22が全押しされたタイミングで画像信号処理回路38から出力された画像データが、メモリコントローラ60を介してSDRAM64に一時記憶され、YC処理回路48によるY/C変換処理、符号化回路50による符号化(圧縮)処理が順次行われた後に、メディアI/F部46を介して記録メディア68に画像データとして記録される。なお、上記処理におけるSDRAM64と各回路間のデータ転送(ダイレクト・メモリ・アクセス)はDMAC44の制御下で行われる。   When taking an image, the image data output from the image signal processing circuit 38 is input to the liquid crystal / video I / F unit 56, and the subject is displayed on the LCD 28 as a moving image by the liquid crystal / video I / F unit 56. When the user presses the shutter button 22 halfway, the CPU 42 calculates the AF evaluation value of the image data output from the image signal processing circuit 38, and drives the AF mechanism of the lens 14 so that the AF evaluation value is maximized. In addition to performing AF processing, AE processing for automatically determining exposure is performed. When the shutter button 22 is fully pressed by the user, the image data output from the image signal processing circuit 38 at the timing when the shutter button 22 is fully pressed is temporarily stored in the SDRAM 64 via the memory controller 60, and YC The Y / C conversion process by the processing circuit 48 and the encoding (compression) process by the encoding circuit 50 are sequentially performed, and then recorded as image data on the recording medium 68 via the media I / F unit 46. Note that data transfer (direct memory access) between the SDRAM 64 and each circuit in the above processing is performed under the control of the DMAC 44.

また、記録メディア68に記録されている画像データが表す画像の再生(表示)が指示された場合には、記録メディア68から画像データが読み出されて液晶/ビデオI/F部56へ転送され、LCD28に画像が表示(再生)される。一方、ユーザによって操作部62が操作されることでメニュー画面や各種の設定画面の表示が指示された場合、液晶/ビデオI/F部56は、予めフラッシュROM66に記憶されている各種画面のデータのうち、表示対象の画面のデータを読み出してLCD28に表示させる。   When an instruction to reproduce (display) the image represented by the image data recorded on the recording medium 68 is given, the image data is read from the recording medium 68 and transferred to the liquid crystal / video I / F unit 56. The image is displayed (reproduced) on the LCD 28. On the other hand, when the user operates the operation unit 62 to instruct display of a menu screen or various setting screens, the liquid crystal / video I / F unit 56 stores various screen data stored in the flash ROM 66 in advance. Among them, the screen data to be displayed is read out and displayed on the LCD 28.

次に本実施形態の作用として、まず記録メディア68について説明する。記録メディア68は、書替可能な不揮発性の記憶デバイスとしてのフラッシュメモリを内蔵しており、図3に示すように、フラッシュメモリの記憶領域は複数個の記憶ブロックに分割され、個々の記憶ブロックには記憶ブロックの配列の昇順に物理アドレス0,1,2,…が予め固定的に付与されている。また、個々の記憶ブロック内の記憶領域はデータ領域と冗長部領域とに分割されており、データ領域は画像データ等の任意のデータを書き込み可能とされている。また、各記憶ブロックのうち、データ領域に有効なデータが書き込まれている記憶ブロックに対しては論理アドレスが付与され、論理アドレスが付与された記憶ブロック(データ領域に有効なデータが書き込まれている記憶ブロック:図3では「使用ブロック」と表記)の冗長部領域には付与された論理アドレスが書き込まれ、データ領域に有効なデータが書き込まれておらず論理アドレスが付与されていない記憶ブロック(図3では「未使用ブロック」と表記)の冗長部領域には、未使用ブロックであることを表す所定の記号が書き込まれる。   Next, as an operation of the present embodiment, the recording medium 68 will be described first. The recording medium 68 incorporates a flash memory as a rewritable nonvolatile storage device. As shown in FIG. 3, the storage area of the flash memory is divided into a plurality of storage blocks. Are fixedly assigned in advance with physical addresses 0, 1, 2,... The storage area in each storage block is divided into a data area and a redundant part area, and arbitrary data such as image data can be written in the data area. In addition, a logical address is assigned to a storage block in which valid data is written in the data area, and a storage block to which a logical address is assigned (valid data is written in the data area). Storage block (denoted as “used block” in FIG. 3), the assigned logical address is written in the redundant area, and no valid data is written in the data area and no logical address is assigned. A predetermined symbol indicating an unused block is written in the redundant portion area (denoted as “unused block” in FIG. 3).

詳細は後述するが、撮影記録装置10では電源が投入され記録メディア68に対するアクセスが可能な状態になると論理/物理変換テーブル作成処理が行われ、記録メディア68(のフラッシュメモリ)の各記憶ブロックのうち論理アドレスが付与されている全ての記憶ブロックについて、物理アドレスと論理アドレスを対応付けて登録した論理/物理変換テーブルが作成される。フラッシュROM66に記憶されCPU42で実行される各種プログラムの中には変換プログラムが含まれており、より上位のアプリケーション・プログラムは論理アドレスを指定して記録メディア68へのアクセスを指示し、指定された論理アドレスが前述の変換プログラムにより論理/物理変換テーブルに基づき対応する物理アドレスへ変換された後に、記録メディア68への実際のアクセスが行われる。図4に物理空間として示すように、有効なデータが書き込まれている各記憶ブロックに付与される論理アドレスは必ずしも各記憶ブロックの実際の配列順とは一致しないが、上記のように、論理/物理変換テーブルにより論理アドレスを指定して記録メディア68をアクセスすることが可能となることで、有効なデータが書き込まれている各記憶ブロックが論理アドレスの昇順に配列されているものと見なして(図4に示す論理空間を参照)記録メディア68へのアクセスを行うことができる。   As will be described in detail later, when the photographing and recording apparatus 10 is turned on and the recording medium 68 becomes accessible, a logical / physical conversion table creation process is performed, and each storage block of the recording medium 68 (flash memory) is stored. A logical / physical conversion table in which physical addresses and logical addresses are associated and registered is created for all storage blocks to which logical addresses are assigned. Various programs stored in the flash ROM 66 and executed by the CPU 42 include a conversion program. The higher-level application program designates a logical address to instruct access to the recording medium 68 and is designated. After the logical address is converted into the corresponding physical address based on the logical / physical conversion table by the above-described conversion program, the actual access to the recording medium 68 is performed. As shown in FIG. 4 as physical space, the logical address given to each storage block in which valid data is written does not necessarily match the actual arrangement order of each storage block. Since it becomes possible to access the recording medium 68 by specifying a logical address by the physical conversion table, it is assumed that each storage block in which valid data is written is arranged in ascending order of the logical address ( (Refer to the logical space shown in FIG. 4) The recording medium 68 can be accessed.

次に、ユーザによって電源スイッチ26が操作されて撮影記録装置10の電源が投入されたことを契機として、CPU42によって稼働時プログラムが実行されることで行われる稼働時処理について、図5のフローチャートを参照して説明する。ステップ100では、記録メディア68の挿入の有無を含む撮影記録装置10の各部の状態チェックや、メモリをクリアする等の初期化処理が行われる。また、この初期化処理では、記録メディア68が挿入されていることを確認すると、後述する論理/物理変換テーブル作成処理も行われる。次のステップ102ではユーザによって選択された処理モードを判定し、判定結果に応じて処理を分岐する。   Next, a flowchart of FIG. 5 will be described with respect to the operation process performed by the CPU 42 executing the operation program when the power switch 26 is operated by the user and the photographing recording apparatus 10 is turned on. The description will be given with reference. In step 100, initialization processing such as checking the status of each part of the photographing and recording apparatus 10 including whether or not the recording medium 68 has been inserted and clearing the memory is performed. In this initialization process, if it is confirmed that the recording medium 68 is inserted, a logical / physical conversion table creation process described later is also performed. In the next step 102, the processing mode selected by the user is determined, and the processing branches according to the determination result.

ユーザによって選択された処理モードが被写体を撮影する撮影モードである場合は、ステップ102からステップ104へ移行し、ユーザの撮影操作に従って被写体を撮影する撮影処理を行う。また、この撮影処理では、撮影によって得られた画像データが記録メディア68に書き込まれるが、記録メディア68への画像データの書き込みに際し、有効な記憶ブロック(論理アドレスが付与されて論理/物理変換テーブルに登録されている記憶ブロック)の空き領域が不足していた場合は、後述する領域確保処理が行われることで、有効な記憶ブロックとして新たな記憶ブロックが確保される。また、ユーザによって選択された処理モードが画像表示モードである場合には、ステップ102からステップ106へ移行し、表示が指示された画像データを記録メディア68から読み出してLCD28に表示させる画像表示処理が行われる。また、ユーザによって選択された処理モードが画像消去モードである場合は、ステップ102からステップ108へ移行し、消去が指示された画像データを記録メディア68から消去する画像消去処理が行われる。また、記録メディア68からの画像データの消去に伴い、記録メディア68の特定の記憶ブロックが有効なデータを一切記憶していない状態となった場合には、後述する領域解放処理が行われることで、当該記憶ブロックが有効な記憶ブロックから除外される。   If the processing mode selected by the user is a shooting mode for shooting the subject, the process proceeds from step 102 to step 104, and shooting processing for shooting the subject is performed according to the shooting operation of the user. In this photographing process, image data obtained by photographing is written to the recording medium 68. When the image data is written to the recording medium 68, an effective storage block (a logical address is given to the logical / physical conversion table). In the case where there is a shortage of free space in the storage block registered in (2), a new storage block is secured as an effective storage block by performing an area securing process described later. If the processing mode selected by the user is the image display mode, the process proceeds from step 102 to step 106, and image display processing is performed in which image data instructed to be displayed is read from the recording medium 68 and displayed on the LCD 28. Done. If the processing mode selected by the user is the image erasing mode, the process proceeds from step 102 to step 108, and an image erasing process for erasing the image data instructed to be erased from the recording medium 68 is performed. In addition, when image data from the recording medium 68 is erased, when a specific storage block of the recording medium 68 does not store any valid data, an area release process described later is performed. The storage block is excluded from valid storage blocks.

ステップ104〜108の何れかの処理を行うとステップ110へ移行し、ユーザによって電源スイッチ26が操作されることで撮影記録装置10の電源切断が指示されたか否か判定する。判定が否定された場合はステップ102に戻り、ステップ110の判定が肯定される迄、ステップ102〜ステップ110を繰り返す。また、ステップ110の判定が肯定されるとステップ112へ移行し、撮影記録装置10の電源切断に備えて必要な情報をフラッシュROM66に書き込む等の終了処理を行う。なお、本第1実施形態では記録メディア68の特定の記憶ブロック(本実施形態では先頭(物理アドレス「0」)の記憶ブロックとする)のデータ領域に有効ブロック数(論理アドレスを付与している記憶ブロックの数、請求項1等に記載の個数情報に相当)を書き込んでおり、有効ブロックの数が増減する際、すなわち前述の領域確保処理又は領域解放処理が行われる際に上記の有効ブロック数が更新されるが(詳細は後述)、この有効ブロック数の更新は電源切断時にのみ行ってもよく、この場合はステップ112の終了処理で有効ブロック数の更新が同時に行われる。そして終了処理が完了すると、次のステップ114で撮影記録装置10の電源が切断される。   When any one of the processes in steps 104 to 108 is performed, the process proceeds to step 110, and it is determined whether or not the user has instructed to turn off the photographing and recording apparatus 10 by operating the power switch 26. If the determination is negative, the process returns to step 102, and steps 102 to 110 are repeated until the determination of step 110 is affirmed. If the determination in step 110 is affirmed, the process proceeds to step 112 to perform end processing such as writing necessary information in the flash ROM 66 in preparation for the power-off of the photographing and recording apparatus 10. In the first embodiment, the number of effective blocks (logical address is given) in the data area of a specific storage block of the recording medium 68 (in this embodiment, the first storage block (physical address “0”)). The number of storage blocks (corresponding to the number information described in claim 1) is written, and when the number of effective blocks increases or decreases, that is, when the above-described area securing process or area releasing process is performed, the above-mentioned effective blocks Although the number is updated (details will be described later), the number of valid blocks may be updated only when the power is turned off. In this case, the number of valid blocks is updated at the end of step 112 at the same time. When the end processing is completed, the power of the photographing / recording apparatus 10 is turned off at the next step 114.

次に、前述の初期化処理(図5のステップ102)の実行時に併せて実行される論理/物理変換テーブル作成処理について、図6のフローチャートを参照して説明する。なお、この論理/物理変換テーブル作成処理は請求項1,4に記載のテーブル作成手段に対応している。ステップ120ではメモリ(例えばSDRAM64)に設けられた論理/物理変換テーブル記憶用の領域を初期化する。先にも説明したように、本第1実施形態では記録メディア68の特定の記憶ブロックに有効ブロック数(論理アドレスを付与している記憶ブロックの数)を書き込んでおり(記録メディア68全体が未使用の状態では初期値として0が書き込まれている)、次のステップ122では、記録メディア68の特定の記憶ブロックから有効ブロック数を読み出す。またステップ124では、アドレスカウンタのカウント値及びブロックカウンタのカウント値を各々1に初期化する。   Next, a logical / physical conversion table creation process that is executed when the above-described initialization process (step 102 in FIG. 5) is executed will be described with reference to the flowchart in FIG. This logical / physical conversion table creation processing corresponds to the table creation means described in claims 1 and 4. In step 120, an area for storing a logical / physical conversion table provided in a memory (for example, SDRAM 64) is initialized. As described above, in the first embodiment, the number of effective blocks (the number of storage blocks to which a logical address is assigned) is written in a specific storage block of the recording medium 68 (the entire recording medium 68 is not yet stored). In the state of use, 0 is written as an initial value), and in the next step 122, the number of effective blocks is read from a specific storage block of the recording medium 68. In step 124, the count value of the address counter and the count value of the block counter are each initialized to 1.

次のステップ126では、アドレスカウンタのカウント値が記録メディア68の記憶ブロックの総数よりも大きいか否か判定する。判定が否定された場合はステップ128へ移行し、ブロックカウンタのカウント値がステップ122で読み出した有効ブロック数よりも大きいか否か判定する。なお、記録メディア68全体が未使用状態の場合には、最初にステップ128の判定が行われた時点で判定が肯定される。この判定も否定された場合はステップ130へ移行し、物理アドレスがアドレスカウンタの現在のカウント値に一致している記憶ブロックにアクセスし、当該記憶ブロックの冗長部領域に記憶されている情報を論理アドレスとして読み出す。そしてステップ132では、ステップ130で読み出した論理アドレスが有効な論理アドレスか否か判定する。   In the next step 126, it is determined whether or not the count value of the address counter is larger than the total number of storage blocks of the recording medium 68. When the determination is negative, the routine proceeds to step 128, where it is determined whether or not the count value of the block counter is larger than the number of valid blocks read out at step 122. If the entire recording medium 68 is unused, the determination is affirmed when the determination in step 128 is first performed. If this determination is also denied, the process proceeds to step 130, the storage block whose physical address matches the current count value of the address counter is accessed, and the information stored in the redundant part area of the storage block is logically processed. Read as address. In step 132, it is determined whether the logical address read in step 130 is a valid logical address.

前述のように、有効なデータが書き込まれている有効な記憶ブロックの冗長部領域には論理アドレスが書き込まれている一方、有効なデータが書き込まれていない記憶ブロック(未使用記憶ブロック)の冗長部領域には未使用を表す記号が書き込まれているので、ステップ132の判定は、アクセスした記憶ブロックが有効な記憶ブロックであれば肯定され、アクセスした記憶ブロックが未使用の記憶ブロックであれば否定される。ステップ132の判定が肯定された場合はステップ134へ移行し、ステップ120で初期化を行った論理/物理変換テーブルのうち、読み出した有効な論理アドレスに対応するエリアにアドレスカウンタのカウント値、すなわちアクセスした記憶ブロックの物理アドレスを書き込む。また、次のステップ136では、ブロックカウンタのカウント値に1を加算し、ステップ138へ移行する。一方、ステップ132の判定が否定された場合は何ら処理を行うことなくステップ138へ移行する。   As described above, the logical address is written in the redundant part area of the effective storage block where the effective data is written, while the redundancy of the storage block (unused storage block) where the effective data is not written. Since a symbol indicating unused is written in the partial area, the determination in step 132 is affirmed if the accessed storage block is a valid storage block, and if the accessed storage block is an unused storage block. Denied. If the determination in step 132 is affirmative, the process proceeds to step 134, and the count value of the address counter in the area corresponding to the read valid logical address in the logical / physical conversion table initialized in step 120, that is, Write the physical address of the accessed storage block. In the next step 136, 1 is added to the count value of the block counter, and the process proceeds to step 138. On the other hand, if the determination in step 132 is negative, the process proceeds to step 138 without performing any processing.

ステップ138ではアドレスカウンタのカウント値に1を加算してステップ126に戻り、ステップ126又はステップ128の判定が肯定される迄、ステップ126〜ステップ138を繰り返す。そして、ステップ126又はステップ128の判定が肯定されると処理を終了する。   In step 138, 1 is added to the count value of the address counter, the process returns to step 126, and steps 126 to 138 are repeated until the determination in step 126 or step 128 is affirmed. Then, when the determination at step 126 or step 128 is affirmed, the process is terminated.

上述した論理/物理変換テーブル作成処理では、物理アドレスの昇順で末尾の記憶ブロックが有効な記憶ブロックであった場合には、全ての記憶ブロックが順にアクセスされて論理/物理変換テーブルが作成された後に、ステップ126の判定が肯定されて処理を終了するので、論理/物理変換テーブルの作成に要する時間は従来と変わらないが、物理アドレスの昇順で末尾の記憶ブロック等が未使用の記憶ブロックであった場合には、全ての記憶ブロックが順にアクセスされる前にブロックカウンタのカウント値が有効ブロック数を超えることで、ステップ128の判定が肯定されて処理を終了する。例えば図7に示すように、有効なブロックの数が5、物理アドレスの昇順で最後の有効な記憶ブロックが10番目の記憶ブロック(物理アドレス「9」の記憶ブロック)であった場合には、10番目の記憶ブロックからの論理アドレスの読み出しを終了した時点で、論理アドレスの読み出しが終了したと判断されて(ステップ128の判定が肯定されて)処理が終了される。従って、本第1実施形態によれば論理/物理変換テーブルの作成に要する時間を短縮することができ、これに伴って撮影記録装置10の起動時間(電源が投入されてから初期化処理(図5のステップ100)が完了する迄の時間)を短縮することができる。   In the logical / physical conversion table creation process described above, if the last storage block in the ascending order of physical addresses is a valid storage block, all the storage blocks are accessed in order and the logical / physical conversion table is created. Later, since the determination in step 126 is affirmed and the processing is terminated, the time required for creating the logical / physical conversion table is the same as before, but the storage block at the end in the ascending order of physical addresses is an unused storage block. If there is, the count value of the block counter exceeds the number of valid blocks before all the storage blocks are accessed in order, so that the determination in step 128 is affirmed and the process ends. For example, as shown in FIG. 7, when the number of valid blocks is 5 and the last valid storage block in ascending order of physical addresses is the 10th storage block (storage block with physical address “9”), When the reading of the logical address from the tenth storage block is completed, it is determined that the reading of the logical address is completed (the determination in step 128 is affirmed), and the process is terminated. Therefore, according to the first embodiment, the time required to create the logical / physical conversion table can be shortened. Accordingly, the start-up time of the imaging / recording apparatus 10 (initialization processing after the power is turned on (FIG. The time required for completing step 100) in step 5) can be shortened.

続いて本第1実施形態において、上位のアプリケーション・プログラムから、有効な記憶ブロックを新たに確保するよう指示された場合に、CPU42によって領域確保プログラムが実行されることで実現される領域確保処理について、図8のフローチャートを参照して説明する。なお、以下で説明する領域確保処理及び領域解放処理は請求項1,4に記載の書込手段に対応している。領域確保処理では、まずステップ140において、記録メディア68に未使用の記憶ブロックが存在しているか否か判定する。この判定は、例えば論理/物理変換テーブルに物理アドレスが登録されていない記憶ブロックに順にアクセスし、冗長部領域に未使用を表す記号が書き込まれているか否かを各々判断することで行うことができる。ステップ140の判定が否定された場合は、記憶ブロックの確保に失敗したことを指示元のアプリケーション・プログラムに通知して処理を終了する。   Subsequently, in the first embodiment, the area securing process realized by executing the area securing program by the CPU 42 when an instruction is issued to secure a new effective storage block from the upper application program. This will be described with reference to the flowchart of FIG. The area securing process and the area releasing process described below correspond to the writing means described in claims 1 and 4. In the area securing process, first, in step 140, it is determined whether or not an unused storage block exists in the recording medium 68. This determination can be made by sequentially accessing, for example, storage blocks whose physical addresses are not registered in the logical / physical conversion table and determining whether or not a symbol indicating unused is written in the redundant area. it can. If the determination in step 140 is negative, the instruction source application program is notified of the failure to secure the storage block, and the process is terminated.

また、ステップ140の判定が肯定された場合はステップ142へ移行し、ステップ140で存在を認識した確保対象の記憶ブロックに付与する論理アドレスを決定し、決定した論理アドレスを確保対象の記憶ブロックの冗長部領域に書き込むと共に、論理/物理変換テーブルのうちの決定した論理アドレスに対応するエリアに、確保対象の記憶ブロックの物理アドレスを書き込む。そしてステップ144では、記録メディア68の特定ブロックから有効ブロック数を読み出し、読み出した有効ブロック数に1を加算した後に特定ブロックに書き戻し、処理を終了する。これにより、有効な記憶ブロックが新たに確保されると共に、有効な記憶ブロックの数の増加に伴って記録メディア68に書き込まれている有効ブロック数も更新されることになる。   If the determination in step 140 is affirmative, the process proceeds to step 142, where a logical address to be assigned to the storage block to be secured that has been recognized in step 140 is determined, and the determined logical address is stored in the storage block to be secured. In addition to writing to the redundant area, the physical address of the storage block to be secured is written to the area corresponding to the determined logical address in the logical / physical conversion table. In step 144, the effective block number is read from the specific block of the recording medium 68, 1 is added to the read effective block number, and the result is written back to the specific block. As a result, a new effective storage block is secured, and the number of effective blocks written in the recording medium 68 is updated as the number of effective storage blocks increases.

次に本第1実施形態において、上位のアプリケーション・プログラムから、有効な記憶ブロックを解放が指示された場合に、CPU42によって領域解放プログラムが実行されることで実現される領域解放処理について、図9のフローチャートを参照して説明する。この領域解放処理では、まずステップ150において、解放対象の記憶ブロックのデータ領域に書き込まれているデータを消去すると共に、冗長部領域に未使用を表す記号を書き込む。またステップ152では、解放対象の記憶ブロックの物理アドレスを論理/物理変換テーブルから削除する。そして、次のステップ154では、記録メディア68の特定ブロックから有効ブロック数を読み出し、読み出した有効ブロック数から1を減算した後に特定ブロックに書き戻し、処理を終了する。これにより、解放対象の記憶ブロックが有効な記憶ブロックから未使用の記憶ブロックになると共に、有効な記憶ブロックの数の減少に伴って記録メディア68に書き込まれている有効ブロック数も更新されることになる。   Next, in the first embodiment, the area release processing realized by executing the area release program by the CPU 42 when a release of a valid storage block is instructed by a higher-level application program will be described with reference to FIG. This will be described with reference to the flowchart of FIG. In this area releasing process, first, in step 150, the data written in the data area of the storage block to be released is erased and a symbol indicating unused is written in the redundant part area. In step 152, the physical address of the storage block to be released is deleted from the logical / physical conversion table. In the next step 154, the effective block number is read from the specific block of the recording medium 68, 1 is subtracted from the read effective block number, and the result is written back to the specific block, and the process ends. As a result, the storage block to be released changes from an effective storage block to an unused storage block, and the number of effective blocks written in the recording medium 68 is updated as the number of effective storage blocks decreases. become.

なお、上述した第1実施形態では、記録メディア68に書き込まれている有効ブロック数の更新を、有効な記憶ブロックの数が増減する毎に行う例を説明したが、有効ブロック数の更新タイミングは上記に限定されるものではなく、撮影記録装置10の電源切断が指示された場合や撮影記録装置10からの記録メディア68の取り出しが指示された場合に、論理/物理変換テーブルに物理アドレスが登録されている記憶ブロックの個数(有効な記憶ブロックの個数)を計数し、計数結果を有効ブロック数として記録メディア68に書き込むようにしてもよい。この場合、領域確保処理及び領域解放処理をより短時間で行うことができる。但し、撮影記録装置10の電源が瞬断された等の場合は上記処理を行うことができず、記録メディアに書き込まれている有効ブロック数と有効な記憶ブロックの実数とに不一致が生ずる可能性があることを考慮すると、有効な記憶ブロックの数に増減が生ずる毎に有効ブロック数を更新することが望ましい。   In the first embodiment described above, the example in which the number of valid blocks written in the recording medium 68 is updated every time the number of valid storage blocks increases or decreases is described. The present invention is not limited to the above, and the physical address is registered in the logical / physical conversion table when the power-off of the photographing / recording apparatus 10 is instructed or the removal of the recording medium 68 from the photographing / recording apparatus 10 is instructed. The number of stored storage blocks (the number of effective storage blocks) may be counted, and the counting result may be written in the recording medium 68 as the number of effective blocks. In this case, the area securing process and the area releasing process can be performed in a shorter time. However, when the power source of the photographing / recording apparatus 10 is momentarily cut off, the above processing cannot be performed, and there is a possibility that a mismatch occurs between the number of effective blocks written on the recording medium and the actual number of effective storage blocks. Therefore, it is desirable to update the number of effective blocks every time the number of effective storage blocks increases or decreases.

〔第2実施形態〕
次に本発明の第2実施形態について説明する。なお、第2実施形態は第1実施形態と同一の構成であるので、各部分に同一の符号を付して構成の説明を省略し、以下、本第2実施形態の作用を説明する。
[Second Embodiment]
Next, a second embodiment of the present invention will be described. In addition, since 2nd Embodiment is the structure same as 1st Embodiment, it attaches | subjects the same code | symbol to each part, abbreviate | omits description of a structure, and demonstrates the effect | action of this 2nd Embodiment hereafter.

本第2実施形態では、記録メディア68の特定の記憶ブロックのデータ領域に、本第1実施形態で説明した有効ブロック数に代えて、先頭アドレスと末尾アドレスから成る範囲情報を書き込んでいる。なお、先頭アドレスには、有効な記憶ブロックのうち物理アドレスが最小の記憶ブロック(記憶ブロックの配列において有効な記憶ブロックが存在している範囲の先頭に相当する位置に存在している記憶ブロック)の物理アドレスが設定され、末尾アドレスには、有効な記憶ブロックのうち物理アドレスが最大の記憶ブロック(記憶ブロックの配列において有効な記憶ブロックが存在している範囲の末尾に相当する位置に存在している記憶ブロック)の物理アドレスが設定される。なお、記録メディア68全体が未使用の状態では、先頭アドレス及び末尾アドレスの初期値として空白が各々書き込まれている。   In the second embodiment, in place of the number of effective blocks described in the first embodiment, range information composed of a head address and a tail address is written in a data area of a specific storage block of the recording medium 68. The start address is the storage block with the smallest physical address among the effective storage blocks (the storage block that exists at the position corresponding to the beginning of the range where the effective storage block exists in the array of storage blocks). The end address is located at the position corresponding to the end of the effective storage block with the maximum physical address (the effective storage block in the array of storage blocks). Storage block) is set. When the entire recording medium 68 is unused, blanks are respectively written as initial values of the start address and the end address.

次に本第2実施形態に係る論理/物理変換テーブル作成処理について、図11のフローチャートを参照して説明する。なお、この論理/物理変換テーブル作成処理は請求項2,5に記載のテーブル作成手段に対応している。ステップ160では論理/物理変換テーブル記憶用の領域を初期化する。ステップ162では記録メディア68の特定ブロックに範囲情報として書き込まれている先頭アドレス及び末尾アドレスを読み出し、次のステップ163では、記録メディア68から読み出した先頭アドレス(末尾アドレスでもよい)が空白か否か判定する。判定が肯定された場合は記録メディア68全体が未使用状態と判断できるので、処理を終了する。   Next, the logical / physical conversion table creation processing according to the second embodiment will be described with reference to the flowchart of FIG. This logical / physical conversion table creation processing corresponds to the table creation means described in claims 2 and 5. In step 160, an area for storing the logical / physical conversion table is initialized. In step 162, the start address and end address written as range information in a specific block of the recording medium 68 are read. In the next step 163, whether or not the start address (which may be the end address) read from the recording medium 68 is blank. judge. If the determination is affirmative, the entire recording medium 68 can be determined to be unused, and the process ends.

また、ステップ163の判定が否定された場合はステップ164へ移行し、記録メディア68から読み出した先頭アドレスをアドレスカウンタに設定する。次のステップ166では、アドレスカウンタのカウント値が、記録メディア68から読み出した末尾アドレスの値よりも大きいか否か判定する。判定が否定された場合はステップ168へ移行し、物理アドレスがアドレスカウンタの現在のカウント値に一致している記憶ブロックにアクセスし、当該記憶ブロックの冗長部領域に記憶されている情報を論理アドレスとして読み出す。そしてステップ170では、ステップ168で読み出した論理アドレスが有効な論理アドレスか否か判定する。   If the determination in step 163 is negative, the process proceeds to step 164, and the head address read from the recording medium 68 is set in the address counter. In the next step 166, it is determined whether or not the count value of the address counter is larger than the value of the end address read from the recording medium 68. If the determination is negative, the process proceeds to step 168, the storage block whose physical address matches the current count value of the address counter is accessed, and the information stored in the redundant part area of the storage block is logical address Read as. In step 170, it is determined whether or not the logical address read in step 168 is a valid logical address.

ステップ170の判定が肯定された場合、すなわちアクセスした記憶ブロックが有効な記憶ブロックの場合にはステップ172へ移行し、論理/物理変換テーブルのうち、読み出した有効な論理アドレスに対応するエリアにアドレスカウンタのカウント値、すなわちアクセスした記憶ブロックの物理アドレスを書き込んでステップ174へ移行する。一方、ステップ170の判定が否定された場合、すなわちアクセスした記憶ブロックが未使用の記憶ブロックの場合は、何ら処理を行うことなくステップ174へ移行する。そしてステップ174ではアドレスカウンタのカウント値に1を加算してステップ166に戻り、ステップ166の判定が肯定される迄、ステップ166〜ステップ174を繰り返す。そして、ステップ166の判定が肯定されると処理を終了する。   If the determination in step 170 is affirmative, that is, if the accessed storage block is a valid storage block, the process proceeds to step 172, and the address in the area corresponding to the read valid logical address in the logical / physical conversion table is transferred. The count value of the counter, that is, the physical address of the accessed storage block is written, and the process proceeds to step 174. On the other hand, if the determination in step 170 is negative, that is, if the accessed storage block is an unused storage block, the process proceeds to step 174 without performing any processing. In step 174, 1 is added to the count value of the address counter, the process returns to step 166, and steps 166 to 174 are repeated until the determination in step 166 is affirmed. If the determination at step 166 is affirmative, the process ends.

上述した論理/物理変換テーブル作成処理では、物理アドレスの昇順で先頭及び末尾の記憶ブロックが各々有効な記憶ブロックであった場合には、物理アドレスの昇順で先頭の記憶ブロックから末尾の記憶ブロック迄全ての記憶ブロックが順にアクセスされて論理/物理変換テーブルが作成された後にステップ166の判定が肯定されるので、論理/物理変換テーブルの作成に要する時間は従来と変わらないが、物理アドレスの昇順で先頭の記憶ブロックが未使用の記憶ブロックであった場合は、記憶ブロックのアクセス(論理アドレスの読み出し)が物理アドレスの昇順で途中の記憶ブロック(記録メディア68から読み出した先頭ブロックに対応する記憶ブロックから開始され、物理アドレスの昇順で末尾の記憶ブロックが未使用の記憶ブロックであった場合には、記憶ブロックのアクセスが、記録メディア68から読み出した末尾ブロックに対応する記憶ブロックに達した時点で終了されるので、アクセスする記憶ブロックの数が少なくなることで、論理/物理変換テーブルの作成に要する時間が短縮される。   In the logical / physical conversion table creation process described above, if the first and last storage blocks are valid storage blocks in ascending order of physical addresses, the first storage block to the last storage block in ascending order of physical addresses. Since the determination in step 166 is affirmed after all the storage blocks are accessed in order and the logical / physical conversion table is created, the time required to create the logical / physical conversion table is the same as before, but the ascending order of physical addresses. If the first storage block is an unused storage block, access to the storage block (reading of the logical address) is performed in the ascending order of the physical address in the middle storage block (the storage corresponding to the first block read from the recording medium 68). Storage starting from the block and the last storage block in the ascending order of physical addresses is unused In the case of the lock, the access to the storage block is terminated when the storage block corresponding to the end block read from the recording medium 68 is reached, so that the number of storage blocks to be accessed is reduced. / The time required to create the physical conversion table is reduced.

例えば図11(A)に示すように、有効な記憶ブロックが存在している範囲の先頭に位置している記憶ブロックの物理アドレスが「6」、有効な記憶ブロックが存在している範囲の末尾に位置している記憶ブロックの物理アドレスが「12」であった場合には、記憶ブロックのアクセス(論理アドレスの読み出し)が物理アドレス「6」の記憶ブロックから開始され、物理アドレス「12」の記憶ブロックに達した時点で終了される。従って、論理アドレスの読み出しを行う記憶ブロックの数が大幅に減少することで、論理/物理変換テーブルの作成に要する時間が大幅に短縮され、撮影記録装置10の起動時間も大幅に短縮される。   For example, as shown in FIG. 11A, the physical address of the storage block located at the beginning of the range where the valid storage block exists is “6”, and the end of the range where the valid storage block exists. If the physical address of the storage block located at “12” is “12”, access to the storage block (reading of the logical address) is started from the storage block of the physical address “6”, and the physical address “12” The process ends when the storage block is reached. Therefore, the number of storage blocks from which logical addresses are read out is greatly reduced, so that the time required to create the logical / physical conversion table is greatly reduced, and the start-up time of the imaging / recording apparatus 10 is also greatly reduced.

次に、本第2実施形態に係る領域確保処理について、図12のフローチャートを参照して説明する。なお、以下で説明する領域確保処理及び領域解放処理は請求項2,5に記載の書込手段に対応している。ステップ180では、記録メディア68に未使用の記憶ブロックが存在しているか否か判定する。ステップ180の判定が否定された場合は、記憶ブロックの確保に失敗したことを通知して処理を終了する。また、ステップ180の判定が肯定された場合はステップ182へ移行し、ステップ180で存在を認識した確保対象の記憶ブロックに付与する論理アドレスを決定し、決定した論理アドレスを確保対象の記憶ブロックの冗長部領域に書き込むと共に、論理/物理変換テーブルのうちの決定した論理アドレスに対応するエリアに、確保対象の記憶ブロックの物理アドレスを書き込む。ステップ184では記録メディア68の特定ブロックから先頭アドレス及び末尾アドレスを読み出し、次のステップ186では読み出した先頭アドレスが空白か否か判定する。判定が肯定された場合は確保対象の記憶ブロック以外に有効な記憶ブロックが存在していないと判断できるので、ステップ190へ移行し、後で記録メディア68に書き込む先頭アドレスとして、確保対象の記憶ブロックの物理アドレスをメモリに一時記憶させる。   Next, the area securing process according to the second embodiment will be described with reference to the flowchart of FIG. The area securing process and the area releasing process described below correspond to the writing means described in claims 2 and 5. In step 180, it is determined whether or not an unused storage block exists in the recording medium 68. If the determination in step 180 is negative, the fact that storage block allocation has failed is notified and the process ends. If the determination in step 180 is affirmative, the process proceeds to step 182 to determine a logical address to be assigned to the storage block to be secured that has been recognized in step 180, and the determined logical address is determined for the storage block to be secured. In addition to writing to the redundant area, the physical address of the storage block to be secured is written to the area corresponding to the determined logical address in the logical / physical conversion table. In step 184, the start address and end address are read from the specific block of the recording medium 68, and in the next step 186, it is determined whether or not the read start address is blank. If the determination is affirmative, it can be determined that there is no valid storage block other than the storage block to be secured, so the process proceeds to step 190, and the storage block to be secured is used as the start address to be written to the recording medium 68 later. Is temporarily stored in the memory.

またステップ186の判定が否定された場合は、確保対象の記憶ブロック以外にも有効な記憶ブロックが存在しているので、次のステップ188において、確保対象の記憶ブロックの物理アドレスの値が、先のステップ184で読み出した先頭アドレスの値よりも小さいか(確保対象の記憶ブロックが、記憶ブロックの配列において、先頭アドレスに対応する記憶ブロックよりも前側に位置しているか)否かを判定する。ステップ188の判定が肯定された場合はステップ190へ移行し、後で記録メディア68に書き込む先頭アドレスとして、確保対象の記憶ブロックの物理アドレスをメモリに一時記憶させた後にステップ192へ移行する。なお、ステップ188の判定が否定された場合には、何ら処理を行うことなくステップ192へ移行する。   If the determination in step 186 is negative, there is a valid storage block other than the storage block to be secured, so that in the next step 188, the value of the physical address of the storage block to be secured is the first value. It is determined whether or not the value is smaller than the value of the head address read in step 184 (whether the storage block to be secured is positioned in front of the storage block corresponding to the head address in the storage block array). If the determination in step 188 is affirmative, the process proceeds to step 190, and after the physical address of the storage block to be secured is temporarily stored in the memory as the head address to be written to the recording medium 68 later, the process proceeds to step 192. If the determination in step 188 is negative, the process proceeds to step 192 without performing any processing.

ステップ192では、先のステップ184で読み出した末尾アドレスが空白か否か判定する。判定が肯定された場合は確保対象の記憶ブロック以外に有効な記憶ブロックが存在していないと判断できるので、ステップ196へ移行し、後で記録メディア68に書き込む末尾アドレスとして、確保対象の記憶ブロックの物理アドレスをメモリに一時記憶させる。またステップ192の判定が否定された場合はステップ194へ移行し、確保対象の記憶ブロックの物理アドレスの値が、先のステップ184で読み出した末尾アドレスの値よりも大きいか(確保対象の記憶ブロックが、記憶ブロックの配列において、末尾アドレスに対応する記憶ブロックよりも後側に位置しているか)否かを判定する。ステップ194の判定が肯定された場合はステップ196へ移行し、後で記録メディア68に書き込む末尾アドレスとして、確保対象の記憶ブロックの物理アドレスをメモリに一時記憶させた後にステップ198へ移行する。また、ステップ194の判定が否定された場合には、何ら処理を行うことなくステップ198へ移行する。そしてステップ198では、メモリに一時記憶している先頭アドレス及び末尾アドレスを記録メディア68の特定ブロックに書き込み、処理を終了する。上記処理により、有効な記憶ブロックが新たに確保されると共に、有効な記憶ブロックの数の増加に伴い、記録メディア68に書き込まれている先頭アドレス及び末尾アドレスの少なくとも一方が必要に応じて更新されることになる。   In step 192, it is determined whether or not the end address read in the previous step 184 is blank. If the determination is affirmative, it can be determined that there is no valid storage block other than the storage block to be secured, so the process proceeds to step 196 and the storage block to be secured is used as the end address to be written to the recording medium 68 later. Is temporarily stored in the memory. If the determination in step 192 is negative, the process proceeds to step 194, and whether the physical address value of the storage block to be secured is larger than the value of the end address read in step 184 (the storage block to be secured). However, in the storage block array, it is determined whether or not it is located behind the storage block corresponding to the end address. If the determination in step 194 is affirmative, the process proceeds to step 196, and the physical address of the storage block to be secured is temporarily stored in the memory as the end address to be written later on the recording medium 68, and then the process proceeds to step 198. If the determination in step 194 is negative, the process proceeds to step 198 without performing any processing. In step 198, the start address and end address temporarily stored in the memory are written in a specific block of the recording medium 68, and the process is terminated. As a result of the above processing, a new effective storage block is secured, and as the number of effective storage blocks increases, at least one of the start address and end address written in the recording medium 68 is updated as necessary. Will be.

続いて本第2実施形態に係る領域解放処理について、図13のフローチャートを参照して説明する。ステップ200では、解放対象の記憶ブロックのデータ領域に書き込まれているデータを消去すると共に、冗長部領域に未使用を表す記号を書き込む。ステップ201では記録メディア68の特定ブロックから先頭アドレス及び末尾アドレスを読み出し、次のステップ202では、解放対象の記憶ブロックの物理アドレスの値が、ステップ201で読み出した先頭アドレスの値と一致しているか否か、すなわち解放対象の記憶ブロックが記憶ブロックの配列において有効な記憶ブロックが存在している範囲の先頭に位置しているか否か判定する。判定が否定された場合は何ら処理を行うことなくステップ212へ移行する。   Next, the area release processing according to the second embodiment will be described with reference to the flowchart of FIG. In step 200, the data written in the data area of the storage block to be released is erased and a symbol indicating unused is written in the redundant part area. In step 201, the start address and the end address are read from a specific block of the recording medium 68. In the next step 202, whether the physical address value of the storage block to be released matches the value of the start address read in step 201. It is determined whether or not the storage block to be released is located at the beginning of a range where a valid storage block exists in the storage block array. If the determination is negative, the process proceeds to step 212 without performing any processing.

一方、ステップ202の判定が肯定された場合はステップ204へ移行し、解放対象の記憶ブロックを今回有効な記憶ブロックから除外することで、新たに有効な記憶ブロックが存在している範囲の先頭に位置することになる記憶ブロックを探索する。この探索は、例えば論理/物理変換テーブルに登録されている物理アドレスのうち、解放対象の記憶ブロックの物理アドレスを除いて最小の物理アドレスを検索することで実現できる。次のステップ206では、ステップ204の探索によって該当する記憶ブロックが抽出されたか否か判定する。判定が肯定された場合はステップ208へ移行し、後で記録メディア68に書き込む先頭アドレスとして、ステップ204の探索によって抽出された記憶ブロックの物理アドレスをメモリに一時記憶させる。また、ステップ206の判定が否定された場合はステップ210へ移行し、後で記録メディア68に書き込む先頭アドレスとしてメモリに空白を一時記憶させる。   On the other hand, if the determination in step 202 is affirmed, the process proceeds to step 204, and the storage block to be released is excluded from the currently effective storage block, so that a new effective storage block exists at the beginning. Search for the memory block that will be located. This search can be realized, for example, by searching for the minimum physical address of the physical addresses registered in the logical / physical conversion table, excluding the physical address of the storage block to be released. In the next step 206, it is determined whether or not the corresponding storage block has been extracted by the search in step 204. If the determination is affirmative, the process proceeds to step 208, and the physical address of the storage block extracted by the search in step 204 is temporarily stored in the memory as the head address to be written to the recording medium 68 later. If the determination in step 206 is negative, the process proceeds to step 210, and a blank is temporarily stored in the memory as a head address to be written to the recording medium 68 later.

次のステップ212では、解放対象の記憶ブロックの物理アドレスの値が、ステップ201で読み出した末尾アドレスの値と一致しているか否か、すなわち解放対象の記憶ブロックが有効な記憶ブロックが存在している範囲の末尾に位置しているか否か判定する。判定が否定された場合は何ら処理を行うことなくステップ222へ移行する。一方、ステップ212の判定が肯定された場合はステップ214へ移行し、解放対象の記憶ブロックを今回有効な記憶ブロックから除外することで、新たに有効な記憶ブロックが存在している範囲の末尾に位置することになる記憶ブロックを探索する。この探索は、例えば論理/物理変換テーブルに登録されている物理アドレスのうち、解放対象の記憶ブロックの物理アドレスを除いて最大の物理アドレスを検索することで実現できる。次のステップ216では、ステップ214の探索によって該当する記憶ブロックが抽出されたか否か判定する。判定が肯定された場合はステップ218へ移行し、後で記録メディア68に書き込む末尾アドレスとして、ステップ214の探索によって抽出された記憶ブロックの物理アドレスをメモリに一時記憶させる。また、ステップ216の判定が否定された場合はステップ220へ移行し、後で記録メディア68に書き込む先頭アドレスとしてメモリに空白を一時記憶させる。   In the next step 212, whether or not the physical address value of the storage block to be released matches the value of the end address read in step 201, that is, there is a storage block in which the storage block to be released is valid. It is determined whether it is located at the end of the range. If the determination is negative, the process proceeds to step 222 without performing any processing. On the other hand, if the determination in step 212 is affirmative, the process proceeds to step 214, and the memory block to be released is excluded from the currently effective storage block, so that the newly valid storage block exists at the end of the range. Search for the memory block that will be located. This search can be realized, for example, by searching for the maximum physical address from the physical addresses registered in the logical / physical conversion table, excluding the physical address of the storage block to be released. In the next step 216, it is determined whether or not the corresponding storage block has been extracted by the search in step 214. If the determination is affirmative, the process proceeds to step 218, and the physical address of the storage block extracted by the search in step 214 is temporarily stored in the memory as the end address to be written to the recording medium 68 later. If the determination in step 216 is negative, the process proceeds to step 220, and a blank is temporarily stored in the memory as a head address to be written to the recording medium 68 later.

次のステップ222では、メモリに一時記憶している先頭アドレス及び末尾アドレスを記録メディア68の特定ブロックに書き込み、ステップ224では、解放対象の記憶ブロックの物理アドレスを論理/物理変換テーブルから削除し、処理を終了する。上記処理により、解放対象の記憶ブロックが有効な記憶ブロックから未使用の記憶ブロックになると共に、有効な記憶ブロックの数の減少に伴い、記録メディア68に書き込まれている先頭アドレス及び末尾アドレスの少なくとも一方が必要に応じて更新されることになる。   In the next step 222, the start address and the end address temporarily stored in the memory are written to a specific block of the recording medium 68. In step 224, the physical address of the storage block to be released is deleted from the logical / physical conversion table, End the process. As a result of the above processing, the release target storage block changes from a valid storage block to an unused storage block, and at least the start address and the end address written to the recording medium 68 with the decrease in the number of valid storage blocks. One will be updated as needed.

なお、上述した第2実施形態では、記録メディア68に書き込まれている範囲情報(先頭アドレス及び末尾アドレス)の更新を、有効な記憶ブロックの数が増減する毎に行う例を説明したが、範囲情報(先頭アドレス及び末尾アドレス)の更新タイミングは上記に限定されるものではなく、撮影記録装置10の電源切断が指示された場合や撮影記録装置10からの記録メディア68の取り出しが指示された場合に、論理/物理変換テーブルに登録されている物理アドレスの最小値及び最大値を探索し、探索によって抽出した最小値を先頭アドレス、最大値を末尾アドレスとして記録メディア68に書き込むようにしてもよい。   In the above-described second embodiment, the example in which the range information (start address and end address) written in the recording medium 68 is updated every time the number of valid storage blocks increases or decreases has been described. The update timing of information (the start address and the end address) is not limited to the above, and when the power-off of the photographing / recording apparatus 10 is instructed or when the recording medium 68 is instructed to be taken out from the photographing / recording apparatus 10 In addition, the minimum value and the maximum value of the physical address registered in the logical / physical conversion table may be searched, and the minimum value extracted by the search may be written to the recording medium 68 as the start address and the maximum value as the end address. .

また、上述した第2実施形態では、本発明に係る範囲情報として先頭アドレス(先頭位置情報)及び末尾アドレス(末尾位置情報)を記録メディア68に各々書き込む例を説明したが、これに限定されるものではなく、例えば図11(B)に示すように、範囲情報として先頭アドレス(この例では物理アドレス「6」)のみを記録メディア68に書き込むようにしてもよい。この場合は、記憶ブロックのアクセス(論理アドレスの読み出し)が物理アドレス「6」の記憶ブロックから開始されるので、開始された記憶ブロックのアクセスは物理アドレスの昇順で最後の記憶ブロック迄継続されるものの、全ての記憶ブロックから論理アドレスを読み出す場合と比較して論理アドレスの読み出しを行う記憶ブロックの数が減少することで、論理/物理変換テーブルの作成に要する時間を短縮することができる。また、例えば図11(C)に示すように、範囲情報として末尾アドレス(この例では物理アドレス「12」)のみを記録メディア68に書き込むようにしてもよい。この場合は、記憶ブロックのアクセス(論理アドレスの読み出し)が物理アドレスの昇順で最初の記憶ブロックから開始されるものの、開始された記憶ブロックのアクセスは物理アドレス「12」の記憶ブロックに達した時点で終了されるので、全ての記憶ブロックから論理アドレスを読み出す場合と比較して論理アドレスの読み出しを行う記憶ブロックの数が減少することで、論理/物理変換テーブルの作成に要する時間を短縮することができる。   In the above-described second embodiment, the example in which the start address (start position information) and the end address (end position information) are written in the recording medium 68 as the range information according to the present invention has been described. However, the present invention is not limited to this. For example, as shown in FIG. 11B, only the head address (in this example, the physical address “6”) may be written in the recording medium 68 as range information. In this case, since the access to the storage block (reading of the logical address) is started from the storage block having the physical address “6”, the access to the started storage block is continued up to the last storage block in ascending order of the physical addresses. However, the time required to create the logical / physical conversion table can be shortened by reducing the number of storage blocks from which logical addresses are read compared to the case where logical addresses are read from all storage blocks. For example, as shown in FIG. 11C, only the end address (in this example, the physical address “12”) may be written in the recording medium 68 as the range information. In this case, the access to the storage block (reading of the logical address) starts from the first storage block in ascending order of the physical address, but the access to the started storage block reaches the storage block of the physical address “12”. Therefore, the time required to create the logical / physical conversion table can be shortened by reducing the number of storage blocks from which logical addresses are read compared to reading logical addresses from all storage blocks. Can do.

また、上述した第2実施形態では、本発明に係る範囲情報として先頭アドレス及び末尾アドレスを記録メディア68に1組のみ書き込む例を説明したが、これに限定されるものでもなく、例えば図11(D)に示すように、範囲情報として複数組の先頭アドレス及び末尾アドレスを記録メディア68に各々書き込むようにしてもよい。図11(D)の例では、物理アドレスが「3」「5」「6」「21」「23」「24」の各記憶ブロックが有効な記憶ブロックとされ、範囲情報として、物理アドレス「3」「5」「6」の記憶ブロックを指し示す先頭アドレス「3」、末尾アドレス「6」の組と、物理アドレス「21」「23」「24」の記憶ブロックを指し示す先頭アドレス「21」、末尾アドレス「24」の組が各々書き込まれている。範囲情報として上記の情報を書き込んでおくことで、記憶ブロックのアクセス(論理アドレスの読み出し)を、物理アドレスで「3」〜「6」の範囲及び「21」〜「24」の範囲についてのみ行うことができる。これにより、論理アドレスの読み出しを行う記憶ブロックの数を大幅に減少させることができ、論理/物理変換テーブルの作成に要する時間を大幅に短縮することができる。   In the second embodiment described above, an example in which only one set of the start address and the end address is written in the recording medium 68 as the range information according to the present invention has been described. However, the present invention is not limited to this. As shown in D), a plurality of sets of head addresses and tail addresses may be written to the recording medium 68 as range information. In the example of FIG. 11D, the storage blocks having physical addresses “3”, “5”, “6”, “21”, “23”, and “24” are valid storage blocks, and the physical address “3” is used as range information. ”“ 5 ”“ 6 ”, the first address“ 3 ”indicating the storage block, the last address“ 6 ”, and the physical addresses“ 21 ”“ 23 ”“ 24 ”indicating the storage block“ 21 ”, last Each set of addresses “24” is written. By writing the above information as range information, access to the storage block (reading of the logical address) is performed only in the range of “3” to “6” and “21” to “24” in the physical address. be able to. As a result, the number of storage blocks from which logical addresses are read can be greatly reduced, and the time required to create a logical / physical conversion table can be greatly shortened.

〔第3実施形態〕
次に本発明の第3実施形態について説明する。なお、第1実施形態及び第2実施形態と同一の部分には同一の符号を付し、説明を省略する。
[Third Embodiment]
Next, a third embodiment of the present invention will be described. In addition, the same code | symbol is attached | subjected to the part same as 1st Embodiment and 2nd Embodiment, and description is abbreviate | omitted.

本第3実施形態では、第1実施形態で説明した有効ブロック数、第2実施形態で説明した範囲情報(先頭アドレス及び末尾アドレス)に代えて連鎖情報を用いている。連鎖情報は、有効な記憶ブロックを物理アドレスの昇順(降順或いは別の順序を適用してもよい)に一連の有効な記憶ブロックとみなし、この一連の有効な記憶ブロックを構成する個々の記憶ブロックの繋がりを表す情報であり、図15に示すように、特定ブロックに書き込まれた一連の有効な記憶ブロックにおける先頭ブロックの物理アドレス(図15の例では物理アドレス「2」)と、一連の有効な記憶ブロックの各々に書き込まれた次ブロック(次の有効な記憶ブロック)の物理アドレス(但し、一連の有効な記憶ブロックにおける末尾の記憶ブロック(物理アドレス「11」の記憶ブロック)には、次ブロックの物理アドレスに代えて終端を表す終端記号(図15では"EOC"と表記)が書き込まれる)から構成されている。   In the third embodiment, chain information is used in place of the number of effective blocks described in the first embodiment and the range information (start address and end address) described in the second embodiment. The chain information regards valid storage blocks as a series of valid storage blocks in ascending order of physical addresses (descending order or another order may be applied), and the individual storage blocks constituting this series of valid storage blocks As shown in FIG. 15, the physical address of the first block in the series of valid storage blocks written in the specific block (physical address “2” in the example of FIG. 15) and the series of valid The physical address of the next block (next valid storage block) written in each of the new storage blocks (however, the last storage block (storage block with physical address “11”) in the series of valid storage blocks includes Instead of the physical address of the block, a terminal symbol indicating the terminal (written as “EOC” in FIG. 15) is written.

なお、本第3実施形態に係る記録メディア68の各記憶ブロックの冗長部領域には、論理アドレスを記憶するための論理アドレス記憶領域に加え、連鎖情報を記憶するための連鎖情報記憶領域が設けられており、上記の連鎖情報は各記憶ブロックの連鎖情報記憶領域に各々書き込まれる。また、記録メディア68全体が未使用の状態では、特定ブロックの連鎖情報記憶領域にのみ、上記の連鎖情報の初期値として終端記号が書き込まれている。   Note that a redundant information area of each storage block of the recording medium 68 according to the third embodiment is provided with a chain information storage area for storing chain information in addition to a logical address storage area for storing a logical address. The chain information is written in the chain information storage area of each storage block. When the entire recording medium 68 is unused, the terminal symbol is written as the initial value of the chain information only in the chain information storage area of the specific block.

次に本第3実施形態に係る論理/物理変換テーブル作成処理について、図14のフローチャートを参照して説明する。なお、この論理/物理変換テーブル作成処理は請求項3,6に記載のテーブル作成手段に対応している。ステップ230では論理/物理変換テーブル記憶用の領域を初期化する。ステップ232では記録メディア68の特定ブロックの連鎖情報記憶領域に書き込まれている情報を読み出し、次のステップ234では、特定ブロックの連鎖情報記憶領域から読み出した情報(通常は先頭ブロックの物理アドレス)をアドレスカウンタに設定する。また、次のステップ236ではアドレスカウンタに設定した情報が終端記号か否か判定する。前述のように、特定ブロックの連鎖情報記憶領域には、一連の有効な記憶ブロックが存在していれば該一連の有効な記憶ブロックの先頭ブロックの物理アドレスが書き込まれ、有効な記憶ブロックが存在していなければ終端記号が書き込まれるので、判定が肯定された場合は記録メディア68全体が未使用状態と判断して処理を終了する。   Next, logical / physical conversion table creation processing according to the third embodiment will be described with reference to the flowchart of FIG. This logical / physical conversion table creation process corresponds to the table creation means described in claims 3 and 6. In step 230, the logical / physical conversion table storage area is initialized. In step 232, information written in the chain information storage area of the specific block of the recording medium 68 is read. In the next step 234, information read from the chain information storage area of the specific block (usually the physical address of the first block) is read. Set in the address counter. In the next step 236, it is determined whether or not the information set in the address counter is a terminal symbol. As described above, in the chain information storage area of a specific block, if there is a series of valid storage blocks, the physical address of the first block of the series of valid storage blocks is written, and there is a valid storage block. If not, a terminal symbol is written. If the determination is affirmative, the entire recording medium 68 is determined to be unused, and the process ends.

また、ステップ236の判定が否定された場合はステップ236へ移行し、物理アドレスがアドレスカウンタの現在のカウント値(連鎖情報記憶領域から読み出した物理アドレス)に一致している記憶ブロックにアクセスし、当該記憶ブロックの冗長部領域の論理アドレス記憶領域及び連鎖情報記憶領域に記憶されている情報を各々読み出す。そしてステップ240では、ステップ238で論理アドレス記憶領域から読み出した情報が有効な論理アドレスか否か判定する。この判定が否定された場合はステップ244へ移行するが、ステップ240の判定は通常肯定され、次のステップ242において、論理/物理変換テーブルのうち、論理アドレス記憶領域から読み出した論理アドレスに対応するエリアにアドレスカウンタのカウント値、すなわちアクセスした記憶ブロックの物理アドレスを書き込む。   If the determination in step 236 is negative, the process proceeds to step 236, and the storage block whose physical address matches the current count value of the address counter (the physical address read from the chain information storage area) is accessed. Information stored in the logical address storage area and the chain information storage area of the redundant part area of the storage block is read out. In step 240, it is determined whether the information read from the logical address storage area in step 238 is a valid logical address. If this determination is negative, the process proceeds to step 244, but the determination in step 240 is normally affirmed, and in the next step 242, the logical address read from the logical address storage area in the logical / physical conversion table is handled. The count value of the address counter, that is, the physical address of the accessed storage block is written in the area.

そしてステップ244では、連鎖情報記憶領域から読み出した情報をアドレスカウンタに設定してステップ236に戻る。これにより、ステップ236の判定が肯定される迄、すなわち連鎖情報記憶領域に終端記号が書き込まれている記憶ブロックが出現する迄、ステップ236〜ステップ244が繰り返される。そして、ステップ236の判定が肯定されると処理を終了する。   In step 244, the information read from the chain information storage area is set in the address counter, and the process returns to step 236. Thus, steps 236 to 244 are repeated until the determination in step 236 is affirmed, that is, until a storage block in which a terminal symbol is written in the chain information storage area appears. Then, when the determination at step 236 is affirmed, the process is terminated.

上述した論理/物理変換テーブル作成処理では、連鎖情報に基づき、記憶ブロックのアクセス(論理アドレスの読み出し)を有効な記憶ブロックに対してのみ行うので、アクセスする記憶ブロックの数が最小となり、論理/物理変換テーブルの作成に要する時間が大幅に短縮される。例えば図15に示すように、物理アドレス「2」「3」「6」「8」「11」の記憶ブロックが有効な記憶ブロックである場合、特定ブロックの連鎖情報記憶領域から先頭ブロックの物理アドレス「2」を取得した後は、記憶ブロックのアクセス(論理アドレスの読み出し)は有効な記憶ブロックに対してのみ順次行われ、物理アドレス「11」の記憶ブロックへのアクセスが終了すると、ステップ236の判定が肯定されて処理が終了される。従って、論理アドレスの読み出しを行う記憶ブロックの数が最小となることで、論理/物理変換テーブルの作成に要する時間が最短となり、撮影記録装置10の起動時間も大幅に短縮される。   In the logical / physical conversion table creation process described above, access to a storage block (reading of a logical address) is performed only on an effective storage block based on chain information, so the number of storage blocks to be accessed is minimized, and logical / The time required to create the physical conversion table is greatly reduced. For example, as shown in FIG. 15, when the storage blocks with physical addresses “2”, “3”, “6”, “8”, and “11” are valid storage blocks, the physical address of the first block from the chain information storage area of the specific block After “2” is acquired, access to the storage block (reading of the logical address) is sequentially performed only on the valid storage block, and when access to the storage block with the physical address “11” is completed, step 236 The determination is affirmed and the process ends. Therefore, by minimizing the number of storage blocks from which the logical address is read, the time required for creating the logical / physical conversion table is minimized, and the start-up time of the imaging / recording apparatus 10 is greatly shortened.

ところで、本第3実施形態では、記録メディア68に書き込まれている連鎖情報の更新を、撮影記録装置10の電源切断が指示された際に、図16に示す電源切断時処理を実行することで行っている(なお、この電源切断時処理は記録メディア68の取り出しが指示された場合にも実行される)。以下、この電源切断時処理について説明する。なお、この電源切断時処理は請求項3,6に記載の書込手段に対応している。   By the way, in the third embodiment, the update of the chain information written in the recording medium 68 is performed by executing the power-off process shown in FIG. 16 when the power-off of the imaging / recording apparatus 10 is instructed. (Note that this power-off process is also executed when an instruction to remove the recording medium 68 is given). Hereinafter, this power-off process will be described. This power-off process corresponds to the writing means described in claims 3 and 6.

ステップ250ではアドレスカウンタに1を代入する。次のステップ252では、アドレスカウンタのカウント値が論理/物理変換テーブルに物理アドレスとして登録されているか否か判定する。判定が否定された場合、物理アドレスがアドレスカウンタのカウント値に一致する記憶ブロックは有効な記憶ブロックではないと判断できるので、ステップ254へ移行し、アドレスカウンタのカウント値に1を加算する。ステップ256ではアドレスカウンタのカウント値が記録メディア68に設けられている記憶ブロックの総数を超えたか否か判定する。判定が否定された場合はステップ252に戻り、ステップ252又はステップ256の判定が肯定される迄ステップ252〜ステップ256を繰り返す。ステップ256の判定が肯定された場合は、記録メディア68には有効な記憶ブロックが存在していないと判断できるので、ステップ258へ移行し、特定ブロックの連鎖情報記憶領域に終端記号を書き込んで処理を終了する。   In step 250, 1 is assigned to the address counter. In the next step 252, it is determined whether or not the count value of the address counter is registered as a physical address in the logical / physical conversion table. If the determination is negative, it can be determined that the storage block whose physical address matches the count value of the address counter is not a valid storage block, so the process proceeds to step 254, and 1 is added to the count value of the address counter. In step 256, it is determined whether or not the count value of the address counter exceeds the total number of storage blocks provided in the recording medium 68. If the determination is negative, the process returns to step 252 and steps 252 to 256 are repeated until the determination in step 252 or step 256 is affirmed. If the determination in step 256 is affirmative, it can be determined that there is no valid storage block on the recording medium 68, so the process proceeds to step 258 to write a terminal symbol in the chain information storage area of the specific block and process it. Exit.

一方、ステップ252の判定が肯定された場合はステップ260へ移行し、アドレスカウンタのカウント値を先頭ブロックの物理アドレスとして特定ブロックの連鎖情報記憶領域に書き込むと共に、メモリに一時記憶させる。次のステップ262ではアドレスカウンタのカウント値に1を加算し、ステップ264ではアドレスカウンタのカウント値が記録メディア68に設けられている記憶ブロックの総数を超えたか否か判定する。判定が否定された場合はステップ266へ移行し、アドレスカウンタの現在のカウント値が論理/物理変換テーブルに物理アドレスとして登録されているか否か、すなわち物理アドレスがアドレスカウンタの現在のカウント値に一致する記憶ブロックは有効な記憶ブロックか否か判定する。判定が否定された場合はステップ262に戻り、ステップ262以降を繰り返す。   On the other hand, if the determination in step 252 is affirmed, the process proceeds to step 260, where the count value of the address counter is written in the chain information storage area of the specific block as the physical address of the head block and is temporarily stored in the memory. In the next step 262, 1 is added to the count value of the address counter, and in step 264, it is determined whether or not the count value of the address counter exceeds the total number of storage blocks provided in the recording medium 68. If the determination is negative, the process proceeds to step 266, and whether or not the current count value of the address counter is registered as a physical address in the logical / physical conversion table, that is, the physical address matches the current count value of the address counter. It is determined whether the storage block to be used is a valid storage block. If the determination is negative, the process returns to step 262, and step 262 and subsequent steps are repeated.

また、ステップ266の判定が肯定された場合はステップ268へ移行し、メモリに一時記憶している物理アドレスに対応する記憶ブロックの連鎖情報記憶領域に、アドレスカウンタのカウント値を次ブロックの物理アドレスとして書き込む。次のステップ270では、アドレスカウンタのカウント値を物理アドレスとしてメモリに一時記憶させ、ステップ262に戻る。これにより、ステップ264の判定が肯定される迄ステップ262〜ステップ270が繰り返され、有効な記憶ブロックを発見する毎(ステップ266の判定が肯定される毎)に、一時記憶していた物理アドレスの記憶ブロック(前回発見した有効な記憶ブロック)の連鎖情報記憶領域に、今回発見した有効な記憶ブロックの物理アドレスを次ブロックの物理アドレスとして書き込むと共に、今回発見した有効な記憶ブロックの物理アドレスを一時記憶する処理が繰り返されることになる。   If the determination in step 266 is affirmed, the process proceeds to step 268, and the count value of the address counter is set to the physical address of the next block in the chain information storage area of the storage block corresponding to the physical address temporarily stored in the memory. Write as. In the next step 270, the count value of the address counter is temporarily stored in the memory as a physical address, and the process returns to step 262. Thus, steps 262 to 270 are repeated until the determination in step 264 is affirmed, and every time a valid storage block is found (when the determination in step 266 is affirmed), the temporarily stored physical address is changed. The physical address of the valid storage block found this time is written as the physical address of the next block in the chain information storage area of the storage block (valid storage block found last time), and the physical address of the valid storage block found this time is temporarily stored The storing process is repeated.

ステップ264の判定が肯定されるとステップ272へ移行し、メモリに一時記憶している物理アドレスに対応する記憶ブロックの連鎖情報記憶領域に終端記号を書き込んで処理を終了する。上記の電源切断時処理により、記録メディア68に書き込まれている連鎖情報が、記録メディア68に現在存在している一連の有効な記憶ブロックを構成する個々の記憶ブロックの繋がりを表す情報へ更新されることになる。   If the determination in step 264 is affirmed, the process proceeds to step 272, where the terminal symbol is written in the chain information storage area of the storage block corresponding to the physical address temporarily stored in the memory, and the process is terminated. As a result of the above power-off process, the chain information written in the recording medium 68 is updated to information representing the connection of individual storage blocks constituting a series of valid storage blocks currently existing in the recording medium 68. Will be.

なお、本第3実施形態において、記録メディア68に書き込まれている連鎖情報の更新を、第1実施形態及び第2実施形態と同様に有効な記憶ブロックの数が増減する毎に(有効な記憶ブロックの確保又は解放が行われる毎に)行うことも可能である。以下、有効な記憶ブロックの確保と同時に連鎖情報の更新を行う領域確保処理(図17)、有効な記憶ブロックの解放と同時に連鎖情報の更新を行う領域解放処理(図18)について順に説明する。なお、以下では特定ブロックの連鎖情報記憶領域に、先頭ブロックの物理アドレスに加えて一連の有効な記憶ブロックの末尾に相当する記憶ブロック(末尾ブロック)の物理アドレスが書き込まれて、一連の有効な記憶ブロックの連鎖情報記憶領域にも、次ブロックの物理アドレスに加えて前ブロック(1つ前の有効な記憶ブロック)の物理アドレスが書き込まれる態様を例に領域確保処理及び領域解放処理を説明する(なお、記録メディア68全体が未使用の状態では、特定ブロックの連鎖情報記憶領域にのみ先頭ブロック及び末尾ブロックの物理アドレスとして終端記号が書き込まれている。)。また、以下で説明する領域確保処理及び領域解放処理は請求項3,6に記載の書込手段に対応している。   In the third embodiment, the update of the chain information written in the recording medium 68 is performed every time the number of effective storage blocks increases or decreases (effective storage) as in the first and second embodiments. It can also be done every time a block is reserved or released. Hereinafter, an area securing process (FIG. 17) for updating chained information simultaneously with securing a valid storage block and an area releasing process (FIG. 18) for updating chained information simultaneously with releasing a valid storage block will be described in order. In the following, in addition to the physical address of the first block, the physical address of the storage block (end block) corresponding to the end of the series of valid storage blocks is written in the chain information storage area of the specific block. The area allocation process and the area release process will be described by taking an example in which the physical address of the previous block (the previous effective storage block) is written in the chain information storage area of the storage block in addition to the physical address of the next block. (Note that when the entire recording medium 68 is unused, terminal symbols are written as physical addresses of the first block and the last block only in the chain information storage area of the specific block). The area securing process and the area releasing process described below correspond to the writing means according to claims 3 and 6.

図17に示す領域確保処理では、まずステップ280では、記録メディア68に未使用の記憶ブロックが存在しているか否か判定する。ステップ280の判定が否定された場合は、記憶ブロックの確保に失敗したことを通知して処理を終了する。また、ステップ280の判定が肯定された場合はステップ282へ移行し、ステップ280で存在を認識した確保対象の記憶ブロックに付与する論理アドレスを決定し、決定した論理アドレスを確保対象の記憶ブロックの論理アドレス記憶領域に書き込むと共に、論理/物理変換テーブルのうち決定した論理アドレスに対応するエリアに、確保対象の記憶ブロックの物理アドレスを書き込む。ステップ284では記録メディア68の特定ブロックの連鎖情報記憶領域から先頭ブロックの物理アドレス及び末尾ブロックの物理アドレスを読み出し、読み出した末尾ブロックの物理アドレス(これに代えて先頭ブロックの物理アドレスを用いてもよい)が有効な物理アドレスか否か判定する。   In the area securing process shown in FIG. 17, first, in step 280, it is determined whether or not an unused storage block exists in the recording medium 68. If the determination in step 280 is negative, the fact that storage block allocation has failed is notified and the process ends. If the determination in step 280 is affirmed, the process proceeds to step 282, where a logical address to be assigned to the storage block to be secured that has been recognized in step 280 is determined, and the determined logical address is stored in the storage block to be secured. In addition to writing to the logical address storage area, the physical address of the storage block to be secured is written to the area corresponding to the determined logical address in the logical / physical conversion table. In step 284, the physical address of the first block and the physical address of the last block are read from the chain information storage area of the specific block of the recording medium 68, and the physical address of the last block read (the physical address of the first block can be used instead. (Good) is a valid physical address.

上記判定が否定された場合(読み出した末尾ブロックの物理アドレスが終端記号であった場合)は、確保対象の記憶ブロック以外に有効な記憶ブロックが存在していないと判断できるので(図18(A)も参照)、ステップ286へ移行し、先頭ブロックの物理アドレスとして、確保対象の記憶ブロックの物理アドレスを特定ブロックの連鎖情報記憶領域に書き込み、次のステップ288では、末尾ブロックの物理アドレスとして、確保対象の記憶ブロックの物理アドレスを特定ブロックの連鎖情報記憶領域に書き込む。そしてステップ90では、確保対象の記憶ブロックの連鎖情報記憶領域に、前ブロックの物理アドレスとして特定ブロックの物理アドレス(本実施形態では「0」)を、次ブロックの物理アドレスとして終端記号を各々書き込み、処理を終了する(図18(B)も参照)。   If the above determination is negative (when the physical address of the read end block is a terminal symbol), it can be determined that there is no valid storage block other than the storage block to be secured (FIG. 18A )), The process proceeds to step 286, where the physical address of the storage block to be secured is written in the chain information storage area of the specific block as the physical address of the first block. In the next step 288, the physical address of the last block is The physical address of the storage block to be secured is written into the chain information storage area of the specific block. In step 90, the physical address of the specific block (“0” in this embodiment) is written as the physical address of the previous block and the terminal symbol is written as the physical address of the next block in the chain information storage area of the storage block to be secured. Then, the process is terminated (see also FIG. 18B).

また、ステップ284の判定が否定された場合は確保対象の記憶ブロック以外にも有効な記憶ブロックが存在しているので(例えば図18(B)に示す状態)、ステップ292へ移行し、特定ブロックの連鎖情報記憶領域から読み出した末尾ブロックの物理アドレスに対応する記憶ブロック(現在の末尾ブロック)の連鎖情報記憶領域に、次ブロックの物理アドレスとして、領域確保した記憶ブロックの物理アドレスを書き込む。次のステップ294では、確保対象の記憶ブロックの連鎖情報記憶領域に、次ブロックの物理アドレスとして終端記号を書き込む。そしてステップ296では、特定ブロックの連鎖情報記憶領域に、確保対象の記憶ブロックの物理アドレスを末尾ブロックの物理アドレスとして書き込み、処理を終了する(図18(C)も参照)。上記処理により、有効な記憶ブロックが新たに確保されると共に、有効な記憶ブロックの数の増加に伴い、記録メディア68に書き込まれている連鎖情報が更新されることになる。   If the determination in step 284 is negative, there is a valid storage block other than the storage block to be secured (for example, the state shown in FIG. 18B). In the chain information storage area of the storage block (current end block) corresponding to the physical address of the last block read from the last chain information storage area, the physical address of the storage block that has secured the area is written as the physical address of the next block. In the next step 294, a terminal symbol is written as a physical address of the next block in the chain information storage area of the storage block to be secured. In step 296, the physical address of the storage block to be secured is written as the physical address of the last block in the chain information storage area of the specific block, and the process ends (see also FIG. 18C). By the above processing, a new effective storage block is secured, and the chain information written in the recording medium 68 is updated as the number of effective storage blocks increases.

続いて、図19に示す領域解放処理について説明する。ステップ300では、記録メディア68の特定ブロックの連鎖情報記憶領域から先頭ブロックの物理アドレス及び末尾ブロックの物理アドレスを読み出し、読み出した末尾ブロックの物理アドレスを解放対象の記憶ブロックの物理アドレスと比較することで、解放対象のブロックが末尾ブロックか否か判定する。判定が否定された場合はステップ302へ移行し、特定ブロックの連鎖情報記憶領域から読み出した先頭ブロックの物理アドレスを解放対象の記憶ブロックの物理アドレスと比較することで、解放対象のブロックが先頭ブロックか否か判定する。   Next, the area release process shown in FIG. 19 will be described. In step 300, the physical address of the first block and the physical address of the last block are read from the chain information storage area of the specific block of the recording medium 68, and the read physical address of the last block is compared with the physical address of the storage block to be released. Then, it is determined whether the block to be released is the last block. If the determination is negative, the process proceeds to step 302, and the physical address of the head block read from the chain information storage area of the specific block is compared with the physical address of the memory block to be released, so that the block to be released becomes the head block. It is determined whether or not.

判定が肯定された場合はステップ304へ移行し、解放対象の記憶ブロックの連鎖情報記憶領域に書き込まれている次ブロックの物理アドレスを、先頭ブロックの物理アドレスとして特定ブロックの連鎖情報記憶領域に書き込む。また、ステップ308では、解放対象の記憶ブロックの連鎖情報記憶領域に書き込まれている次ブロックの物理アドレスに対応する記憶ブロックの連鎖情報記憶領域に、前ブロックの物理アドレスとして、解放対象の記憶ブロックの連鎖情報記憶領域に書き込まれている前ブロックの物理アドレスを書き込む(図20(A)及び(B)も参照)。次のステップ318では、解放対象の記憶ブロックのデータ領域に書き込まれているデータを消去すると共に、冗長部領域の論理アドレス記憶領域に未使用を表す記号を書き込む。そしてステップ320では、解放対象の記憶ブロックの物理アドレスを論理/物理変換テーブルから削除し、処理を終了する。   If the determination is affirmative, the process proceeds to step 304, and the physical address of the next block written in the chain information storage area of the storage block to be released is written in the chain information storage area of the specific block as the physical address of the first block. . In step 308, the storage block to be released is used as the physical address of the previous block in the chain information storage area of the storage block corresponding to the physical address of the next block written in the chain information storage area of the storage block to be released. The physical address of the previous block written in the chain information storage area is written (see also FIGS. 20A and 20B). In the next step 318, the data written in the data area of the storage block to be released is erased and a symbol indicating unused is written in the logical address storage area of the redundant part area. In step 320, the physical address of the storage block to be released is deleted from the logical / physical conversion table, and the process ends.

また、ステップ302の判定が否定された場合、すなわち解放対象の記憶ブロックが先頭ブロック及び末尾ブロック以外の有効な記憶ブロックであった場合には、ステップ306へ移行し、解放対象の記憶ブロックの連鎖情報記憶領域に書き込まれている前ブロックの物理アドレスに対応する記憶ブロックの連鎖情報記憶領域に、次ブロックの物理アドレスとして、解放対象の記憶ブロックの連鎖情報記憶領域に書き込まれている次ブロックの物理アドレスを書き込む。続いて、上述したステップ308において、解放対象の記憶ブロックの連鎖情報記憶領域に書き込まれている次ブロックの物理アドレスに対応する記憶ブロックの連鎖情報記憶領域に、前ブロックの物理アドレスとして、解放対象の記憶ブロックの連鎖情報記憶領域に書き込まれている前ブロックの物理アドレスを書き込む(図20(A)及び(D)も参照)。そして、ステップ318で解放対象の記憶ブロックに対してデータ消去、未使用記号の書き込みが行われ、ステップ320で解放対象の記憶ブロックの物理アドレスが論理/物理変換テーブルから削除される。   If the determination in step 302 is negative, that is, if the storage block to be released is a valid storage block other than the first block and the last block, the process proceeds to step 306 and the storage block of the release target is chained. In the chain information storage area of the storage block corresponding to the physical address of the previous block written in the information storage area, as the physical address of the next block, the next block written in the chain information storage area of the storage block to be released Write the physical address. Subsequently, in step 308 described above, the release target as the physical address of the previous block is stored in the chain information storage area of the storage block corresponding to the physical address of the next block written in the chain information storage area of the storage block to be released. The physical address of the previous block written in the chain information storage area of the storage block is written (see also FIGS. 20A and 20D). In step 318, data is erased and unused symbols are written into the release target storage block. In step 320, the physical address of the release target storage block is deleted from the logical / physical conversion table.

また、ステップ300の判定が肯定された場合はステップ310へ移行し、特定ブロックの連鎖情報記憶領域から読み出した先頭ブロック及び末尾ブロックの物理アドレスが同一か否か判定する。この判定が肯定された場合、解放対象の記憶ブロックを有効な記憶ブロックから除外することで有効な記憶ブロックの数がゼロになると判断できるので、ステップ316へ移行し、特定ブロックの連鎖情報記憶領域に先頭ブロックの物理アドレス及び末尾ブロックの物理アドレスとして終端記号を各々書き込む。そして、前述したステップ318、320を経て処理を終了する。   If the determination in step 300 is affirmative, the process proceeds to step 310, and it is determined whether the physical addresses of the first block and the last block read from the chain information storage area of the specific block are the same. If this determination is affirmative, it is possible to determine that the number of valid storage blocks is zero by excluding the storage block to be released from the valid storage blocks, so the process proceeds to step 316 and the chain information storage area of the specific block Are written as the physical address of the first block and the physical address of the last block, respectively. Then, the process ends through the above-described steps 318 and 320.

一方、ステップ310の判定が否定された場合は、解放対象の記憶ブロックが末尾ブロックであり、かつ解放対象の記憶ブロックを有効な記憶ブロックから除外しても有効な記憶ブロックの数は1以上であると判断できるので、ステップ312へ移行し、解放対象の記憶ブロックの連鎖情報記憶領域に書き込まれている前ブロックの物理アドレスに対応する記憶ブロックの連鎖情報記憶領域に、次ブロックの物理アドレスとして終端記号を書き込む。またステップ314では、解放対象の記憶ブロックの連鎖情報記憶領域に書き込まれている前ブロックの物理アドレスを、末尾ブロックの物理アドレスとして特定ブロックの連鎖情報記憶領域に書き込む(図20(A)及び(C)も参照)。そして、前述したステップ318、320を経て処理を終了する。上記処理により、解放対象の記憶ブロックが有効な記憶ブロックから未使用の記憶ブロックになると共に、有効な記憶ブロックの数の減少に伴い、記録メディア68に書き込まれている連鎖情報が更新されることになる。   On the other hand, if the determination in step 310 is negative, the release target storage block is the last block, and the number of valid storage blocks is one or more even if the release target storage block is excluded from the valid storage blocks. Since it can be determined that there is, the process proceeds to step 312 and the physical address of the next block is stored in the chain information storage area of the storage block corresponding to the physical address of the previous block written in the chain information storage area of the storage block to be released. Write a terminal symbol. In step 314, the physical address of the previous block written in the chain information storage area of the storage block to be released is written in the chain information storage area of the specific block as the physical address of the end block (FIGS. 20A and 20B). See also C)). Then, the process ends through the above-described steps 318 and 320. As a result of the above processing, the storage block to be released changes from a valid storage block to an unused storage block, and the chain information written to the recording medium 68 is updated as the number of valid storage blocks decreases. become.

また、上記ではCPU42が所定のプログラムを実行することで本発明に係る処理(論理/物理変換テーブル作成処理、領域確保処理、領域解放処理、電源切断時処理)が実現される態様を説明したが、これに限定されるものではなく、上述した各処理をハードウェアによって実行することも可能である。また、上記では撮影記録装置10を本発明に係る記憶デバイス制御装置として機能させる例を説明したが、これに限定されるものではなく、本発明に係る記憶デバイスと接続される各種の機器(例えばPCや携帯端末、プリンタ等)に上記のプログラム又は上記のハードウェアを組み込むことで、各種の機器を本発明に係る記憶デバイス制御装置として機能させることも可能である。また、上記のハードウェアは、本発明に係るフラッシュメモリ等の記憶デバイスと共に記録メディアに内蔵することも可能である。   In the above description, a mode has been described in which the CPU 42 executes a predetermined program to implement the processing (logical / physical conversion table creation processing, area allocation processing, area release processing, power-off processing) according to the present invention. However, the present invention is not limited to this, and each process described above can be executed by hardware. Moreover, although the example which makes the imaging | photography recording device 10 function as a storage device control apparatus which concerns on this invention was demonstrated above, it is not limited to this, Various apparatuses (for example, connected with the storage device which concerns on this invention) By incorporating the above program or the above hardware into a PC, a portable terminal, a printer, or the like, it is possible to cause various devices to function as the storage device control apparatus according to the present invention. Further, the above hardware can be incorporated in a recording medium together with a storage device such as a flash memory according to the present invention.

本実施形態に係る撮影記録装置の外観を示す斜視図である。It is a perspective view which shows the external appearance of the imaging | photography recording device which concerns on this embodiment. 撮影記録装置の概略ブロック図である。It is a schematic block diagram of an imaging | photography recording device. 記録メディア(フラッシュメモリ)のフォーマットの一例を示す概念図である。It is a conceptual diagram which shows an example of a format of a recording medium (flash memory). 論理/物理変換テーブルの作用を説明するための概念図である。It is a conceptual diagram for demonstrating the effect | action of a logical / physical conversion table. 稼働時処理の内容を示すフローチャートである。It is a flowchart which shows the content of the process at the time of operation. 第1実施形態に係る論理/物理変換テーブル作成処理の内容を示すフローチャートである。It is a flowchart which shows the content of the logical / physical conversion table creation process which concerns on 1st Embodiment. 第1実施形態に係る論理/物理変換テーブル作成処理の作用を説明する概念図である。It is a conceptual diagram explaining the effect | action of the logical / physical conversion table creation process which concerns on 1st Embodiment. 第1実施形態に係る領域確保処理の内容を示すフローチャートである。It is a flowchart which shows the content of the area ensuring process which concerns on 1st Embodiment. 第1実施形態に係る領域解放処理の内容を示すフローチャートである。It is a flowchart which shows the content of the area | region release process which concerns on 1st Embodiment. 第2実施形態に係る論理/物理変換テーブル作成処理の内容を示すフローチャートである。It is a flowchart which shows the content of the logical / physical conversion table creation process concerning 2nd Embodiment. 第2実施形態に係る論理/物理変換テーブル作成処理の作用を説明する概念図である。It is a conceptual diagram explaining the effect | action of the logical / physical conversion table creation process concerning 2nd Embodiment. 第2実施形態に係る領域確保処理の内容を示すフローチャートである。It is a flowchart which shows the content of the area ensuring process which concerns on 2nd Embodiment. 第2実施形態に係る領域解放処理の内容を示すフローチャートである。It is a flowchart which shows the content of the area | region release process which concerns on 2nd Embodiment. 第3実施形態に係る論理/物理変換テーブル作成処理の内容を示すフローチャートである。It is a flowchart which shows the content of the logical / physical conversion table creation process concerning 3rd Embodiment. 第3実施形態に係る論理/物理変換テーブル作成処理の作用を説明する概念図である。It is a conceptual diagram explaining the effect | action of the logical / physical conversion table creation process concerning 3rd Embodiment. 第3実施形態に係る電源切断時処理の内容を示すフローチャートである。It is a flowchart which shows the content of the process at the time of power-off which concerns on 3rd Embodiment. 第3実施形態において、領域確保時に連鎖情報を書替える場合の領域確保処理の内容を示すフローチャートである。In 3rd Embodiment, it is a flowchart which shows the content of the area reservation process in the case of rewriting chain information at the time of area reservation. 図17の領域確保処理の作用を説明する概念図である。It is a conceptual diagram explaining the effect | action of the area | region securing process of FIG. 第3実施形態において、領域解放時に連鎖情報を書替える場合の領域解放処理の内容を示すフローチャートである。In a 3rd embodiment, it is a flow chart which shows the contents of area release processing in the case of rewriting chain information at the time of area release. 図19の領域解放処理の作用を説明する概念図である。It is a conceptual diagram explaining the effect | action of the area | region release process of FIG.

符号の説明Explanation of symbols

10 撮影記録装置
24 スロット
26 電源スイッチ
42 CPU
66 フラッシュROM
68 記録メディア
10 Shooting and Recording Device 24 Slot 26 Power Switch 42 CPU
66 Flash ROM
68 Recording media

Claims (6)

各々物理アドレスが付与された記憶ブロックを複数備えると共に、有効なデータを記憶している記憶ブロック内の特定領域に該記憶ブロックに付与された論理アドレスが書き込まれる書替可能な不揮発性の記憶デバイスと接続される記憶デバイス制御装置であって、
稼働開始毎に、前記記憶デバイスに書き込まれている論理アドレスを全て読み出し、論理アドレスと物理アドレスとを対応付ける論理/物理変換テーブルを作成するテーブル作成手段と、
稼働終了時又は前記記憶デバイスのうち論理アドレスが付与されている記憶ブロックの個数が変化した時に、前記論理アドレスが付与されている記憶ブロックの個数を表す個数情報を前記記憶デバイスに書き込む書込手段と、
を備え、
前記テーブル作成手段は、前記記憶デバイスからの論理アドレスの読み出しに先立ち、前記書込手段によって前記記憶デバイスに書き込まれた個数情報を読み出し、前記記憶デバイスから読み出した論理アドレスの個数が前記個数情報が表す個数に達した時点で前記記憶デバイスからの論理アドレスの読み出しを終了する
ことを特徴とする記憶デバイス制御装置。
A rewritable nonvolatile storage device having a plurality of storage blocks each assigned with a physical address and in which a logical address assigned to the storage block is written in a specific area in the storage block storing valid data A storage device controller connected to
Table creation means for reading out all the logical addresses written in the storage device every time the operation is started, and creating a logical / physical conversion table that associates the logical address with the physical address;
Write means for writing, into the storage device, number information indicating the number of storage blocks to which the logical address is assigned when the operation ends or when the number of storage blocks to which the logical address is assigned in the storage device changes. When,
With
The table creation means reads the number information written in the storage device by the writing means prior to reading the logical address from the storage device, and the number information of the logical address read from the storage device is the number information. The storage device control apparatus, wherein reading of the logical address from the storage device is terminated when the number to be expressed is reached.
各々物理アドレスが付与された記憶ブロックを複数備えると共に、有効なデータを記憶している記憶ブロック内の特定領域に該記憶ブロックに付与された論理アドレスが書き込まれる書替可能な不揮発性の記憶デバイスと接続される記憶デバイス制御装置であって、
稼働開始毎に、前記複数の記憶ブロックに一定順序でアクセスして前記記憶デバイスに書き込まれている論理アドレスを全て読み出し、論理アドレスと物理アドレスとを対応付ける論理/物理変換テーブルを作成するテーブル作成手段と、
稼働終了時又は前記記憶デバイスのうち論理アドレスが付与されている記憶ブロックの個数が変化した時に、前記一定順序に対応する記憶ブロックの配列のうち、前記論理アドレスが付与されている記憶ブロックが存在している範囲内の先頭位置を表す先頭位置情報及び末尾位置を表す末尾位置情報の少なくとも一方を含む範囲情報を前記記憶デバイスに書き込む書込手段と、
を備え、
前記テーブル作成手段は、前記記憶デバイスからの論理アドレスの読み出しに先立ち、前記書込手段によって前記記憶デバイスに書き込まれた範囲情報を読み出し、読み出した範囲情報に前記先頭位置情報が含まれている場合には、前記記憶デバイスからの論理アドレスの読み出しを前記先頭位置情報が表す先頭位置から開始し、読み出した範囲情報に前記末尾位置情報が含まれている場合には、前記記憶デバイスからの論理アドレスの読み出しが前記末尾位置情報が表す末尾位置に達した時点で前記記憶デバイスからの論理アドレスの読み出しを終了する
ことを特徴とする記憶デバイス制御装置。
A rewritable nonvolatile storage device having a plurality of storage blocks each assigned with a physical address and in which a logical address assigned to the storage block is written in a specific area in the storage block storing valid data A storage device controller connected to
Table creation means for creating a logical / physical conversion table that accesses the plurality of storage blocks in a predetermined order, reads all logical addresses written in the storage device, and associates the logical addresses with the physical addresses each time the operation is started When,
When the operation ends or when the number of storage blocks to which a logical address is assigned in the storage device changes, there is a storage block to which the logical address is assigned in the array of storage blocks corresponding to the fixed order. Writing means for writing to the storage device range information including at least one of head position information representing the head position in the range and tail position information representing the tail position;
With
The table creation means reads the range information written to the storage device by the writing means prior to reading the logical address from the storage device, and the read position information includes the head position information Starts reading the logical address from the storage device from the start position represented by the start position information, and if the read range information includes the end position information, the logical address from the storage device The storage device control apparatus is characterized in that the reading of the logical address from the storage device is terminated when the read of the data reaches the end position represented by the end position information.
各々物理アドレスが付与された記憶ブロックを複数備えると共に、有効なデータを記憶している記憶ブロック内の第1特定領域に該記憶ブロックに付与された論理アドレスが書き込まれる書替可能な不揮発性の記憶デバイスと接続される記憶デバイス制御装置であって、
稼働開始毎に、前記記憶デバイスに書き込まれている論理アドレスを全て読み出し、論理アドレスと物理アドレスとを対応付ける論理/物理変換テーブルを作成するテーブル作成手段と、
稼働終了時又は前記記憶デバイスのうち論理アドレスが付与されている記憶ブロックの個数が変化した時に、前記論理アドレスが付与されている一連の記憶ブロックのうちの先頭の記憶ブロックの位置を表す位置情報を前記記憶デバイスに書き込むと共に、前記一連の記憶ブロックを構成する各記憶ブロック内の第2特定領域に、前記一連の記憶ブロックにおける次の記憶ブロックの位置を表す位置情報を書き込む書込手段と、
を備え、
前記テーブル作成手段は、前記記憶デバイスからの論理アドレスの読み出しに先立ち、前記書込手段によって前記記憶デバイスに書き込まれた前記先頭の記憶ブロックの位置を表す位置情報を読み出した後に、読み出した位置情報が表す位置に存在している記憶ブロックから論理アドレス及び位置情報を読み出すことを繰り返すことで、前記一連の記憶ブロックを構成する各記憶ブロックから論理アドレスを順に読み出す
ことを特徴とする記憶デバイス制御装置。
A plurality of storage blocks each having a physical address assigned thereto, and a rewritable nonvolatile memory in which a logical address assigned to the storage block is written in a first specific area in the storage block storing valid data A storage device controller connected to a storage device,
Table creation means for reading out all the logical addresses written in the storage device every time the operation is started, and creating a logical / physical conversion table that associates the logical address with the physical address;
Position information indicating the position of the first storage block in a series of storage blocks to which the logical address is assigned when the operation ends or when the number of storage blocks to which the logical address is assigned in the storage device changes Writing means for writing position information indicating the position of the next storage block in the series of storage blocks to a second specific area in each of the storage blocks constituting the series of storage blocks;
With
The table creation means reads the position information indicating the position of the first storage block written to the storage device by the writing means prior to reading the logical address from the storage device, and then reads the position information. The logical address and the positional information are repeatedly read from the storage block existing at the position represented by the logical block, and the logical address is sequentially read from each of the storage blocks constituting the series of storage blocks. .
各々物理アドレスが付与された記憶ブロックを複数備えると共に、有効なデータを記憶している記憶ブロック内の特定領域に該記憶ブロックに付与された論理アドレスが書き込まれる書替可能な不揮発性の記憶デバイスと接続されるコンピュータを、
稼働開始毎に、前記記憶デバイスに書き込まれている論理アドレスを全て読み出し、論理アドレスと物理アドレスとを対応付ける論理/物理変換テーブルを作成するテーブル作成手段、
及び、稼働終了時又は前記記憶デバイスのうち論理アドレスが付与されている記憶ブロックの個数が変化した時に、前記論理アドレスが付与されている記憶ブロックの個数を表す個数情報を前記記憶デバイスに書き込む書込手段
として機能させると共に、
前記テーブル作成手段は、前記記憶デバイスからの論理アドレスの読み出しに先立ち、前記書込手段によって前記記憶デバイスに書き込まれた個数情報を読み出し、前記記憶デバイスから読み出した論理アドレスの個数が前記個数情報が表す個数に達した時点で前記記憶デバイスからの論理アドレスの読み出しを終了する
ことを特徴とする記憶デバイス制御プログラム。
A rewritable nonvolatile storage device having a plurality of storage blocks each assigned with a physical address and in which a logical address assigned to the storage block is written in a specific area in the storage block storing valid data The computer connected to the
Table creation means for reading out all the logical addresses written in the storage device every time the operation is started, and creating a logical / physical conversion table that associates the logical address with the physical address;
And writing the number information indicating the number of storage blocks to which the logical address is assigned to the storage device when the operation ends or when the number of storage blocks to which the logical address is assigned in the storage device changes. And function as a
The table creation means reads the number information written in the storage device by the writing means prior to reading the logical address from the storage device, and the number information of the logical address read from the storage device is the number information. A storage device control program, wherein reading of a logical address from the storage device is terminated when the number to be expressed is reached.
各々物理アドレスが付与された記憶ブロックを複数備えると共に、有効なデータを記憶している記憶ブロック内の特定領域に該記憶ブロックに付与された論理アドレスが書き込まれる書替可能な不揮発性の記憶デバイスと接続されるコンピュータを、
稼働開始毎に、前記複数の記憶ブロックに一定順序でアクセスして前記記憶デバイスに書き込まれている論理アドレスを全て読み出し、論理アドレスと物理アドレスとを対応付ける論理/物理変換テーブルを作成するテーブル作成手段、
及び、稼働終了時又は前記記憶デバイスのうち論理アドレスが付与されている記憶ブロックの個数が変化した時に、前記一定順序に対応する記憶ブロックの配列のうち、前記論理アドレスが付与されている記憶ブロックが存在している範囲内の先頭位置を表す先頭位置情報及び末尾位置を表す末尾位置情報の少なくとも一方を含む範囲情報を前記記憶デバイスに書き込む書込手段
として機能させると共に、
前記テーブル作成手段は、前記記憶デバイスからの論理アドレスの読み出しに先立ち、前記書込手段によって前記記憶デバイスに書き込まれた範囲情報を読み出し、読み出した範囲情報に前記先頭位置情報が含まれている場合には、前記記憶デバイスからの論理アドレスの読み出しを前記先頭位置情報が表す先頭位置から開始し、読み出した範囲情報に前記末尾位置情報が含まれている場合には、前記記憶デバイスからの論理アドレスの読み出しが前記末尾位置情報が表す末尾位置に達した時点で前記記憶デバイスからの論理アドレスの読み出しを終了する
ことを特徴とする記憶デバイス制御プログラム。
A rewritable nonvolatile storage device having a plurality of storage blocks each assigned with a physical address and in which a logical address assigned to the storage block is written in a specific area in the storage block storing valid data The computer connected to the
Table creation means for creating a logical / physical conversion table that accesses the plurality of storage blocks in a predetermined order, reads all logical addresses written in the storage device, and associates the logical addresses with the physical addresses each time the operation is started ,
The storage block to which the logical address is assigned in the array of storage blocks corresponding to the predetermined order when the operation ends or when the number of storage blocks to which the logical address is assigned in the storage device changes. And functioning as writing means for writing range information including at least one of head position information representing the head position and end position information representing the tail position in the range in which the storage device exists, to the storage device,
The table creation means reads the range information written to the storage device by the writing means prior to reading the logical address from the storage device, and the read position information includes the head position information Starts reading the logical address from the storage device from the start position represented by the start position information, and if the read range information includes the end position information, the logical address from the storage device The storage device control program terminates reading of the logical address from the storage device when the read of the data reaches the end position represented by the end position information.
各々物理アドレスが付与された記憶ブロックを複数備えると共に、有効なデータを記憶している記憶ブロック内の第1特定領域に該記憶ブロックに付与された論理アドレスが書き込まれる書替可能な不揮発性の記憶デバイスと接続されるコンピュータを、
稼働開始毎に、前記記憶デバイスに書き込まれている論理アドレスを全て読み出し、論理アドレスと物理アドレスとを対応付ける論理/物理変換テーブルを作成するテーブル作成手段、
及び、稼働終了時又は前記記憶デバイスのうち論理アドレスが付与されている記憶ブロックの個数が変化した時に、前記論理アドレスが付与されている一連の記憶ブロックのうちの先頭の記憶ブロックの位置を表す位置情報を前記記憶デバイスに書き込むと共に、前記一連の記憶ブロックを構成する各記憶ブロック内の第2特定領域に、前記一連の記憶ブロックにおける次の記憶ブロックの位置を表す位置情報を書き込む書込手段
として機能させると共に、
前記テーブル作成手段は、前記記憶デバイスからの論理アドレスの読み出しに先立ち、前記書込手段によって前記記憶デバイスに書き込まれた前記先頭の記憶ブロックの位置を表す位置情報を読み出した後に、読み出した位置情報が表す位置に存在している記憶ブロックから論理アドレス及び位置情報を読み出すことを繰り返すことで、前記一連の記憶ブロックを構成する各記憶ブロックから論理アドレスを順に読み出す
ことを特徴とする記憶デバイス制御プログラム。
A plurality of storage blocks each having a physical address assigned thereto, and a rewritable nonvolatile memory in which a logical address assigned to the storage block is written in a first specific area in the storage block storing valid data A computer connected to the storage device
Table creation means for reading out all the logical addresses written in the storage device every time the operation is started, and creating a logical / physical conversion table that associates the logical address with the physical address;
And when the operation ends or when the number of storage blocks to which a logical address is assigned in the storage device changes, it represents the position of the first storage block in a series of storage blocks to which the logical address is assigned Writing means for writing position information to the storage device and writing position information indicating the position of the next storage block in the series of storage blocks to a second specific area in each of the storage blocks constituting the series of storage blocks As well as
The table creation means reads the position information indicating the position of the first storage block written to the storage device by the writing means prior to reading the logical address from the storage device, and then reads the position information. A storage device control program for sequentially reading out a logical address from each storage block constituting the series of storage blocks by repeatedly reading out a logical address and position information from a storage block existing at a position represented by .
JP2004316204A 2004-10-29 2004-10-29 Storage device control apparatus and program Expired - Fee Related JP4521245B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004316204A JP4521245B2 (en) 2004-10-29 2004-10-29 Storage device control apparatus and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004316204A JP4521245B2 (en) 2004-10-29 2004-10-29 Storage device control apparatus and program

Publications (2)

Publication Number Publication Date
JP2006127242A JP2006127242A (en) 2006-05-18
JP4521245B2 true JP4521245B2 (en) 2010-08-11

Family

ID=36721927

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004316204A Expired - Fee Related JP4521245B2 (en) 2004-10-29 2004-10-29 Storage device control apparatus and program

Country Status (1)

Country Link
JP (1) JP4521245B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008299455A (en) * 2007-05-30 2008-12-11 Sony Corp Data storage device and data management method
JP4710056B2 (en) * 2007-10-04 2011-06-29 Necインフロンティア株式会社 Information processing apparatus, flash memory management method, and flash memory management program

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000090004A (en) * 1998-09-11 2000-03-31 Fujitsu Ltd Memory management table generating method and memory device
JP2000305839A (en) * 1999-04-20 2000-11-02 Tokyo Electron Ltd Storage device, storage system, memory managing method, and recording medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000090004A (en) * 1998-09-11 2000-03-31 Fujitsu Ltd Memory management table generating method and memory device
JP2000305839A (en) * 1999-04-20 2000-11-02 Tokyo Electron Ltd Storage device, storage system, memory managing method, and recording medium

Also Published As

Publication number Publication date
JP2006127242A (en) 2006-05-18

Similar Documents

Publication Publication Date Title
JP2000509941A (en) Method and system for managing removable memory in digital camera
JP4487954B2 (en) Data recording apparatus, data recording method, and program
US7542079B2 (en) Digital camera
JP3894435B2 (en) Digital camera
JP4521245B2 (en) Storage device control apparatus and program
US8077221B2 (en) Image capturing apparatus and control method therefor with determination whether storage medium is limited-rewriteable storage medium
JP4603836B2 (en) Imaging apparatus, control method therefor, program, and recording medium
JP4981478B2 (en) Imaging device
JP3816401B2 (en) Data recording device
KR101903500B1 (en) Black Box for Cars Capable of High-Speed Booting and Recording Method thereof
JPH07225687A (en) Electronic still camera
JP2009302902A (en) Camera
JP4836233B2 (en) Image processing apparatus, control method therefor, computer program, and storage medium
JP7214400B2 (en) Recording control device and its control method
JP4067418B2 (en) Digital camera
JP2008077402A (en) Image processor, its control method, computer program and storage medium
JP7263017B2 (en) Recording control device and its control method
JP2002262217A (en) Electronic camera device
JPH0546459A (en) Memory card device
JPH1042187A (en) Digital camera and display method for digital camera
JPH1050084A (en) Memory controller and memory access method
JP2791081B2 (en) Electronic still camera device
US8855465B2 (en) Moving image recording apparatus, moving image recording method, and program
JP2004349810A (en) Digital camera
JP3943364B2 (en) Imaging device and determination device

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20070220

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070301

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100430

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20100518

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100524

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

Free format text: PAYMENT UNTIL: 20130528

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees