JP2006343892A - Circuit for monitoring operation of cpu - Google Patents

Circuit for monitoring operation of cpu Download PDF

Info

Publication number
JP2006343892A
JP2006343892A JP2005167626A JP2005167626A JP2006343892A JP 2006343892 A JP2006343892 A JP 2006343892A JP 2005167626 A JP2005167626 A JP 2005167626A JP 2005167626 A JP2005167626 A JP 2005167626A JP 2006343892 A JP2006343892 A JP 2006343892A
Authority
JP
Japan
Prior art keywords
cpu
circuit
timer
capacitor
power source
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
JP2005167626A
Other languages
Japanese (ja)
Inventor
Masaki Fukumura
政規 福村
Nobuhiko Shinozaki
順彦 篠崎
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.)
Meidensha Corp
Meidensha Electric Manufacturing Co Ltd
Original Assignee
Meidensha Corp
Meidensha Electric Manufacturing Co Ltd
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 Meidensha Corp, Meidensha Electric Manufacturing Co Ltd filed Critical Meidensha Corp
Priority to JP2005167626A priority Critical patent/JP2006343892A/en
Publication of JP2006343892A publication Critical patent/JP2006343892A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To attain space saving and cost reduction by reducing the necessary number of capacitors for a timer by half and reducing the capacity. <P>SOLUTION: A CPU 3 periodically outputs a re-trigger signal in a normal time by using a power source 7 for the CPU as a power source. A watch dog timer circuit 1 fetches the re-trigger signal by a capacitor coupling circuit 9 by using a power source 8 for an abnormal output as a power source, and decides that the CPU is abnormal, and obtains an abnormality output when the re-trigger signal is not inputted within the time limit of abnormality decision set in a capacitor 2 for a timer. An insulating circuit is installed between the CPU and a capacitor coupling circuit. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、CPUの動作監視回路に係り、特にウォッチドッグタイマ(WDT)方式による異常検出回路に関する。   The present invention relates to an operation monitoring circuit of a CPU, and more particularly to an abnormality detection circuit using a watch dog timer (WDT) system.

ディジタル形保護継電器など、制御用コンピュータを中枢部として各種のディジタル処理機能を実現する装置は、CPUの正常な動作を監視する方式として、ウォッチドッグタイマ方式がある(例えば、特許文献1参照)。この方式は、一定時間でタイムアップするタイマに対し、CPUが正常なときにはタイマのタイムアップ時間内にリセット信号を出力し、このリセット信号によりタイマを再トリガすることでタイマのタイムアップを抑止し、CPUがリセット信号を出力できない異常発生時にはタイマがタイムアップし、このタイムアップをCPUの動作異常出力として得る。   An apparatus that implements various digital processing functions using a control computer as a central part, such as a digital protective relay, has a watchdog timer system as a system for monitoring normal operation of a CPU (see, for example, Patent Document 1). In this method, when the CPU is normal, a reset signal is output within the timer time-up time, and the timer is re-triggered by this reset signal to suppress the timer time-up. When an abnormality occurs in which the CPU cannot output a reset signal, the timer times out, and this time up is obtained as an abnormal operation output of the CPU.

図4は従来の動作監視回路を示す。ウォッチドッグタイマ回路1は、タイマ用コンデンサ2が一定レベルまで充電される時間を時限とし、この時間内にCPU3からリトリガ信号が与えられたときにはコンデンサ2をリセットし、時間内にリトリガ信号が与えられないときにCPU3の異常検出信号を得る。異常検出信号はホトカプラなどの光絶縁回路4を通して異常出力回路5のトリガ信号にされ、異常出力回路5ではタイマ用コンデンサ6による時限だけ動作抑止されて異常出力を得る。   FIG. 4 shows a conventional operation monitoring circuit. The watchdog timer circuit 1 sets the time for which the timer capacitor 2 is charged to a certain level as a time limit. When the retrigger signal is given from the CPU 3 within this time, the capacitor 2 is reset, and the retrigger signal is given within the time. When not, an abnormality detection signal of the CPU 3 is obtained. The abnormality detection signal is converted into a trigger signal for the abnormality output circuit 5 through the optical isolation circuit 4 such as a photocoupler, and the abnormality output circuit 5 suppresses the operation for a time limit by the timer capacitor 6 to obtain an abnormality output.

