JPH11161519A - Reset device - Google Patents

Reset device

Info

Publication number
JPH11161519A
JPH11161519A JP9324452A JP32445297A JPH11161519A JP H11161519 A JPH11161519 A JP H11161519A JP 9324452 A JP9324452 A JP 9324452A JP 32445297 A JP32445297 A JP 32445297A JP H11161519 A JPH11161519 A JP H11161519A
Authority
JP
Japan
Prior art keywords
reset
cpu
time
watchdog timer
signal
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
JP9324452A
Other languages
Japanese (ja)
Inventor
Shunichi Ezure
俊一 江連
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.)
Nippon Signal Co Ltd
Original Assignee
Nippon Signal 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 Nippon Signal Co Ltd filed Critical Nippon Signal Co Ltd
Priority to JP9324452A priority Critical patent/JPH11161519A/en
Publication of JPH11161519A publication Critical patent/JPH11161519A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PROBLEM TO BE SOLVED: To omit a reset switch and to enable resetting by making use of a watchdog function by controlling a watchdog timer into a time-up state when a reset request signal is extracted from data inputted to a CPU. SOLUTION: The CPU 1 decides whether or not a signal for resetting the CPU 1 is included in data of a command each time the CPU receives the data. When the command requests the resetting of the CPU 1, the CPU 1 is so controlled as to perform an endless loop process wherein an arithmetic process never ends. When the CPU 1 performs the endless loop process, the watchdog timer 3 is not reset within a set specific time, so it enters the time-up state and the CPU 1 is reset with its time-up output. Thus, when the CPU 1 can be reset, the CPU 1 can be reset remotely.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、ウォッチドッグ機
能を有するコンピュータのリセット装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a reset device for a computer having a watchdog function.

【0002】[0002]

【従来の技術】従来、ウォッチドッグ機能を有するコン
ピュータは、コンピュータ(以下、「CPU」という)
における所定の演算処理がウォッチドッグタイマに設定
されている所定の時間内に終了しないときに、異常状態
が発生したとみなしてCPUをリセットするように構成
されている。
2. Description of the Related Art Conventionally, a computer having a watchdog function is a computer (hereinafter referred to as a "CPU").
When the predetermined arithmetic processing in is not completed within the predetermined time set in the watchdog timer, the CPU is reset assuming that an abnormal state has occurred.

【0003】また、CPUのリセットは、新たな処理モ
ードが設定されたときに、それまでの処理モードの処理
プログラムをクリアするためにも行われ、さらに、CP
Uの立上げ時にも、つまり、CPUの電源投入時にもリ
セット処理が行われる。
Further, when a new processing mode is set, the CPU is reset in order to clear the processing program of the previous processing mode.
The reset process is also performed when U is started, that is, when the CPU is turned on.

【0004】CPUのリセットは、上述の他に、CPU
が動作中にCPUの筐体が開けられて、そのまま処理動
作を続行することができないようなときもシステムリセ
ットスイッチが作動して行われ、さらに、オペレータの
手動操作により操作されるリセットスイッチによっても
リセットできるように構成されている。後述する本発明
の一実施の形態の説明の項で用いる図1に鎖線で示され
るリセットスイッチは、オペレータによって操作される
リセットスイッチを示している。
[0004] In addition to the above, resetting the CPU
When the CPU housing is opened during the operation and the processing operation cannot be continued as it is, the system reset switch is activated and the operation is performed. It is configured to be resettable. A reset switch indicated by a dashed line in FIG. 1 used in the description of an embodiment of the present invention described below is a reset switch operated by an operator.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、上記従
来のCPUのリセット装置は、リセットスイッチによっ
てもリセットできるように構成されているので、リセッ
トスイッチが誤操作されるおそれがあった。
However, since the above-mentioned conventional CPU reset device is configured to be reset by a reset switch, there is a possibility that the reset switch is erroneously operated.

【0006】例えば、リセットスイッチがCPUの演算
処理中に誤操作されると、演算処理が異常中断となっ
て、復旧に長時間必要とするなどの欠点があるととも
に、リセットスイッチの部品を必要とするだけでなく、
そのリセットスイッチ用の配線を必要としてコスト高に
なる欠点があった。
For example, if the reset switch is erroneously operated during the arithmetic processing of the CPU, the arithmetic processing is interrupted abnormally, and there is a drawback that it takes a long time to recover, and the reset switch requires components. not only,
There is a disadvantage that the wiring for the reset switch is required and the cost is increased.

