JPH05181709A - Watchdog timer for intermittent operation - Google Patents

Watchdog timer for intermittent operation

Info

Publication number
JPH05181709A
JPH05181709A JP3165317A JP16531791A JPH05181709A JP H05181709 A JPH05181709 A JP H05181709A JP 3165317 A JP3165317 A JP 3165317A JP 16531791 A JP16531791 A JP 16531791A JP H05181709 A JPH05181709 A JP H05181709A
Authority
JP
Japan
Prior art keywords
constant
counter
cpu
pulse
value
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
JP3165317A
Other languages
Japanese (ja)
Inventor
Kazuo Kawabata
和生 川端
Takaharu Nakamura
隆治 中村
Kazuchika Obuchi
一央 大渕
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP3165317A priority Critical patent/JPH05181709A/en
Publication of JPH05181709A publication Critical patent/JPH05181709A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To provide a watchdog timer for monitoring the operation of a CPU executing intermittent operation. CONSTITUTION:The watchdog timer for counting up pulses generated from a pulse generating means 1 at a fixed period by a counter 2, resetting the counted value by a reset signal outputted from a CPU, comparing the counted value of the counter 2 with a constant value generated from a constant generating means 4 by a comparing means 3, and when the counted value exceeds the constant value, outputting an abnormality detecting signal indicating the abnormality of the CPU is provided with any one among a pulse control means 5 for changing the pulse period of pulses generated from the means 1, a constant control means 6 for changing a constant value generated from the means 4, a reset control means for controlling the supply of a reset signal to the counter 2, an output control means for controlling the output of an abnormality detecting signal from the means 3, and a loading value control means for loading an initial value at the time of resetting the counter 2.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、中央処理装置(CP
U)の動作を監視するウォッチドッグタイマに関し、特
に間欠動作を行なうCPUの動作の監視を行なうウォッ
チドッグタイマに関するものである。
BACKGROUND OF THE INVENTION The present invention relates to a central processing unit (CP
The present invention relates to a watchdog timer for monitoring the operation U), and more particularly to a watchdog timer for monitoring the operation of the CPU which performs intermittent operation.

【0002】ウォッチドッグタイマは、CPUから一定
周期でリセット信号(パルス)の供給を受けることによ
って、一定時間以上リセット信号が入力されないとき、
そのCPUが異常であることを判定する装置(回路)で
あって、CPUの動作の正常性を監視する目的のため
に、従来から各種の機器において使用されている。
The watchdog timer is supplied with a reset signal (pulse) from the CPU at a constant cycle, and when the reset signal is not input for a predetermined time,
It is a device (circuit) for determining that the CPU is abnormal, and has been conventionally used in various devices for the purpose of monitoring the normality of the operation of the CPU.

【0003】一方、CPUを使用する装置のうち、携帯
電話等のように電池を電源とする機器では、低消費電力
化のために、間欠的な電源供給が行なわれることが多
く、CPUが間欠的に動作する。
On the other hand, among devices using a CPU, in a device using a battery as a power source such as a mobile phone, intermittent power supply is often performed to reduce power consumption, and the CPU is intermittently supplied. Works properly.

【0004】そこで、間欠動作を行なうCPUの動作の
監視を行なうことができるウォッチドッグタイマが要望
される。
Therefore, there is a demand for a watchdog timer capable of monitoring the operation of the CPU which operates intermittently.

【0005】[0005]

【従来の技術】図15は、従来のウォッチドッグタイマ
の構成を示したものであって、パルス発生器11,カウ
ンタ12,比較器13、定数発生器14からなってい
る。パルス発生器11は一定周期のパルスを発生し、カ
ウンタ12はこのパルスによってカウントアップすると
ともに、図示されないCPUからのリセット信号によっ
て、カウント値を0にリセットされる。比較器13はカ
ウンタ12のカウント値と、定数発生器14から発生す
る定数とを比較して、カウント値が定数より大きくなっ
たとき、異常検出を判定する信号を出力する。
2. Description of the Related Art FIG. 15 shows the structure of a conventional watchdog timer, which comprises a pulse generator 11, a counter 12, a comparator 13, and a constant generator 14. The pulse generator 11 generates a pulse of a constant cycle, the counter 12 counts up with this pulse, and the count value is reset to 0 by a reset signal from a CPU (not shown). The comparator 13 compares the count value of the counter 12 with the constant generated by the constant generator 14, and when the count value is larger than the constant, outputs a signal for determining abnormality detection.

【0006】[0006]

【発明が解決しようとする課題】従来のウォッチドッグ
タイマは、被監視CPUが常時動作していて、一定時間
以内にリセット信号を発生するという前提のもとに構成
されていて、CPUの間欠動作時においても常時動作し
ている。
The conventional watchdog timer is constructed on the assumption that the monitored CPU is constantly operating and generates a reset signal within a fixed time, and the CPU intermittently operates. It is always operating, even at times.

【0007】しかしながら、携帯電話等のように低消費
電力化のために間欠動作を行なう機器の場合、休止期間
中にはCPUからリセット信号が供給されないため、C
PUは正常に動作しているにもかかわらず、ウォッチド
ッグタイマがCPUの異常を判定する。そのため従来の
ウォッチドッグタイマは、間欠動作を行なう機器におい
ては、使用することができないという問題があった。
However, in the case of a device such as a mobile phone which performs an intermittent operation to reduce power consumption, the reset signal is not supplied from the CPU during the idle period, so that the C
Although the PU is operating normally, the watchdog timer determines that the CPU is abnormal. Therefore, the conventional watchdog timer has a problem that it cannot be used in a device that performs an intermittent operation.

【0008】本発明は、このような従来技術の課題を解
決しようとするものであって、間欠動作を行なう機器に
おいても、正常に動作してCPUの異常監視を行なうこ
とができる、ウォッチドッグタイマを提供することを目
的としている。
The present invention is intended to solve such a problem of the prior art, and a watchdog timer capable of operating normally and performing CPU abnormality monitoring even in an apparatus which performs intermittent operation. Is intended to provide.