ここで、CPU用電源7はCPU3側の直流電源とし、異常出力用電源8は異常出力回路5側の直流電源とした分離構成とし、CPU3がその電源電圧低下でリトリガ信号を発生できない場合にも異常出力回路5が異常出力を発生できるようにしている。この電源の分離構成においては、装置の運転/停止に際して、CPU用電源7と異常出力用電源8の立上がり/立下りのタイミングの違いによって、誤って異常出力がなされないようタイマ用コンデンサ6による異常出力回路5の動作を抑止する。すなわち、タイマ用コンデンサ6は異常検出信号が誤って発生されたときの誤動作防止用タイマになる。   Here, the CPU power source 7 is a DC power source on the CPU 3 side, the abnormal output power source 8 is a DC power source on the abnormal output circuit 5 side, and even when the CPU 3 cannot generate a retrigger signal due to the power supply voltage drop. The abnormal output circuit 5 can generate an abnormal output. In this power source separation configuration, when the device is operated / stopped, an abnormality is caused by the timer capacitor 6 so that an abnormal output is not mistakenly caused by a difference in rising / falling timing of the CPU power supply 7 and the abnormal output power supply 8. The operation of the output circuit 5 is suppressed. That is, the timer capacitor 6 serves as a malfunction prevention timer when an abnormality detection signal is erroneously generated.

図5は、図4の具体的な回路構成であり、同等の部分は同一符号で対応つけて示す。ウォッチドッグタイマ回路1は、CPU3からリトリガ信号が与えられない期間にはトランジスタQ1のオフ状態でタイマ用コンデンサ2を充電し、この充電電圧はバッファアンプBUFを介してコンパレータCOMで監視し、一定電圧に達したとき、つまりCPU3からリトリガ信号が与えられないままになったとき、コンパレータCOMから異常検出信号を発生する。異常出力回路5は、トランジスタQ2のオンによってフォトMOSから異常出力を得る。このトランジスタQ2のベースにはタイマ用コンデンサ6を設け、このコンデンサ6が充電完了するまでは、絶縁回路4を通した異常検出信号によって誤動作するのを防止する。例えば、装置運転開始において、電源8が電源7よりも先に電圧確立した場合にも、コンデンサ6が充電完了するまでは誤って異常出力を発生となるのを防止する。
特開平5−20289号公報
FIG. 5 shows a specific circuit configuration of FIG. 4, and equivalent parts are shown by being associated with the same reference numerals. The watchdog timer circuit 1 charges the timer capacitor 2 while the transistor Q1 is off during a period when the retrigger signal is not supplied from the CPU 3, and this charge voltage is monitored by the comparator COM via the buffer amplifier BUF. Is reached, that is, when the retrigger signal is not given from the CPU 3, an abnormality detection signal is generated from the comparator COM. The abnormal output circuit 5 obtains an abnormal output from the photo MOS when the transistor Q2 is turned on. A timer capacitor 6 is provided at the base of the transistor Q2, and malfunction is prevented by an abnormality detection signal passing through the insulating circuit 4 until the capacitor 6 is completely charged. For example, even when the voltage of the power supply 8 is established before the power supply 7 at the start of the operation of the apparatus, an abnormal output is prevented from being erroneously generated until the capacitor 6 is completely charged.
JP-A-5-20289

