JPH07101391B2 - Watch / dog / timer inhibit circuit - Google Patents

Watch / dog / timer inhibit circuit

Info

Publication number
JPH07101391B2
JPH07101391B2 JP63197741A JP19774188A JPH07101391B2 JP H07101391 B2 JPH07101391 B2 JP H07101391B2 JP 63197741 A JP63197741 A JP 63197741A JP 19774188 A JP19774188 A JP 19774188A JP H07101391 B2 JPH07101391 B2 JP H07101391B2
Authority
JP
Japan
Prior art keywords
watch dog
timer
cpu
watch
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 - Lifetime
Application number
JP63197741A
Other languages
Japanese (ja)
Other versions
JPH0245839A (en
Inventor
明洋 桐沢
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP63197741A priority Critical patent/JPH07101391B2/en
Publication of JPH0245839A publication Critical patent/JPH0245839A/en
Publication of JPH07101391B2 publication Critical patent/JPH07101391B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、マイクロコンピュータの異常動作時にマイク
ロコンピュータをハードウェア的にリセットし、初期動
作から再スタートさせ、動作を正常に戻す働きをするウ
ォッチ・ドッグ・タイマに関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Industrial application] The present invention is a watch that resets a microcomputer in a hardware manner when it abnormally operates, restarts it from an initial operation, and returns the operation to a normal state. -It relates to the dog timer.

〔従来の技術〕[Conventional technology]

ウォッチ・ドッグ・タイマとは、運用するプログラムの
中に常にウォッチ・ドッグ・タイマをリトリガするルー
チンを組み込んでおき、一定の時間以内にCPUがウォッ
チ・ドッグ・タイマをリトリガできなくなると、CPUが
異常動作をおこしたと判断してCPUをリセットすること
により、初期動作から再スタートさせ、正常動作に戻す
ものである。
The watch dog timer is a routine that retriggers the watch dog timer in the operating program, and if the CPU cannot retrigger the watch dog timer within a certain period of time, the CPU will fail. By resetting the CPU after determining that the operation has been performed, the operation is restarted from the initial operation and then returned to the normal operation.

しかし、プログラムのテスト中やデバッグ中に常にウォ
ッチ・ドッグ・タイマをリトリガするルーチンを走らせ
るわけにはいかないので、どうしてもウォッチ・ドッグ
・タイマを動作を禁止する必要がある。
However, since it is not possible to always run a routine that retriggers the watch dog timer while testing or debugging a program, it is absolutely necessary to disable the watch dog timer.

従来、ウォッチ・ドッグ・タイマの動作を禁止する手段
としては、第2図および第3図に示すものがあった。
Conventionally, as means for prohibiting the operation of the watch dog timer, there has been one shown in FIGS. 2 and 3.

第2図において、1はCPU、2はウォッチ・ドッグ・タ
イマ、3はCPUのアドレスバス,データバスのバッフ
ァ、4はプログラムを格納しているROM、5はRAM、6は
入出力部(以下「I/O」という)であり、I/O6はウォッ
チ・ドッグ・タイマにソフトウェアでパルスを送る働き
もする。7はウォッチ・ドッグ禁止許可切替スイッチ、
8はウォッチ・ドッグの時定数を決めるコンデンサ、9
はパワーオンリセット回路である。第2図の系統におい
ては、ウォッチ・ドッグを禁止するために、CPUのリセ
ット入力として、CとRとダイオードの組合せからなる
普通のパワーオンリセット回路9を使用している。
In FIG. 2, 1 is a CPU, 2 is a watch dog timer, 3 is a CPU address bus, a data bus buffer, 4 is a ROM storing a program, 5 is RAM, 6 is an input / output unit (hereinafter "I / O"), and I / O6 also works by sending a pulse to the watchdog timer in software. 7 is a watch dog prohibition permission change switch,
8 is a capacitor that determines the time constant of the watch dog, 9
Is a power-on reset circuit. In the system of FIG. 2, a normal power-on reset circuit 9 composed of a combination of C, R and a diode is used as the reset input of the CPU in order to inhibit the watch dog.

