JPS61123943A - Microprocessor device - Google Patents

Microprocessor device

Info

Publication number
JPS61123943A
JPS61123943A JP59245682A JP24568284A JPS61123943A JP S61123943 A JPS61123943 A JP S61123943A JP 59245682 A JP59245682 A JP 59245682A JP 24568284 A JP24568284 A JP 24568284A JP S61123943 A JPS61123943 A JP S61123943A
Authority
JP
Japan
Prior art keywords
circuit
signal
wdt
clear
power
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
JP59245682A
Other languages
Japanese (ja)
Inventor
Susumu Nakamura
晋 中村
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.)
Yokogawa Electric Corp
Original Assignee
Yokogawa 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 Yokogawa Electric Corp filed Critical Yokogawa Electric Corp
Priority to JP59245682A priority Critical patent/JPS61123943A/en
Publication of JPS61123943A publication Critical patent/JPS61123943A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0751Error or fault detection not based on redundancy
    • G06F11/0754Error or fault detection not based on redundancy by exceeding limits
    • G06F11/0757Error or fault detection not based on redundancy by exceeding limits by exceeding a time limit, i.e. time-out, e.g. watchdogs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To improve the probability of abnormality detection by impressing the power breakdown pre-notice signal from power circuit and the signal which is issued at a specific time after the power is turned on to the clear terminal of watch dog timer circuit. CONSTITUTION:The power breakdown pre-notice signal inversion PDS is impressed to a clear terminal 23 of a watch dog timer WDT circuit 2 through a signal line 60 and OR gate 4. A circuit 7 which generates timer signal and is composed of a gate circuit 71 and mono/multi 72 generates a timer signal inversion TIM which is issued after a specific elapse of time since the power is turned on. This signal inversion TIM is impressed to the terminal 23 of the WDT 2 through a signal line 70 and the gate circuit 4. By impressing the signal inversion PDS and the signal inversion TIM to the terminal 23 in this way, it is possible to execute the similar function as WDT clear routine, even if it is not provided with in the program. Therefore, the number of clear routine can be reduced and the probability of abnormality detection can be improved.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、ウォッチ・ドッグ・タイマ回路(以下WDT
回路と略す)を有したマイクロプロセッサ装置に関する
DETAILED DESCRIPTION OF THE INVENTION (Industrial Application Field) The present invention provides a watch dog timer circuit (hereinafter referred to as WDT).
The present invention relates to a microprocessor device having a circuit (abbreviated as "circuit").

(従来の技術) WDT回路は゛、マイクロプロセッサ(以下μPと略す
)の動作、即ち、プログラムの走行を監視し、異常を検
出した場合(一定時間を経過してもWDTのクリアが行
われない場合)に、μPにリセットをかけプログラムを
再スタートさせるものである。このようなWDT回路の
クリア信号として、(a)μPからのクリア信号、(b
)電源電圧監視部が電源電圧の低下を検知して出すクリ
ア信号を用いるものがある。ここで、(a )のμPか
らのクリア信号は、プログラム上の適当な位冒におかれ
たWDTクリアルーチンで出されるのに対し、(b)の
電源電圧監視部からのクリア信号は、純ハードウェア的
に出される。
(Prior art) A WDT circuit monitors the operation of a microprocessor (hereinafter referred to as μP), that is, the running of a program, and when an abnormality is detected (if the WDT is not cleared even after a certain period of time has elapsed). ), the μP is reset and the program is restarted. As clear signals for such a WDT circuit, (a) clear signal from μP, (b
) Some devices use a clear signal issued by a power supply voltage monitoring unit when it detects a drop in power supply voltage. Here, the clear signal from the μP in (a) is issued by the WDT clear routine placed at an appropriate location in the program, whereas the clear signal from the power supply voltage monitoring section in (b) is generated by a pure Issued in terms of hardware.

