JP2003271411A - Electronic equipment provided with control circuit having program runaway detection function - Google Patents

Electronic equipment provided with control circuit having program runaway detection function

Info

Publication number
JP2003271411A
JP2003271411A JP2002075672A JP2002075672A JP2003271411A JP 2003271411 A JP2003271411 A JP 2003271411A JP 2002075672 A JP2002075672 A JP 2002075672A JP 2002075672 A JP2002075672 A JP 2002075672A JP 2003271411 A JP2003271411 A JP 2003271411A
Authority
JP
Japan
Prior art keywords
runaway
value
program
information
recovery
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2002075672A
Other languages
Japanese (ja)
Inventor
Hitoshi Ogata
仁士 尾方
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.)
Sanyo Electric Co Ltd
Sanyo Technosound Co Ltd
Original Assignee
Sanyo Electric Co Ltd
Sanyo Technosound Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sanyo Electric Co Ltd, Sanyo Technosound Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP2002075672A priority Critical patent/JP2003271411A/en
Publication of JP2003271411A publication Critical patent/JP2003271411A/en
Pending legal-status Critical Current

Links

Abstract

<P>PROBLEM TO BE SOLVED: To provide electronic equipment unnecessitating a restoring operation to restore the operation of the equipment to an operation before a runaway of a program, capable of executing an original control processing without delay during the operation of the equipment and enabling a simple constitution of a microcomputer. <P>SOLUTION: In this electronic equipment, the microcomputer 2 is connected to control object blocks 3 to 6 to be controlled. The microcomputer 2 is provided with a watch dog timer 23, an information register 24 and a CPU 20. The CPU 20 executes writing of operation information showing an operation state of the equipment in the information register 24 when the operation state is changed. The CPU 20 restores the operations of the control object blocks 3 to 6 to the operations before the runaway of the program based on all or partial operation information written in the information register 24 when an interruption signal is received from the watch dog timer 23 due to runaway of the program. <P>COPYRIGHT: (C)2003,JPO

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、プログラム暴走検
知機能を有する制御回路によって機器の動作が制御され
る電子機器に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic device whose operation is controlled by a control circuit having a program runaway detection function.

【0002】[0002]

【従来の技術】従来より、ウオッチドッグタイマを具え
ることによって、プログラムの暴走を検知することが可
能なマイクロコンピュータが知られている(特許第28700
83号公報[G06F 11/30])。この種のマイクロコンピュー
タにおいては、プログラムが正常に実行されている状態
では、CPUからウオッチドッグタイマに一定周期でク
リア信号が供給され、ウオッチドッグタイマは、該クリ
ア信号を受けて時間計測値をゼロに初期化する。これに
対し、プログラムが暴走してCPUからウオッチドッグ
タイマに対するクリア信号の供給が正常に行なわれなく
なった場合には、ウオッチドッグタイマの時間計測値が
所定の閾値を超えることとなって、ウオッチドッグタイ
マからCPUに異常検出信号が供給される。この様にし
てCPUに異常検出信号が入力されると、所定の割込み
処理ルーチンが実行されてCPU、及びマイクロコンピ
ュータを構成する他のハードウエアがリセットされるこ
とになる。
2. Description of the Related Art Conventionally, there is known a microcomputer capable of detecting runaway of a program by including a watchdog timer (Japanese Patent No. 28700).
No. 83 [G06F 11/30]). In this type of microcomputer, when the program is normally executed, a clear signal is supplied from the CPU to the watchdog timer at a constant cycle, and the watchdog timer receives the clear signal and sets the time measurement value to zero. Initialize to. On the other hand, if the program runs out of control and the CPU does not normally supply the clear signal to the watchdog timer, the watchdog timer time measurement value exceeds the predetermined threshold, and the watchdog timer An abnormality detection signal is supplied from the timer to the CPU. When the abnormality detection signal is input to the CPU in this manner, a predetermined interrupt processing routine is executed and the CPU and other hardware constituting the microcomputer are reset.

【0003】[0003]

【発明が解決しようとする課題】ところで、ウオッチド
ッグタイマを具えた上記マイクロコンピュータを用い
て、オーディオ機器等の電子機器を構成することが考え
られる。しかしながら、上記マイクロコンピュータを具
えた電子機器においては、プログラムの暴走が検知され
たとき、マイクロコンピュータを構成するCPU及びそ
の他のハードウエアが初期状態にリセットされて機器の
状態が初期状態に復旧するため、ユーザは、その後に機
器の動作をプログラム暴走前の動作に復旧させるための
復旧操作を行なわなければならない問題がある。例え
ば、CDの再生機能を有するオーディオ機器において
は、CDの再生中にプログラムが暴走した場合、機器の
状態が電源投入直後の停止状態にリセットされるため、
ユーザは、プログラムの暴走が発生した時点での再生位
置からCDの再生を開始させるための操作を行なわなけ
ればならない。
By the way, it is conceivable to configure an electronic device such as an audio device by using the microcomputer having a watchdog timer. However, in an electronic device including the above microcomputer, when a program runaway is detected, the CPU and other hardware constituting the microcomputer are reset to the initial state and the state of the device is restored to the initial state. However, there is a problem that the user must thereafter perform a recovery operation for recovering the operation of the device to the operation before the program runaway. For example, in an audio device having a CD playback function, if a program goes out of control while playing a CD, the state of the device is reset to a stopped state immediately after power-on,
The user has to perform an operation for starting the reproduction of the CD from the reproduction position at the time of the program runaway.

【0004】そこで、プログラムの暴走が検知されたと
き、CPUの動作をプログラムが暴走する前の動作に復
旧させることが可能なマイクロコンピュータが提案され
ている(特開平9-190360号公報[G06F 11/00])。この種の
マイクロコンピュータにおいては、プログラムカウンタ
や複数のレジスタの値が退避用メモリに退避され、プロ
グラムの暴走が検知されたとき、プログラムカウンタや
複数のレジスタの値がそれぞれ、退避用メモリに退避さ
れている複数の値に置換されて、CPUの動作がプログ
ラムの暴走前の動作に復旧する。従って、上記マイクロ
コンピュータを用いて電子機器を構成した場合、機器の
動作がプログラム暴走前の動作に自動的に復旧すること
となり、ユーザによる復旧操作が不要となる。
Therefore, when a program runaway is detected, a microcomputer capable of restoring the operation of the CPU to the operation before the program runaway has been proposed (Japanese Patent Laid-Open No. 9-190360 [G06F 11]. / 00]). In this type of microcomputer, the values of the program counter and multiple registers are saved in the save memory, and when a program runaway is detected, the values of the program counter and multiple registers are saved in the save memory. Are replaced by a plurality of values, and the operation of the CPU is restored to the operation before the runaway of the program. Therefore, when the electronic device is configured by using the microcomputer, the operation of the device is automatically restored to the operation before the program runaway, and the recovery operation by the user becomes unnecessary.