【0007】そこで、本発明は、上記欠点を解決するた
めになされたものであって、その目的は、従来のリセッ
トスイッチを省略し、ウォッチドッグ機能を利用してリ
セットできるようにしたリセット装置を提供することに
ある。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned drawbacks, and an object of the present invention is to provide a reset device which can omit a conventional reset switch and can be reset using a watchdog function. To provide.

【0008】[0008]

【課題を解決するための手段】本発明に係るリセット装
置は、上記目的を達成するために、ウォッチドッグタイ
マのタイムアップ信号によりリセットされる機能を備え
たCPUのリセット装置であって、前記CPUに入力さ
れたデータ中からリセット要求信号を抽出する抽出手段
と、リセット要求信号が抽出されたときに、前記ウォッ
チドッグタイマをタイムアップするように制御する制御
手段と、からなることを特徴としている。
According to the present invention, there is provided a reset device for a CPU having a function of being reset by a time-up signal of a watchdog timer. Extraction means for extracting a reset request signal from the data input to the CPU, and control means for controlling the watchdog timer to time-up when the reset request signal is extracted. .

【0009】また、本発明に係るリセット装置は、上記
目的を達成するために、ウォッチドッグタイマのタイム
アップ信号によりリセットされる機能を備えたCPUの
リセット装置であって、前記CPUのテストモードの終
了、あるいは所定の動作処理モード選択時等の、そのC
PUがリセットを必要とする状態を抽出する抽出手段
と、リセットを必要とする状態が抽出されたときに、前
記ウォッチドッグタイマをタイムアップするように制御
する制御手段と、からなることを特徴としている。
According to another aspect of the present invention, there is provided a reset device for a CPU having a function of being reset by a time-up signal of a watchdog timer. At the end or when a predetermined operation processing mode is selected, etc.
PU means for extracting a state requiring resetting, and control means for controlling so that the watchdog timer times out when a state requiring resetting is extracted. I have.

【0010】[0010]

【発明の実施の形態】以下、本発明の実施の形態を図面
に基づいて説明する。図1は、一実施の形態に係るリセ
ット装置の概略構成図であって、CPU1は、周知のC
PUと同様に、図示しないメモリに格納されている所定
のシステムプログラムとワーキングデータとを用いて所
定の通常の演算処理(通常処理)を行うことができるよ
うに構成されている。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a schematic configuration diagram of a reset device according to an embodiment.
Like the PU, the system is configured to be able to perform predetermined normal arithmetic processing (normal processing) using a predetermined system program and working data stored in a memory (not shown).

【0011】モード設定スイッチ2は、CPU1の演算
処理が所定の他の演算処理モードに切替えられたとき
に、それまでの演算処理モードをクリアするためのもの
で、周知のCPU1のモード設定スイッチと同様に構成
されている。
The mode setting switch 2 is used to clear the previous arithmetic processing mode when the arithmetic processing of the CPU 1 is switched to another predetermined arithmetic processing mode. It is configured similarly.

【0012】ウォッチドッグタイマ3は、周知のCPU
に設けられているウォッチドッグタイマと同様に構成さ
れていて、CPU1が所定の演算処理を開始したときに
起動され、その所定の演算処理がウォッチドッグタイマ
3に設定されている時間内に終了したときにリセットさ
れてタイムアップ信号を出力することはないが、その所
定の演算処理がウォッチドッグタイマ3に設定されてい
る時間内に終了しないときは、タイムアップによりCP
U1に対してリセット信号を出力できるように構成され
ている。
The watchdog timer 3 is a well-known CPU
And is started when the CPU 1 starts a predetermined calculation process, and the predetermined calculation process is completed within the time set in the watchdog timer 3. Is not reset and a time-up signal is not output, but if the predetermined arithmetic processing is not completed within the time set in the watchdog timer 3, the time-up signal is output.
It is configured to output a reset signal to U1.