【0009】[0009]

【課題を解決するための手段】本発明は、カウンタにお
いてパルス発生手段からの一定周期のパルスをカウント
アップしてCPUからのリセット信号によってリセット
するとともに、比較手段においてカウンタのカウント値
と定数発生手段からの定数値とを比較してカウント値が
定数値を超えたとき、CPUの異常を示す異常検出信号
を出力するウォッチドッグタイマにおいて、パルス発生
手段からのパルス周期を変更するかまたはパルスを断に
するパルス制御手段を設け、CPUの間欠動作時、カウ
ンタの異常検出信号発生にいたるカウントアップ時間を
長くするかまたはカウントを停止するようにしたことを
特徴とするものである。
According to the present invention, a counter counts up a pulse having a constant period from a pulse generating means and resets it by a reset signal from a CPU, and a comparing means counts a counter value and a constant generating means. When the count value exceeds the constant value by comparing with the constant value from, the watchdog timer that outputs the abnormality detection signal indicating the abnormality of the CPU changes the pulse period from the pulse generation means or disconnects the pulse. Is provided to increase the count-up time until the abnormality detection signal of the counter is generated or stop the count during the intermittent operation of the CPU.

【0010】また本発明は、カウンタにおいてパルス発
生手段からの一定周期のパルスをカウントアップしてC
PUからのリセット信号によってリセットするととも
に、比較手段においてカウンタのカウント値と定数発生
手段からの定数値とを比較してカウント値が定数値を超
えたとき、CPUの異常を示す異常検出信号を出力する
ウォッチドッグタイマにおいて、定数発生手段における
定数値を変更する定数制御手段を設け、CPUの間欠動
作時、カウンタの異常検出信号発生にいたるカウントア
ップ時間を長くするようにしたことを特徴とするもので
ある。
Further, according to the present invention, in the counter, the pulse of the constant period from the pulse generating means is counted up to C
The reset signal from the PU is used for resetting, and the comparing means compares the count value of the counter with the constant value from the constant generating means. When the count value exceeds the constant value, an abnormality detection signal indicating an abnormality of the CPU is output. In the watchdog timer, the constant control means for changing the constant value in the constant generation means is provided, and the count-up time for generating the abnormality detection signal of the counter is lengthened during the intermittent operation of the CPU. Is.

【0011】また本発明は、カウンタにおいてパルス発
生手段からの一定周期のパルスをカウントアップしてC
PUからのリセット信号によってリセットするととも
に、比較手段においてカウンタのカウント値と定数発生
手段からの定数値とを比較してカウント値が定数値を超
えたとき、CPUの異常を示す異常検出信号を出力する
ウォッチドッグタイマにおいて、カウンタに対するリセ
ット信号の供給を制御するリセット制御手段を設け、C
PUの間欠動作時、カウンタに対するリセット信号の供
給を継続するようにしたことを特徴とするものである。
Further, according to the present invention, in the counter, the pulse of the constant period from the pulse generating means is counted up to C
The reset signal from the PU is used for resetting, and the comparing means compares the count value of the counter with the constant value from the constant generating means. When the count value exceeds the constant value, an abnormality detection signal indicating an abnormality of the CPU is output. In the watchdog timer, the reset control means for controlling the supply of the reset signal to the counter is provided.
It is characterized in that the supply of the reset signal to the counter is continued during the intermittent operation of the PU.

【0012】また本発明は、カウンタにおいてパルス発
生手段からの一定周期のパルスをカウントアップしてC
PUからのリセット信号によってリセットするととも
に、比較手段においてカウンタのカウント値と定数発生
手段からの定数値とを比較してカウント値が定数値を超
えたとき、CPUの異常を示す異常検出信号を出力する
ウォッチドッグタイマにおいて、比較手段からの異常検
出信号の出力を制御する出力制御手段を設け、CPUの
間欠制御時、異常検出信号の出力を断にするようにした
ことを特徴とするものである。
Further, according to the present invention, in the counter, the pulse of the constant period from the pulse generating means is counted up and C is counted.
The reset signal from the PU resets the counter, and the comparing means compares the count value of the counter with the constant value from the constant generating means. When the count value exceeds the constant value, an abnormality detection signal indicating an abnormality of the CPU is output. In the watchdog timer, the output control means for controlling the output of the abnormality detection signal from the comparison means is provided, and the output of the abnormality detection signal is cut off during the intermittent control of the CPU. ..

【0013】また本発明は、カウンタにおいてパルス発
生手段からの一定周期のパルスをカウントアップしてC
PUからのリセット信号によってリセットするととも
に、比較手段においてカウンタのカウント値と定数発生
手段からの定数値とを比較してカウント値が定数値を超
えたとき、CPUの異常を示す異常検出信号を出力する
ウォッチドッグタイマにおいて、カウンタのリセット時
初期値をロードするロード値制御手段を設け、CPUの
間欠動作時、カウンタの異常検出信号発生にいたるカウ
ントアップ時間を長くするようにしたことを特徴とする
ものである。
Further, according to the present invention, in the counter, the pulse of the constant period from the pulse generating means is counted up to C
The reset signal from the PU is used for resetting, and the comparing means compares the count value of the counter with the constant value from the constant generating means. When the count value exceeds the constant value, an abnormality detection signal indicating an abnormality of the CPU is output. In the watchdog timer, the load value control means for loading the initial value at the time of resetting the counter is provided, and the count-up time for generating the abnormality detection signal of the counter is lengthened during the intermittent operation of the CPU. It is a thing.

【0014】[0014]