【0005】しかしながら、上記マイクロコンピュータ
を具えた電子機器においては、機器の動作中、プログラ
ムカウンタや複数のレジスタと退避用メモリとの間で多
数の値を対象として上記退避処理が行なわれるため、機
器の動作を制御する本来の制御処理が遅れる問題があ
る。又、退避用メモリ及び、退避用メモリとプログラム
カウンタ及び複数のレジスタとの間で退避動作及び置換
動作を実行する退避・復帰コントロール回路をマイクロ
コンピュータに装備しなければならず、マイクロコンピ
ュータの構成が複雑となる問題がある。更に、退避用メ
モリは、プログラムカウンタや複数のレジスタの多数の
値を格納しなければならないため、記録容量の大きいこ
とが要求されると共に、退避・復帰コントロール回路
は、多数の値を対象として退避動作及び置換動作を行な
うため、高い処理速度を有することが要求される。この
ため、マイクロコンピュータに要するコストが従来に比
べて上昇する問題がある。本発明の目的は、機器の動作
をプログラム暴走前の動作に復旧させるための復旧操作
が不要であり、然も、機器の動作中に本来の制御処理を
遅延なく実行させることが可能であって、且つ、制御回
路の構成が簡易であると共に制御回路に要するコストの
上昇を抑制することが出来る電子機器を提供することで
ある。
However, in an electronic device equipped with the above microcomputer, the saving process is performed for a large number of values between the program counter or a plurality of registers and the saving memory during the operation of the device. There is a problem that the original control processing for controlling the operation of is delayed. In addition, the microcomputer must be equipped with a save memory and a save / restore control circuit that executes save and replace operations between the save memory and the program counter and a plurality of registers. There are complex issues. Further, since the save memory must store a large number of values of the program counter and a plurality of registers, it is required to have a large recording capacity, and the save / restore control circuit saves a large number of values. In order to perform the operation and the replacement operation, it is required to have a high processing speed. Therefore, there is a problem that the cost required for the microcomputer is higher than that of the conventional one. The object of the present invention is to eliminate the need for a recovery operation for recovering the operation of the device to the operation before the program runaway, and still to be able to execute the original control processing without delay during the operation of the device. It is another object of the present invention to provide an electronic device that has a simple control circuit configuration and can suppress an increase in cost required for the control circuit.

【0006】[0006]

【課題を解決する為の手段】ところで、従来のオーディ
オ機器においては、マイクロコンピュータは、機器の動
作状態を表わす動作情報を記憶している。例えば、CD
の再生機能及びラジオ放送のチューナ機能を有するオー
ディオ機器においては、動作情報として、再生源がCD
或いはラジオ放送のいずれであるかを表わす情報、チュ
ーナの受信周波数、CDの再生位置を表わすアドレス等
が保持されている。そこで、本発明者らは、上記課題を
解決すべく鋭意研究を行なった結果、上記動作情報を機
器の動作の復旧処理に利用することに想到し、本発明の
完成に至った。
By the way, in a conventional audio device, a microcomputer stores operation information representing an operation state of the device. For example, CD
In the case of an audio device having a playback function of a CD and a tuner function of a radio broadcast, a playback source is a CD as operation information.
Alternatively, information indicating which of the radio broadcasts is being received, the receiving frequency of the tuner, the address indicating the reproduction position of the CD, and the like are held. Therefore, as a result of earnest research to solve the above problems, the present inventors have come to the idea of using the above operation information for restoration processing of the operation of the device, and have completed the present invention.

【0007】本発明に係る電子機器においては、プログ
ラム暴走検知機能を有する制御回路によって、機器の動
作が制御されると共に機器の動作状態を表わす1或いは
複数の動作情報が記憶される。そして、前記制御回路
は、プログラムの暴走が検知されたとき、記憶している
全て或いは一部の動作情報に基づいて機器の動作をプロ
グラムが暴走する前の動作に復旧させる復旧手段を具え
ている。
In the electronic device according to the present invention, the control circuit having the program runaway detection function controls the operation of the device and stores one or a plurality of operation information indicating the operating state of the device. Then, the control circuit includes recovery means for recovering the operation of the device to the operation before the program runs out of control based on all or part of the stored operation information when the program runaway is detected. .

【0008】上記電子機器においては、制御回路によっ
て、機器の動作状態を表わす動作情報が定期的或いは不
定期的に記憶され、プログラムの暴走が検知された時点
では、プログラムが暴走する直前の動作情報が記憶され
ている。従って、プログラムの暴走が検知されたとき、
その時点で記憶されている全て或いは一部の動作情報を
用いて、機器の動作をプログラムが暴走する前の動作に
復旧させることが出来る。この様に、プログラムの暴走
が検知されたとき、機器の動作がプログラム暴走前の動
作に自動的に復旧するので、ユーザによる復旧操作は不
要である。又、機器の動作を復旧させるために、従来の
電子機器においてもマイクロコンピュータによって記憶
されていた全て或いは一部の動作情報を用いるので、機
器の動作をプログラム暴走前の動作に復旧させるために
動作情報以外の情報を記憶する新たな処理は不要であ
る。従って、機器の動作中に本来の制御処理を遅延なく
実行させることが出来る。又、上述の退避用メモリや退
避・復帰コントロール回路は不要であるので、制御回路
の構成が簡易であると共に、制御回路に要するコストの
上昇を抑制することが出来る。
In the electronic equipment, the control circuit periodically or irregularly stores the operation information indicating the operation state of the equipment, and when the program runaway is detected, the operation information immediately before the program runaway is detected. Is remembered. Therefore, when a program runaway is detected,
By using all or part of the operation information stored at that time, the operation of the device can be restored to the operation before the program runs away. In this way, when a program runaway is detected, the operation of the device is automatically restored to the operation before the program runaway, and thus the user's recovery operation is unnecessary. Further, in order to restore the operation of the device, since all or part of the operation information stored by the microcomputer in the conventional electronic device is used, the operation of the device is restored to the operation before the program runaway. No new process for storing information other than information is required. Therefore, the original control process can be executed without delay during the operation of the device. Further, since the save memory and save / restore control circuit described above are not required, the configuration of the control circuit is simple and the increase in cost required for the control circuit can be suppressed.

【0009】具体的には、前記制御回路は、動作情報を
格納するための動作情報格納手段と、前記動作情報格納
手段に対する情報の書込みの許否を表わす書込み許否情
報が格納されている書込み許否情報格納手段と、前記書
込み許否情報に基づいて、動作情報格納手段に対する情
報の書込みが許可されているか否かを判断し、許可され
ていると判断した場合に限って動作情報を動作情報格納
手段に書き込む情報書込み手段とを具えている。
More specifically, the control circuit is provided with operation information storage means for storing operation information, and write permission / prohibition information in which write permission / prohibition information indicating permission / prohibition of writing information to the operation information storage means is stored. Based on the storage means and the write permission / prohibition information, it is determined whether or not writing of information to the movement information storage means is permitted, and the movement information is stored in the movement information storage means only when it is determined that writing is permitted. And means for writing information.

