JP2004326539A - Method for recording for recording medium - Google Patents

Method for recording for recording medium Download PDF

Info

Publication number
JP2004326539A
JP2004326539A JP2003121786A JP2003121786A JP2004326539A JP 2004326539 A JP2004326539 A JP 2004326539A JP 2003121786 A JP2003121786 A JP 2003121786A JP 2003121786 A JP2003121786 A JP 2003121786A JP 2004326539 A JP2004326539 A JP 2004326539A
Authority
JP
Japan
Prior art keywords
recording medium
area
recording
data
memory card
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2003121786A
Other languages
Japanese (ja)
Inventor
Toshiharu Ueno
寿治 上野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujifilm Holdings Corp
Original Assignee
Fuji Photo Film Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Photo Film Co Ltd filed Critical Fuji Photo Film Co Ltd
Priority to JP2003121786A priority Critical patent/JP2004326539A/en
Publication of JP2004326539A publication Critical patent/JP2004326539A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • Y02B60/1225

Abstract

<P>PROBLEM TO BE SOLVED: To uniformize the number of times of rewriting in a recording area of a recording medium and consequently increase the durable number of times of writing on the recording medium by permitting the shift of a physical position, on the recording medium, of a specific area such as a management area for data in which information is frequently changed, without formatting the recording medium. <P>SOLUTION: Every time the power supply of equipment using a memory card is turned on, a FAT area allocated to the memory card is copied to an unused area of the memory card, and the contents of the FAT area of copy source are erased, turning the FAT area into an unused area. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明は記録媒体の記録方法に係り、特にメモリカード等の記録媒体への書き込み耐久回数の増加を図る技術に関する。
【0002】
【従来の技術】
一般に、メモリカードのような記録媒体にデータを記録する場合、データと同時に論理空間上でのデータ領域の配置を管理する情報を記録する。データ領域を管理する方法として、FAT(File Allocation Table) 方式があり、データを記録する「データ領域」と、データ領域の管理情報を記録する「FAT領域」とで記録媒体を管理する。
【0003】
記録媒体へのデータの書き込みや消去の際には、常にFATの内容を変更する必要があり、そのため、データ領域に比べてFAT領域への書き込みと消去の回数が多くなる。NANDメモリのような記録媒体には、書き込み回数に耐久限界があるが、FAT領域はデータ領域よりも書き込み回数が極端に多くなるため、FAT領域に該当する部分が早く破壊される傾向にある。
【0004】
その結果、データ領域の多くが耐久限界までに十分な余裕があるにもかかわらず、FAT領域が短期間で耐久限界に達するため、記録媒体自体が使用できなくなるという問題がある。
【0005】
従来、上記問題点を解決するために、記録媒体のフォーマットを書き換える際に、記録媒体の記録領域に割り当てられる管理領域を移動させ、記録媒体を均一に使用する記録媒体のフォーマット方法がある(特許文献1)。
【0006】
【特許文献1】
特開平8−329610号公報
【0007】
【発明が解決しようとする課題】
しかしながら、特許文献1に記載の方法は、記録媒体のフォーマットを書き換える際に、記録媒体の記録領域に割り当てられたFAT領域等の管理領域を移動させるため、記録媒体をフォーマットしない限り、FAT領域等の管理領域を移動させることができないという問題がある。
【0008】
例えば、新規の記録媒体を最初に使用するときのみ、記録媒体のフォーマットを行い、その後はデータの書き込み、消去等を繰り返すことで、記録媒体のフォーマットを行わない場合が考えられるが、この場合には、記録媒体の記録領域に割り当てられたFAT領域等の管理領域を移動させることができないという問題がある。
【0009】
本発明はこのような事情に鑑みてなされたもので、データの管理領域等の頻繁に情報が変更される特定の領域の記録媒体内での物理的な位置を、記録媒体のフォーマットを行わずに移動させることができ、これにより記録媒体の記録領域における書き換え回数の均一化、ひいては記録媒体の書き込み耐久回数の増加を図ることができる記録媒体の記録方法を提供することを目的とする。
【0010】
【課題を解決するための手段】
前記目的を達成するために請求項1に係る記録媒体の記録方法は、記録媒体を使用する機器の電源が投入される毎に、前記記録媒体に物理的に割り当てられた頻繁に情報が変更される特定の領域を、該記録媒体の未使用領域に移動させることを特徴としている。
【0011】
請求項2に係る記録媒体の記録方法は、記録媒体に物理的に割り当てられた頻繁に情報が変更される特定の領域の内容の変更回数をカウントし、このカウントした変更回数が規定の回数に達する毎に、前記特定の領域を前記記録媒体の未使用領域に移動させることを特徴としている。
【0012】
請求項3に係る記録媒体の記録方法は、記録媒体にデータを書き込む毎に、前記記録媒体に物理的に割り当てられた頻繁に情報が変更される特定の領域を、該記録媒体の未使用領域に移動させることを特徴としている。
【0013】
請求項4に係る記録媒体の記録方法は、記録媒体内のデータを消去する毎に、前記記録媒体に物理的に割り当てられた頻繁に情報が変更される特定の領域を、該記録媒体の未使用領域に移動させることを特徴としている。
【0014】
即ち、請求項1〜4に係る発明によれば、頻繁に情報が変更される特定の領域の記録媒体内での物理的な位置を、記録媒体を使用する機器の電源が投入される毎、特定の領域の内容の変更回数が規定の回数に達する毎、記録媒体にデータを書き込む毎、又は記録媒体内のデータを消去する毎に記録媒体の未使用領域に移動させるようにしたため、記録媒体のフォーマットを行わずに特定の領域を定期又は不定期に移動させることができ、これにより記録媒体の記録領域における書き換え回数の均一化を図ることができ、その結果、記録媒体への書き込み耐久回数を増加させることができる。
【0015】
請求項5に示すように、請求項1乃至4のいずれかに記載の記録媒体の記録方法において、前記特定の領域は、前記記録媒体のデータの管理領域であることを特徴としている。FAT領域等のデータの管理領域の内容は、データの書き込みや消去が行われる度に変更される。
【0016】
【発明の実施の形態】
以下添付図面に従って本発明に係る記録媒体の記録方法の好ましい実施の形態について詳説する。
【0017】
図1は本発明に係る記録媒体の記録方法が適用された電子機器の要部ブロック図である。この電子機器10は、メモリカード12に読み書きを行う機器(例えばデジタルカメラ、パーソナルコンピュータ等)であり、主として制御回路14と、SDRAM等の内部メモリ14とから構成されている。
【0018】
制御回路14は、メモリカード12、内部メモリ16等を統括制御するもので、外部からデータを入力すると、メモリカード12にデータを記録し、読み出し命令を受けると、メモリカード12からデータを読み出して出力し、メモリカード12の初期化やデータの消去の命令を受けると、メモリカード12を初期化したり、消去対象のデータを消去する。
【0019】
次に、前記制御回路14によるメモリカード12へのデータの書き込みや消去時等における本発明に係る記録方法について、図2乃至図9を参照しながら説明する。
〔第1の実施の形態〕
図2は本発明に係る記録媒体の記録方法の第1の実施の形態を示すフローチャートである。
【0020】
一般に、メモリカードにデータを記録する場合、物理的な記録領域を論理空間上に配置することで、効率的なデータ操作を可能にしている。物理的な領域を論理空間に対応させる方法として、図3に示すようにメモリカードの物理的な構成単位(A,B,C,…)毎に論理アドレスを割り当てる方法が使用される。
【0021】
また、メモリカードの記録領域は、物理的に小さいページ(例えば、512バイト)に区分けされ、更に連続する複数ページの物理的なブロックに区分けされ、各ブロックには物理空間上のアドレス(物理アドレス)が割り当てられる。尚、メモリカードに対するデータの読み書きはページ単位で行われ、消去はブロック単位で行われる。
【0022】
図2において、メモリカード12を使用する電子機器10の電源が投入されると(ステップS10)、メモリカード12の物理的な各記録領域(各ブロック)から論理アドレスを読み出し、この読み出した論理アドレスを物理アドレスに変換する論理/物理アドレス変換テーブルを作成する(ステップS11、S12)。尚、この論理/物理アドレス変換テーブルに基づいて物理空間の各記録領域を論理空間に配置し、物理空間上で不連続に記録された集合を、仮想空間上で連続させ、論理空間においてデータの読み書き、消去等が行われる。また、図4(A)はこの時点のメモリカード12内の各記録領域の使用状態の一例を示している。
【0023】
続いて、図2のステップS13において、FAT領域に該当する領域の内容を読み出し、これを未使用領域にコピーする(図4(B)参照)。次に、ステップS14において、コピー元のFAT領域の内容を消去する(図4(C)参照)。
【0024】
その後、論理/物理アドレス変換テーブルを更新し(ステップS16)、電子機器10の電源が切られるまで、同一のFAT領域にアクセスする。
〔第2の実施の形態〕
図5は本発明に係る記録媒体の記録方法の第2の実施の形態を示すフローチャートである。
【0025】
同図において、メモリカード12を使用する電子機器10の電源が投入されると(ステップS20)、メモリカード12の物理的な各記録領域から論理アドレスを読み出し、この読み出した論理アドレスを物理アドレスに変換する論理/物理アドレス変換テーブルを作成する(ステップS21、S22)。尚、図6(A)はこの時点のメモリカード12内の各記録領域の使用状態の一例を示している。
【0026】
次に、データの書き込み処理の操作があり、かつデータを書き込める未使用領域がメモリカード12内に存在するか否かを判別する(ステップS23)。そして、データの書込可能な未使用領域が存在する場合には、図6(B)に示すようにその未使用領域に新規データを書き込むとともに、FAT領域の内容を更新する(ステップS24、S25)。続いて、論理/物理アドレス変換テーブルを更新する(ステップS26)。
【0027】
また、データの消去処理の操作があったか否かを判別し(ステップS27)、データの消去処理の操作があった場合には、図6(C)に示すように消去対象の領域のデータを消去して未使用領域にするとともに、FAT領域の内容を更新する(ステップS28、S29)。続いて、論理/物理アドレス変換テーブルを更新する(ステップS30)。
【0028】
上記ステップS25又はステップS29におけるFAT領域の内容の更新回数をカウントし、このカウントした変更回数が規定の回数に達し、かつFATのコピーが可能な未使用領域があるか否かを判別する(ステップS31)。この条件が成立した場合には、図6(D)に示すようにFAT領域の内容を未使用領域にコピーするとともに、図6(E)に示すようにコピー元のFAT領域の内容を消去する(ステップS32)。その後、論理/物理アドレス変換テーブルを更新する(ステップS33)。
【0029】
そして、電子機器10の電源が切られるまで、上記ステップS23からステップS33の処理を繰り返し実行する(ステップS34)。
〔第3の実施の形態〕
図7は本発明に係る記録媒体の記録方法の第3の実施の形態を示すフローチャートである。
【0030】
同図において、メモリカード12を使用する電子機器10の電源が投入されると(ステップS40)、メモリカード12の物理的な各記録領域から論理アドレスを読み出し、この読み出した論理アドレスを物理アドレスに変換する論理/物理アドレス変換テーブルを作成する(ステップS41、S42)。尚、図8(A)はこの時点のメモリカード12内の各記録領域の使用状態の一例を示している。
【0031】
次に、データの書き込み処理の操作があり、かつデータを書き込める未使用領域がメモリカード12内に存在するか否かを判別する(ステップS43)。そして、データの書込可能な未使用領域が存在する場合には、図8(B)に示すようにその未使用領域に新規データを書き込む(ステップS44)。
【0032】
続いて、図8(C)に示すように新規データの書き込みに関連して更新したFATを未使用領域に書き込むとともに、図8(D)に示すように元のFAT領域の内容を消去する(ステップS45)。その後、論理/物理アドレス変換テーブルを更新する(ステップS46)。
【0033】
また、データの消去処理の操作があったか否かを判別し(ステップS47)、データの消去処理の操作があった場合には、消去対象の領域のデータを消去して未使用領域にしたのち、FAT領域の内容を更新する(ステップS48、S49)。続いて、論理/物理アドレス変換テーブルを更新する(ステップS50)。
【0034】
そして、電子機器10の電源が切られるまで、上記ステップS43からステップS50の処理を繰り返し実行する(ステップS51)。
〔第4の実施の形態〕
図9は本発明に係る記録媒体の記録方法の第4の実施の形態を示すフローチャートである。
【0035】
図7のフローチャートで示した第3の実施の形態では、新規データの書き込みに伴うFAT領域の内容の更新時にFAT領域を未使用領域に移動させ、データの消去に伴うFAT領域の内容の更新時にはFAT領域を移動させないようにしたが、以下に示す第4の実施の形態では、第3の実施の形態とは逆に、新規データの書き込みに伴うFAT領域の内容の更新時にはFAT領域は移動させずに、データの消去に伴うFAT領域の内容の更新時にFAT領域を未使用領域に移動させるようにしている。
【0036】
即ち、図9において、メモリカード12を使用する電子機器10の電源が投入されると(ステップS60)、メモリカード12の物理的な各記録領域から論理アドレスを読み出し、この読み出した論理アドレスを物理アドレスに変換する論理/物理アドレス変換テーブルを作成する(ステップS61、S62)。
【0037】
次に、データの書き込み処理の操作があり、かつデータを書き込める未使用領域がメモリカード12内に存在するか否かを判別する(ステップS63)。そして、データの書込可能な未使用領域が存在する場合には、その未使用領域に新規データを書き込んだのち、FAT領域の内容を更新する(ステップS64、S65)。続いて、論理/物理アドレス変換テーブルを更新する(ステップS66)。尚、図10(A)はこの時点のメモリカード12内の各記録領域の使用状態の一例を示している。
【0038】
また、データの消去処理の操作があったか否かを判別し(ステップS67)、データの消去処理の操作があった場合には、図10(B)に示すように消去対象の領域のデータを消去して未使用領域にする(ステップS68)。続いて、図10(C)に示すようにデータの消去に関連して更新したFATを未使用領域に書き込むとともに、図10(D)に示すように元のFAT領域の内容を消去する(ステップS69)。その後、論理/物理アドレス変換テーブルを更新する(ステップS70)。
【0039】
そして、電子機器10の電源が切られるまで、上記ステップS63からステップS70の処理を繰り返し実行する(ステップS71)。
【0040】
尚、この実施の形態では、メモリカードにおけるFAT領域を移動させるようにしたが、FAT領域に限らず、例えば、ルートディレクトリの情報が記録されるディレクトリ領域や、FAT領域とディレクトリ領域の両方でもよく、要は頻繁に情報が変更される領域であれば、いかなる領域でもよい。
【0041】
【発明の効果】
以上説明したように本発明によれば、データの管理領域等の頻繁に情報が変更される特定の領域の記録媒体内での物理的な位置を、記録媒体を使用する機器の電源が投入される毎、特定の領域の内容の変更回数が規定の回数に達する毎、記録媒体にデータを書き込む毎、又は記録媒体内のデータを消去する毎に記録媒体の未使用領域に移動させるようにしたため、記録媒体のフォーマットを行わずに特定の領域を定期又は不定期に移動させることができ、これにより記録媒体の記録領域における書き換え回数の均一化を図ることができ、その結果、記録媒体への書き込み耐久回数を増加させることができる。
【図面の簡単な説明】
【図1】本発明に係る記録媒体の記録方法が適用された電子機器の要部ブロック図
【図2】本発明に係る記録媒体の記録方法の第1の実施の形態を示すフローチャート
【図3】論理アドレスを使用した物理空間から論理空間への記録領域の配置を示す図
【図4】第1の実施の形態を説明するために用いたFAT領域の移動の様子を示す図
【図5】本発明に係る記録媒体の記録方法の第2の実施の形態を示すフローチャート
【図6】第2の実施の形態を説明するために用いたFAT領域の移動の様子を示す図
【図7】本発明に係る記録媒体の記録方法の第3の実施の形態を示すフローチャート
【図8】第3の実施の形態を説明するために用いたFAT領域の移動の様子を示す図
【図9】本発明に係る記録媒体の記録方法の第4の実施の形態を示すフローチャート
【図10】第4の実施の形態を説明するために用いたFAT領域の移動の様子を示す図
【符号の説明】
10…電子機器、12…メモリカード、14…制御回路、16…内部メモリ
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a recording medium recording method, and more particularly to a technique for increasing the number of write endurances to a recording medium such as a memory card.
[0002]
[Prior art]
In general, when data is recorded on a recording medium such as a memory card, information for managing the arrangement of data areas in a logical space is recorded simultaneously with the data. As a method for managing the data area, there is a FAT (File Allocation Table) method, and the recording medium is managed by a “data area” for recording data and a “FAT area” for recording management information of the data area.
[0003]
When writing or erasing data on the recording medium, it is necessary to always change the contents of the FAT, and therefore the number of times of writing and erasing the FAT area is larger than that of the data area. A recording medium such as a NAND memory has an endurance limit on the number of times of writing. However, since the number of times of writing in the FAT area is extremely larger than that in the data area, the portion corresponding to the FAT area tends to be destroyed earlier.
[0004]
As a result, there is a problem that the recording medium itself cannot be used because the FAT area reaches the endurance limit in a short period of time even though most of the data area has a sufficient margin to reach the endurance limit.
[0005]
Conventionally, in order to solve the above-described problems, there is a recording medium formatting method in which when a recording medium format is rewritten, a management area allocated to the recording area of the recording medium is moved to uniformly use the recording medium (patent) Reference 1).
[0006]
[Patent Document 1]
Japanese Patent Laid-Open No. 8-329610
[Problems to be solved by the invention]
However, since the method described in Patent Document 1 moves the management area such as the FAT area allocated to the recording area of the recording medium when rewriting the format of the recording medium, the FAT area or the like unless the recording medium is formatted. There is a problem that the management area cannot be moved.
[0008]
For example, the recording medium may be formatted only when a new recording medium is used for the first time, and then the recording medium is not formatted by repeating data writing, erasing, etc. However, there is a problem that a management area such as a FAT area allocated to the recording area of the recording medium cannot be moved.
[0009]
The present invention has been made in view of such circumstances, and the physical position in the recording medium of a specific area where information is frequently changed, such as a data management area, is not formatted. It is an object of the present invention to provide a recording medium recording method that can make the number of rewrites in the recording area of the recording medium uniform and thereby increase the number of write endurances of the recording medium.
[0010]
[Means for Solving the Problems]
In order to achieve the above object, according to the recording medium recording method of the first aspect, the information that is physically assigned to the recording medium is frequently changed each time the device that uses the recording medium is turned on. The specific area is moved to an unused area of the recording medium.
[0011]
The recording method of the recording medium according to claim 2 counts the number of changes of the contents of a specific area where information is frequently changed physically allocated to the recording medium, and the counted number of changes reaches a specified number. Each time it reaches, the specific area is moved to an unused area of the recording medium.
[0012]
The recording medium recording method according to claim 3, wherein each time data is written to the recording medium, a specific area physically assigned to the recording medium is frequently changed to an unused area of the recording medium. It is characterized by being moved to.
[0013]
According to the recording medium recording method of the present invention, each time data in the recording medium is erased, a specific area that is frequently assigned to the recording medium and is frequently changed is designated as an unrecorded area of the recording medium. It is characterized by being moved to the use area.
[0014]
That is, according to the inventions according to claims 1 to 4, the physical position in the recording medium of the specific area where information is frequently changed is changed every time the device using the recording medium is turned on. The recording medium is moved to an unused area of the recording medium every time the content of the specific area is changed to the specified number of times, every time data is written to the recording medium, or every time data in the recording medium is erased. Thus, the specific area can be moved regularly or irregularly without formatting, thereby making it possible to equalize the number of rewrites in the recording area of the recording medium, and as a result, the number of endurance writing to the recording medium. Can be increased.
[0015]
According to a fifth aspect of the present invention, in the recording medium recording method according to any one of the first to fourth aspects, the specific area is a data management area of the recording medium. The contents of the data management area such as the FAT area are changed each time data is written or erased.
[0016]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, preferred embodiments of a recording medium recording method according to the present invention will be described in detail with reference to the accompanying drawings.
[0017]
FIG. 1 is a principal block diagram of an electronic apparatus to which a recording medium recording method according to the present invention is applied. The electronic device 10 is a device (for example, a digital camera, a personal computer, etc.) that reads / writes data from / to the memory card 12, and mainly includes a control circuit 14 and an internal memory 14 such as an SDRAM.
[0018]
The control circuit 14 performs overall control of the memory card 12, the internal memory 16, and the like. When data is input from the outside, the data is recorded in the memory card 12, and when a read command is received, the data is read from the memory card 12. When the data is output and an instruction to initialize the memory card 12 or erase data is received, the memory card 12 is initialized or the data to be erased is erased.
[0019]
Next, a recording method according to the present invention when data is written to or erased from the memory card 12 by the control circuit 14 will be described with reference to FIGS.
[First Embodiment]
FIG. 2 is a flowchart showing a first embodiment of a recording medium recording method according to the present invention.
[0020]
In general, when data is recorded on a memory card, a physical recording area is arranged in a logical space to enable efficient data operation. As a method of associating a physical area with a logical space, a method of assigning a logical address for each physical structural unit (A, B, C,...) Of a memory card as shown in FIG.
[0021]
The recording area of the memory card is divided into physically small pages (for example, 512 bytes), and further divided into a plurality of continuous physical pages, each block having an address (physical address) in physical space. ) Is assigned. Note that data is read from and written to the memory card in units of pages, and erasure is performed in units of blocks.
[0022]
In FIG. 2, when the electronic device 10 using the memory card 12 is powered on (step S10), the logical address is read from each physical recording area (each block) of the memory card 12, and the read logical address A logical / physical address conversion table for converting the address into a physical address is created (steps S11 and S12). Based on this logical / physical address conversion table, each recording area in the physical space is arranged in the logical space, and a set recorded discontinuously in the physical space is made continuous in the virtual space, and data in the logical space is recorded. Reading, writing, erasing, etc. are performed. FIG. 4A shows an example of the usage state of each recording area in the memory card 12 at this time.
[0023]
Subsequently, in step S13 of FIG. 2, the contents of the area corresponding to the FAT area are read and copied to the unused area (see FIG. 4B). Next, in step S14, the contents of the copy source FAT area are erased (see FIG. 4C).
[0024]
Thereafter, the logical / physical address conversion table is updated (step S16), and the same FAT area is accessed until the electronic device 10 is powered off.
[Second Embodiment]
FIG. 5 is a flowchart showing a second embodiment of the recording method of the recording medium according to the present invention.
[0025]
In the figure, when the electronic device 10 that uses the memory card 12 is powered on (step S20), the logical address is read from each physical recording area of the memory card 12, and the read logical address is used as the physical address. A logical / physical address conversion table to be converted is created (steps S21 and S22). FIG. 6A shows an example of the usage state of each recording area in the memory card 12 at this time.
[0026]
Next, it is determined whether or not there is an operation for writing data and an unused area in which data can be written exists in the memory card 12 (step S23). If an unused area where data can be written exists, new data is written to the unused area as shown in FIG. 6B, and the contents of the FAT area are updated (steps S24 and S25). ). Subsequently, the logical / physical address conversion table is updated (step S26).
[0027]
Further, it is determined whether or not an operation for erasing data has been performed (step S27). If there is an operation for erasing data, the data in the area to be erased is erased as shown in FIG. As a result, the contents of the FAT area are updated (steps S28 and S29). Subsequently, the logical / physical address conversion table is updated (step S30).
[0028]
The number of updates of the contents of the FAT area in step S25 or step S29 is counted, and it is determined whether or not the counted number of changes reaches a specified number and there is an unused area where FAT copying is possible (step). S31). When this condition is satisfied, the contents of the FAT area are copied to the unused area as shown in FIG. 6D, and the contents of the FAT area as the copy source are erased as shown in FIG. 6E. (Step S32). Thereafter, the logical / physical address conversion table is updated (step S33).
[0029]
Then, the processing from step S23 to step S33 is repeatedly executed until the electronic device 10 is turned off (step S34).
[Third Embodiment]
FIG. 7 is a flowchart showing a third embodiment of the recording method of the recording medium according to the present invention.
[0030]
In the figure, when the power of the electronic device 10 using the memory card 12 is turned on (step S40), the logical address is read from each physical recording area of the memory card 12, and the read logical address is used as the physical address. A logical / physical address conversion table to be converted is created (steps S41 and S42). FIG. 8A shows an example of the usage state of each recording area in the memory card 12 at this time.
[0031]
Next, it is determined whether or not there is an operation for writing data and an unused area in which data can be written exists in the memory card 12 (step S43). If an unused area where data can be written exists, new data is written to the unused area as shown in FIG. 8B (step S44).
[0032]
Subsequently, as shown in FIG. 8C, the updated FAT related to the writing of new data is written in the unused area, and the contents of the original FAT area are erased as shown in FIG. Step S45). Thereafter, the logical / physical address conversion table is updated (step S46).
[0033]
Further, it is determined whether or not there has been an operation for erasing data (step S47). If there has been an operation for erasing data, the data in the area to be erased is erased to become an unused area, The contents of the FAT area are updated (steps S48 and S49). Subsequently, the logical / physical address conversion table is updated (step S50).
[0034]
Then, the processing from step S43 to step S50 is repeatedly executed until the electronic device 10 is turned off (step S51).
[Fourth Embodiment]
FIG. 9 is a flowchart showing a fourth embodiment of the recording method of the recording medium according to the present invention.
[0035]
In the third embodiment shown in the flowchart of FIG. 7, the FAT area is moved to an unused area when the contents of the FAT area are updated when new data is written, and when the contents of the FAT area are updated when data is erased. Although the FAT area is not moved, in the following fourth embodiment, contrary to the third embodiment, the FAT area is moved when the contents of the FAT area are updated when new data is written. Instead, the FAT area is moved to an unused area when the contents of the FAT area are updated when data is erased.
[0036]
That is, in FIG. 9, when the electronic device 10 that uses the memory card 12 is turned on (step S60), the logical address is read from each physical recording area of the memory card 12, and the read logical address is physically read. A logical / physical address conversion table to be converted into addresses is created (steps S61 and S62).
[0037]
Next, it is determined whether or not there is an operation for writing data and an unused area in which data can be written exists in the memory card 12 (step S63). If there is an unused area in which data can be written, new data is written in the unused area, and then the contents of the FAT area are updated (steps S64 and S65). Subsequently, the logical / physical address conversion table is updated (step S66). FIG. 10A shows an example of the usage state of each recording area in the memory card 12 at this time.
[0038]
Further, it is determined whether or not an operation for erasing data has been performed (step S67). If there is an operation for erasing data, the data in the area to be erased is erased as shown in FIG. Thus, an unused area is set (step S68). Subsequently, as shown in FIG. 10C, the updated FAT related to the data erasure is written in the unused area, and the contents of the original FAT area are erased as shown in FIG. S69). Thereafter, the logical / physical address conversion table is updated (step S70).
[0039]
Then, the processing from step S63 to step S70 is repeatedly executed until the electronic device 10 is turned off (step S71).
[0040]
In this embodiment, the FAT area in the memory card is moved. However, the FAT area is not limited to the FAT area. For example, the directory area in which information of the root directory is recorded, or both the FAT area and the directory area may be used. In short, any area may be used as long as information is frequently changed.
[0041]
【The invention's effect】
As described above, according to the present invention, the physical position in the recording medium of a specific area where information is frequently changed, such as a data management area, is turned on to a device that uses the recording medium. Every time the number of changes in the contents of a specific area reaches the specified number, every time data is written to the recording medium, or every time data in the recording medium is erased, it is moved to an unused area on the recording medium. The specific area can be moved regularly or irregularly without formatting the recording medium, whereby the number of rewrites in the recording area of the recording medium can be made uniform. The number of write endurances can be increased.
[Brief description of the drawings]
FIG. 1 is a block diagram of an essential part of an electronic apparatus to which a recording medium recording method according to the present invention is applied. FIG. 2 is a flowchart showing a first embodiment of a recording medium recording method according to the present invention. FIG. 4 is a diagram showing an arrangement of recording areas from a physical space to a logical space using logical addresses. FIG. 4 is a diagram showing a state of moving a FAT area used for explaining the first embodiment. 6 is a flowchart showing a second embodiment of a recording medium recording method according to the present invention. FIG. 6 is a diagram showing a state of moving a FAT area used to explain the second embodiment. 8 is a flowchart showing a third embodiment of the recording method of the recording medium according to the invention. FIG. 8 is a diagram showing a state of moving the FAT area used to explain the third embodiment. 4 shows a recording medium recording method according to a fourth embodiment of the invention Flow [10] Figure [EXPLANATION OF SYMBOLS] showing a movement of the FAT area used for explaining the fourth embodiment
DESCRIPTION OF SYMBOLS 10 ... Electronic device, 12 ... Memory card, 14 ... Control circuit, 16 ... Internal memory

