JP2693885B2 - Microcomputer - Google Patents

Microcomputer

Info

Publication number
JP2693885B2
JP2693885B2 JP3257341A JP25734191A JP2693885B2 JP 2693885 B2 JP2693885 B2 JP 2693885B2 JP 3257341 A JP3257341 A JP 3257341A JP 25734191 A JP25734191 A JP 25734191A JP 2693885 B2 JP2693885 B2 JP 2693885B2
Authority
JP
Japan
Prior art keywords
capture
program
signal
clear instruction
interval timer
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 - Lifetime
Application number
JP3257341A
Other languages
Japanese (ja)
Other versions
JPH05100876A (en
Inventor
和俊 吉澤
Original Assignee
日本電気アイシーマイコンシステム株式会社
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 日本電気アイシーマイコンシステム株式会社 filed Critical 日本電気アイシーマイコンシステム株式会社
Priority to JP3257341A priority Critical patent/JP2693885B2/en
Publication of JPH05100876A publication Critical patent/JPH05100876A/en
Application granted granted Critical
Publication of JP2693885B2 publication Critical patent/JP2693885B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Microcomputers (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明はマイクロコンピュータに
関し、特に任意の箇所で無限ループにはいった場合にお
いても暴走検出可能なプログラム暴走検出回路に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a microcomputer, and more particularly to a program runaway detection circuit capable of detecting a runaway even if an infinite loop is entered at any place.

【0002】[0002]

【従来の技術】マイクロプロセッサあるいは1チップマ
イクロコンピュータ(以下、総称してえマイクロコンピ
ュータと呼ぶ)は、年々集積度の向上に伴いアドレッシ
ング可能なプログラムメモリ空間あるいは内蔵プログラ
ムメモリ容量が増大し、またさまざまな周辺機能内蔵に
よる時分割制御など、ますます複雑な制御を行う事が可
能となってきている。
2. Description of the Related Art Microprocessors or 1-chip microcomputers (hereinafter collectively referred to as "microcomputers") have been increasing in addressability with increasing program memory space or built-in program memory capacity. It is becoming possible to perform more complicated control such as time-division control by incorporating various peripheral functions.

【0003】また、応用分野もこれに伴い家電など身近
な民生分野から、情報処理装置、通信機器、自動車のエ
ンジンコントロールなど、多岐に渡っており、これらの
制御の中枢となるマイクロコンピュータのプログラムが
暴走するなどの異常動作が発生した場合、これをいち早
く検出する事は非常に重要になってきている。
Along with this, there are various fields of application from familiar consumer fields such as home appliances to information processing devices, communication devices, engine control of automobiles, etc. When an abnormal operation such as a runaway occurs, it is very important to detect it as soon as possible.

【0004】従来、何らかの外的要因あるいは当初予期
しなかったような特殊条件などにより、プログラムが無
限ループにはいるなど暴走した場合、これを検出する回
路としてウォッチドッグタイマが知られている。このウ
ォッチドッグタイマは、所定の基準クロックをカウント
して一定時間ごとにオーバーフローする事により、マイ
クロコンピュータへの割り込みまたはリセット信号を発
生するインターバルタイマで、プログラムでクリアする
事ができる。
Conventionally, a watchdog timer has been known as a circuit for detecting a runaway such as when a program goes into an infinite loop due to some external factor or a special condition which is unexpected at first. This watchdog timer is an interval timer that generates a interrupt signal or a reset signal to the microcomputer by counting a predetermined reference clock and overflowing at regular time intervals, and can be cleared by a program.

【0005】即ち、プログラム実行における一連の処理
が所定時間内に終了しない場合にこの状態をプログラム
実行異常とみなして内部リセット信号を発生したり、割
り込み信号を発生する機能を持った回路である。従来に
おけるウォッチドッグタイマの構成を図3に示す。
That is, when a series of processes in program execution is not completed within a predetermined time, this state is regarded as a program execution abnormality and an internal reset signal is generated or an interrupt signal is generated. The structure of a conventional watchdog timer is shown in FIG.

【0006】図3において、基準クロックを入力として
カウントする所定ビット長のインターバルタイマ(ウォ
ッチドッグタイマ)1により、所定時間カウント後に発
生するオーバーフロー信号50がリセット信号または割
り込み信号となり、マイクロコンピュータにリセットま
たは割り込みがかかる。
In FIG. 3, an overflow timer 50 generated after counting a predetermined time by an interval timer (watchdog timer) 1 having a predetermined bit length that counts with a reference clock as an input becomes a reset signal or an interrupt signal, and is reset to a microcomputer. It takes an interrupt.

【0007】また、前記インターバルタイマ1は、カウ
ント動作中に、クリア命令によりクリアする事もでき
る。従って、図4のプログラムの流れ70に示すよう
に、あらかじめプログラム処理ルーチン中にインターバ
ルタイマ(ウォッチドッグタイマ)1がオーバーフロー
するより短い周期でクリア命令を適宜配置しておく事に
より、プログラム60が正しい処理ルーチンを実行して
いる場合には、クリア命令によりインターバルタイマ1
がクリアされオーバーフロー信号50が発生しないが、
もし何らかの原因でプログラムが暴走し、図4の(1)
のように無限ループに入った場合にはクリア命令が実行
されないため、オーバーフローし、リセットまたは割り
込みが発生して異常状態から抜け出す事ができる。実際
のプログラム処理ルーチンは図4に示すよりもっと複雑
で途中でサブルーピンや周辺機能からの割り込み処理ル
ーチンなどに分岐するので、これらの分岐処理時間も考
慮してクリア命令を配置する必要があるが、本筋を離れ
るので簡単のため省略した。
Also, the interval timer 1 can be cleared by a clear command during the counting operation. Therefore, as shown in the program flow 70 of FIG. 4, the program 60 is correct by appropriately arranging the clear instruction in advance in the program processing routine in a shorter cycle than the interval timer (watchdog timer) 1 overflows. When the processing routine is being executed, the interval timer 1
Is cleared and the overflow signal 50 is not generated,
If for some reason the program runs away, (1) in Fig. 4
When an infinite loop is entered like this, the clear instruction is not executed, so overflow can occur, and a reset or interrupt can occur to get out of the abnormal state. Since the actual program processing routine is more complicated than that shown in FIG. 4 and branches to an interrupt processing routine from a subroutine or a peripheral function in the middle, it is necessary to place a clear instruction in consideration of these branch processing times. It is omitted for simplicity because it leaves the main line.

【0008】[0008]

【発明が解決しようとする課題】前述した従来のウォッ
チドッグタイマ1では、図4で示した(1)のように、
クリア命令を含まない無限ループに入った場合には有効
であるが、(2)のようにクリア命令を含む部分のプロ
グラムで無限ループに入った場合にはウォッチドッグタ
イマ1がクリアされるため、暴走状態にも関わらず、無
限ループから抜け出す事が出来ないという欠点がある。
In the conventional watchdog timer 1 described above, as shown in (1) of FIG.
This is effective when entering an infinite loop that does not include a clear instruction, but since the watchdog timer 1 is cleared when entering an infinite loop in the program of the part that includes the clear instruction as in (2), There is a drawback that you cannot get out of the infinite loop despite the runaway condition.

【0009】本発明の目的は、前記欠点を解決し、ウォ
ッチドッグタイマをクリアする命令自身を含む部分で、
無限ループにはいった場合にもこれを検出する事ができ
るようにしたマイクロコンピュータを提供することにあ
る。
An object of the present invention is to solve the above-mentioned drawbacks and to include a command itself for clearing a watchdog timer.
It is to provide a microcomputer capable of detecting this even when entering an infinite loop.

【0010】[0010]

【課題を解決するための手段】本発明のマイクロコンピ
ュータに内蔵する暴走検出回路の構成は、所定の基準ク
ロックを入力として所定クロック数カウント後にリセッ
ト信号又は割り込み信号を発生しかつクリア命令により
カウンタ値がクリアされるインターバルタイマと、プロ
グラムカウンタの内容をキャプチャ信号に基づきキャプ
チャする2組のキャプチャレジスタと、前記クリア命令
の実行時に前記プラグラムカウンタのキャプチャ信号を
前記2組のキャプチャジスタに対し交互に出力する手段
と、前記2組のキャプチャジスタの内容を比較し一致検
出信号を発生する比較回路とを備えていることを特徴と
する。
The configuration of a runaway detection circuit incorporated in a microcomputer of the present invention is such that a predetermined reference clock is input and a reset signal or an interrupt signal is generated after a predetermined number of clocks have been counted and a counter value is issued by a clear instruction. Is cleared, two sets of capture registers that capture the contents of the program counter based on the capture signal, and the capture signal of the program counter are alternately output to the two sets of capture registers when the clear instruction is executed. And a comparator circuit for comparing the contents of the two sets of capture registers and generating a coincidence detection signal.

【0011】[0011]

【実施例】図1は本発明の第1の実施例のマイクロコン
ピュータを示すブロック図である。
1 is a block diagram showing a microcomputer according to a first embodiment of the present invention.

【0012】図1において、本実施例は、インターバル
タイマ1が所定の基準クロックにもとづきカウント動作
を行い、所定カウント数を越えるとオーバーフロー23
を発生する所定ビット長のインターバルタイマで、イン
ターバルタイマクリア命令実行時に発生するクリアパル
スによりカウント値が
Referring to FIG. 1, in this embodiment, the interval timer 1 performs counting operation based on a predetermined reference clock, and overflows 23 when the predetermined count number is exceeded.
The interval timer with a predetermined bit length that generates the count value by the clear pulse generated when the interval timer clear instruction is executed.

〔0〕にクリアされる。Cleared to [0].

【0013】トグル・フリップフロップ2は、前記イン
ターバルタイマクリア命令実行時に発生するクリアパル
スを入力として、出力QとQ(反転値)とからキャプチ
ャ信号20,22を出力する。
The toggle flip-flop 2 receives the clear pulse generated when the interval timer clear instruction is executed and outputs the capture signals 20 and 22 from the outputs Q and Q (inverted value).

【0014】第一キャプチャレジスタ4はトグル・フリ
ップフロップ2のQ出力が
The first capture register 4 has the Q output of the toggle flip-flop 2

〔0〕から〔1〕への変化時
にプログラムカウンタ3の内容をラッチするレジスタ
で、第二キャプチャレジスタ5はトグル・フリップフロ
ップ2のQ(反転値)出力が
It is a register that latches the contents of the program counter 3 when changing from [0] to [1], and the second capture register 5 outputs the Q (inverted value) of the toggle flip-flop 2.

〔0〕から〔1〕への変化
時にプログラムカウンタ3の内容をラッチするレジスタ
である。
It is a register that latches the contents of the program counter 3 when changing from [0] to [1].

【0015】本実施例では、プログラムカウンタ3、第
一キャプチャレジスタ4、第二キャプチャレジスタ5の
いずれも16ビット長とする。
In this embodiment, each of the program counter 3, the first capture register 4, and the second capture register 5 has a 16-bit length.

【0016】比較回路6は第一キャプチャレジスタ4の
内容と第二キャプチャレジスタ5の内容とを全ビット比
較し、一致した場合に一致検出パルス21を発生する。
The comparison circuit 6 compares all the bits of the contents of the first capture register 4 and the contents of the second capture register 5 and generates a match detection pulse 21 when they match.

【0017】オアゲート7は、インターバルタイマ1の
オーバーフロー23が発生するか、または比較回路6の
一致検出パルス21が発生した場合にマイクロコンピュ
ータのリセット信号または割り込み信号24を出力す
る。
The OR gate 7 outputs a reset signal or an interrupt signal 24 of the microcomputer when the overflow 23 of the interval timer 1 occurs or the coincidence detection pulse 21 of the comparison circuit 6 occurs.

【0018】また、マイクロコンピュータへのリセット
信号により、インターバルタイマ1はカウント値が
Further, the count value of the interval timer 1 is changed by the reset signal to the microcomputer.

〔0〕にクリアさ、トグル・フリップフロップ2のQ出
力は
Cleared to [0], the Q output of toggle flip-flop 2 is

〔0〕に、Q(反転値)出力は〔1〕にイニシャラ
イズされ、更にリセット時は第一キャプチャレジスタ4
と第二キャプチャレジスタ5との内容にかかわらず、比
較回路6は
The Q (inverted value) output is initialized to [1] at [0], and the first capture register 4 is reset at the time of reset.
Irrespective of the contents of the second capture register 5 and

〔0〕を出力し、一致検出パルス21は出力
されない。
[0] is output and the coincidence detection pulse 21 is not output.

【0019】次に、図4に基づいて、プログラムの実行
について説明する。
Next, the execution of the program will be described with reference to FIG.

【0020】説明を簡単にするために、図4中の矢印で
示したようなプログラム実行の流れで一連の処理を繰り
返すとする。この時、図1のインターバルタイマ1のオ
ーバーフロー時間T以内の時間間隔でインターバルタイ
マ1のクリア命令を置く。たとえば、図4のように正常
時には、A番地→B番地→C番地→D番地をこの順に各
間隔が時間T以内にアクセスするような場合には、各番
地にインターバルタイマクリア命令を置く。
To simplify the explanation, it is assumed that a series of processes is repeated in the flow of program execution as shown by the arrow in FIG. At this time, a clear instruction for the interval timer 1 is placed at a time interval within the overflow time T of the interval timer 1 in FIG. For example, in the normal state as shown in FIG. 4, if the intervals A, B, C, and D are accessed in this order within the time T, an interval timer clear instruction is placed at each address.

【0021】マイクロコンピュータへのリセット入力に
より、インターバルタイマ1はクリアされる。マイクロ
コンピュータが正常シーケンスでプログラムを実行する
場合は、A番地のインターバルタイマ1のクリア命令を
実行すると、インターバルタイマ1がクリアされると同
時にトグル・フリップフロップ2のQ出力が
The interval timer 1 is cleared by a reset input to the microcomputer. When the microcomputer executes the program in the normal sequence, when the clear instruction of the interval timer 1 at the address A is executed, the interval timer 1 is cleared and at the same time the Q output of the toggle flip-flop 2 is output.

〔0〕から
〔1〕に変化するため、第一キャプチャレジスタ4にプ
ログラムカウンタ3の内容であるA番地データがキャプ
チャされる。
Since the value changes from [0] to [1], the address A data, which is the content of the program counter 3, is captured in the first capture register 4.

【0022】一方トグル・フリップフロップ2のQ(反
転値)出力は〔1〕から
On the other hand, the Q (inverted value) output of the toggle flip-flop 2 is from [1].

〔0〕への変化のため、第二キ
ャプチャレジスタ5にはプログラムカウンタ3の内容は
キャプチャされず、従って比較回路6は一致検出せず、
Due to the change to [0], the contents of the program counter 3 are not captured in the second capture register 5, so the comparison circuit 6 does not detect a match,

〔0〕出力のままである。[0] Output remains.

【0023】次に、時間間隔T以内にB番地を実行する
とインターバルタイマ1はクリアされ、ドグル・フリッ
プフロップ2のQ(反転値)出力が
Next, when address B is executed within the time interval T, the interval timer 1 is cleared and the Q (inverted value) output of the toggle flip-flop 2 is output.

〔0〕から〔1〕に
変化するため、プログラムカウンタ3の内容であるB番
地データが第二キャプチャレジスタ5にラッチされる
が、第一キャプチャレジスタ4には前回のA番地データ
がラッチされたままであるため、比較回路6で一致検出
されず、ゲート7を介しリセット信号は発生しない。
Since the value changes from [0] to [1], the address B data, which is the content of the program counter 3, is latched in the second capture register 5, but the previous address A data is latched in the first capture register 4. Since the comparison circuit 6 does not detect the coincidence, the reset signal is not generated through the gate 7.

【0024】以降、正常にC番地→D番地ま実行する
と、第一及び第二キャプチャレジスタ5に交互にプログ
ラムカウンタの内容がラッチされるため、比較回路6の
一致検出パルス21は発生しない。その後、プログラム
の先頭に戻ったのち、A番地のカウンタクリア命令を実
行し、以上の動作が繰り返される。
After that, when the address C → D is normally executed, the contents of the program counter are alternately latched in the first and second capture registers 5, so that the coincidence detection pulse 21 of the comparison circuit 6 is not generated. Then, after returning to the beginning of the program, the counter clear instruction at the address A is executed, and the above operation is repeated.

【0025】次に、A番地及びB番地実行後に、図4に
示す(1)のような無限ループに入った場合について説
明する。この場合、時間T以内にクリア命令が実行され
ないため、インターバルタイマ1のオーバーフロー23
により、ORゲート7を介しリセット信号または割り込
み信号24が発生し、異常検出する。
Next, a case where an infinite loop such as (1) shown in FIG. 4 is entered after the execution of addresses A and B will be described. In this case, since the clear command is not executed within the time T, the overflow 23 of the interval timer 1
As a result, a reset signal or interrupt signal 24 is generated via the OR gate 7 to detect an abnormality.

【0026】また、従来例の欠点であった図4の(2)
のような無限ループに入った場合には、インターバルタ
イマ1のオーバーフロー23は発生しないが、一回目の
C番地実行時に第一キャプチャレジスタ4にC番地デー
タがキャプチャされ、2回目のC番地実行時に第二キャ
プチャレジスタ5にC番地データがキャプチャされるこ
とにより、比較回路6が一致検出パルス21を発生する
ことにより、ORゲート7を介してリセット信号または
割り込み信号24が発生し異常検出される。
Further, (2) in FIG. 4 which is a drawback of the conventional example.
When entering the infinite loop like the above, the overflow 23 of the interval timer 1 does not occur, but the C address data is captured in the first capture register 4 at the first execution of the C address, and at the second execution of the C address. When the address C data is captured in the second capture register 5 and the comparison circuit 6 generates the coincidence detection pulse 21, a reset signal or an interrupt signal 24 is generated via the OR gate 7 and abnormality is detected.

【0027】図2は本発明の第2の実施例のマイクロコ
ンピュータを示すブロック図である。
FIG. 2 is a block diagram showing a microcomputer of the second embodiment of the present invention.

【0028】図2において、本実施例は、比較回路8の
一致検出パルス21出力をカウントするカウンタ9を追
加した第2の実施例である。
In FIG. 2, this embodiment is a second embodiment in which a counter 9 for counting the output of the coincidence detection pulse 21 of the comparison circuit 8 is added.

【0029】カウンタ9は、比較回路8からの一致検出
パルス21をカウントし、オーバーフロー25が発生す
ると、ORゲート7を介してリセット信号または割り込
み信号24を発生する。また、比較回路8からの不一致
を示す信号により、カウンタ9の内容はクリアされる。
The counter 9 counts the coincidence detection pulse 21 from the comparison circuit 8 and, when an overflow 25 occurs, generates a reset signal or an interrupt signal 24 via the OR gate 7. Further, the content of the counter 9 is cleared by the signal indicating the disagreement from the comparison circuit 8.

【0030】従って、例えばカウンタ9が、比較回路8
からの一致検出パルス21が入力する毎にカウントアッ
プする4ビットのバイナリカウンタとすると、図4の
(2)に示すループに入った場合には、16回目の一致
検出パルス21が入力したときにオーバーフロー信号が
発生し、ORゲート7を介してリセット信号または割り
込み信号24が発生することになる。
Therefore, for example, the counter 9 is replaced by the comparison circuit 8
If a 4-bit binary counter that counts up each time the coincidence detection pulse 21 from is input, when the loop shown in (2) of FIG. 4 is entered, when the 16th coincidence detection pulse 21 is input. An overflow signal is generated, and a reset signal or interrupt signal 24 is generated via the OR gate 7.

【0031】即ち、前記第1の実施例では、実際には同
一アドレスのクリア命令を続けて実行した時点でプログ
ラムの暴走と判断する場合に適しているのに対し、第2
の実施例では、複数回続けて実行した場合に異常と判断
する場合に適している。更に、カウンタ9をプログラマ
ブルなカウンタ構成にして、所望のカウント値をカウン
トした時点でオーバーフロー25が発生するようにすれ
ば、より多くのシステムに対応したプログラム設計が可
能となる。
That is, the first embodiment is actually suitable for the case where it is judged that the program is out of control at the time when the clear instruction of the same address is continuously executed, whereas the second embodiment is
The embodiment is suitable for the case where it is judged as abnormal when it is executed a plurality of times in succession. Furthermore, if the counter 9 is configured as a programmable counter so that the overflow 25 occurs at the time when a desired count value is counted, it is possible to design a program corresponding to more systems.

【0032】尚、以上の各実施例はプログラムカウンタ
3は、16ビット長で示したが、これに限定されないこ
とはいうまでもない。またインターバルタイマ1の基準
クロックも複数種類から選択できるようにしてもよい。
In each of the above embodiments, the program counter 3 is shown to have a 16-bit length, but it goes without saying that it is not limited to this. The reference clock of the interval timer 1 may also be selected from a plurality of types.

【0033】[0033]

【発明の効果】以上説明したように、本発明はインター
バルタイマ(ウォッチドッグタイマ)をクリアする命令
を実行したときに、プログラムカウンタの内容をキャプ
チャするキャプチャレジスタを2組備え、クリア命令実
行時に各々のキャプチャレジスタに交互にプログラムカ
ウンタの内容をキャプチャし、2組のキャプチャジスタ
の内容を比較して一致検出することにより、インターバ
ルタイマのクリア命令自身を含むプログラム異常ループ
をも検出することができ、従来の単純なウォッチドッグ
タイマに比べ、プログラムの実行異常を確実に検出でき
る効果がある。
As described above, the present invention is provided with two sets of capture registers for capturing the contents of the program counter when an instruction for clearing the interval timer (watchdog timer) is executed, and each set has a capture register for executing the clear instruction. By alternately capturing the contents of the program counter in the capture register of No. 2 and comparing the contents of two sets of capture registers to detect a match, it is possible to detect a program abnormal loop including the interval timer clear instruction itself. Compared with the conventional simple watchdog timer, it has the effect of being able to reliably detect program execution abnormalities.

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

【図1】本発明の第1の実施例のマイクロコンピュータ
を示すブロック図である。
FIG. 1 is a block diagram showing a microcomputer according to a first embodiment of the present invention.

【図2】本発明の第2の実施例を示すブロック図であ
る。
FIG. 2 is a block diagram showing a second embodiment of the present invention.

【図3】従来のウォッチドッグタイマを説明するブロッ
ク図である。
FIG. 3 is a block diagram illustrating a conventional watchdog timer.

【図4】従来のウォッチドッグタイマによる暴走検出及
び各実施例を説明するフロー図である。
FIG. 4 is a flowchart illustrating runaway detection by a conventional watchdog timer and each embodiment.

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

1 インターバルタイマ 2 トグル・フリップフロップ 3 プログラムカウンタ 4 第一キャプチャレジスタ 5 第二キャプチャレジスタ 6,8 比較回路 7 ORゲート 9 カウンタ 20,22 キャプチャ信号 21 一致検出パルス 23,25 オーバーフロー 24 リセット信号又は割り込み信号 50 オーバーフロー信号 60 プログラム 70 プログラムの流れ 1 Interval Timer 2 Toggle Flip Flop 3 Program Counter 4 First Capture Register 5 Second Capture Register 6, 8 Comparison Circuit 7 OR Gate 9 Counter 20, 22 Capture Signal 21 Match Detection Pulse 23, 25 Overflow 24 Reset Signal or Interrupt Signal 50 Overflow signal 60 Program 70 Program flow

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 所定の基準クロックを入力として所定ク
ロック数カウント後にリセット信号又は割り込み信号を
発生し、かつクリア命令によりカウンタ値がクリアされ
るインターバルタイマと、プログラムカウンタの内容を
キャプチャ信号に基づきキャプチャする2組のキャプチ
ャレジスタと、前記クリア命令の実行時に前記プラグラ
ムカウンタのキャプチャ信号を前記2組のキャプチャジ
スタに対し交互に出力する手段と、前記2組のキャプチ
ャジスタの内容を比較し一致検出信号を発生する比較回
路とを備えた暴走検出回路を設けた事を特徴とするマイ
クロコンピュータ。
1. An interval timer that generates a reset signal or an interrupt signal after counting a predetermined number of clocks with a predetermined reference clock as an input and a counter value is cleared by a clear instruction, and captures the contents of a program counter based on a capture signal. 2 sets of capture registers, a means for alternately outputting the capture signal of the program counter to the 2 sets of capture registers when the clear instruction is executed, and a match detection signal for comparing the contents of the 2 sets of capture registers. A microcomputer characterized by being provided with a runaway detection circuit having a comparison circuit for generating
【請求項2】 交互に出力する手段が、クリア命令の実
行時に発生するパルスを入力とするトグルフリップフロ
ップである請求項1記載のマイクロコンピュータ。
2. The microcomputer according to claim 1, wherein the means for alternately outputting is a toggle flip-flop to which a pulse generated when a clear instruction is executed is input.
JP3257341A 1991-10-04 1991-10-04 Microcomputer Expired - Lifetime JP2693885B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3257341A JP2693885B2 (en) 1991-10-04 1991-10-04 Microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3257341A JP2693885B2 (en) 1991-10-04 1991-10-04 Microcomputer

Publications (2)

Publication Number Publication Date
JPH05100876A JPH05100876A (en) 1993-04-23
JP2693885B2 true JP2693885B2 (en) 1997-12-24

Family

ID=17305024

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3257341A Expired - Lifetime JP2693885B2 (en) 1991-10-04 1991-10-04 Microcomputer

Country Status (1)

Country Link
JP (1) JP2693885B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6030689B2 (en) * 2015-04-02 2016-11-24 京楽産業.株式会社 Game machine

Also Published As

Publication number Publication date
JPH05100876A (en) 1993-04-23

Similar Documents

Publication Publication Date Title
US4956807A (en) Watchdog timer
JPH0795291B2 (en) Watchdog timer
JP2693885B2 (en) Microcomputer
US5233573A (en) Digital data processor including apparatus for collecting time-related information
US5325341A (en) Digital timer apparatus and method
JPH0320776B2 (en)
EP0660230B1 (en) Improvements in or relating to program counters
JP2864663B2 (en) Watchdog timer
US6101571A (en) Circuit configuration for generating an interrupt signal for a microprocessor
JPH0743647B2 (en) Instruction loop catching mechanism in data processor
JPH0573361A (en) Microcomputer
JPH06187256A (en) Bus trace mechanism
SU1363221A1 (en) Program-debugging device
JPH04332056A (en) Microcomputer
JP2864630B2 (en) Microcomputer runaway detection circuit
SU1363210A1 (en) Signature analyser
JP2516711B2 (en) Watchdog timer device
JPH0736742A (en) Program operation monitoring circuit
KR100256230B1 (en) Timer unit with system watchdog function
SU1617442A1 (en) Device for monitoring the running of programs
RU2006920C1 (en) Device for priority interrupts
SU1387000A1 (en) Device for generating instruction flag
JPS62197838A (en) Watchdog timer controller
SU1383373A1 (en) Program debugging interrupt device
JPH04107748A (en) Microcomputer

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19970812