JP3144811B2 - Monitoring timer circuit - Google Patents
Monitoring timer circuitInfo
- Publication number
- JP3144811B2 JP3144811B2 JP03063091A JP3063091A JP3144811B2 JP 3144811 B2 JP3144811 B2 JP 3144811B2 JP 03063091 A JP03063091 A JP 03063091A JP 3063091 A JP3063091 A JP 3063091A JP 3144811 B2 JP3144811 B2 JP 3144811B2
- Authority
- JP
- Japan
- Prior art keywords
- counter
- signal
- circuit
- output
- hit 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.)
- Expired - Fee Related
Links
Description
【0001】[0001]
【産業上の利用分野】本発明は、プログラムの暴走を検
出する監視タイマ回路に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a monitoring timer circuit for detecting runaway of a program.
【0002】[0002]
【従来の技術】従来の監視タイマ回路では、図3に示す
ように、クロック信号によりカウントアップ動作を行う
カウンタ32と、マイクロコンピュータ等から出力され
るヒット信号とハードリセット信号との論理和によりカ
ウンタを初期値にセットする論理和素子35とから構成
され、ハードリセット信号またはヒット信号によりカウ
ンタが初期値にセットされ、以後カウントアップするよ
うになっていた。2. Description of the Related Art In a conventional monitoring timer circuit, as shown in FIG. 3, a counter 32 which performs a count-up operation by a clock signal, and a counter by a logical sum of a hit signal output from a microcomputer and a hard reset signal. Is set to the initial value, and the counter is set to the initial value by a hard reset signal or a hit signal, and thereafter counts up.
【0003】[0003]
【発明が解決しようとする課題】しかしながら、上記従
来の回路構成の場合、プログラムのイニシャル処理時に
もこれを正常動作として検出するためには、ヒット信号
を定期的に出力する必要があり、プログラム設計段階に
てヒット信号出力機能を盛り込む必要があった。また、
プログラム開発のデバッグ段階にて監視タイマ回路を停
止させて行う場合には、ハードウェア上で監視タイマ回
路を強制的に停止させる工夫が必要となるという欠点を
有していた。However, in the case of the above-described conventional circuit configuration, it is necessary to output a hit signal periodically in order to detect this as a normal operation even during the initial processing of the program. It was necessary to incorporate a hit signal output function at the stage. Also,
In the case where the monitoring timer circuit is stopped at the debugging stage of the program development, there is a disadvantage that a device for forcibly stopping the monitoring timer circuit on hardware is required.
【0004】本発明は、上記問題点を解決するためにな
されたもので、その目的は、最初のヒット信号により動
作する監視タイマ回路を提供するものである。The present invention has been made to solve the above problems, and an object of the present invention is to provide a monitoring timer circuit which operates by an initial hit signal.
【0005】[0005]
【課題を解決するための手段】上記目的を達成するため
に、本発明による監視タイマ回路は、クロック信号によ
りカウントアップするカウンタ手段と、このカウンタ手
段を初期値にセットし、ヒット信号ごとにリセットする
論理処理手段とを備えた監視タイマ回路において、前記
論理処理手段が、ハードリセット信号の入力によりリセ
ットし、ヒット信号の入力によりセット信号を出力する
記憶手段と、前記カウンタ手段の反転出力と前記記憶手
段から出力されるセット信号との論理積により前記カウ
ンタ手段を動作可能状態とする第一の論理積手段と、前
記第一の論理積手段の出力とヒット信号との論理積をと
る第二の論理積手段と、前記第二の論理積手段の出力と
ハードリセット信号との論理和により前記カウンタを初
期値にセットする論理和手段とを備えたクロック信号に
よりカウントアップするカウンタ手段と、このカウンタ
手段を初期値にセットし、ヒット信号ごとにリセットす
る論理素子手段とを備えたものである。To achieve the above object, a monitoring timer circuit according to the present invention comprises a counter means for counting up by a clock signal, the counter means being set to an initial value, and a reset every hit signal. A logic processing means, wherein the logic processing means resets by inputting a hard reset signal, and outputs a set signal by inputting a hit signal; and an inverted output of the counter means. A first AND circuit for activating the counter circuit by an AND operation with a set signal output from a storage circuit, and a second AND circuit for performing an AND operation on an output of the first AND circuit and a hit signal The counter is set to an initial value by the logical sum of the logical product of the second logical product and the output of the second logical product and the hard reset signal A counter means for counting up the clock signal and a Liwa means sets the counter means to an initial value, in which a logic element means for resetting each hit signal.
【0006】[0006]
【作用】したがって、ハードリセット以後にヒット信号
が出力されるまでカウンタ手段はカウントアップ動作を
停止し、最初のヒット信号からカウント動作を開始する
ことにより、プログラム開発を容易に行なうことができ
るという作用を有する。Therefore, the counter means stops the count-up operation until the hit signal is output after the hard reset, and starts the count operation from the first hit signal, thereby facilitating program development. Having.
【0007】[0007]
【実施例】以下、図面に基づき本発明の実施例を説明す
る。図1は、本発明の監視タイマ回路の一実施例を示す
ものである。図2は、図1における動作タイミングチャ
ートである。Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 shows an embodiment of a monitoring timer circuit according to the present invention. FIG. 2 is an operation timing chart in FIG.
【0008】図1において、1はマイクロコンピュータ
等からのヒット信号の有無を検出することによりセット
信号を出力する記憶手段のSRフリップフロップ、2は
クロック信号をn進カウントアップしてカウント終了後
に信号を出力するカウンタ手段のn進カウンタ、3はS
Rフリップフロップの出力とn進カウンタ2の反転出力
の論理積をとりn進カウンタ2のカウンタ動作を制御す
る第一の論理積手段のAND回路、4はAND回路3の
出力とヒット信号の論理積をとる第二の論理積手段のA
ND回路、5はAND回路4の出力とハードリセット信
号の論理和をとりn進カウンタ2を初期値にセットする
論理和手段のOR回路である。ここで、AND回路3の
出力はn進カウンタ2のENA端子に、ハードリセット
信号はSRフリップフロップ1のCL端子およびn進カ
ウンタ2のCL端子に与えられている。In FIG. 1, reference numeral 1 denotes an SR flip-flop of storage means for outputting a set signal by detecting the presence or absence of a hit signal from a microcomputer or the like; , An n-ary counter of counter means for outputting
The AND circuit of the first AND means for controlling the counter operation of the n-ary counter 2 by taking the logical product of the output of the R flip-flop and the inverted output of the n-ary counter 2, and 4 is the logic of the output of the AND circuit 3 and the hit signal A of the second AND means for taking the product
ND circuits 5 and 5 are OR circuits of logical OR means for calculating the logical sum of the output of the AND circuit 4 and the hard reset signal and setting the n-ary counter 2 to an initial value. Here, the output of the AND circuit 3 is supplied to the ENA terminal of the n-ary counter 2, and the hard reset signal is supplied to the CL terminal of the SR flip-flop 1 and the CL terminal of the n-ary counter 2.
【0009】次に、具体的な回路動作を図2の動作タイ
ミングチャートに基づいて説明する。Next, a specific circuit operation will be described with reference to an operation timing chart of FIG.
【0010】クロック信号は所定の周波数で発振する発
振回路等から出力されるn進カウンタ2の基準クロック
である。電源スタート後にハードリセット信号はある時
刻t1までの一定時間″high″となる。これにより
SRフリップフロップ1はリセットされてその出力は″
low″となり、n進カウンタ2は初期状態にセットさ
れる。したがって、ヒット信号が入力されるまでは、A
ND回路3の出力は″low″を維持し、n進カウンタ
2はカウンタ動作を停止の状態に保つ。次に、時刻t2
でヒット信号が入力されると、SRフリップフロップ1
の出力は″high″にセットされ、n進カウンタ2は
カウンタ動作をスタートする。その後にヒット信号が入
力されてもSRフリップフロップ1の出力は″hig
h″を維持し、AND回路4の出力はカウント数5で時
刻t3において入力されるヒット信号のようなn進カウ
ント動作中に入力されるヒット信号を通過させ、n進カ
ウンタ2は初期値に再セットされる。しかし、時刻t3
から時刻t4までの期間のように、ヒット信号がn進カ
ウンタ2のn進カウンタ動作中に入力されなっかた場合
には、n進カウンタ2の出力は時刻t4のクロックで″
high″となり、その反転出力を入力するAND回路
3の出力は″low″となるので、以降入力されるヒッ
ト信号はOR回路5により通過停止され、その後は、n
進カウンタ2は初期値にセットされることはない。した
がって、n進カウンタ2の出力はハードリセット信号が
入力されるまで″high″保持し、外部回路へ異常を
通知する。The clock signal is a reference clock of the n-ary counter 2 output from an oscillation circuit or the like that oscillates at a predetermined frequency. After the power supply is started, the hard reset signal is "high" for a fixed time until a certain time t1. As a result, the SR flip-flop 1 is reset and its output becomes "
low ", and the n-ary counter 2 is set to the initial state.
The output of the ND circuit 3 keeps "low", and the n-ary counter 2 keeps the counter operation stopped. Next, at time t2
When a hit signal is input, the SR flip-flop 1
Is set to "high", and the n-ary counter 2 starts the counter operation. After that, even if a hit signal is input, the output of the SR flip-flop 1 remains "high".
h "is maintained, the output of the AND circuit 4 passes the hit signal input during the n-ary counting operation such as the hit signal input at the time t3 with the count number 5, and the n-ary counter 2 returns to the initial value. It is reset, but at time t3
If a hit signal is not input during the n-ary counter operation of the n-ary counter 2 as in the period from to the time t4, the output of the n-ary counter 2 becomes "
high ", and the output of the AND circuit 3 to which the inverted output is inputted becomes" low ", so that the hit signal inputted thereafter is stopped by the OR circuit 5, and thereafter, n
The hex counter 2 is never set to the initial value. Therefore, the output of the n-ary counter 2 is held "high" until a hard reset signal is input, and an abnormality is notified to an external circuit.
【0011】[0011]
【発明の効果】上記のように、本発明によれば、最初の
ヒット信号により監視タイマ回路を起動するようにして
いるため、プログラムのイニシャル処理時にヒット信号
を出力する機能を設ける必要がなく、メイン処理ルーチ
ンにのみ機能を挿入するだけでよい。また、プログラム
開発段階におけるデバグ効率を上げることができる。As described above, according to the present invention, since the monitoring timer circuit is activated by the first hit signal, there is no need to provide a function of outputting a hit signal at the time of initial processing of a program. It is only necessary to insert the function into the main processing routine. Further, the debugging efficiency in the program development stage can be improved.
【図1】本発明の一実施例を示す回路図FIG. 1 is a circuit diagram showing one embodiment of the present invention.
【図2】本実施例の動作タイミングチャートFIG. 2 is an operation timing chart of the present embodiment.
【図3】従来の監視タイマ回路の回路図FIG. 3 is a circuit diagram of a conventional monitoring timer circuit.
1 SRフリップフロップ(記憶手段) 2 n進カウンタ(カウンタ手段) 3 AND回路(第一の論理積手段) 4 AND回路(第二の論理積手段) 5 OR回路(論理和手段) REFERENCE SIGNS LIST 1 SR flip-flop (storage means) 2 n-ary counter (counter means) 3 AND circuit (first logical product means) 4 AND circuit (second logical product means) 5 OR circuit (logical sum means)
───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 昭60−27038(JP,A) 特開 平2−120943(JP,A) 特開 平2−68637(JP,A) ────────────────────────────────────────────────── ─── Continuation of the front page (56) References JP-A-60-27038 (JP, A) JP-A-2-120943 (JP, A) JP-A-2-68637 (JP, A)
Claims (1)
カウンタ手段と、このカウンタ手段を初期値にセット
し、ヒット信号ごとにリセットする論理処理手段とを備
えた監視タイマ回路において、前記論理処理手段が、ハ
ードリセット信号の入力によりリセットし、ヒット信号
の入力によりセット信号を出力する記憶手段と、前記カ
ウンタ手段の反転出力と前記記憶手段から出力されるセ
ット信号との論理積により前記カウンタ手段を動作可能
状態とする第一の論理積手段と、前記第一の論理積手段
の出力とヒット信号との論理積をとり、前記カウンタ手
段を初期値にセットする第二の論理積手段とを備えた監
視タイマ回路。1. A monitoring timer circuit comprising: counter means for counting up by a clock signal; and logic processing means for setting the counter means to an initial value and resetting for each hit signal. Storage means for resetting by input of a reset signal and outputting a set signal by input of a hit signal ; and said counter means by a logical product of an inverted output of said counter means and a set signal outputted from said storage means. a first logical product means operable state, the logical product of the output and the hit signal of said first logical aND means, said counter hand
A second AND means for setting the stage to an initial value .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP03063091A JP3144811B2 (en) | 1991-02-26 | 1991-02-26 | Monitoring timer circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP03063091A JP3144811B2 (en) | 1991-02-26 | 1991-02-26 | Monitoring timer circuit |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH04270427A JPH04270427A (en) | 1992-09-25 |
JP3144811B2 true JP3144811B2 (en) | 2001-03-12 |
Family
ID=12309172
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP03063091A Expired - Fee Related JP3144811B2 (en) | 1991-02-26 | 1991-02-26 | Monitoring timer circuit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3144811B2 (en) |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS6027038A (en) * | 1983-07-22 | 1985-02-12 | Fujitsu Ltd | Detecting system for program runaway |
JPH0268637A (en) * | 1988-09-02 | 1990-03-08 | Nippon Denso Co Ltd | Supervisory and controlling equipment for microcomputer |
JPH02120943A (en) * | 1988-10-31 | 1990-05-08 | Canon Inc | Watchdog timer circuit |
-
1991
- 1991-02-26 JP JP03063091A patent/JP3144811B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JPH04270427A (en) | 1992-09-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7149915B2 (en) | Microcomputer using a shared counter | |
JP2001184234A (en) | Watch dog timer | |
JP3144811B2 (en) | Monitoring timer circuit | |
US5063355A (en) | Timer circuit | |
JP2773546B2 (en) | Pulse generation circuit | |
JPH07334392A (en) | Resetting device and abnormal operation detector | |
JP2964704B2 (en) | Clock stop circuit | |
JPH0483425A (en) | Pulse generating circuit | |
JP2598547Y2 (en) | Pattern generator for semiconductor test equipment | |
JPH0973404A (en) | Watchdog timer circuit | |
JPS61255445A (en) | Cpu supervisory circuit | |
JP2731386B2 (en) | Control device | |
CN114696809A (en) | Signal generation circuit and operating system | |
JPH0782406B2 (en) | Oscillation switching circuit of microcomputer | |
JPS6324569B2 (en) | ||
JPH08179849A (en) | Clock output circuit | |
JPH06301452A (en) | Reset circuit | |
JPH10126231A (en) | Chattering removing circuit | |
JPH0676083A (en) | Timer circuit | |
JPH0320775B2 (en) | ||
JPH03246603A (en) | Rapid counter | |
JPH07107553B2 (en) | Electronic clock | |
JPH0922403A (en) | Integrated circuit having reset control function | |
JPH0743258A (en) | Failure detector for event driven type processor | |
JPH04225432A (en) | Interruption processing time control system for one-chip microcomputer |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
LAPS | Cancellation because of no payment of annual fees |