JP2007087118A - Controller and portable terminal - Google Patents
Controller and portable terminal Download PDFInfo
- Publication number
- JP2007087118A JP2007087118A JP2005275239A JP2005275239A JP2007087118A JP 2007087118 A JP2007087118 A JP 2007087118A JP 2005275239 A JP2005275239 A JP 2005275239A JP 2005275239 A JP2005275239 A JP 2005275239A JP 2007087118 A JP2007087118 A JP 2007087118A
- Authority
- JP
- Japan
- Prior art keywords
- data
- written
- volatile memory
- program
- memory
- 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.)
- Withdrawn
Links
- 238000001514 detection method Methods 0.000 claims abstract description 24
- 238000006243 chemical reaction Methods 0.000 claims description 2
- 238000000034 method Methods 0.000 description 8
- 238000004364 calculation method Methods 0.000 description 6
- 230000005540 biological transmission Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000000717 retained effect Effects 0.000 description 3
- 239000000470 constituent Substances 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000004590 computer program Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Landscapes
- Techniques For Improving Reliability Of Storages (AREA)
- Telephone Function (AREA)
- For Increasing The Reliability Of Semiconductor Memories (AREA)
Abstract
Description
本発明は、制御装置に関するものであり、特に電源消失時におけるデータのバックアップ機能を備えた制御装置および携帯端末に関する。 The present invention relates to a control device, and more particularly, to a control device and a portable terminal having a data backup function when power is lost.
データ処理を行う制御装置では、データ処理の途中で電源が切れてもデータ処理中のワークメモリのデータをバックアップし、データの消失を阻止することが要求される。制御装置で使用されるワークメモリは、動作速度や書き換え可能回数などの観点から、SRAM(Static Random Access Memory)やDRAM(Dynamic Random Access Memory)といった揮発性メモリが使用される。しかし、揮発性メモリは電源が切れると保持しているデータを消失する性質を持っている。 Control devices that perform data processing are required to back up work memory data that is being processed to prevent data loss even if the power is cut off during data processing. As a work memory used in the control device, a volatile memory such as an SRAM (Static Random Access Memory) or a DRAM (Dynamic Random Access Memory) is used from the viewpoint of the operation speed and the number of rewritable times. However, the volatile memory has a property that the stored data is lost when the power is turned off.
これに対し、特許文献1では、電圧検出回路によって電源電圧の低下を検出したときに、揮発メモリで構成したキャッシュメモリのデータを不揮発メモリであるフラッシュメモリに書き込むことによってデータを保持しておき、次の電源投入時にフラッシュメモリに保持されたデータをハードディスク装置へライトバックし、電源消失時のデータ状態に戻す、という方法を開示している。すなわち、この方法は電源が切れる状態が発生したときにフラッシュメモリへデータがバックアップされる。
しかしながら、フラッシュメモリへの書き込みに要する時間は、通常数μsec以上と長く、キャッシュメモリのすべてのデータをフラッシュメモリへ書き込む前に電源がオフしてしまい、正常にデータを書き込むことができない、といった問題があった。 However, the time required for writing to the flash memory is usually as long as several μsec or more, and the power is turned off before all data in the cache memory is written to the flash memory, so that data cannot be written normally. was there.
本発明はこうした状況に鑑みてなされたものであり、その目的は、データ処理中に電源が消失してもデータの消失を確実に防止することが可能な制御装置を提供することである。 The present invention has been made in view of such circumstances, and an object of the present invention is to provide a control device that can reliably prevent the loss of data even if the power is lost during data processing.
本発明のある態様は制御装置に関する。この装置は、装置の一部もしくは全体を制御する制御部と、前記装置において使用するデータを一時的に記憶しておく揮発性メモリと、揮発性メモリのデータを保持しておく不揮発性メモリと、を備え、揮発性メモリへの書き込みが発生したときに、この揮発性メモリに書き込まれるデータと同一のデータを不揮発性メモリにも書き込む。 One embodiment of the present invention relates to a control device. The device includes a control unit that controls a part or the whole of the device, a volatile memory that temporarily stores data used in the device, and a non-volatile memory that holds data of the volatile memory, When data is written to the volatile memory, the same data as the data written to the volatile memory is written to the nonvolatile memory.
この態様によれば、揮発性メモリに対してデータの書き込みが行われる都度、そのデータと同一データを不揮発性メモリに書き込む制御を行っているため、従来の電源電圧が低下したときに揮発性メモリから不揮発性メモリへのデータ書き込みを行う場合で問題となった、不揮発性メモリへのデータの書き込み動作が完了する前に電源が切れてしまうという問題を回避することができる。したがって、データ処理中に電源が消失してもデータの消失を確実に防止することが可能である。 According to this aspect, every time data is written to the volatile memory, the same data as the data is controlled to be written to the nonvolatile memory. Thus, it is possible to avoid the problem that the power is turned off before the data writing operation to the nonvolatile memory is completed, which is a problem when data is written from the memory to the nonvolatile memory. Therefore, even if the power source is lost during data processing, it is possible to reliably prevent the loss of data.
この態様において、揮発性メモリの所定のアドレス空間にデータの書き込みが行われるか否かを検出するアドレス検出部を更に備え、アドレス検出部において揮発性メモリの所定のアドレス空間にデータの書き込みが行われることを検出した場合に、揮発性メモリに書き込まれるデータと同一のデータを前記不揮発性メモリにも書き込んでもよい。これによれば、揮発性メモリのうちデータ処理に必要なデータが格納されるアドレス空間にデータが書き込まれることを検出したときに、それと同一のデータを不揮発性メモリに保存しておくことができる。したがって、電源立ち上げ後のデータ処理に必要なデータだけを不揮発性メモリに格納させることができるので、コスト及び消費電力を抑制することができる。 In this aspect, an address detection unit that detects whether or not data is written to a predetermined address space of the volatile memory is further provided, and the address detection unit writes data to the predetermined address space of the volatile memory. When it is detected, the same data as the data written in the volatile memory may be written in the nonvolatile memory. According to this, when it is detected that data is written in an address space in which data necessary for data processing is stored in the volatile memory, the same data can be stored in the nonvolatile memory. . Therefore, since only data necessary for data processing after power-on can be stored in the nonvolatile memory, cost and power consumption can be suppressed.
アドレス検出部は、前記制御部で使用するデータを一時的に記憶しておくためのアドレス空間にデータの書き込みが行われるか否かを検出してもよい。これにより、電源が切れた後、次の電源投入の際に制御部で使用してデータを復元できるので、電源が切れる前のデータ処理を継続して行うことができる。 The address detection unit may detect whether or not data writing is performed in an address space for temporarily storing data used by the control unit. Thus, after the power is turned off, the data can be restored by being used by the control unit at the next power-on, so that the data processing before the power is turned off can be continuously performed.
この態様において、不揮発性メモリは、その書き込みに要する速度が揮発性メモリの書き込みに要する速度と同等かもしくはそれ以上であることを特徴とするものであってもよい。また、不揮発性メモリは強誘電体メモリや磁気抵抗メモリによって構成されてもよい。ここで書き込みに要する速度が「同等」であるとは、書き込みに要する時間がほぼ同じオーダーであることを指し、不揮発性メモリの書き込みに要する速度が揮発性メモリの書き込み要する速度よりおおよそ1/10以上であればよい。これによれば、不揮発性メモリへのデータの書き込みが即座に完了するため、揮発性メモリに書き込まれたデータを不揮発性メモリに書き込む途中で、電源が切れてしまうという問題を回避することができる。 In this aspect, the nonvolatile memory may be characterized in that the speed required for writing is equal to or higher than the speed required for writing in the volatile memory. The nonvolatile memory may be composed of a ferroelectric memory or a magnetoresistive memory. Here, the speed required for writing is “equivalent” means that the time required for writing is on the same order, and the speed required for writing in the nonvolatile memory is approximately 1/10 of the speed required for writing in the volatile memory. That is all you need. According to this, since the data writing to the nonvolatile memory is completed immediately, it is possible to avoid the problem that the power is turned off while the data written to the volatile memory is being written to the nonvolatile memory. .
また、この態様において、不揮発性メモリに保持されたデータは、装置の電源が投入されたときに揮発性メモリに書き戻されるようにしてもよい。これにより、装置の電源が切れて揮発性メモリに格納されていたデータ消失した場合であっても、電源を再び投入した時に不揮発性メモリに保持されたデータを揮発性メモリに書き戻すことによって、揮発性メモリの少なくとも一部のデータを電源が切れる前の状態に戻すことが可能となる。したがって、電源再投入後に電源が切れる前のデータ処理を継続することができる。 In this embodiment, the data held in the nonvolatile memory may be written back to the volatile memory when the apparatus is turned on. Thereby, even if the data stored in the volatile memory is lost when the device is turned off, the data held in the nonvolatile memory is written back to the volatile memory when the power is turned on again. It is possible to restore at least a part of the data in the volatile memory to the state before the power is turned off. Therefore, it is possible to continue the data processing before the power is turned off after the power is turned on again.
本発明の別の態様も、制御装置に関する。この装置は、システムを制御するための第1のプログラムと、第1のプログラムを更新するための第2のプログラムとを格納した記憶部と、プログラムを実行する制御部と、制御部が使用するデータを一時的に記憶しておく揮発性メモリと、揮発性メモリのデータを保持しておく不揮発性メモリと、を備え、第1のプログラムを更新する際、第2のプログラムを揮発性メモリへ一時的に記憶しておくとともに、不揮発性メモリにも保持しておく。プログラムの更新を行う場合、更新用のプログラムである第2のプログラムを揮発性メモリに記憶させた後、第2のプログラムは第1のプログラムとともに一旦記憶部から消去されるが、この態様によれば、第2のプログラムを不揮発性メモリにも保持しておく。これにより、第1のプログラムの更新中に電源が切れた場合、揮発性メモリに格納された第2のプログラムは消滅するが、次に電源を立ち上げたときに、不揮発性メモリに保持された第2のプログラムを再び揮発性メモリに格納することによって、電源消失時における第2のプログラムの消失を確実に防止し、再びプログラムの更新を実行することが可能である。 Another aspect of the present invention also relates to a control device. This apparatus is used by a storage unit that stores a first program for controlling the system and a second program for updating the first program, a control unit that executes the program, and a control unit. A volatile memory that temporarily stores data and a non-volatile memory that retains data in the volatile memory are provided, and when the first program is updated, the second program is transferred to the volatile memory. It is stored temporarily and also stored in a non-volatile memory. When updating the program, after the second program, which is an update program, is stored in the volatile memory, the second program is once erased from the storage unit together with the first program. For example, the second program is also stored in the nonvolatile memory. As a result, when the power is turned off during the update of the first program, the second program stored in the volatile memory disappears, but is retained in the nonvolatile memory when the power is turned on next time. By storing the second program in the volatile memory again, it is possible to reliably prevent the second program from being lost when the power is lost, and to update the program again.
本発明の更に別の態様は、携帯端末に関する。この端末は、無線信号を受信するアンテナと、受信した無線信号をベースバンド信号に周波数変換する変換部と、ベースバンド信号を復調する処理部と、復調されたベースバンド信号をもとに、装置の一部もしくは全部を制御する制御部と、前記装置において使用するデータを一時的に記憶しておく揮発性メモリと、揮発性メモリのデータを保持しておく不揮発性メモリと、を備え、揮発性メモリへの書き込みが発生したときに、この揮発性メモリに書き込まれるデータと同一のデータを不揮発性メモリにも書き込む。携帯端末は電池によって駆動することが多く、電池の消費によって処理中に電源が落ちることが多く発生するが、この態様によれば、端末の処理中に電源が消失してもデータの消失を確実に防止することができ、再度電源を立ち上げた際、電源が切れる直前の処理を継続して行うことが可能となる。 Yet another embodiment of the present invention relates to a mobile terminal. The terminal includes an antenna that receives a radio signal, a conversion unit that converts the frequency of the received radio signal into a baseband signal, a processing unit that demodulates the baseband signal, and a device based on the demodulated baseband signal. A control unit that controls part or all of the memory, a volatile memory that temporarily stores data used in the device, and a non-volatile memory that holds data of the volatile memory. When writing to the volatile memory occurs, the same data as that written to the volatile memory is also written to the nonvolatile memory. Mobile terminals are often driven by batteries, and power consumption often drops during processing due to battery consumption. According to this aspect, even if power is lost during terminal processing, data loss is guaranteed. Therefore, when the power is turned on again, the processing immediately before the power is turned off can be continued.
なお、以上の構成要素の任意の組合せ、本発明の表現を方法、装置、システム、コンピュータプログラム、データ構造、記録媒体などの間で変換したものもまた、本発明の態様として有効である。 It should be noted that any combination of the above-described constituent elements and the expression of the present invention converted between a method, an apparatus, a system, a computer program, a data structure, a recording medium, etc. are also effective as an aspect of the present invention.
本発明によれば、データ処理中に電源が消失してもデータの消失を確実に防止することが可能な制御装置を得ることができる。 ADVANTAGE OF THE INVENTION According to this invention, even if a power supply loses | disappears during data processing, the control apparatus which can prevent loss of data reliably can be obtained.
(実施の形態1)
図1は、本発明の実施の形態1に係る制御装置100のブロック構成を示した図である。この制御装置100は、CPU(Central Processing Unit)10と、ハードディスク12と、DRAM(Dynamic Random Access Memory)14と、FeRAM(Ferroelectric Random Access Memory:強誘電体メモリ)16と、アドレス検出部18を備えている。各ブロックはバス20に接続されており、バス20を介して各ブロック間のデータの授受を行う。
(Embodiment 1)
FIG. 1 is a diagram showing a block configuration of a
CPU10は、プログラムにしたがって制御装置100全体の制御及び演算を実行する。また、CPU10は、電源電圧を監視して、データ処理中に電源が消失したことを検出する機能も有する。CPU10はデータ処理中に電源が消失したことを検出した場合、次の電源投入の際に、電源が消失した旨を後述のアドレス検出部18に伝達する。
CPU10 performs control and calculation of the
ハードディスク12は、CPU10を動作させるためのプログラムや、プログラムに使用するデータを格納する。なお、ハードディスクに代えてフラッシュメモリで構成してもよい。
The
DRAM14は、制御装置100で使用するデータを一時的に保持するワークメモリとして使用される揮発性メモリである。このうち、DRAM14の所定のアドレス空間は、CPU10のワークメモリとして用いられ、CPU10の演算に必要なデータや、演算の結果が、DRAM14の所定のアドレス空間に書き込まれる。このCPU10のワークメモリとして使用されるアドレス空間は、常に固定であってもよいし、プログラムによって変更可能としてもよい。
The
FeRAM16は、DRAM14に記憶されるデータのうち、CPU10のワークメモリとして使用されている所定のアドレス空間に記憶されたデータをDRAM16と合わせて保持しておくためのバックアップメモリとして機能する不揮発性メモリである。電源が切れ、DRAM14のデータが消失したとき、次の電源投入の際にCPU10で使用していたデータを復元できれば、電源が切れる前のデータ処理を継続することができる。FeRAM16は、このデータ復元のためのバックアップメモリとして使用される。
The FeRAM 16 is a non-volatile memory that functions as a backup memory for holding data stored in a predetermined address space used as a work memory of the
なお、図1では制御装置100のワークメモリとしてDRAM14を使用しているが、動作速度および書き換え可能回数の観点から揮発性メモリであればよく、例えばSRAM(Static Random Access Memory)によって構成されてもよい。また、図1では揮発性メモリであるDRAM14のバックアップメモリとしてFeRAM16を用いているが、揮発性メモリと同等またはそれ以上のスピードで読み書きが可能な不揮発性メモリであればよく、例えばMRAM(Magnetoresistive random access memory:磁気抵抗メモリ)によって構成されてもよい。
In FIG. 1, the
アドレス検出部18は、DRAM14への書き込みを監視する。そして、CPU10のワークメモリとして使用される所定のアドレス空間に書き込みが発生した場合、そのアドレス空間に書き込まれるデータと同一のデータをFeRAM16へ書き込むよう制御する。
The
具体的には、アドレス検出部18には、DRAM14の制御信号、アドレス信号、及びデータ信号が接続されており、DRAM14の制御信号からDRAM14への書き込みの有無を監視する。そして、DRAM14への書き込みが検出されると、DRAM14のアドレス信号の値から、DRAM14への書き込みがCPU10のワークメモリとして使用される所定のアドレス空間への書き込みかどうかを判断する。なお、CPU10のワークメモリとして使用されるアドレス空間の情報は、CPU10からアドレス検出部18に伝達される。
Specifically, a control signal, an address signal, and a data signal of the
DRAM14への書き込みが所定のアドレス空間への書き込みであった場合、アドレス検出部18は、DRAM14に書き込まれたデータと同一のデータを、そのデータが書き込まれるDRAM14のアドレスの値とあわせて、FeRAM16に書き込むよう、FeRAM16の制御信号、アドレス信号及びデータ信号を生成する。FeRAM16はアドレス検出部18で生成された制御信号等にしたがって、DRAM14に書き込まれたデータと同一のデータと、その書き込みのあったDRAM14のアドレスとを保持する。
When the writing to the
また、アドレス検出部18は、CPU10からデータ処理中に電源が消失した旨の情報が伝達されると、FeRAM16からDRAM14に書き込まれていたデータと、そのデータが書き込まれていたDRAM14のアドレスを読み出し、DRAM14のデータを復元するよう制御する。すなわち、FeRAM16から読み出されたDRAM14のアドレス空間に、読み出されたデータを書き込む。これにより、DRAM14のCPU10のワークメモリとして使用されたアドレス空間には、電源が消失する前に格納されていたデータを復元される。
Further, when the information indicating that the power supply is lost during data processing is transmitted from the
斯かる構成に基づき、図1の制御回路100の動作について説明する。CPU10はハードディスク12に記憶されたプログラムを適宜ダウンロードし、このプログラムに従って制御装置100全体の制御や各種演算を実行する。このとき、CPU10で使用するデータをハードディスク12から読み出してCPU10のワークメモリとして使用されるDRAM14の所定のアドレス空間に書き込む。また、CPU10の演算結果もDRAM14の所定のアドレス空間に書き込まれ、保持される。DRAM14には、その他制御装置100が使用する様々なデータが一時的に格納される。
Based on such a configuration, the operation of the
DRAM14へのデータの書き込みが発生すると、アドレス検出部18はDRAM14への書き込み動作を検出するとともに、そのデータの書き込みがCPU10のワークメモリとして使用される所定のアドレス空間への書き込みか否かを判断する。そして、所定のアドレス空間への書き込みであると判断した場合、その都度そのアドレス空間に書き込まれるデータと同一のデータが、書き込まれたアドレスの値とともに、アドレス検出部18の制御によってFeRAM16に書き込まれる。
When data writing to the
データ処理中に電源が切れると、DRAM14に書き込まれたデータは全て消失するが、FeRAM16に書き込まれたデータは電源が切れても保持される。そして次に電源が投入された際に、CPU10はデータ処理中に電源が消失したことを検出し、その旨をアドレス検出部18に伝達する。アドレス検出部18はこの伝達信号に基づいて、CPU10のワークメモリとして使用されていたDRAM14の所定のアドレス空間にデータを、FeRAM16から書き戻す制御を行う。これにより、DRAM14には消失したデータのうち、CPU10の動作に必要なデータを、電源が切れる前の状態に復帰させることができる。
If the power is turned off during data processing, all data written to the
以上、本発明の実施の形態1に係る制御装置100によれば、揮発性メモリであるDRAM14の所定のアドレス空間にデータが書き込まれるときに、それと同一のデータを不揮発性メモリであるFeRAM16にも書き込んでおく。これにより、以下の作用効果を享受することができる。
As described above, according to the
(1)DRAM14の所定のアドレス空間へのデータの書き込みがされる都度、その同一データをFeRAM16に書き込む制御を行っているため、従来の電源電圧が低下したときに揮発性メモリから不揮発性メモリへのデータ書き込みを行う場合で問題となった、書き込み動作が完了する前に電源が切れてしまうという問題を回避することができる。したがって、データ処理中に電源が消失してもデータの消失を確実に防止することが可能である。
(1) Every time data is written to a predetermined address space of the
(2)バックアップメモリとして揮発性メモリと同等もしくはそれ以上の速さで読み書きが可能な不揮発性メモリを使用しているので、不揮発性メモリへの書き込みも即座に完了する。そのため、揮発性メモリに書き込まれたデータを不揮発性メモリに書き込む途中で、電源が切れてしまうという問題も回避することができる。したがって、データ処理中に電源が消失してもデータの消失を確実に防止することが可能である。 (2) Since a non-volatile memory capable of reading and writing at a speed equivalent to or faster than that of a volatile memory is used as a backup memory, writing to the non-volatile memory is completed immediately. Therefore, it is possible to avoid the problem that the power is turned off while the data written in the volatile memory is being written to the nonvolatile memory. Therefore, even if the power source is lost during data processing, it is possible to reliably prevent the loss of data.
(3)DRAM14に書き込まれるデータのうち、CPU10のワークメモリとして使用されるアドレス空間に書き込まれるデータをFeRAM16に書き込むことにより、電源が切れた後、次の電源投入の際に続けてデータ処理を行うことができる。このように、データ処理の継続に必要なデータをFeRAM16に保存しておき、バックアップに不要なデータはFeRAM16へ書き込まないので、大容量の不揮発性メモリを用意する必要はなく、コスト及び消費電力を抑制することができる。
(3) Of the data written in the
(実施の形態2)
図2は、本発明の制御装置を適用したシステムである、実施の形態2に係る携帯端末200の構成を示した図である。この携帯端末200は、アンテナ210と、RFインタフェース部220と、ベースバンド処理部230と、制御装置240を備えている。
(Embodiment 2)
FIG. 2 is a diagram illustrating a configuration of a
アンテナ210は、無線区間を介して図示しない送信装置からの信号を受信する。RFインタフェース部220は、アンテナ210において受信した無線周波数の信号をベースバンド信号に周波数変換する。ベースバンド処理部230はベースバンド信号を復調する。
The
制御装置240は、復調されたベースバンド信号及び内蔵されたプログラム(内蔵プログラム)を用いて携帯端末200を制御することによりさまざまなアプリケーションを実現するものであり、制御装置240は実施の形態1の制御装置100を適応したものである。ただし、制御装置100のハードディスク12はフラッシュメモリ22に、DRAM14はSRAM24に置き換えられている。制御装置240のその他のブロックは実施の形態1の制御装置100と同じであり、同一の符号を付している。
The
内蔵されたプログラムは、制御装置240のフラッシュメモリ22に格納されている。携帯端末200は、システムの不具合の解消や機能追加を目的として、内蔵プログラムの更新をできるようになっている。このため、フラッシュメモリ22には、通常の内蔵プログラム(システムプログラム)とは別に、システムプログラムの更新を行うための更新用プログラムが書き込まれている。
The built-in program is stored in the
携帯端末200の通常の動作時には、CPU10はシステムプログラムに従って携帯端末200の制御を行う。このとき、携帯端末200の制御装置240は、実施の形態1と同様の方法で、CPU10にて使用されるデータをFeRAM16にバックアップする。すなわち、SRAM24への書き込み動作が発生した場合、それがCPU10のワークメモリとして使用される所定のアドレス空間への書き込みであれば、そのアドレスに書き込まれたデータと同一のデータをFeRAM16に書き込んでおく。こうすることによって、携帯端末200においてデータ処理中に電源が切れた場合、次の電源投入の際にFeRAM16の内容をSRAM24の所定のアドレス空間に書き戻すことができる。
During normal operation of the
一方、システムプログラムの更新時には、CPU10は更新用プログラムに従って、システムプログラムのデータの書換えを行う。以下、システムプログラム更新の手順について説明する。
On the other hand, when updating the system program, the
まず、更新されたシステムプログラムの存在を示す信号が図示しない送信装置から送信され、携帯端末200はアンテナ210でその信号を受信し、RFインタフェース部220、ベースバンド処理部230を介して、制御装置240のCPU10に伝達される。CPU10は、その信号を受け取るとフラッシュメモリ22の更新用プログラムを読み出して、SRAM24のCPU10のワークメモリとして使用される所定のアドレス空間に更新用プログラムを書き込む。このとき、アドレス検出部18はSRAM24の所定のアドレス空間にデータが書き込まれたことを検出し、同一のデータをFeRAM16にも書き込むよう制御する。したがって、FeRAM16にも更新用プログラムが書き込まれる。
First, a signal indicating the presence of the updated system program is transmitted from a transmission device (not shown), and the
次に、更新用プログラムがすべてSRAM24に書き込まれると、CPU10は更新用プログラムにしたがってシステムプログラムの更新作業を実施する。まずCPU10はフラッシュメモリ22のデータを一括消去する。このとき、フラッシュメモリ22の更新用プログラムも一緒に消去される。次に、CPU10は、図示しない送信装置に対して更新されたシステムプログラムの送信要求を送出する。そして、更新されたシステムプログラムを受信し、ベースバンド処理部230で復調されたシステムプログラムをフラッシュメモリ22に書き込む。すべてのシステムプログラムがフラッシュメモリ22に書き込まれると、SRAM24に格納された更新用プログラムがフラッシュメモリ22に書き戻され、更新作業を終了する。
Next, when all the update programs are written in the
この更新作業の途中において電源が切れた場合、次の電源投入の際に、CPU10が更新作業の途中で電源が切れたことを検出する。そして、CPU10はこの情報をアドレス検出部18に伝達する。アドレス検出部18は、CPU10からの情報を得ると、FeRAM16に格納された更新用プログラムをSRAM22に書き戻す。そして、SRAM22の更新用プログラムにしたがって、再びCPU10はシステムプログラムの更新作業を実施する。
When the power is turned off during the update operation, the
以上、本実施の形態2に係る携帯端末200によれば、SRAM24の所定のアドレス空間にデータが書き込まれるときに、それと同一のデータをFeRAM16にも書き込んでおくことにより、本発明の実施の形態1に係る制御装置100と同様の効果を得ることができる。特に、携帯端末200は電池によって駆動することが多く、電池の消費によって処理中に電源が落ちることが頻発するが、この携帯端末200によって、端末の処理中に電源が消失してもデータの消失を確実に防止することができる。したがって、再度電源を立ち上げた際、電源が切れる直前の処理を継続して行うことが可能となる。
As described above, according to the
また、システムプログラムの更新作業中に電源が切れた場合、SRAM24に格納された更新用プログラムは消滅し、前述のようにフラッシュメモリ22にも更新プログラムは存在しないが、携帯端末200では更新作業開始時に更新用プログラムをFeRAM16に格納しておくので、電源消失時において更新用プログラムの消失を確実に防止することが可能である。
Further, when the power is turned off during the updating operation of the system program, the updating program stored in the
以上、本発明を実施の形態をもとに説明した。実施の形態は例示であり、それらの各構成要素や各処理プロセスの組合せにいろいろな変形例が可能なこと、またそうした変形例も本発明の範囲にあることは当業者に理解されるところである。 The present invention has been described based on the embodiments. The embodiments are exemplifications, and it will be understood by those skilled in the art that various modifications can be made to combinations of the respective constituent elements and processing processes, and such modifications are within the scope of the present invention. .
例えば、本実施の形態ではCPU10で電源が消失したことを検出するようにしたが、別途電源消失検出部を設けてもよい。この場合、アドレス検出部18は電源消失検出部から電源が消失した旨の情報を受け取ってもよい。
For example, in the present embodiment, the
また、本実施の形態ではデータ処理中に電源が消失したことを検出した場合に、次の電源立ち上げのときにFeRAM16に格納されたデータをDRAM14に書き戻す構成としたが、電源立ち上げ時に常にFeRAM16に格納されたデータをDRAM14に書き戻すようにしてもよい。この場合、電源が正常に立ち下げられた後に電源が立ち上がった場合もFeRAM16からDRAM14へのデータの書き戻しが発生するが、データ処理中に電源が消失することを検出する必要がないため、本発明の制御回路を簡単な構成で実現することができる。
Further, in this embodiment, when it is detected that the power supply is lost during data processing, the data stored in the
また、本実施の形態ではFeRAM16にデータと合わせて対応するDRAM14のアドレスも格納するように構成したが、CPU10のワークメモリとして使用されるDRAM14の所定のアドレス空間のベースアドレスのみを別途不揮発性メモリに記憶させておき、FeRAM16にはデータのみを保存するように構成してもよい。この場合、DRAM14とFeRAM16との間のアドレスの関係はベースアドレスをもとに演算によって求めるようにすればよい。これにより、アドレス算出用の演算回路が必要になるが、FeRAM16にはデータのみ保存すればよいので、不揮発性メモリの低容量化を図ることができる。
In this embodiment, the address of the
また、実施の形態2では携帯端末200について述べたが、これに限るものではなく、例えば、デジタルテレビやパーソナルコンピュータといった、システムプログラムが更新されるようなシステムであれば適用可能である。この場合、実施の携帯2では、無線回線を介してシステムプログラムを更新する例を述べたが、有線回線を介してシステムプログラムを更新してもよい。もしくは、更新されたシステムプログラムが格納された光ディスクやメモリカードなどの記録媒体をシステムに挿入することにより、システムプログラムの更新が行われてもよい。
In the second embodiment, the
10 CPU
12 ハードディスク
14 DRAM
16 FeRAM
18 アドレス検出制御回路
20 バス
22 フラッシュメモリ
24 SRAM
100 制御装置
200 携帯端末
210 アンテナ
220 RFインタフェース部
230 ベースバンド処理部
240 制御装置
10 CPU
12
16 FeRAM
18 Address
DESCRIPTION OF
Claims (7)
前記装置において使用するデータを一時的に記憶しておく揮発性メモリと、
前記揮発性メモリのデータを保持しておく不揮発性メモリと、を備え、
前記揮発性メモリへの書き込みが発生したときに、この揮発性メモリに書き込まれるデータと同一のデータを前記不揮発性メモリにも書き込むことを特徴とする制御装置。 A control unit for controlling a part or the whole of the device;
Volatile memory for temporarily storing data used in the device;
A non-volatile memory that holds data of the volatile memory,
A control device, wherein when data is written to the volatile memory, the same data as the data written to the volatile memory is written to the nonvolatile memory.
前記アドレス検出部において前記揮発性メモリの所定のアドレス空間にデータの書き込みが行われることを検出した場合に、前記揮発性メモリに書き込まれるデータと同一のデータを前記不揮発性メモリにも書き込むことを特徴とする請求項1に記載の制御装置。 An address detector for detecting whether or not data is written to a predetermined address space of the volatile memory;
When the address detection unit detects that data is written to a predetermined address space of the volatile memory, the same data as the data written to the volatile memory is written to the nonvolatile memory. The control device according to claim 1, wherein
前記プログラムを実行する制御部と、
前記制御部が使用するデータを一時的に記憶しておく揮発性メモリと、
前記揮発性メモリのデータを保持しておく不揮発性メモリと、を備え、
前記第1のプログラムを更新する際、前記第2のプログラムを前記揮発性メモリへ一時的に記憶しておくとともに、前記不揮発性メモリにも保持しておくことを特徴とする制御装置。 A storage unit storing a first program for controlling the system and a second program for updating the first program;
A control unit for executing the program;
A volatile memory for temporarily storing data used by the control unit;
A non-volatile memory that holds data of the volatile memory,
The control device, wherein when updating the first program, the second program is temporarily stored in the volatile memory and also stored in the nonvolatile memory.
受信した無線信号をベースバンド信号に周波数変換する変換部と、
前記ベースバンド信号を復調する処理部と、
復調されたベースバンド信号をもとに、装置の一部もしくは全部を制御する制御部と、
前記装置において使用するデータを一時的に記憶しておく揮発性メモリと、
前記揮発性メモリのデータを保持しておく不揮発性メモリと、を備え、
前記揮発性メモリへの書き込みが発生したときに、この揮発性メモリに書き込まれるデータと同一のデータを前記不揮発性メモリにも書き込むことを特徴とする携帯端末。 An antenna for receiving radio signals;
A conversion unit that converts the frequency of the received radio signal into a baseband signal;
A processing unit for demodulating the baseband signal;
Based on the demodulated baseband signal, a control unit that controls part or all of the device;
Volatile memory for temporarily storing data used in the device;
A non-volatile memory that holds data of the volatile memory,
A portable terminal, wherein when data is written to the volatile memory, the same data as the data written to the volatile memory is written to the nonvolatile memory.
Priority Applications (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005275239A JP2007087118A (en) | 2005-09-22 | 2005-09-22 | Controller and portable terminal |
CN 200610154335 CN1936855A (en) | 2005-09-22 | 2006-09-20 | Control unit and portable terminal |
KR1020060091701A KR20070033916A (en) | 2005-09-22 | 2006-09-21 | Control unit and mobile terminal |
US11/525,010 US20070064514A1 (en) | 2005-09-22 | 2006-09-22 | Control unit and portable terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005275239A JP2007087118A (en) | 2005-09-22 | 2005-09-22 | Controller and portable terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2007087118A true JP2007087118A (en) | 2007-04-05 |
Family
ID=37954365
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2005275239A Withdrawn JP2007087118A (en) | 2005-09-22 | 2005-09-22 | Controller and portable terminal |
Country Status (2)
Country | Link |
---|---|
JP (1) | JP2007087118A (en) |
CN (1) | CN1936855A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2008149816A1 (en) * | 2007-05-30 | 2008-12-11 | Kyocera Corporation | Mobile communication terminal and use-enabled/disabled control method |
JP2010039578A (en) * | 2008-07-31 | 2010-02-18 | Fujitsu Ltd | Storage management method, storage control device and storage system |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8046546B2 (en) * | 2007-07-25 | 2011-10-25 | AGIGA Tech | Variable partitioning in a hybrid memory subsystem |
CN101377708B (en) * | 2007-08-30 | 2011-06-15 | 宏达国际电子股份有限公司 | Mobile device and power supply control method thereof |
JP2014174710A (en) * | 2013-03-08 | 2014-09-22 | Casio Comput Co Ltd | Information processing device, information processing method, and program |
-
2005
- 2005-09-22 JP JP2005275239A patent/JP2007087118A/en not_active Withdrawn
-
2006
- 2006-09-20 CN CN 200610154335 patent/CN1936855A/en active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2008149816A1 (en) * | 2007-05-30 | 2008-12-11 | Kyocera Corporation | Mobile communication terminal and use-enabled/disabled control method |
US8442488B2 (en) | 2007-05-30 | 2013-05-14 | Kyocera Corporation | Portable communication terminal and use-enabled/disabled control method |
JP5364577B2 (en) * | 2007-05-30 | 2013-12-11 | 京セラ株式会社 | Mobile communication terminal and usage control method |
JP2010039578A (en) * | 2008-07-31 | 2010-02-18 | Fujitsu Ltd | Storage management method, storage control device and storage system |
Also Published As
Publication number | Publication date |
---|---|
CN1936855A (en) | 2007-03-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TW201636845A (en) | Memory device and operating method of same | |
US20110197018A1 (en) | Method and system for perpetual computing using non-volatile random access memory | |
JP2006011818A (en) | Portable electronic device and method for controlling portable electronic device | |
JP2005011120A (en) | Information processing method and device | |
US7516283B2 (en) | Memory control device, in-car device, memory control method, and computer product for managing data in response to various power states | |
JP2010198252A (en) | Non-volatile memory device, write-in method for nonvolatile memory, and nonvolatile memory write-in program | |
JP2007087118A (en) | Controller and portable terminal | |
JP5981906B2 (en) | Image forming apparatus | |
KR20130051564A (en) | Memory module, board assembly having same, memory system having same, and method of operating the memory system | |
JP4701807B2 (en) | MEMORY CONTROLLER, NONVOLATILE STORAGE DEVICE, AND NONVOLATILE STORAGE SYSTEM | |
JP2008225672A (en) | Semiconductor memory device | |
JP2007148905A (en) | Controller and mobile terminal | |
KR20070033916A (en) | Control unit and mobile terminal | |
CN113434086B (en) | Data storage method, device, nonvolatile memory device and memory | |
JP3376331B2 (en) | Storage method using flash memory and storage medium storing storage control program | |
JP2008059007A (en) | Semiconductor storage device | |
JP6233134B2 (en) | Electronic information storage medium, information processing method, and information processing program | |
JP2001312891A (en) | Semiconductor storage device | |
US20170046084A1 (en) | Memory control device, memory device, and memory control method | |
JP2022024228A (en) | Storage device, storage system, control method, and program | |
JP4239754B2 (en) | Nonvolatile memory system | |
JP5341947B2 (en) | IC card, control method of IC card, and control method of portable electronic device | |
JP2011170887A (en) | Information processing apparatus and data recording method therefor | |
JP2008293426A (en) | Information processor and its data recording method | |
JPH09311827A (en) | Data backup device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20070918 |
|
A761 | Written withdrawal of application |
Free format text: JAPANESE INTERMEDIATE CODE: A761 Effective date: 20090324 |