WDT回路による異常検出の確率を増すためには、プロ
グラム上のVDTクリアルーチンの数を最小限に抑える
必要がある。その理由は、WI) Tクリアルーチンが
プログラム上の何ケ所にも配置されていたとすると、ブ
Oグラム走行が異常であるのにWDTによるリセットが
かからない(プログラムがルーピングを起こしているの
にそのループ内にWDTクリアルーチンが入っているた
め、〜VDTによるリセットがかからない)といった現
↑が起こりやすくなるからである。
In order to increase the probability of abnormality detection by the WDT circuit, it is necessary to minimize the number of VDT clear routines on the program. The reason for this is WI) If the T clear routine is placed in many places on the program, the WDT will not reset it even though the program is running abnormally (the program is looping but the loop is not reset). This is because the WDT clear routine is included in the VDT, so the current situation (in which the VDT is not reset) is more likely to occur.

第3図は、従来のWDT回路を備えたμP装置の構成員
略図、第4図及び第5図はμPが行う動作の一例を示す
フローチャートである。
FIG. 3 is a schematic diagram of the components of a μP device equipped with a conventional WDT circuit, and FIGS. 4 and 5 are flowcharts showing an example of the operation performed by the μP.

第3図において、1はμP、2はWDT回路、3は電源
電圧監視部、4はオアゲート回路である。
In FIG. 3, 1 is a μP, 2 is a WDT circuit, 3 is a power supply voltage monitoring section, and 4 is an OR gate circuit.

\へ/DT回路2は、μP1及び電源電圧監視部3から
のクリア信号をオアゲート回路4を介して入力し、一定
時間経過してもVDT回路2がクリアされない場合、μ
P1に対してリセットをかけるように構成されている。
To \/DT circuit 2 inputs the clear signal from μP 1 and power supply voltage monitoring unit 3 via OR gate circuit 4, and if VDT circuit 2 is not cleared even after a certain period of time has passed, μ
It is configured to apply a reset to P1.

又、μP1は、電源投入時(パワーオン時)には:R4
図に示すようなフローを実行し、又、停電子告信号(パ
ワーダウン信号、以下PDSと略す)による割込み時に
は、第5図に示すようなフローを実行する。第4図及び
第5図から明らかなように、WDTクリアルーチンは、
定周期処理の末尾(第4図■)、パワーオン後のフィト
リング・ルーチン内(第4図■)、PDS割込ルーチン
内(第5図■)に複数個存在している。
Also, when μP1 is turned on (power on): R4
The flow shown in the figure is executed, and when an interruption is caused by a power down signal (hereinafter abbreviated as PDS), the flow shown in FIG. 5 is executed. As is clear from FIGS. 4 and 5, the WDT clear routine is
A plurality of them exist at the end of the periodic processing (Fig. 4 -), in the fitting routine after power-on (Fig. 4 -), and in the PDS interrupt routine (Fig. 5 -).

(充用が解決しようとする問題) このような従来装置においては、WDTクリアルーチン
がプログラム上の3ケ所にも配同されており、WDT回
路による異常検出の確率を低くしてしまうという問題点
があった。
(Problem to be solved by application) In such conventional devices, the WDT clear routine is allocated to three locations on the program, which causes the problem of lowering the probability of abnormality detection by the WDT circuit. there were.

本発明は、従来装置におけるこのような問題点に鑑みて
なされたもので、その目的は、プログラム上のWDTク
リアルーチンの数を減らし、WDT回路による異常検出
の確率を高めることのできるμPi*Ilfを実現する
ことにある。
The present invention was made in view of such problems in conventional devices, and its purpose is to reduce the number of WDT clear routines on a program and increase the probability of abnormality detection by the WDT circuit. The aim is to realize this.