【0010】仮に、動作情報格納手段に対する書込み要
求が発生したときに常に動作情報格納手段に対する書込
みが可能な構成を採用した場合、プログラムの暴走が発
生した時点から前記復旧処理が開始されるまでの間に動
作情報格納手段に対する書込み要求が発生すると、動作
情報格納手段に格納されている動作情報が書き換えられ
る虞があり、この場合、機器の動作をプログラム暴走前
の動作に復旧させることが出来ない。そこで、上記具体
的構成においては、書込み許否情報格納手段に書込み許
否情報が格納され、書込み許否情報が動作情報格納手段
に対する書込みの許可を表わしている場合に限って動作
情報格納手段に動作情報が書き込まれる。かかる構成に
おいては、プログラムが正常に実行されている状態で
は、書込み許否情報が書込みの許可を表わしているとき
に動作情報格納手段に対する動作情報の書込み要求が発
生するため、動作情報が動作情報格納手段に書き込まれ
ることになる。これに対し、プログラムが暴走している
状態で動作情報格納手段に対する書込み要求が発生した
場合には、書込み許否情報が書込みの禁止を表わしてい
る可能性が高い。従って、プログラムの暴走が発生した
時点から前記復旧処理が開始されるまでの間に、動作情
報格納手段に対する書込み要求が発生した場合であって
も、動作情報格納手段に書き込まれている動作情報が書
き換えられるという事態の可能性は極めて低く、動作情
報が書き換えられたために機器の動作をプログラム暴走
前の動作に復旧させることが出来ないという事態の発生
を防止することが出来る。
If a configuration is adopted in which writing to the operation information storage means is always possible when a write request to the operation information storage means occurs, from the time when the program runaway occurs until the recovery processing is started. If a write request is issued to the operation information storage means in the meantime, the operation information stored in the operation information storage means may be rewritten. In this case, the operation of the device cannot be restored to the operation before the program runaway. . Therefore, in the above specific configuration, the write permission / prohibition information is stored in the write permission / prohibition information storage means, and the motion information is stored in the motion information storage means only when the write permission / refusal information represents the permission of writing to the motion information storage means. Written. In such a configuration, when the program is normally executed, a write request of the operation information to the operation information storage means is made when the write approval / disapproval information indicates that the operation is allowed to be stored. Will be written to the means. On the other hand, if a write request is issued to the operation information storage means while the program is running out of control, it is highly likely that the write permission / prohibition information indicates that writing is prohibited. Therefore, even if a write request is issued to the operation information storage unit between the time when the program has runaway and the restoration process is started, the operation information written in the operation information storage unit is The possibility of rewriting is extremely low, and it is possible to prevent a situation in which the operation of the device cannot be restored to the operation before the program runaway because the operation information is rewritten.

【0011】又、具体的には、前記制御回路の復旧手段
は、プログラムの暴走が検知されたときに、機器の動作
をプログラムが暴走する前の動作に復旧させる一方、機
器本体の電源が投入されたとき、或いはリセット操作が
行なわれたときに、機器の状態を初期状態に設定する。
More specifically, when the program runaway is detected, the recovery means of the control circuit restores the operation of the device to the operation before the program goes out of control, while turning on the power of the device body. When the reset operation is performed or the reset operation is performed, the state of the device is set to the initial state.

【0012】上記具体的構成においては、プログラムの
暴走が検知されたときには、機器の動作がプログラム暴
走前の動作に復旧する。これに対し、ユーザにより機器
本体の電源が投入されたとき、或いはユーザによりリセ
ット操作が行なわれたときには、機器の状態が初期状
態、例えば、機器の動作が停止した状態に設定される。
In the above specific configuration, when the program runaway is detected, the operation of the device is restored to the operation before the program runaway. On the other hand, when the user turns on the power of the device body or when the user performs a reset operation, the state of the device is set to an initial state, for example, a state where the operation of the device is stopped.

【0013】更に具体的には、前記制御回路は、プログ
ラムの暴走が検知されたことを表わす第1の値、或いは
検知されていないことを表わす第2の値の何れかの値を
とる暴走検知有無フラグのフラグ格納手段と、機器本体
の電源が投入されたとき、或いはリセット操作が行なわ
れたときに、前記復旧手段に対して復旧動作開始指令を
出力する復旧指令手段とを具えている。そして、前記復
旧手段は、復旧動作開始指令を受けて、前記暴走検知有
無フラグが第1の値或いは第2の値の何れの値をとって
いるかを判断する判断手段と、前記暴走検知有無フラグ
が第1の値をとっていると判断されたときに、機器の動
作をプログラムが暴走する前の動作に復旧させると共に
前記暴走有無フラグを第2の値に書き換える一方、前記
暴走検知有無フラグが第2の値をとっていると判断され
たときに、機器の状態を初期状態に設定する復旧処理手
段と、プログラムの暴走が検知されたとき、前記暴走検
知有無フラグを第1の値に書き換えると共に前記判断手
段に対して復旧動作開始指令を出力する割込み処理手段
とを具えている。
More specifically, the control circuit takes one of a first value indicating that a program runaway has been detected and a second value indicating that a program runaway has not been detected, and a runaway detection. It has a flag storage means for the presence / absence flag, and a recovery command means for outputting a recovery operation start command to the recovery means when the power of the device body is turned on or when a reset operation is performed. The recovery means receives the recovery operation start command and determines whether the runaway detection presence / absence flag has a first value or a second value, and the runaway detection presence / absence flag. Is determined to take the first value, the operation of the device is restored to the operation before the program goes out of control, and the runaway presence / absence flag is rewritten to the second value. When it is determined that it takes the second value, a recovery processing unit that sets the state of the device to the initial state, and when a program runaway is detected, the runaway detection presence / absence flag is rewritten to the first value. At the same time, an interrupt processing means for outputting a restoration operation start command to the judging means is provided.