【作用】図1は、本発明の原理的構成を示したものであ
って、パルス発生器を制御することによってカウンタの
カウントアップ時間を制御する場合を示している。1は
パルス発生手段、2はカウンタ、3は比較手段、4は定
数発生手段、5はパルス制御手段である。
FIG. 1 shows the principle configuration of the present invention, and shows the case where the count-up time of the counter is controlled by controlling the pulse generator. Reference numeral 1 is a pulse generation means, 2 is a counter, 3 is a comparison means, 4 is a constant generation means, and 5 is a pulse control means.

【0015】パルス発生手段1は一定周期のパルスを発
生し、カウンタ2においてこのパルスをカウントする。
比較手段3はカウンタ2のカウント値と、定数発生手段
4から発生する定数値とを比較して、カウント値が定数
値を超えたとき、異常を判定する異常検出信号を出力す
る。図示されない被監視CPUが正常なときは、カウン
タ2のカウント値が定数値を超える以前にカウンタ2に
対してリセット信号を与えるので、比較手段3から異常
検出信号は出力されない。CPUが間欠動作を行なう場
合には、パルス制御手段5はパルス発生手段1を制御し
て、CPUから次にリセット信号が供給される以前に、
カウンタ2のカウント値が定数値を超えることがないよ
うにする。従って、図1の原理的構成の場合、CPUが
間欠動作を行なっても、ウォッチドッグタイマが異常検
出を行なうことはない。
The pulse generating means 1 generates a pulse having a constant cycle, and the counter 2 counts this pulse.
The comparing means 3 compares the count value of the counter 2 with the constant value generated from the constant generating means 4, and when the count value exceeds the constant value, outputs an abnormality detection signal for determining abnormality. When the monitored CPU (not shown) is normal, the reset signal is given to the counter 2 before the count value of the counter 2 exceeds the constant value, so that the comparing unit 3 does not output the abnormality detection signal. When the CPU performs the intermittent operation, the pulse control means 5 controls the pulse generation means 1 before the next reset signal is supplied from the CPU.
Make sure that the count value of the counter 2 does not exceed a constant value. Therefore, in the case of the principle configuration of FIG. 1, even if the CPU performs the intermittent operation, the watchdog timer does not detect the abnormality.

【0016】図2は、本発明の他の原理的構成を示した
ものであって、カウンタのカウント値と比較する定数を
制御することによって、カウンタのカウントアップ時間
を制御する場合を示している。図1におけると同じもの
を同じ番号で示し、6は定数制御手段である。
FIG. 2 shows another principle structure of the present invention, showing a case where the count-up time of the counter is controlled by controlling a constant to be compared with the count value of the counter. .. The same parts as those in FIG. 1 are indicated by the same numbers, and 6 is a constant control means.

【0017】CPUが間欠動作を行なう場合には、定数
制御手段6は定数発生手段4から発生する定数値を変更
して、CPUから次にリセット信号が供給される以前
に、カウンタ2のカウント値が定数値を超えることがな
いようにする。従って、図2の原理的構成の場合、CP
Uが間欠動作を行なっても、ウォッチドッグタイマが異
常検出を行なうことはない。
When the CPU performs the intermittent operation, the constant control means 6 changes the constant value generated from the constant generation means 4 and the count value of the counter 2 before the reset signal is next supplied from the CPU. Does not exceed a constant value. Therefore, in the case of the principle configuration of FIG.
Even if U performs the intermittent operation, the watchdog timer does not detect the abnormality.

【0018】図3は、本発明のさらに他の原理的構成を
示したものであって、カウンタに対するリセット信号の
供給を継続することによって、間欠動作時のカウンタか
らの異常検出信号の発生を抑制する場合を示している。
図1におけると同じものを同じ番号で示し、7はリセッ
ト制御手段である。
FIG. 3 shows still another principle structure of the present invention. By continuing the supply of the reset signal to the counter, the occurrence of an abnormality detection signal from the counter during intermittent operation is suppressed. The case is shown.
The same parts as those in FIG. 1 are indicated by the same numbers, and 7 is a reset control means.

【0019】CPUが間欠動作を行なう場合には、リセ
ット制御手段7はCPUのリセット信号と異なる別のリ
セット信号を発生してカウンタ2に供給することによっ
て、リセット信号が供給される以前に、カウンタ2のカ
ウント値が定数値を超えることがないようにする。従っ
て、図3の原理的構成の場合、CPUが間欠動作を行な
っても、ウォッチドッグタイマが異常検出を行なうこと
はない。
When the CPU performs the intermittent operation, the reset control means 7 generates another reset signal different from the reset signal of the CPU and supplies it to the counter 2, so that the counter is supplied before the reset signal is supplied. Make sure that the count value of 2 does not exceed the constant value. Therefore, in the case of the principle configuration of FIG. 3, even if the CPU performs the intermittent operation, the watchdog timer does not detect the abnormality.

【0020】図4は、本発明のさらに他の原理的構成を
示したものであって、比較器の出力を制御することによ
って、間欠動作時の異常検出信号の発生を抑制する場合
を示している。図1におけると同じものを同じ番号で示
し、8は出力制御手段である。
FIG. 4 shows still another principle structure of the present invention, showing a case where the output of the comparator is controlled to suppress the generation of the abnormality detection signal during the intermittent operation. There is. The same parts as those in FIG. 1 are shown by the same numbers, and 8 is an output control means.

【0021】CPUが間欠動作を行なう場合には、出力
制御手段7は比較手段3の異常検出信号が出力されない
ようにする。従って、図4の原理的構成の場合、CPU
が間欠動作を行なっても、ウォッチドッグタイマが異常
検出を行なうことはない。
When the CPU performs the intermittent operation, the output control means 7 prevents the abnormality detection signal of the comparison means 3 from being output. Therefore, in the case of the principle configuration of FIG.
The watchdog timer does not detect any abnormalities even if the intermittent operation is performed.