(問題点を解決するための手段) 前記した問題点を解決する本発明は、マイクロプロセッ
サと、このマイクロプロセッサの動作を監視し異常が発
生した場合当該マイクロプロセッサにリセットをかける
ウォッチ・ドッグ・タイマ回路とを備えた装置において
、i[回路から出力される停電子告信号と、電源投入後
一定時間経過してから発生する信号とを前記ウォッチ・
ドッグ・タイマ回路のクリア端子に印加させる回路手段
を設けたことを特徴とするものである。
(Means for Solving the Problems) The present invention, which solves the problems described above, includes a microprocessor and a watch dog timer that monitors the operation of the microprocessor and resets the microprocessor when an abnormality occurs. In a device equipped with a circuit, a power failure notification signal output from the circuit and a signal generated after a certain period of time after power is turned on are
The present invention is characterized in that a circuit means is provided for applying the voltage to the clear terminal of the dog timer circuit.

(実施例) 以下、図面を用いて本発明の実施例を詳細に説明する。(Example) Embodiments of the present invention will be described in detail below with reference to the drawings.

第1図は本発明装置の一実施例を示す構成ブロック図で
ある。この図において、第3図と同様、1はμP、2は
このμPの動作(プログラムの走行)を監視し、異常を
検出した場合、μP1にリセットをかけるWDT回路で
ある。このWDT回路2は、ここでは発振器21と、こ
の発振器21からの出力をクロックとしてカウントアツ
プするカウンタ22とで構成されており、このカウンタ
22の計数値が一定値に達すると、出力信号をゲート回
路5を介して出力し、これがμP1のリセット信号とな
って、μP1のプログラムを再スタートさせる。
FIG. 1 is a block diagram showing an embodiment of the apparatus of the present invention. In this figure, as in FIG. 3, 1 is a μP, and 2 is a WDT circuit that monitors the operation of this μP (program execution) and resets μP1 when an abnormality is detected. The WDT circuit 2 is composed of an oscillator 21 and a counter 22 that counts up using the output from the oscillator 21 as a clock. When the counted value of the counter 22 reaches a certain value, the output signal is gated. This signal is outputted through the circuit 5 and becomes a reset signal for μP1, restarting the program of μP1.

3は電源電圧監視部、4はオアゲート回路、60は電源
回路(図示せず)から出力される停電子告信号(PDS
)をオアゲート回路4を介してWDT2のクリア端子2
3に印加させる信号ライン、7はTi電源投入後一定時
間経過してから発生するタイマ信号(TIM>を作る回
路で、ゲート回路71及びモノマルチ72で構成されて
いる。7゜はタイマ信号(TIM>をオアゲート回路4
を介してWOT2のクリア端子23に印加させる信号ラ
インである。又、10はμP1からのクリア信号(CL
R)を、30は電源電圧監視部3からの電源電圧低下を
示す信号(VD)をそれぞれゲート回路4を介してWD
T2のクリア端子23に印加させる信号ラインである。
3 is a power supply voltage monitoring unit, 4 is an OR gate circuit, and 60 is a power failure notification signal (PDS) output from a power supply circuit (not shown).
) through the OR gate circuit 4 to the clear terminal 2 of the WDT2.
7 is a circuit that generates a timer signal (TIM) that is generated after a certain period of time has elapsed after the Ti power is turned on, and is composed of a gate circuit 71 and a monomulti 72. TIM> OR gate circuit 4
This is a signal line that is applied to the clear terminal 23 of WOT2 via. Also, 10 is the clear signal (CL) from μP1.
30 is a signal (VD) indicative of a drop in power supply voltage from the power supply voltage monitoring unit 3, and is connected to the WD via the gate circuit 4.
This is a signal line applied to the clear terminal 23 of T2.

このように構成した装置の動作を第2図のタイムチャー
トを参照しながら説明する。ここでは、瞬時停電が起こ
った場合の動作を例にとる。
The operation of the apparatus configured as described above will be explained with reference to the time chart shown in FIG. Here, we will take as an example the operation when a momentary power outage occurs.

瞬時停電が起こった場合、(ロ)に示を電源電圧の低下
を示す信号(VD>に先立って、(イ)に示すようにf
?電電子倍信号PDS)が、電源回路から送られてくる
。この停電子告信号(PDS)は、信号ライン60を通
り、ゲート回路4を介して、(ホ)に示すようなWDT
クリア信号(W DTCLR)となり、これがWDT回
路2(カウンタ22)のクリア端子23に印加され、W
DT回路2はクリアされる。
When a momentary power outage occurs, the signal shown in (b) indicating a drop in the power supply voltage (VD) is activated as shown in (b) before the signal f
? An electronic doubler signal (PDS) is sent from the power supply circuit. This power outage notification signal (PDS) passes through the signal line 60 and through the gate circuit 4 to the WDT as shown in (E).
This becomes a clear signal (W DTCLR), which is applied to the clear terminal 23 of the WDT circuit 2 (counter 22), and the W
DT circuit 2 is cleared.

停電時には、(イ)及び(ロ)に示を停電予告(?、弓
(PDS)と、電源電圧低下を示す1言号(VD′″)
のどららが先に解除されるか電源回路の仕様上不明であ
る(この例ではPDSが先に解除されている)ので、こ
れらのうち、後で解除された信号(この例ではVD)に
よって、即ら、ゲート回路71から得られる(ハ)に示
すトリが一信号(TRG>によって、モノマルチ72に
トリガーをか1プる。モノマルチ72は、このトリが一
信号(TRG)によって一定の時間Toだけ反転し、〈
二)に示すようなタイマ信号(TIM)を出力する。こ
こで、モノマルチ22が反転している一定時間丁0は、
電y!A復帰後のフィトリングに必要な時間と同程度以
上に選定されている。このタイマ信号(TIM)は、信
号ライン70を通って、ゲート回路4に加わり、μP1
のプログラムがアイドリンクルーチンを実行している間
は、WDT回路2のクリア端子23に、(ホ)に示すよ
うにWDTクリア信号(WDTCLR>が入り続ける。
In the event of a power outage, (a) and (b) show a power outage warning (?, bow (PDS)) and a word (VD''') indicating a drop in power supply voltage.
It is unclear from the specifications of the power supply circuit whether Nodora is released first (PDS is released first in this example), so the signal that is released later (VD in this example) That is, the trigon signal (TRG) shown in (c) obtained from the gate circuit 71 triggers the monomulti 72. is reversed by the time To, and
2) Outputs a timer signal (TIM) as shown in FIG. Here, the fixed time period 0 during which the monomulti 22 is inverted is:
Electric! The time is selected to be equal to or longer than the time required for fitting after returning to A. This timer signal (TIM) passes through the signal line 70 and is applied to the gate circuit 4.
While the program is executing the idle link routine, the WDT clear signal (WDTCLR> continues to be input to the clear terminal 23 of the WDT circuit 2, as shown in (e)).

以上のような動作によって、第4図■、第5図■に示す
プログラム上でのWDTクリアルーチンがなくても、こ
れと同様の動作を1:Tわせることかできる。
By the above-described operation, the same operation can be performed at 1:T even without the WDT clear routine on the program shown in FIG. 4 (2) and FIG. 5 (2).

(発明の効果) 以上説明したように、本発明によれば、プログラム上の
VDTクリアルーチンの数を減らし、WDT回路による
異常検出の確立を高めることのできるμP装置を実現す
ることができる。
(Effects of the Invention) As described above, according to the present invention, it is possible to realize a μP device that can reduce the number of VDT clear routines on a program and increase the probability of abnormality detection by a WDT circuit.

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

第1図は本発明装置の一実施例を示す構成ブロック図、
第2@は第1図装設の動作の一例を示すタイムチャート
、第3図は従来装置の構成慨略図、第4図及び第5図は
第3因の従来装置における動作の一例を示すフローチャ
ートである。 1・・・マイクロプロセッサ(μP) 2・・・ウォッチ・ドッグ・タイマ<WDT>回路3・
・・電源電圧監視部 4・・・ゲート回路7・・・タイ
マ信号を作る回路 ;
FIG. 1 is a configuration block diagram showing an embodiment of the device of the present invention;
2@ is a time chart showing an example of the operation of the equipment shown in FIG. 1, FIG. 3 is a schematic diagram of the configuration of the conventional device, and FIGS. 4 and 5 are flowcharts showing an example of the operation of the conventional device for the third factor. It is. 1... Microprocessor (μP) 2... Watch dog timer <WDT> circuit 3.
...Power supply voltage monitoring section 4...Gate circuit 7...Circuit that creates a timer signal;

Claims (1)

【特許請求の範囲】[Claims] マイクロプロセッサと、このマイクロプロセッサの動作
を監視し異常が発生した場合当該マイクロプロセッサに
リセットをかけるウォッチ・ドッグ・タイマ回路とを備
えた装置において、電源回路から出力される停電子告信
号と電源投入後一定時間経過してから発生する信号とを
前記ウォッチ・ドッグ・タイマ回路のクリア端子に印加
させる回路手段を設けたことを特徴とするマイクロプロ
セッサ装置。
In a device equipped with a microprocessor and a watchdog timer circuit that monitors the operation of the microprocessor and resets the microprocessor if an abnormality occurs, the power failure notification signal output from the power supply circuit and power-on A microprocessor device comprising circuit means for applying a signal generated after a certain period of time has elapsed to a clear terminal of the watch dog timer circuit.
JP59245682A 1984-11-20 1984-11-20 Microprocessor device Pending JPS61123943A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59245682A JPS61123943A (en) 1984-11-20 1984-11-20 Microprocessor device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59245682A JPS61123943A (en) 1984-11-20 1984-11-20 Microprocessor device

Publications (1)

Publication Number Publication Date
JPS61123943A true JPS61123943A (en) 1986-06-11

Family

ID=17137240

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59245682A Pending JPS61123943A (en) 1984-11-20 1984-11-20 Microprocessor device

Country Status (1)

Country Link
JP (1) JPS61123943A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6389148U (en) * 1986-11-28 1988-06-10
JP2008225697A (en) * 2007-03-09 2008-09-25 Teac Corp Power source control device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5557956A (en) * 1978-10-25 1980-04-30 Nissan Motor Co Ltd Malfunction prevention unit of microcomputer
JPS5836448B2 (en) * 1979-08-24 1983-08-09 株式会社日立製作所 Ring-shaped fluorescent lamp manufacturing method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5557956A (en) * 1978-10-25 1980-04-30 Nissan Motor Co Ltd Malfunction prevention unit of microcomputer
JPS5836448B2 (en) * 1979-08-24 1983-08-09 株式会社日立製作所 Ring-shaped fluorescent lamp manufacturing method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6389148U (en) * 1986-11-28 1988-06-10
JP2008225697A (en) * 2007-03-09 2008-09-25 Teac Corp Power source control device

Similar Documents

Publication Publication Date Title
JPS6349814B2 (en)
JPS61123943A (en) Microprocessor device
JPS59200357A (en) Watchdog timer circuit
JPH11259340A (en) Reactivation control circuit for computer
US6813713B2 (en) Data processing apparatus capable of dealing with illegal external input in an operative state and preventing useless power consumption in a stopped state
JPH04148246A (en) Watchdog timer
JPH01245322A (en) Power failure control circuit for microprocessor
JPH03127215A (en) Information processor
JPS5920061A (en) Watchdog timer
JPH0756774A (en) Watching timer
JPS61275943A (en) Abnormality detector for computer
KR890007083Y1 (en) Cpu restart circuit by real time clock inspection
JP2731386B2 (en) Control device
JPS6116340A (en) Emergency operation device of processor system
JPS61169036A (en) System supervisory device
JPS57105049A (en) Fault processing method of data processing device
JPS6258317A (en) Reporting system for power supply abnormality of input and output device
JPH04172493A (en) Liquid crystal display device protection circuit
JPS6373443A (en) Stall monitoring system
JPS6257037A (en) Abnormality detection system for computer system
JPH06161909A (en) Data processor
JPS62214419A (en) Arithmatic and control unit
JPS60262252A (en) Monitor system for runaway of microprocessor
JPH04332047A (en) Switching system for step-out of synchronism of redundant computer
JPS58184667A (en) Information processing unit