Claims (5)

記録媒体を使用する機器の電源が投入される毎に、前記記録媒体に物理的に割り当てられた頻繁に情報が変更される特定の領域を、該記録媒体の未使用領域に移動させることを特徴とする記録媒体の記録方法。Each time a device that uses a recording medium is turned on, a specific area that is physically assigned to the recording medium and frequently changes information is moved to an unused area of the recording medium. A recording method of a recording medium. 記録媒体に物理的に割り当てられた頻繁に情報が変更される特定の領域の内容の変更回数をカウントし、このカウントした変更回数が規定の回数に達する毎に、前記特定の領域を前記記録媒体の未使用領域に移動させることを特徴とする記録媒体の記録方法。The number of changes in the contents of a specific area where information is frequently changed physically allocated to the recording medium is counted. A recording method for a recording medium, wherein the recording medium is moved to an unused area. 記録媒体にデータを書き込む毎に、前記記録媒体に物理的に割り当てられた頻繁に情報が変更される特定の領域を、該記録媒体の未使用領域に移動させることを特徴とする記録媒体の記録方法。Recording of a recording medium, characterized in that each time data is written to the recording medium, a specific area that is physically assigned to the recording medium is frequently moved to an unused area of the recording medium. Method. 記録媒体内のデータを消去する毎に、前記記録媒体に物理的に割り当てられた頻繁に情報が変更される特定の領域を、該記録媒体の未使用領域に移動させることを特徴とする記録媒体の記録方法。A recording medium characterized in that, every time data in a recording medium is erased, a specific area that is physically assigned to the recording medium and whose information is frequently changed is moved to an unused area of the recording medium. Recording method. 前記特定の領域は、前記記録媒体のデータの管理領域であることを特徴とする請求項1乃至4のいずれかに記載の記録媒体の記録方法。5. The recording medium recording method according to claim 1, wherein the specific area is a data management area of the recording medium.
JP2003121786A 2003-04-25 2003-04-25 Method for recording for recording medium Pending JP2004326539A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003121786A JP2004326539A (en) 2003-04-25 2003-04-25 Method for recording for recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003121786A JP2004326539A (en) 2003-04-25 2003-04-25 Method for recording for recording medium