【0014】上記具体的構成においては、ユーザにより
機器本体の電源が投入されたとき、或いはユーザにより
リセット操作が行なわれたときに、復旧指令手段から復
旧手段に対し復旧動作開始指令が出力され、復旧手段の
判断手段は、該復旧動作開始指令を受けて、暴走検知有
無フラグが第1の値或いは第2の値の何れの値をとって
いるかを判断する。このとき、暴走検知有無フラグは第
2の値をとっていると判断されて、復旧処理手段は、機
器の状態を初期状態に設定する。これに対し、プログラ
ムの暴走が検知されたとき、割込み処理手段によって暴
走検知有無フラグが第1の値に書き換えられると共に、
割込み処理手段から判断手段に対し復旧動作開始指令が
出力され、判断手段は、該復旧動作開始指令を受けて、
暴走検知有無フラグが第1の値或いは第2の値の何れの
値をとっているかを判断する。このとき、暴走検知有無
フラグは第1の値をとっていると判断されて、復旧処理
手段は、機器の動作をプログラムが暴走する前の動作に
復旧させると共に、暴走検知有無フラグを第2の値に書
き換える。
In the above specific configuration, when the user turns on the power of the device main body or when the user performs a reset operation, the restoration command means outputs a restoration operation start command to the restoration means. The determination means of the recovery means receives the recovery operation start command and determines whether the runaway detection presence / absence flag has the first value or the second value. At this time, it is determined that the runaway detection presence / absence flag has the second value, and the recovery processing means sets the state of the device to the initial state. On the other hand, when the program runaway is detected, the interrupt processing means rewrites the runaway detection presence / absence flag to the first value, and
A recovery operation start command is output from the interrupt processing means to the determination means, and the determination means receives the recovery operation start command,
It is determined whether the runaway detection presence / absence flag has a first value or a second value. At this time, it is determined that the runaway detection presence / absence flag has the first value, and the recovery processing unit restores the operation of the device to the operation before the program runs out of control, and sets the runaway detection presence / absence flag to the second value. Overwrite with a value.

【0015】更に又、具体的には、前記制御回路は、時
間の経過を計測し、リセット指令を受けたときに計測値
を初期値にリセットする一方、計測値が所定の閾値を超
えたときに前記復旧手段に対して暴走検知信号を出力す
るウオッチドッグタイマと、前記ウオッチドッグタイマ
に対して、前記計測値が初期値から所定の閾値を超える
までの時間よりも短い周期でリセット指令を出力するリ
セット指令手段とを具えている。
Furthermore, more specifically, the control circuit measures the passage of time, resets the measured value to an initial value when receiving a reset command, and when the measured value exceeds a predetermined threshold value. A watchdog timer that outputs a runaway detection signal to the recovery means, and a reset command to the watchdog timer at a cycle shorter than the time from when the measured value exceeds a predetermined threshold to the predetermined value. And a reset command means for resetting.

【0016】上記具体的構成においては、プログラムが
正常に実行されている状態では、リセット指令手段から
ウオッチドッグタイマに対して、該タイマの計測値が初
期値から所定の閾値を超えるまでの時間よりも短い周期
でリセット指令が出力され、ウオッチドッグタイマは、
該リセット指令を受ける度に、計測値をリセットする。
従って、計測値が所定の閾値を超えることはなく、復旧
手段に対して暴走検知信号が発せられることはない。こ
れに対し、プログラムの暴走が発生してリセット指令手
段からウオッチドッグタイマに対する前記リセット指令
の出力が正常に行なわれなくなった場合、ウオッチドッ
グタイマの計測値が所定の閾値を超えることとなって、
ウオッチドッグタイマから復旧手段に対して暴走検知信
号が出力されることになる。この様にして、プログラム
の暴走を検知することが出来る。
In the above specific configuration, when the program is normally executed, the reset command means instructs the watchdog timer to wait longer than the time from when the measured value of the timer exceeds the predetermined threshold value. The reset command is output in a short cycle, and the watchdog timer
Each time the reset command is received, the measured value is reset.
Therefore, the measured value does not exceed the predetermined threshold value, and the runaway detection signal is not issued to the recovery means. On the other hand, when a program runaway occurs and the reset command means does not output the reset command to the watchdog timer normally, the measured value of the watchdog timer exceeds a predetermined threshold value.
The watchdog timer outputs a runaway detection signal to the recovery means. In this way, the runaway of the program can be detected.

【0017】[0017]

【発明の効果】本発明に係る電子機器によれば、機器の
動作をプログラム暴走前の動作に復旧させるための操作
は不要であり、然も、機器の動作中に本来の制御処理を
遅延なく実行させることが可能であって、且つ、制御回
路の構成が簡易であると共に制御回路に要するコストの
上昇を抑制することが出来る。
According to the electronic device of the present invention, the operation for restoring the operation of the device to the operation before the program runaway is unnecessary, and the original control processing is not delayed during the operation of the device. The control circuit can be executed, the configuration of the control circuit is simple, and the increase in cost required for the control circuit can be suppressed.

【0018】[0018]

【発明の実施の形態】以下、本発明を図1に示すオーデ
ィオ機器に実施した形態につき、図面に沿って具体的に
説明する。本発明に係るオーディオ機器(1)において
は、図1に示す如く、マイクロコンピュータ(2)に、ラ
ジオ放送のチューナ機能を有するチューナブロック
(3)、CDの再生機能を有するCDブロック(4)、情報
入力機能を有する操作キーブロック(5)及び情報表示機
能を有する表示ブロック(6)が接続されている。これら
のブロック(3)〜(6)は夫々、複数の回路によって構成
され、これら複数の回路は、マイクロコンピュータ(2)
によって動作が制御されている。又、マイクロコンピュ
ータ(2)には、リセット回路(7)を介して電源回路(8)
が接続されており、電源回路(8)が商用電源(図示省略)
に接続されている状態で、該電源回路(8)からマイクロ
コンピュータ(2)、チューナブロック(3)、CDブロッ
ク(4)、操作キーブロック(5)及び表示ブロック(6)に
対して電力が供給される。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention applied to the audio equipment shown in FIG. 1 will be specifically described below with reference to the drawings. In an audio device (1) according to the present invention, as shown in FIG. 1, a microcomputer (2) has a tuner block having a tuner function for radio broadcasting.
(3), a CD block (4) having a CD reproducing function, an operation key block (5) having an information input function, and a display block (6) having an information display function are connected. Each of these blocks (3) to (6) is composed of a plurality of circuits, and these plurality of circuits are connected to the microcomputer (2).
The operation is controlled by. Further, the microcomputer (2) has a power supply circuit (8) via a reset circuit (7).
Is connected, and the power supply circuit (8) is a commercial power supply (not shown).
In the state where the power supply circuit (8) is connected to the microcomputer, power is supplied to the microcomputer (2), the tuner block (3), the CD block (4), the operation key block (5) and the display block (6). Supplied.

【0019】マイクロコンピュータ(2)はCPU(20)を
具えており、該CPU(20)にI/Oボード(21)、及びタ
イマや割込み処理機構等の周辺ハードウエア(22)が接続
され、I/Oボード(21)に、前記チューナブロック
(3)、CDブロック(4)、操作キーブロック(5)及び表
示ブロック(6)が接続されている。又、CPU(20)に前
記リセット回路(7)が接続されており、電源回路(8)が
商用電源に接続されると、リセット回路(7)はこの状態
を検知して、CPU(20)にリセット信号を供給する。
又、CPU(20)には、ウオッチドッグタイマ(23)が接続
されている。ウオッチドッグタイマ(23)は、CPU(20)
からのクリア信号を受けて時間計測値をゼロに初期化す
る一方、時間計測値が所定の閾値を超えると、その時点
で割込み信号をCPU(20)に供給する。従って、プログ
ラムが正常に実行されている状態ではCPU(20)からウ
オッチドックタイマ(23)に一定の周期でクリア信号が供
給されて、ウオッチドッグタイマ(23)の時間計測値が一
定の周期でゼロに初期化されることになるが、プログラ
ムが暴走してCPU(20)からウオッチドッグタイマ(23)
に対するクリア信号の供給が正常に行なわれなくなった
場合は、ウオッチドッグタイマ(23)の時間計測値が所定
の閾値を超えることとなって、ウオッチドッグタイマ(2
3)からCPU(20)に割込み信号が供給されることにな
る。
The microcomputer (2) comprises a CPU (20), to which the I / O board (21) and peripheral hardware (22) such as a timer and an interrupt processing mechanism are connected. The tuner block on the I / O board (21)
(3), CD block (4), operation key block (5) and display block (6) are connected. Further, when the reset circuit (7) is connected to the CPU (20) and the power supply circuit (8) is connected to the commercial power supply, the reset circuit (7) detects this state and the CPU (20) Supply a reset signal to.
Also, a watchdog timer (23) is connected to the CPU (20). Watchdog timer (23) is CPU (20)
When the time measurement value exceeds a predetermined threshold value, the interrupt signal is supplied to the CPU (20) at that time. Therefore, when the program is running normally, the CPU (20) supplies a clear signal to the watchdog timer (23) at a constant cycle, and the time measurement value of the watchdog timer (23) is at a constant cycle. Although it will be initialized to zero, the program runs away and the CPU (20) causes the watchdog timer (23)
If the clear signal is not normally supplied to the watchdog timer (23), the time measurement value of the watchdog timer (23) exceeds the predetermined threshold, and the watchdog timer (2
An interrupt signal is supplied from 3) to the CPU (20).

【0020】又、CPU(20)には情報レジスタ(24)が接
続されている。CPU(20)は、従来のオーディオ機器と
同様に、機器の動作状態に変化があったときに該動作状
態を表わす動作情報を情報レジスタ(24)に書き込む動作
を実行する。動作情報としては、例えば、機器本体の電
源スイッチのオン/オフ状態を表わす情報、再生源がA
Mラジオ放送、FMラジオ放送及びCDの何れであるか
を表わす情報、再生源がAMラジオ放送或いはFMラジ
オ放送である場合にはチューナブロック(3)の受信周波
数を表わす情報、再生源がCDである場合には再生/停
止状態を表わす情報や再生位置を表わすアドレス情報等
が書き込まれる。
An information register (24) is connected to the CPU (20). The CPU (20), like the conventional audio equipment, executes the operation of writing the operation information representing the operating status in the information register (24) when the operating status of the equipment changes. As the operation information, for example, information indicating the on / off state of the power switch of the device body, the reproduction source A
Information indicating whether it is an M radio broadcast, an FM radio broadcast, or a CD. If the reproduction source is an AM radio broadcast or an FM radio broadcast, information indicating the reception frequency of the tuner block (3), the reproduction source is a CD. In some cases, information indicating the reproduction / stop state, address information indicating the reproduction position, etc. are written.

【0021】更に、CPU(20)には第1フラグレジスタ
(25)及び第2フラグレジスタ(26)が接続されている。第
1フラグレジスタ(25)には、情報レジスタ(24)に対する
情報の書込みが許可されていることを表わす“0”の
値、或いは書込みが禁止されていることを表わす“1”
の値の何れかの値をとる書込み許否フラグが格納されて
いる。プログラムが正常に実行されている状態では、書
込み許否フラグが“0”の値をとっているときに情報レ
ジスタ(24)に対する書込み要求が発生するため、情報レ
ジスタ(24)に動作情報が書き込まれることになるが、プ
ログラムが暴走している状態で情報レジスタ(24)に対す
る書込み要求が発生した場合には、書込み許否フラグが
“1”の値をとっている可能性が高く、この場合、情報
レジスタ(24)に何らかの情報が書き込まれることはな
い。一方、第2フラグレジスタ(26)には、プログラムの
暴走が検知されたことを表わす“1”の値、或いは検知
されていないことを表わす“0”の値の何れかの値をと
る暴走有無検知フラグが格納されている。
Further, the CPU (20) has a first flag register.
(25) and the second flag register (26) are connected. The first flag register (25) has a value of "0" indicating that writing of information to the information register (24) is permitted, or "1" indicating that writing is prohibited.
The write permission / prohibition flag which takes any one of the values is stored. In the state where the program is normally executed, a write request is made to the information register (24) when the write permission / prohibition flag is "0", so the operation information is written to the information register (24). However, if a write request is made to the information register (24) while the program is running out of control, it is highly possible that the write permission / prohibition flag has a value of "1". No information is written to the register (24). On the other hand, the second flag register (26) has a value of "1" indicating that a program runaway has been detected, or a value of "0" indicating that a program runaway has not been detected. The detection flag is stored.

【0022】上記CPU(20)は、リセット回路(7)から
リセット信号を受けたとき、即ち電源回路(8)に商用電
源が接続されたときに暴走有無検知フラグを“0”の値
に書き換える一方、ウオッチドッグタイマ(23)から割込
み信号を受けたとき、即ちプログラムの暴走が検知され
たときに暴走有無検知フラグを“1”の値に書き換え
る。そして、CPU(20)は、暴走有無検知フラグが
“0”の値をとっているときに、チューナブロック
(3)、CDブロック(4)、操作キーブロック(5)及び表
示ブロック(6)をそれぞれ構成する複数の回路の状態
を、これら複数の回路が動作を停止した初期状態に設定
する一方、暴走検知有無フラグが“1”の値をとってい
るときに、情報レジスタ(24)に書き込まれている全て或
いは一部の動作情報に基づいて、前記複数の回路の動作
をプログラムが暴走する前の動作に復旧させる。
The CPU (20) rewrites the runaway presence / absence detection flag to a value of "0" when receiving a reset signal from the reset circuit (7), that is, when a commercial power source is connected to the power source circuit (8). On the other hand, when an interrupt signal is received from the watchdog timer (23), that is, when a program runaway is detected, the runaway presence / absence detection flag is rewritten to a value of "1". When the runaway presence / absence detection flag has a value of “0”, the CPU (20)
(3), the CD block (4), the operation key block (5), and the display block (6) are respectively set to the state of a plurality of circuits in the initial state in which the plurality of circuits have stopped the operation, runaway When the detection presence / absence flag has a value of "1", the program operates before the runaway of the plurality of circuits based on all or part of the operation information written in the information register (24). Restore operation.

