JP2009104320A - Data management device, information processor, and program - Google Patents

Data management device, information processor, and program Download PDF

Info

Publication number
JP2009104320A
JP2009104320A JP2007274159A JP2007274159A JP2009104320A JP 2009104320 A JP2009104320 A JP 2009104320A JP 2007274159 A JP2007274159 A JP 2007274159A JP 2007274159 A JP2007274159 A JP 2007274159A JP 2009104320 A JP2009104320 A JP 2009104320A
Authority
JP
Japan
Prior art keywords
data
stored
state
storage
power supply
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.)
Granted
Application number
JP2007274159A
Other languages
Japanese (ja)
Other versions
JP5034861B2 (en
Inventor
Shigeo Tajima
薫雄 田島
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2007274159A priority Critical patent/JP5034861B2/en
Publication of JP2009104320A publication Critical patent/JP2009104320A/en
Application granted granted Critical
Publication of JP5034861B2 publication Critical patent/JP5034861B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

<P>PROBLEM TO BE SOLVED: To efficiently perform processing to save data before shifting to a power non-supply state, and to restore the saved data when the power non-supply state is released. <P>SOLUTION: Data stored in an RAM are divided into a plurality of processing data, and stored in a flash memory before the operating state of its own device is shifted from an "on-state" for supplying a power to an RAM to a "power non-supply state" for not supplying a power to the RAM, and a data management table showing the corresponding relation of an address as the storage place of each processing data and processing related with the processing data. Then, when the "power non-supply state" is shifted to the "on-state", the address corresponding to each processing is specified based on the data management table, and the processing data stored in each specified address are read from the flash memory, and stored in the RAM. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、電力供給を受けてデータを記憶した状態を維持する記憶手段と、電力供給を受けずにデータを記憶した状態を維持する記憶手段との間でデータを移動させる技術に関する。   The present invention relates to a technique for moving data between a storage unit that maintains a state in which data is stored by receiving power supply and a storage unit that maintains a state in which data is stored without receiving power supply.

コンピュータの電源を投入したときにそれ以前に電源を切った時の作業内容が復元される、ハイバネーションという技術が知られている。例えば、特許文献1には、電源を切る前に揮発性メモリ内のデータを不揮発性メモリに書き込んでおいてから、電源オフの電力非供給状態に移行し、電源が再度投入されたときには、不揮発性メモリに書き込まれたデータを揮発性メモリに書き戻す技術が開示されている。また、特許文献2には、スリープモードに移行する前に、揮発性メモリ内のデータのうち、データ領域とバックアップ領域に保存されているデータのみを不揮発性メモリに書き込む技術が開示されている。特許文献2に開示された技術によれば、揮発性メモリ内の全てのデータを書き戻す場合と比べて、不揮発性メモリに書き込むデータの量が少なくなるため、不揮発性メモリに記憶されているデータを短時間で揮発性メモリに書き戻すことができる。
特開2005−115720号公報 特開2007−38580号公報
A technique called hibernation is known in which when a computer is turned on, the work contents when the power is turned off are restored. For example, Patent Document 1 describes that when data in a volatile memory is written in a nonvolatile memory before turning off the power, the power is turned off and the power is turned off, and the power is turned on again. A technique for writing back data written in a volatile memory to a volatile memory is disclosed. Patent Document 2 discloses a technique for writing only data stored in a data area and a backup area, out of data in a volatile memory, into a nonvolatile memory before shifting to a sleep mode. According to the technique disclosed in Patent Document 2, since the amount of data to be written to the nonvolatile memory is smaller than when all the data in the volatile memory is written back, the data stored in the nonvolatile memory is reduced. Can be written back to the volatile memory in a short time.
JP 2005-115720 A JP 2007-38580 A

ところで、マルチタスク機能を有するコンピュータでは、タイムシェアリングなどによって、複数の処理を並行して実行することができる。この場合、利用者は、複数の処理を実行させた状態で電源を切った後、電源を再投入したときには、まず、実行されていた複数の処理のうちいずれか1つの処理についての作業を再開することになる。つまり、マルチタスクが可能な環境下においては、上述した特許文献1及び2に開示された技術のように、電源を切る前に実行されていた全ての処理の作業内容をいっせいに不揮発性メモリに退避させ、さらに電源投入後にそれらを揮発性メモリに全て復元したとしても、利用者はそのうちの一部しか使用しないことになる。この場合、使用されない作業内容までをも復元する分だけ、その復元処理に要する時間が長くなるとともに、揮発性メモリの容量を無駄に費やしてしまう。   Incidentally, a computer having a multitask function can execute a plurality of processes in parallel by time sharing or the like. In this case, when the user turns off the power in a state where a plurality of processes are executed and then turns on the power again, first, the user resumes the work for any one of the plurality of processes being executed. Will do. In other words, in an environment where multitasking is possible, like the techniques disclosed in Patent Documents 1 and 2 described above, the work contents of all the processes executed before turning off the power are saved together in a nonvolatile memory. Furthermore, even if all of them are restored to the volatile memory after the power is turned on, the user uses only a part of them. In this case, the time required for the restoration process is increased by the amount of restoration of the work contents that are not used, and the capacity of the volatile memory is wasted.

本発明は、このような背景に鑑みてなされたものであり、その目的は、電力供給を行わない電力非供給状態に移行するまでにデータを退避させておき、その電力非供給状態が解かれたときには退避させていたデータを復元する、という処理を従来よりも効率よく行うことにある。   The present invention has been made in view of such a background, and an object of the present invention is to save data before shifting to a power non-supply state in which power is not supplied, and the power non-supply state is solved. In this case, the process of restoring the saved data is performed more efficiently than before.

上記課題を解決するため、本発明は、電力供給を受けてデータを記憶した状態を維持する第1の記憶手段と、電力供給を受けずにデータを記憶した状態を維持する第2の記憶手段と、前記第1の記憶手段に電力を供給する電力供給状態、又は、前記第1の記憶手段に電力を供給しない電力非供給状態のいずれかに移行させる状態移行手段と、前記状態移行手段によって前記電力供給状態から前記電力非供給状態に移行させられるまでに、前記第1の記憶手段に記憶されているデータを複数のデータに区分して前記第2の記憶手段に記憶させる第1の記憶制御手段と、前記第1の記憶制御手段によって前記第2の記憶手段に記憶させられた各々のデータの記憶場所と、当該データに関連する処理との対応関係を記憶する対応関係記憶手段と、前記状態移行手段によって前記電力非供給状態から前記電力供給状態に移行させられると、前記対応関係記憶手段によって記憶されている対応関係に基づいて各々の前記処理に対応する前記記憶場所を特定する特定手段と、前記特定手段が前記処理ごとに特定した各々の記憶場所に記憶されているデータを前記第2の記憶手段から読み出して、前記第1の記憶手段に記憶させる第2の記憶制御手段とを備えることを特徴とするデータ管理装置を提供する。
これにより、電力供給を行わない電力非供給状態に移行するまでにデータを退避させておき、その電力非供給状態が解かれたときには退避させていたデータを復元する、という処理を従来よりも効率よく行うことができる。
In order to solve the above-described problems, the present invention provides a first storage unit that maintains a state in which data is stored by receiving power supply, and a second storage unit that maintains a state in which data is stored without receiving power supply. A state transition unit that shifts to a power supply state in which power is supplied to the first storage unit, or a power non-supply state in which power is not supplied to the first storage unit, and the state transition unit. First memory for dividing the data stored in the first storage means into a plurality of data and storing the data in the second storage means until the power supply state is shifted to the power non-supply state. Control means; correspondence storage means for storing the correspondence between the storage locations of the respective data stored in the second storage means by the first storage control means and the processing related to the data; in front When the state transition means shifts from the power non-supply state to the power supply state, the specifying means for specifying the storage location corresponding to each of the processes based on the correspondence relation stored by the correspondence relation storage means And second storage control means for reading out data stored in each storage location specified for each processing by the specifying means from the second storage means and storing the data in the first storage means. Provided is a data management device characterized by comprising.
As a result, the process of saving data before shifting to a power non-supply state where power is not supplied and restoring the saved data when the power non-supply state is resolved is more efficient than before. Can be done well.

本発明の好ましい態様において、前記第1の記憶制御手段は、前記第1の記憶手段に記憶されているデータを、当該データを用いた処理の単位で複数のデータに区分して前記第2の記憶手段に記憶させてもよい。
これにより、退避させていたデータを、処理で用いられる単位で区分されたデータ毎に復元させることができる。
In a preferred aspect of the present invention, the first storage control unit divides the data stored in the first storage unit into a plurality of data in units of processing using the data. You may memorize | store in a memory | storage means.
As a result, the saved data can be restored for each data divided in units used in the processing.

本発明の好ましい態様において、前記第1の記憶制御手段は、前記第1の記憶手段に記憶されているデータを、所定のデータサイズ単位で複数のデータに区分して前記第2の記憶手段に記憶させてもよい。
これにより、退避させていたデータを、所定のデータサイズ単位で区分されたデータ毎に復元させることができる。
In a preferred aspect of the present invention, the first storage control unit divides the data stored in the first storage unit into a plurality of data in a predetermined data size unit and stores the data in the second storage unit. It may be memorized.
As a result, the saved data can be restored for each data segmented by a predetermined data size unit.

本発明の好ましい態様において、前記特定手段は、複数の前記処理のうちの或る第1の処理の処理識別情報と、当該第1の処理の後に行われる第2の処理の処理識別情報とを対応付けて記憶しており、前記電力供給状態において行われる処理として前記第1の処理を特定すると、当該第1の処理の後に行われる処理として、当該第1の処理の処理識別情報に対応付けて記憶された処理識別情報の前記第2の処理を特定し、前記対応関係記憶手段によって記憶されている対応関係に基づいて当該第2の処理に対応する前記記憶場所を特定し、前記第2の記憶制御手段は、前記特定手段が前記第2の処理に対応するものとして特定した記憶場所に記憶されているデータを前記第2の記憶手段から読み出して、前記第1の記憶手段に記憶させてもよい。
これにより、電力供給状態において第1の処理が行われたときに、その第1の処理の後に行われる第2の処理を迅速に実行することができる。
In a preferred aspect of the present invention, the specifying means includes: process identification information of a certain first process among the plurality of processes; and process identification information of a second process performed after the first process. When the first process is specified as the process performed in the power supply state, the process is associated with the process identification information of the first process as the process performed after the first process. The second process of the stored process identification information is specified, the storage location corresponding to the second process is specified based on the correspondence stored by the correspondence storage means, and the second The storage control means reads out the data stored in the storage location specified by the specifying means as corresponding to the second process from the second storage means, and stores the data in the first storage means. Even .
Thereby, when the first process is performed in the power supply state, the second process performed after the first process can be quickly executed.

本発明の好ましい態様において、前記特定手段は、前記電力供給状態において利用者の指示に従って行われる複数の処理の順序を記録していき、記録した順序から、前記或る第1の処理の処理識別情報と、当該第1の処理の後に行われる第2の処理の処理識別情報とを特定して記憶してもよい。
これにより、電力供給状態において第1の処理が行われたときに、利用者の指示に従って行われた処理の順序に基づいて第1の処理の後に行われる処理として特定された第2の処理を迅速に実行することができる。
In a preferred aspect of the present invention, the specifying unit records a sequence of a plurality of processes performed in accordance with a user instruction in the power supply state, and identifies a process identification of the certain first process from the recorded order. The information and the process identification information of the second process performed after the first process may be specified and stored.
Accordingly, when the first process is performed in the power supply state, the second process specified as the process performed after the first process based on the order of the processes performed according to the user's instruction is performed. It can be executed quickly.

本発明の好ましい態様において、前記第1の記憶制御手段は、複数の前記処理のうちの或る第1の処理の処理識別情報と、当該第1の処理の後に行われる第2の処理の処理識別情報とを対応付けて記憶しており、前記電力供給状態において前記第1の処理が行われると、当該第1の処理の処理識別情報に対応付けて記憶された前記第2の処理の処理識別情報を特定し、前記第1の記憶手段に記憶されているデータを区分した複数のデータのうち、前記第2の処理に関連するデータ以外のデータを、前記第2の記憶手段に記憶させ、その後に、前記第2の処理に関連するデータを記憶させてもよい。
これにより、電力供給状態において第1の処理が行われた後に第2の処理の実行が指示された場合に、第1の記憶制御手段を迅速に実行することができる。
In a preferred aspect of the present invention, the first storage control means includes processing identification information of a certain first process among the plurality of processes and a process of a second process performed after the first process. The identification information is stored in association with each other, and when the first process is performed in the power supply state, the process of the second process stored in association with the process identification information of the first process The identification information is specified, and data other than the data related to the second process is stored in the second storage unit among the plurality of data obtained by dividing the data stored in the first storage unit. Thereafter, data related to the second process may be stored.
As a result, when the execution of the second process is instructed after the first process is performed in the power supply state, the first storage control unit can be quickly executed.

本発明の好ましい態様において、前記第1の記憶制御手段は、前記電力供給状態において利用者の指示に従って行われる複数の処理の順序を記録していき、記録した順序から、前記或る第1の処理の処理識別情報と、当該第1の処理の後に行われる第2の処理の処理識別情報とを特定して記憶させてもよい。
これにより、電力供給状態において第1の処理が行われた後に第2の処理の実行が指示されたときに、利用者の指示に従って行われた処理の順序に基づいて第1の処理の後に行われる処理として特定された第2の処理を迅速に実行することができる。
In a preferred aspect of the present invention, the first storage control means records the order of a plurality of processes performed in accordance with a user instruction in the power supply state, and from the recorded order, the first first control unit The process identification information of the process and the process identification information of the second process performed after the first process may be specified and stored.
Thus, when the execution of the second process is instructed after the first process is performed in the power supply state, the process is performed after the first process based on the order of the processes performed according to the user's instruction. The second process specified as the process to be performed can be quickly executed.

本発明の好ましい態様においては、前記第1の記憶制御手段によって区分された各々のデータごとに、当該データに関連した処理が行われた頻度を記憶する頻度記憶手段を備え、前記第2の記憶制御手段は、各々の前記データを、当該データに関連する処理が行われた頻度が高いものから順に前記第2の記憶手段から読み出して、前記第1の記憶手段に記憶させてもよい。
これにより、退避させていたデータを、そのデータに関連する処理が行われた頻度が高いものから順に復元させることができる。
In a preferred aspect of the present invention, for each of the data divided by the first storage control means, a frequency storage means for storing a frequency at which a process related to the data is performed is provided, and the second storage The control means may read each of the data from the second storage means in descending order of frequency of processing related to the data, and store the data in the first storage means.
As a result, the saved data can be restored in order from the highest frequency of processing related to the data.

本発明の好ましい態様においては、前記第1の記憶制御手段によって区分された各々のデータごとに、当該データに関連した処理が行われた頻度を記憶する頻度記憶手段を備え、前記第1の記憶制御手段は、各々の前記データを、当該データに関連する処理が行われた頻度が低いものから順に前記第2の記憶手段に記憶させてもよい。
これにより、第1の記憶手段に記憶されているデータを、そのデータに関連する処理が行われた頻度が低いものから順に退避させることができる。
In a preferred aspect of the present invention, for each of the data divided by the first storage control means, there is provided a frequency storage means for storing a frequency at which processing related to the data is performed, and the first storage The control means may store each of the data in the second storage means in descending order of frequency of processing related to the data.
As a result, the data stored in the first storage means can be saved in order from the lowest frequency of processing related to the data.

本発明の好ましい態様において、前記電力供給状態には、消費電力が多い第1の電力供給状態と、消費電力が少ない第2の電力供給状態とが含まれており、前記状態移行手段は、前記第1の電力供給状態から前記電力非供給状態又は前記第2の電力供給状態のうちのいずれかに移行させるための移行条件であって、その移行後に前記第1の電力供給状態に再度移行させるまでに要する消費電力が少なくなるような移行条件を記憶しておき、記憶している前記移行条件に基づいて、前記第1の電力供給状態から前記電力非供給状態に移行させるか又は前記第1の電力供給状態から前記第2の電力供給状態に移行させるかを決定し、決定した状態へと移行させてもよい。
これにより、消費電力を少なくすることができる。
In a preferred aspect of the present invention, the power supply state includes a first power supply state with high power consumption and a second power supply state with low power consumption. It is a transition condition for shifting from the first power supply state to either the power non-supply state or the second power supply state, and the transition is made again to the first power supply state after the transition. A transition condition that reduces power consumption required until the time is stored, and based on the stored transition condition, the transition from the first power supply state to the non-power supply state is performed, or the first It may be determined whether to shift from the power supply state to the second power supply state, and shift to the determined state.
Thereby, power consumption can be reduced.

また、本発明は、上記のいずれかに記載のデータ管理装置と、前記第1の記憶手段に記憶されたデータを用いて処理を行う処理手段と、前記処理手段によって処理された結果を出力する出力手段とを備えることを特徴とする情報処理装置を提供する。
これにより、電力供給を行わない電力非供給状態に移行するまでにデータを退避させておき、その電力非供給状態が解かれたときには退避させていたデータを復元する、という処理を従来よりも効率よく行うことができる。
According to another aspect of the present invention, there is provided the data management device according to any one of the above, a processing unit that performs processing using the data stored in the first storage unit, and a result processed by the processing unit. An information processing apparatus comprising an output unit is provided.
As a result, the process of saving data before shifting to a power non-supply state where power is not supplied and restoring the saved data when the power non-supply state is resolved is more efficient than before. Can be done well.

また、本発明は、電力供給を受けてデータを記憶した状態を維持する第1の記憶手段と、電力供給を受けずにデータを記憶した状態を維持する第2の記憶手段とを備えたコンピュータを、前記第1の記憶手段に電力を供給する電力供給状態、又は、前記第1の記憶手段に電力を供給しない電力非供給状態のいずれかに移行させる状態移行手段と、前記状態移行手段によって前記電力供給状態から前記電力非供給状態に移行させられるまでに、前記第1の記憶手段に記憶されているデータを複数のデータに区分して前記第2の記憶手段に記憶させる第1の記憶制御手段と、前記第1の記憶制御手段によって前記第2の記憶手段に記憶させられた各々のデータの記憶場所と、当該データに関連する処理との対応関係を記憶する対応関係記憶手段と、前記状態移行手段によって前記電力非供給状態から前記電力供給状態に移行させられると、前記対応関係記憶手段によって記憶されている対応関係に基づいて各々の前記処理に対応する前記記憶場所を特定する特定手段と、前記特定手段が前記処理ごとに特定した各々の記憶場所に記憶されているデータを前記第2の記憶手段から読み出して、前記第1の記憶手段に記憶させる第2の記憶制御手段として機能させるためのプログラムを提供する。
これにより、電力供給を行わない電力非供給状態に移行するまでにデータを退避させておき、その電力非供給状態が解かれたときには退避させていたデータを復元する、という処理を従来よりも効率よく行うことができる。
The present invention also provides a computer having a first storage means for maintaining a state in which data is stored upon receiving power supply, and a second storage means for maintaining a state in which data is stored without receiving power supply. By state transition means for shifting the power to either the power supply state for supplying power to the first storage means or the power non-supply state for not supplying power to the first storage means, and the state transition means First memory for dividing the data stored in the first storage means into a plurality of data and storing the data in the second storage means until the power supply state is shifted to the power non-supply state. Control means; correspondence storage means for storing the correspondence between the storage locations of the respective data stored in the second storage means by the first storage control means and the processing related to the data; When the state transition means shifts from the non-power supply state to the power supply state, the storage location corresponding to each of the processes is specified based on the correspondence stored by the correspondence storage means And a second storage control means for reading data stored in each storage location specified for each process by the specifying means from the second storage means and storing the data in the first storage means Provide a program to make it function.
As a result, the process of saving data before shifting to a power non-supply state where power is not supplied and restoring the saved data when the power non-supply state is resolved is more efficient than before. Can be done well.

[構成]
図1は、本実施形態に係る表示装置1の構成を示す図である。同図に示すように、表示装置1は、CPU(Central Processing Unit)10と、ROM(Read Only Memory)20と、RAM(Random Access Memory)30と、フラッシュメモリ40と、操作部50と、表示部60と、電源部70とを備えている。CPU10と、ROM20と、RAM30と、フラッシュメモリ40と、操作部50と、表示部60は、バス80を介して接続されている。また、これらの各部10〜60と電源部70とは図示せぬ電源線を介して接続されている。
[Constitution]
FIG. 1 is a diagram illustrating a configuration of a display device 1 according to the present embodiment. As shown in the figure, the display device 1 includes a CPU (Central Processing Unit) 10, a ROM (Read Only Memory) 20, a RAM (Random Access Memory) 30, a flash memory 40, an operation unit 50, and a display. Unit 60 and a power supply unit 70. The CPU 10, the ROM 20, the RAM 30, the flash memory 40, the operation unit 50, and the display unit 60 are connected via a bus 80. Each of these units 10 to 60 and the power supply unit 70 are connected via a power supply line (not shown).

ROM20は、読み出し専用の記憶媒体であり、表示装置1の起動処理を司るブートプログラムやOS(Operation System)などの各種制御プログラムなどを記憶している。CPU10は、ROM20に記憶されている制御プログラムを実行することにより、表示装置1の動作を制御したり、また、フラッシュメモリ40に記憶されている各種処理プログラムを実行することにより、各種の処理を行って、その処理結果を表示部60により出力したりする。   The ROM 20 is a read-only storage medium, and stores a boot program that controls the startup process of the display device 1 and various control programs such as an OS (Operation System). The CPU 10 controls the operation of the display device 1 by executing a control program stored in the ROM 20, and executes various processes by executing various processing programs stored in the flash memory 40. The processing result is output by the display unit 60.

RAM30は、電源部70から電力供給を受けてデータを記憶した状態を維持する揮発性記憶媒体である。すなわち、RAM30に記憶されたデータは、電源部70からRAM30に電力が供給されている期間にわたっては記憶され続けるが、電源部70からの電力供給がなくなると消去される。このRAM30は、CPU10のワークエリアとして使用され、例えばCPU10が実行中の処理において用いられるデータを記憶する。このデータには、ROM20やフラッシュメモリ40から読み出されてRAM30にロードされた各種のプログラムや関数のほか、実行中の処理で用いられている各種の値や引数などが含まれている。以下では、RAM30に記憶されているこれらのデータを「処理データ」と総称する。   The RAM 30 is a volatile storage medium that maintains a state in which data is stored by receiving power supply from the power supply unit 70. In other words, the data stored in the RAM 30 continues to be stored for a period in which power is supplied from the power supply unit 70 to the RAM 30, but is erased when the power supply from the power supply unit 70 is lost. The RAM 30 is used as a work area for the CPU 10, and stores data used in processing being executed by the CPU 10, for example. This data includes various programs and functions read from the ROM 20 and the flash memory 40 and loaded into the RAM 30, as well as various values and arguments used in the processing being executed. Hereinafter, these data stored in the RAM 30 are collectively referred to as “process data”.

フラッシュメモリ40は、電源部70から電力供給を受けなくてもデータを記憶した状態を維持し得る不揮発性記憶媒体である。このフラッシュメモリ40には、上述した処理プログラムが記憶されているほか、CPU10が処理実行中のRAM30上の処理データを記憶するための記憶領域が設けられている。このように、RAM30は、電力供給を受けて処理データを記憶した状態を維持する第1の記憶手段として機能するの対し、フラッシュメモリ40は、電力供給を受けずに処理データを記憶した状態を維持する第2の記憶手段として機能する。   The flash memory 40 is a non-volatile storage medium that can maintain a state in which data is stored without receiving power supply from the power supply unit 70. In addition to storing the above-described processing program, the flash memory 40 is provided with a storage area for storing processing data on the RAM 30 being processed by the CPU 10. As described above, the RAM 30 functions as a first storage unit that maintains a state in which processing data is stored by receiving power supply, whereas the flash memory 40 stores a state in which processing data is stored without receiving power supply. It functions as a second storage means for maintaining.

操作部50は、例えばペンデバイスやジョイスティックなどを備え、利用者の操作に応じた操作信号をCPU10に供給する。表示部60は、例えばコレステリック液晶や電気泳動などを利用した記憶性液晶表示体や表示制御回路を備え、CPU10による指示の下で各種の画像を表示する。電源部70は、例えば充電可能な電池や電源制御回路を備え、表示装置1を構成する各部に電力を供給する。   The operation unit 50 includes, for example, a pen device or a joystick, and supplies an operation signal corresponding to a user operation to the CPU 10. The display unit 60 includes, for example, a storage liquid crystal display using a cholesteric liquid crystal or electrophoresis, and a display control circuit, and displays various images under instructions from the CPU 10. The power supply unit 70 includes, for example, a rechargeable battery and a power supply control circuit, and supplies power to each unit constituting the display device 1.

ここで、表示装置1の起動状態について説明する。表示装置1は、「オン状態」、「スリープ状態」、「オフ状態」の3つの起動状態を有しており、これらのうちのいずれかの1つの起動状態をとるようになっている。まず、「オン状態」は、表示装置1の各部に電力が供給される電力供給状態であり、表示装置1が通常の動作を行う状態である。この「オン状態」では、CPU10によって各種の処理が行われることになる。次に、「スリープ状態」は、表示装置1の限られた部品のみに電力が供給され、表示装置1が動作しない状態である。この「スリープ状態」では、CPU10や表示部60には電力が供給されないが、それ以外の部品(RAM30を含む)には電力が供給される。よって、「オン状態」は、消費電力が多い第1の電力供給状態であるし、「スリープ状態」は、消費電力が少ない第2の電力供給状態であると言える。そして、「オフ状態」は、電源部70がオフになったときの状態である。この「オフ状態」では、表示装置1の各部に電力が供給されないので、表示装置1はいっさい動作しない。上述した「オン状態」から「スリープ状態」への移行は、例えば「オン状態」においてCPU10が処理を行わない待機時間が所定時間以上になった時に行われる。また、「スリープ状態」から「オン状態」への移行は、例えば操作部50が操作された時に行われる。なお、「オン状態」及び「スリープ状態」が、表示装置1の各部のうち少なくともRAM30に電力を供給する「電力供給状態」であるのに対し、「オフ状態」はRAM30に電力を供給しない「電力非供給状態」である。   Here, the activation state of the display device 1 will be described. The display device 1 has three activation states of “on state”, “sleep state”, and “off state”, and takes one of these activation states. First, the “on state” is a power supply state in which power is supplied to each unit of the display device 1 and is a state in which the display device 1 performs a normal operation. In the “on state”, the CPU 10 performs various processes. Next, the “sleep state” is a state in which power is supplied to only a limited part of the display device 1 and the display device 1 does not operate. In the “sleep state”, power is not supplied to the CPU 10 and the display unit 60, but power is supplied to other components (including the RAM 30). Therefore, it can be said that the “on state” is a first power supply state with high power consumption, and the “sleep state” is a second power supply state with low power consumption. The “off state” is a state when the power supply unit 70 is turned off. In this “off state”, power is not supplied to each part of the display device 1, so the display device 1 does not operate at all. The above-described transition from the “on state” to the “sleep state” is performed, for example, when the standby time during which the CPU 10 does not perform processing in the “on state” becomes a predetermined time or longer. The transition from the “sleep state” to the “on state” is performed, for example, when the operation unit 50 is operated. The “on state” and the “sleep state” are “power supply states” in which power is supplied to at least the RAM 30 among the components of the display device 1, whereas the “off state” does not supply power to the RAM 30. “Power is not supplied”.

[動作]
次に、表示装置1の動作について説明する。
(データ退避処理)
ここでは、まず、図2を参照して、表示装置1の起動状態が上述した「電力供給状態」から「電力非供給状態」に移行するときに、RAM30に記憶されているデータを退避させるデータ退避処理について説明する。ここでいうデータの退避とは、RAM30に記憶されているデータをフラッシュメモリ40に記憶させることである。
[Operation]
Next, the operation of the display device 1 will be described.
(Data backup processing)
Here, first, referring to FIG. 2, data for saving data stored in the RAM 30 when the startup state of the display device 1 shifts from the “power supply state” to the “power non-supply state” described above. The save process will be described. The term “saving data” as used herein means that the data stored in the RAM 30 is stored in the flash memory 40.

例えば表示装置1が「オン状態」の時に、利用者が操作部50を操作して、例えば文章を作成するとともに、その文書中で参照する画像を作成している場合を想定する。CPU10は、この操作に応じて、各々の処理に用いる処理データを生成したり又はフラッシュメモリ40から読み出したりしてRAM30に記憶し(ステップS11)、これらの処理データを用いて、文章を作成するための処理Aと画像を作成するための処理Bとを並列的に実行する(ステップS12)。   For example, it is assumed that when the display device 1 is in the “on state”, the user operates the operation unit 50 to create, for example, a sentence and an image to be referred to in the document. In response to this operation, the CPU 10 generates processing data used for each processing or reads it from the flash memory 40 and stores it in the RAM 30 (step S11), and creates a sentence using these processing data. Processing A for processing and processing B for creating an image are executed in parallel (step S12).

図3の上段は、このときのRAM30の記憶内容の一例を示す図である。CPU10は、自身の処理の単位毎にRAM30の記憶領域を1又複数確保し、確保した各記憶領域に対応する処理データを記憶する。同図上段に示した例では、処理Aにおいて用いられる処理データAがRAM30の記憶領域a1,a4に記憶されており、処理Bにおいて用いられる処理データBがRAM30の記憶領域a2,a3に記憶されている。共通の処理に用いられる処理データが、異なる記憶領域に分散して記憶されているのは、データの性質としての違い故に例えばスタティック領域とヒープ領域とスタック領域などに分けて処理データが記憶されるからである。ここでいうスタティック領域は静的データが記憶される記憶領域であり、ヒープ領域は動的に割り当てられる記憶領域であり、スタック領域はスタックとして機能する記憶領域である。   The upper part of FIG. 3 is a diagram showing an example of the contents stored in the RAM 30 at this time. The CPU 10 secures one or a plurality of storage areas of the RAM 30 for each processing unit, and stores processing data corresponding to each secured storage area. In the example shown in the upper part of the figure, the processing data A used in the processing A is stored in the storage areas a1 and a4 of the RAM 30, and the processing data B used in the processing B is stored in the storage areas a2 and a3 of the RAM 30. ing. The processing data used for common processing is distributed and stored in different storage areas because of the difference in the nature of the data, for example, the processing data is stored separately in the static area, heap area, stack area, etc. Because. The static area here is a storage area in which static data is stored, the heap area is a storage area that is dynamically allocated, and the stack area is a storage area that functions as a stack.

CPU10は、処理データAに基づいて処理Aを実行するとともに、処理データBに基づいて処理Bを実行する。図4は、処理Aと処理Bの実行に伴って、表示部60に表示される表示画面S1の一例を示す図である。この表示画面S1には、文章を作成するための処理Aの処理過程を利用者に提示する処理提示画像faと、画像を作成するための処理Bの処理過程を利用者に提示する処理提示画像fbとが重ねて配置されている。利用者は、例えば文章を作成する作業を行うときには、処理提示画像faを見ながら操作部50を操作し、処理Aの作業を進めていく。CPU10は、この操作に応じてステップS11とステップS12とを適宜繰り返すことで、RAM30に記憶されている処理データAを更新しながら、処理Aの各手順を実行していく。また、利用者は、画像を作成する作業を行う場合には、処理提示画像fbを見ながら操作部50を操作し、処理Bの作業を進めていく。CPU10は、この操作に応じてステップS11とステップS12とを適宜繰り返すことで、RAM30に記憶されている処理データBを更新しながら、処理Bの各手順を実行していく。   The CPU 10 executes process A based on the process data A and executes process B based on the process data B. FIG. 4 is a diagram illustrating an example of the display screen S1 displayed on the display unit 60 as the process A and the process B are executed. On this display screen S1, a process presentation image fa for presenting the process of process A for creating a sentence to the user and a process presentation image for presenting the process of process B for creating an image to the user fb is arranged so as to overlap. For example, when the user performs a task of creating a sentence, the user operates the operation unit 50 while looking at the process presentation image fa to proceed with the process A. The CPU 10 performs steps of the process A while updating the process data A stored in the RAM 30 by appropriately repeating steps S11 and S12 according to this operation. In addition, when performing the work of creating an image, the user operates the operation unit 50 while viewing the process presentation image fb and proceeds with the process B. The CPU 10 repeats step S11 and step S12 as appropriate according to this operation, thereby executing each procedure of process B while updating the process data B stored in the RAM 30.

さて、利用者は、作業を中断する場合、操作部50の図示せぬ電源ボタンを押下するなどの操作を行って表示装置1に電源オフを指示する。このとき、CPU10は、利用者によって電源オフが指示されたか否かを判定する(図2のステップS13)。例えば、利用者によって電源オフを指示する操作が行われていない場合、CPU10は、電源オフが指示されていないと判定し(ステップS13:NO)、上述したステップS11の処理に戻る。一方、利用者によって電源ボタンを押下するなどの電源オフを指示する操作が行われた場合、CPU10は、利用者によって電源オフが指示されたと判定して(ステップS13:YES)、RAM30に記憶されている処理データを、その処理データが用いられる処理の単位で区分してフラッシュメモリ40に記憶させる(ステップS14)。この例では、図3上段に示したRAM30に記憶されている処理データが、図3下段に示すように、処理Aにおいて用いられる処理データAと、処理Bにおいて用いられる処理データBとに区分されて、フラッシュメモリ40の記憶領域A1,A2にそれぞれ記憶される。この場合、この処理データAには、図4の処理提示画像faを表すデータが含まれている。また、処理データBには、図4の処理提示画像fbを表すデータが含まれている。また、この時に、CPU10に設けられたレジスタに記憶されている値なども、フラッシュメモリ40に記憶される。   When the user interrupts the work, the user performs an operation such as pressing a power button (not shown) of the operation unit 50 to instruct the display device 1 to turn off the power. At this time, the CPU 10 determines whether the user has instructed to turn off the power (step S13 in FIG. 2). For example, if the user has not performed an operation to instruct the power off, the CPU 10 determines that the power off has not been instructed (step S13: NO), and returns to the process of step S11 described above. On the other hand, when an operation for instructing power-off such as pressing the power button is performed by the user, the CPU 10 determines that the power-off is instructed by the user (step S13: YES), and is stored in the RAM 30. The processed data is stored in the flash memory 40 in units of processing in which the processed data is used (step S14). In this example, the processing data stored in the RAM 30 shown in the upper part of FIG. 3 is divided into processing data A used in the process A and processing data B used in the process B, as shown in the lower part of FIG. Are stored in the storage areas A1 and A2 of the flash memory 40, respectively. In this case, the processing data A includes data representing the processing presentation image fa in FIG. Further, the processing data B includes data representing the processing presentation image fb in FIG. At this time, a value stored in a register provided in the CPU 10 is also stored in the flash memory 40.

続いて、CPU10は、フラッシュメモリ40に記憶された各々の処理データの記憶場所と、その処理データを用いる処理との対応関係を表すデータ管理テーブルを作成する(ステップS15)。
図5は、このデータ管理テーブルT1の一例を示す図である。同図に示すように、このデータ管理テーブルT1には、各々の処理データの記憶場所を表す「アドレス」と、その処理データを用いる処理の「処理識別情報」とが対応付けられている。なお、この「アドレス」は、データが記憶されている記憶領域の先頭アドレスである。この「処理識別情報」とは、各処理に割り当てられたものであり、例えば処理を実現するプログラムのプログラム名や処理名などである。例えば、図中の1番上のレコードには、処理データAの記憶場所を表すアドレスである「0120」と、処理Aの処理識別情報である「taskA」とが対応付けられている。これは、「taskA」が表す処理、すなわち処理Aにおいて用いられる処理データAが、「0120」というアドレスから記憶されていることを表している。また、図中の上から2番目のレコードには、処理データBの記憶場所を表すアドレスである「0430」と、処理Bの処理識別情報である「taskB」とが対応付けられている。これは、「taskB」が表す処理、すなわち処理Bにおいて用いられる処理データBが、「0430」というアドレスから記憶されていることを表している。CPU10は、このデータ管理テーブルT1に記述された対応関係を参照することで、指示された処理に関する処理データの記憶場所を特定することができる。
Subsequently, the CPU 10 creates a data management table indicating the correspondence between the storage locations of the respective processing data stored in the flash memory 40 and the processing using the processing data (step S15).
FIG. 5 is a diagram showing an example of the data management table T1. As shown in the figure, in this data management table T1, an “address” indicating a storage location of each processing data is associated with “processing identification information” of processing using the processing data. This “address” is the head address of the storage area in which data is stored. This “process identification information” is assigned to each process, and is, for example, the program name or process name of a program that realizes the process. For example, in the top record in the figure, “0120” that is an address indicating the storage location of the processing data A and “taskA” that is processing identification information of the processing A are associated with each other. This indicates that the process represented by “taskA”, that is, the process data A used in process A is stored from the address “0120”. Also, in the second record from the top in the figure, “0430” that is an address indicating the storage location of the processing data B and “taskB” that is processing identification information of the processing B are associated with each other. This indicates that the process represented by “taskB”, that is, the process data B used in process B is stored from the address “0430”. The CPU 10 can specify the storage location of the processing data related to the instructed processing by referring to the correspondence relationship described in the data management table T1.

続いて、CPU10は、作成したデータ管理テーブルT1をフラッシュメモリ40に記憶させる。データ管理テーブルT1を記憶させると、CPU10は、電源部70をオフにし、表示装置1の起動状態を「オン状態」から「オフ状態」に移行させる(図2のステップS16)。これにより、表示装置1の各部に電力が供給されなくなり、RAM30に記憶されているデータが消去される。   Subsequently, the CPU 10 stores the created data management table T1 in the flash memory 40. When the data management table T1 is stored, the CPU 10 turns off the power supply unit 70 and shifts the startup state of the display device 1 from the “on state” to the “off state” (step S16 in FIG. 2). As a result, power is not supplied to each part of the display device 1 and data stored in the RAM 30 is erased.

(データ復元処理)
続いて、図6を参照して、表示装置1の起動状態が「オフ状態」から「オン状態」に復帰させられたときに、フラッシュメモリ40に退避させていたデータを復元させるデータ復元処理について説明する。ここでいう復帰とは、表示装置1の起動状態が、「電力供給状態」から「電力非供給状態」に移行させられた後に、「電力非供給状態」から再び「電力供給状態」に移行させられることをいう。また、データの復元とは、RAM30からフラッシュメモリ40に退避させていたデータを再びRAM30に記憶させることである。
(Data restoration process)
Next, referring to FIG. 6, a data restoration process for restoring the data saved in the flash memory 40 when the activation state of the display device 1 is returned from the “off state” to the “on state”. explain. Here, the term “return” refers to the transition from the “power supply state” to the “power supply state” after the activation state of the display device 1 has been shifted from the “power supply state” to the “power supply state”. It means being done. The data restoration is to store the data saved in the flash memory 40 from the RAM 30 in the RAM 30 again.

利用者によって操作部50の電源ボタンがオンにされると(ステップS21)、CPU10は、ROM20に記憶されている制御プログラムを実行して、表示装置1を起動させる(ステップS22)。これにより、表示装置1の起動状態が「オフ状態」から「オン状態」に移行させられる。表示装置1が「オン状態」になると、利用者は、操作部50を操作して、所望するプログラムを指定し、それを実行するよう指示する。   When the power button of the operation unit 50 is turned on by the user (step S21), the CPU 10 executes the control program stored in the ROM 20 to activate the display device 1 (step S22). As a result, the activation state of the display device 1 is shifted from the “off state” to the “on state”. When the display device 1 is in the “on state”, the user operates the operation unit 50 to specify a desired program and instruct to execute it.

このとき、CPU10は、フラッシュメモリ40のデータ管理テーブルT1に基づいて、利用者に指示された処理が、表示装置1が「オフ状態」に移行する前に実行されていたか否かを判定する(ステップS23)。例えば、利用者に指示された処理の処理識別情報がデータ管理テーブルT1に記述されていない場合、CPU10は、利用者に指示された処理が「オフ状態」に移行する前に実行されていなかったと判定する(ステップS23:NO)。この場合、CPU10は、再開する処理がないとみなし、データ復元処理を行わずに待機する一方、利用者に指示された処理を通常の手順で実行する。ここでいう再開とは、表示装置1が「オフ状態」に移行する前の処理過程から継続して処理を実行することである。   At this time, the CPU 10 determines, based on the data management table T1 of the flash memory 40, whether or not the processing instructed by the user has been executed before the display device 1 shifts to the “off state” ( Step S23). For example, when the process identification information of the process instructed by the user is not described in the data management table T1, the CPU 10 has assumed that the process instructed by the user has not been executed before shifting to the “off state”. Determination is made (step S23: NO). In this case, the CPU 10 considers that there is no process to be resumed, and waits without performing the data restoration process, while executing the process instructed by the user in a normal procedure. The resumption here means that the process is continued from the process before the display device 1 shifts to the “off state”.

一方、利用者に指示された処理の処理識別情報がデータ管理テーブルT1に記述されている場合、CPU10は、利用者に指示された処理が「オフ状態」に移行する前に実行されていたと判定する(ステップS23:YES)。この場合、CPU10は、フラッシュメモリ40のデータ管理テーブルT1を参照して、利用者によって指示された処理に対応するアドレスを特定する(ステップS24)。続いて、CPU10は、特定したアドレスから記憶されている処理データをフラッシュメモリ40から読み出して、RAM30の空き領域に記憶させる(ステップS25)。この時に、「オフ状態」に移行する前にCPU10のレジスタに記憶されていた値も、フラッシュメモリ40から読み出されて再びレジスタに記憶される。そして、CPU10は、RAM30に記憶させた処理データに基づいて、利用者によって指示された処理を実行する(ステップS26)。   On the other hand, when the process identification information of the process instructed by the user is described in the data management table T1, the CPU 10 determines that the process instructed by the user has been executed before shifting to the “off state”. (Step S23: YES). In this case, the CPU 10 refers to the data management table T1 of the flash memory 40 and specifies an address corresponding to the process instructed by the user (step S24). Subsequently, the CPU 10 reads out the processing data stored from the specified address from the flash memory 40 and stores it in the free area of the RAM 30 (step S25). At this time, the value stored in the register of the CPU 10 before shifting to the “off state” is also read from the flash memory 40 and stored again in the register. And CPU10 performs the process instruct | indicated by the user based on the process data memorize | stored in RAM30 (step S26).

例えば、画像を作成する処理Bを再開させたい場合、利用者は、操作部50を操作して処理Bの実行を指示する。図5に示したデータ管理テーブルT1には、利用者に指示された処理Bの処理識別情報である「taskB」が記述されている。この場合、ステップS23では、利用者に指示された処理が「オフ状態」に移行する前に実行されていたと判定される(ステップS23:YES)。続くステップS24では、図5に示したデータ管理テーブルT1において、この「taskB」と対応付けて記憶されているアドレス、すなわち「0430」が特定される。続くステップS25では、特定された「0430」というアドレスから記憶されている処理データBがフラッシュメモリ40から読み出されて、RAM30に記憶される。そして、ステップS26では、RAM30に記憶された処理データBに基づいて処理Bが実行される。   For example, when resuming the process B for creating an image, the user operates the operation unit 50 to instruct the execution of the process B. In the data management table T1 shown in FIG. 5, “taskB” which is the process identification information of the process B instructed by the user is described. In this case, in step S23, it is determined that the process instructed by the user has been executed before shifting to the “off state” (step S23: YES). In the subsequent step S24, the address stored in association with this “taskB” in the data management table T1 shown in FIG. 5, that is, “0430” is specified. In subsequent step S <b> 25, the processing data B stored from the specified address “0430” is read from the flash memory 40 and stored in the RAM 30. In step S26, the process B is executed based on the process data B stored in the RAM 30.

図7は、処理Bの実行に伴って、表示部60に表示される表示画面S2の一例を示す図である。処理データBには、上述したように、図4の処理提示画像fbを表すデータが含まれているから、この表示画面S2には、図4に示したものと同様の処理提示画像fbが配置されている。これは、「オフ状態」に移行する前の処理過程から継続して処理Bが実行可能であることを表している。これにより、利用者は、「オフ状態」に移行する前の処理の過程から処理Bを進めることができる。   FIG. 7 is a diagram illustrating an example of the display screen S2 displayed on the display unit 60 as the process B is executed. As described above, since the processing data B includes data representing the processing presentation image fb in FIG. 4, the processing presentation image fb similar to that shown in FIG. 4 is arranged on the display screen S2. Has been. This indicates that the process B can be executed continuously from the process before the transition to the “off state”. As a result, the user can proceed with the process B from the process before the transition to the “off state”.

また、利用者は、上述と同様にして再開させたい処理を指定することにより、さらに他の処理を再開させることができる。例えば、文章を作成するための処理Aをさらに再開させたい場合、利用者は、操作部50を操作して処理Aの実行を指示する。CPU10は、上述したステップS26において処理を実行した後にステップS23の処理に戻り、利用者によって新たな処理の実行が指示されると、その新たに指示された処理が、表示装置1が「オフ状態」に移行する前に実行されていたか否かを判定する。図5に示したデータ管理テーブルT1には、利用者に指示された処理Aの処理識別情報である「taskA」が記述されている。この場合、ステップS23では、利用者に指示された処理が「オフ状態」に移行する前に実行されていたと判定される(図6のステップS23:YES)。続くステップS24では、図5に示したデータ管理テーブルT1において、この「taskA」と対応付けて記憶されているアドレス、すなわち「0120」が特定される。続くステップS25では、特定された「0120」というアドレスから記憶されている処理データAがフラッシュメモリ40から読み出されて、RAM30に記憶される。そして、ステップS26では、RAM30に記憶された処理データAに基づいて処理Aが実行される。   In addition, the user can resume another process by designating a process to be resumed in the same manner as described above. For example, when it is desired to restart the process A for creating a sentence, the user operates the operation unit 50 to instruct the execution of the process A. After executing the process in step S26 described above, the CPU 10 returns to the process in step S23. When the user instructs execution of a new process, the newly instructed process causes the display device 1 to be in the “off state”. It is determined whether or not it has been executed before shifting to "." In the data management table T1 shown in FIG. 5, “taskA” that is the process identification information of the process A instructed by the user is described. In this case, in step S23, it is determined that the process instructed by the user has been executed before shifting to the “off state” (step S23 in FIG. 6: YES). In the subsequent step S24, the address stored in association with this “taskA” in the data management table T1 shown in FIG. 5, that is, “0120” is specified. In subsequent step S <b> 25, the processing data A stored from the identified address “0120” is read from the flash memory 40 and stored in the RAM 30. In step S26, the process A is executed based on the process data A stored in the RAM 30.

図8は、処理Aの実行に伴って、表示部60に表示される表示画面S3の一例を示す図である。処理データAには、上述したように図4の処理提示画像faを表すデータが含まれているから、この表示画面S3には、上述した処理提示画像fbに加えて、図4に示したものと同様の処理提示画像faが配置されている。これは、「オフ状態」に移行する前の処理過程から継続して処理Aを実行可能であることを表している。これにより、利用者は、「オフ状態」に移行する前の処理の過程から処理Aを進めることができる。   FIG. 8 is a diagram illustrating an example of the display screen S3 displayed on the display unit 60 as the process A is executed. Since the process data A includes data representing the process presentation image fa of FIG. 4 as described above, the display screen S3 includes the data shown in FIG. 4 in addition to the process presentation image fb described above. The same processing presentation image fa is arranged. This indicates that the process A can be executed continuously from the process before the transition to the “off state”. As a result, the user can proceed with the process A from the process before the transition to the “off state”.

このように、表示装置1が「オン状態」から「オフ状態」に移行するときにはデータ退避処理を実行し、「オフ状態」から「オン状態」に復帰したときにはデータ復元処理を実行する。なお、オン状態とスリープ状態は、電力供給状態であるという点では共通であるから、これらオン状態とスリープ状態との間では、上記のようなデータ退避処理やデータ復元処理は行われない。   Thus, when the display device 1 shifts from the “on state” to the “off state”, the data saving process is executed, and when the display device 1 returns from the “off state” to the “on state”, the data restoration process is executed. Since the on state and the sleep state are common in that they are power supply states, the data saving process and the data restoration process as described above are not performed between the on state and the sleep state.

以上説明した実施形態によれば、「電力供給状態」(「オン状態」又は「スリープ状態」)から「電力非供給状態」(「オフ状態」)に移行するときには、処理の単位毎に区分して処理データを退避させておき、「電力非供給状態」から「電力供給状態」に移行するときに、利用者の再開させたい処理に用いられる処理データのみを復元する。そのため、「電力非供給状態」に移行する前に実行されていた全ての処理で用いられる処理データを復元する構成に比べて、データの復元に要する時間が短くなり、またRAM30において費やされるメモリ容量も少なくてすむ。すなわち、「電力非供給状態」に移行するまでにデータを退避させておき、「電力非供給状態」が解かれたときには退避させていたデータを復元するという処理を効率よく行うことができる。   According to the embodiment described above, when shifting from the “power supply state” (“on state” or “sleep state”) to the “power non-supply state” (“off state”), the process is divided into units. The processing data is saved, and only the processing data used for the processing that the user wants to resume is restored when shifting from the “non-power supply state” to the “power supply state”. For this reason, the time required for data restoration is shortened and the memory capacity consumed in the RAM 30 compared to a configuration for restoring the processing data used in all the processes executed before shifting to the “power non-supply state”. Less. That is, it is possible to efficiently perform the process of saving the data before shifting to the “power non-supply state” and restoring the saved data when the “power non-supply state” is solved.

[変形例]
以上が実施形態の説明であるが、この実施形態の内容は以下のように変形し得る。また、以下の変形例を適宜組み合わせてもよい。
(変形例1)
上述した実施形態においては、図3に示したように、フラッシュメモリ40においては、1つの処理で用いられる処理データをひとまとまりのデータとして取り扱っていたが、これに対し、各処理で用いられる処理データをさらに複数に分類して取り扱うようにしてもよい。図9上段は、この変形例に係るRAM30の記憶内容の一例を示す図である。同図上段に示すように、このRAM30には、スタティック領域とヒープ領域とスタック領域とが確保されている。上述したように、スタティック領域は静的データが記憶される記憶領域であり、ヒープ領域は動的に割り当てられる記憶領域であり、スタック領域はスタックとして機能する記憶領域である。スタティック領域には、処理Aで用いられる処理データa1と、処理Bで用いられる処理データb1と、処理A及び処理Bで共用される処理データa2,b2とが記憶されている。また、ヒープ領域には、処理Aで用いられる処理データa3と、処理Bで用いられる処理データb3とが記憶されている。さらに、スタック領域には、処理Aで用いられる処理データa4と、処理Bで用いられる処理データb4とが記憶されている。
[Modification]
The above is the description of the embodiment, but the contents of this embodiment can be modified as follows. Further, the following modifications may be combined as appropriate.
(Modification 1)
In the embodiment described above, as shown in FIG. 3, in the flash memory 40, the processing data used in one process is handled as a group of data. On the other hand, the processing used in each process Data may be further classified and handled. The upper part of FIG. 9 is a diagram showing an example of the contents stored in the RAM 30 according to this modification. As shown in the upper part of the figure, a static area, a heap area, and a stack area are secured in the RAM 30. As described above, the static area is a storage area in which static data is stored, the heap area is a storage area that is dynamically allocated, and the stack area is a storage area that functions as a stack. In the static area, process data a1 used in process A, process data b1 used in process B, and process data a2 and b2 shared by process A and process B are stored. In the heap area, process data a3 used in process A and process data b3 used in process B are stored. Further, processing data a4 used in the process A and processing data b4 used in the process B are stored in the stack area.

この場合、CPU10は、処理データa1、処理データa2,b2、処理データa3及び処理データa4を処理Aとして区分し、処理データb1、処理データa2,b2、処理データb3及び処理データb4を処理Bとして区分して、フラッシュメモリ40に記憶させる。フラッシュメモリ40には、図3下段に示したように、同じ処理に関する処理データをアドレスが連続する1つの記憶領域にまとめて記憶させてもよいし、図9下段に示すように、フラッシュメモリ40もスタティック領域とヒープ領域とスタック領域とに分け、各々の領域に対応する処理データを記憶させるようにしてもよい。そして、CPU10は、各々の処理データの記憶場所を表すアドレスと、その処理データを用いる処理と、さらにその処理データが記憶されていたRAM30の記憶領域との対応関係を表すデータ管理テーブルを作成する。   In this case, the CPU 10 classifies the processing data a1, processing data a2 and b2, processing data a3 and processing data a4 as processing A, and processes data b1, processing data a2 and b2, processing data b3 and processing data b4 into processing B. And stored in the flash memory 40. As shown in the lower part of FIG. 3, the flash memory 40 may store the processing data related to the same process in one storage area having consecutive addresses. As shown in the lower part of FIG. May be divided into a static area, a heap area, and a stack area, and processing data corresponding to each area may be stored. Then, the CPU 10 creates a data management table that represents the correspondence between the address indicating the storage location of each processing data, the processing using the processing data, and the storage area of the RAM 30 in which the processing data is stored. .

この構成において、例えば利用者に処理Aの実行が指示された場合、CPU10は、作成したデータ管理テーブルを参照して、利用者に指示された処理Aに対応するアドレスとRAM30の記憶領域とを特定する。続いて、CPU10は、特定したアドレスに記憶されている処理データa1、処理データa2,b2、処理データa3及び処理データa4をフラッシュメモリ40から読み出す。そして、CPU10は、読み出したこれらの処理データを、RAM30の特定した各記憶領域に記憶させる。この例では、処理データa1及び処理データa2,b2がRAM30のスタティック領域に記憶され、処理データa3がRAM30のヒープ領域に記憶され、処理データa4がRAM30のスタック領域に記憶される。続いて、利用者に処理Bの実行が指示された場合にも、CPU10は上述と同様にしてデータを復元させる。ただし、CPU10は、既にRAM30上にデータが復元されている処理データa2,b2については、復元させない。
このように、RAM30に記憶されているデータを複数のデータに区分してフラッシュメモリ40に記憶する構成であれば、RAM30やフラッシュメモリ40において各々のデータを記憶する記憶領域をどのように構成してもよい。
In this configuration, for example, when the user is instructed to execute the process A, the CPU 10 refers to the created data management table to determine the address corresponding to the process A instructed by the user and the storage area of the RAM 30. Identify. Subsequently, the CPU 10 reads out the processing data a1, processing data a2 and b2, processing data a3 and processing data a4 stored in the specified address from the flash memory 40. Then, the CPU 10 stores the read processing data in each specified storage area of the RAM 30. In this example, the processing data a1 and the processing data a2 and b2 are stored in the static area of the RAM 30, the processing data a3 is stored in the heap area of the RAM 30, and the processing data a4 is stored in the stack area of the RAM 30. Subsequently, even when the user is instructed to execute the process B, the CPU 10 restores the data in the same manner as described above. However, the CPU 10 does not restore the processing data a2 and b2 whose data has already been restored on the RAM 30.
As described above, if the data stored in the RAM 30 is divided into a plurality of data and stored in the flash memory 40, how the storage area for storing each data in the RAM 30 or the flash memory 40 is configured. May be.

(変形例2)
上述した実施形態では、RAM30に記憶されている処理データを、その処理データが用いられる処理の単位で区分してフラッシュメモリ40に記憶させていた。この処理の単位は、上述したように、利用者が指定する処理Aや処理Bなどに対応する単位、すなわちタスク単位であってもよいし、それよりも小さな単位、例えば処理を実現する処理プログラムのプロセス単位や関数単位であってもよい。
(Modification 2)
In the above-described embodiment, the processing data stored in the RAM 30 is divided and stored in the flash memory 40 by the unit of processing in which the processing data is used. As described above, this processing unit may be a unit corresponding to the processing A or processing B specified by the user, that is, a task unit, or a smaller unit, for example, a processing program for realizing the processing. It may be a process unit or a function unit.

また、RAM30に記憶されている処理データを、上記のような各種処理の単位ではなく、所定のデータサイズ単位で区分してフラッシュメモリ40に記憶させてもよい。図10は、この変形例に係るRAM30とフラッシュメモリ40の記憶内容の一例を示す図であり、図11は、この変形例に係るデータ管理テーブルT2の一例を示す図である。データ退避時にRAM30から読み出された処理データは、フラッシュメモリ40に一定のデータサイズで区分されて記憶される。この一定のデータサイズは、RAM30やフラッシュメモリ40などを管理するための仕組みに応じて予め決定される。図に示した例では、処理データA,Bが100というデータサイズで区分されてフラッシュメモリ40に記憶されている。すなわち、図11に示すアドレス「0100」、「0200」・・・・間の記憶領域に記憶されるデータサイズは一定である。また、アドレス「0300」から記憶されている処理データには、処理Aの処理データと、処理Bの処理データとが記憶されている。   Further, the processing data stored in the RAM 30 may be stored in the flash memory 40 by being divided into predetermined data size units instead of the various processing units as described above. FIG. 10 is a diagram showing an example of the stored contents of the RAM 30 and the flash memory 40 according to this modification, and FIG. 11 is a diagram showing an example of the data management table T2 according to this modification. The processing data read from the RAM 30 at the time of data saving is divided and stored in the flash memory 40 with a certain data size. This fixed data size is determined in advance according to a mechanism for managing the RAM 30, the flash memory 40, and the like. In the example shown in the drawing, the processing data A and B are divided into data sizes of 100 and stored in the flash memory 40. That is, the data size stored in the storage area between the addresses “0100”, “0200”... Shown in FIG. Further, the processing data stored from the address “0300” stores processing data for processing A and processing data for processing B.

この構成において、処理Aにて用いられる処理データを復元するときには、フラッシュメモリ40のアドレス「0100」,「0200」,「0300」から処理データA及び処理データBの一部を読み出し、RAM30に記憶させる。なお、この場合、RAM30に記憶された処理データBの一部については、使用されない。また、処理Bにて用いられる処理データを復元するときには、フラッシュメモリ40のアドレス「0300」,「0400」,「0500」から処理データB及び処理データAの一部を読み出し、RAM30に記憶させる。なお、この場合、RAM30に記憶された処理データAの一部については、使用されない。このように、処理データを処理単位で区分していない場合には、フラッシュメモリ40へと復帰させた処理データのうち一部が使用されないことになり、フラッシュメモリ40に無駄な記憶領域が生じてしまうことになる。しかしながら、データの読み書きを固定長のデータ単位で管理することができるため、データの退避や復元を簡素な手順により高速で行うことができる。   In this configuration, when restoring the processing data used in the processing A, a part of the processing data A and the processing data B is read from the addresses “0100”, “0200”, “0300” of the flash memory 40 and stored in the RAM 30. Let In this case, a part of the processing data B stored in the RAM 30 is not used. When restoring the processing data used in the processing B, a part of the processing data B and the processing data A is read from the addresses “0300”, “0400”, and “0500” of the flash memory 40 and stored in the RAM 30. In this case, a part of the processing data A stored in the RAM 30 is not used. As described above, when the processing data is not divided into processing units, a part of the processing data returned to the flash memory 40 is not used, and a wasteful storage area is generated in the flash memory 40. It will end up. However, since data reading and writing can be managed in fixed-length data units, data can be saved and restored at high speed by a simple procedure.

(変形例3)
上述した実施形態では、利用者によって指示された処理で用いられる処理データのみが復元されていたが、これに限らない。例えば、利用者に指示された処理の処理データを復元した後に、この処理の後に行われる可能性が高い処理を推定し、その処理データを復元するようにしてもよい。この場合、フラッシュメモリ40には、各々の処理の処理名(第1の処理の処理識別情報)と、その処理の後に行われる処理の処理名(第2の処理の処理識別情報)とが予め対応付けて記憶されている。この対応関係は、例えば以下の方法によって決定する。
(Modification 3)
In the embodiment described above, only the processing data used in the processing instructed by the user is restored, but the present invention is not limited to this. For example, after restoring the process data of the process instructed by the user, a process that is highly likely to be performed after this process is estimated, and the process data may be restored. In this case, the flash memory 40 has a process name (process identification information of the first process) and a process name (process identification information of the second process) performed after the process in advance. It is stored in association. This correspondence is determined by the following method, for example.

(a1)利用者は、予め、操作部50を操作して、各々の処理の処理名とその処理の後に再開させたい処理の処理名とを指定し、これらを対応付けてフラッシュメモリ40に記憶させておく。例えば或る文章を表示させた後には必ず或る画像を表示するというような場合には、或る文章を表示させる処理の処理名と、或る画像を表示する処理の処理名とを指定するといった具合である。CPU10は、上述した図6のステップS26において処理を実行すると、この対応関係を参照して、実行した処理の処理名に対応付けられた処理名を特定する。続いて、CPU10は、特定した処理名の処理に対応するアドレスを特定し、特定したアドレスに記憶されている処理データをフラッシュメモリ40から読み出して、RAM30に記憶させる。この構成によれば、「オン状態」に復帰した表示装置1においてある処理が実行されると、その処理の後に再開させたい処理として利用者が指定した処理の処理データが自動的に復元される。これにより、各処理の後に再開させたい処理として指定された処理をすばやく実行することができる。 (A1) The user operates the operation unit 50 in advance to specify the process name of each process and the process name of the process to be resumed after the process, and stores these in the flash memory 40 in association with each other. Let me. For example, when a certain image is always displayed after a certain sentence is displayed, a process name for displaying a certain sentence and a process name for displaying a certain image are designated. And so on. When executing the process in step S26 of FIG. 6 described above, the CPU 10 refers to this correspondence relationship and identifies the process name associated with the process name of the executed process. Subsequently, the CPU 10 specifies an address corresponding to the process with the specified process name, reads the process data stored at the specified address from the flash memory 40, and stores it in the RAM 30. According to this configuration, when a certain process is executed in the display device 1 returned to the “on state”, the process data of the process designated by the user is automatically restored as the process to be resumed after the process. . Thereby, the process designated as the process to be resumed after each process can be quickly executed.

(a2)CPU10は、予め、各処理の内容に基づいて、各々の処理の処理名とその処理によって呼び出される処理の処理名とを対応付けてフラッシュメモリ40に記憶させておく。例えば、処理Cが処理D,E,Fのいずれかの処理の選択を促すメニュー画面を表示する処理である場合、この処理Cの手順が記述されたプログラムには、処理Cによって呼び出される側の処理である処理D,E,Fの処理名が記述されている。従って、CPU10はこれを参照して、処理Cの処理名に、処理D,E,Fの各処理名を対応付けてRAM30などに記憶する。この構成において、例えば上述した図6のステップS26において処理Cが実行された場合、CPU10は、上述と同様にして、処理Cに呼び出される処理、すなわち処理D,E,Fを特定し、特定した処理の処理データをそれぞれ復元する。この構成によれば、「オン状態」に復帰した表示装置1においてある処理が実行されると、その処理によって呼び出される処理の処理データが自動的に復元される。これにより、各処理によって呼び出される処理をすばやく実行することができる。 (A2) Based on the contents of each process, the CPU 10 stores the process name of each process in association with the process name of the process called by the process in the flash memory 40 in advance. For example, when the process C is a process for displaying a menu screen that prompts the user to select one of the processes D, E, and F, the program in which the procedure of the process C is described includes a program called by the process C. Process names of processes D, E, and F, which are processes, are described. Accordingly, the CPU 10 refers to this and stores the process name of the process C in association with the process names of the processes D, E, and F in the RAM 30 or the like. In this configuration, for example, when the process C is executed in step S26 of FIG. 6 described above, the CPU 10 specifies and specifies the processes called by the process C, that is, processes D, E, and F, in the same manner as described above. The processing data of the processing is restored. According to this configuration, when a certain process is executed in the display device 1 returned to the “ON state”, the process data of the process called by the process is automatically restored. Thereby, the process called by each process can be performed quickly.

(a3)CPU10は、予め、各処理の処理履歴に基づいて、各々の処理の処理名とその処理の後に実行された頻度が高い処理の処理名とを対応付けてフラッシュメモリ40に記憶させておく。この頻度は、例えば処理が実行された回数の絶対値であってもよいし、処理が実行された回数を相対評価した結果(例えば処理の回数が一定期間又は一定回数に占める割合)であってもよい。CPU10は、利用者によって指示された処理の順番を処理履歴として蓄積し、その処理履歴に含まれる処理の順序を統計的に分析して、どの処理の後にはどの処理が実行された頻度が高いかを判断し、その判断結果をフラッシュメモリ40に記憶しておく。例えば、処理Bの後に処理Aが実行された頻度が高いと判断された場合、処理Bの処理名には、処理Aの処理名が対応付けて記憶される。また、処理Cに続いて他の処理が実行された後に処理Dが実行された頻度が高いと判断された場合、処理Cの処理名には、処理Dの処理名が対応付けて記憶される。この構成において、例えば上述した図6のステップS26において処理Bが実行された場合、CPU10は、上述と同様にして、処理Bの後に実行された頻度が高い処理、すなわち処理Aを特定し、特定した処理の処理データを復元する。この構成によれば、「オン状態」に復帰した表示装置1においてある処理が実行されると、その処理が実行された後に実行された頻度が高い処理の処理データが自動的に復元される。これにより、各処理が実行された後に実行される可能性が高い処理をすばやく実行することができる。
なお、上述した処理履歴は、表示装置1が工場出荷時以降に初めて使用された時点から蓄積されたものであってもよいし、週に1回などの所定のタイミングでリセットされてから蓄積されたものであってもよい。処理履歴をリセットせずに蓄積した場合には、長期的にみて、各処理が実行された後に実行される頻度が高い処理の処理データが自動的に復元される。一方、処理履歴を所定のタイミングでリセットした場合には、短期的にみて、各処理が実行された後に実行される頻度が高い処理の処理データが自動的に復元される。
(A3) Based on the process history of each process, the CPU 10 associates the process name of each process with the process name of the process executed frequently after that process in the flash memory 40 in association with each other. deep. This frequency may be, for example, an absolute value of the number of times the process has been executed, or may be a result of relative evaluation of the number of times the process has been executed (for example, the ratio of the number of processes to a certain period or a certain number). Also good. The CPU 10 accumulates the order of processes instructed by the user as a process history, statistically analyzes the order of processes included in the process history, and which process is frequently executed after which process. And the determination result is stored in the flash memory 40. For example, when it is determined that the frequency at which the process A is executed after the process B is high, the process name of the process B is stored in association with the process name of the process B. In addition, when it is determined that the frequency of execution of the process D is high after another process is executed following the process C, the process name of the process D is stored in association with the process name of the process C. . In this configuration, for example, when the process B is executed in step S26 of FIG. 6 described above, the CPU 10 specifies and specifies the process that is frequently executed after the process B, that is, the process A in the same manner as described above. Restore the processing data of the processed. According to this configuration, when a certain process is executed in the display device 1 that has returned to the “ON state”, the process data of the process that is executed frequently after the process is executed is automatically restored. As a result, it is possible to quickly execute a process that is likely to be executed after each process is executed.
The processing history described above may be accumulated from the time when the display device 1 is used for the first time after factory shipment, or accumulated after being reset at a predetermined timing such as once a week. It may be. When the processing history is accumulated without being reset, the processing data of the processing that is frequently executed after each processing is performed in the long term is automatically restored. On the other hand, when the processing history is reset at a predetermined timing, the processing data of the processing that is frequently executed after each processing is executed in the short term is automatically restored.

(変形例4)
上述した実施形態では、利用者に指示された処理で用いられる処理データを復元させていたが、復元する対象となる処理データを特定する方法は、これに限らない。例えば次のような方法が考えられる。
(b1)例えば、CPU10は、利用者によって処理が指示されるのを待たずに、自ら能動的に処理データを復元してもよい。例えばCPU10は、各々の処理が実行された頻度を求めておき、フラッシュメモリ40に退避させた処理データを、その実行頻度が高い処理で用いられる処理データから順に復元させてもよい。この場合、フラッシュメモリ40には、各々の処理データ毎に、その処理データを用いる処理が行われた頻度が記憶される。この頻度は、変形例3と同じく、処理が実行された回数の絶対値であってもよいし、処理が実行された回数を相対評価した結果であってもよい。CPU10は、上述したステップS22において表示装置1を起動した後、フラッシュメモリ40に退避させておいた処理データを、実行頻度が高いものから順に復元させる。この構成では、実行頻度が高い処理において用いられる処理データが、実行頻度が低い処理において用いられる処理データよりも先に復元される。これにより、利用者が処理を指示しなくても、実行頻度が高い処理をすばやく実行することができる。
(Modification 4)
In the above-described embodiment, the process data used in the process instructed by the user is restored. However, the method for specifying the process data to be restored is not limited to this. For example, the following method can be considered.
(B1) For example, the CPU 10 may actively restore the processing data by itself without waiting for the processing to be instructed by the user. For example, the CPU 10 may obtain the frequency with which each process is executed and restore the process data saved in the flash memory 40 in order from the process data used in the process with the high execution frequency. In this case, the flash memory 40 stores the frequency at which processing using the processing data is performed for each processing data. This frequency may be an absolute value of the number of times the process has been executed, as in the third modification, or may be a result of relative evaluation of the number of times the process has been executed. After starting the display device 1 in step S22 described above, the CPU 10 restores the processing data saved in the flash memory 40 in descending order of execution frequency. In this configuration, processing data used in processing with high execution frequency is restored before processing data used in processing with low execution frequency. Thereby, even if a user does not instruct | indicate a process, the process with high execution frequency can be performed rapidly.

(b2)また、CPU10が、「電力非供給状態」に移行する前に実行されていた処理に基づいて、その処理の後に行われる処理で用いられる処理データを復元させてもよい。この場合、フラッシュメモリ40には、各々の処理の処理名と、その処理の後に「電力非供給状態」を経由して「オン状態」に復帰したときに行われる処理の処理名とが対応付けて記憶される。この対応関係は、上述と同様にして、処理の内容に基づいてCPU10が決定してもよいし、処理の実行順序に基づいてCPU10が決定してもよい。この構成において、CPU10は、上述したステップS22において表示装置1を起動した後、フラッシュメモリ40のデータ管理テーブルT1に基づいて、表示装置1が「電力非供給状態」になる前に実行していた処理を特定する。続いて、CPU10は、上述した対応関係を参照して、特定した処理の後に「電力非供給状態」を経由して「オン状態」に復帰したときに行われる処理を特定する。そして、CPU10は、特定した処理で用いられる処理データをフラッシュメモリ40から読み出し、RAM30に記憶させる。これにより、表示装置1が「オン状態」に復帰したときに行われる可能性が高い処理をすばやく実行することができる。 (B2) The CPU 10 may restore the processing data used in the processing performed after the processing based on the processing that was executed before shifting to the “power non-supply state”. In this case, in the flash memory 40, the process name of each process is associated with the process name of the process performed when the process returns to the “on state” via the “power non-supply state” after the process. Is memorized. This correspondence relationship may be determined by the CPU 10 based on the content of the process, or may be determined by the CPU 10 based on the execution order of the process, as described above. In this configuration, the CPU 10 is executed before the display device 1 enters the “power non-supply state” based on the data management table T1 of the flash memory 40 after starting the display device 1 in step S22 described above. Identify the process. Subsequently, the CPU 10 refers to the above-described correspondence relationship, and identifies a process to be performed when the identified process returns to the “on state” via the “power non-supply state”. Then, the CPU 10 reads out processing data used in the specified processing from the flash memory 40 and stores it in the RAM 30. As a result, it is possible to quickly execute a process that is likely to be performed when the display device 1 returns to the “on state”.

(b3)上述した実施形態では、利用者によって指示された処理で用いられる処理データを復元させていたが、これに限らない。例えば、CPU10が、「オフ状態」に移行する前にアクティブになっていた処理で用いられる処理データを復元させてもよい。ここでいうアクティブになっている処理とは、マルチタスクで処理されている複数の処理のうち、利用者が作業を行っている処理であり、大抵の場合、表示画面の最前面に処理経過が表示されている処理である。この場合、CPU10は、アクティブになっている処理の処理データをフラッシュメモリ40に記憶させるときには、アクティブな処理であることを表す情報を付加しておく。この構成において、CPU10は、上述した図6のステップS22において表示装置1を起動した後、アクティブな処理であることを表す情報が付加されている処理データをフラッシュメモリ40から読み出して、RAM30に記憶させる。これにより、表示装置1が「オン状態」に復帰した時に行われる可能性が高い処理をすばやく実行することができる。 (B3) In the above-described embodiment, the process data used in the process instructed by the user is restored, but the present invention is not limited to this. For example, the CPU 10 may restore processing data used in processing that was active before shifting to the “off state”. The active process here is a process in which the user is working among a plurality of processes that are processed by multitasking. In most cases, the process progresses in the foreground of the display screen. This is the process being displayed. In this case, when the processing data of the active process is stored in the flash memory 40, the CPU 10 adds information indicating the active process. In this configuration, after starting the display device 1 in step S22 of FIG. 6 described above, the CPU 10 reads processing data to which information indicating active processing is added from the flash memory 40 and stores it in the RAM 30. Let As a result, it is possible to quickly execute a process that is likely to be performed when the display device 1 returns to the “on state”.

(変形例5)
上述した実施形態では、表示装置1の起動状態が「電力供給状態」から「電力非供給状態」に移行する、まさにその移行タイミングにデータの退避が行われていたが、データを退避させるタイミングはこれに限らず、CPU10による処理やプロセスが行われない期間を利用して処理データを退避させるようにしてもよい。例えば、CPU10は、各々の処理が終了する度に、その処理で用いた処理データを退避させてもよい。あるいは、CPU10は、各処理を構成する各々のプロセスが終了する度に、そのプロセスで用いられた処理データを退避するようにしてもよい。また、CPU10は、これらの両者を併用してもよい。この構成によれば、利用者が処理データを逐一保存させなくても、処理データが自動的にフラッシュメモリ40に記憶される。これにより、例えば電力不足などの理由で処理データの保存を行わずに処理が終了してしまったために、処理データが消えてしまったという事態を防ぐことができる。さらに、この構成において、CPU10は、各々の処理が終了する度に、表示装置1の起動状態を「オン状態」から「電力非供給状態」に移行させてもよい。これにより、表示装置1の消費電力を削減することができる。
(Modification 5)
In the above-described embodiment, the data saving is performed at the transition timing at which the startup state of the display device 1 shifts from the “power supply state” to the “power non-supply state”. However, the present invention is not limited to this, and the processing data may be saved using a period in which processing and processes by the CPU 10 are not performed. For example, the CPU 10 may save the processing data used in each process when each process ends. Alternatively, the CPU 10 may save the processing data used in each process every time each process constituting each process ends. Further, the CPU 10 may use both of these. According to this configuration, even if the user does not save the processing data one by one, the processing data is automatically stored in the flash memory 40. As a result, for example, it is possible to prevent a situation in which the processing data has disappeared because the processing has been completed without saving the processing data due to power shortage or the like. Furthermore, in this configuration, the CPU 10 may shift the activation state of the display device 1 from the “on state” to the “power non-supply state” each time each process is completed. Thereby, the power consumption of the display apparatus 1 can be reduced.

(変形例6)
上述した実施形態では、複数の処理データを退避させる順番については特に説明しなかったが、上記変形例5のように処理やプロセスが行われない期間を利用して処理データを退避させる構成においては、処理データの退避の順番を次のようにしてもよい。
(c1)CPU10は、処理データを用いる処理の実行頻度が低いものから順に退避させてもよい。この場合、フラッシュメモリ40には、各々の処理データ毎に、その処理データを用いる処理が行われた頻度が記憶されている。この頻度は、変形例3と同じく、処理が実行された回数の絶対値であってもよいし、処理が実行された回数を相対評価した結果であってもよい。CPU10は、処理やプロセスが行われない期間があると、RAM30に記憶させた処理データを、実行頻度が低いものから順に読み出して、フラッシュメモリ40に記憶させる。この構成では、実行頻度が高い処理において用いられる処理データが、実行頻度が低い処理において用いられる処理データよりも後に退避される。このようにすれば、実行される可能性が低い処理の処理データ、すなわち変更される可能性の少ない処理データを優先的に退避することができるので、全体的な退避作業をすばやく実行することができる。
(Modification 6)
In the above-described embodiment, the order in which a plurality of processing data is saved is not particularly described. However, in the configuration in which the processing data is saved using a period in which no processing or process is performed as in the fifth modification example. The order of saving the processing data may be as follows.
(C1) The CPU 10 may save the processing data using the processing data in ascending order of execution frequency. In this case, the flash memory 40 stores the frequency with which the processing using the processing data is performed for each processing data. This frequency may be an absolute value of the number of times the process has been executed, as in the third modification, or may be a result of relative evaluation of the number of times the process has been executed. When there is a period during which no processing or process is performed, the CPU 10 reads out the processing data stored in the RAM 30 in order from the least frequently executed and stores them in the flash memory 40. In this configuration, processing data used in processing with high execution frequency is saved after processing data used in processing with low execution frequency. In this way, it is possible to preferentially save process data of a process that is unlikely to be executed, that is, process data that is unlikely to be changed, so that the entire save operation can be performed quickly. it can.

(c2)また、実行中の処理の後に行われる可能性の高い処理の処理データがRAM30に記憶されている場合には、CPU10は、後に行われる可能性の高い処理以外の処理の処理データを先に退避させる。この場合、フラッシュメモリ40には、上述の変形例3と同様にして、各々の処理の処理名と、その処理の後に行われる可能性の高い処理の処理名とが対応付けて記憶されている。つまり、この対応関係は、上述と同様にして、利用者が指定してもよいし、処理の内容に基づいてCPU10が決定してもよいし、あるいは処理の実行順序に基づいてCPU10が決定してもよい。CPU10は、処理やプロセスが行われない期間があると、上述した対応関係に基づいて、実行中の処理の後に実行される処理を特定する。続いて、CPU10は、特定した処理で用いられる処理データがRAM30に記憶されているか否かを判定し、記憶されている場合には、その処理データ以外の処理データを読み出して、フラッシュメモリ40に記憶させる。このようにすれば、実行される可能性が低い処理の処理データを優先的にフラッシュメモリ40に退避することができるので、全体的な退避作業をすばやく実行することができる。 (C2) When processing data of a process that is highly likely to be performed after the process being executed is stored in the RAM 30, the CPU 10 stores processing data of a process other than a process that is likely to be performed later. Evacuate first. In this case, in the flash memory 40, the process name of each process and the process name of the process that is likely to be performed after the process are stored in association with each other in the same manner as in the third modification. . That is, this correspondence may be specified by the user in the same manner as described above, may be determined by the CPU 10 based on the contents of the process, or determined by the CPU 10 based on the execution order of the processes. May be. When there is a period during which no process or process is performed, the CPU 10 specifies a process to be executed after the process being executed based on the above-described correspondence. Subsequently, the CPU 10 determines whether or not the process data used in the specified process is stored in the RAM 30. If the process data is stored, the CPU 10 reads the process data other than the process data and stores it in the flash memory 40. Remember me. In this way, it is possible to preferentially save the processing data of a process that is unlikely to be executed to the flash memory 40, so that the entire saving operation can be quickly performed.

(変形例7)
上述した実施形態は、CPU10、RAM30及びフラッシュメモリ40からなるデータ管理装置を表示装置に適用した例であったが、これに限らない。要するに、このデータ管理装置と、電力供給を受けずにデータを記憶した状態を維持する記憶手段に記憶された処理データを用いて処理を行う処理手段と、その処理手段によって処理された結果を出力する出力手段とを備える情報処理装置に適用可能である。
また、上述した実施形態では、CPU10が、RAM30からデータを退避させる処理、及び、フラッシュメモリ40からデータを復元させる処理を行っていた。このCPU10に代わって、MMU(Memory Management Unit)などの、記憶手段専用の制御装置がこれらの処理を行ってもよい。具体的な動作は以下のとおりである。まず、CPU10は、利用者に指示された処理の処理データをMMUに要求する。MMUは、要求された処理データがRAM30に記憶されている場合には、その処理データがRAM30に記憶されていることをCPU10に通知する。CPU10は、RAM30に記憶されている処理データに基づいて、利用者によって指示された処理を実行する。一方、要求された処理データがRAM30に記憶されていない場合には、MMUは、その旨のフォルト信号をCPU10に通知する。CPU10は、この通知に応じて、要求した処理データをフラッシュメモリ40からRAM30に復帰させるよう、MMUに指示する。MMUはこの指示に応じて、フラッシュメモリ40から読み出した処理データをRAM30に記憶させて、その旨をCPU10に通知する。CPU10は、RAM30に記憶されている処理データに基づいて、利用者によって指示された処理を実行する。
(Modification 7)
The above-described embodiment is an example in which the data management device including the CPU 10, the RAM 30, and the flash memory 40 is applied to the display device, but is not limited thereto. In short, this data management device, processing means for performing processing using processing data stored in the storage means for maintaining the state of storing data without receiving power supply, and outputting the result processed by the processing means The present invention can be applied to an information processing apparatus that includes an output unit that performs output.
In the above-described embodiment, the CPU 10 performs a process for saving data from the RAM 30 and a process for restoring data from the flash memory 40. Instead of the CPU 10, a control device dedicated to storage means such as an MMU (Memory Management Unit) may perform these processes. The specific operation is as follows. First, the CPU 10 requests processing data of processing instructed by the user from the MMU. When the requested processing data is stored in the RAM 30, the MMU notifies the CPU 10 that the processing data is stored in the RAM 30. The CPU 10 executes processing instructed by the user based on the processing data stored in the RAM 30. On the other hand, if the requested processing data is not stored in the RAM 30, the MMU notifies the CPU 10 of a fault signal to that effect. In response to this notification, the CPU 10 instructs the MMU to restore the requested processing data from the flash memory 40 to the RAM 30. In response to this instruction, the MMU stores the processing data read from the flash memory 40 in the RAM 30 and notifies the CPU 10 to that effect. The CPU 10 executes processing instructed by the user based on the processing data stored in the RAM 30.

(変形例8)
上述した実施形態では、表示装置1が「オフ状態」から「オン状態」に復帰させられると、利用者が操作部50を操作して所望するプログラムを指定し、それを実行するよう指示していたが、これ以外にも、処理の指示方法は様々な方法が考えられる。例えばCPU10が前回の電源オフ時に実行中であった処理の処理名の一覧を表示部60に表示させ、その一覧の中から利用者に所望の処理を選択させるという方法であってもよい。また、利用者が処理Aを所望するときには操作部50の図示せぬテンキーの「1」を押下し、処理Bを所望するときには操作部50の図示せぬテンキーの「2」を押下するなどといった具合に、利用者が処理毎に決められた操作を行うという方法であってもよい。
(Modification 8)
In the embodiment described above, when the display device 1 is returned from the “off state” to the “on state”, the user operates the operation unit 50 to specify a desired program and instruct to execute it. However, in addition to this, there are various methods for instructing processing. For example, the CPU 10 may display a list of process names of processes that were being executed when the power was turned off last time on the display unit 60, and allow the user to select a desired process from the list. Further, when the user desires the process A, the user presses the “1” keypad (not shown) of the operation unit 50, and when the user desires the process B, the user presses the “2” keypad (not shown) of the operation unit 50. For example, a method in which the user performs an operation determined for each process may be used.

(変形例9)
上述した実施形態において、「オン状態」から「スリープ状態」への移行は、CPU10の待機時間が所定時間以上になった時に行われていたが、この移行条件はこれに限らない。例えば、「オン状態」において実行されている処理の内容に応じて、上記の所定時間を長くしたり短くしたりしてもよい。一例を挙げると、「オン状態」において、利用者によるメニュー選択操作を促すメニュー画面の表示処理が実行された後にCPU10が待機状態になった場合には、その待機時間が通常の所定時間よりも長い時間以上になった時に「オン状態」から「スリープ状態」に移行させてもよい。これは、CPU10が待機状態になっている原因として、利用者による作業の中断や中止ではなく、利用者が操作の意思決定に時間がかかっている場合が考えられるからである。
(Modification 9)
In the above-described embodiment, the transition from the “on state” to the “sleep state” is performed when the standby time of the CPU 10 is equal to or longer than a predetermined time, but this transition condition is not limited to this. For example, the predetermined time may be lengthened or shortened according to the content of the process being executed in the “on state”. For example, in the “ON state”, when the CPU 10 enters a standby state after the menu screen display process for prompting the user to select a menu is performed, the standby time is longer than a normal predetermined time. You may make it shift from "on state" to "sleep state" when it becomes long time or more. This is because the reason that the CPU 10 is in the standby state is not the interruption or cancellation of the work by the user, but the case where the user takes time to make an operation decision.

また、CPU10の待機時間が所定時間以上となった場合には、表示装置1を「オフ状態」に移行させるのか又は「スリープ状態」に移行させるのかを、どちらが消費電力の削減になるかという観点から判断するようにしてもよい。つまり、CPU10は、「スリープ状態」に移行させた方が消費電力の削減になる場合には、表示装置1を「オフ状態」に移行させずに、「スリープ状態」に移行させる。   In addition, when the standby time of the CPU 10 is equal to or longer than a predetermined time, the viewpoint of which is to reduce the power consumption, whether the display device 1 is shifted to the “off state” or the “sleep state”. You may make it judge from. That is, when the CPU 10 shifts to the “sleep state” to reduce power consumption, the CPU 10 shifts the display device 1 to the “sleep state” without shifting to the “off state”.

ここで、図12を参照して、各起動状態における消費電力について説明する。同図に示すように、「オフ状態」では消費電力がほぼ0となるが、「オフ状態」から「オン状態」に復帰するときには、表示装置1の各部を起動するために一時的に多くの電力を消費する。よって、「オフ状態」の時間が短い時には、「オフ状態」を経由して「オン状態」に復帰するよりも、「スリープ状態」を経由して「オン状態」に復帰した方が、消費電力の削減になる。そこで、フラッシュメモリ40には、「オン状態」から「オフ状態」又は「スリープ状態」のうちのいずれかに移行させるための移行条件であって、その移行後に「オン状態」に再度移行させるまでに要する消費電力が少なくなるような移行条件が予め記憶されている。そして、CPU10は、その移行条件に基づいて、「オン状態」から「オフ状態」に移行させるか又は「スリープ状態」に移行させるかを決定し、決定した状態へと移行させる。このようにすれば、表示装置1における消費電力を削減することが可能となる。   Here, with reference to FIG. 12, the power consumption in each starting state is demonstrated. As shown in the figure, in the “off state”, the power consumption is almost zero, but when returning from the “off state” to the “on state”, a large amount of power is temporarily required to activate each part of the display device 1. Consume power. Therefore, when the “off state” time is short, power consumption is better when returning to the “on state” via the “sleep state” than to returning to the “on state” via the “off state”. Will be reduced. Therefore, the flash memory 40 has a transition condition for shifting from the “on state” to the “off state” or the “sleep state” until the transition to the “on state” again after the transition. The transition conditions that reduce the power consumption required are stored in advance. Then, the CPU 10 determines whether to shift from the “on state” to the “off state” or the “sleep state” based on the transition condition, and shifts to the determined state. In this way, power consumption in the display device 1 can be reduced.

具体的に説明すると、CPU10は、電源部70から常時電力供給を受けるタイマを用いて、表示装置1が「オフ状態」になっている時間を記録しておき、その記録時間に基づいて、「オフ状態」に移行させるのか又は「スリープ状態」に移行させるのかを判断する。例えば前回「オフ状態」になっていた時間が閾値未満である場合には、今回、CPU10の待機時間が所定時間以上となると、表示装置1を「スリープ状態」に移行させる。一方、前回「オフ状態」になっていた時間が閾値以上である場合には、今回、CPU10の待機時間が所定時間以上となると、表示装置1を「オフ状態」に移行させる。この場合、前回の待機時間と比較される閾値は、図12で説明したような「オフ状態」を経由して「オン状態」に復帰したときの消費電力量と、「スリープ状態」を経由して「オン状態」に復帰したときの消費電力量が等しくなるような時間である。そして、このときフラッシュメモリ40に記憶されている移行条件は、この閾値と、前回の待機時間と、これらの大小関係に基づいて「オフ状態」又は「スリープ状態」のいずれに移行させるかというアルゴリズムである。   More specifically, the CPU 10 records a time during which the display device 1 is in the “off state” using a timer that constantly receives power from the power supply unit 70, and based on the recording time, “ It is determined whether to shift to “off state” or “sleep state”. For example, in the case where the time of the previous “off state” is less than the threshold, the display device 1 is shifted to the “sleep state” when the standby time of the CPU 10 is equal to or longer than a predetermined time. On the other hand, when the time when the previous “off state” was equal to or greater than the threshold value, the display device 1 is shifted to the “off state” when the standby time of the CPU 10 is equal to or longer than the predetermined time. In this case, the threshold value to be compared with the previous standby time is based on the power consumption when returning to the “on state” via the “off state” as described in FIG. 12 and the “sleep state”. Thus, the power consumption when returning to the “on state” is equal. Then, the transition condition stored in the flash memory 40 at this time is an algorithm of whether to shift to the “off state” or the “sleep state” based on the threshold value, the previous standby time, and the magnitude relationship between them. It is.

また、過去に表示装置1が「オフ状態」となっていた時間の平均値が閾値未満である場合には、CPU10の待機時間が所定時間以上となると、表示装置1を「スリープ状態」に移行させる。一方、過去に表示装置1が「オフ状態」となっていた時間の平均値が閾値以上である場合には、CPU10の待機時間が所定時間以上となると、表示装置1を「オフ状態」に移行させる。この場合の閾値も、「オフ状態」を経由して「オン状態」に復帰したときの消費電力量と、「スリープ状態」を経由して「オン状態」に復帰したときの消費電力量が等しくなるような時間である。そして、このときフラッシュメモリ40に記憶されている移行条件は、この閾値と、過去に表示装置1が「オフ状態」となっていた時間の平均値と、これらの大小関係に基づいて「オフ状態」又は「スリープ状態」のいずれに移行させるかというアルゴリズムである。   Further, when the average value of the time when the display device 1 has been in the “off state” in the past is less than the threshold value, the display device 1 shifts to the “sleep state” when the standby time of the CPU 10 exceeds a predetermined time. Let On the other hand, when the average value of the time during which the display device 1 has been in the “off state” in the past is equal to or greater than the threshold value, the display device 1 is shifted to the “off state” when the standby time of the CPU 10 exceeds the predetermined time. Let In this case as well, the power consumption when returning to the “on state” via the “off state” is equal to the power consumption when returning to the “on state” via the “sleep state”. It is time to become. The transition condition stored in the flash memory 40 at this time is based on the threshold value, the average value of the time when the display device 1 has been in the “off state” in the past, and the magnitude relation between these values. ”Or“ sleep state ”.

また、CPU10は、「オン状態」において実行されていた処理が、「オフ状態」になってもすぐに「オン状態」に復帰されるような類の処理であると判断した場合には、「オフ状態」に移行させずに「スリープ状態」に移行させるようにしてもよい。すぐに「オン状態」に復帰される類の処理であるか否かは、各々の処理の内容に応じて予め決められていてもよいし、CPU10が過去の処理履歴から学習的に求めてもよい。この場合、フラッシュメモリ40に記憶されている移行条件は、すぐに「オン状態」に復帰されるような類の処理であると予め決められた処理の処理名と、処理の処理名に基づいてオフ状態又はスリープ状態のいずれに移行させるかというアルゴリズムである。   If the CPU 10 determines that the process executed in the “on state” is a type of process that immediately returns to the “on state” even if the “off state” is entered, It is also possible to shift to the “sleep state” without shifting to the “off state”. Whether the process is immediately returned to the “on state” or not may be determined in advance according to the contents of each process, or may be obtained by learning from the past processing history by the CPU 10. Good. In this case, the transition condition stored in the flash memory 40 is based on the process name of the process and the process name of the process that are determined in advance to be a type of process that is immediately returned to the “on state”. This is an algorithm for shifting to an off state or a sleep state.

(変形例10)
上述した実施形態では、電力供給を受けてデータを記憶した状態を維持する第1の記憶手段としてRAM30を例示し、電力供給を受けずにデータを記憶した状態を維持する第2の記憶手段としてフラッシュメモリ40を例示していたが、これら記憶手段の具体例は、実施形態の例示に限定されることはない。
(Modification 10)
In the above-described embodiment, the RAM 30 is exemplified as the first storage unit that maintains the state where the data is stored by receiving the power supply, and the second storage unit maintains the state where the data is stored without receiving the power supply. Although the flash memory 40 has been illustrated, specific examples of these storage means are not limited to the illustration of the embodiment.

(変形例11)
上述した実施形態では、「オン状態」及び「スリープ状態」を「電力供給状態」とし、「オフ状態」を「電力非供給状態」としていたが、一般に「スリープ状態」と呼ばれる起動状態を「電力供給状態」に分類するか「電力非供給状態」に分類するかは、RAM30に電力を供給するか否かによって決めればよい。「スリープ状態」を「電力非供給状態」に分類した場合には、上述した図2のステップS13で、CPU10が、自身の待機時間が所定時間以上であるか否かを判断し、所定時間以上であればステップS14の処理に進む。そして、ステップS16では、CPU10が、表示装置1の起動状態を「オン状態」から「スリープ状態」に移行させる。これにより、表示装置1の起動状態が「オン状態」から「スリープ状態」に移行される場合のデータ退避処理が実行される。また、上述したステップS21及びS22では、利用者によって操作部50が操作されると、CPU10が表示装置1の起動状態を「スリープ状態」から「オン状態」に移行させる。これにより、表示装置1の起動状態が「スリープ状態」から「オン状態」に復帰した場合にデータ復元処理が実行される。
(Modification 11)
In the above-described embodiment, the “on state” and the “sleep state” are set as the “power supply state”, and the “off state” is set as the “power supply non-supply state”. Whether it is classified as “supply state” or “non-power supply state” may be determined depending on whether or not power is supplied to the RAM 30. When the “sleep state” is classified as the “non-power supply state”, the CPU 10 determines whether or not its standby time is a predetermined time or more in step S13 of FIG. If so, the process proceeds to step S14. In step S16, the CPU 10 shifts the activation state of the display device 1 from the “on state” to the “sleep state”. Thereby, the data saving process is executed when the activation state of the display device 1 is shifted from the “on state” to the “sleep state”. In steps S21 and S22 described above, when the operation unit 50 is operated by the user, the CPU 10 shifts the activation state of the display device 1 from the “sleep state” to the “on state”. As a result, the data restoration process is executed when the activation state of the display device 1 returns from the “sleep state” to the “on state”.

(変形例12)
また、上述した表示装置1のCPU10が実行するプログラムは、磁気テープ、磁気ディスク、フレキシブルディスク、光記録媒体、光磁気記録媒体、CD(Compact Disk)、DVD(Digital Versatile Disk)、RAMなどの記録媒体に記録した状態で提供し得る。また、インターネットなどのネットワーク経由で表示装置1にダウンロードさせることも可能である。即ち、本発明をプログラムとして実現することもできる。
(Modification 12)
The program executed by the CPU 10 of the display device 1 described above is a recording such as a magnetic tape, a magnetic disk, a flexible disk, an optical recording medium, a magneto-optical recording medium, a CD (Compact Disk), a DVD (Digital Versatile Disk), and a RAM. It can be provided as recorded on the medium. Moreover, it is also possible to make the display device 1 download via a network such as the Internet. That is, the present invention can be realized as a program.

本実施形態に係る表示装置の構成を示す図である。It is a figure which shows the structure of the display apparatus which concerns on this embodiment. 同表示装置によるデータ退避処理を示すフロー図である。It is a flowchart which shows the data saving process by the display apparatus. 本実施形態に係るRAMとフラッシュメモリの記憶内容の一例を示す図である。It is a figure which shows an example of the memory content of RAM and flash memory which concerns on this embodiment. 処理A,Bの実行に伴う表示画面の一例を示す図である。It is a figure which shows an example of the display screen accompanying execution of the process A and B. FIG. 本実施形態に係るデータ管理テーブルの一例を示す図であるIt is a figure which shows an example of the data management table which concerns on this embodiment. 同表示装置によるデータ復元処理を示すフロー図である。It is a flowchart which shows the data restoration process by the display device. 処理Bの実行に伴う表示画面の一例を示す図である。12 is a diagram illustrating an example of a display screen that accompanies execution of process B. FIG. 処理Aの実行に伴う表示画面の一例を示す図である。It is a figure which shows an example of the display screen accompanying execution of the process A. FIG. 変形例に係るRAMとフラッシュメモリの記憶内容の一例を示す図である。It is a figure which shows an example of the memory content of RAM which concerns on a modification, and flash memory. 変形例に係るRAMとフラッシュメモリの記憶内容の一例を示す図である。It is a figure which shows an example of the memory content of RAM which concerns on a modification, and flash memory. 変形例に係るデータ管理テーブルの一例を示す図である。It is a figure which shows an example of the data management table which concerns on a modification. 各起動状態における消費電力を説明する図である。It is a figure explaining the power consumption in each starting state.

符号の説明Explanation of symbols

1…表示装置、10…CPU、20…ROM、30…RAM、40…フラッシュメモリ、50…操作部、60…表示部、70…電源部、80…バス。 DESCRIPTION OF SYMBOLS 1 ... Display apparatus, 10 ... CPU, 20 ... ROM, 30 ... RAM, 40 ... Flash memory, 50 ... Operation part, 60 ... Display part, 70 ... Power supply part, 80 ... Bus.

Claims (12)

電力供給を受けてデータを記憶した状態を維持する第1の記憶手段と、
電力供給を受けずにデータを記憶した状態を維持する第2の記憶手段と、
前記第1の記憶手段に電力を供給する電力供給状態、又は、前記第1の記憶手段に電力を供給しない電力非供給状態のいずれかに移行させる状態移行手段と、
前記状態移行手段によって前記電力供給状態から前記電力非供給状態に移行させられるまでに、前記第1の記憶手段に記憶されているデータを複数のデータに区分して前記第2の記憶手段に記憶させる第1の記憶制御手段と、
前記第1の記憶制御手段によって前記第2の記憶手段に記憶させられた各々のデータの記憶場所と、当該データに関連する処理との対応関係を記憶する対応関係記憶手段と、
前記状態移行手段によって前記電力非供給状態から前記電力供給状態に移行させられると、前記対応関係記憶手段によって記憶されている対応関係に基づいて各々の前記処理に対応する前記記憶場所を特定する特定手段と、
前記特定手段が前記処理ごとに特定した各々の記憶場所に記憶されているデータを前記第2の記憶手段から読み出して、前記第1の記憶手段に記憶させる第2の記憶制御手段と
を備えることを特徴とするデータ管理装置。
First storage means for maintaining a state in which data is stored by receiving power supply;
Second storage means for maintaining a state of storing data without receiving power supply;
State transition means for shifting to either a power supply state for supplying power to the first storage means or a power non-supply state for not supplying power to the first storage means;
The data stored in the first storage unit is divided into a plurality of data and stored in the second storage unit until the state shift unit shifts from the power supply state to the power non-supply state. First storage control means for causing
Correspondence storage means for storing the correspondence between the storage locations of the respective data stored in the second storage means by the first storage control means and the processing related to the data;
When the state transition means shifts from the non-power supply state to the power supply state, the storage location corresponding to each of the processes is specified based on the correspondence stored by the correspondence storage means Means,
Second storage control means for reading data stored in each storage location specified for each processing by the specifying means from the second storage means and storing the data in the first storage means A data management device characterized by the above.
前記第1の記憶制御手段は、前記第1の記憶手段に記憶されているデータを、当該データを用いた処理の単位で複数のデータに区分して前記第2の記憶手段に記憶させる
ことを特徴とする請求項1記載のデータ管理装置。
The first storage control means divides the data stored in the first storage means into a plurality of data in units of processing using the data and stores the data in the second storage means. The data management apparatus according to claim 1, wherein:
前記第1の記憶制御手段は、前記第1の記憶手段に記憶されているデータを、所定のデータサイズ単位で複数のデータに区分して前記第2の記憶手段に記憶させる
ことを特徴とする請求項1記載のデータ管理装置。
The first storage control means divides the data stored in the first storage means into a plurality of data in a predetermined data size unit and stores the data in the second storage means. The data management apparatus according to claim 1.
前記特定手段は、
複数の前記処理のうちの或る第1の処理の処理識別情報と、当該第1の処理の後に行われる第2の処理の処理識別情報とを対応付けて記憶しており、前記電力供給状態において行われる処理として前記第1の処理を特定すると、当該第1の処理の後に行われる処理として、当該第1の処理の処理識別情報に対応付けて記憶された処理識別情報の前記第2の処理を特定し、前記対応関係記憶手段によって記憶されている対応関係に基づいて当該第2の処理に対応する前記記憶場所を特定し、
前記第2の記憶制御手段は、
前記特定手段が前記第2の処理に対応するものとして特定した記憶場所に記憶されているデータを前記第2の記憶手段から読み出して、前記第1の記憶手段に記憶させる
ことを特徴とする請求項1記載のデータ管理装置。
The specifying means is:
Process identification information of a certain first process among the plurality of processes and process identification information of a second process performed after the first process are stored in association with each other, and the power supply state When the first process is specified as the process to be performed in the process, the second process of the process identification information stored in association with the process identification information of the first process is performed as the process performed after the first process. Identifying a process, identifying the storage location corresponding to the second process based on the correspondence stored by the correspondence storage means,
The second storage control means
The data stored in the storage location specified by the specifying unit as corresponding to the second process is read from the second storage unit and stored in the first storage unit. Item 2. A data management device according to item 1.
前記特定手段は、
前記電力供給状態において利用者の指示に従って行われる複数の処理の順序を記録していき、記録した順序から、前記或る第1の処理の処理識別情報と、当該第1の処理の後に行われる第2の処理の処理識別情報とを特定して記憶する
ことを特徴とする請求項4記載のデータ管理装置。
The specifying means is:
The order of a plurality of processes performed in accordance with a user instruction in the power supply state is recorded, and the process identification information of the certain first process and the first process are performed from the recorded order. The data management apparatus according to claim 4, wherein the process identification information of the second process is specified and stored.
前記第1の記憶制御手段は、
複数の前記処理のうちの或る第1の処理の処理識別情報と、当該第1の処理の後に行われる第2の処理の処理識別情報とを対応付けて記憶しており、
前記電力供給状態において前記第1の処理が行われると、当該第1の処理の処理識別情報に対応付けて記憶された前記第2の処理の処理識別情報を特定し、
前記第1の記憶手段に記憶されているデータを区分した複数のデータのうち、前記第2の処理に関連するデータ以外のデータを、前記第2の記憶手段に記憶させ、その後に、前記第2の処理に関連するデータを記憶させる
ことを特徴とする請求項1記載のデータ管理装置。
The first storage control means includes
The process identification information of a certain first process among the plurality of processes and the process identification information of a second process performed after the first process are stored in association with each other,
When the first process is performed in the power supply state, the process identification information of the second process stored in association with the process identification information of the first process is specified,
Of the plurality of data obtained by dividing the data stored in the first storage unit, data other than data related to the second process is stored in the second storage unit, and then the second storage unit stores the data. The data management apparatus according to claim 1, wherein data related to the processing of 2 is stored.
前記第1の記憶制御手段は、
前記電力供給状態において利用者の指示に従って行われる複数の処理の順序を記録していき、記録した順序から、前記或る第1の処理の処理識別情報と、当該第1の処理の後に行われる第2の処理の処理識別情報とを特定して記憶する
ことを特徴とする請求項6記載のデータ管理装置。
The first storage control means includes
The order of a plurality of processes performed in accordance with a user instruction in the power supply state is recorded, and the process identification information of the certain first process and the first process are performed from the recorded order. The data management apparatus according to claim 6, wherein the process identification information of the second process is specified and stored.
前記第1の記憶制御手段によって区分された各々のデータごとに、当該データに関連した処理が行われた頻度を記憶する頻度記憶手段を備え、
前記第2の記憶制御手段は、各々の前記データを、当該データに関連する処理が行われた頻度が高いものから順に前記第2の記憶手段から読み出して、前記第1の記憶手段に記憶させる
ことを特徴とする請求項1記載のデータ管理装置。
For each data sectioned by the first storage control means, a frequency storage means for storing the frequency at which processing related to the data is performed,
The second storage control unit reads each of the data from the second storage unit in descending order of frequency of processing related to the data, and stores the data in the first storage unit. The data management apparatus according to claim 1.
前記第1の記憶制御手段によって区分された各々のデータごとに、当該データに関連した処理が行われた頻度を記憶する頻度記憶手段を備え、
前記第1の記憶制御手段は、各々の前記データを、当該データに関連する処理が行われた頻度が低いものから順に前記第2の記憶手段に記憶させる
ことを特徴とする請求項1記載のデータ管理装置。
For each data sectioned by the first storage control means, a frequency storage means for storing the frequency at which processing related to the data is performed,
The said 1st memory | storage control means memorize | stores each said data in a said 2nd memory | storage means in an order from the low frequency with which the process relevant to the said data was performed. Data management device.
前記電力供給状態には、消費電力が多い第1の電力供給状態と、消費電力が少ない第2の電力供給状態とが含まれており、
前記状態移行手段は、
前記第1の電力供給状態から前記電力非供給状態又は前記第2の電力供給状態のうちのいずれかに移行させるための移行条件であって、その移行後に前記第1の電力供給状態に再度移行させるまでに要する消費電力が少なくなるような移行条件を記憶しておき、
記憶している前記移行条件に基づいて、前記第1の電力供給状態から前記電力非供給状態に移行させるか又は前記第1の電力供給状態から前記第2の電力供給状態に移行させるかを決定し、決定した状態へと移行させる
ことを特徴とする請求項1記載のデータ管理装置。
The power supply state includes a first power supply state with high power consumption and a second power supply state with low power consumption,
The state transition means includes
A transition condition for transitioning from the first power supply state to either the power non-supply state or the second power supply state, and transitioning again to the first power supply state after the transition Remember the transition conditions that reduce the power consumption required to
Based on the stored transition condition, it is determined whether to shift from the first power supply state to the power non-supply state or from the first power supply state to the second power supply state. The data management apparatus according to claim 1, wherein the data management apparatus shifts to a determined state.
請求項1〜10のいずれか1項に記載のデータ管理装置と、
前記第1の記憶手段に記憶されたデータを用いて処理を行う処理手段と、
前記処理手段によって処理された結果を出力する出力手段と
を備えることを特徴とする情報処理装置。
The data management device according to any one of claims 1 to 10,
Processing means for performing processing using data stored in the first storage means;
An information processing apparatus comprising: output means for outputting a result processed by the processing means.
電力供給を受けてデータを記憶した状態を維持する第1の記憶手段と、電力供給を受けずにデータを記憶した状態を維持する第2の記憶手段とを備えたコンピュータを、
前記第1の記憶手段に電力を供給する電力供給状態、又は、前記第1の記憶手段に電力を供給しない電力非供給状態のいずれかに移行させる状態移行手段と、
前記状態移行手段によって前記電力供給状態から前記電力非供給状態に移行させられるまでに、前記第1の記憶手段に記憶されているデータを複数のデータに区分して前記第2の記憶手段に記憶させる第1の記憶制御手段と、
前記第1の記憶制御手段によって前記第2の記憶手段に記憶させられた各々のデータの記憶場所と、当該データに関連する処理との対応関係を記憶する対応関係記憶手段と、
前記状態移行手段によって前記電力非供給状態から前記電力供給状態に移行させられると、前記対応関係記憶手段によって記憶されている対応関係に基づいて各々の前記処理に対応する前記記憶場所を特定する特定手段と、
前記特定手段が前記処理ごとに特定した各々の記憶場所に記憶されているデータを前記第2の記憶手段から読み出して、前記第1の記憶手段に記憶させる第2の記憶制御手段と
して機能させるためのプログラム。
A computer comprising first storage means for maintaining a state in which data is stored upon receiving power supply, and second storage means for maintaining a state in which data is stored without receiving power supply,
State transition means for shifting to either a power supply state for supplying power to the first storage means or a power non-supply state for not supplying power to the first storage means;
The data stored in the first storage unit is divided into a plurality of data and stored in the second storage unit until the state shift unit shifts from the power supply state to the power non-supply state. First storage control means for causing
Correspondence storage means for storing the correspondence between the storage locations of the respective data stored in the second storage means by the first storage control means and the processing related to the data;
When the state transition means shifts from the non-power supply state to the power supply state, the storage location corresponding to each of the processes is specified based on the correspondence stored by the correspondence storage means Means,
Functions as second storage control means for reading data stored in each storage location specified for each processing by the specifying means from the second storage means and storing the data in the first storage means Program to let you.
JP2007274159A 2007-10-22 2007-10-22 Data management apparatus, information processing apparatus, and program Expired - Fee Related JP5034861B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007274159A JP5034861B2 (en) 2007-10-22 2007-10-22 Data management apparatus, information processing apparatus, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007274159A JP5034861B2 (en) 2007-10-22 2007-10-22 Data management apparatus, information processing apparatus, and program

Publications (2)

Publication Number Publication Date
JP2009104320A true JP2009104320A (en) 2009-05-14
JP5034861B2 JP5034861B2 (en) 2012-09-26

Family

ID=40705941

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007274159A Expired - Fee Related JP5034861B2 (en) 2007-10-22 2007-10-22 Data management apparatus, information processing apparatus, and program

Country Status (1)

Country Link
JP (1) JP5034861B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012002142A1 (en) * 2010-06-29 2012-01-05 ブラザー工業株式会社 Display device, display method and display programme

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0561696A (en) * 1991-09-05 1993-03-12 Kyushu Nippon Denki Software Kk Task status protecting system
JPH0728544A (en) * 1993-07-12 1995-01-31 Matsushita Electric Ind Co Ltd Computer system
JP2000250667A (en) * 1999-02-26 2000-09-14 Nec Corp Suspending and resuming method providing system processing function
JP2002163046A (en) * 2000-11-24 2002-06-07 Sony Corp Processor and method for processing data
JP2004362426A (en) * 2003-06-06 2004-12-24 Sony Corp Information processing system, its control method, and computer program
JP2006074747A (en) * 2004-08-05 2006-03-16 Canon Inc Data processing device and control method thereof
JP2006095741A (en) * 2004-09-28 2006-04-13 Fuji Xerox Co Ltd Information processing equipment
JP2006178858A (en) * 2004-12-24 2006-07-06 Denso Wave Inc Data processing terminal, and data management method and computer program of data processing terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0561696A (en) * 1991-09-05 1993-03-12 Kyushu Nippon Denki Software Kk Task status protecting system
JPH0728544A (en) * 1993-07-12 1995-01-31 Matsushita Electric Ind Co Ltd Computer system
JP2000250667A (en) * 1999-02-26 2000-09-14 Nec Corp Suspending and resuming method providing system processing function
JP2002163046A (en) * 2000-11-24 2002-06-07 Sony Corp Processor and method for processing data
JP2004362426A (en) * 2003-06-06 2004-12-24 Sony Corp Information processing system, its control method, and computer program
JP2006074747A (en) * 2004-08-05 2006-03-16 Canon Inc Data processing device and control method thereof
JP2006095741A (en) * 2004-09-28 2006-04-13 Fuji Xerox Co Ltd Information processing equipment
JP2006178858A (en) * 2004-12-24 2006-07-06 Denso Wave Inc Data processing terminal, and data management method and computer program of data processing terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012002142A1 (en) * 2010-06-29 2012-01-05 ブラザー工業株式会社 Display device, display method and display programme

Also Published As

Publication number Publication date
JP5034861B2 (en) 2012-09-26

Similar Documents

Publication Publication Date Title
JP4436219B2 (en) Information processing apparatus and power supply control method
JP4175838B2 (en) Information processing apparatus with standby mode, standby mode start method and standby mode cancel method
JP2988866B2 (en) Computer system
JP4281421B2 (en) Information processing system, control method therefor, and computer program
TWI528162B (en) Computer system and operating system switching method thereof
JP5181708B2 (en) Image rewriting control device, information display device, and program
EP2495655B1 (en) Method for switching operating system and electronic apparatus using the same
JPH1097353A (en) Computer system and resume processing method applied to the same system
JP2016004420A (en) Memory management method
US5680540A (en) Suspend-to-disk system for removable hard drive
JPH077316B2 (en) System restart device
JP2017112548A (en) Image forming apparatus and program
JP5034861B2 (en) Data management apparatus, information processing apparatus, and program
JP2005115720A (en) Information processor and program for use in the same
JP2001014050A (en) Information processor and storage medium
JP2005182473A (en) Frequency control method and information processor
JPH10240391A (en) Portable document display/processor and power management control method to be applied to the same
JP4782184B2 (en) Information processing apparatus and power supply control method
JP2014174710A (en) Information processing device, information processing method, and program
JP3427010B2 (en) Computer system
JPH1063362A (en) Suspend-resuming method capable of holding plural program states by each resume factor
JP2012198690A (en) Information processing apparatus, communication control unit, processing execution method, and processing execution program
KR100225985B1 (en) Apparatus and method of saving power of computer
JP4872328B2 (en) Operating environment switching program and information processing apparatus
JP2008027354A (en) Information processing apparatus and information processing apparatus boot method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20101004

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20111026

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20111108

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20111216

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20120605

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120618

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

Free format text: PAYMENT UNTIL: 20150713

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees