JPS6234356Y2 - - Google Patents

Info

Publication number
JPS6234356Y2
JPS6234356Y2 JP1981137083U JP13708381U JPS6234356Y2 JP S6234356 Y2 JPS6234356 Y2 JP S6234356Y2 JP 1981137083 U JP1981137083 U JP 1981137083U JP 13708381 U JP13708381 U JP 13708381U JP S6234356 Y2 JPS6234356 Y2 JP S6234356Y2
Authority
JP
Japan
Prior art keywords
microcomputer
periodic signal
capacitor
period
output
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
Application number
JP1981137083U
Other languages
Japanese (ja)
Other versions
JPS5844646U (en
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 filed Critical
Priority to JP13708381U priority Critical patent/JPS5844646U/en
Publication of JPS5844646U publication Critical patent/JPS5844646U/en
Application granted granted Critical
Publication of JPS6234356Y2 publication Critical patent/JPS6234356Y2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Description

【考案の詳細な説明】 本考案はマイクロコンピユータのループ処理時
間を監視することによつて暴走を検出するデツト
マンタイマに関し、特に簡単な構成でありなが
ら、ループ処理に対応して出力される周期信号を
確実に監視することが出来るデツトマンタイマに
関するものである。
[Detailed description of the invention] This invention relates to a deadman timer that detects runaway by monitoring the loop processing time of a microcomputer, and in particular to a deadman timer that has a simple configuration yet can reliably monitor the periodic signal that is output in response to the loop processing.

近年、電子技術の急速な発達に伴なつて、種々
の分野にマイクロコンピユータによる制御が利用
される傾向にある。この場合、自動車あるいは産
業機器等に用いた場合には、その使用条件が過酷
であるために、ノイズあるいは静電気等によつて
暴走状態となつてしまう場合がある。従つて、マ
イクロコンピユータを使用するに当つては、暴走
を迅速にかつ確実に検出してフエールセーフ制御
に切り換えるための暴走検出装置が用いられてい
る。
In recent years, with the rapid development of electronic technology, there is a tendency for control by microcomputers to be used in various fields. In this case, when used in automobiles, industrial equipment, etc., the operating conditions are severe, and noise or static electricity may cause the device to run out of control. Therefore, when using a microcomputer, a runaway detection device is used to quickly and reliably detect runaway and switch to fail-safe control.

この場合、従来一般に用いられている暴走検出
装置は、ループ処理時間を監視するデツトマンタ
イマを設け、ループ処理に対応して出力される周
期信号の周期が設定時間以上に長くなつた場合を
暴走状態として検出するものである。
In this case, the conventionally commonly used runaway detection device is equipped with a deadman timer that monitors the loop processing time, and detects a runaway condition when the period of the periodic signal output in response to the loop processing becomes longer than the set time. It is something to detect.

しかしながら、上記構成によるデツトマンタイ
マに於いては、カウンタを用いて基準クロツク信
号をカウントすることによつて、デイジタル的に
周期信号のパルス幅を計測するものであるため
に、構造が極めて複雑で高価なものとなつてしま
う問題を有している。
However, in the dead man timer with the above configuration, the pulse width of the periodic signal is digitally measured by counting the reference clock signal using a counter, so the structure is extremely complicated and expensive. It has the problem of becoming a thing.

従つて、本考案による目的は、構造が極めて簡
単でありながら、確実な動作が得られるデツトマ
ンタイマを提供することである。
Therefore, it is an object of the present invention to provide a dead man timer which has an extremely simple structure and yet provides reliable operation.

このような目的を達成するために本考案は、周
期信号の“H”期間においてのみ充電る充電回路
と、周期信号の“L”期間においてのみ充電る充
電回路とを設け、この両充電回路から出力される
信号の何れか一方が設定値以上に上昇した場合を
マイクロコンピユータの暴走として判別するもの
である。以下、図面を用いて本考案によるデツト
マンタイマを詳細に説明する。
In order to achieve this purpose, the present invention provides a charging circuit that charges only during the "H" period of the periodic signal and a charging circuit that charges only during the "L" period of the periodic signal. If either one of the output signals rises above a set value, it is determined that the microcomputer has gone out of control. Hereinafter, the dead man timer according to the present invention will be explained in detail with reference to the drawings.

第1図は本考案によるデツトマンタイマの一実
施例を示す回路図である。同図に於いて1はマイ
クロコンピユータであつて、出力ポートPAから
はループ処理に対応した周期T0で“H”期間が
T1の周期信号Aを発生するように構成されてい
る。2,3は電源+Vccとアース間に直列接続さ
れた抵抗とコンデンサであつて、充電回路を構成
している。4は前記コンデンサ3の両端間に並列
接続され、かつ抵抗5を介して周期信号Aをベー
ス入力とする放電用のトランジスタ、6,7は電
源+Vccとアース間に直列接続された抵抗とコン
デンサであつて、充電回路を構成している。8は
前記コンデンサ7の両端間に並列接続され、かつ
周期回路Aをインバータ9および抵抗10を介し
てベース入力とする放電用のトランジスタ、11
は比較器であつて、両充電回路の出力をダイオー
ド12,13を介して正極入力とし、電源+Vcc
を抵抗14,15によつて分圧した上限値VH
負極入力としている。16は比較器11の“H”
出力を反転したリセツト信号Bをマイクロコンピ
ユータ1の入力ポートPBに供給するインバータ
である。
FIG. 1 is a circuit diagram showing an embodiment of a dead man timer according to the present invention. In the figure, 1 is a microcomputer, and from the output port P A there is an "H" period with a period T 0 corresponding to loop processing.
It is configured to generate a periodic signal A of T1 . Reference numerals 2 and 3 are a resistor and a capacitor connected in series between the power supply +Vcc and the ground, forming a charging circuit. 4 is a discharging transistor connected in parallel between both ends of the capacitor 3 and whose base input is the periodic signal A via a resistor 5; 6 and 7 are a resistor and a capacitor connected in series between the power supply +Vcc and the ground. This makes up the charging circuit. 8 is a discharging transistor 11 connected in parallel between both ends of the capacitor 7 and having the periodic circuit A as a base input via an inverter 9 and a resistor 10;
is a comparator, which uses the outputs of both charging circuits as positive inputs via diodes 12 and 13, and connects the power supply +Vcc.
The upper limit value V H obtained by dividing the voltage by resistors 14 and 15 is used as the negative input. 16 is “H” of comparator 11
This is an inverter that supplies a reset signal B whose output is inverted to the input port P B of the microcomputer 1.

このように構成されたデツトマンタイマに於い
て、マイクロコンピユータ1の出力ポートPA
ら第2図aに示す周期T0でデユーテイ50%の周
期信号Aが発生されると、この周期信号Aの
“H”期間に於いてトランジスタ4がオンとな
り、これに伴なつてコンデンサ3の充電電荷を急
速放電させる。次に、周期信号Aが“L”になる
と、トランジスタ4がオフとなるためにコンデン
サ3は抵抗2を介して充電される。この結果、抵
抗2とコンデンサ3とによつて構成される充電回
路の出力は第2図bに示すように抵抗2とコンデ
ンサ3の値によつて設定された時定数に対応して
上昇し、その最大値は周期信号Aの“L”期間幅
に対応して上昇することになる。しかし、正常時
に於ける周期信号Aの周期に於いては、この積分
出力は抵抗14,15によつて設定された設定値
Hに達することはなく、比較器11は“L”出
力を発生し続ける。
In the dead man timer configured in this manner, when a periodic signal A with a duty of 50% is generated from the output port P A of the microcomputer 1 with a period T 0 shown in FIG. During this period, the transistor 4 is turned on, and the charge in the capacitor 3 is rapidly discharged. Next, when the periodic signal A becomes "L", the capacitor 3 is charged via the resistor 2 because the transistor 4 is turned off. As a result, the output of the charging circuit constituted by the resistor 2 and the capacitor 3 increases in accordance with the time constant set by the values of the resistor 2 and the capacitor 3, as shown in FIG. 2b. The maximum value increases in accordance with the "L" period width of the periodic signal A. However, during the period of the periodic signal A during normal operation, this integrated output does not reach the set value V H set by the resistors 14 and 15, and the comparator 11 generates an "L" output. Continue to do so.

次に何かの原因によつてマイクロコンピユータ
1が暴走し、これに伴なつて周期信号Aの周期が
長くなると、第2図aに時点t1以後で示すように
“L”期間が広くなる。この結果、充電出力が第
2図bに時点t1以後で示すように周期信号Aの
“L”期間幅に対応して上昇し、時点t2に於いて
上限値VHを越える。このようにして、充電出力
が上限値VHを越えると、比較器11の出力が反
転して“H”となり、この“H”出力がインバー
タ16を介してリセツト信号Bとしてマイクロコ
ンピユータ1の入力ポートPBに供給されてフエ
ールセーフ制御が行なわれる。このようにして、
周期信号Aに対する“L”期間を監視することに
よつて周期T0を監視してマイクロコンピユータ
1の暴走を検出している。
Next, if the microcomputer 1 goes out of control for some reason and the period of the periodic signal A becomes longer, the "L" period becomes wider as shown in Figure 2a after time t1. . As a result, the charging output increases in accordance with the "L" period width of the periodic signal A, as shown after time t1 in FIG. 2b, and exceeds the upper limit value VH at time t2 . In this way, when the charging output exceeds the upper limit value VH , the output of the comparator 11 is inverted and becomes "H", and this "H" output is input to the microcomputer 1 as the reset signal B via the inverter 16. The signal is supplied to port P B for fail-safe control. In this way,
By monitoring the "L" period for the periodic signal A, the cycle T0 is monitored and runaway of the microcomputer 1 is detected.

一方、周期信号Aの一部はインバータ9に於い
て反転された後に抵抗10を介してトランジスタ
8のベースに供給されている。従つて、このトラ
ンジスタ8は第2図aに示す周期信号Aの“L”
期間に於いてオンとなつてコンデンサ7の電荷を
急速放電し、“H”期間に於いてオフとなつてコ
ンデンサ7が抵抗6とコンデンサ7の値によつて
決定される時定数に対応して充電される。この結
果、マイクロコンピユータ1の暴走時に周期信号
Aの“H”期間が長くなると、抵抗6とコンデン
サ7によつて構成される充電回路の充電出力が上
限値VHを越えることになり、これに伴なつて比
較器11の出力が“H”に反転してマイクロコン
ピユータ1に対するリセツト制御が行なわれる。
従つて、この場合には、周期信号Aの“H”期間
を監視して暴走を検出していることになり、全体
としては周期信号Aの“L”期間および“H”期
間をそれぞれ独立に監視して周期信号Aの異状を
検出し、これによつてマイクロコンピユータ1の
暴走を監視していることになる。
On the other hand, a part of the periodic signal A is inverted in an inverter 9 and then supplied to the base of the transistor 8 via a resistor 10. Therefore, this transistor 8 receives the "L" level of the periodic signal A shown in FIG. 2a.
The capacitor 7 is turned on during the "H" period to quickly discharge the charge on the capacitor 7, and is turned off during the "H" period so that the capacitor 7 is turned on in response to a time constant determined by the values of the resistor 6 and the capacitor 7. It will be charged. As a result, when the "H" period of the periodic signal A becomes longer when the microcomputer 1 runs out of control, the charging output of the charging circuit constituted by the resistor 6 and the capacitor 7 will exceed the upper limit value VH . At the same time, the output of the comparator 11 is inverted to "H", and the microcomputer 1 is reset.
Therefore, in this case, runaway is detected by monitoring the "H" period of periodic signal A, and as a whole, the "L" period and "H" period of periodic signal A are monitored independently. The microcomputer 1 is monitored to detect abnormalities in the periodic signal A, thereby monitoring runaway of the microcomputer 1.

以上説明したように、本考案によるデツトマン
タイマは、マイクロコンピユータからループ処理
に対応して出力される周期信号の“L”期間を充
電する充電回路と、上記周期信号の“H”期間を
充電する充電回路とを設け、この両充電回路の少
なくとも一方の出力が設定レベルを越えたことを
比較器が検出した時、マイクロコンピユータが暴
走状態にあると判断してマイクロコンピユータに
リセツト処理を加えるものである。このために、
周期信号の“L”期間と“H”期間の両方を監視
することから、マイクロコンピユータに対する暴
走の検出が確実になる。また、従来のように複雑
でかつ高価なデイジタル回路を用いることなく、
簡単なアナルグ回路によつて、マイクロコンピユ
ータの暴走検出が行える等の種々優れた効果を有
する。
As explained above, the dead man timer according to the present invention includes a charging circuit that charges the "L" period of the periodic signal output from the microcomputer in response to loop processing, and a charging circuit that charges the "H" period of the periodic signal. When the comparator detects that the output of at least one of these charging circuits exceeds a set level, it determines that the microcomputer is in a runaway state and performs a reset process on the microcomputer. . For this,
Since both the "L" period and the "H" period of the periodic signal are monitored, runaway of the microcomputer can be detected reliably. In addition, without using complicated and expensive digital circuits as in the past,
It has various excellent effects such as being able to detect runaway of a microcomputer with a simple analog circuit.

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

第1図は本考案によるデツトマンタイマの一実
施例を示す回路図、第2図a,bは第1図に示す
回路の各部動作波形図である。 1……マイクロコンピユータ、2,5,6,1
0,14,15……抵抗、3,7……コンデン
サ、4,8……トランジスタ、9,16……イン
バータ、11……比較器、12,13……ダイオ
ード。
FIG. 1 is a circuit diagram showing an embodiment of a dead man timer according to the present invention, and FIGS. 2a and 2b are operation waveform diagrams of various parts of the circuit shown in FIG. 1. 1...Microcomputer, 2, 5, 6, 1
0,14,15...Resistor, 3,7...Capacitor, 4,8...Transistor, 9,16...Inverter, 11...Comparator, 12,13...Diode.

Claims (1)

【実用新案登録請求の範囲】[Scope of utility model registration request] 電源とアース間に直列接続された抵抗とコンデ
ンサとによつて構成される第1および第2の充電
回路と、前記第1の充電回路におけるコンデンサ
に対して並列接続されるとともに、マイクロコン
ピユータからループ処理に対応して出力される周
期信号によつてオンされることにより充電電荷を
急速放電させる第1のトランジスタと、前記周期
信号を反転するインバータと、前記第2の充電回
路におけるコンデンサに対して並列接続されると
ともに、前記インバータの出力信号によつてオン
されることにより充電電荷を急速放電させる第2
のトランジスタと、前記第1および第2の充電回
路から送出される充電出力が予め定められた値を
越えた時にマイクロコンピユータが暴走している
ものと判断してこのマイクロコンピユータにリセ
ツト処理を加える比較器とを備えたことを特徴と
するデツトマンタイマ。
First and second charging circuits each including a resistor and a capacitor connected in series between a power supply and ground, connected in parallel to the capacitor in the first charging circuit, and connected in a loop from a microcomputer. a first transistor that rapidly discharges a charged charge by being turned on by a periodic signal output in response to processing; an inverter that inverts the periodic signal; and a capacitor in the second charging circuit. a second circuit connected in parallel and turned on by the output signal of the inverter to quickly discharge the charged charge;
When the charging output sent from the first and second charging circuits exceeds a predetermined value, it is determined that the microcomputer is running out of control, and a reset process is applied to the microcomputer. A detstomer timer characterized by being equipped with a container.
JP13708381U 1981-09-17 1981-09-17 Dettman timer Granted JPS5844646U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13708381U JPS5844646U (en) 1981-09-17 1981-09-17 Dettman timer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13708381U JPS5844646U (en) 1981-09-17 1981-09-17 Dettman timer

Publications (2)

Publication Number Publication Date
JPS5844646U JPS5844646U (en) 1983-03-25
JPS6234356Y2 true JPS6234356Y2 (en) 1987-09-02

Family

ID=29930377

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13708381U Granted JPS5844646U (en) 1981-09-17 1981-09-17 Dettman timer

Country Status (1)

Country Link
JP (1) JPS5844646U (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4513417A (en) * 1982-11-29 1985-04-23 Tektronix, Inc. Automatic processor restart circuit
JPH0751631Y2 (en) * 1985-03-29 1995-11-22 日置電機株式会社 CPU runaway detection circuit

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5132414A (en) * 1974-09-13 1976-03-19 Nippon Steel Corp Crrmo keiteigokinko
JPS52119836A (en) * 1976-04-02 1977-10-07 Hitachi Ltd Calculator control system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5132414A (en) * 1974-09-13 1976-03-19 Nippon Steel Corp Crrmo keiteigokinko
JPS52119836A (en) * 1976-04-02 1977-10-07 Hitachi Ltd Calculator control system

Also Published As

Publication number Publication date
JPS5844646U (en) 1983-03-25

Similar Documents

Publication Publication Date Title
JPH0120777B2 (en)
US5426776A (en) Microprocessor watchdog circuit
US6297761B1 (en) Measuring apparatus for digitally detecting analog measured variables
JPS6234356Y2 (en)
JP2658592B2 (en) Oscillation stop detection circuit
US4845379A (en) Sense circuit for detecting absence of a pulse train
JPS58219633A (en) Keyboard with encoder using microcomputer
JPS625726Y2 (en)
JPS625725Y2 (en)
JPH0143650Y2 (en)
JPH0132137Y2 (en)
KR890006608Y1 (en) Error movement protect circuits of micom
JPH0426916Y2 (en)
JPH049638Y2 (en)
JP2504003Y2 (en) Reset circuit of controller
JPS63644A (en) Watch dog timer circuit
JP2558332Y2 (en) Voltage monitoring circuit
JPH04418Y2 (en)
JPS60258625A (en) Initial reset circuit
JPS6243390Y2 (en)
JPH0776933B2 (en) Reset device for digital computer
KR890004800Y1 (en) Error movement cheek circuits of micom
JPH0132139Y2 (en)
JPH0579647U (en) Computer supervisory circuit
KR0112449Y1 (en) Apparatus for terminal error