JP5381182B2 - Electronic device life detection method and electronic device with life detection function - Google Patents

Electronic device life detection method and electronic device with life detection function Download PDF

Info

Publication number
JP5381182B2
JP5381182B2 JP2009056329A JP2009056329A JP5381182B2 JP 5381182 B2 JP5381182 B2 JP 5381182B2 JP 2009056329 A JP2009056329 A JP 2009056329A JP 2009056329 A JP2009056329 A JP 2009056329A JP 5381182 B2 JP5381182 B2 JP 5381182B2
Authority
JP
Japan
Prior art keywords
data
memory
electronic device
life
voltage
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.)
Active
Application number
JP2009056329A
Other languages
Japanese (ja)
Other versions
JP2010210390A (en
Inventor
明 ▲高▼石
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Omron Corp
Original Assignee
Omron 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 Omron Corp filed Critical Omron Corp
Priority to JP2009056329A priority Critical patent/JP5381182B2/en
Publication of JP2010210390A publication Critical patent/JP2010210390A/en
Application granted granted Critical
Publication of JP5381182B2 publication Critical patent/JP5381182B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Dc-Dc Converters (AREA)
  • Power Conversion In General (AREA)
  • Testing Electric Properties And Detecting Electric Faults (AREA)

Description

本発明は、電子機器内部に電源電圧を充電するコンデンサを備えた電子機器に対して当該電子機器の寿命を検知する方法および寿命検知機能付き電子機器に関するものである。   The present invention relates to a method for detecting the life of an electronic device having a capacitor for charging a power supply voltage inside the electronic device, and an electronic device with a life detection function.

各種電子機器の一例である温度調節器では、内部に、温度調節用のアプリケーションプログラム(温調プログラム)等が格納されるプログラムメモリ、このプログラムメモリに格納してある温調プログラムに従い、各種温調処理を実行するCPU、その他の各種回路、等を内蔵している。   In a temperature controller, which is an example of various electronic devices, a program memory in which an application program (temperature control program) for temperature control is stored inside, and various temperature control is performed according to the temperature control program stored in the program memory. A CPU for executing processing, other various circuits, and the like are incorporated.

この温度調節器においては、内部回路に動作電圧を供給する電源部を内蔵している。   This temperature controller has a built-in power supply for supplying an operating voltage to the internal circuit.

このような温度調節器においては、電断が発生して、CPU上で動作する温調プログラムが突然終了すると、設定データが破壊されてしまうことがある。このような場合、再起動した際に正常に温調プログラムが動作しなくなる。その際、そうした設定データは、例えばメインメモリに格納されているために、電断すると、メインメモリから記憶内容が消去される。そこで、このようなデータの保護のために、プログラム終了時にメインメモリのデータを不揮発性メモリに退避させる処理を行うことが必要となる。   In such a temperature controller, when power interruption occurs and the temperature control program operating on the CPU is suddenly terminated, the setting data may be destroyed. In such a case, the temperature control program does not operate normally when restarted. At that time, since such setting data is stored in, for example, the main memory, when the power is cut off, the stored contents are erased from the main memory. Therefore, in order to protect such data, it is necessary to perform processing for saving the data in the main memory to the nonvolatile memory at the end of the program.

この場合、不揮発性メモリにデータを退避させるまでの間に、電断後即座に動作電圧が動作に必要な下限電圧以下に低下しないように、電源部内の電解コンデンサの充電電圧を利用している。上記電解コンデンサは、電断後、徐々に充電電圧が低下するので、電源部は、電解コンデンサの充電電圧が電断後からリセット電圧に低下するまでは、電子機器の内部回路に動作電圧を供給することができるようにしている。   In this case, the charging voltage of the electrolytic capacitor in the power supply unit is used so that the operating voltage does not drop below the lower limit voltage required for operation immediately after the power is cut off before the data is saved in the nonvolatile memory. . Since the charging voltage of the electrolytic capacitor gradually decreases after power interruption, the power supply supplies the operating voltage to the internal circuit of the electronic device until the charging voltage of the electrolytic capacitor decreases to the reset voltage after power interruption. To be able to.

そして、電源部が電断後も電子機器の内部回路に動作電圧を供給することができるまでの間に、メインメモリのデータを不揮発性メモリに退避させる処理を行うことにより、データを保護することができるようにしている。   And, after the power supply section is cut off, the data in the main memory is saved to the nonvolatile memory until the operating voltage can be supplied to the internal circuit of the electronic device, thereby protecting the data. To be able to.

したがって、電解コンデンサが容量抜けするなどして寿命が到来した場合では、電解コンデンサ寿命を電子機器の寿命として、表示するなどした従来技術がすでに提案されている。   Therefore, when the life of the electrolytic capacitor comes to an end, for example, the conventional technology has already been proposed in which the life of the electrolytic capacitor is displayed as the life of the electronic device.

そうした従来技術の多くは、例えば特許文献1では、電断後に放電により電解コンデンサ電圧が低下するが、この電解コンデンサ電圧が電断後に基準電圧に低下するまでの時間(寿命測定判定用時間)が一定時間以内か否かにより電解コンデンサ寿命ないしは電子機器寿命を判定する技術である。   In many of such prior arts, for example, in Patent Document 1, the electrolytic capacitor voltage decreases due to discharge after power interruption, but the time until the electrolytic capacitor voltage decreases to the reference voltage after power interruption (life measurement determination time) is long. This is a technique for determining the life of an electrolytic capacitor or the life of an electronic device depending on whether it is within a certain time.

しかしながら、このような従来技術の場合、電解コンデンサ以外の周辺の電子部品の性能ばらつきを考慮していない。すなわち、電解コンデンサ電圧が電断後に基準電圧に低下するまでの時間が一定時間以内であったとしても、メインメモリのデータを不揮発性メモリに退避処理させるための電子部品の性能ばらつき等により、退避処理ができなくなる場合がある。この場合、退避処理ができないので、電子機器の寿命といわざるを得ないにもかかわらず、電解コンデンサは寿命が到来していないために、寿命正常であると誤判定してしまう。   However, in the case of such a conventional technique, performance variations of peripheral electronic components other than the electrolytic capacitor are not taken into consideration. In other words, even if the time required for the electrolytic capacitor voltage to drop to the reference voltage after power interruption is within a certain time, it is saved due to variations in the performance of electronic components for saving the data in the main memory to the nonvolatile memory. Processing may not be possible. In this case, since the evacuation process cannot be performed, the life of the electronic device is inevitably determined, but the electrolytic capacitor has not reached the end of its life, so it is erroneously determined that the life is normal.

なお、特許文献1以外で、特許文献1と同様の技術が開示されている特許文献も下記する。   In addition, the patent document in which the technique similar to patent document 1 is disclosed except patent document 1 is also mentioned below.

特開2002−281735号公報JP 2002-281735 A 特開平7−163045号公報JP 7-163045 A 特開平6−206262号公報JP-A-6-206262

本発明においては、電解コンデンサを含め、周辺の電子部品の性能ばらつきに依存しないで、電子機器寿命を確実に判定できるようにすることである。   In the present invention, the lifetime of an electronic device can be reliably determined without depending on performance variations of peripheral electronic components including an electrolytic capacitor.

本発明第1による電子機器寿命検知方法は、電断時に、コンデンサの充電電圧が所定電圧だけ低下するまでの時間内に、不揮発性のメモリに所定のデータを書き込むデータ書き込み処理と、電源投入時に上記電断時でのメモリへのデータ書き込み状態から当該電子機器の寿命状態を判定する寿命判定処理と、を実施することを特徴とするものである。   The electronic device life detection method according to the first aspect of the present invention includes a data writing process for writing predetermined data in a nonvolatile memory within a time until the charging voltage of the capacitor decreases by a predetermined voltage at the time of power interruption, A life determination process for determining a life state of the electronic device from a data writing state to the memory at the time of the power interruption is performed.

上記電断、電源投入は、交流、直流を問わない。   The power interruption and power on may be AC or DC.

本発明第1では、データ書き込み処理で、電断により上記コンデンサが放電して、その充電電圧が所定電圧だけ低下するまでの時間内に不揮発性のメモリに所定のデータを書き込むので、コンデンサが性能劣化していたり、その周辺の電子部品が性能劣化しているような場合では、所定データをメモリに書き込むための時間を確保できず、データを書き込めない。そして寿命判定処理では、メモリへのデータ書き込み状態から電子機器の寿命状態を判定するので、例えば、メモリに所定データのすべてが書き込まれている場合では、電子機器残り寿命は十分に有ると判定でき、所定データの一部だけが書き込まれている場合では、電子機器の残り寿命は十分ではないと判定でき、所定データが何ら書き込まれていない場合では、電子機器の残り寿命は無いと判定できるようになる。   In the first aspect of the present invention, since the capacitor is discharged due to power interruption in the data writing process, the predetermined data is written in the nonvolatile memory within the time until the charging voltage is reduced by the predetermined voltage, so that the capacitor has the performance. When it is deteriorated or the performance of the peripheral electronic components is deteriorated, it is not possible to secure time for writing predetermined data to the memory, and data cannot be written. In the life determination process, the life state of the electronic device is determined from the data write state to the memory. For example, when all the predetermined data is written to the memory, it can be determined that the remaining life of the electronic device is sufficient. When only a part of the predetermined data is written, it can be determined that the remaining life of the electronic device is not sufficient, and when no predetermined data is written, it can be determined that there is no remaining life of the electronic device. become.

そして、本発明では、メモリへのデータ書込み状態により、電子機器寿命を判定するようになっているので、上記コンデンサやその周辺の電子部品の性能ばらつきとは無関係に電子機器寿命の判定が可能となり、従来のコンデンサの性能ばらつきによる電子機器寿命の誤判定を無くし、正確に電子機器寿命を判定することができるようになる。   In the present invention, the life of the electronic device is determined based on the state of data written to the memory. Therefore, it is possible to determine the life of the electronic device regardless of the performance variation of the capacitor and the surrounding electronic components. Thus, it is possible to eliminate the erroneous determination of the lifetime of the electronic device due to the variation in the performance of the conventional capacitor, and to accurately determine the lifetime of the electronic device.

本発明第1において、好ましい態様は、上記寿命判定処理が、電源投入時に上記メモリからデータを読み出すステップと、上記読み出しデータにより、上記メモリに書き込みデータの有無を判定するステップと、上記判定がメモリに書き込みデータ無しのときは電子機器の寿命到来を表示するステップと、を含むことである。この態様では、電子機器寿命到来を表示することでユーザにはそのことが容易に認識できるようになって好ましい。   In the first aspect of the present invention, a preferable aspect is that the life determination process includes a step of reading data from the memory when power is turned on, a step of determining presence / absence of write data in the memory based on the read data, and the determination is a memory. And when there is no write data, a step of displaying the end of life of the electronic device is included. In this aspect, it is preferable that the user can easily recognize this by displaying the arrival of the electronic device life.

本発明第1において、別の好ましい態様は、上記寿命判定処理が、電源供給時に上記メモリからデータを読み出すステップと、上記読み出したデータにより、上記メモリへのデータの書き込み状態を検出するステップと、データ書き込み量に応じて電子機器の残り寿命を表示するステップと、を含むことである。この態様では、電子機器寿命の表示状態からユーザには電子機器の残り寿命を容易に認識できるようになって好ましい。   In the first aspect of the present invention, another preferable aspect is that the life determination process reads data from the memory when power is supplied, and detects a data writing state in the memory based on the read data. Displaying the remaining life of the electronic device according to the amount of data written. This aspect is preferable because the user can easily recognize the remaining life of the electronic device from the display state of the electronic device life.

本発明第1において、さらに別の好ましい態様は、上記データ書き込み処理が、電源が供給停止される電断時に上記コンデンサの充電電圧が所定電圧だけ低下するまでの時間内に、不揮発性のメモリに一定時間経過ごとにデータ書込みのためのアドレスを変更して各アドレスにデータを書き込むステップを含み、上記寿命判定処理が、メモリのどのアドレスまでデータが書き込まれたかにより電子機器の残り寿命を判定するステップを、含むことである。この態様では、電子機器寿命の表示としてユーザには電子機器の残り寿命をより具体的に段階的に表示させることができ、より容易に残り寿命を認識できるようになって好ましい。   In the first aspect of the present invention, in another preferred embodiment, the data writing process is performed in the nonvolatile memory within a time until the charging voltage of the capacitor decreases by a predetermined voltage when the power supply is stopped. It includes a step of writing data to each address by changing the address for writing data every certain period of time, and the above-mentioned life determination processing determines the remaining life of the electronic device depending on to which address in the memory the data has been written Including steps. In this aspect, it is preferable that the user can display the remaining life of the electronic device in a more specific stepwise manner as the display of the life of the electronic device, and can easily recognize the remaining life.

本発明第1において、さらに別の好ましい態様は、上記データ書き込み処理が、寿命判定処理後に、メモリに記憶するデータをクリアし、そのクリア状態から、メモリの状態を判定するメモリ状態判定処理を含むことである。この態様では、メモリにデータを書き込むことができない原因が、電子機器寿命以外に、メモリそれ自体が異常なことに起因していることが判るようになって好ましい。   In the first aspect of the present invention, in another preferred aspect, the data writing process includes a memory state determination process for clearing data stored in the memory after the lifetime determination process and determining a memory state from the cleared state. That is. In this aspect, it is preferable that the reason why data cannot be written to the memory is caused by the abnormality of the memory itself in addition to the life of the electronic device.

本発明第2による電子機器は、コンデンサの充電電圧を検出する電圧検出部と、電圧検出部の出力に基づいて当該電子機器の寿命検知処理を実行するCPUと、上記寿命検知処理のためのプログラムを格納するプログラムメモリと、上記CPUにより寿命検知に用いるデータが書込まれる不揮発性のデータ書込みメモリとを備え、上記CPUは、上記電圧検出部の検出出力から電断したか電源投入されたかを判定し、電断時には、上記コンデンサの充電電圧が、所定電圧だけ低下するまでにデータ書込みメモリに所定のデータを書き込むデータ書き込み処理を実施し、電源投入時には、上記電断時におけるデータ書込みメモリへのデータ書き込み状態から当該電子機器の寿命状態を判定する寿命判定処理と、を実施することができるようになっていることを特徴とするものである。   An electronic device according to a second aspect of the present invention includes a voltage detection unit that detects a charging voltage of a capacitor, a CPU that executes a life detection process of the electronic device based on an output of the voltage detection unit, and a program for the life detection process And a non-volatile data write memory in which data used for life detection is written by the CPU. The CPU determines whether the power is turned off or turned on from the detection output of the voltage detection unit. When the power is cut off, a data writing process for writing predetermined data into the data writing memory is performed until the charging voltage of the capacitor decreases by a predetermined voltage. Life determination processing for determining the life state of the electronic device from the data writing state of And it is characterized in that is.

本発明第2において、好ましい態様は、上記CPUが、寿命判定処理後のメモリからそれに記憶するデータをクリアし、そのクリア状態から、メモリの状態を判定するメモリ状態判定処理を実施することができるようになっていることである。   In the second aspect of the present invention, a preferable aspect is that the CPU clears the data stored in the memory after the life determination process, and can execute the memory state determination process for determining the memory state from the cleared state. It is like that.

本発明によれば、コンデンサを含め、周辺の電子部品の性能ばらつきに依存しないで、電子機器寿命を確実に判定できる。   According to the present invention, it is possible to reliably determine the lifetime of an electronic device without depending on performance variations of peripheral electronic components including a capacitor.

図1は本発明の実施の形態にかかる電子機器の概略構成を示す図である。FIG. 1 is a diagram showing a schematic configuration of an electronic apparatus according to an embodiment of the present invention. 図2は図1の電子機器が備える平滑用コンデンサがその劣化状態に応じた、その充電電圧の変化特性を示す図である。FIG. 2 is a diagram showing a change characteristic of the charging voltage according to the deterioration state of the smoothing capacitor provided in the electronic apparatus of FIG. 図3は電断検知による動作説明のためのフローチャートを示す図である。FIG. 3 is a flowchart for explaining the operation based on the detection of power interruption. 図4は電源投入による動作説明のためのフローチャートを示す図である。FIG. 4 is a flowchart for explaining the operation when the power is turned on. 図5は電断後にデータを書き込むメモリのアドレスとそれに書き込むデータとを示す図である。FIG. 5 is a diagram showing an address of a memory to which data is written after power interruption and data to be written thereto. 図6はメモリへのデータ書込みから書込み終了までの当該メモリのアドレスとそれに書き込むデータとを示す図である。FIG. 6 is a diagram showing addresses of the memory from the data writing to the end of writing to the memory and data to be written to the memory.

以下、添付した図面を参照して、本発明の実施の形態に係る電子機器の寿命検知方法およびそれを実施する寿命検知機能付き電子機器を詳細に説明する。実施の形態の電子機器は、特に限定されず、例えば温度調節器や、その他の制御装置を含むことができる。また、実施の形態では、説明の都合で、電源としてスイッチング電源としたが、これに限らず、直流電源でもよい。   Hereinafter, a life detection method for an electronic device according to an embodiment of the present invention and an electronic device with a life detection function for implementing the same will be described in detail with reference to the accompanying drawings. The electronic apparatus of the embodiment is not particularly limited, and can include, for example, a temperature controller and other control devices. In the embodiment, for convenience of explanation, a switching power supply is used as a power supply. However, the present invention is not limited to this, and a DC power supply may be used.

図1を参照して、実施の形態の電子機器は、電源部1と、電圧検出部3と、CPU5と、不揮発性のデータ書込みメモリ7と、プログラムメモリ9と、ワークメモリ11と、表示部13とを備える。電源部1は、例えば、スイッチング電源により構成され、商用交流電源15から電子機器内各部へ供給する直流電圧を生成する。スイッチング電源は、一次側整流回路1aと、一次側平滑回路1bと、スイッチング回路1cと、トランス1dと、二次側整流回路1eと、二次側平滑回路1fと、制御回路1gと、を含む。スイッチング回路1cはトランス1dの二次側電圧を検出する制御回路1gからの制御信号によりスイッチング制御される。以上のスイッチング電源は周知の構成であり、その詳細は略する。   Referring to FIG. 1, an electronic apparatus according to an embodiment includes a power supply unit 1, a voltage detection unit 3, a CPU 5, a nonvolatile data write memory 7, a program memory 9, a work memory 11, and a display unit. 13. The power supply unit 1 is configured by a switching power supply, for example, and generates a DC voltage supplied from the commercial AC power supply 15 to each part in the electronic device. The switching power supply includes a primary side rectifier circuit 1a, a primary side smoothing circuit 1b, a switching circuit 1c, a transformer 1d, a secondary side rectifier circuit 1e, a secondary side smoothing circuit 1f, and a control circuit 1g. . The switching circuit 1c is switching-controlled by a control signal from the control circuit 1g that detects the secondary side voltage of the transformer 1d. The above switching power supply has a well-known configuration, and details thereof are omitted.

こうした電源部1においては、二次側平滑回路1fに大容量の電解コンデンサ(以下、単にコンデンサと称する)17を含む。この平滑回路1f内のコンデンサ17は、電断時に徐々に充電電圧がリセット電圧にまで低下するまでの間は、CPU5等の回路手段に対して動作電圧を供給することができるようになっている。   In such a power supply unit 1, the secondary side smoothing circuit 1 f includes a large-capacity electrolytic capacitor (hereinafter simply referred to as a capacitor) 17. The capacitor 17 in the smoothing circuit 1f can supply an operating voltage to circuit means such as the CPU 5 until the charging voltage is gradually lowered to the reset voltage at the time of power interruption. .

電圧検出部3は、コンデンサ17の充電電圧を検出する。このコンデンサ17の充電電圧を、図2を参照して説明する。図2は横軸に時間、縦軸に電子機器内部電圧をとり、電断後のコンデンサ17の放電によりその内部電圧の低下を性能劣化後のコンデンサ17と、性能劣化前のコンデンサ17とのそれぞれで比較したものである。性能劣化後のコンデンサ17の場合、内部電圧の変化は実線で、性能劣化前のコンデンサ17の場合の内部電圧の変化は破線で示す。この場合の内部電圧は、電源部1のコンデンサ17の充電電圧に対応する。   The voltage detector 3 detects the charging voltage of the capacitor 17. The charging voltage of the capacitor 17 will be described with reference to FIG. In FIG. 2, the horizontal axis represents time, the vertical axis represents the internal voltage of the electronic device, and the decrease of the internal voltage due to the discharge of the capacitor 17 after power interruption is caused by the capacitor 17 after performance degradation and the capacitor 17 before performance degradation This is a comparison. In the case of the capacitor 17 after the performance deterioration, the change in the internal voltage is indicated by a solid line, and the change in the internal voltage in the case of the capacitor 17 before the performance deterioration is indicated by a broken line. The internal voltage in this case corresponds to the charging voltage of the capacitor 17 of the power supply unit 1.

電源部1においては、電断後の内部電圧は、コンデンサ17の充電電圧により生成されるが、その内部電圧は、コンデンサ17の放電により次第に低下してくることとなる。電圧検出部3は、このような電源部1におけるコンデンサ17の充電電圧の変化を検出するものであり、その検出出力をCPU5に入力する。   In the power supply unit 1, the internal voltage after power interruption is generated by the charging voltage of the capacitor 17, but the internal voltage gradually decreases due to the discharging of the capacitor 17. The voltage detection unit 3 detects such a change in the charging voltage of the capacitor 17 in the power supply unit 1 and inputs the detection output to the CPU 5.

プログラムメモリ9は、電子機器のシステムプログラム以外に、電子機器寿命検知処理プログラムが格納されているメモリである。プログラムメモリ9は、電子機器が例えば温度調節器であれば、そのシステムプログラム以外に、アプリケーションプログラムとして温調プログラムを格納すると共に、本実施の形態における電子機器寿命検知処理プログラムを格納する。電子機器が温度調節器である場合において、この温調プログラムの説明は略する。ワークメモリ11はCPU5が各種作業の実行に用いるメモリである。そしてCPU5は、プログラムメモリ9に格納されている電子機器寿命検知処理プログラムに従い、図3ないし図6で説明するような電子機器の寿命検知を行う。   The program memory 9 is a memory in which an electronic device life detection processing program is stored in addition to the electronic device system program. If the electronic device is a temperature controller, for example, the program memory 9 stores a temperature control program as an application program in addition to the system program, and also stores the electronic device life detection processing program in the present embodiment. In the case where the electronic device is a temperature controller, description of this temperature control program is omitted. The work memory 11 is a memory used by the CPU 5 for executing various operations. Then, the CPU 5 detects the lifetime of the electronic device as described with reference to FIGS. 3 to 6 in accordance with the electronic device lifetime detection processing program stored in the program memory 9.

CPU5は、電圧検出部3の検出出力から、コンデンサ17の充電電圧が電断検知電圧にまで低下すると、電断であると判定し、また、コンデンサ17の充電電圧がさらにリセット電圧にまで低下すると、コンデンサ17の充電電圧は電子機器内部回路に動作電圧を供給できなくなるとして、電子機器内部をリセット処理する。   The CPU 5 determines from the detection output of the voltage detection unit 3 that the charging voltage of the capacitor 17 has dropped to the power interruption detection voltage, and determines that it is a power interruption, and when the charging voltage of the capacitor 17 further decreases to the reset voltage. The internal voltage of the capacitor 17 is reset, assuming that the operating voltage cannot be supplied to the internal circuit of the electronic device.

CPU5は、電断によりコンデンサ17の充電電圧が電断検出電圧からリセット電圧まで低下するまでの時間内に、所定のデータをデータ書込みメモリ7に書き込む制御を行う。上記時間はデータ書込みメモリ7へのデータ書込み時間である。この場合、電子機器の寿命検知を目的とすれば、データ書込みメモリ7に書き込まれるデータは、いかなるデータでもよい。また、データ書込みメモリ7は、プログラムメモリ9からプログラムデータ、また、ワークメモリ11から必要な作業中の各種データを書き込んで退避させるデータ退避用メモリとすることもできる。   The CPU 5 performs control to write predetermined data into the data write memory 7 within a time until the charging voltage of the capacitor 17 is lowered from the interruption detection voltage to the reset voltage due to interruption. The above time is the time for writing data to the data write memory 7. In this case, for the purpose of detecting the life of the electronic device, the data written in the data write memory 7 may be any data. Further, the data write memory 7 can be a data saving memory for writing and saving program data from the program memory 9 and various work data required from the work memory 11.

電断によりコンデンサ17の充電電圧が電断検出電圧からリセット電圧まで低下するまでのデータ書込み時間は、図2で示すように、性能劣化前のコンデンサではt0であり、性能劣化後のコンデンサではt1(<t0)である。   As shown in FIG. 2, the data write time until the charging voltage of the capacitor 17 drops from the interruption detection voltage to the reset voltage due to the interruption of power is t0 for the capacitor before the performance deterioration, and t1 for the capacitor after the performance deterioration. (<T0).

図2で明らかであるように、コンデンサ17は性能劣化が進行してくると、データ書込み時間がより短くなってデータ書込み時間を確保できなくなってくるようになる。本実施の形態では、このデータ書込みメモリ7に書き込まれたデータを読み出し、この書込み状態から電子機器の寿命を検知できるようにしている。   As apparent from FIG. 2, when the performance of the capacitor 17 deteriorates, the data write time becomes shorter and the data write time cannot be secured. In the present embodiment, the data written in the data write memory 7 is read, and the life of the electronic device can be detected from this written state.

図3のフローチャートを参照して、電断時におけるCPU5によるデータ書込み処理動作を説明する。この処理は、ステップn31で電断検知すると、ステップn32でデータ書込みメモリ7にデータ書込みする。ステップn33でデータ書込みが終了したかを判定する。データ書込みが終了していなければ、ステップn32に戻り、データ書込みを継続する。ステップn33でデータ書込みが終了したと判定すると、ステップn34でフラグONする。   With reference to the flowchart of FIG. 3, the data write processing operation by the CPU 5 at the time of power interruption will be described. In this process, when power interruption is detected in step n31, data is written in the data write memory 7 in step n32. In step n33, it is determined whether data writing has been completed. If data writing has not been completed, the process returns to step n32 to continue data writing. If it is determined in step n33 that data writing has been completed, the flag is turned on in step n34.

図4のフローチャートを参照して、電源投入時におけるCPU5による電子機器寿命判定処理動作を説明する。この処理は、電断時でのデータ書込みメモリ7へのデータ書き込み状態から当該電子機器の寿命状態を判定する処理のことである。そしてCPU5は、ステップn41で、電圧検出部3の検出出力により、電源投入を検知すると、ステップn42で、データ書込みメモリ7からそれの書込みデータを読み出す。そして、CPU5はステップn43で、データ書込みメモリ7からのデータ読み出しの結果、データ書込みメモリ7に所定の書き込みデータの有無を判定する。CPU5は、ステップn43で、所定の書き込みデータがすべて書き込まれてなくてフラグONではないと判定すると、ステップn44で、表示部13に電子機器寿命と表示してユーザには電子機器の寿命が到来したことを知らせる制御を行う。CPU5はステップn43で所定の書込みデータ有りでフラグONと判定すると、表示部13には電子機器寿命に関する表示処理をしないことで電子機器寿命が到来していないことをユーザに知らせる制御を行う。   With reference to the flowchart of FIG. 4, the electronic device life determination processing operation by the CPU 5 when the power is turned on will be described. This process is a process of determining the life state of the electronic device from the data write state to the data write memory 7 at the time of power interruption. In step n41, when the CPU 5 detects that the power is turned on by the detection output of the voltage detector 3, the CPU 5 reads the write data from the data write memory 7 in step n42. In step n43, the CPU 5 determines the presence or absence of predetermined write data in the data write memory 7 as a result of reading data from the data write memory 7. If the CPU 5 determines in step n43 that all the predetermined write data has not been written and the flag is not ON, in step n44, the display unit 13 displays the lifetime of the electronic device, and the user has reached the lifetime of the electronic device. Control to let you know. When the CPU 5 determines in step n43 that the predetermined write data exists and the flag is ON, the display unit 13 performs control to notify the user that the electronic device life has not come by not performing display processing related to the electronic device life.

以上のステップにより電子機器寿命判定処理が終了する。   The electronic device life determination process is completed by the above steps.

一方、実施の形態では、データ書込みメモリ7にデータを書き込むことができない原因としては、上記の電子機器寿命以外に、データ書込みメモリ7それ自体が異常な場合がある。このような場合、データ書込みメモリ7にデータ書込みができないことの原因がいずれにあるかを特定できなければ、電子機器寿命を検知することができなくなる。   On the other hand, in the embodiment, the reason why data cannot be written to the data write memory 7 is that the data write memory 7 itself is abnormal in addition to the above-mentioned electronic device life. In such a case, the life of the electronic device cannot be detected unless it is possible to identify the cause of the inability to write data to the data write memory 7.

そこで、実施の形態では、ステップn45以降の処理を実施することで、データ書込みメモリ7にデータを書き込むことができない原因が、上記の電子機器寿命によるのか、データ書込みメモリ7それ自体が異常なことによるのかを区別できるようにしている。すなわち、CPU5は、ステップn44で、フラグONであると判定すると、ステップn45に移行し、このステップn45で、データ書込みメモリ7に書き込まれているデータをクリア処理してフラグをOFFする。   Therefore, in the embodiment, whether the reason why the data cannot be written to the data write memory 7 by performing the processing after step n45 is due to the above-mentioned electronic device life or that the data write memory 7 itself is abnormal. It is possible to distinguish whether or not. That is, if the CPU 5 determines in step n44 that the flag is ON, the process proceeds to step n45. In this step n45, the data written in the data write memory 7 is cleared and the flag is turned OFF.

そして、CPU5はステップn46で、データ書込みメモリ7からデータ読み出し処理をする。CPU5は、ステップn47と、ステップn45でデータクリア処理してフラグをOFFにしたにもかかわらず、ステップn46でデータ読み出しがあれば、クリア処理されておらずフラグOFFになっていないとして、ステップn48で、データ書込みメモリ7自体に異常があると判定する。一方、ステップn46でデータ読み出しが無ければ、クリア処理されてフラグがOFFになっているとして、ステップn49で、データ書込みメモリ7自体の異常が無いとして通常動作の制御を行う。   In step n46, the CPU 5 performs data read processing from the data write memory 7. Even if the CPU 5 clears the data in step n47 and step n45 and turns the flag OFF, if the data is read in step n46, the CPU 5 assumes that the data is not cleared and the flag is not turned OFF. Thus, it is determined that there is an abnormality in the data writing memory 7 itself. On the other hand, if there is no data read in step n46, it is assumed that the flag has been turned off by clear processing, and in step n49, normal operation is controlled assuming that there is no abnormality in the data write memory 7 itself.

図5を参照して、電断後におけるデータ書込みメモリ7への所定のデータ書込みを説明する。図5は、データ書込みメモリ7の各アドレスへの書込みデータを示す。アドレス0000には書込みデータA、アドレス0001には書込みデータB、…、アドレスXXXXには書込みデータZが、それぞれ、書き込まれている。そして、実施の形態では、アドレスXXXXを電断時での所定のデータ書き込みアドレスとし、データZをその所定の書込みデータとして書き込んでいる。CPU5は、図3のフローチャートにおいて、ステップn33での所定のデータ書き込みとしてデータ書込みメモリ7のアドレスXXXXにデータZを書き込む。このデータZのすべての書込みが終了したときに、フラグONとされる。一方、図4のフローチャートにおいて、ステップn42でのデータ読み出し処理、ステップn43での所定の書込みデータ有りの判定処理、ステップn45−ステップn47での各処理で、データ書込みメモリ7のアドレスXXXXに書き込んだデータZをその処理に用いる。   With reference to FIG. 5, predetermined data writing to the data writing memory 7 after power interruption will be described. FIG. 5 shows write data to each address of the data write memory 7. Write data A is written at address 0000, write data B is written at address 0001, and write data Z is written at address XXX. In the embodiment, the address XXXX is a predetermined data write address at the time of power interruption, and the data Z is written as the predetermined write data. In the flowchart of FIG. 3, the CPU 5 writes the data Z to the address XXXX of the data write memory 7 as the predetermined data write at step n33. When all the data Z has been written, the flag is turned ON. On the other hand, in the flowchart of FIG. 4, data is written to the address XXXX of the data write memory 7 in the data read process in step n42, the determination process that there is predetermined write data in step n43, and the processes in steps n45 to n47. Data Z is used for the processing.

以上のデータ書込みメモリ7への所定のデータ書込みは、データのすべてが書き込まれていることが条件であったが、データ書込みメモリ7へのデータの書込み状態から電子機器の寿命を検知することもできる。図6はその場合のデータ書込みメモリ7への書き込み状態を示す。   The above-mentioned predetermined data writing to the data writing memory 7 is based on the condition that all of the data has been written, but it is also possible to detect the life of the electronic device from the data writing state to the data writing memory 7. it can. FIG. 6 shows a state of writing to the data write memory 7 in that case.

図6を参照して、電断後におけるデータ書込みメモリ7への所定のデータ書込みを説明する。図6は、データ書込みメモリ7の各アドレスへの書込みデータを示す。CPU5は、電圧検出部3の検出出力により、コンデンサ17の充電電圧が電断後からリセット電圧にまで低下するまでの時間内にデータ書込みメモリ7に、一定時間経過ごとにデータ書込みのためのアドレスを変更して各アドレスにデータを書き込む。   With reference to FIG. 6, a predetermined data write to the data write memory 7 after power interruption will be described. FIG. 6 shows write data to each address of the data write memory 7. Based on the detection output of the voltage detection unit 3, the CPU 5 stores the address for writing data in the data write memory 7 within a certain period of time after the charging voltage of the capacitor 17 is reduced to the reset voltage after the interruption of power. And write data to each address.

図6(a)では、アドレス0000をデータ書込み開始アドレスとし、アドレスXXXXをデータ書込み終了アドレスとしている。このようにデータ書込みメモリ7のアドレス0000からアドレスXXXXまでデータ書込みが行われた場合では、所定のデータのすべてが書き込まれたこととなって、CPU5は表示部13上に例えば電子機器寿命十分有りとする。この場合、CPU5により寿命演算を行わせ、その演算結果から表示部13に具体的な寿命を表示させることも可能である。   In FIG. 6A, the address 0000 is the data write start address, and the address XXXX is the data write end address. As described above, when data is written from the address 0000 to the address XXXX of the data write memory 7, all of the predetermined data has been written, and the CPU 5 has a sufficient electronic device life on the display unit 13, for example. And In this case, it is also possible to cause the CPU 5 to perform a lifetime calculation and display a specific lifetime on the display unit 13 from the calculation result.

図6(b)では、アドレス0000をデータ書込み開始アドレスとし、アドレス00XXをデータ書込み終了アドレスとしている。そして、アドレス00YYからアドレスXXXXまでデータ書込みが行われていない。こうした場合では、所定のデータのすべての書き込みは終了せず、途中のアドレス00XXでデータ書込みが終了しているので、CPU5は、書き込みアドレス数を演算し、図6(a)と比較して表示部13上に例えば電子機器の残り寿命を具体的に表示する。この残り寿命の表示は、言い換えれば、電子機器の寿命予知となる。   In FIG. 6B, the address 0000 is the data write start address, and the address 00XX is the data write end address. Data is not written from address 00YY to address XXXX. In such a case, all the writing of the predetermined data is not completed, and the data writing is completed at the address 00XX in the middle. Therefore, the CPU 5 calculates the number of write addresses and displays it in comparison with FIG. For example, the remaining life of the electronic device is specifically displayed on the unit 13. In other words, the display of the remaining lifetime is a prediction of the lifetime of the electronic device.

以上説明したように本実施の形態では、電断時にコンデンサ17の充電電圧が所定電圧だけ低下するまでの時間内に、データ書込みメモリ7に所定のデータを書き込むデータ書き込み処理と、電源投入時に上記電断時でのデータ書込みメモリ7へのデータ書き込み状態から当該電子機器の寿命状態を判定する寿命判定処理と、を実施するようにしたので、電断時におけるデータ書込みメモリ7へのデータ書き込み処理を行うに際して、コンデンサ17が劣化していなかったりすると、所定データをデータ書込みメモリ7に書き込むための時間を確保でき、データを書き込める。一方、コンデンサ17が劣化していたり、その周辺の電子部品が劣化しているような場合では、所定データをデータ書込みメモリ7に書き込むための時間を確保できず、データを書き込めない。   As described above, in the present embodiment, the data write processing for writing predetermined data in the data write memory 7 within the time until the charging voltage of the capacitor 17 is reduced by a predetermined voltage at the time of power interruption, and the above-mentioned when the power is turned on. Since the life determination process for determining the life state of the electronic device from the data write state to the data write memory 7 at the time of power interruption is performed, the data write process to the data write memory 7 at the time of power interruption If the capacitor 17 is not deteriorated in performing the above, it is possible to secure time for writing predetermined data to the data write memory 7 and write data. On the other hand, when the capacitor 17 is deteriorated or the peripheral electronic components are deteriorated, it is not possible to secure time for writing the predetermined data in the data write memory 7, and data cannot be written.

そして本実施の形態では、データ書込みメモリ7へのデータ書き込み状態から電子機器の寿命状態を判定するので、コンデンサ17やその周辺の電子部品の性能ばらつきとは無関係に電子機器寿命を検知することが可能となり、従来のコンデンサの性能ばらつきによる電子機器寿命の誤判定を無くし正確に電子機器寿命を判定することができるようになる。   In this embodiment, since the life state of the electronic device is determined from the data writing state to the data write memory 7, the life of the electronic device can be detected regardless of the performance variation of the capacitor 17 and the surrounding electronic components. This makes it possible to accurately determine the lifetime of the electronic device without the erroneous determination of the lifetime of the electronic device due to variations in the performance of the conventional capacitor.

1 電源部
1a 整流回路
1b 平滑回路
17 コンデンサ
3 電圧検出部
5 CPU
7 データ書込みメモリ
DESCRIPTION OF SYMBOLS 1 Power supply part 1a Rectifier circuit 1b Smoothing circuit 17 Capacitor 3 Voltage detection part 5 CPU
7 Data writing memory

Claims (7)

電断時にその充電電圧を電子機器の内部回路に動作電圧として供給するコンデンサを備えた電子機器に対し当該電子機器の寿命を検知する方法であって、
電断時に上記コンデンサの充電電圧が所定電圧だけ低下するまでの時間内に不揮発性のメモリに所定のデータを書き込むデータ書き込み処理と、
電源投入時に上記電断時でのメモリへのデータ書き込み状態から当該電子機器の寿命状態を判定する寿命判定処理と、
を実施する、ことを特徴とする電子機器寿命検知方法。
A method of detecting the lifetime of an electronic device with respect to an electronic device provided with a capacitor that supplies the charging voltage as an operating voltage to an internal circuit of the electronic device when power is interrupted,
A data writing process for writing predetermined data in a nonvolatile memory within a time until the charging voltage of the capacitor decreases by a predetermined voltage at the time of power interruption;
Life determination processing for determining the life state of the electronic device from the data writing state to the memory at the time of power interruption when power is turned on
An electronic device lifetime detection method characterized by comprising:
上記寿命判定処理は、
電源投入時に上記メモリからデータを読み出すステップと、
上記読み出しデータにより、上記メモリに書き込みデータの有無を判定するステップと、
上記判定がメモリに書き込みデータ無しのときは電子機器の寿命到来を表示するステップと、
を含む、ことを特徴とする請求項1に記載の電子機器寿命検知方法。
The above life judgment process
Reading data from the memory when the power is turned on;
Determining the presence or absence of write data in the memory based on the read data;
A step of displaying the end of life of the electronic device when the determination is no data written in the memory;
The electronic device life detection method according to claim 1, wherein
上記寿命判定処理は、
電源供給時に上記メモリからデータを読み出すステップと、
上記読み出したデータにより、上記メモリへのデータの書き込み状態を検出するステップと、
データ書き込み量に応じて電子機器の残り寿命を表示するステップと、
を含む、ことを特徴とする請求項1に記載の電子機器寿命検知方法。
The above life judgment process
Reading data from the memory when power is supplied;
Detecting a state of writing data to the memory based on the read data;
Displaying the remaining life of the electronic device according to the amount of data written;
The electronic device life detection method according to claim 1, wherein
上記データ書き込み処理は、
電断時に上記コンデンサの充電電圧が所定電圧だけ低下するまでの時間内に不揮発性のメモリに、一定時間経過ごとにデータ書込みのためのアドレスを変更して各アドレスにデータを書き込むステップを含み、
上記寿命判定処理は、
メモリのどのアドレスまでデータが書き込まれたかにより電子機器の残り寿命を判定するステップを、
含むことを特徴とする請求項1に記載の電子機器寿命検知方法。
The above data writing process
In the time until the charging voltage of the capacitor decreases by a predetermined voltage at the time of power failure, the nonvolatile memory includes a step of changing the address for writing data every predetermined time and writing data to each address,
The above life judgment process
The step of determining the remaining life of the electronic device according to which address in the memory has been written,
The electronic device life detection method according to claim 1, further comprising:
寿命判定処理後に、メモリに記憶するデータをクリアし、そのクリア状態から、メモリの状態を判定するメモリ状態判定処理を含む請求項1ないし4のいずれかに記載の電子機器寿命検知方法。   5. The electronic device life detection method according to claim 1, further comprising a memory state determination process for clearing data stored in the memory after the life determination process and determining the state of the memory from the cleared state. 6. 電断時にその充電電圧を電子機器の内部回路に動作電圧として供給するコンデンサを備えた電子機器において、
上記コンデンサの充電電圧を検出する電圧検出部と、電圧検出部の出力に基づいて当該電子機器の寿命検知処理を実行するCPUと、上記寿命検知処理のためのプログラムを格納するプログラムメモリと、上記CPUにより寿命検知に用いるデータが書込まれる不揮発性のデータ書込みメモリとを備え、
上記CPUは、上記電圧検出部の検出出力から電断したか電源投入されたかを判定し、電断時に上記コンデンサの充電電圧が所定電圧だけ低下するまでにデータ書込みメモリに所定のデータを書き込むデータ書き込み処理を実施し、電源投入時には、上記電断時におけるデータ書込みメモリへのデータ書き込み状態から当該電子機器の寿命状態を判定する寿命判定処理と、を実施することができるようになっている、ことを特徴とする電子機器。
In electronic equipment with a capacitor that supplies the charging voltage as an operating voltage to the internal circuit of the electronic equipment when power is interrupted,
A voltage detection unit that detects a charging voltage of the capacitor; a CPU that executes a life detection process of the electronic device based on an output of the voltage detection unit; a program memory that stores a program for the life detection process; A nonvolatile data writing memory in which data used for life detection is written by the CPU;
The CPU determines from the detection output of the voltage detection unit whether the power is cut off or the power is turned on, and data for writing predetermined data in the data writing memory until the charging voltage of the capacitor is reduced by a predetermined voltage at the time of power interruption When the power is turned on and the power is turned on, the life determination process for determining the life state of the electronic device from the data write state to the data write memory at the time of power interruption can be performed. An electronic device characterized by that.
上記CPUは、寿命判定処理後のメモリからそれに記憶するデータをクリアし、そのクリア状態から、メモリの状態を判定するメモリ状態判定処理を実施することができるようになっている請求項6に記載の電子機器。   7. The CPU according to claim 6, wherein the CPU clears the data stored in the memory after the life determination processing and can execute the memory state determination processing for determining the state of the memory from the cleared state. Electronic equipment.
JP2009056329A 2009-03-10 2009-03-10 Electronic device life detection method and electronic device with life detection function Active JP5381182B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009056329A JP5381182B2 (en) 2009-03-10 2009-03-10 Electronic device life detection method and electronic device with life detection function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009056329A JP5381182B2 (en) 2009-03-10 2009-03-10 Electronic device life detection method and electronic device with life detection function

Publications (2)

Publication Number Publication Date
JP2010210390A JP2010210390A (en) 2010-09-24
JP5381182B2 true JP5381182B2 (en) 2014-01-08

Family

ID=42970723

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009056329A Active JP5381182B2 (en) 2009-03-10 2009-03-10 Electronic device life detection method and electronic device with life detection function

Country Status (1)

Country Link
JP (1) JP5381182B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0880055A (en) * 1994-08-31 1996-03-22 Toshiba Corp Inverter device
JPH11231008A (en) * 1998-02-16 1999-08-27 Omron Corp Capacitor life diagnostic device and apparatus with built-in capacitor
JP2002281735A (en) * 2001-03-23 2002-09-27 Hitachi Ltd Power supply unit with capacitor life diagnosis device and the capacitor life diagnosis device

Also Published As

Publication number Publication date
JP2010210390A (en) 2010-09-24

Similar Documents

Publication Publication Date Title
JP4235920B2 (en) Information processing apparatus and data saving method.
JP2007264767A (en) Power supply monitoring apparatus
US8595530B2 (en) Information processing apparatus and control method of information processing apparatus
JP5381182B2 (en) Electronic device life detection method and electronic device with life detection function
KR101463123B1 (en) Apparatus for performing a power loss test for a non-volatile memory device and method of performing a power loss test for a non-volatile memory device
JP2005267761A (en) Method for monitoring degradation of flash memory
JP2016146071A (en) Hard disk drive device diagnosis device and copying device with hard disk drive device diagnosis function
JP5451291B2 (en) Image forming apparatus, image forming apparatus control method and program
JP2007285668A (en) Controller for air conditioner
JP5165929B2 (en) Proximity sensor with self-diagnosis function
JP2010134856A (en) Nonvolatile storage medium writing circuit, nonvolatile storage medium writing method, and program
JP4710059B2 (en) Power management system, uninterruptible power supply, power management method, power trend prediction method, and power trend prediction program
JP6119308B2 (en) Power supply control apparatus, information processing apparatus, power supply control method, and program
JP6904918B2 (en) Control device and its data writing method
JP2009301124A (en) Equipment with memory device and method for protecting memory device
JP5803239B2 (en) Power supply control apparatus, image forming apparatus, power supply control method, power supply control program, and recording medium
JP2008225922A (en) Nonvolatile storage device
JP2015060412A (en) Data protection device, data protection method, and data protection program
JP6079746B2 (en) Air conditioner remote controller
JP6466743B2 (en) Alarm adjustment method and alarm
JP2011189545A (en) Image forming apparatus and image forming system
JP5065857B2 (en) Information processing equipment, electronic equipment
JP2009089559A (en) Load driving circuit
JP2009202500A (en) Image formation device, h/w self-diagnosis setting method, program and recording medium
JP2004333077A (en) Refrigerator having function for storing operating state of each device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120113

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130826

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: 20130903

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130916

R150 Certificate of patent or registration of utility model

Ref document number: 5381182

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150