【0022】図5は、本発明のさらに他の原理的構成を
示したものであって、カウンタにロード(初期設定)す
る値を制御することによって、カウンタのカウントアッ
プ時間を制御する場合を示している。図1におけると同
じものを同じ番号で示し、9はロード値制御手段であ
る。
FIG. 5 shows still another principle configuration of the present invention, showing a case where the count-up time of the counter is controlled by controlling the value to be loaded (initialized) in the counter. ing. The same parts as those in FIG. 1 are indicated by the same numbers, and 9 is a load value control means.

【0023】カウンタ2は、CPUからのリセット信号
によってリセットされたときある定数値をロードされ
る。CPUが間欠動作を行なう場合には、ロード値制御
手段9はカウンタ2に初期値としてロードする定数値を
別の定数値とするように制御することによって、CPU
からリセット信号が供給される以前に、カウンタ2のカ
ウント値が定数値を超えることがないようにする。従っ
て、図5の原理的構成の場合、CPUが間欠動作を行な
っても、ウォッチドッグタイマが異常検出を行なうこと
はない。
The counter 2 is loaded with a constant value when reset by a reset signal from the CPU. When the CPU performs the intermittent operation, the load value control means 9 controls the constant value to be loaded into the counter 2 as the initial value to be a different constant value, and thus the CPU
Before the reset signal is supplied from, the count value of the counter 2 is prevented from exceeding a constant value. Therefore, in the case of the principle configuration of FIG. 5, even if the CPU performs the intermittent operation, the watchdog timer does not detect the abnormality.

【0024】[0024]

【実施例】図6は、本発明の一実施例の構成を示したも
のであって、図1に示された原理的構成に対応してい
る。図15におけると同じものを同じ番号で示し、15
はスイッチである。
FIG. 6 shows the structure of an embodiment of the present invention, which corresponds to the principle structure shown in FIG. 15 which are the same as those in FIG.
Is a switch.

【0025】図6に示された実施例においては、CPU
の間欠動作に対応して与えられる間欠制御信号がCPU
の動作を示すオンのとき、パルス発生器11の出力をオ
ンにして、カウンタのカウントアップ動作を行なうよう
にするが、間欠制御信号がCPUの停止を示すオフのと
きは、パルス発生器11の出力をオフにして、カウンタ
のカウントアップ動作を停止する。従って図6に示され
た実施例によれば、CPUが間欠動作を行なっても、ウ
ォッチドッグタイマが異常検出を行なうことはない。
In the embodiment shown in FIG. 6, the CPU
The intermittent control signal given in response to the intermittent operation is the CPU
The output of the pulse generator 11 is turned on to perform the count-up operation of the counter at the time of ON indicating the operation of the pulse generator 11. However, when the intermittent control signal is OFF indicating that the CPU is stopped, the pulse generator 11 is turned off. The output is turned off and the count-up operation of the counter is stopped. Therefore, according to the embodiment shown in FIG. 6, even if the CPU performs the intermittent operation, the watchdog timer does not detect the abnormality.

【0026】図7は、本発明の他の実施例の構成を示し
たものであって、図1に示された原理的構成に対応して
いる。図6におけると同じものを同じ番号で示し、16
は分周器である。
FIG. 7 shows the configuration of another embodiment of the present invention, which corresponds to the principle configuration shown in FIG. The same parts as those in FIG.
Is a frequency divider.

【0027】図7に示された実施例においては、スイッ
チ15を間欠制御信号に応じて制御することによって、
間欠制御信号がオンのときは、パルス発生器11の出力
を直接カウンタに接続するが、間欠制御信号がオフのと
きは、パルス発生器11の出力を分周器16を経てカウ
ンタに与えることによって、間欠動作時のカウンタの異
常検出信号発生にいたるカウントアップ時間を長くす
る。従って図7に示された実施例によれば、CPUが間
欠動作を行なっても、ウォッチドッグタイマが異常検出
を行なうことはない。
In the embodiment shown in FIG. 7, by controlling the switch 15 according to the intermittent control signal,
When the intermittent control signal is on, the output of the pulse generator 11 is directly connected to the counter, but when the intermittent control signal is off, the output of the pulse generator 11 is applied to the counter via the frequency divider 16. , Increase the count-up time for generating the abnormality detection signal of the counter during intermittent operation. Therefore, according to the embodiment shown in FIG. 7, even if the CPU performs the intermittent operation, the watchdog timer does not detect the abnormality.

【0028】図8は、本発明のさらに他の実施例の構成
を示したものであって、図1に示された原理的構成に対
応している。図6におけると同じものを同じ番号で示
し、17は可変分周器である。
FIG. 8 shows the configuration of still another embodiment of the present invention, which corresponds to the principle configuration shown in FIG. The same components as those in FIG. 6 are designated by the same reference numerals, and 17 is a variable frequency divider.

【0029】図8に示された実施例においては、パルス
発生器11の出力を可変分周器17を経てカウンタに供
給するようにし、可変分周器17の分周比を間欠制御信
号に応じて制御することによって、間欠制御信号がオン
のときは、可変分周器17の分周比を間欠動作を行なわ
ないときのパルス間隔になる値にしてその出力をカウン
タに接続する。一方、間欠制御信号がオフのときは、可
変分周器17の分周比を大きくしてその出力をカウンタ
に接続することによって、間欠動作時のカウンタの異常
検出信号発生にいたるカウントアップ時間を長くする。
従って図8に示された実施例によれば、CPUが間欠動
作を行なっても、ウォッチドッグタイマが異常検出を行
なうことはない。
In the embodiment shown in FIG. 8, the output of the pulse generator 11 is supplied to the counter via the variable frequency divider 17, and the frequency division ratio of the variable frequency divider 17 is set according to the intermittent control signal. When the intermittent control signal is ON, the frequency division ratio of the variable frequency divider 17 is set to a pulse interval value when the intermittent operation is not performed, and the output is connected to the counter. On the other hand, when the intermittent control signal is off, the frequency division ratio of the variable frequency divider 17 is increased and the output thereof is connected to the counter, thereby increasing the count-up time for generating the abnormality detection signal of the counter during the intermittent operation. Lengthen.
Therefore, according to the embodiment shown in FIG. 8, even if the CPU performs the intermittent operation, the watchdog timer does not detect the abnormality.