第3図は別の手段を示す系統図であり、同図において第
2図と同一部分又は相当部分には同一符号が付してあ
る。第3図の系統は、トランジスタ10がオンになった時
にコンデンサ8を強制的に充電することによってウォッ
チ・ドッグを禁止するものである。第3図において、論
理回路11と12が必要となるのは、パワーオン時にコンデ
ンサ8が充電されたままだと、パワーオンリセットが効
かないためである。
FIG. 3 is a system diagram showing another means, in which the same or corresponding parts as those in FIG. 2 are designated by the same reference numerals. The system of FIG. 3 inhibits the watchdog by forcibly charging capacitor 8 when transistor 10 is turned on. In FIG. 3, the reason why the logic circuits 11 and 12 are required is that the power-on reset does not work if the capacitor 8 remains charged at the time of power-on.

〔発明が解決しようとする課題〕[Problems to be Solved by the Invention]

上述した従来のウォッチ・ドッグを禁止する手段のう
ち、第2図に示す手段では、リセット回路が全く別にな
ってしまうので、ウォッチ・ドッグ・タイマ2に電源電
圧の監視機能が組み込まれていても、全く無効になって
しまう。
Of the above-mentioned conventional means for prohibiting the watch dog, the means shown in FIG. 2 has a completely different reset circuit, so that even if the watch dog timer 2 has a built-in power supply voltage monitoring function. , Will be completely invalid.

また、第3図に示す手段では、ウォッチ・ドッグ・タイ
マ2の電源電圧の監視機能は働くものの、外付け部品が
多く、禁止回路が複雑になってしまうという欠点があっ
た。
Further, the means shown in FIG. 3 has a drawback in that although the function of monitoring the power supply voltage of the watch dog timer 2 works, there are many external parts and the prohibition circuit becomes complicated.

〔課題を解決するための手段〕[Means for Solving the Problems]

このような欠点を除去するために本発明は、CPUの異常
動作を監視する役割をもつウォッチ・ドッグ・タイマの
動作を禁止する回路において、CPUから出力されるALE信
号,RD信号,WR信号,チップセレクト信号などの制御信号
をリトリガパルスとしてウォッチ・ドッグ・タイマに加
えることによってウォッチ・ドッグ・タイマの動作を禁
止するウォッチ・ドッグ禁止許可切替スイッチを設ける
ようにしたものである。
In order to eliminate such drawbacks, the present invention provides an ALE signal, an RD signal, a WR signal, an RD signal, a WR signal, which are output from the CPU, in a circuit for inhibiting the operation of the watch dog timer which has a role of monitoring the abnormal operation of the CPU. A watch dog prohibition permission changeover switch for prohibiting the operation of the watch dog timer by adding a control signal such as a chip select signal as a retrigger pulse to the watch dog timer is provided.

〔作用〕[Action]

本発明によるウォッチ・ドッグ・タイマ禁止回路におい
ては、少ない部品点数の簡単な回路でウォッチ・ドッグ
を禁止することができ、ウォッチ・ドッグ・タイマのパ
ワーオンリセット、電源電圧監視機能を生かすことがで
きる。
In the watch dog timer prohibiting circuit according to the present invention, the watch dog can be prohibited with a simple circuit having a small number of parts, and the power-on reset and power supply voltage monitoring functions of the watch dog timer can be utilized. .

〔実施例〕〔Example〕

第1図は、本発明によるウォッチ・ドッグ・タイマ禁止
回路の一実施例を示す系統図である。第1図において、
1はCPU、2はウォッチ・ドッグ・タイマ、3はCPUのア
ドレスバス,データバスのバッファ、4はプログラムを
格納しているROM、5はRAM、6は入出力部(以下「I/
O」という)であり、I/O6はウォッチ・ドッグ・タイマ
にソフトウェアでパルスを送る働きもうる。7はウォッ
チ・ドッグ禁止許可切替スイッチ、8はウォッチ・ドッ
グの時定数を決めるコンデンサである。
FIG. 1 is a system diagram showing an embodiment of a watch dog timer prohibiting circuit according to the present invention. In FIG.
1 is a CPU, 2 is a watch dog timer, 3 is a CPU address bus, a data bus buffer, 4 is a ROM storing a program, 5 is RAM, 6 is an input / output unit (hereinafter referred to as "I /
"O"), and I / O6 may also work by sending a pulse to the watchdog timer in software. Reference numeral 7 is a watch dog prohibition permission changeover switch, and 8 is a capacitor for determining the time constant of the watch dog.