【0023】図2は、機器本体が商用電源に接続されて
いる状態でCPU(20)によって実行される制御手続を表
わしている。図示の如く、先ずステップS1にて各ポー
トの設定等、必要なイニシャル処理を行なった後、ステ
ップS2では、暴走検知有無フラグ(“WD_FLAG”)が
“0”の値、或いは“1”の値の何れの値をとっている
かを判断する。暴走検知有無フラグが“0”の値をとっ
ていると判断された場合は、ステップS3に移行して、
チューナブロック(3)、CDブロック(4)、操作キーブ
ロック(5)及び表示ブロック(6)をそれぞれ構成する複
数の回路の状態を初期状態に設定した後、ステップS6
に移行する。一方、暴走検知有無フラグが“1”の値を
とっていると判断された場合は、ステップS4に移行し
て、暴走検知有無フラグの値を“0”に書き換える。続
いて、情報レジスタ(24)に書き込まれている全て或いは
一部の動作情報に基づいて、チューナブロック(3)、C
Dブロック(4)、操作キーブロック(5)及び表示ブロッ
ク(6)をそれぞれ構成する複数の回路の動作をプログラ
ム暴走前の動作に復旧させた後、ステップS6に移行す
る。
FIG. 2 shows a control procedure executed by the CPU (20) in a state where the device body is connected to a commercial power source. As shown in the figure, first, in step S1, necessary initial processing such as setting of each port is performed, and then in step S2, the runaway detection presence / absence flag (“WD_FLAG”) has a value of “0” or a value of “1”. Which of the two is taken is determined. If it is determined that the runaway detection presence / absence flag has a value of "0", the process proceeds to step S3,
After setting the states of a plurality of circuits respectively constituting the tuner block (3), the CD block (4), the operation key block (5) and the display block (6) to the initial state, step S6
Move to. On the other hand, if it is determined that the runaway detection presence / absence flag has a value of "1", the process proceeds to step S4, and the value of the runaway detection presence / absence flag is rewritten to "0". Then, based on all or part of the operation information written in the information register (24), the tuner block (3), C
After the operations of the plurality of circuits respectively constituting the D block (4), the operation key block (5) and the display block (6) are restored to the operations before the program runaway, the process proceeds to step S6.

【0024】ステップS6では、ユーザ操作に応じてチ
ューナブロック(3)、CDブロック(4)、操作キーブロ
ック(5)及び表示ブロック(6)に対する制御処理を実行
した後、ステップS7にて、機器の動作状態を表わす動
作情報を情報レジスタ(24)に書き込む。続いてステップ
S8では、ウオッチドッグタイマ(23)に対してクリア信
号を出力した後、ステップS6に戻る。
In step S6, the control process for the tuner block (3), the CD block (4), the operation key block (5) and the display block (6) is executed according to the user's operation, and then the device is operated in step S7. The operation information indicating the operation state of is written in the information register (24). Succeedingly, in a step S8, a clear signal is outputted to the watchdog timer (23), and thereafter, the process returns to the step S6.

【0025】図3は、ウオッチドッグタイマ(23)からC
PU(20)に割込み信号が供給されたときにCPU(20)に
よって実行される割込み処理手続を表わしており、先ず
ステップS11にて暴走検知有無フラグを“1”の値に
書き換えた後、ステップS12では、図2に示すステッ
プS1に移行すべき旨のリセット命令を実行して手続を
終了する。
FIG. 3 shows the watchdog timer (23) to C
It shows an interrupt processing procedure executed by the CPU (20) when an interrupt signal is supplied to the PU (20). First, in step S11, the runaway detection presence / absence flag is rewritten to a value of "1", and then the step In S12, a reset command to the effect that the process should move to step S1 shown in FIG.

【0026】本発明に係るオーディオ機器においては、
図1に示す電源回路(8)に商用電源が接続されてリセッ
ト回路(7)からCPU(20)にリセット信号が供給される
と、先ず、情報レジスタ(24)に書き込まれている動作情
報が初期化されると共に第2フラグレジスタ(26)に格納
されている暴走検知有無フラグが“0”の値に初期化さ
れる。続いて、図2のステップS1にて必要なイニシャ
ル処理が行なわれた後、ステップS2では暴走検知有無
フラグが“0”の値をとっていると判断されて、ステッ
プS3にてチューナブロック(3)、CDブロック(4)、
操作キーブロック(5)及び表示ブロック(6)をそれぞれ
構成する複数の回路の状態が初期状態に設定される。こ
の様にして、機器の状態が初期状態に設定されることに
なる。続いて、ステップS6乃至ステップS8の処理が
例えば10msecの周期で繰り返し実行される。これ
によって、機器の動作状態に変化があったときに該動作
状態を表わす動作情報が情報レジスタ(24)に書き込まれ
ると共に、ウオッチドッグタイマ(23)に一定の周期でク
リア信号が供給されることになる。
In the audio device according to the present invention,
When a commercial power supply is connected to the power supply circuit (8) shown in FIG. 1 and a reset signal is supplied from the reset circuit (7) to the CPU (20), first, the operation information written in the information register (24) At the same time as the initialization, the runaway detection presence / absence flag stored in the second flag register (26) is initialized to a value of "0". Subsequently, after the necessary initial processing is performed in step S1 of FIG. 2, it is determined in step S2 that the runaway detection presence / absence flag has a value of "0", and the tuner block (3 ), CD block (4),
The states of a plurality of circuits respectively constituting the operation key block (5) and the display block (6) are set to the initial state. In this way, the device state is set to the initial state. Then, the processes of steps S6 to S8 are repeatedly executed at a cycle of, for example, 10 msec. As a result, when there is a change in the operating state of the device, the operating information indicating the operating state is written to the information register (24) and the clear signal is supplied to the watchdog timer (23) at a constant cycle. become.

【0027】その後、プログラムの暴走が発生して上記
ステップS6乃至ステップS8の処理が実行されない事
態が生じると、CPU(20)からウオッチドッグタイマ(2
3)に対するクリア信号の供給が停止されてウオッチドッ
クタイマ(23)の時間計測値が所定の閾値を超えることと
なり、ウオッチドックタイマ(23)からCPU(20)に割込
み信号が供給される。
Thereafter, if a situation occurs in which the program runaway occurs and the processing in steps S6 to S8 is not executed, the CPU (20) causes the watchdog timer (2
The supply of the clear signal to 3) is stopped and the time measured value of the watchdog timer (23) exceeds a predetermined threshold value, and the interrupt signal is supplied from the watchdog timer (23) to the CPU (20).

【0028】CPU(20)に割込み信号が供給されると、
図3のステップS11にて暴走検知有無フラグの値が
“1”に書き換えられた後、ステップS12にてリセッ
ト命令が実行されて図2のステップS1に移行し、ステ
ップS1にてイニシャル処理が行なわれる。続いて、ス
テップS2では暴走検知有無フラグが“1”の値をとっ
ていると判断されて、ステップS3にてチューナブロッ
ク(3)、CDブロック(4)、操作キーブロック(5)及び
表示ブロック(6)をそれぞれ構成する複数の回路の動作
がプログラム暴走前の動作に復旧する。この様にして、
機器の動作がプログラム暴走前の動作に復旧する。
When an interrupt signal is supplied to the CPU (20),
After the value of the runaway detection presence / absence flag is rewritten to "1" in step S11 of FIG. 3, the reset command is executed in step S12, the process proceeds to step S1 of FIG. 2, and the initial process is performed in step S1. Be done. Then, in step S2, it is determined that the runaway detection presence / absence flag has a value of "1", and in step S3 the tuner block (3), the CD block (4), the operation key block (5) and the display block. The operation of the plurality of circuits respectively constituting (6) is restored to the operation before the program runaway. In this way
The operation of the equipment is restored to the operation before the program runaway.