【0030】図9は、本発明のさらに他の実施例の構成
を示したものであって、図2に示された原理的構成に対
応している。図15におけると同じものを同じ番号で示
し、18は定数発生器である。
FIG. 9 shows a structure of still another embodiment of the present invention, and corresponds to the principle structure shown in FIG. The same parts as those in FIG. 15 are designated by the same reference numerals, and 18 is a constant generator.

【0031】図9に示された実施例においては、間欠制
御信号に応じてスイッチ15を切り替えることによっ
て、間欠制御信号がオンのときは、間欠動作を行なわな
いときの定数(定数1)を有する定数発生器14の出力
を比較器13に入力する。一方、間欠制御信号がオフの
ときは、別の定数(定数2)を有する定数発生器18の
出力を比較器13に入力する。この際、定数1≪定数2
とすることによって、間欠動作時のカウンタの異常検出
信号発生にいたるカウントアップ時間を長くする。従っ
て図9に示された実施例によれば、CPUが間欠動作を
行なっても、ウォッチドッグタイマが異常検出を行なう
ことはない。
In the embodiment shown in FIG. 9, by switching the switch 15 in response to the intermittent control signal, when the intermittent control signal is on, there is a constant (constant 1) for not performing the intermittent operation. The output of the constant generator 14 is input to the comparator 13. On the other hand, when the intermittent control signal is off, the output of the constant generator 18 having another constant (constant 2) is input to the comparator 13. At this time, constant 1 << constant 2
By doing so, the count-up time for generating the abnormality detection signal of the counter during the intermittent operation is lengthened. Therefore, according to the embodiment shown in FIG. 9, even if the CPU performs the intermittent operation, the watchdog timer does not detect the abnormality.

【0032】図10は、本発明のさらに他の実施例の構
成を示したものであって、図2に示された原理的構成に
対応している。図9におけると同じものを同じ番号で示
し、19は定数レジスタである。
FIG. 10 shows the structure of still another embodiment of the present invention, and corresponds to the principle structure shown in FIG. The same parts as those in FIG. 9 are indicated by the same numbers, and 19 is a constant register.

【0033】図10に示された実施例においては、間欠
動作から通常動作に戻る直前に、CPUから間欠動作を
行なわないときの定数(定数1)を定数レジスタ19に
設定する。一方、通常動作から間欠動作に入る直前に、
別の定数(定数2)を定数レジスタ19に設定する。こ
の際、定数1≪定数2とすることによって、間欠動作時
のカウンタの異常検出信号発生にいたるカウントアップ
時間を長くする。従って図10に示された実施例によれ
ば、CPUが間欠動作を行なっても、ウォッチドッグタ
イマが異常検出を行なうことはない。
In the embodiment shown in FIG. 10, a constant (constant 1) when the intermittent operation is not performed by the CPU is set in the constant register 19 immediately before returning from the intermittent operation to the normal operation. On the other hand, immediately before entering the intermittent operation from the normal operation,
Another constant (constant 2) is set in the constant register 19. At this time, by setting the constant 1 << constant 2, the count-up time for generating the abnormality detection signal of the counter during the intermittent operation is lengthened. Therefore, according to the embodiment shown in FIG. 10, even if the CPU performs the intermittent operation, the watchdog timer does not detect the abnormality.

【0034】図11は、本発明のさらに他の実施例の構
成を示したものであって、図3に示された原理的構成に
対応している。図15におけると同じものを同じ番号で
示し、20はリセット用パルス発生器である。
FIG. 11 shows the structure of still another embodiment of the present invention, and corresponds to the principle structure shown in FIG. The same components as those in FIG. 15 are designated by the same reference numerals, and 20 is a reset pulse generator.

【0035】図11に示された実施例においては、間欠
動作信号に応じてスイッチ15を切り替えることによっ
て、間欠制御信号がオンのときは、CPUからのリセッ
ト信号をカウンタ12に入力する。一方、間欠制御信号
がオフのときは、別に設けられたリセット用パルス発生
器20からのリセット信号をカウンタ12に入力する。
従って図11に示された実施例によれば、CPUが間欠
動作を行なっても、ウォッチドッグタイマが異常検出を
行なうことはない。
In the embodiment shown in FIG. 11, the switch 15 is switched according to the intermittent operation signal so that the reset signal from the CPU is input to the counter 12 when the intermittent control signal is on. On the other hand, when the intermittent control signal is off, the reset signal from the separately provided reset pulse generator 20 is input to the counter 12.
Therefore, according to the embodiment shown in FIG. 11, even if the CPU performs the intermittent operation, the watchdog timer does not detect the abnormality.

【0036】図12は、本発明のさらに他の実施例の構
成を示したものであって、図3に示された原理的構成に
対応している。図7および図11におけると同じものを
同じ番号で示している。
FIG. 12 shows the structure of still another embodiment of the present invention, which corresponds to the principle structure shown in FIG. The same parts as those in FIGS. 7 and 11 are indicated by the same numbers.