Publications (1)

Publication Number Publication Date
JP2004326539A true JP2004326539A (en) 2004-11-18

Family

ID=33500231

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003121786A Pending JP2004326539A (en) 2003-04-25 2003-04-25 Method for recording for recording medium

Country Status (1)

Country Link
JP (1) JP2004326539A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008217931A (en) * 2007-03-06 2008-09-18 Yokogawa Electric Corp Disk device and measuring instrument using the same
JP2009020955A (en) * 2007-07-12 2009-01-29 Hitachi Ltd Recording device
JP2021525924A (en) * 2018-05-31 2021-09-27 マイクロン テクノロジー,インク. Relocation of data in memory that has two parts of the data

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008217931A (en) * 2007-03-06 2008-09-18 Yokogawa Electric Corp Disk device and measuring instrument using the same
JP2009020955A (en) * 2007-07-12 2009-01-29 Hitachi Ltd Recording device
JP2021525924A (en) * 2018-05-31 2021-09-27 マイクロン テクノロジー,インク. Relocation of data in memory that has two parts of the data

Similar Documents

Publication Publication Date Title
KR100618298B1 (en) Recording system, data recording device, memory device, and data recording method
RU2242805C2 (en) Recording method, control device and recording device
KR100684942B1 (en) Adaptive flash memory control device with multiple mapping schemes and flash memory system havintg the same
JP4135747B2 (en) Data processing apparatus and flash memory access method
US20100011154A1 (en) Data accessing method for flash memory and storage system and controller using the same
WO2009096180A1 (en) Memory controller, nonvolatile storage device, and nonvolatile storage system
KR100684061B1 (en) Recording system, data recording device, memory device, and data recording method
US6378033B1 (en) Electronic device, control method thereof and storage medium
US20080250189A1 (en) Circuit and Method for Improving Operation Life of Memory
JP5183662B2 (en) Memory control device and memory control method
JP2005339231A (en) Memory card, semiconductor device, and method for controlling semiconductor memory
JP4561246B2 (en) Memory device
CN100555243C (en) Signal conditioning package, image-pickup device and information processing method
JP4308780B2 (en) Semiconductor memory device, memory controller, and data recording method
JP2004326539A (en) Method for recording for recording medium
JP2005078378A (en) Data storage device and data writing method in non-volatile memory
JP2007233838A (en) Control method for memory system
JP2004264912A (en) Method and device for controlling recording on recording medium
JP2006323462A (en) File-copying device and file-copying method
KR101102754B1 (en) Nand flash memory file system and method for accessing file thereof
JP4218406B2 (en) Information recording and playback method
TW200844737A (en) Information processing apparatus and incremental write type file management software
JP2004295759A (en) Recording system
KR20030061948A (en) : Apparatus storing information and method for controlling the File using its
JP4985108B2 (en) Data storage device and control method thereof

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060301

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20061212

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080626

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20081016