【0029】本発明に係るオーディオ機器においては、
上述の如く、機器本体に商用電源が接続されたときに、
機器の状態が初期状態に設定される一方、プログラムの
暴走が検知されたときには、機器の動作がプログラム暴
走前の動作に復旧する。例えば、CDの再生中にプログ
ラムの暴走が発生した場合、その時点での再生位置から
CDの再生が開始されることになる。従って、機器の動
作をプログラム暴走前の動作に復旧させるための復旧操
作は不要である。
In the audio device according to the present invention,
As mentioned above, when a commercial power source is connected to the main unit,
When the runaway of the program is detected while the state of the device is set to the initial state, the operation of the device is restored to the operation before the program runaway. For example, when a program runaway occurs during the reproduction of a CD, the reproduction of the CD is started from the reproduction position at that time. Therefore, a recovery operation for recovering the operation of the device to the operation before the program runaway is unnecessary.

【0030】又、上記マイクロコンピュータ(2)におい
ては、機器の動作をプログラム暴走前の動作に復旧させ
るために、動作情報以外の情報を記憶する新たな処理は
行なわれないので、機器の動作中に本来の制御処理の遅
延を招くことはない。又、プログラムカウンタや複数の
レジスタの値を退避するための退避用メモリや、プログ
ラムカウンタや複数のレジスタと退避用メモリとの間で
退避処理や置換処理を実行する退避・復帰コントロール
回路は不要であるので、制御回路の構成が簡易であると
共に、制御回路に要するコストが抑制される。
Further, in the microcomputer (2), in order to restore the operation of the device to the operation before the program runaway, a new process for storing information other than the operation information is not performed, so that the device is operating. There is no delay in the original control processing. Further, a save memory for saving the values of the program counter and a plurality of registers, and a save / restore control circuit for performing a save process and a replace process between the program counter and a plurality of registers and the save memory are unnecessary. Therefore, the configuration of the control circuit is simple and the cost required for the control circuit is suppressed.

【0031】又、上述の如く、プログラムが暴走してい
る状態で情報レジスタ(24)に対する書込み要求が発生し
た場合には、書込み許否フラグが“1”の値をとってい
る可能性が高いため、プログラムの暴走が発生してから
CPU(20)に割込み信号が供給されるまでの間に情報レ
ジスタ(24)に書き込まれている動作情報が書き換えられ
るという事態の可能性は極めて低く、動作情報が書き換
えられたために機器の動作をプログラム暴走前の動作に
復旧させることが出来ないという事態の発生を防止する
ことが出来る。
Further, as described above, when a write request is issued to the information register (24) while the program is running out of control, it is highly possible that the write permission / prohibition flag has a value of "1". , It is extremely unlikely that the operation information written in the information register (24) will be rewritten between the time the program runaway occurs and the time when the interrupt signal is supplied to the CPU (20). It is possible to prevent a situation in which the operation of the device cannot be restored to the operation before the program runaway due to the rewriting.

【0032】尚、本発明の各部構成は上記実施の形態に
限らず、特許請求の範囲に記載の技術的範囲内で種々の
変形が可能である。例えば、上記実施の形態において
は、本発明をオーディオ機器に実施しているが、これに
限らず、マイクロコンピュータ等の制御回路を具えた種
々の電子機器に実施することが可能である。又、プログ
ラムの暴走を検知する方法として、ウオッチドッグタイ
マを用いた検知方法を採用しているが、その他の周知の
検知方法を採用することが可能である。更に、電子機器
にリセットボタンを配備し、該リセットボタンに対する
リセット操作が行なわれたときに機器の状態を初期状態
に設定する構成を採用することも可能である。
The configuration of each part of the present invention is not limited to the above-described embodiment, and various modifications can be made within the technical scope described in the claims. For example, although the present invention is applied to the audio device in the above embodiment, the present invention is not limited to this and can be applied to various electronic devices including a control circuit such as a microcomputer. Further, as the method for detecting the runaway of the program, the detection method using the watchdog timer is adopted, but other known detection methods can be adopted. Further, it is also possible to adopt a configuration in which a reset button is provided in the electronic device and the state of the device is set to the initial state when the reset operation is performed on the reset button.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明を実施したオーディオ機器の構成を表わ
すブロック図である。
FIG. 1 is a block diagram showing a configuration of an audio device embodying the present invention.

【図2】機器本体に商用電源が接続された状態でCPU
によって実行される制御手続を表わすフローチャートで
ある。
[Fig. 2] CPU with commercial power supply connected to the device body
6 is a flowchart showing a control procedure executed by

【図3】ウオッチドッグタイマからCPUに割込み信号
が供給されたときにCPUによって実行される割込み処
理手続を表わすフローチャートである。
FIG. 3 is a flowchart showing an interrupt processing procedure executed by the CPU when an interrupt signal is supplied from the watchdog timer to the CPU.

【符号の説明】[Explanation of symbols]