【0037】図12に示された実施例においては、間欠
動作信号に応じてスイッチ15を切り替えることによっ
て、間欠制御信号がオンのときは、CPUからのリセッ
ト信号をカウンタ12に入力する。一方、間欠制御信号
がオフのときは、パルス発生器11からのパルスを分周
器16で分周してリセット信号としてカウンタ12に入
力する。従って図12に示された実施例によれば、CP
Uが間欠動作を行なっても、ウォッチドッグタイマが異
常検出を行なうことはない。
In the embodiment shown in FIG. 12, the switch 15 is switched according to the intermittent operation signal so that the reset signal from the CPU is input to the counter 12 when the intermittent control signal is on. On the other hand, when the intermittent control signal is off, the pulse from the pulse generator 11 is divided by the frequency divider 16 and input to the counter 12 as a reset signal. Therefore, according to the embodiment shown in FIG.
Even if U performs the intermittent operation, the watchdog timer does not detect the abnormality.

【0038】図13は、本発明のさらに他の実施例を示
したものであって、(a)は構成を示すブロック図、
(b)は動作を示すタイムチャートである。図4に示さ
れた原理的構成に対応するものであって、図15におけ
ると同じものを同じ番号で示し、21は出力制御部であ
る。
FIG. 13 shows still another embodiment of the present invention, in which (a) is a block diagram showing the configuration.
(B) is a time chart showing the operation. This corresponds to the principle configuration shown in FIG. 4 and is the same as in FIG. 15 with the same number, and 21 is an output control unit.

【0039】図13に示された実施例においては、間欠
制御信号に応じて出力制御部21がスイッチ15を制御
することによって、間欠制御信号がオンのときは、スイ
ッチ15をオンにして、比較器13からの異常検出信号
を出力するが、間欠制御信号がオフのときは、スイッチ
15をオフにして、比較器13からの異常検出信号を出
力しないようにする。ただし、スイッチ15をオンにす
るときに、異常検出信号を出力する恐れがあるので、ス
イッチ15をオフからオンに切り替える直前に、CPU
からリセット信号を与えて、カウンタ12をリセットす
る。従って図13に示された実施例によれば、CPUが
間欠動作を行なっても、ウォッチドッグタイマが異常検
出を行なうことはない。
In the embodiment shown in FIG. 13, the output control unit 21 controls the switch 15 in response to the intermittent control signal, so that when the intermittent control signal is on, the switch 15 is turned on and comparison is performed. Although the abnormality detection signal from the comparator 13 is output, when the intermittent control signal is off, the switch 15 is turned off so that the abnormality detection signal from the comparator 13 is not output. However, when the switch 15 is turned on, an abnormality detection signal may be output. Therefore, immediately before the switch 15 is switched from off to on, the CPU
A reset signal is applied from the counter 12 to reset the counter 12. Therefore, according to the embodiment shown in FIG. 13, even if the CPU performs the intermittent operation, the watchdog timer does not detect the abnormality.

【0040】図14は、本発明のさらに他の実施例を示
したものであって、(a)は構成を示すブロック図、
(b)は動作を示すタイムチャートである。図5に示さ
れた原理的構成に対応するものであって、図15および
図9におけると同じものを同じ番号で示し、22はロー
ド値制御部である。
FIG. 14 shows still another embodiment of the present invention, in which (a) is a block diagram showing the configuration.
(B) is a time chart showing the operation. 15 corresponds to the principle configuration shown in FIG. 5 and is the same as that in FIG. 15 and FIG.

【0041】図14に示された実施例においては、間欠
制御がCPUの停止を示すオフからCPUの動作を示す
オンに変化したとき、ロード値制御部22はスイッチ1
5を制御して定数発生器14からの間欠動作を行なわな
いときの定数(定数1)をカウンタ12に設定し、間欠
制御がCPUの動作を示すオンからCPUの停止を示す
オフに変化したとき、ロード値制御部22はスイッチ1
5を制御して定数発生器18からの別の定数(定数2)
をカウンタ12に設定する。この際、定数1≪定数2と
することによって、間欠動作時のカウンタの異常検出信
号発生にいたるカウントアップ時間を長くする。従って
図14に示された実施例によれば、CPUが間欠動作を
行なっても、ウォッチドッグタイマが異常検出を行なう
ことはない。
In the embodiment shown in FIG. 14, when the intermittent control changes from OFF indicating the stop of the CPU to ON indicating the operation of the CPU, the load value control unit 22 causes the switch 1 to operate.
5 is controlled to set a constant (constant 1) when the intermittent operation is not performed from the constant generator 14 in the counter 12, and the intermittent control changes from ON indicating the operation of the CPU to OFF indicating the stop of the CPU. , Load value control unit 22 is switch 1
5 to control another constant from the constant generator 18 (constant 2)
Is set in the counter 12. At this time, by setting the constant 1 << constant 2, the count-up time for generating the abnormality detection signal of the counter during the intermittent operation is lengthened. Therefore, according to the embodiment shown in FIG. 14, even if the CPU performs the intermittent operation, the watchdog timer does not detect the abnormality.

【0042】[0042]

【発明の効果】以上説明したように本発明によれば、C
PUの動作を監視するウォッチドッグタイマを、CPU
が間欠動作を行なう場合にも、使用することができるよ
うになる。
As described above, according to the present invention, C
A watchdog timer that monitors the operation of the PU
Can be used even when performing intermittent operation.

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

【図1】本発明の原理的構成を示す図である。FIG. 1 is a diagram showing a principle configuration of the present invention.

【図2】本発明の他の原理的構成を示す図である。FIG. 2 is a diagram showing another principle configuration of the present invention.

【図3】本発明のさらに他の原理的構成を示す図であ
る。
FIG. 3 is a diagram showing still another principle configuration of the present invention.

【図4】本発明のさらに他の原理的構成を示す図であ
る。
FIG. 4 is a diagram showing still another principle configuration of the present invention.

【図5】本発明のさらに他の原理的構成を示す図であ
る。
FIG. 5 is a diagram showing still another principle configuration of the present invention.

【図6】本発明の一実施例の構成を示す図である。FIG. 6 is a diagram showing a configuration of an exemplary embodiment of the present invention.

【図7】本発明の他の実施例の構成を示す図である。FIG. 7 is a diagram showing the configuration of another embodiment of the present invention.