【0013】システムリセットスイッチ4は、CPU1
の筐体カバー(図示せず)が開けられたときのように、
CPU1が処理動作をそのまま続行することができなく
なり、CPU1を保護する必要が生じたときに自動的に
操作されるもので、このシステムリセットスイッチがO
Nされると、CPU1はリセットされるとともに、ウォ
ッチドッグタイマ3もリセットされるように構成されて
いる。
The system reset switch 4 is connected to the CPU 1
As if the case cover (not shown) was opened,
When the CPU 1 cannot continue the processing operation as it is and needs to protect the CPU 1 automatically, it is automatically operated.
When N is set, the CPU 1 is reset and the watchdog timer 3 is also reset.

【0014】なお、従来のシステムリセットスイッチ4
には、図1に鎖線で示されるように、オペレータによっ
て操作されるリセットスイッチが並列的に設けられてい
たが、本発明では、このリセットスイッチは省略されて
いる。
The conventional system reset switch 4
In FIG. 1, a reset switch operated by an operator is provided in parallel as shown by a chain line in FIG. 1, but this reset switch is omitted in the present invention.

【0015】図2のフローチャートを用いて、本発明の
リセット制御動作について説明する。CPU1は、I/
Oユニット5を介して所定のコマンド(命令)により所
定の処理動作を実行しているものとする。
The reset control operation of the present invention will be described with reference to the flowchart of FIG. CPU 1 has I /
It is assumed that a predetermined processing operation is executed by a predetermined command (instruction) via the O unit 5.

【0016】CPU1は、コマンドのデータを受信する
毎に(ステップ100。以下、ステップを「S」とす
る。)、そのデータ中にCPU1をリセットする信号が
含まれているか否かの判定を行う(S102)。
Each time the CPU 1 receives command data (Step 100, hereinafter, the step is referred to as "S"), it determines whether or not the data includes a signal for resetting the CPU 1. (S102).

【0017】そのコマンドがCPU1のリセットに係る
ものでないとき(S102否定)、CPU1は、受信し
たコマンドに基づいて所定の通常処理の実行が継続され
る(S104、S106、S100…)。しかし、その
コマンドがCPU1をリセットすることを要求している
とき(S102肯定)、CPU1は、演算処理が終了す
ることのない無限ループ処理を実行するように制御され
る(S107)。この無限ループ処理としては、「LA
BEL:NOP→JP LABEL」のような、周知の
無限ループプログラムを用いることができる。
When the command does not relate to the reset of the CPU 1 (No at S102), the CPU 1 continues to execute a predetermined normal process based on the received command (S104, S106, S100...). However, when the command requests that the CPU 1 be reset (Yes at S102), the CPU 1 is controlled so as to execute an infinite loop processing without terminating the arithmetic processing (S107). As this infinite loop processing, "LA
A well-known infinite loop program such as “BEL: NOP → JP LABEL” can be used.

【0018】CPU1が無限ループ処理を実行すると、
ウォッチドッグタイマ3は、設定された所定時間内にリ
セットされることがないのでタイムアップとなり、その
タイムアップ出力によりCPU1はリセットされる。
When the CPU 1 executes the infinite loop processing,
Since the watchdog timer 3 is not reset within the set predetermined time, the time is up, and the CPU 1 is reset by the time-up output.

【0019】このように、コマンド中にCPU1のリセ
ット要求信号を含めてCPU1をリセットできるように
すると、オペレータによって操作されるリセットスイッ
チを省略できるだけでなく、遠隔的にCPU1をリセッ
トすることが可能となる。
As described above, if the CPU 1 can be reset by including the reset request signal of the CPU 1 in the command, not only the reset switch operated by the operator can be omitted, but also the CPU 1 can be reset remotely. Become.

【0020】図3は、CPU1のリセット制御の他の例
を示すものであって、コマンド中にCPU1のリセット
要求信号が含まれているときは(S202肯定)、CP
U1の図示しないメモリ中に設けられているウォッチド
ッグタイマのリセットを中止させるフラグを立てて(S
206)、ウォッチドッグタイマ3をタイムアップさせ
るようにしている。すなわち、タイマリセット停止フラ
グがセットされると、ウォッチドッグタイマ3がタイム
アップし、CPU1はリセットされる(S208肯
定)。
FIG. 3 shows another example of the reset control of the CPU 1. When the command includes the reset request signal of the CPU 1 (Yes at S202), the reset control is executed.
A flag for stopping the reset of the watchdog timer provided in the memory (not shown) of U1 is set (S1).
206), the time of the watchdog timer 3 is increased. That is, when the timer reset stop flag is set, the watchdog timer 3 times out, and the CPU 1 is reset (Yes at S208).