(1) オーディオ機器 (2) マイクロコンピュータ (23) ウオッチドッグタイマ (24) 情報レジスタ (25) 第1フラグレジスタ (26) 第2フラグレジスタ (3) チューナブロック (4) CDブロック (5) 操作キーブロック (6) 表示ブロック (1) Audio equipment (2) Microcomputer (23) Watchdog timer (24) Information register (25) First flag register (26) Second flag register (3) Tuner block (4) CD block (5) Operation key block (6) Display block

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 プログラム暴走検知機能を有する制御回
路によって、機器の動作が制御されると共に機器の動作
状態を表わす1或いは複数の動作情報が記憶される電子
機器において、前記制御回路は、プログラムの暴走が検
知されたとき、記憶している全て或いは一部の動作情報
に基づいて機器の動作をプログラムが暴走する前の動作
に復旧させる復旧手段を具えていることを特徴とする電
子機器。
1. An electronic device in which the operation of the device is controlled by a control circuit having a program runaway detection function, and one or a plurality of pieces of operation information indicating the operating state of the device are stored, An electronic device, characterized in that, when a runaway is detected, the device includes recovery means for restoring the operation of the device to the operation before the program goes out of control based on all or part of the stored operation information.
【請求項2】 前記制御回路は、 動作情報を格納するための動作情報格納手段と、 前記動作情報格納手段に対する情報の書込みの許否を表
わす書込み許否情報が格納されている書込み許否情報格
納手段と、 前記書込み許否情報に基づいて、動作情報格納手段に対
する情報の書込みが許可されているか否かを判断し、許
可されていると判断した場合に限って動作情報を動作情
報格納手段に書き込む情報書込み手段とを具えている請
求項1に記載の電子機器。
2. The control circuit includes: operation information storage means for storing operation information; and write permission / prohibition information storage means for storing write permission / prohibition information indicating permission / prohibition of writing information to the operation information storage means. Writing information to write to the operation information storage means only when it is determined that writing of information to the operation information storage means is permitted based on the write permission / prohibition information The electronic device according to claim 1, further comprising:
【請求項3】 前記制御回路の復旧手段は、プログラム
の暴走が検知されたときに、機器の動作をプログラムが
暴走する前の動作に復旧させる一方、機器本体の電源が
投入されたとき、或いはリセット操作が行なわれたとき
に、機器の状態を初期状態に設定する請求項1又は請求
項2に記載の電子機器。
3. The control circuit restoring means restores the operation of the device to the operation before the program goes out of control when a program runaway is detected, or when the power of the device body is turned on, or The electronic device according to claim 1 or 2, wherein a state of the device is set to an initial state when a reset operation is performed.
【請求項4】 前記制御回路は、 プログラムの暴走が検知されたことを表わす第1の値、
或いは検知されていないことを表わす第2の値の何れか
の値をとる暴走検知有無フラグのフラグ格納手段と、 機器本体の電源が投入されたとき、或いはリセット操作
が行なわれたときに、前記復旧手段に対して復旧動作開
始指令を出力する復旧指令手段とを具え、前記復旧手段
は、 復旧動作開始指令を受けて、前記暴走検知有無フラグが
第1の値或いは第2の値の何れの値をとっているかを判
断する判断手段と、 前記暴走検知有無フラグが第1の値をとっていると判断
されたときに、機器の動作をプログラムが暴走する前の
動作に復旧させると共に前記暴走有無フラグを第2の値
に書き換える一方、前記暴走検知有無フラグが第2の値
をとっていると判断されたときに、機器の状態を初期状
態に設定する復旧処理手段と、 プログラムの暴走が検知されたとき、前記暴走検知有無
フラグを第1の値に書き換えると共に前記判断手段に対
して復旧動作開始指令を出力する割込み処理手段とを具
えている請求項3に記載の電子機器。
4. The control circuit has a first value indicating that a program runaway has been detected,
Alternatively, the flag storage means for the runaway detection presence / absence flag, which takes any one of the second values indicating that it has not been detected, and the device main body when the power is turned on or when the reset operation is performed, The recovery means includes a recovery command means for outputting a recovery operation start command to the recovery means, and the recovery means receives the recovery operation start command, and the runaway detection presence / absence flag has either a first value or a second value. Determining means for determining whether or not a value is taken, and when it is determined that the runaway detection presence / absence flag takes a first value, the operation of the device is restored to the operation before the program goes out of control, and the runaway is performed. While rewriting the presence / absence flag to the second value, when it is determined that the runaway detection presence / absence flag has the second value, the recovery processing means for setting the state of the device to the initial state, and the runaway of the program. 4. The electronic device according to claim 3, further comprising: an interrupt processing unit that rewrites the runaway detection presence / absence flag to a first value and outputs a recovery operation start command to the determination unit when is detected.
【請求項5】 前記制御回路は、 時間の経過を計測し、リセット指令を受けたときに計測
値を初期値にリセットする一方、計測値が所定の閾値を
超えたときに前記復旧手段に対して暴走検知信号を出力
するウオッチドッグタイマと、 前記ウオッチドッグタイマに対して、前記計測値が初期
値から所定の閾値を超えるまでの時間よりも短い周期で
リセット指令を出力するリセット指令手段とを具えてい
る請求項1乃至請求項4の何れかに記載の電子機器。
5. The control circuit measures the passage of time, resets the measured value to an initial value when receiving a reset command, and informs the restoration means when the measured value exceeds a predetermined threshold value. A watchdog timer that outputs a runaway detection signal, and a reset command unit that outputs a reset command to the watchdog timer at a cycle shorter than the time from when the measured value exceeds a predetermined threshold value to the measured value. The electronic device according to any one of claims 1 to 4, further comprising:
JP2002075672A 2002-03-19 2002-03-19 Electronic equipment provided with control circuit having program runaway detection function Pending JP2003271411A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002075672A JP2003271411A (en) 2002-03-19 2002-03-19 Electronic equipment provided with control circuit having program runaway detection function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002075672A JP2003271411A (en) 2002-03-19 2002-03-19 Electronic equipment provided with control circuit having program runaway detection function

Publications (1)

Publication Number Publication Date
JP2003271411A true JP2003271411A (en) 2003-09-26

Family

ID=29204682

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002075672A Pending JP2003271411A (en) 2002-03-19 2002-03-19 Electronic equipment provided with control circuit having program runaway detection function

Country Status (1)

Country Link
JP (1) JP2003271411A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114925407A (en) * 2022-05-31 2022-08-19 无锡华大国奇科技有限公司 Method for protecting disassembly data

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114925407A (en) * 2022-05-31 2022-08-19 无锡华大国奇科技有限公司 Method for protecting disassembly data
CN114925407B (en) * 2022-05-31 2024-02-02 无锡华大国奇科技有限公司 Machine disassembly data protection method

Similar Documents

Publication Publication Date Title
US7574590B2 (en) Method for booting a system on a chip integrated circuit
JP4175838B2 (en) Information processing apparatus with standby mode, standby mode start method and standby mode cancel method
US20130173942A1 (en) Fast platform hibernation and resumption of computing systems
JP2007035010A (en) Method for initializing instance and executing computer program by loading operation system core program from high-speed data access memory
JP2007035012A (en) Method for executing computer program in set priority order
EP3514686B1 (en) Display apparatus and method of operating the same
JPH10207588A (en) Information processor
US5435005A (en) Method and system for controlling resuming operation of an AC-driven computer system using an external memory
JP2009128313A (en) Car navigation device, control method, program and control device
US20070079111A1 (en) Activating method of computer multimedia function
US20120327305A1 (en) Video audio processing device and standby and return method thereof
JP2003271411A (en) Electronic equipment provided with control circuit having program runaway detection function
JP2006333209A5 (en)
JP2000172385A (en) On-vehicle computer and its control method
JPH10207586A (en) Power-off control system for computer
KR20190074970A (en) Image display apparatus and operating method for the same
JPH0527875A (en) Electronic equipment
KR101236393B1 (en) Electric device and control method thereof
JP3579129B2 (en) Portable computer
JP2846876B2 (en) Information processing device
JPH0628267A (en) Information processor
JP2732702B2 (en) Information processing apparatus and clock switching method
JP2001318744A (en) Information processor and data saving control method therefor
JPH0519881A (en) Electronic equipment
JP2000090013A (en) Method for switching hibernation of information processor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040720

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20060124

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20061107

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20061228

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20070306