本発明によるウォッチ・ドッグ・タイマ禁止回路では、
ウォッチ・ドッグの禁止は、CPU1のALE信号をウォッチ
・ドッグ・タイマ2のクロック入力端子CKに加えること
により実現している。これは、ウォッチ・ドッグ・タイ
マ2をプログラムでリトリガする代わりに、CPU1から定
期的に出力されている信号を用いてハード的にリトリガ
するものである。本回路においては、ウォッチ・ドッグ
・タイマ2のリセット出力や、時定数を決めるコンデン
サを、ウォッチ・ドッグを禁止しない場合と同じ状態に
しているため、ウォッチ・ドッグ・タイマ2の機能を損
なうことなしに、パワーオンリセットや電源電圧の監視
によるリセット機能も有効であるうえ、部品点数を大幅
に削減できる。また、何らかの原因でCPU1に異常がおき
CPU制御信号が途絶えたときリセットがかかるため、プ
ログラムのウォッチ・ドッグ・タイマのリトリガ・ルー
チンを組み込むことなく、CPU1を正常に動かし続けるこ
とが可能である。
In the watch dog timer prohibit circuit according to the present invention,
The watchdog prohibition is realized by adding the ALE signal of the CPU1 to the clock input terminal CK of the watchdog timer 2. In this method, instead of retriggering the watch dog timer 2 by a program, a signal periodically output from the CPU 1 is used to retrigger it in hardware. In this circuit, the reset output of the watch dog timer 2 and the capacitor that determines the time constant are in the same state as when the watch dog is not disabled, so the function of the watch dog timer 2 is not impaired. In addition, the power-on reset and the reset function by monitoring the power supply voltage are effective, and the number of parts can be significantly reduced. Also, for some reason, CPU1 becomes abnormal.
Since the reset is applied when the CPU control signal is interrupted, it is possible to keep the CPU1 operating normally without incorporating a retrigger routine for the watch dog timer of the program.

本実施例では、ウォッチ・ドッグ・タイマのリトリガパ
ルスとしてALE信号を用いたが、RD信号,WR信号,チップ
セレクト信号等その他のCPU制御信号を利用しても、同
じ効果が得られる。
Although the ALE signal is used as the retrigger pulse of the watch dog timer in this embodiment, the same effect can be obtained by using other CPU control signals such as the RD signal, the WR signal, and the chip select signal.

〔発明の効果〕〔The invention's effect〕

以上説明したように本発明は、CPUから出力される制御
信号をウォッチ・ドッグ・タイマに加えることによって
ウォッチ・ドッグ・タイマの動作を禁止するウォッチ・
ドッグ禁止許可切替スイッチを設けたことにより、少な
い部品点数の簡単な回路でウォッチ・ドッグを禁止する
ことができ、ウォッチ・ドッグ・タイマのパワーオンリ
セット,電源電圧監視機能を生かすことができる効果が
ある。また、何らかの原因でCPUに異常がおこり制御信
号が止まった時はリセットがかかり、CPUを正常に戻す
ので、この面では従来のウォッチ・ドッグ・タイマ禁止
回路に比べて信頼性が高い。
As described above, the present invention provides a watchdog timer that inhibits the operation of the watchdog timer by adding the control signal output from the CPU to the watchdog timer.
By providing the dog prohibition permission changeover switch, the watchdog can be prohibited with a simple circuit with a small number of parts, and the power-on reset of the watchdog timer and the power supply voltage monitoring function can be effectively used. is there. In addition, when the CPU fails for some reason and the control signal stops, the control signal is reset and the CPU returns to normal. In this respect, it is more reliable than the conventional watch dog timer prohibit circuit.

本発明はマイクロコンピュータ応用回路のすべてに適用
可能であり、特に、小型化や信頼性を要求されている装
置に用いて益するところが大である。
INDUSTRIAL APPLICABILITY The present invention can be applied to all microcomputer application circuits, and in particular, it has a great advantage when it is used in a device that requires miniaturization and reliability.

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

