JP2011081694A - Electronic apparatus and method of controlling memory - Google Patents

Electronic apparatus and method of controlling memory Download PDF

Info

Publication number
JP2011081694A
JP2011081694A JP2009235007A JP2009235007A JP2011081694A JP 2011081694 A JP2011081694 A JP 2011081694A JP 2009235007 A JP2009235007 A JP 2009235007A JP 2009235007 A JP2009235007 A JP 2009235007A JP 2011081694 A JP2011081694 A JP 2011081694A
Authority
JP
Japan
Prior art keywords
period
flash memory
rewrites
unit
temperature
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
JP2009235007A
Other languages
Japanese (ja)
Inventor
Hiroyuki Sugiyama
博行 杉山
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.)
J&K Car Electronics Corp
Original Assignee
J&K Car Electronics 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 J&K Car Electronics Corp filed Critical J&K Car Electronics Corp
Priority to JP2009235007A priority Critical patent/JP2011081694A/en
Publication of JP2011081694A publication Critical patent/JP2011081694A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Memory System (AREA)
  • Read Only Memory (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To calculate a period during which a flash memory can retain data, thereby preventing the data retained in the flash memory from being lost inadvertently even if the flash memory is highly integrated. <P>SOLUTION: An electronic apparatus 200 includes: an obtaining part 220 which initially retains reference information indicating the relationship between the number of rewrites to the flash memory and the retainable period of the data stored in the flash memory and which obtains the number of rewrites to the flash memory at a certain point of time and the necessary retention period at a certain point of time of the data stored in the flash memory; a deriving part 224 which refers to the reference information to derive the retainable period from the number of rewrites obtained by the obtaining part; a comparison part 226 which compares the necessary retention period obtained by the obtaining part and the retainable period derived by the deriving part; and a warning part 228 that warns if the necessary retention period exceeds the retainable period. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、フラッシュメモリにおけるデータの消失を未然に防止するための電子機器およびメモリ制御方法に関するものである。   The present invention relates to an electronic device and a memory control method for preventing data loss in a flash memory.

フラッシュメモリは、記憶されたデータを電気的に書き換えることができるEEPROMの一種である。フラッシュメモリには、大別してNOR型とNAND型の2種類が存在する。そのうち、NAND型フラッシュメモリは、1ビットのデータを蓄積するセルを記憶容量分含んで構成されており、データの書き込み(ライト)は、複数のセルで構成されるページ単位で行うことができる。しかし、消去(イレース)は、さらに複数のページで構成されるブロック単位でしか実行できない。したがって、フラッシュメモリは、RAMと比較してランダムアクセス等に時間を要するが、高集積化に向いており、近年著しく普及している。   Flash memory is a type of EEPROM that can electrically rewrite stored data. There are roughly two types of flash memory, NOR type and NAND type. Among them, the NAND flash memory is configured to include cells for storing 1-bit data for a storage capacity, and data can be written (written) in units of pages composed of a plurality of cells. However, erasure (erase) can be executed only in units of blocks each composed of a plurality of pages. Therefore, the flash memory requires time for random access or the like as compared with the RAM, but is suitable for high integration and has been remarkably spread in recent years.

フラッシュメモリのセルは、コントロールゲートとシリコン基盤の間にフローティングゲートを設置して構成される。フラッシュメモリのセルの読み出しや書き込み制御を行う回路と、その読み出し制御や書き込み制御等の最適化を行う制御回路とを含んで構成されるコントローラ(以下、単にコントローラと称する)が、セルに電圧を印加すると、セルのフローティングゲートが電子を保持する。そして、コントローラは、フラッシュメモリの各フローティングゲートの電圧値が所定値以上であるか否かに基づいてデータの値を判断する(SLC:Single Level Cell)。また、このような2つの状態のみならず、電圧値から4つの状態(2ビット)を判断することを目的としたフラッシュメモリもある(MLC:Multi Level Cell)。   A cell of a flash memory is configured by installing a floating gate between a control gate and a silicon substrate. A controller (hereinafter simply referred to as a controller) that includes a circuit that performs read / write control of a cell in a flash memory and a control circuit that performs optimization such as read control and write control supplies a voltage to the cell. When applied, the cell's floating gate holds the electrons. Then, the controller determines a data value based on whether or not the voltage value of each floating gate of the flash memory is equal to or greater than a predetermined value (SLC: Single Level Cell). There is also a flash memory (MLC: Multi Level Cell) for the purpose of judging not only two states but also four states (2 bits) from voltage values.

このようなフラッシュメモリのセルにデータ「1」を書き込む場合、コントローラはコントロールゲートに所定の電圧を印加する。コントロールゲートに電圧が印加されると、シリコン基盤から放出された電子が、絶縁機能を有する酸化膜を介してフローティングゲート内に注入される。また、書き込まれたデータを消去する場合、コントローラは、シリコン基盤のソースとドレインに電圧を印加して、フローティングゲートから電子を放出させる。   When data “1” is written in such a flash memory cell, the controller applies a predetermined voltage to the control gate. When a voltage is applied to the control gate, electrons emitted from the silicon substrate are injected into the floating gate through an oxide film having an insulating function. In addition, when erasing written data, the controller applies a voltage to the source and drain of the silicon substrate to emit electrons from the floating gate.

フローティングゲートは、データを保持するため、すなわち自体に注入された電子を保持するため、絶縁機能を有する酸化膜によって被覆されている。しかし、上述したように、消去または書き込み(以下、消去と書き込みを合わせて単に書き換えと称する)を行う度に、電子が酸化膜を通り抜けるため、酸化膜が劣化してしまう。したがって、フラッシュメモリにおいて、正常な書き換えができない領域が発生したり、フローティングゲートからの電子のリークによりデータを保持可能な期間が制限されたりしていた。   The floating gate is covered with an oxide film having an insulating function in order to hold data, that is, hold electrons injected into itself. However, as described above, every time erasing or writing is performed (hereinafter, erasing and writing are simply referred to as rewriting), electrons pass through the oxide film, so that the oxide film is deteriorated. Therefore, in the flash memory, a region where normal rewriting cannot be performed occurs, or a period in which data can be held is limited due to leakage of electrons from the floating gate.

そこで、メモリ書き込み命令限界回数を算出して記憶部に保持し、カウントされたメモリへの書き込み命令の回数がメモリ書き込み命令限界回数を超過するとその旨表示される技術が開示されている(例えば、特許文献1)。   Therefore, a technique is disclosed in which the memory write command limit number is calculated and held in the storage unit, and that is displayed when the counted number of write commands to the memory exceeds the memory write command limit number (for example, Patent Document 1).

特開2006−023815号公報JP 2006-023815 A

ところで、近年では、フラッシュメモリの大容量化および高集積化に伴い、セルの大きさが1セルあたり30nm以下と小さくなってきている。このように、1セルあたりのセルの大きさを小型化することによって、酸化膜の劣化によるフローティングゲートからの電子の蓄積量に対する流出の割合が、従来のセル、例えば1セルあたり130nmのセルと比較して増加することとなる。   Incidentally, in recent years, with the increase in capacity and integration of flash memories, the size of cells has been reduced to 30 nm or less per cell. In this way, by reducing the size of the cell per cell, the ratio of the outflow to the amount of accumulated electrons from the floating gate due to the deterioration of the oxide film can be reduced to the conventional cell, for example, 130 nm per cell. It will increase in comparison.

上述したMLCを用いたフラッシュメモリでは、フローティングゲートの電圧値から4つの状態を判断するため、各状態を判定するための電圧範囲はSLCを用いたフラッシュメモリより小さい。したがって、今後、セルの小型化に伴いフローティングゲートからの電子の流出が増加すると電圧値の低下速度も増し、従来十分であったデータの保持期間を必要なだけ確保できるか否か考慮せざるを得なくなる。特に、車載用等のフラッシュメモリでは高温の環境下における利用が想定され、フローティングゲートからの電子の流出を無視することはできない。   In the flash memory using the MLC described above, four states are determined from the voltage value of the floating gate, and therefore the voltage range for determining each state is smaller than that of the flash memory using the SLC. Therefore, if the outflow of electrons from the floating gate increases with the miniaturization of the cell in the future, the rate of decrease in the voltage value will also increase, and it will be necessary to consider whether it is possible to secure a sufficient data retention period as necessary. You won't get. In particular, in-vehicle flash memories are assumed to be used in a high-temperature environment, and the outflow of electrons from the floating gate cannot be ignored.

しかし、上述した特許文献1の技術では、セクタの書き込み頻度こそ計算パラメータとしているが、データの保持可能な保持期間の概念がなく、また、保持期間に影響を及ぼすフラッシュメモリの温度には触れていない。したがって、特許文献1の技術では、近年のセルの大きさが小型化されたフラッシュメモリがデータを保持できる期間を正確に管理することができず、意図せずデータが消失してしまうおそれがあった。   However, in the technique of Patent Document 1 described above, the sector write frequency is a calculation parameter, but there is no concept of a retention period in which data can be retained, and the temperature of the flash memory that affects the retention period is touched. Absent. Therefore, in the technology of Patent Document 1, it is not possible to accurately manage the period in which a flash memory with a recent downsized cell size can hold data, and there is a risk that data will be lost unintentionally. It was.

本発明は、このような課題に鑑み、フラッシュメモリの高集積化が進んだとしても、フラッシュメモリがデータを保持できる期間を算出することで、フラッシュメモリに保持されたデータが不用意に消失してしまうといった事態を回避することが可能な電子機器およびメモリ制御方法を提供することを目的としている。   In view of such problems, the present invention calculates the period in which the flash memory can hold data even if the integration of the flash memory is advanced, so that the data held in the flash memory is inadvertently lost. It is an object of the present invention to provide an electronic device and a memory control method that can avoid such a situation.

上記課題を解決するために、本発明にかかる電子機器は、フラッシュメモリへの書き換え回数と、そのフラッシュメモリに記憶されたデータを保持し続けることが可能な期間である保持可能期間との関係を示す参照情報を予め保持する保持部と、所定の時点におけるフラッシュメモリへの書き換え回数と、そのフラッシュメモリが正常に機能しなければならない期間から、所定の時点におけるフラッシュメモリを使用した期間を減算した期間である必要保持期間とを取得する取得部と、参照情報を参照して、取得部が取得した書き換え回数から保持可能期間を導出する導出部と、取得部が取得した必要保持期間と、導出部が導出した保持可能期間とを比較する比較部と、必要保持期間が保持可能期間を超えている場合に警告する警告部と、を備えることを特徴とする。   In order to solve the above-described problem, the electronic device according to the present invention has a relationship between the number of rewrites to the flash memory and the holdable period, which is a period during which the data stored in the flash memory can be held. Subtracting the period in which the flash memory was used at a given time from the holding unit that holds the reference information shown in advance, the number of rewrites to the flash memory at a given time, and the period during which the flash memory must function normally An acquisition unit that acquires a required retention period that is a period, a derivation unit that derives a holdable period from the number of rewrites acquired by the acquisition unit with reference to reference information, a required retention period that is acquired by the acquisition unit, and a derivation A comparison unit that compares the retention period derived by the unit, and a warning unit that warns when the required retention period exceeds the retention period Characterized in that it obtain.

参照情報は所定温度における書き換え回数と保持可能期間との関係を示す情報であり、比較部で比較される前段で、フラッシュメモリの温度における、取得部が取得した必要保持期間を所定温度における必要保持期間に換算する換算部をさらに備え、比較部は、所定温度における必要保持期間と、導出部が導出した保持可能期間とを比較してもよい。   The reference information is information indicating the relationship between the number of rewrites at a predetermined temperature and the holdable period, and the required hold period acquired by the acquisition unit at the flash memory temperature is held at the predetermined temperature in the previous stage compared with the comparison unit. A conversion unit that converts to a period may further be provided, and the comparison unit may compare the required holding period at a predetermined temperature with the holdable period derived by the deriving unit.

参照情報は複数の温度毎の書き換え回数と保持可能期間との関係を示す情報であり、導出部は、フラッシュメモリの温度に近い温度に対応する参照情報を参照して保持可能期間を導出してもよい。   The reference information is information indicating the relationship between the number of rewrites for each of a plurality of temperatures and the holdable period, and the deriving unit derives the holdable period by referring to the reference information corresponding to the temperature close to the temperature of the flash memory. Also good.

上記課題を解決するために、本発明にかかる他の電子機器は、フラッシュメモリが正常に機能しなければならない期間から、フラッシュメモリを使用した期間を減算した期間である必要保持期間と、そのフラッシュメモリへの書き換え回数の限度を示す書き換え限度回数との関係を示す参照情報を予め保持する保持部と、フラッシュメモリに記憶されたデータの所定の時点における必要保持期間と、所定の時点におけるフラッシュメモリへの書き換え回数とを取得する取得部と、参照情報を参照して、取得部が取得した必要保持期間から書き換え限度回数を導出する導出部と、取得部が取得した書き換え回数と、導出部が導出した書き換え限度回数とを比較する比較部と、書き換え回数が書き換え限度回数を超えている場合に警告する警告部と、を備えることを特徴とする。   In order to solve the above-described problem, another electronic device according to the present invention includes a required holding period, which is a period obtained by subtracting a period in which the flash memory is used from a period in which the flash memory must function normally, and the flash memory. A holding unit that holds in advance reference information indicating a relationship with a rewrite limit number indicating the limit of the number of rewrites to the memory, a necessary holding period of data stored in the flash memory at a predetermined time point, and a flash memory at a predetermined time point An acquisition unit that acquires the number of rewrites to the reference, a derivation unit that derives the number of rewrite limits from the necessary holding period acquired by the acquisition unit with reference to the reference information, a number of rewrites acquired by the acquisition unit, and a derivation unit A comparison unit that compares the derived rewrite limit number and a warning unit that warns when the rewrite number exceeds the rewrite limit number , Characterized in that it comprises a.

参照情報は所定温度における必要保持期間と書き換え限度回数との関係を示す情報であり、導出部が書き換え限度回数を導出する前段で、フラッシュメモリの温度における、取得部が取得した必要保持期間を所定温度における必要保持期間に換算する換算部をさらに備え、導出部は、所定温度における必要保持期間から書き換え限度回数を導出してもよい。   The reference information is information indicating the relationship between the required holding period at the predetermined temperature and the number of times of rewriting, and the required holding period acquired by the acquiring unit at the temperature of the flash memory is predetermined before the deriving unit derives the number of times of rewriting. The converter may further include a conversion unit that converts the required holding period at the temperature, and the deriving unit may derive the rewrite limit number from the required holding period at the predetermined temperature.

参照情報は複数の温度毎の必要保持期間と書き換え限度回数との関係を示す情報であり、導出部は、フラッシュメモリの温度に近い温度に対応する参照情報を参照して書き換え限度回数を導出してもよい。   The reference information is information indicating the relationship between the required holding period for each of a plurality of temperatures and the rewrite limit number, and the deriving unit derives the rewrite limit number with reference to the reference information corresponding to the temperature close to the temperature of the flash memory. May be.

上記フラッシュメモリの温度は、所定の時点までのフラッシュメモリを利用した期間におけるフラッシュメモリの温度の履歴を用いて算出してもよい。   The temperature of the flash memory may be calculated using a history of the temperature of the flash memory during a period in which the flash memory is used up to a predetermined time.

フラッシュメモリは消去単位となる複数のブロックで形成され、取得部は、複数のブロックそれぞれにおける書き換え回数の最大値をフラッシュメモリ全体における書き換え回数として取得してもよい。   The flash memory may be formed of a plurality of blocks serving as erase units, and the acquisition unit may acquire the maximum number of rewrites in each of the plurality of blocks as the number of rewrites in the entire flash memory.

上記電子機器は、警告部の警告を受けて、フラッシュメモリへの書き換えの頻度またはデータ量を制限する書換制御部をさらに備えてもよい。   The electronic device may further include a rewrite control unit that receives a warning from the warning unit and limits a rewrite frequency or data amount to the flash memory.

上記課題を解決するために、本発明にかかるメモリ制御方法は、フラッシュメモリへの書き換え回数と、そのフラッシュメモリに記憶されたデータを保持し続けることが可能な期間である保持可能期間との関係を示す参照情報を予め保持し、所定の時点におけるフラッシュメモリへの書き換え回数と、そのフラッシュメモリが正常に機能しなければならない期間から、所定の時点におけるフラッシュメモリを使用した期間を減算した期間である必要保持期間とを取得し、参照情報を参照して、取得した書き換え回数から保持可能期間を導出し、取得した必要保持期間と、導出した保持可能期間とを比較し、必要保持期間が保持可能期間を超えている場合に警告することを特徴とする。   In order to solve the above-described problem, the memory control method according to the present invention relates to the relationship between the number of rewrites to the flash memory and the holdable period, which is a period during which data stored in the flash memory can be held. Is stored in advance, and the number of times the flash memory is rewritten at a predetermined time and the period during which the flash memory must function normally are subtracted from the period when the flash memory is used at the predetermined time Obtain a certain required retention period, refer to the reference information, derive the retention period from the acquired number of rewrites, compare the acquired necessary retention period with the derived retention period, and retain the necessary retention period A warning is given when the possible period is exceeded.

上記課題を解決するために、本発明にかかる他のメモリ制御方法は、フラッシュメモリが正常に機能しなければならない期間から、フラッシュメモリを使用した期間を減算した期間である必要保持期間と、そのフラッシュメモリへの書き換え回数の限度を示す書き換え限度回数との関係を示す参照情報を予め保持し、フラッシュメモリに記憶されたデータの所定の時点における必要保持期間と、所定の時点におけるフラッシュメモリへの書き換え回数とを取得し、参照情報を参照して、取得した必要保持期間から書き換え限度回数を導出し、取得した書き換え回数と、導出した書き換え限度回数とを比較し、書き換え回数が書き換え限度回数を超えている場合に警告することを特徴とする。   In order to solve the above problems, another memory control method according to the present invention includes a required holding period, which is a period obtained by subtracting a period during which the flash memory is used from a period during which the flash memory must function normally, Reference information indicating the relationship with the rewrite limit number indicating the limit of the number of rewrites to the flash memory is held in advance, and the necessary retention period of the data stored in the flash memory at a predetermined time point, and the flash memory at the predetermined time point The number of rewrites is obtained, the reference number is referred to, the number of rewrite limits is derived from the acquired required retention period, the obtained number of rewrites is compared with the number of rewrite limits obtained, and the number of rewrites It is characterized by warning when it exceeds.

上述した、電子機器の技術的思想に基づく構成要素やその説明は、当該メモリ制御方法にも適用可能である。   The above-described components based on the technical idea of the electronic device and the description thereof can be applied to the memory control method.

以上説明したように本発明によれば、フラッシュメモリの高集積化が進んだとしても、フラッシュメモリがデータを保持できる期間を算出することで、フラッシュメモリのデータが不用意に消失してしまうといった事態を回避することが可能となる。   As described above, according to the present invention, even if the flash memory is highly integrated, the flash memory data is inadvertently lost by calculating the period during which the flash memory can hold the data. It becomes possible to avoid the situation.

メモリ制御システムの概略的な接続関係を説明するための説明図である。It is explanatory drawing for demonstrating the rough connection relation of a memory control system. 第1の実施形態にかかる電子機器の概略的な構成を示した機能ブロック図である。1 is a functional block diagram illustrating a schematic configuration of an electronic device according to a first embodiment. 第1の実施形態にかかる参照情報を説明するための説明図である。It is explanatory drawing for demonstrating the reference information concerning 1st Embodiment. 書き換え回数および保持可能期間の温度依存性を説明するための説明図である。It is explanatory drawing for demonstrating the temperature dependence of the frequency | count of rewriting and a holdable period. 第1の実施形態における利用開始から所定の時点までのフラッシュメモリの温度の算出を説明するための説明図である。It is explanatory drawing for demonstrating the calculation of the temperature of the flash memory from the utilization start in the 1st Embodiment to the predetermined | prescribed time. 温度換算係数ATFのテーブルを示す図である。It is a figure which shows the table of the temperature conversion coefficient ATF. 第1の実施形態にかかる導出部の処理を説明するための説明図である。It is explanatory drawing for demonstrating the process of the derivation | leading-out part concerning 1st Embodiment. 参照情報の他の例を説明するための説明図である。It is explanatory drawing for demonstrating the other example of reference information. 第1の実施形態にかかるメモリ制御方法の処理の流れを説明するためのフローチャートである。It is a flowchart for demonstrating the flow of a process of the memory control method concerning 1st Embodiment. 第2の実施形態にかかる電子機器の概略的な構成を示した機能ブロック図である。It is the functional block diagram which showed the schematic structure of the electronic device concerning 2nd Embodiment. 第2の実施形態にかかる参照情報を説明するための説明図である。It is explanatory drawing for demonstrating the reference information concerning 2nd Embodiment. 第2の実施形態にかかるメモリ制御方法の処理の流れを説明するためのフローチャートである。It is a flowchart for demonstrating the flow of a process of the memory control method concerning 2nd Embodiment.

以下に添付図面を参照しながら、本発明の好適な実施形態について詳細に説明する。かかる実施形態に示す寸法、材料、その他具体的な数値等は、発明の理解を容易とするための例示にすぎず、特に断る場合を除き、本発明を限定するものではない。なお、本明細書及び図面において、実質的に同一の機能、構成を有する要素については、同一の符号を付することにより重複説明を省略し、また本発明に直接関係のない要素は図示を省略する。   Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. The dimensions, materials, and other specific numerical values shown in the embodiments are merely examples for facilitating the understanding of the invention, and do not limit the present invention unless otherwise specified. In the present specification and drawings, elements having substantially the same function and configuration are denoted by the same reference numerals, and redundant description is omitted, and elements not directly related to the present invention are not illustrated. To do.

(メモリ制御システム100)
図1は、メモリ制御システム100の概略的な接続関係を説明するための説明図である。図1に示すように、メモリ制御システム100は、フラッシュメモリ110と、フラッシュメモリ110を記憶媒体として使用する電子機器200とを含んで構成される。ここでは、フラッシュメモリ110として、例えばNAND型フラッシュメモリを例に挙げて説明する。
(Memory control system 100)
FIG. 1 is an explanatory diagram for explaining a schematic connection relationship of the memory control system 100. As shown in FIG. 1, the memory control system 100 includes a flash memory 110 and an electronic device 200 that uses the flash memory 110 as a storage medium. Here, as the flash memory 110, for example, a NAND flash memory will be described as an example.

電子機器200のコントローラがフラッシュメモリ110のデータを読み出す場合、フラッシュメモリ110のセルを構成するフローティングゲートに保持された電圧の値を測定する。そして電子機器200のコントローラは、各セルのフローティングゲートの電圧値からデータの値を判断する。フラッシュメモリ110のフローティングゲートは、データを保持するため、すなわち自体に注入された電子を保持するため、絶縁機能を有する酸化膜で被覆されている。   When the controller of the electronic device 200 reads data from the flash memory 110, the value of the voltage held in the floating gate configuring the cell of the flash memory 110 is measured. The controller of the electronic device 200 determines the data value from the voltage value of the floating gate of each cell. The floating gate of the flash memory 110 is covered with an oxide film having an insulating function in order to retain data, that is, retain electrons injected into itself.

しかし、フラッシュメモリ110に対して電子機器200のコントローラが、データの書き換え(E(Erase:消去)/W(Write:書き込み))を繰り返すと、酸化膜を介した電子の通過が度重なり酸化膜の劣化が生じ、フラッシュメモリ110において、正常な書き換えができない領域が発生したり、フローティングゲートからの電子のリークによりデータを保持可能な期間が制限されたりしていた。   However, when the controller of the electronic device 200 repeats data rewriting (E (Erase) / W (Write)) with respect to the flash memory 110, the passage of electrons through the oxide film is repeated, and the oxide film In the flash memory 110, a region where normal rewriting cannot be performed occurs, or a period during which data can be held is limited due to electron leakage from the floating gate.

そこで、本実施形態では、フラッシュメモリ110の書き換え回数のみならず、データを保持できる期間も算出することで、フラッシュメモリ110の高集積化が進んだとしてもフラッシュメモリ110に保持されたデータが不用意に消失してしまう事態を回避することが可能な電子機器200、400を提供する。以下、電子機器200、400の具体的な構成を説明する。   Therefore, in the present embodiment, not only the number of times the flash memory 110 is rewritten, but also the period in which the data can be retained is calculated, so that even if the integration of the flash memory 110 is advanced, the data retained in the flash memory 110 is not stored. Provided are electronic devices 200 and 400 that can avoid a situation where they are easily lost. Hereinafter, specific configurations of the electronic devices 200 and 400 will be described.

(第1の実施形態:電子機器200)
図2は、第1の実施形態にかかる電子機器200の概略的な構成を示した機能ブロック図である。電子機器200は、中央制御部210と、保持部212と、コントローラ214とを含んで構成され、自体で生成されたデータの記憶先としてフラッシュメモリ110を接続することができる。
(First embodiment: electronic device 200)
FIG. 2 is a functional block diagram showing a schematic configuration of the electronic device 200 according to the first embodiment. The electronic device 200 includes a central control unit 210, a holding unit 212, and a controller 214, and can connect the flash memory 110 as a storage destination of data generated by itself.

中央制御部210は、中央処理装置(CPU)、プログラム等が格納されたROM、ワークエリアとしてのRAM等を含む半導体集積回路により、電子機器200全体を制御する。   The central control unit 210 controls the entire electronic device 200 by a semiconductor integrated circuit including a central processing unit (CPU), a ROM storing programs, a RAM as a work area, and the like.

保持部212は、フラッシュメモリへの書き換え回数と、そのフラッシュメモリに記憶されたデータを保持し続けることが可能な期間である保持可能期間との関係を示す参照情報を予め保持する。参照情報はフラッシュメモリ110と略同等の性能の任意のフラッシュメモリを用いて、予め導出された情報である。   The holding unit 212 holds in advance reference information indicating the relationship between the number of rewrites to the flash memory and the holdable period, which is a period during which data stored in the flash memory can be held. The reference information is information derived in advance using an arbitrary flash memory having substantially the same performance as the flash memory 110.

コントローラ214は、フラッシュメモリ110のセルの読み出しや書き込み制御を行う回路と、その読み出し制御や書き込み制御等の最適化を行う制御回路とを含んで構成される。   The controller 214 includes a circuit that performs read / write control of cells of the flash memory 110 and a control circuit that performs optimization such as read control and write control.

図3は、第1の実施形態にかかる参照情報310を説明するための説明図である。図3に示すように、本実施形態において、参照情報310は、所定温度におけるフラッシュメモリへのデータの書き換え回数と、保持可能期間との関係を示す情報である。本実施形態において参照情報310における所定温度は、例えば60℃とする。参照情報310は、フラッシュメモリへの書き換え回数が増えるに連れて、その書き換えたデータを保持できる期間である保持可能期間が短縮されてしまうことを示す。したがって、接続されているフラッシュメモリ110に記憶されたデータが十分な期間保持できるか否かを、基準となる参照情報310と比較することで判断する。ただし、ここでは、参照情報310の保持可能期間の限界値に所定の余裕を持たせている。   FIG. 3 is an explanatory diagram for explaining the reference information 310 according to the first embodiment. As shown in FIG. 3, in the present embodiment, the reference information 310 is information indicating the relationship between the number of times data can be rewritten to the flash memory at a predetermined temperature and the retention period. In the present embodiment, the predetermined temperature in the reference information 310 is 60 ° C., for example. The reference information 310 indicates that as the number of rewrites to the flash memory increases, the holdable period, which is a period during which the rewritten data can be held, is shortened. Therefore, it is determined whether the data stored in the connected flash memory 110 can be held for a sufficient period by comparing with the reference information 310 as a reference. However, here, a predetermined margin is given to the limit value of the holdable period of the reference information 310.

フラッシュメモリは、自体のデータを保持するという役割を担うべく、書き換え回数に拘わらず、所定の時点から自体の利用想定期間(予め定められたフラッシュメモリの使用期間)を全うするまでの残りの期間、データを保持する必要がある。ここでは、この所定の時点から利用想定期間の最後までの期間、すなわちそのフラッシュメモリが正常に機能しなければならない期間から、所定の時点におけるフラッシュメモリを使用した期間を減算した期間を必要保持期間とする。したがって、利用想定期間中、必要保持期間は、データを保持することが可能な期間である保持可能期間より短くないとデータを保持することができなくなるため、フラッシュメモリの任意の書き換え回数における必要保持期間は、常に、保持可能期間より短くなくてはならず、図3中では基準線312の左側の領域に位置することとなる。例えば、フラッシュメモリは、利用想定期間中、図3中基準線312の左側の領域にある、破線314で示すような軌跡を辿って効用を果たす。なお、フラッシュメモリの利用想定期間は例えば電子機器200の動作の保障期間や電子機器200を設計する際に定められる電子機器200を使用できる期間(設計期間)であり、利用想定期間を例えば30年とし、電子機器200を使用した(フラッシュメモリを使用した)期間を3年とすると、必要保持期間は27年である。   The flash memory is responsible for holding its own data, so that the remaining period from the predetermined point in time until the expected use period (predetermined use period of the flash memory) is completed, regardless of the number of rewrites. Need to hold the data. Here, the required holding period is a period obtained by subtracting the period in which the flash memory is used at the predetermined time from the period from the predetermined time to the end of the assumed usage period, that is, the period in which the flash memory must function normally. And Therefore, during the expected use period, the required holding period must be shorter than the holdable period during which data can be held. Therefore, the data cannot be held, so the required holding for any number of flash memory rewrites The period must always be shorter than the holdable period, and is located in the region on the left side of the reference line 312 in FIG. For example, the flash memory is effective during the expected usage period by following a trajectory as indicated by a broken line 314 in the area on the left side of the reference line 312 in FIG. Note that the expected usage period of the flash memory is, for example, a guaranteed period of operation of the electronic device 200 or a period during which the electronic device 200 can be used (design period) determined when the electronic device 200 is designed. Assuming that the period of using the electronic device 200 (using the flash memory) is 3 years, the required retention period is 27 years.

また、本実施形態において中央制御部210は、取得部220、換算部222、導出部224、比較部226、警告部228、書換制御部230としても機能する。   In the present embodiment, the central control unit 210 also functions as the acquisition unit 220, the conversion unit 222, the derivation unit 224, the comparison unit 226, the warning unit 228, and the rewrite control unit 230.

取得部220は、所定の時点における、利用開始から所定の時点までのフラッシュメモリ110への書き換え回数を取得する。   The acquisition unit 220 acquires the number of rewrites to the flash memory 110 from the start of use to a predetermined time at a predetermined time.

ただし、NAND型であるフラッシュメモリ110は、消去単位となる複数のブロックで形成されており、ブロック毎に書き換え回数が異なる。そこで、取得部220は、フラッシュメモリ110の複数のブロックそれぞれにおける書き換え回数の最大値をフラッシュメモリ110全体における書き換え回数として取得する。かかる構成により、書き換え回数が多いブロックでも保持可能期間を確実に確保することができる。   However, the NAND flash memory 110 is formed of a plurality of blocks as erase units, and the number of rewrites is different for each block. Accordingly, the acquisition unit 220 acquires the maximum number of rewrites in each of the plurality of blocks of the flash memory 110 as the number of rewrites in the entire flash memory 110. With such a configuration, it is possible to reliably secure a holdable period even for a block having a large number of rewrites.

近年のフラッシュメモリ110には、各ブロックへの書き換えを平均化するためのウェアレベリング技術が用いられている。ウェアレベリング技術を用いているフラッシュメモリ110では、各ブロックへの書き換え回数および/または書き換え回数の最大値をフラッシュメモリ110側のメモリが保持している。取得部220は、このフラッシュメモリ110側のメモリを参照することで、各ブロックにおける書き換え回数の最大値を取得、または、各ブロックにおける書き換え回数を取得し最大値を抽出する。   In recent flash memories 110, a wear leveling technique for averaging rewriting to each block is used. In the flash memory 110 using the wear leveling technology, the memory on the flash memory 110 side holds the number of rewrites to each block and / or the maximum value of the number of rewrites. The acquisition unit 220 acquires the maximum number of rewrites in each block by referring to the memory on the flash memory 110 side, or acquires the maximum number of rewrites in each block and extracts the maximum value.

また、取得部220は、フラッシュメモリ110に記憶されたデータの所定の時点における必要保持期間も取得する。本実施形態において、取得部220は、電子機器200の積算稼働時間(電子機器200が稼働した時間を積算した時間=フラッシュメモリ110を使用した時間)を利用して必要保持期間を取得する。電子機器200は、アワーメータ、リアルタイムクロックのデータを図示しないメモリに記憶して積算することで積算稼働時間を導出しているので、まず、取得部220は、かかる積算稼働時間を取得する。   The acquisition unit 220 also acquires a necessary retention period at a predetermined point in time for data stored in the flash memory 110. In the present embodiment, the acquisition unit 220 acquires the required holding period using the accumulated operation time of the electronic device 200 (the time obtained by integrating the time when the electronic device 200 is operated = the time when the flash memory 110 is used). Since the electronic device 200 derives the accumulated operation time by storing the hour meter and real time clock data in a memory (not shown) and integrating the data, first, the acquisition unit 220 acquires the accumulated operation time.

例えば、想定される使用温度で、使用できる期間(設計期間)を30年として設計されたフラッシュメモリ110を例に挙げて説明する。設計期間30年間で電子機器200が稼働する総稼働時間を3000時間とする。このとき、電子機器200の稼働率が略一定、かつ電子機器200の稼働中にフラッシュメモリ110の書き換えの頻度が略一定としている。   For example, the flash memory 110 designed with an assumed use temperature and a usable period (design period) of 30 years will be described as an example. The total operation time for which the electronic device 200 operates in the design period of 30 years is set to 3000 hours. At this time, the operating rate of the electronic device 200 is substantially constant, and the frequency of rewriting the flash memory 110 during the operation of the electronic device 200 is substantially constant.

そうすると、所定の時点において、電子機器200が既に2000時間稼働していた場合すなわち積算稼働時間が2000時間であった場合、電子機器200の総稼働時間3000時間の2/3稼働していることになる。したがって、所定の時点において、電子機器200は、稼働を開始してから設計期間30年の2/3、すなわち20年が経過していることになる。つまり、取得部220は、設計期間30年から所定の時点までの期間である20年を減算した10年を、データの必要保持期間として取得する。   Then, at a predetermined point in time, when the electronic device 200 has been operating for 2000 hours, that is, when the accumulated operating time is 2000 hours, the electronic device 200 is operating 2/3 of the total operating time of 3000 hours. Become. Therefore, at a predetermined time point, the electronic device 200 has been 2/3 of the design period of 30 years, that is, 20 years since the start of operation. That is, the acquisition unit 220 acquires 10 years as a necessary data retention period by subtracting 20 years, which is a period from a design period of 30 years to a predetermined time point.

フラッシュメモリ110への書き換え回数と、フラッシュメモリ110に記憶されたデータの保持可能期間との関係は、フラッシュメモリ110の温度によって大きく異なる。したがって、フラッシュメモリ110の温度と、参照情報310における所定温度が異なる場合に、必要保持期間を換算し直す必要がある。   The relationship between the number of rewrites to the flash memory 110 and the retention period of data stored in the flash memory 110 varies greatly depending on the temperature of the flash memory 110. Therefore, when the temperature of the flash memory 110 and the predetermined temperature in the reference information 310 are different, it is necessary to convert the necessary holding period again.

図4は、書き換え回数および保持可能期間の温度依存性を説明するための説明図である。図4に示すように、所定の書き換え回数における保持可能期間は、フラッシュメモリ110の温度が上昇するに従って、小さくなることが分かる。したがって、フラッシュメモリ110の温度が、参照情報310における所定温度と等しければ必要保持期間を換算する必要はないが、参照情報310における所定温度と設計段階において想定されるフラッシュメモリ110の使用温度(以下、単に設計温度と称する)とが異なる場合や、所定温度と利用開始から所定の時点までの実際のフラッシュメモリ110の温度とが異なる場合には、必要保持期間を所定温度で換算する必要がある。   FIG. 4 is an explanatory diagram for explaining the temperature dependence of the number of rewrites and the holdable period. As shown in FIG. 4, it can be seen that the holdable period at a predetermined number of rewrites becomes smaller as the temperature of the flash memory 110 rises. Therefore, if the temperature of the flash memory 110 is equal to the predetermined temperature in the reference information 310, it is not necessary to convert the required holding period. However, the predetermined temperature in the reference information 310 and the use temperature of the flash memory 110 assumed in the design stage (hereinafter referred to as the reference information 310). If the predetermined temperature differs from the actual temperature of the flash memory 110 from the start of use to a predetermined time, the required holding period needs to be converted to the predetermined temperature. .

換算部222は、取得部220が取得した、フラッシュメモリ110の利用開始から所定の時点までの温度における必要保持期間を、参照情報310の所定温度(60℃)における必要保持期間に換算した換算必要保持期間を算出する。   The conversion unit 222 needs to convert the required holding period at the temperature from the start of use of the flash memory 110 to a predetermined time acquired by the acquiring unit 220 into the required holding period at the predetermined temperature (60 ° C.) of the reference information 310. Calculate the retention period.

フラッシュメモリ110は設計された状態での利用が想定されるため、フラッシュメモリ110の利用開始から所定の時点までの温度は、予め定められた温度、例えばフラッシュメモリ110の設計温度とすることができる。また、フラッシュメモリ110の温度の履歴を取得できる環境においては、より現実的な値を導出すべく、換算部222が、所定の時点までのフラッシュメモリ110を利用した期間におけるフラッシュメモリ110の温度の履歴を用いてフラッシュメモリ110の温度を算出することも可能である。   Since the flash memory 110 is assumed to be used in a designed state, the temperature from the start of use of the flash memory 110 to a predetermined time can be a predetermined temperature, for example, the design temperature of the flash memory 110. . Also, in an environment where the temperature history of the flash memory 110 can be acquired, the conversion unit 222 calculates the temperature of the flash memory 110 during the period of use of the flash memory 110 up to a predetermined time in order to derive a more realistic value. It is also possible to calculate the temperature of the flash memory 110 using the history.

図5は、第1の実施形態における利用開始から所定の時点までのフラッシュメモリ110の温度の算出を説明するための説明図である。図5(a)に示すように、フラッシュメモリ110の温度は、季節、天気、設置場所(屋外、屋内、車内等)等によって異なる。そこで、まず、図5(b)に示すように、換算部222は、所定の温度範囲ごとの、利用開始から所定の時点までの期間を集計する。そして、換算部222は、図5(c)の式(1)に示すアレニウスの式を用いて、各温度範囲の期間を所定温度(60℃)の期間に換算して合計する。   FIG. 5 is an explanatory diagram for explaining the calculation of the temperature of the flash memory 110 from the start of use to a predetermined time in the first embodiment. As shown in FIG. 5A, the temperature of the flash memory 110 varies depending on the season, weather, installation location (outdoor, indoor, in-car, etc.) and the like. Therefore, first, as shown in FIG. 5B, the conversion unit 222 totals the period from the start of use to a predetermined time for each predetermined temperature range. And the conversion part 222 converts and totals the period of each temperature range into the period of predetermined temperature (60 degreeC) using the Arrhenius formula shown to Formula (1) of FIG.5 (c).

式(1)に示すアレニウスの式において、ATFは温度換算係数を、Eaは活性化エネルギー(eV)を、Kはボルツマン定数8.62×10−5(eV/K)を示す。式(1)における換算したい絶対温度は、温度範囲(例えば40℃)に273を加算した値313Kとなり、換算後の絶対温度は、所定温度の60℃に273を加算した333Kとなる。ここで、活性化エネルギーを1.1eVとすると、式(1)により40℃における温度換算係数ATFは、0.08641となる。 In the Arrhenius equation shown in equation (1), ATF represents a temperature conversion coefficient, Ea represents activation energy (eV), and K represents Boltzmann constant 8.62 × 10 −5 (eV / K). The absolute temperature to be converted in Equation (1) is a value 313K obtained by adding 273 to a temperature range (for example, 40 ° C.), and the absolute temperature after conversion is 333K obtained by adding 273 to 60 ° C. of the predetermined temperature. Here, when the activation energy is 1.1 eV, the temperature conversion coefficient ATF at 40 ° C. is 0.08641 according to the equation (1).

そして、図5(b)に示すように40℃の期間が2.01年であった場合、換算部222は、かかる期間を60℃に換算するために、2.01年に温度換算係数ATFの0.08641を乗算し、換算値約0.174年を得る。同様にして、換算部222は、各温度範囲の期間をそれぞれ60℃に換算し、各温度範囲の換算値を合計し、合計した値を60℃における、利用開始から所定の時点までのフラッシュメモリ110の利用期間とする。ここで、例えば、60℃に換算した利用期間が2年であるとする。   And when the 40 degreeC period was 2.01 years as shown in FIG.5 (b), in order to convert this period into 60 degreeC, the conversion part 222 will be temperature conversion coefficient ATF in 2.01 years. Is multiplied by 0.08641 to obtain a conversion value of about 0.174 years. Similarly, the conversion unit 222 converts the period of each temperature range to 60 ° C., sums the converted values of each temperature range, and calculates the total value at 60 ° C. from the start of use to a predetermined time point. 110 usage periods. Here, for example, it is assumed that the usage period converted to 60 ° C. is two years.

換算部222は、現実の利用期間である20年と換算した利用期間の2年とを用いて、換算した設計期間を算出する。ここでは、現実の利用期間に0.1を乗算すると換算した利用期間を算出できる。したがって、所定の時点から設計期間終了までのフラッシュメモリ110の温度変化が、利用開始から所定の時点までのフラッシュメモリ110の温度変化と同様であると仮定すると、設計期間30年に0.1を乗算した3年が換算した設計期間となる。そして換算部222は、換算した設計期間3年から換算した利用期間2年を減算して、換算必要保持期間1年を算出する。   The conversion unit 222 calculates the converted design period by using the actual usage period of 20 years and the converted usage period of 2 years. Here, the converted usage period can be calculated by multiplying the actual usage period by 0.1. Accordingly, assuming that the temperature change of the flash memory 110 from the predetermined time point to the end of the design period is the same as the temperature change of the flash memory 110 from the start of use to the predetermined time point, 0.1 is set to 0.1 in the design period 30 years. The multiplied 3 years is the converted design period. Then, the conversion unit 222 subtracts the converted usage period of 2 years from the converted design period of 3 years to calculate the conversion required holding period of 1 year.

本実施形態において、換算部222は、関数を利用して換算必要保持期間を算出しているが、これに限定されず、例えば、図6に示すアレニウスの式を用いて生成した温度換算係数ATFのテーブルを予め保持部212に保持させておき、かかるテーブルを参照して換算必要保持期間を算出してもよい。   In the present embodiment, the conversion unit 222 calculates the necessary conversion retention period using a function, but is not limited to this. For example, the temperature conversion coefficient ATF generated using the Arrhenius equation shown in FIG. These tables may be held in the holding unit 212 in advance, and the conversion required holding period may be calculated with reference to the table.

上述したように、フラッシュメモリ110の温度は、設計段階である程度予測されてはいるものの、フラッシュメモリ110を使用する場所の緯度、高度、日照時間等によっては、予測された温度と相違する場合もある。このように、換算部222が、フラッシュメモリ110の温度を、利用開始から所定の時点までのフラッシュメモリ110を利用した期間におけるフラッシュメモリ110の温度の履歴を用いて正確に算出する構成により、フラッシュメモリ110の温度の設計値からのずれを補足することができ、精度よくフラッシュメモリ110の温度を導出することが可能となる。   As described above, although the temperature of the flash memory 110 is predicted to some extent at the design stage, it may differ from the predicted temperature depending on the latitude, altitude, sunshine duration, etc. of the place where the flash memory 110 is used. is there. As described above, the conversion unit 222 accurately calculates the temperature of the flash memory 110 using the history of the temperature of the flash memory 110 during the period of use of the flash memory 110 from the start of use to a predetermined time point. A deviation from the design value of the temperature of the memory 110 can be supplemented, and the temperature of the flash memory 110 can be derived with high accuracy.

導出部224は、保持部212に保持されている参照情報310を参照して、取得部220が取得した書き換え回数から保持可能期間を導出する。   The deriving unit 224 refers to the reference information 310 held in the holding unit 212 and derives a holdable period from the number of rewrites acquired by the acquisition unit 220.

図7は、第1の実施形態にかかる導出部224の処理を説明するための説明図である。図7に示すように、参照情報310は、60℃における書き換え回数と、保持可能期間との関係を示す情報である。例えば、取得部220が取得した書き換え回数が、3000(3K)回である場合、導出部224は、参照情報310を参照して、保持可能期間として、0.5年を導出する。これは、既に3000回の書き換えが行われている場合、その書き換えられたデータは早くて0.5年後には消失する可能性があることを示唆している。   FIG. 7 is an explanatory diagram for explaining the processing of the derivation unit 224 according to the first embodiment. As shown in FIG. 7, the reference information 310 is information indicating the relationship between the number of rewrites at 60 ° C. and the holdable period. For example, when the number of rewrites acquired by the acquisition unit 220 is 3000 (3K) times, the deriving unit 224 refers to the reference information 310 and derives 0.5 years as the retention period. This suggests that if rewriting has already been performed 3000 times, the rewritten data may be lost after 0.5 years at the earliest.

比較部226は、換算部222が換算した、所定温度(60℃)における必要保持期間(換算必要保持期間)と、導出部224が導出した保持可能期間とを比較する。   The comparison unit 226 compares the required holding period (converted required holding period) at the predetermined temperature (60 ° C.) converted by the conversion unit 222 with the holdable period derived by the derivation unit 224.

警告部228は、必要保持期間が保持可能期間を超えている場合に警告する。図7に示すように、本実施形態において、換算部222が換算した換算必要保持期間は1年であり、導出部224が導出した保持可能期間は0.5年であるため、警告部228は警告をする。これは、図7に示すグラフを用いると、取得部220が取得した書き換え回数と、必要保持期間との交点Aが、基準線312の右側にあることを示す。したがって、警告部228は交点Aが基準線312の右側にあれば警告を発し、左側にあれば警告を発しないとすることもできる。   The warning unit 228 warns when the necessary holding period exceeds the holdable period. As shown in FIG. 7, in this embodiment, the conversion required holding period converted by the conversion unit 222 is 1 year, and the holdable period derived by the derivation unit 224 is 0.5 year. Warn. This indicates that, using the graph shown in FIG. 7, the intersection A between the number of rewrites acquired by the acquisition unit 220 and the necessary holding period is on the right side of the reference line 312. Therefore, the warning unit 228 may issue a warning if the intersection A is on the right side of the reference line 312 and may not issue a warning if it is on the left side.

警告部228は、図示しない表示部に警告を示す表示を表示させたり、スピーカに警告を示す音声を出力させたり、LEDを点灯させたりすることで警告を行う。また、警告部228が実施する警告には、後述するように、書換制御部230に電気信号(警告信号)を送信することも含むものとする。   The warning unit 228 issues a warning by displaying a warning display on a display unit (not shown), outputting a sound indicating a warning to a speaker, or lighting an LED. Further, the warning executed by the warning unit 228 includes transmission of an electrical signal (warning signal) to the rewrite control unit 230 as described later.

上述したように、データの保持可能期間は、フラッシュメモリ110の温度と書き換え回数によって決定される。したがって、フラッシュメモリ110の温度と書き換え回数を取得して、データの保持可能期間を算出し、フラッシュメモリ110へ書込んだデータの必要保持期間が、保持可能期間を超えていた場合に警告をすることで、フラッシュメモリ110のデータが不用意に消失してしまうといった事態を回避することが可能となる。   As described above, the data retention period is determined by the temperature of the flash memory 110 and the number of rewrites. Therefore, the temperature and the number of rewrites of the flash memory 110 are acquired, the data retention period is calculated, and a warning is issued when the required retention period of data written to the flash memory 110 exceeds the retention period This makes it possible to avoid a situation in which the data in the flash memory 110 is inadvertently lost.

書換制御部230は、警告部228から送信された警告信号を受信すると、このままの書き換え頻度または書き換えデータ量を継続すると設計期間(利用想定期間)を全うできなくなることを認識し、コントローラ214を制御して、フラッシュメモリ110への書き換えの頻度(例えば、故障時のエラー要因の記録等ログを取る頻度)またはデータ量を制限する。例えば、書換制御部230は、予めフラッシュメモリ110への書き換えの頻度またはデータ量の制限を複数レベルに定めておき、保持可能期間と必要保持期間との差分の程度に基づいて、例えば、差分に比例して、どの程度フラッシュメモリ110への書き換えの頻度またはデータ量の制限を遂行すればよいかを換算して対応するレベルを選択してもよい。   When the rewrite control unit 230 receives the warning signal transmitted from the warning unit 228, the rewrite control unit 230 recognizes that the design period (expected usage period) cannot be completed if the rewriting frequency or the rewritten data amount is maintained as it is, and controls the controller 214. Then, the frequency of rewriting to the flash memory 110 (for example, the frequency of logging such as recording of error factors at the time of failure) or the data amount is limited. For example, the rewrite control unit 230 sets the frequency of rewriting to the flash memory 110 or the data amount limit to a plurality of levels in advance, and determines, for example, the difference based on the degree of difference between the holdable period and the necessary hold period. Proportionally, the level corresponding to the frequency of rewriting to the flash memory 110 or the limitation of the data amount may be converted and the corresponding level may be selected.

かかる構成により、フラッシュメモリ110の設計期間まで、データが消失することなくフラッシュメモリ110を利用することができる。   With this configuration, the flash memory 110 can be used without data loss until the design period of the flash memory 110.

図8は、参照情報の他の例を説明するための説明図である。図8に示すように、参照情報330は、想定される複数の温度毎(例えば+40℃、+50℃、+60℃、+70℃、+80℃の5つ)の書き換え回数と保持可能期間との関係を示す情報である。ここでも、上述した参照情報310と同様に、保持可能期間の限界値に所定の余裕を持たせている。   FIG. 8 is an explanatory diagram for explaining another example of the reference information. As shown in FIG. 8, the reference information 330 indicates the relationship between the number of rewrites and the holdable period for each of a plurality of assumed temperatures (for example, + 40 ° C., + 50 ° C., + 60 ° C., + 70 ° C., and + 80 ° C.). Information. Here, similarly to the reference information 310 described above, a predetermined margin is given to the limit value of the holdable period.

保持部212が参照情報330を保持する場合、換算部222は、フラッシュメモリ110の温度(例えば、設計温度や利用開始から所定の時点までの温度の平均値)に近い温度に対応する参照情報330を選択し、例えば、利用開始から所定の時点までの温度の平均値が48℃の場合、+50℃の参照情報330を選択し、選択結果を導出部224に伝達する。そして、導出部224は、換算部222から伝達された選択結果に基づいて、フラッシュメモリ110の温度に近い温度に対応する参照情報330を参照して保持可能期間を導出することもできる。   When the holding unit 212 holds the reference information 330, the conversion unit 222 uses the reference information 330 corresponding to a temperature close to the temperature of the flash memory 110 (for example, the design temperature or the average value of the temperatures from the start of use to a predetermined time). For example, when the average value of the temperature from the start of use to a predetermined time is 48 ° C., the reference information 330 of + 50 ° C. is selected, and the selection result is transmitted to the derivation unit 224. Then, the deriving unit 224 can derive the holdable period by referring to the reference information 330 corresponding to the temperature close to the temperature of the flash memory 110 based on the selection result transmitted from the conversion unit 222.

以上説明したように、電子機器200は、フラッシュメモリ110の書き換え回数だけでなく、データの保持可能期間と必要保持期間を考慮して警告を行うため、データを消失する前に確実に警告を行うことが可能となる。また、上述したように、フラッシュメモリ110の保持可能期間は、フラッシュメモリ110の温度に大きく影響を受ける。したがって、電子機器200がフラッシュメモリ110の温度を利用して保持可能期間を算出することで、より、実情に即した保持可能期間を算出することが可能となる。   As described above, the electronic device 200 issues a warning in consideration of not only the number of times the flash memory 110 is rewritten but also the data retention period and the necessary retention period. It becomes possible. Further, as described above, the holdable period of the flash memory 110 is greatly affected by the temperature of the flash memory 110. Therefore, by calculating the holdable period using the temperature of the flash memory 110 by the electronic device 200, it is possible to calculate the holdable period in accordance with the actual situation.

(メモリ制御方法)
次に、上述した電子機器200を用いてフラッシュメモリ110を制御するメモリ制御方法について説明する。図9は、第1の実施形態にかかるメモリ制御方法の処理の流れを説明するためのフローチャートである。
(Memory control method)
Next, a memory control method for controlling the flash memory 110 using the electronic device 200 described above will be described. FIG. 9 is a flowchart for explaining a processing flow of the memory control method according to the first embodiment.

図9に示すように、まず、電子機器200の保持部212は、フラッシュメモリ110への書き換え回数と、そのフラッシュメモリ110に記憶されたデータの保持可能期間との関係を示す参照情報を予め保持しておき、取得部220が、所定の時点におけるフラッシュメモリ110への書き換え回数と、そのフラッシュメモリ110が所定の時点からデータを保持し続けなければならない期間である必要保持期間とを取得する(S350)。   As shown in FIG. 9, first, the holding unit 212 of the electronic device 200 holds in advance reference information indicating the relationship between the number of rewrites to the flash memory 110 and the retention period of the data stored in the flash memory 110. In addition, the acquisition unit 220 acquires the number of rewrites to the flash memory 110 at a predetermined point in time and a necessary holding period, which is a period during which the flash memory 110 must continue to hold data from the predetermined point ( S350).

換算部222は、取得ステップS350において取得したフラッシュメモリ110の温度における必要保持期間を、参照情報310の所定温度における必要保持期間換算した換算必要保持期間を算出する(S352)。   The conversion unit 222 calculates the conversion required holding period obtained by converting the required holding period at the temperature of the flash memory 110 acquired in the acquisition step S350 into the required holding period at the predetermined temperature of the reference information 310 (S352).

そして、導出部224は、保持部212が保持する参照情報を参照して、取得ステップS350において取得した書き換え回数から保持可能期間を導出する(S354)。その後、比較部226は、換算ステップS352において算出した換算必要保持期間と、導出ステップS354で導出した保持可能期間とを比較し、換算必要保持期間が保持可能期間を超えているか否かを判定する(S356)。   Then, the deriving unit 224 refers to the reference information held by the holding unit 212 and derives the holdable period from the number of rewrites acquired in the acquisition step S350 (S354). After that, the comparison unit 226 compares the necessary conversion holding period calculated in the conversion step S352 with the holdable period derived in the derivation step S354, and determines whether the conversion required holding period exceeds the holdable period. (S356).

判定ステップS356において、換算必要保持期間が保持可能期間を超えていると(S356のYES)、警告部228は、警告するとともに警告信号を書換制御部230に送信する(S358)。そして、書換制御部230は、警告信号を受信すると、コントローラ214を制御して、フラッシュメモリ110への書き換えの頻度(例えば、故障時のエラー要因の記録等ログを取る頻度)またはデータ量を制限する(S360)。   In the determination step S356, when the conversion required holding period exceeds the holdable period (YES in S356), the warning unit 228 warns and transmits a warning signal to the rewrite control unit 230 (S358). When the rewrite control unit 230 receives the warning signal, the rewrite control unit 230 controls the controller 214 to limit the frequency of rewriting to the flash memory 110 (for example, the frequency of recording a log of error factors at the time of failure) or the amount of data. (S360).

以上説明したように、本実施形態にかかるメモリ制御方法においても、フラッシュメモリ110の書き換え回数のみならず、データを保持できる期間を算出することで、フラッシュメモリ110の高集積化が進んだとしてもフラッシュメモリ110に保持されたデータが不用意に消失してしまう事態を回避することが可能となる。   As described above, even in the memory control method according to the present embodiment, not only the number of rewrites of the flash memory 110 but also the time period during which data can be retained is calculated, so that even if the integration of the flash memory 110 has advanced. It is possible to avoid a situation where the data held in the flash memory 110 is inadvertently lost.

(第2の実施形態:電子機器400)
上述した第1の実施形態における電子機器200は、フラッシュメモリ110の必要保持期間と保持可能期間とを比較して警告を発しているが、書き換え回数を比較することで警告を発することもできる。第2の実施形態では、かかる書き換え回数を比較することで警告を発する電子機器400について説明する。なお、上述した第1の実施形態の電子機器200と実質的に等しい構成要素については、同一の符号を付して説明を省略する。
(Second embodiment: electronic device 400)
The electronic device 200 according to the first embodiment described above issues a warning by comparing the required retention period and the retention period of the flash memory 110, but can also issue a warning by comparing the number of rewrites. In the second embodiment, an electronic device 400 that issues a warning by comparing the number of rewrites will be described. In addition, about the component substantially equivalent to the electronic device 200 of 1st Embodiment mentioned above, the same code | symbol is attached | subjected and description is abbreviate | omitted.

図10は、第2の実施形態にかかる電子機器400の概略的な構成を示した機能ブロック図である。電子機器400は、フラッシュメモリ110に接続され、中央制御部410と、保持部412と、コントローラ214を含んで構成される。   FIG. 10 is a functional block diagram showing a schematic configuration of the electronic apparatus 400 according to the second embodiment. The electronic device 400 is connected to the flash memory 110 and includes a central control unit 410, a holding unit 412, and a controller 214.

中央制御部410は、第1の実施形態の中央制御部210同様、中央処理装置(CPU)、プログラム等が格納されたROM、ワークエリアとしてのRAM等を含む半導体集積回路により、電子機器400全体を制御する。   Similar to the central control unit 210 of the first embodiment, the central control unit 410 includes a central processing unit (CPU), a ROM that stores programs, a semiconductor integrated circuit including a RAM as a work area, and the like, and the entire electronic device 400. To control.

保持部412は、フラッシュメモリに記憶されたデータの必要保持期間と、そのフラッシュメモリへの書き換え回数の限度を示す書き換え限度回数との関係を示す参照情報を保持する。   The holding unit 412 holds reference information indicating the relationship between the required holding period of data stored in the flash memory and the rewrite limit number indicating the limit of the number of rewrites to the flash memory.

図11は、第2の実施形態にかかる参照情報510を説明するための説明図である。図11に示すように、本実施形態において、参照情報510は、所定温度における必要保持期間と、書き換え限度回数との関係を示す情報である。本実施形態において参照情報510における所定温度は、例えば60℃とする。参照情報510は、対象となるフラッシュメモリ110への必要保持期間が短くなるに連れて、書き換え限度回数が増加することを示す。ただし、ここでは、書き換え限度回数の限界値に所定の余裕を持たせている。   FIG. 11 is an explanatory diagram for explaining the reference information 510 according to the second embodiment. As shown in FIG. 11, in the present embodiment, the reference information 510 is information indicating the relationship between the required holding period at a predetermined temperature and the number of rewrite limits. In the present embodiment, the predetermined temperature in the reference information 510 is 60 ° C., for example. The reference information 510 indicates that the number of rewrite limits increases as the required retention period in the target flash memory 110 becomes shorter. However, here, a predetermined margin is given to the limit value of the rewrite limit number.

また、本実施形態において中央制御部410は、取得部220、換算部422、導出部424、比較部426、警告部428、書換制御部230としても機能する。   In the present embodiment, the central control unit 410 also functions as the acquisition unit 220, the conversion unit 422, the derivation unit 424, the comparison unit 426, the warning unit 428, and the rewrite control unit 230.

換算部422は、フラッシュメモリ110の温度における、取得部220が取得した必要保持期間を所定温度における必要保持期間に換算した換算必要保持期間を算出する。   The conversion unit 422 calculates a conversion required holding period in which the required holding period acquired by the acquisition unit 220 at the temperature of the flash memory 110 is converted into a required holding period at a predetermined temperature.

導出部424は、参照情報510を参照して、換算部422が算出した換算必要保持期間から書き換え限度回数を導出する。図11に示すように、例えば、換算部422が算出した換算必要保持期間が1年である場合、導出部424は書き換え限度回数1000回(1K)を導出する。   The derivation unit 424 refers to the reference information 510 and derives the rewrite limit number from the conversion required holding period calculated by the conversion unit 422. As shown in FIG. 11, for example, when the conversion necessary retention period calculated by the conversion unit 422 is one year, the deriving unit 424 derives the rewrite limit number of 1000 times (1K).

比較部426は、取得部220が取得した書き換え回数と、導出部424が導出した書き換え限度回数とを比較する。   The comparison unit 426 compares the number of rewrites acquired by the acquisition unit 220 with the number of rewrite limits derived by the derivation unit 424.

警告部428は、書き換え回数が書き換え限度回数を超えている場合に警告する。本実施形態においても、警告部428は、書き換え回数が書き換え限度回数を超えている場合に書換制御部230に警告信号を送信する。例えば、導出部424が導出した書き換え限度回数が1000回(1K)であり、取得部220が取得した書き換え回数が3000回(3K)である場合、警告部428は警告する。これは、図11に示すグラフを用いると、取得部220が取得した書き換え回数と、書き換え限度回数との交点Bが、基準線512の右側にあることを示す。したがって、警告部428は交点Bが基準線512の右側にあれば警告を発し、左側にあれば警告を発しないとすることもできる。   The warning unit 428 gives a warning when the number of rewrites exceeds the rewrite limit number. Also in the present embodiment, the warning unit 428 transmits a warning signal to the rewrite control unit 230 when the number of rewrites exceeds the rewrite limit number. For example, when the rewrite limit number derived by the deriving unit 424 is 1000 (1K) and the rewrite number acquired by the acquiring unit 220 is 3000 (3K), the warning unit 428 warns. This indicates that, when the graph shown in FIG. 11 is used, the intersection B between the number of rewrites acquired by the acquisition unit 220 and the number of rewrite limits is on the right side of the reference line 512. Therefore, the warning unit 428 may issue a warning if the intersection B is on the right side of the reference line 512, and may not issue a warning if it is on the left side.

なお上述した第1の実施形態における参照情報310の書き換え回数および保持可能期間は、第2の実施形態における参照510の書き換え限度回数および必要保持期間に対応するものである。   Note that the number of rewrites and the retention period of the reference information 310 in the first embodiment described above correspond to the number of rewrite limits and the required retention period of the reference 510 in the second embodiment.

以上説明したように、本実施形態にかかる電子機器400においても、フラッシュメモリ110の書き換え回数のみならず、データを保持できる期間を算出することで、フラッシュメモリ110の高集積化が進んだとしてもフラッシュメモリ110に保持されたデータが不用意に消失してしまう事態を回避することが可能となる。   As described above, even in the electronic device 400 according to the present embodiment, not only the number of rewrites of the flash memory 110 but also the time period in which the data can be retained is calculated, so that even if the integration of the flash memory 110 is advanced. It is possible to avoid a situation where the data held in the flash memory 110 is inadvertently lost.

(メモリ制御方法)
次に、上述した電子機器400を用いてフラッシュメモリ110を制御するメモリ制御方法について説明する。図12は、第2の実施形態にかかるメモリ制御方法の処理の流れを説明するためのフローチャートである。なお、上述した第1の実施形態のメモリ制御方法と実質的に等しい処理については、同一の符号を付して説明を省略する。
(Memory control method)
Next, a memory control method for controlling the flash memory 110 using the electronic device 400 described above will be described. FIG. 12 is a flowchart for explaining the processing flow of the memory control method according to the second embodiment. Note that processes substantially equivalent to the memory control method of the first embodiment described above are denoted by the same reference numerals, and description thereof is omitted.

図12に示すように、まず、電子機器400の保持部412は、フラッシュメモリ110への書き換え回数と、そのフラッシュメモリ110に記憶されたデータの必要保持期間との関係を示す参照情報510を予め保持しておき、取得部220が、所定の時点におけるフラッシュメモリ110への書き換え回数と、そのフラッシュメモリ110に記憶されたデータの所定の時点における必要保持期間とを取得する(S350)。   As shown in FIG. 12, first, the holding unit 412 of the electronic device 400 previously stores reference information 510 indicating the relationship between the number of rewrites to the flash memory 110 and the required holding period of the data stored in the flash memory 110. The acquisition unit 220 acquires the number of rewrites to the flash memory 110 at a predetermined time and the necessary retention period of the data stored in the flash memory 110 at a predetermined time (S350).

換算部422は、フラッシュメモリ110の温度における、取得ステップS350において取得した必要保持期間を、参照情報310の所定温度における必要保持期間に換算した換算必要保持期間を算出する(S352)。   The conversion unit 422 calculates a conversion required holding period obtained by converting the required holding period acquired in the acquisition step S350 at the temperature of the flash memory 110 into the required holding period at the predetermined temperature of the reference information 310 (S352).

そして、導出部424は、保持部412が保持する参照情報510を参照して、換算ステップ352で算出した換算必要保持期間から書き換え限度回数を導出する(S552)。その後、比較部426は、取得ステップS350において取得した書き換え回数と、導出ステップS552で導出した書き換え限度回数とを比較し、書き換え回数が書き換え限度回数を超えているか否かを判定する(S554)。   Then, the deriving unit 424 refers to the reference information 510 held by the holding unit 412 and derives the rewrite limit number from the conversion required holding period calculated in the conversion step 352 (S552). Thereafter, the comparison unit 426 compares the number of rewrites acquired in the acquisition step S350 with the number of rewrite limits derived in the derivation step S552, and determines whether or not the number of rewrites exceeds the limit number of rewrites (S554).

判定ステップS554において、書き換え回数が書き換え限度回数を超えていると(S554のYES)、警告部428は、警告するとともに警告信号を書換制御部230に送信する(S358)。そして、書換制御部230は、警告信号を受信すると、コントローラ214を制御して、フラッシュメモリ110への書き換えの頻度またはデータ量を制限する(S360)。   In determination step S554, if the number of rewrites exceeds the rewrite limit number (YES in S554), warning unit 428 warns and transmits a warning signal to rewrite control unit 230 (S358). When the rewrite control unit 230 receives the warning signal, the rewrite control unit 230 controls the controller 214 to limit the rewrite frequency or data amount to the flash memory 110 (S360).

以上、添付図面を参照しながら本発明の好適な実施形態について説明したが、本発明はかかる実施形態に限定されないことは言うまでもない。当業者であれば、特許請求の範囲に記載された範疇において、各種の変更例または修正例に想到し得ることは明らかであり、それらについても当然に本発明の技術的範囲に属するものと了解される。   As mentioned above, although preferred embodiment of this invention was described referring an accompanying drawing, it cannot be overemphasized that this invention is not limited to this embodiment. It will be apparent to those skilled in the art that various changes and modifications can be made within the scope of the claims, and these are naturally within the technical scope of the present invention. Is done.

例えば、上述した第1の実施形態では、書き換え回数から保持可能期間を導出して保持可能期間と必要保持期間とを比較し、第2の実施形態では、必要保持期間から書き換え限度回数を導出して書き換え限度回数と書き換え回数とを比較し、警告を発しているが、これに限定されず、書き換え回数および必要保持期間に基づいて、フラッシュメモリの許容温度を導出し、フラッシュメモリの実際の温度と比較して警告を発することもできる。   For example, in the first embodiment described above, the holdable period is derived from the number of rewrites and the holdable period is compared with the necessary hold period, and in the second embodiment, the rewrite limit number is derived from the necessary hold period. The number of rewrites is compared with the number of rewrites, and a warning is issued.However, the present invention is not limited to this, and the allowable temperature of the flash memory is derived based on the number of rewrites and the required retention period, and the actual temperature of the flash memory. You can also issue a warning compared to.

なお、本明細書のメモリ制御方法における各工程は、必ずしもフローチャートとして記載された順序に沿って時系列に処理する必要はなく、並列的あるいはサブルーチンによる処理を含んでもよい。   Note that each step in the memory control method of the present specification does not necessarily have to be processed in time series in the order described in the flowchart, and may include processing in parallel or by a subroutine.

本発明は、フラッシュメモリにおけるデータの消失を未然に防止するための電子機器およびメモリ制御方法に利用することができる。   The present invention can be used for an electronic device and a memory control method for preventing data loss in a flash memory.

100 …メモリ制御システム
110 …フラッシュメモリ
200、400 …電子機器
210、410 …中央制御部
212、412 …保持部
214 …コントローラ
220 …取得部
222、422 …換算部
224、424 …導出部
226、426 …比較部
228、428 …警告部
230 …書換制御部
DESCRIPTION OF SYMBOLS 100 ... Memory control system 110 ... Flash memory 200, 400 ... Electronic device 210, 410 ... Central control part 212, 412 ... Holding part 214 ... Controller 220 ... Acquisition part 222, 422 ... Conversion part 224, 424 ... Derivation part 226, 426 ... Comparison units 228, 428 ... Warning unit 230 ... Rewrite control unit

Claims (11)

フラッシュメモリへの書き換え回数と、そのフラッシュメモリに記憶されたデータを保持し続けることが可能な期間である保持可能期間との関係を示す参照情報を予め保持する保持部と、
所定の時点におけるフラッシュメモリへの書き換え回数と、そのフラッシュメモリが正常に機能しなければならない期間から、前記所定の時点におけるフラッシュメモリを使用した期間を減算した期間である必要保持期間とを取得する取得部と、
前記参照情報を参照して、前記取得部が取得した書き換え回数から前記保持可能期間を導出する導出部と、
前記取得部が取得した前記必要保持期間と、前記導出部が導出した前記保持可能期間とを比較する比較部と、
前記必要保持期間が前記保持可能期間を超えている場合に警告する警告部と、
を備えることを特徴とする電子機器。
A holding unit that holds in advance reference information indicating a relationship between the number of rewrites to the flash memory and a holdable period that is a period during which data stored in the flash memory can be held;
The number of rewrites to the flash memory at a predetermined point in time and a necessary holding period that is a period obtained by subtracting the period of use of the flash memory at the predetermined point from the period during which the flash memory must function normally are acquired. An acquisition unit;
A deriving unit for deriving the holdable period from the number of rewrites acquired by the acquiring unit with reference to the reference information;
A comparison unit that compares the required retention period acquired by the acquisition unit with the holdable period derived by the derivation unit;
A warning section that warns when the required retention period exceeds the retention period;
An electronic device comprising:
前記参照情報は所定温度における前記書き換え回数と前記保持可能期間との関係を示す情報であり、
前記比較部で比較される前段で、フラッシュメモリの温度における、前記取得部が取得した前記必要保持期間を前記所定温度における必要保持期間に換算する換算部をさらに備え、
前記比較部は、前記所定温度における必要保持期間と、前記導出部が導出した前記保持可能期間とを比較することを特徴とする請求項1に記載の電子機器。
The reference information is information indicating a relationship between the number of rewrites at a predetermined temperature and the holdable period,
A conversion unit that converts the required holding period acquired by the acquiring unit into the required holding period at the predetermined temperature at the temperature of the flash memory in the previous stage compared by the comparing unit;
The electronic device according to claim 1, wherein the comparison unit compares the required holding period at the predetermined temperature with the holdable period derived by the deriving unit.
前記参照情報は複数の温度毎の前記書き換え回数と前記保持可能期間との関係を示す情報であり、
前記導出部は、フラッシュメモリの温度に近い温度に対応する参照情報を参照して前記保持可能期間を導出することを特徴とする請求項1に記載の電子機器。
The reference information is information indicating a relationship between the number of rewrites for each of a plurality of temperatures and the holdable period,
The electronic device according to claim 1, wherein the deriving unit derives the holdable period with reference to reference information corresponding to a temperature close to a temperature of the flash memory.
フラッシュメモリが正常に機能しなければならない期間から、フラッシュメモリを使用した期間を減算した期間である必要保持期間と、そのフラッシュメモリへの書き換え回数の限度を示す書き換え限度回数との関係を示す参照情報を予め保持する保持部と、
フラッシュメモリに記憶されたデータの所定の時点における必要保持期間と、前記所定の時点における前記フラッシュメモリへの書き換え回数とを取得する取得部と、
前記参照情報を参照して、前記取得部が取得した必要保持期間から前記書き換え限度回数を導出する導出部と、
前記取得部が取得した前記書き換え回数と、前記導出部が導出した前記書き換え限度回数とを比較する比較部と、
前記書き換え回数が前記書き換え限度回数を超えている場合に警告する警告部と、
を備えることを特徴とする電子機器。
Reference showing the relationship between the required retention period, which is the period when the flash memory must function normally, minus the period when the flash memory is used, and the rewrite limit count indicating the limit of the number of rewrites to the flash memory A holding unit for holding information in advance;
An acquisition unit for acquiring a necessary holding period of data stored in the flash memory at a predetermined time point and the number of rewrites to the flash memory at the predetermined time point;
A deriving unit for deriving the rewrite limit number from the necessary holding period acquired by the acquiring unit with reference to the reference information;
A comparison unit that compares the number of rewrites acquired by the acquisition unit and the number of rewrite limits derived by the derivation unit;
A warning section that warns when the number of times of rewriting exceeds the number of times of rewriting,
An electronic device comprising:
前記参照情報は所定温度における前記必要保持期間と前記書き換え限度回数との関係を示す情報であり、
前記導出部が前記書き換え限度回数を導出する前段で、フラッシュメモリの温度における、前記取得部が取得した前記必要保持期間を前記所定温度における必要保持期間に換算する換算部をさらに備え、
前記導出部は、前記所定温度における必要保持期間から前記書き換え限度回数を導出することを特徴とする請求項4に記載の電子機器。
The reference information is information indicating a relationship between the necessary holding period and the rewrite limit number at a predetermined temperature,
Before the deriving unit derives the number of rewrite limits, the conversion unit further converts the necessary holding period acquired by the acquiring unit at the temperature of the flash memory into the necessary holding period at the predetermined temperature,
The electronic device according to claim 4, wherein the deriving unit derives the rewrite limit number from a necessary holding period at the predetermined temperature.
前記参照情報は複数の温度毎の前記必要保持期間と前記書き換え限度回数との関係を示す情報であり、
前記導出部は、フラッシュメモリの温度に近い温度に対応する参照情報を参照して前記書き換え限度回数を導出することを特徴とする請求項4に記載の電子機器。
The reference information is information indicating a relationship between the required holding period and the rewrite limit number for each of a plurality of temperatures,
The electronic device according to claim 4, wherein the deriving unit derives the number of rewrite limits by referring to reference information corresponding to a temperature close to a temperature of the flash memory.
前記フラッシュメモリの温度は、前記所定の時点までのフラッシュメモリを利用した期間におけるフラッシュメモリの温度の履歴を用いて算出することを特徴とする請求項2、3、5、6のいずれか1項に記載の電子機器。   The temperature of the flash memory is calculated using a history of the temperature of the flash memory during a period in which the flash memory has been used up to the predetermined time point. The electronic device as described in. 前記フラッシュメモリは消去単位となる複数のブロックで形成され、
前記取得部は、前記複数のブロックそれぞれにおける書き換え回数の最大値をフラッシュメモリ全体における前記書き換え回数として取得することを特徴とする請求項1から7のいずれか1項に記載の電子機器。
The flash memory is formed of a plurality of blocks as erase units,
The electronic apparatus according to claim 1, wherein the acquisition unit acquires a maximum value of the number of rewrites in each of the plurality of blocks as the number of rewrites in the entire flash memory.
前記警告部の警告を受けて、前記フラッシュメモリへの書き換えの頻度またはデータ量を制限する書換制御部をさらに備えることを特徴とする請求項1から8のいずれか1項に記載の電子機器。   The electronic device according to claim 1, further comprising a rewrite control unit that receives a warning from the warning unit and limits a rewrite frequency or a data amount of the flash memory. フラッシュメモリへの書き換え回数と、そのフラッシュメモリに記憶されたデータを保持し続けることが可能な期間である保持可能期間との関係を示す参照情報を予め保持し、
所定の時点におけるフラッシュメモリへの書き換え回数と、そのフラッシュメモリが正常に機能しなければならない期間から、前記所定の時点におけるフラッシュメモリを使用した期間を減算した期間である必要保持期間とを取得し、
前記参照情報を参照して、前記取得した書き換え回数から前記保持可能期間を導出し、
取得した前記必要保持期間と、導出した前記保持可能期間とを比較し、
前記必要保持期間が前記保持可能期間を超えている場合に警告することを特徴とするメモリ制御方法。
Reference information indicating the relationship between the number of rewrites to the flash memory and the holdable period, which is a period during which the data stored in the flash memory can be kept, is held in advance.
The number of rewrites to the flash memory at a predetermined time point and a necessary holding period, which is a period obtained by subtracting the period during which the flash memory is used at the predetermined time point from the period during which the flash memory must function normally, are acquired. ,
Referencing the reference information, deriving the holdable period from the acquired number of rewrites,
Comparing the acquired required retention period with the derived retention period,
A memory control method, wherein a warning is issued when the necessary retention period exceeds the retention period.
フラッシュメモリが正常に機能しなければならない期間から、フラッシュメモリを使用した期間を減算した期間である必要保持期間と、そのフラッシュメモリへの書き換え回数の限度を示す書き換え限度回数との関係を示す参照情報を予め保持し、
フラッシュメモリに記憶されたデータの所定の時点における必要保持期間と、前記所定の時点における前記フラッシュメモリへの書き換え回数とを取得し、
前記参照情報を参照して、前記取得した必要保持期間から前記書き換え限度回数を導出し、
取得した前記書き換え回数と、導出した前記書き換え限度回数とを比較し、
前記書き換え回数が前記書き換え限度回数を超えている場合に警告することを特徴とするメモリ制御方法。
A reference that shows the relationship between the required retention period, which is the period when the flash memory must function normally, minus the period when the flash memory is used, and the rewrite limit count that indicates the limit on the number of rewrites to the flash memory. Keep information in advance,
Obtaining the required retention period of the data stored in the flash memory at a predetermined time and the number of rewrites to the flash memory at the predetermined time;
With reference to the reference information, the rewrite limit number is derived from the acquired necessary retention period,
Compare the obtained number of rewrites with the derived number of rewrite limits,
A memory control method, wherein a warning is given when the number of rewrites exceeds the limit number of rewrites.
JP2009235007A 2009-10-09 2009-10-09 Electronic apparatus and method of controlling memory Pending JP2011081694A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009235007A JP2011081694A (en) 2009-10-09 2009-10-09 Electronic apparatus and method of controlling memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009235007A JP2011081694A (en) 2009-10-09 2009-10-09 Electronic apparatus and method of controlling memory

Publications (1)

Publication Number Publication Date
JP2011081694A true JP2011081694A (en) 2011-04-21

Family

ID=44075669

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009235007A Pending JP2011081694A (en) 2009-10-09 2009-10-09 Electronic apparatus and method of controlling memory

Country Status (1)

Country Link
JP (1) JP2011081694A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012238364A (en) * 2011-05-12 2012-12-06 Ricoh Co Ltd Image processing device, refreshing method, and program
CN103514928A (en) * 2012-06-19 2014-01-15 苏州经贸职业技术学院 Memory with countdown reminding
JP2014075015A (en) * 2012-10-04 2014-04-24 Lenovo Singapore Pte Ltd Method of protecting data of nonvolatile memory device
WO2014167621A1 (en) * 2013-04-08 2014-10-16 株式会社日立製作所 Memory module for writing on basis of data retention period
JP2015170017A (en) * 2014-03-05 2015-09-28 キヤノン株式会社 Image forming device, control method of image forming device, and program
US9984731B2 (en) 2015-09-03 2018-05-29 Toshiba Memory Corporation Storage device and storage method
JP2020038741A (en) * 2018-09-04 2020-03-12 株式会社デンソー Device with nonvolatile memory
JP2020129275A (en) * 2019-02-08 2020-08-27 株式会社リコー Information processing device, method, and program
JP2020154674A (en) * 2019-03-20 2020-09-24 株式会社リコー Information processing device, information processing method, and program

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012238364A (en) * 2011-05-12 2012-12-06 Ricoh Co Ltd Image processing device, refreshing method, and program
CN103514928A (en) * 2012-06-19 2014-01-15 苏州经贸职业技术学院 Memory with countdown reminding
JP2014075015A (en) * 2012-10-04 2014-04-24 Lenovo Singapore Pte Ltd Method of protecting data of nonvolatile memory device
WO2014167621A1 (en) * 2013-04-08 2014-10-16 株式会社日立製作所 Memory module for writing on basis of data retention period
JPWO2014167621A1 (en) * 2013-04-08 2017-02-16 株式会社日立製作所 Memory module for writing based on data retention period
JP2015170017A (en) * 2014-03-05 2015-09-28 キヤノン株式会社 Image forming device, control method of image forming device, and program
US9984731B2 (en) 2015-09-03 2018-05-29 Toshiba Memory Corporation Storage device and storage method
JP2020038741A (en) * 2018-09-04 2020-03-12 株式会社デンソー Device with nonvolatile memory
JP2020129275A (en) * 2019-02-08 2020-08-27 株式会社リコー Information processing device, method, and program
JP7183844B2 (en) 2019-02-08 2022-12-06 株式会社リコー Information processing apparatus, method, and program
JP2020154674A (en) * 2019-03-20 2020-09-24 株式会社リコー Information processing device, information processing method, and program
JP7225981B2 (en) 2019-03-20 2023-02-21 株式会社リコー Information processing device, information processing method, and program

Similar Documents

Publication Publication Date Title
JP2011081694A (en) Electronic apparatus and method of controlling memory
KR102373545B1 (en) Circuit and method for generating reference voltage based on temperature coefficient
KR101184554B1 (en) Maintenance operations for multi-level data storage cells
US8982653B2 (en) Method and device for temperature-based data refresh in non-volatile memories
KR102461447B1 (en) Nonvolatile memory system
US20080140918A1 (en) Hybrid non-volatile solid state memory system
US20120268995A1 (en) Non-volatile semiconductor memory device and electronic apparatus
US20160342346A1 (en) Methods of controlling temperature of non-volatile storage device
KR20100006344A (en) Non-volatile memory device and memory system and management method thereof
KR20150133913A (en) Operating method of memory controller
KR101190742B1 (en) Controller for memory and storage system includint the same, method for measuring life span of memory
JP2009526340A (en) Method for estimating and reporting flash disk memory lifetime
JP2010135035A (en) Nonvolatile semiconductor memory and testing method for the same
US20100262392A1 (en) System and method for implementing data storage modes in a data storage system
KR20200049944A (en) Electronic device for managing degradation degree
CN106486150B (en) Memory controller and memory system having the same
CN105159379A (en) Calibration device based on multi-voltage reference and method
KR101193060B1 (en) Semiconductor memory device and operating method thereof
CN101140804A (en) Method of monitoring an erase threshold voltage distribution in a nand flash memory device
CN115424650B (en) Method, device, equipment and medium for determining offline data retention time
TW201810281A (en) Supply power dependent controllable write throughput for memory applications
US9520162B2 (en) DIMM device controller supervisor
JP2012212486A (en) Memory system
TW201835935A (en) Control Method for Improving Data Retention on Non-Volatile Storage Device
KR20150075887A (en) Memory system and operating method thereof

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20111012