JPH02304636A - Watch dog timer circuit - Google Patents

Watch dog timer circuit

Info

Publication number
JPH02304636A
JPH02304636A JP1126148A JP12614889A JPH02304636A JP H02304636 A JPH02304636 A JP H02304636A JP 1126148 A JP1126148 A JP 1126148A JP 12614889 A JP12614889 A JP 12614889A JP H02304636 A JPH02304636 A JP H02304636A
Authority
JP
Japan
Prior art keywords
timer
trigger
output
microprocessor
trigger 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
JP1126148A
Other languages
Japanese (ja)
Inventor
Yasutaka Hori
堀 保隆
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP1126148A priority Critical patent/JPH02304636A/en
Publication of JPH02304636A publication Critical patent/JPH02304636A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve the detecting capacity for the runaway of a program by constituting this circuit so that a first and a second FFs output in good order a trigger signal from a microprocessor to a first and a second timers, and the trigger signal to each timer is inhibited, when this order is not observed. CONSTITUTION:An FF 5 selects one of a first timer 1A and a second timer 2 by an address signal 30 from a microprocessor. When the timer 1A is selected and a trigger is outputted at a rise of an output Q of the FF 5, the output Q of the timer 1A becomes H for a prescribed period. Subsequently, even if the timer 1A is selected again and the trigger is outputted, a trigger signal 10 is not outputted to the timer 1A. That is, a retrigger to the timer 1A cannot be executed unless a trigger signal is outputted to a second trigger 2. In such a way, unless the trigger is applied successively and alternately to the timer 1A and the timer 2, the retrigger is not executed. Accordingly, the repeated trigger to the same timer becomes invalid, and the detecting capacity for the runaway of a program is improved.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、マイクロプロセッサ応用機器等におけるプ
ログラム暴走を検出するウォッチドッグタイマ回路に関
するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a watchdog timer circuit for detecting program runaway in microprocessor application equipment and the like.

〔従来の技術〕[Conventional technology]

第3図は従来のマイクロプロセッサ応用機器のプログラ
ム暴走を検出するためのウォッチドッグタイマ回路を示
すブロック接続図であり、図において、■はトリガ信号
が入力されると、ある一定期間その出力値が安定となる
タイマ、IOは図示しないマイクロプロセッサからタイ
マ1へ出力されるトリガ信号、20はマイクロプロセッ
サへ入力されるマスクできない割り込み要求信号(以下
、NMI信号という)である。
Figure 3 is a block connection diagram showing a watchdog timer circuit for detecting program runaway in conventional microprocessor-applied equipment. The stable timer IO is a trigger signal output from a microprocessor (not shown) to timer 1, and 20 is a non-maskable interrupt request signal (hereinafter referred to as NMI signal) input to the microprocessor.

次に動作について説明する。マイクロプロセッサのプロ
グラムの中に、タイマ1の一定期間よりも短い間隔で、
このタイマ1へのトリガ信号10を出すようなコマンド
を入れておくことにより、正常なプログラムを実行して
いる場合には、タイマ1の出力が“L″となり、マイク
ロプロセッサへのNMI信号20は常に“°L°゛とな
っている。
Next, the operation will be explained. In the microprocessor program, at intervals shorter than the fixed period of timer 1,
By inserting a command to issue the trigger signal 10 to timer 1, when the program is running normally, the output of timer 1 becomes "L" and the NMI signal 20 to the microprocessor is It is always “°L°゛”.

一方、上記マイクロプロセッサのプログラムが暴走する
と、このトリガ信号10が正常に出なくなり、タイマ1
の出力が“L″となる。これに゛よリ、NMI信号20
が“H”となる。このため、マイクロプロセッサには割
り込み信号が入り、マイクロプロセッサはプログラムの
暴走を知ることができる。
On the other hand, if the microprocessor program goes out of control, the trigger signal 10 will not be output normally, and the timer 1 will
The output becomes "L". In addition to this, NMI signal 20
becomes “H”. Therefore, an interrupt signal is sent to the microprocessor, allowing the microprocessor to know that the program has run out of control.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