第1図は本発明によるウォッチ・ドッグ・タイマ禁止回
路を示す系統図、第2図および第3図は従来のウォッチ
・ドッグ・タイマ禁止回路を示す系統図である。 1……CPU、2……ウォッチ・ドッグ・タイマ、3……
バッファ、4……ROM、5……RAM、6……I/O、7……
ウォッチ・ドッグ禁止許可切替スイッチ、8……コンデ
ンサ。
FIG. 1 is a system diagram showing a watch dog timer inhibiting circuit according to the present invention, and FIGS. 2 and 3 are system diagrams showing a conventional watch dog timer inhibiting circuit. 1 ... CPU, 2 ... Watchdog timer, 3 ...
Buffer, 4 …… ROM, 5 …… RAM, 6 …… I / O, 7 ……
Watch dog prohibition permission changeover switch, 8 ... Capacitor.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】CPUの異常動作を監視する役割をもつウォ
ッチ・ドッグ・タイマの動作を禁止する回路において、
前記CPUから出力されるALE信号,RD信号,WR信号,チップ
セレクト信号などの制御信号をリトリガパルスとしてウ
ォッチ・ドッグ・タイマに加えることによってウォッチ
・ドッグ・タイマの動作を禁止するウォッチ・ドッグ禁
止許可切替スイッチを備えたことを特徴とするウォッチ
・ドッグ・タイマ禁止回路。
1. A circuit for prohibiting the operation of a watch dog timer, which has a role of monitoring an abnormal operation of a CPU,
Watchdog prohibit enable / disable switch for prohibiting the operation of the watchdog timer by adding control signals such as ALE signal, RD signal, WR signal, and chip select signal output from the CPU to the watchdog timer as retrigger pulses A watch dog timer prohibition circuit characterized by having a switch.
JP63197741A 1988-08-08 1988-08-08 Watch / dog / timer inhibit circuit Expired - Lifetime JPH07101391B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63197741A JPH07101391B2 (en) 1988-08-08 1988-08-08 Watch / dog / timer inhibit circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63197741A JPH07101391B2 (en) 1988-08-08 1988-08-08 Watch / dog / timer inhibit circuit

Publications (2)

Publication Number Publication Date
JPH0245839A JPH0245839A (en) 1990-02-15
JPH07101391B2 true JPH07101391B2 (en) 1995-11-01

Family

ID=16379570

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63197741A Expired - Lifetime JPH07101391B2 (en) 1988-08-08 1988-08-08 Watch / dog / timer inhibit circuit

Country Status (1)

Country Link
JP (1) JPH07101391B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61226845A (en) * 1985-03-30 1986-10-08 Nec Corp Watch dog timer

Also Published As

Publication number Publication date
JPH0245839A (en) 1990-02-15

Similar Documents

Publication Publication Date Title
US5283792A (en) Power up/power down controller and power fail detector for processor
EP0426663B1 (en) Apparatus for defined switching of a microcomputer to standby mode
US4752930A (en) Watch dog timer
US4580246A (en) Write protection circuit and method for a control register
KR20000023208A (en) An improved watchdog timer control circuit with permanent and programmable enablement
EP0658842A1 (en) Watch dog timer device
US5022027A (en) Communications interface and system for radiation recovery of a microprocessor portion thereof
JPH07101391B2 (en) Watch / dog / timer inhibit circuit
JPH0460245B2 (en)
JPH0822422A (en) Memory device
JPH0435958Y2 (en)
JP2504502B2 (en) Integrated circuit card
JP2809752B2 (en) Memory access circuit
JPH0325813B2 (en)
JPH054039Y2 (en)
JPH0289111A (en) Electronic instrument
JP3757407B2 (en) Control device
JPS5850409Y2 (en) information processing equipment
JP2870083B2 (en) Microcomputer with built-in watchdog timer
JPH02171935A (en) Runaway preventing circuit for microprocessor
JPS6315346A (en) Memory protection circuit
JPH039487B2 (en)
JP2731386B2 (en) Control device
JPH0414699A (en) Device for preventing eeprom from being inactive
JPS6228820A (en) Control device of elevator