上記のように、装置の運転/停止に際して、CPU用電源7と異常出力用電源8の立上がり/立下りのタイミングの違いによって、誤って異常出力がなされないよう、タイマ用コンデンサ6に大容量の電解コンデンサを設け、その時限を十分に長くして誤動作を防止することになる。   As described above, when the device is operated / stopped, the timer capacitor 6 has a large capacity so that an abnormal output is not mistakenly caused by a difference in the rise / fall timing of the CPU power supply 7 and the abnormal output power supply 8. An electrolytic capacitor is provided, and the time limit is made sufficiently long to prevent malfunction.

このため、CPU側と異常出力回路側の両方にタイマ用コンデンサ2,6を必要とし、特にタイマ用コンデンサ6の大容量コンデンサが実装スペースの大型化、コストアップを招くという問題がある。   For this reason, timer capacitors 2 and 6 are required on both the CPU side and the abnormal output circuit side. In particular, there is a problem that the large-capacitance capacitor of the timer capacitor 6 increases the mounting space and costs.

本発明の目的は、ウォッチドッグタイマ方式において、タイマ用コンデンサの必要個数の半減および小容量化によって、省スペース化とコストダウンを図ったCPUの動作監視回路を提供することにある。   An object of the present invention is to provide a CPU operation monitoring circuit that saves space and reduces costs by halving the required number of timer capacitors and reducing the capacity in the watchdog timer system.

本発明は、前記の課題を解決するため、ウォッチドッグタイマ回路は異常出力用電源側に設け、ウォッチドッグタイマ回路では1つの小容量コンデンサを使用して、ウォッチドッグタイマ用と誤動作防止タイマ用で兼用できるようにしたもので、以下の構成を特徴とする。   In order to solve the above-mentioned problems, the present invention provides a watchdog timer circuit on the power supply side for abnormal output, and the watchdog timer circuit uses one small capacitor for the watchdog timer and the malfunction prevention timer. It can be used in combination, and has the following configuration.

(1)CPUからリトリガ信号が一定時間内に出力されないときに、ウォッチドッグタイマ回路がCPUの異常として判定するCPUの動作監視回路であって、
前記CPUは、CPU用電源を電源とし、正常時には定期的に前記リトリガ信号を出力する構成とし、
前記ウォッチドッグタイマ回路は、異常出力用電源を電源とし、前記リトリガ信号がタイマ用コンデンサで設定する異常判定の時限内に入力されないときにCPUの異常と判定して異常出力を得る構成としたことを特徴とする。
(1) A CPU operation monitoring circuit that determines that the watchdog timer circuit determines that the CPU is abnormal when a retrigger signal is not output from the CPU within a certain period of time,
The CPU is configured to use a power source for CPU as a power source, and periodically output the retrigger signal when normal.
The watchdog timer circuit is configured to use a power supply for abnormal output as a power source, and to determine that the CPU is abnormal and obtain an abnormal output when the retrigger signal is not input within the time limit for abnormality determination set by the timer capacitor. It is characterized by.

(2)前記CPUからのリトリガ信号は、光または電気的に絶縁して前記ウォッチドッグタイマ回路側に入力する絶縁回路を設けたことを特徴とする。   (2) The retrigger signal from the CPU is provided with an insulating circuit that is optically or electrically insulated and input to the watchdog timer circuit side.

以上のとおり、本発明によれば、ウォッチドッグタイマ回路は異常出力用電源側に設け、ウォッチドッグタイマ回路では1つの小容量コンデンサを使用して、ウォッチドッグタイマ用と誤動作防止タイマ用で兼用できる構成としたため、以下の効果がある。   As described above, according to the present invention, the watchdog timer circuit is provided on the power supply side for abnormal output, and the watchdog timer circuit can be used for both the watchdog timer and the malfunction prevention timer by using one small capacitor. The configuration has the following effects.

(1)ウォッチドッグタイマと誤動作防止タイマを兼ねた1つのタイマ用コンデンサを設けることで済み、コンデンサの必要個数を半減できる。   (1) It is only necessary to provide one timer capacitor that serves both as a watchdog timer and a malfunction prevention timer, and the required number of capacitors can be halved.