【図8】本発明のさらに他の実施例の構成を示す図であ
る。
FIG. 8 is a diagram showing a configuration of still another embodiment of the present invention.

【図9】本発明のさらに他の実施例の構成を示す図であ
る。
FIG. 9 is a diagram showing the configuration of still another embodiment of the present invention.

【図10】本発明のさらに他の実施例の構成を示す図で
ある。
FIG. 10 is a diagram showing a configuration of still another exemplary embodiment of the present invention.

【図11】本発明のさらに他の実施例の構成を示す図で
ある。
FIG. 11 is a diagram showing the configuration of still another embodiment of the present invention.

【図12】本発明のさらに他の実施例の構成を示す図で
ある。
FIG. 12 is a diagram showing the configuration of still another embodiment of the present invention.

【図13】本発明のさらに他の実施例を示したものであ
って、(a)は構成を示すブロック図、(b)は動作を
示すタイムチャートである。
13A and 13B show still another embodiment of the present invention, wherein FIG. 13A is a block diagram showing a configuration, and FIG. 13B is a time chart showing an operation.

【図14】本発明のさらに他の実施例を示したものであ
って、(a)は構成を示すブロック図、(b)は動作を
示すタイムチャートである。
14A and 14B show still another embodiment of the present invention, wherein FIG. 14A is a block diagram showing a configuration, and FIG. 14B is a time chart showing an operation.

【図15】従来のウォッチドッグタイマの構成を示す図
である。
FIG. 15 is a diagram showing a configuration of a conventional watchdog timer.

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

1 パルス発生手段 2 カウンタ 3 比較手段 4 定数発生手段 5 パルス制御手段 6 定数制御手段 7 リセット制御手段 8 出力制御手段 9 ロード値制御手段 DESCRIPTION OF SYMBOLS 1 pulse generating means 2 counter 3 comparing means 4 constant generating means 5 pulse controlling means 6 constant controlling means 7 reset controlling means 8 output controlling means 9 load value controlling means

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 カウンタ(2)においてパルス発生手段
(1)からの一定周期のパルスをカウントアップしてC
PUからのリセット信号によってリセットするととも
に、比較手段(3)において該カウンタ(2)のカウン
ト値と定数発生手段(4)からの定数値とを比較して該
カウント値が定数値を超えたとき、CPUの異常を示す
異常検出信号を出力するウォッチドッグタイマにおい
て、前記パルス発生手段(1)からのパルス周期を変更
するかまたはパルスを断にするパルス制御手段(5)を
設け、CPUの間欠動作時、前記カウンタ(2)の異常
検出信号発生にいたるカウントアップ時間を長くするか
またはカウントを停止するようにしたことを特徴とする
間欠動作用ウォッチドッグタイマ。
1. A counter (2) counts up a pulse having a constant period from a pulse generating means (1) to obtain C.
When reset by a reset signal from the PU and comparing the count value of the counter (2) with the constant value from the constant generating means (4) in the comparing means (3), the count value exceeds the constant value. In a watchdog timer that outputs an abnormality detection signal indicating an abnormality of the CPU, pulse control means (5) for changing the pulse period from the pulse generating means (1) or for interrupting the pulse is provided, and the CPU is intermittently operated. A watchdog timer for intermittent operation, characterized in that, during operation, a count-up time for generating an abnormality detection signal of the counter (2) is lengthened or stopped.
【請求項2】 カウンタ(2)においてパルス発生手段
(1)からの一定周期のパルスをカウントアップしてC
PUからのリセット信号によってリセットするととも
に、比較手段(3)において該カウンタ(2)のカウン
ト値と定数発生手段(4)からの定数値とを比較して該
カウント値が定数値を超えたとき、CPUの異常を示す
異常検出信号を出力するウォッチドッグタイマにおい
て、前記定数発生手段(4)における定数値を変更する
定数制御手段(6)を設け、CPUの間欠動作時、前記
カウンタ(2)の異常検出信号発生にいたるカウントア
ップ時間を長くするようにしたことを特徴とする間欠動
作用ウォッチドッグタイマ。
2. A counter (2) counts up a pulse having a constant period from the pulse generating means (1) and C
When reset by a reset signal from the PU and comparing the count value of the counter (2) with the constant value from the constant generating means (4) in the comparing means (3), the count value exceeds the constant value. In a watchdog timer that outputs an abnormality detection signal indicating an abnormality of the CPU, a constant control means (6) for changing the constant value in the constant generation means (4) is provided, and the counter (2) is provided during the intermittent operation of the CPU. A watchdog timer for intermittent operation, characterized in that the count-up time up to the generation of the abnormality detection signal of is increased.
【請求項3】 カウンタ(2)においてパルス発生手段
(1)からの一定周期のパルスをカウントアップしてC
PUからのリセット信号によってリセットするととも
に、比較手段(3)において該カウンタ(2)のカウン
ト値と定数発生手段(4)からの定数値とを比較して該
カウント値が定数値を超えたとき、CPUの異常を示す
異常検出信号を出力するウォッチドッグタイマにおい
て、前記カウンタ(2)に対するリセット信号の供給を
制御するリセット制御手段(7)を設け、CPUの間欠
動作時、前記カウンタ(2)に対するリセット信号の供
給を継続するようにしたことを特徴とする間欠動作用ウ
ォッチドッグタイマ。
3. A counter (2) counts up a pulse having a constant period from the pulse generating means (1) to obtain C.
When reset by a reset signal from the PU and comparing the count value of the counter (2) with the constant value from the constant generating means (4) in the comparing means (3), the count value exceeds the constant value. In a watchdog timer that outputs an abnormality detection signal indicating an abnormality of the CPU, reset control means (7) for controlling the supply of the reset signal to the counter (2) is provided, and the counter (2) is provided during the intermittent operation of the CPU. A watchdog timer for intermittent operation, characterized in that the supply of a reset signal to the device is continued.
【請求項4】 カウンタ(2)においてパルス発生手段
(1)からの一定周期のパルスをカウントアップしてC
PUからのリセット信号によってリセットするととも
に、比較手段(3)において該カウンタ(2)のカウン
ト値と定数発生手段(4)からの定数値とを比較して該
カウント値が定数値を超えたとき、CPUの異常を示す
異常検出信号を出力するウォッチドッグタイマにおい
て、前記比較手段(3)からの異常検出信号の出力を制
御する出力制御手段(8)を設け、CPUの間欠制御
時、該異常検出信号の出力を断にするようにしたことを
特徴とする間欠動作用ウォッチドッグタイマ。
4. A counter (2) counts up a pulse having a constant period from the pulse generating means (1) to obtain C.
When reset by a reset signal from the PU and comparing the count value of the counter (2) with the constant value from the constant generating means (4) in the comparing means (3), the count value exceeds the constant value. In a watchdog timer that outputs an abnormality detection signal indicating an abnormality of the CPU, an output control means (8) for controlling the output of the abnormality detection signal from the comparison means (3) is provided, and the abnormality occurs during the intermittent control of the CPU. A watchdog timer for intermittent operation, characterized in that the output of a detection signal is cut off.
【請求項5】 カウンタ(2)においてパルス発生手段
(1)からの一定周期のパルスをカウントアップしてC
PUからのリセット信号によってリセットするととも
に、比較手段(3)において該カウンタ(2)のカウン
ト値と定数発生手段(4)からの定数値とを比較して該
カウント値が定数値を超えたとき、CPUの異常を示す
異常検出信号を出力するウォッチドッグタイマにおい
て、前記カウンタ(2)のリセット時初期値をロードす
るロード値制御手段(9)を設け、CPUの間欠動作
時、該カウンタ(2)の異常検出信号発生にいたるカウ
ントアップ時間を長くするようにしたことを特徴とする
間欠動作用ウォッチドッグタイマ。
5. A counter (2) counts up a pulse having a constant period from the pulse generating means (1) to obtain C.
When reset by a reset signal from the PU and comparing the count value of the counter (2) with the constant value from the constant generating means (4) in the comparing means (3), the count value exceeds the constant value. In a watchdog timer that outputs an abnormality detection signal indicating an abnormality of the CPU, load value control means (9) for loading an initial value at the time of resetting the counter (2) is provided, and the counter (2 ) The watchdog timer for intermittent operation, characterized in that the count-up time leading to the generation of the abnormality detection signal in (1) is increased.
JP3165317A 1991-07-05 1991-07-05 Watchdog timer for intermittent operation Pending JPH05181709A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3165317A JPH05181709A (en) 1991-07-05 1991-07-05 Watchdog timer for intermittent operation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3165317A JPH05181709A (en) 1991-07-05 1991-07-05 Watchdog timer for intermittent operation