【0021】図4は、CPU1がメモリチェックやハー
ドウェアチェック等のテスト処理モードのときに(S3
00)、そのテストが終了したときは(S302肯
定)、上記図2又は図3のリセット処理ができるように
している。
FIG. 4 shows a case where the CPU 1 is in a test processing mode such as a memory check or a hardware check (S3).
00), when the test is completed (Yes at S302), the reset processing of FIG. 2 or FIG. 3 can be performed.

【0022】図5は、CPU1の処理モードが所定の処
理モードに設定されたときに、リセットできるようにし
たものである。すなわち、その所定の処理モードが設定
されたことを設定スイッチ信号から読取られると(S4
02肯定)、上記図2又は図3のリセット処理によりC
PU1がリセットされるように構成されている。
FIG. 5 shows a configuration in which the processing can be reset when the processing mode of the CPU 1 is set to a predetermined processing mode. That is, when the setting of the predetermined processing mode is read from the setting switch signal (S4).
02 affirmative), the reset processing of FIG. 2 or FIG.
PU1 is configured to be reset.

【0023】上記図4又は図5に示されるように、テス
トモードの終了、あるいは所定の動作処理モードの選択
のように、CPU1がリセットを必要とするときにウォ
ッチドッグタイマ3をタイムアップできるようにする
と、CPU1を自動的にリセット処理することができ
る。
As shown in FIG. 4 or FIG. 5, the watchdog timer 3 can be timed up when the CPU 1 needs to be reset, such as when the test mode ends or when a predetermined operation processing mode is selected. Then, the CPU 1 can be automatically reset.

【0024】[0024]

【発明の効果】本発明に係るリセット装置は、CPUに
入力されたデータ中からリセット要求信号を抽出する抽
出手段と、リセット要求信号が抽出されたときに、ウォ
ッチドッグタイマをタイムアップするように制御する制
御手段とからなるので、オペレータによって操作される
リセットスイッチを省略できるだけでなく、CPUを遠
隔的にリセットすることが可能となる。
According to the present invention, there is provided a reset device for extracting a reset request signal from data input to a CPU, and for increasing the time of a watchdog timer when the reset request signal is extracted. Since the control means controls the CPU, not only the reset switch operated by the operator can be omitted, but also the CPU can be remotely reset.

【0025】本発明に係るリセット装置は、CPUのテ
ストモードの終了、あるいは所定の動作処理モード選択
時等のそのCPUがリセットを必要とする状態を抽出す
る抽出手段と、リセットを必要とする状態が抽出された
ときに、ウォッチドッグタイマをタイムアップするよう
に制御する制御手段とからなるので、CPUを自動的に
リセットすることができる。
The reset device according to the present invention comprises: an extracting means for extracting a state in which the CPU needs to be reset, such as when the test mode of the CPU is completed or a predetermined operation processing mode is selected; Is extracted, the control means controls the watchdog timer to time up, so that the CPU can be automatically reset.

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

【図1】本発明の一実施の形態に係るリセット装置の概
略構成図である。
FIG. 1 is a schematic configuration diagram of a reset device according to an embodiment of the present invention.

【図2】リセット制御動作の一例である。FIG. 2 is an example of a reset control operation.

【図3】リセット制御動作の一例である。FIG. 3 is an example of a reset control operation.

【図4】リセット制御動作の一例である。FIG. 4 is an example of a reset control operation.

【図5】リセット制御動作の一例である。FIG. 5 is an example of a reset control operation.

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