(2)ウォッチドッグタイマ回路を異常出力用電源側に設けるため、該電源が確立しない場合でも異常検出が可能である。   (2) Since the watchdog timer circuit is provided on the power supply side for abnormal output, abnormality detection is possible even when the power supply is not established.

(実施形態1)
図1は、本実施形態を示すCPUの動作監視回路図であり、図4と同等のものは同一符号で示す。CPU3は、CPU用電源(+5V)7を電源とし、その電源確立で動作を開始し、定期的にリトリガ信号を出力する。一方、ウォッチドッグタイマ回路1は、異常出力用電源(+12V)8を電源とし、その電源確立で動作を開始し、タイマ用コンデンサ2のタイマ時間内にCPU3からリトリガ信号が与えられるか否かによって異常の有無を判定する。
(Embodiment 1)
FIG. 1 is an operation monitoring circuit diagram of a CPU showing the present embodiment, and the same components as those in FIG. 4 are denoted by the same reference numerals. The CPU 3 uses the CPU power source (+ 5V) 7 as a power source, starts operation when the power source is established, and periodically outputs a retrigger signal. On the other hand, the watchdog timer circuit 1 uses the abnormal output power supply (+ 12V) 8 as a power supply, and starts its operation when the power supply is established. Determine if there is an abnormality.

コンデンサカップリング回路9は、CPU3から出力されるリトリガ信号の信号レベルと、ウォッチドッグタイマ回路1に入力されるリトリガ信号の信号レベルの違いを吸収、すなわち電源7,8の直流電圧の違いによる信号レベルの違いを吸収するためのレベルシフト回路を実現するものであり、小容量のコンデンサと抵抗回路により実現される。   The capacitor coupling circuit 9 absorbs the difference between the signal level of the retrigger signal output from the CPU 3 and the signal level of the retrigger signal input to the watchdog timer circuit 1, that is, a signal due to the difference in DC voltage between the power supplies 7 and 8. A level shift circuit for absorbing the difference in level is realized, and is realized by a small-capacitance capacitor and a resistor circuit.

ウォッチドッグタイマ回路1は、タイマ用コンデンサ2のタイマ時間内にCPU側からリトリガ信号が入力される毎にタイマ用コンデンサ2のリセットを行い、この時間内にリトリガ信号が入力されない場合に異常発生と判定する。   The watchdog timer circuit 1 resets the timer capacitor 2 every time a retrigger signal is input from the CPU side within the timer time of the timer capacitor 2, and an abnormality occurs when the retrigger signal is not input within this time. judge.

図2、図1の具体的な回路構成であり、同等の部分は同一符号で対応つけて示す。コンデンサカップリング回路9は、CPU3からのリトリガ信号をパスできる小容量のコンデンサと抵抗Rで構成する。ウォッチドッグタイマ回路1は、電源8の電源確立によって動作開始し、この動作開始でタイマ用コンデンサ2の充電を開始し、CPU3側からリトリガ信号が出力される度にトランジスタQ1がオン動作し、タイマ用コンデンサ2をリセットする。タイマ用コンデンサ2の充電電圧はバッファアンプBUFを通してコンパレータCOMで監視し、一定電圧まで充電されたときにフォトMOS、またはフォトカプラ等から異常出力を発生する。   It is a concrete circuit configuration of FIG. 2 and FIG. 1, and an equivalent part is matched and shown with the same code | symbol. The capacitor coupling circuit 9 includes a small-capacitance capacitor and a resistor R that can pass a retrigger signal from the CPU 3. The watchdog timer circuit 1 starts its operation when the power source 8 is established, starts charging the timer capacitor 2 at the start of this operation, and the transistor Q1 is turned on each time a retrigger signal is output from the CPU 3 side. The capacitor 2 is reset. The charging voltage of the timer capacitor 2 is monitored by the comparator COM through the buffer amplifier BUF, and an abnormal output is generated from the photo MOS or photo coupler when charged to a certain voltage.