Publications (1)

Publication Number Publication Date
JPH05181709A true JPH05181709A (en) 1993-07-23

Family

ID=15810037

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3165317A Pending JPH05181709A (en) 1991-07-05 1991-07-05 Watchdog timer for intermittent operation

Country Status (1)

Country Link
JP (1) JPH05181709A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006318306A (en) * 2005-05-13 2006-11-24 Tokai Rika Co Ltd Watchdog timer
JP2006338605A (en) * 2005-06-06 2006-12-14 Denso Corp Program failure monitoring method and program failure monitoring device
JP2011096087A (en) * 2009-10-30 2011-05-12 Autonetworks Technologies Ltd Processing apparatus and control method
KR101491347B1 (en) * 2013-11-14 2015-02-06 현대오트론 주식회사 Method and apparatus for operating processor and watch dog module

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006318306A (en) * 2005-05-13 2006-11-24 Tokai Rika Co Ltd Watchdog timer
JP2006338605A (en) * 2005-06-06 2006-12-14 Denso Corp Program failure monitoring method and program failure monitoring device
JP2011096087A (en) * 2009-10-30 2011-05-12 Autonetworks Technologies Ltd Processing apparatus and control method
KR101491347B1 (en) * 2013-11-14 2015-02-06 현대오트론 주식회사 Method and apparatus for operating processor and watch dog module

Similar Documents

Publication Publication Date Title
JP2013175056A (en) Oscillation circuit, integrated circuit and abnormality detection method
KR20030024619A (en) Clock monitoring apparatus
US6275948B1 (en) Processor powerdown operation using intermittent bursts of instruction clock
JPH05181709A (en) Watchdog timer for intermittent operation
KR101525685B1 (en) Apparatus for motor drive control and control method thereof
EP2693617A2 (en) Power supply apparatus, processing apparatus, information processing system, and method for controlling power supply
JPH07334392A (en) Resetting device and abnormal operation detector
JPH088889A (en) External synchronization device
JP2001227493A (en) Fan control circuit
JP2891962B2 (en) Power control device
KR100494114B1 (en) Timer circuit
JPH0362236A (en) Watchdog timer device
KR100731506B1 (en) Micro controller having watchdog circuit and controlling method therefor
JP2000209076A (en) Noise detection circuit
JP3211506B2 (en) Programmable controller
JPH0922403A (en) Integrated circuit having reset control function
JP3144811B2 (en) Monitoring timer circuit
KR20020057321A (en) Fan fail alarm
JPH07129278A (en) Resetting control circuit of multiprocessor system
JPS6389941A (en) Monitor and control equipment for microprocessor applied equipment
JPH09319408A (en) Interrupt signal monitor circuit and programmable controller
JP4083954B2 (en) Anomaly monitoring apparatus and anomaly monitoring method
JPH03239176A (en) Sequential drive
JPH05189271A (en) Detecting device for abnormality of central processing unit
JP2011134063A (en) Watchdog timer

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19980922