1 コンピュータ(CPU) 2 モード設定スイッチ 3 ウォッチドッグタイマ 4 システムリセットスイッチ 5 I/Oユニット DESCRIPTION OF SYMBOLS 1 Computer (CPU) 2 Mode setting switch 3 Watchdog timer 4 System reset switch 5 I / O unit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 ウォッチドッグタイマのタイムアップ信
号によりリセットされる機能を備えたコンピュータのリ
セット装置であって、 前記コンピュータに入力されたデータ中からリセット要
求信号を抽出する抽出手段と、 リセット要求信号が抽出されたときに、前記ウォッチド
ッグタイマをタイムアップするように制御する制御手段
と、 からなることを特徴とするリセット装置。
1. A reset device for a computer having a function of being reset by a time-up signal of a watchdog timer, comprising: an extracting unit for extracting a reset request signal from data input to the computer; and a reset request signal. Control means for controlling the watchdog timer to time-up when is extracted, the reset device comprising:
【請求項2】 ウォッチドッグタイマのタイムアップ信
号によりリセットされる機能を備えたコンピュータのリ
セット装置であって、 前記コンピュータのテストモードの終了、あるいは所定
の動作処理モード選択時等のそのコンピュータがリセッ
トを必要とする状態を抽出する抽出手段と、 リセットを必要とする状態が抽出されたときに、前記ウ
ォッチドッグタイマをタイムアップするように制御する
制御手段と、 からなることを特徴とするリセット装置。
2. A reset device for a computer having a function of being reset by a time-up signal of a watchdog timer, wherein the computer is reset when a test mode of the computer is terminated or a predetermined operation processing mode is selected. A resetting means for extracting a state requiring a reset, and a control means for controlling a time-out of the watchdog timer when a state requiring a reset is extracted. .
JP9324452A 1997-11-26 1997-11-26 Reset device Pending JPH11161519A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9324452A JPH11161519A (en) 1997-11-26 1997-11-26 Reset device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9324452A JPH11161519A (en) 1997-11-26 1997-11-26 Reset device

Publications (1)

Publication Number Publication Date
JPH11161519A true JPH11161519A (en) 1999-06-18

Family

ID=18165978

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9324452A Pending JPH11161519A (en) 1997-11-26 1997-11-26 Reset device

Country Status (1)

Country Link
JP (1) JPH11161519A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006338605A (en) * 2005-06-06 2006-12-14 Denso Corp Program failure monitoring method and program failure monitoring device
JP2010186220A (en) * 2009-02-10 2010-08-26 Nisca Corp Apparatus and method for monitoring microprocessor
JP2011073503A (en) * 2009-09-29 2011-04-14 Denso Corp Drunk driving preventive system
JP2012069032A (en) * 2010-09-27 2012-04-05 Hitachi Cable Ltd Information processor

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006338605A (en) * 2005-06-06 2006-12-14 Denso Corp Program failure monitoring method and program failure monitoring device
JP2010186220A (en) * 2009-02-10 2010-08-26 Nisca Corp Apparatus and method for monitoring microprocessor
JP2011073503A (en) * 2009-09-29 2011-04-14 Denso Corp Drunk driving preventive system
JP2012069032A (en) * 2010-09-27 2012-04-05 Hitachi Cable Ltd Information processor
US8677185B2 (en) 2010-09-27 2014-03-18 Hitachi Metals, Ltd. Information processing apparatus

Similar Documents

Publication Publication Date Title
KR920004288B1 (en) Method and apparatus in a data processor for selectively disabling a power-down instruction
KR960035262A (en) Method and apparatus for selective control of interrupt wait in data processing system
JPH11161519A (en) Reset device
JP3214469B2 (en) Method and apparatus for controlling writing of flash EEPROM by microcomputer
JPS63191245A (en) Resetting control system for device being in runaway state
JP2814800B2 (en) Microcomputer
JPS61177551A (en) Start-up control system of processor
JP2870083B2 (en) Microcomputer with built-in watchdog timer
KR200298474Y1 (en) Program protection device during flash memory update
JP3473002B2 (en) Data processing device and data processing method
JP2517563B2 (en) Data processing device
JPS595931B2 (en) Address stop method for arithmetic processing system
KR100200528B1 (en) Auto shut-down method of personal computer
JP3341165B2 (en) Programmable controller
JPH0612321A (en) On-board rewriting circuit for rewritable memory
JP2716274B2 (en) In-circuit emulator
JPH05282167A (en) Method for processing fault
JPS62211737A (en) Error recovery system
JPS63126007A (en) Programmable controller
JPH09190360A (en) Microcomputer and its ranaway monitoring processing method
JPH06113369A (en) Transmission terminal equipment
JPS6259818B2 (en)
JPS6055456A (en) Memory protecting circuit
JPH04306701A (en) Process controller
JPH0251748A (en) Microcomputer

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040702

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040727

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20041130