したがって、本実施形態によれば、CPU3側ではウォッチドッグタイマのリトリガ信号の出力のみとし、ウォッチドッグタイマ回路1ではウォッチドッグタイマと誤動作防止用タイマを兼ねた1つのタイマ用コンデンサ2を設けることで済む。   Therefore, according to the present embodiment, only the retrigger signal output of the watchdog timer is output on the CPU 3 side, and the watchdog timer circuit 1 is provided with one timer capacitor 2 that functions as both a watchdog timer and a malfunction prevention timer. That's it.

(実施形態2)
図3は本実施形態を示すCPUの動作監視回路図であり、図1と異なる部分は、CPU側とウォッチドッグタイマ回路側との間に絶縁回路を介在させ、CPU側とウォッチドッグタイマ回路側の絶縁を確実にした点にある。
(Embodiment 2)
FIG. 3 is an operation monitoring circuit diagram of the CPU showing the present embodiment. The difference from FIG. 1 is that an insulating circuit is interposed between the CPU side and the watchdog timer circuit side, and the CPU side and the watchdog timer circuit side. It is in the point of ensuring the insulation of.

この絶縁回路として、図4と同様に、光絶縁回路4を設け、CPU3からのリトリガ信号は光絶縁回路4を通してコンデンサカップリング回路9に入力する。   As the insulating circuit, an optical insulating circuit 4 is provided as in FIG. 4, and a retrigger signal from the CPU 3 is input to the capacitor coupling circuit 9 through the optical insulating circuit 4.

なお、光絶縁回路4はホトカプラ又はフォトMOSで実現されるが、絶縁用パルストランスを使用した電気的絶縁回路とすることもできる。   The optical isolation circuit 4 is realized by a photocoupler or a photo MOS, but may be an electrical isolation circuit using an insulating pulse transformer.

本発明の実施形態1を示すCPUの動作監視回路図。FIG. 2 is an operation monitoring circuit diagram of the CPU showing the first embodiment of the present invention. 実施形態1の具体的な回路構成図。FIG. 3 is a specific circuit configuration diagram of the first embodiment. 本発明の実施形態2を示すCPUの動作監視回路図。The operation | movement monitoring circuit diagram of CPU which shows Embodiment 2 of this invention. 従来のCPUの動作監視回路図。FIG. 6 is a circuit diagram of a conventional CPU operation monitoring circuit. 従来の具体的な回路構成図。The conventional concrete circuit block diagram.

符号の説明Explanation of symbols

1 ウォッチドッグタイマ回路
2 タイマ用コンデンサ
3 CPU
4 光絶縁回路
5 異常出力回路
6 タイマ用コンデンサ
7 CPU用電源
8 異常出力用電源
9 コンデンサカップリング回路
1 Watchdog timer circuit 2 Capacitor for timer 3 CPU
4 Optical Isolation Circuit 5 Abnormal Output Circuit 6 Timer Capacitor 7 CPU Power Supply 8 Abnormal Output Power Supply 9 Capacitor Coupling Circuit

Claims (2)