従来のウォッチドッグタイマ回路は以上のように構成さ
れているので、プログラムの暴走のしかたによっては、
例えばトリガ信号lOを出力するプログラム番地をルー
プするような暴走を生じた場合には、トリガ信号10が
常に出力され、ウォッチドッグタイマが正常に働かない
可能性があるなどの課題があった。
The conventional watchdog timer circuit is configured as described above, so depending on how the program runs out of control,
For example, if a runaway occurs in which the program address that outputs the trigger signal 10 is looped, the trigger signal 10 will be constantly output, and there is a possibility that the watchdog timer will not work properly.

この発明は上記のような課題を解消するためになされた
もので、トリガ信号を出すプログラム番地をループする
ような暴走が起こった場合でも、正常に動作して、プロ
グラム暴走を確実に検出できるウォッチドッグタイマ回
路を得ることを目的とする。
This invention was made to solve the above-mentioned problems, and it provides a watch that operates normally and can reliably detect program runaway even when a runaway occurs such as looping the program address that outputs the trigger signal. The purpose is to obtain a dog timer circuit.

〔課題を解決するための手段〕[Means to solve the problem]

この発明に係るウォッチドッグタイマ回路は、マイクロ
プロセッサからのアドレス信号にもとづいて動作させる
タイマを選択するタイマ選択手段を設け、このタイマ選
択手段によって第1のタイマおよび第2のタイマのいず
れかを選択して、これをトリガし、これらの第1のタイ
マまたは第2のタイマの出力により第1のフリップフロ
ップまたは第2のフリップフロップをそれぞれトリガし
て、上記第1のタイマまたは第2のタイマに対する上記
トリガを禁止するようにしたものである。
The watchdog timer circuit according to the present invention includes timer selection means for selecting a timer to operate based on an address signal from a microprocessor, and the timer selection means selects either the first timer or the second timer. The output of the first timer or the second timer triggers the first flip-flop or the second flip-flop, respectively, and the output of the first timer or the second timer is The above trigger is prohibited.

〔作 用〕[For production]