CPUからリトリガ信号が一定時間内に出力されないときに、ウォッチドッグタイマ回路がCPUの異常として判定するCPUの動作監視回路であって、
前記CPUは、CPU用電源を電源とし、正常時には定期的に前記リトリガ信号を出力する構成とし、
前記ウォッチドッグタイマ回路は、異常出力用電源を電源とし、前記リトリガ信号がタイマ用コンデンサで設定する異常判定の時限内に入力されないときにCPUの異常と判定して異常出力を得る構成としたことを特徴とするCPUの動作監視回路。
An operation monitoring circuit for a CPU that determines that a watchdog timer circuit is abnormal in a CPU when a retrigger signal is not output from the CPU within a predetermined time;
The CPU is configured to use a power source for CPU as a power source, and periodically output the retrigger signal when normal.
The watchdog timer circuit is configured to use a power supply for abnormal output as a power source, and to determine that the CPU is abnormal and obtain an abnormal output when the retrigger signal is not input within the time limit for abnormality determination set by the timer capacitor. CPU operation monitoring circuit characterized by the above.
前記CPUからのリトリガ信号は、光または電気的に絶縁して前記ウォッチドッグタイマ回路側に入力する絶縁回路を設けたことを特徴とする請求項1に記載のCPUの動作監視回路。
2. The operation monitoring circuit for a CPU according to claim 1, further comprising an insulating circuit that inputs the retrigger signal from the CPU to the watchdog timer circuit side after being optically or electrically insulated.
JP2005167626A 2005-06-08 2005-06-08 Circuit for monitoring operation of cpu Pending JP2006343892A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005167626A JP2006343892A (en) 2005-06-08 2005-06-08 Circuit for monitoring operation of cpu

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005167626A JP2006343892A (en) 2005-06-08 2005-06-08 Circuit for monitoring operation of cpu

Publications (1)

Publication Number Publication Date
JP2006343892A true JP2006343892A (en) 2006-12-21

Family

ID=37640834

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005167626A Pending JP2006343892A (en) 2005-06-08 2005-06-08 Circuit for monitoring operation of cpu

Country Status (1)

Country Link
JP (1) JP2006343892A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0334955U (en) * 1989-08-14 1991-04-05
JPH03104239U (en) * 1989-11-24 1991-10-29
JPH11272504A (en) * 1998-03-20 1999-10-08 Tokai Rika Co Ltd Computer monitoring device
WO2001044913A1 (en) * 1999-12-15 2001-06-21 Hitachi, Ltd. Interface device and information processing system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0334955U (en) * 1989-08-14 1991-04-05
JPH03104239U (en) * 1989-11-24 1991-10-29
JPH11272504A (en) * 1998-03-20 1999-10-08 Tokai Rika Co Ltd Computer monitoring device
WO2001044913A1 (en) * 1999-12-15 2001-06-21 Hitachi, Ltd. Interface device and information processing system

Similar Documents

Publication Publication Date Title
KR102204499B1 (en) Apparatus and method for restarting an electronic device
US20190148937A1 (en) Power supply apparatus
US9817461B2 (en) Abnormality display device including a switch to control a display element to indicate abnormal or normal operations for plural systems
US20130047002A1 (en) Detection circuit for redundant power supply and detection method thereof
JP5455826B2 (en) Power-on control circuit
US20160191781A1 (en) Electronic apparatus capable of connecting to accessory device, method of controlling the same, storage medium, and accessory device
CN102480225A (en) Direct voltage supplying device
US8680719B2 (en) Direct current voltage supply apparatus
JP2006343892A (en) Circuit for monitoring operation of cpu
TWI429162B (en) A power supply system with multiple power sources in parallel
JP2011077673A (en) Reset circuit
JP2004252902A (en) Power voltage reduction method and power voltage reduction means, and ccd drive means
JP6008794B2 (en) Power supply device and video display device
KR100906603B1 (en) Power providing apparatus with the ability of settling a moment power failure problem
TW201324108A (en) Power supplying circuit
JP2009268184A (en) Ac detection circuit and dc power supply
JP5407466B2 (en) Power control method
US9635198B2 (en) Disconnection time acquisition system that records disconnection time at which power supply is disconnected in log, image processing system, and disconnection time acquisition method
JP6325217B2 (en) CIRCUIT DEVICE AND CIRCUIT DEVICE RECOVERY METHOD
JP2013175169A (en) Electronic apparatus and imaging device
JP4288705B2 (en) Electronics
JP2016001943A (en) Power unit
JP4432611B2 (en) Switching power supply
JP2005276034A (en) On-board power unit
US20120159033A1 (en) Motherboard

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080213

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20091216

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100629

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20101026