この発明における第1のフリップフロップおよび第2の
フリップフロップは、マイクロプロセッサからのトリガ
信号を第1のタイマおよび第2のタイマへ順序よ(出力
するようにし、この順序を守らないと、各タイマへのト
リガ信号を出力しないようにして、プログラム暴走の検
出をより一層確実にする。
The first flip-flop and the second flip-flop in this invention are configured to output the trigger signal from the microprocessor to the first timer and the second timer in order. To further ensure the detection of program runaway by not outputting a trigger signal to.

〔発明の実施例〕[Embodiments of the invention]

以下、この発明の一実施例を図について説明する。第1
図において、IAはトリガ信号が入力されると、ある一
定期間その出力が安定となる第1のタイマ、2は第1の
タイマIAと同様な第2のタイマ、3は第1のタイマI
Aの出力Qの立ち上がりで入力りをラッチする第1のフ
リップフロップ、4はこの第1のフリップフロップ3と
同様の第2のフリップフロップで、第2のタイマ2の出
力Qの立ち上がりで、入力りをラッチする。5は上記の
各フリップフロップ3,4と同様の構成を持つタイマ選
択手段としてのフリップフロップ、6.7は3人力のア
ンドゲート、8は各タイマIA、2の出力を入力とする
2人力のノアゲート、10は図示しないマイクロプロセ
ッサからウォッチドッグタイマへ出力されるトリガ信号
、20はそのマイクロプロセッサへのマスクできない割
り込み要求信号(NMI信号)、30はマイクロプロセ
ッサからのアドレス信号である。
An embodiment of the present invention will be described below with reference to the drawings. 1st
In the figure, IA is a first timer whose output is stable for a certain period of time when a trigger signal is input, 2 is a second timer similar to the first timer IA, and 3 is the first timer I.
A first flip-flop 4 latches the input at the rising edge of the output Q of A, and 4 is a second flip-flop similar to this first flip-flop 3; Latch the button. Reference numeral 5 denotes a flip-flop as a timer selection means having the same configuration as each of the flip-flops 3 and 4 above, 6.7 a three-man-powered AND gate, and 8 a two-man-powered AND gate that receives the output of each timer IA and 2. In the NOR gate, 10 is a trigger signal output from a microprocessor (not shown) to a watchdog timer, 20 is a non-maskable interrupt request signal (NMI signal) to the microprocessor, and 30 is an address signal from the microprocessor.

次に動作について説明する。フリップフロップ5は第1
のタイマIAおよび第2のタイマ2のどちらを選択する
かを決めるもので、マイクロプロセッサからのアドレス
信号30によって指定する。
Next, the operation will be explained. Flip-flop 5 is the first
This determines which of the second timer IA and the second timer 2 to select, and is specified by the address signal 30 from the microprocessor.

いま、このフリップフロップ5の出力Qの立ち上がりで
第1のタイマIAを選択してトリガを出すと、この第1
のタイマIAの出力Qが一定期間“H′”となる。この
次に、再び第1のタイマIAを選択してトリガを出して
も、第2図に示すように、トリガ信号10は第1のタイ
マIAへ出力されない。つまり、この第1のタイマLA
への再トリガは、第2のタイマ2ヘトリガ信号を出力し
なければ行えないようになっている。このように、第1
のタイマIAおよび第2のタイマ2に対し、順次交互に
トリガをかけていくようにしなければ、これらの再トリ
ガが行われない。従って、同一タイマへの繰り返しトリ
ガは無効となり、プログラム暴走の検出能力が向上する
ことになる。
Now, when the first timer IA is selected and triggered at the rising edge of the output Q of this flip-flop 5, this first timer IA is triggered.
The output Q of timer IA becomes "H'" for a certain period of time. Next, even if the first timer IA is selected again and a trigger is issued, the trigger signal 10 is not output to the first timer IA, as shown in FIG. In other words, this first timer LA
Re-triggering cannot be performed unless a trigger signal is output to the second timer 2. In this way, the first
Unless the timer IA and the second timer 2 are sequentially and alternately triggered, they will not be retriggered. Therefore, repeated triggering of the same timer becomes invalid, and the ability to detect program runaway is improved.

なお、上記実施例では、第1のタイマLA、第2のタイ
マ2の2個を使用したものを示したが、そのタイマ数は
いくつでも増すことができ、これによってタイマ数に比
例してプログラム暴走の検出能力を向上することができ
る。
Note that in the above embodiment, two timers, the first timer LA and the second timer 2, are used, but the number of timers can be increased as desired, and the program speed can be increased in proportion to the number of timers. The ability to detect runaway behavior can be improved.

〔発明の効果〕〔Effect of the invention〕

以上のように、この発明によれば、第1のタイマおよび
第2のタイマを使用し、これらを順次トリガをするよう
に構成したので、この順序を満足しない場合には上記各
タイマヘトリガ信号を出力しないようにでき、これによ
りプログラム暴走の検出能力を一層向上できるものが得
られる効果がある。
As described above, according to the present invention, the first timer and the second timer are used and configured to trigger them sequentially, so if this order is not satisfied, a trigger signal is output to each of the above-mentioned timers. This has the effect of further improving the ability to detect program runaway.

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

第1図はこの発明の一実施例によるウォッチドッグタイ
マ回路を示すブロック接続図、第2図は第1図に示すブ
ロック各部の信号を示すタイミングチャート図、第3図
は従来のウォッチドッグタイマ回路を示すブロック接続
図である。 IAは第1のタイマ、2は第2のタイマ、3は第1のフ
リップフロップ、4は第2のフリップフロップ、5はタ
イマ選択手段(フリップフロップ)、IOはマイクロプ
ロセッサからのトリガ信号、30はマイクロプロセッサ
からのアドレス信号。 なお、図中、同一符号は同一、又は相当部分を示す。 飾1図 IA:翔1のタイマ 2 :笥2のタイマ 3  :  男1fiフリ・・、ブフロ・・ノア。 4 : 第2のフリ・ンフ゛フロ・・ノア。 5 : タイ?式(王に呼喝之(フリ、・、ブフロ・l
フリ1o; ト1)力′イ名号 30: アト°しスイ名号
FIG. 1 is a block connection diagram showing a watchdog timer circuit according to an embodiment of the present invention, FIG. 2 is a timing chart showing signals of each part of the block shown in FIG. 1, and FIG. 3 is a conventional watchdog timer circuit. It is a block connection diagram showing. IA is a first timer, 2 is a second timer, 3 is a first flip-flop, 4 is a second flip-flop, 5 is a timer selection means (flip-flop), IO is a trigger signal from the microprocessor, 30 is the address signal from the microprocessor. In addition, in the figures, the same reference numerals indicate the same or equivalent parts. Decoration 1 Diagram IA: Sho 1's Timer 2: Sho 2's Timer 3: Man 1fi Furi...Buflo Noah. 4: 2nd Furi Nfuro Noah. 5: Thailand? Ceremony (Call for the King)
Furi 1o; To 1) Power'i name number 30: Ato°shi sui name number

Claims (1)

【特許請求の範囲】[Claims] マイクロプロセッサからのアドレス信号にもとづき、タ
イマ選択を行うタイマ選択手段と、このタイマ選択手段
により選択されて、上記マイクロプロセッサからのトリ
ガ信号によりトリガされる第1のタイマおよび第2のタ
イマと、これらの第1のタイマまたは第2のタイマの出
力を受けてそれぞれトリガされ、かつ上記第1のタイマ
または第2のタイマに対する上記トリガ信号入力を禁止
する禁止信号を出力する第1のフリップフロップおよび
第2のフリップフロップとを備えたウォッチドッグタイ
マ回路。
a timer selection means for selecting a timer based on an address signal from the microprocessor; a first timer and a second timer selected by the timer selection means and triggered by a trigger signal from the microprocessor; a first flip-flop and a second flip-flop that are triggered in response to the output of the first timer or the second timer, respectively, and output a prohibition signal that prohibits input of the trigger signal to the first timer or the second timer; A watchdog timer circuit with two flip-flops.
JP1126148A 1989-05-19 1989-05-19 Watch dog timer circuit Pending JPH02304636A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1126148A JPH02304636A (en) 1989-05-19 1989-05-19 Watch dog timer circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1126148A JPH02304636A (en) 1989-05-19 1989-05-19 Watch dog timer circuit

Publications (1)

Publication Number Publication Date
JPH02304636A true JPH02304636A (en) 1990-12-18

Family

ID=14927864

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1126148A Pending JPH02304636A (en) 1989-05-19 1989-05-19 Watch dog timer circuit

Country Status (1)

Country Link
JP (1) JPH02304636A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008072350A1 (en) * 2006-12-15 2008-06-19 Fujitsu Limited System-monitoring device using dualized timer, and monitoring method
JP2008532125A (en) * 2005-02-28 2008-08-14 ローベルト ボツシユ ゲゼルシヤフト ミツト ベシユレンクテル ハフツング Method and apparatus for monitoring process execution

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008532125A (en) * 2005-02-28 2008-08-14 ローベルト ボツシユ ゲゼルシヤフト ミツト ベシユレンクテル ハフツング Method and apparatus for monitoring process execution
WO2008072350A1 (en) * 2006-12-15 2008-06-19 Fujitsu Limited System-monitoring device using dualized timer, and monitoring method

Similar Documents

Publication Publication Date Title
JPH04257932A (en) Chip for emulation for digital signal processor
JPH02304636A (en) Watch dog timer circuit
JPH01246602A (en) Special function unit for programmable controller
JP2614931B2 (en) Interrupt control circuit
JPS5911424A (en) Processing circuit of interruption signal
JPH0683652A (en) Microcomputer system
JPS59216254A (en) Interruption level control system
JPS62205441A (en) Microcomputer
JPH0226245B2 (en)
JPH0232645B2 (en)
JPH01213725A (en) Microprocessor for evaluation
JPS60149222A (en) Logic circuit
JPH0584547B2 (en)
JPS6395542A (en) Processor for transmission control
JPH04192037A (en) Semiconductor integrated circuit
JPS60229531A (en) Counting circuit device
JPS6359017A (en) Pulse generating circuit
JPH03252886A (en) Single chip microcomputer
JPS5290238A (en) Control of input/output device
JPS61173367A (en) Microcomputer switching circuit
JPS60209851A (en) Program sequence stop system
JPH0778123A (en) I/o interruption processing system
JPS5998228A (en) Timer
JPH02171812A (en) Operating speed increasing circuit for processor having no wait state function
JPH02141024A (en) Method for counting vehicle speed pulse