JP2015225360A - Watchdog timer device - Google Patents

Watchdog timer device Download PDF

Info

Publication number
JP2015225360A
JP2015225360A JP2014107744A JP2014107744A JP2015225360A JP 2015225360 A JP2015225360 A JP 2015225360A JP 2014107744 A JP2014107744 A JP 2014107744A JP 2014107744 A JP2014107744 A JP 2014107744A JP 2015225360 A JP2015225360 A JP 2015225360A
Authority
JP
Japan
Prior art keywords
capacitor
circuit
timer device
control signal
watchdog 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.)
Pending
Application number
JP2014107744A
Other languages
Japanese (ja)
Inventor
伸哉 相澤
Shinya Aizawa
伸哉 相澤
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.)
Panasonic Intellectual Property Management Co Ltd
Original Assignee
Panasonic Intellectual Property Management 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 Panasonic Intellectual Property Management Co Ltd filed Critical Panasonic Intellectual Property Management Co Ltd
Priority to JP2014107744A priority Critical patent/JP2015225360A/en
Publication of JP2015225360A publication Critical patent/JP2015225360A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a watchdog timer device, which sets time-out time by using a capacitance value on a capacitor, capable of changing the time-out time while preventing unintended reset.SOLUTION: A watchdog timer device 3 includes: a control signal delay circuit 38 for delaying a control signal for changing a capacitance value on a capacitor part 35; an INH control circuit 37 that, when a control signal is input without via the control signal delay circuit 38 and when the control signal is input or stopped, disables the watchdog timer device 3 for a predetermined period; and a capacitance value alteration circuit 36 that changes the capacitance value on the capacitor part 35 based on the signal output from the control signal delay circuit 38.

Description

本発明は、監視対象(例えばCPU)の異常を監視するウオッチドッグタイマ装置に関する。   The present invention relates to a watchdog timer device that monitors an abnormality of a monitoring target (for example, a CPU).

従来から、システムに搭載されたCPUの異常を監視するウオッチドッグタイマ装置が用いられている。   Conventionally, a watchdog timer device for monitoring an abnormality of a CPU mounted on a system has been used.

従来のウオッチドッグタイマ装置の中でも、定電流源とコンデンサにて構成されるウオッチドッグタイマ装置の一般的な構成を図1に示す。   FIG. 1 shows a general configuration of a watchdog timer device composed of a constant current source and a capacitor among conventional watchdog timer devices.

図1に示すように従来のウオッチドッグタイマ装置1は、電圧監視回路11、リセット信号生成回路12、クロック検出回路13、定電流源回路14、コンデンサ部15から構成される。   As shown in FIG. 1, the conventional watchdog timer device 1 includes a voltage monitoring circuit 11, a reset signal generation circuit 12, a clock detection circuit 13, a constant current source circuit 14, and a capacitor unit 15.

電圧監視回路11は、電源(不図示)からウオッチドッグタイマ装置1に供給される電力の電圧を監視する。また、電圧監視回路11は、コンデンサ部15にかかる電圧を監視する。   The voltage monitoring circuit 11 monitors the voltage of power supplied from the power source (not shown) to the watchdog timer device 1. The voltage monitoring circuit 11 monitors the voltage applied to the capacitor unit 15.

また、電圧監視回路11は、コンデンサ部15にかかる電圧が閾値(後述するVctL)以下になった場合、その旨をリセット信号生成回路12に通知する。   In addition, when the voltage applied to the capacitor unit 15 is equal to or lower than a threshold value (VctL described later), the voltage monitoring circuit 11 notifies the reset signal generation circuit 12 to that effect.

定電流源回路14は、電源から供給される電力に基づき、コンデンサ部15が有するコンデンサCtを定電流で充電するための回路である。また、定電流源回路14は、コンデンサCtを定電流で放電するためにも用いられる。   The constant current source circuit 14 is a circuit for charging the capacitor Ct included in the capacitor unit 15 with a constant current based on the power supplied from the power source. The constant current source circuit 14 is also used for discharging the capacitor Ct with a constant current.

コンデンサ部15は、コンデンサCtからなり、コンデンサ部15の容量値により監視時間(タイムアウト時間)を設定することができる。   The capacitor unit 15 includes a capacitor Ct, and the monitoring time (timeout time) can be set according to the capacitance value of the capacitor unit 15.

コンデンサCtは、定電流源回路14により、定電流で充電され、充電が完了すると定電流で放電される(充電から放電に切り替わる)。   The capacitor Ct is charged with a constant current by the constant current source circuit 14, and is discharged with a constant current when charging is completed (switching from charging to discharging).

また、クロック検出回路13が後述するSCK信号の入力有を検出した場合、定電流源回路14により、コンデンサCtへの充電が開始される(放電から充電に切り替わる)。   When the clock detection circuit 13 detects the presence of an SCK signal, which will be described later, the constant current source circuit 14 starts charging the capacitor Ct (switching from discharging to charging).

クロック検出回路13は、ウオッチドッグタイマ装置1の監視対象(例えば、CPU)から出力されるSCK信号の有無を監視し、定電流源回路14を制御する。なお、監視対象は、正常動作時、SCK信号を定期的に出力する。   The clock detection circuit 13 monitors the presence or absence of an SCK signal output from a monitoring target (for example, CPU) of the watchdog timer device 1 and controls the constant current source circuit 14. The monitoring target periodically outputs an SCK signal during normal operation.

リセット信号生成回路12は、電圧監視回路11からの信号に基づき、リセット信号(RESET)を発行する。   The reset signal generation circuit 12 issues a reset signal (RESET) based on the signal from the voltage monitoring circuit 11.

なお、図1において、Vddは、電源からウオッチドッグタイマ装置1に供給される電圧を示す。   In FIG. 1, Vdd indicates a voltage supplied from the power source to the watchdog timer device 1.

また、SCKは、ウオッチドッグタイマ装置1によって監視される対象(例えば、CPU)から出力されるクロック信号を示す。   SCK indicates a clock signal output from a target (for example, CPU) monitored by the watchdog timer device 1.

また、INHは、ウオッチドッグタイマ装置1を有効または無効に切り替える信号であり、CPU(不図示)から出力される。   Further, INH is a signal for switching the watchdog timer device 1 between valid and invalid, and is output from a CPU (not shown).

ウオッチドッグタイマ装置1は、SCK信号を監視し、SCK信号が所定時間(タイムアウト時間)以上入力されない場合、監視対象が異常状態であると判断し、システムをリセットするためのリセット信号(RESET)を発行する。   The watchdog timer device 1 monitors the SCK signal. If the SCK signal is not input for a predetermined time (timeout time) or longer, the watchdog timer device 1 determines that the monitoring target is in an abnormal state and outputs a reset signal (RESET) for resetting the system. Issue.

図2に、従来のウオッチドッグタイマ装置1の動作を示す。   FIG. 2 shows the operation of the conventional watchdog timer device 1.

Vddは、電源からウオッチドッグタイマ装置1に供給される電圧を示す。   Vdd indicates a voltage supplied from the power source to the watchdog timer device 1.

+Vdetは、ウオッチドッグタイマ装置1が正常に動作開始する際の下限電圧を示し、−Vdetは、ウオッチドッグタイマ装置1が動作停止する際の上限電圧を示す。   + Vdet indicates a lower limit voltage when the watchdog timer device 1 starts operating normally, and -Vdet indicates an upper limit voltage when the watchdog timer device 1 stops operating.

Vinhは、INH信号の電圧を示している。ここでは、Hレベル時にウオッチドッグタイマ装置1を有効とし、Lレベル時に無効として記載している。   Vinh represents the voltage of the INH signal. Here, it is described that the watchdog timer device 1 is valid at the H level and invalid at the L level.

ウオッチドッグタイマ装置1が無効化された場合、後述するVctがVctLを下回っても、リセット信号生成回路12はリセット信号を発行しない。   When the watchdog timer device 1 is invalidated, the reset signal generation circuit 12 does not issue a reset signal even if Vct described later falls below VctL.

VinhがLレベルとなったとき、コンデンサCtはGNDに短絡される系(不図示)によって放電されVctはGNDレベルになる。   When Vinh becomes L level, the capacitor Ct is discharged by a system (not shown) short-circuited to GND, and Vct becomes GND level.

Vctは、コンデンサ部15にかかる電圧を示す。   Vct represents a voltage applied to the capacitor unit 15.

VctHは、コンデンサCtが放電を開始する閾値であり、VctLは、リセット信号を発行する閾値を示す。   VctH is a threshold value at which the capacitor Ct starts discharging, and VctL indicates a threshold value at which a reset signal is issued.

Vsckは、監視対象(例えば、CPU)から出力されるSCK信号の電圧を示す。ここでは立上りエッジを有効として記載している。   Vsck indicates the voltage of the SCK signal output from the monitoring target (for example, CPU). Here, the rising edge is described as valid.

Vresetは、リセット信号(RESET)の電圧を示す。ここでは、Hレベルをリセット解除状態(システムをリセットしない)とし、Lレベルをリセット状態(システムをリセットする)として記載している。   Vreset indicates the voltage of the reset signal (RESET). Here, the H level is described as a reset release state (the system is not reset), and the L level is described as a reset state (the system is reset).

なお、VresetがLレベルになることをリセット信号を発行するとも表現する。   Note that the fact that Vreset becomes L level is also expressed as issuing a reset signal.

続いて、図2を用いて、従来のウオッチドッグタイマ装置1の動作を説明する。   Next, the operation of the conventional watchdog timer device 1 will be described with reference to FIG.

まず、ウオッチドッグタイマ装置1にVddが供給され、Vddが+Vdetを上回ったとき、定電流源回路14により、コンデンサCtへの充電が開始されウオッチドッグタイマ装置1が動作を開始する(T1)。   First, when Vdd is supplied to the watchdog timer device 1 and Vdd exceeds + Vdet, the constant current source circuit 14 starts charging the capacitor Ct, and the watchdog timer device 1 starts operating (T1).

コンデンサCtが充電され、VctがVctHに達すると、コンデンサCtへの充電が停止し、コンデンサCtが放電を開始する(T2)。   When the capacitor Ct is charged and Vct reaches VctH, charging to the capacitor Ct is stopped and the capacitor Ct starts discharging (T2).

同時に、VctがVctHに達すると、リセット信号生成回路12は、VresetをHレベルとし、リセット解除状態とする。   At the same time, when Vct reaches VctH, the reset signal generation circuit 12 sets Vreset to the H level and sets the reset release state.

監視対象(例えば、CPU)は、定期的にSCK信号を出力する。VctがVctLに達する前にSCK信号が入力されると、定電流源回路14により、コンデンサCtへの充電が開始される(放電から充電に切り替わる)。(T3)。   A monitoring target (for example, CPU) periodically outputs an SCK signal. When the SCK signal is input before Vct reaches VctL, charging of the capacitor Ct is started by the constant current source circuit 14 (switching from discharging to charging). (T3).

その後、上記同様に、VctがVctHに達すると、コンデンサCtへの充電が停止し、コンデンサCtが放電を開始する。   Thereafter, as described above, when Vct reaches VctH, charging of the capacitor Ct is stopped, and the capacitor Ct starts discharging.

ここで、監視対象(例えば、CPU)に異常が発生し、SCK信号がクロック検出回路13に入力されない場合、放電が継続され、VctがVctLに達する(T4)。   Here, when an abnormality occurs in the monitoring target (for example, CPU) and the SCK signal is not input to the clock detection circuit 13, the discharge is continued and Vct reaches VctL (T4).

VctがVctLに達すると、監視対象の異常と判断し、リセット信号生成回路12は、VresetをLレベルとし、リセット状態とする(システムをリセットする)。   When Vct reaches VctL, it is determined that the monitoring target is abnormal, and the reset signal generation circuit 12 sets Vreset to L level and sets the reset state (resets the system).

このようなウオッチドッグタイマ装置において、意図しないシステムのリセットを防止するためには、VctがVctLに達する前にSCK信号がクロック検出回路13に入力されることが必要である。   In such a watchdog timer device, in order to prevent an unintended system reset, it is necessary that the SCK signal is input to the clock detection circuit 13 before Vct reaches VctL.

言い換えれば、前回SCK信号が入力されてからVctがVctLに至るまでの時間(タイムアウト時間)(Vct充電時間+Vct放電時間(以下、Tvct))よりも、SCK信号の発行周期(以下、Tvsck)が短いこと(Tvct>Tvsck)が必要条件である。   In other words, the SCK signal issuance period (hereinafter referred to as Tvsck) is longer than the time (timeout time) from when the previous SCK signal is input until Vct reaches VctL (timeout time) (Vct charging time + Vct discharging time (hereinafter referred to as Tvct)). Shortness (Tvct> Tvsck) is a necessary condition.

そのため、通常、コンデンサCtの容量値を最適に定め、当該容量値に応じたSCK信号の発行周期(Tvsck)でSCK信号を出力するように制御している。   Therefore, normally, the capacitance value of the capacitor Ct is optimally determined, and control is performed so that the SCK signal is output at an SCK signal issue cycle (Tvsck) corresponding to the capacitance value.

また、従来のウオッチドッグタイマ装置は、INH信号によりウオッチドッグタイマ装置1を無効化することも可能である。具体的には、図2に示すように、VinhをLレベルとすることで、ウオッチドッグタイマ装置1を無効化する(T5)。   Further, the conventional watchdog timer device can invalidate the watchdog timer device 1 by the INH signal. Specifically, as shown in FIG. 2, by setting Vinh to L level, the watchdog timer device 1 is invalidated (T5).

ウオッチドッグタイマ装置1が無効化されたとき、コンデンサCtは完全放電される。この際、VctがVctLを下回っても、リセット信号生成回路12は、VresetをHレベルに維持する。   When the watchdog timer device 1 is disabled, the capacitor Ct is completely discharged. At this time, even if Vct falls below VctL, the reset signal generation circuit 12 maintains Vreset at the H level.

さらに、ウオッチドッグタイマ装置1が無効化されている場合、SCK信号が入力されなくても、リセット信号生成回路12は、VresetをHレベルに維持する(T6)。   Further, when the watchdog timer device 1 is invalidated, the reset signal generation circuit 12 maintains Vreset at the H level even if the SCK signal is not input (T6).

その後、VinhをHレベルにすることで、再度、ウオッチドッグタイマ装置1を有効化することができる(T7)。   Thereafter, by setting Vinh to H level, the watchdog timer device 1 can be validated again (T7).

このようなウオッチドッグタイマ装置では、監視対象の異常を速やかに発見することが望まれる、すなわち、極力、コンデンサ部15の容量値を小さくし、タイムアウト時間を短くすることが望まれる。   In such a watchdog timer device, it is desired to quickly find an abnormality to be monitored, that is, to reduce the capacitance value of the capacitor unit 15 and to shorten the timeout time as much as possible.

しかしながら、監視対象(例えば、CPU)が、大容量データ処理(例えば、OSのダウンロード)などを行う場合、正常動作であっても、正常時の発行周期でSCK信号が出力できない状態が存在する。   However, when a monitoring target (for example, a CPU) performs large-capacity data processing (for example, download of an OS), there is a state in which an SCK signal cannot be output in a normal issue cycle even in a normal operation.

そのため、意図しないシステムのリセットが生じないよう、大容量データ処理を考慮した、長めのタイムアウト時間に設定する必要があった。   Therefore, it has been necessary to set a longer timeout time in consideration of large-capacity data processing so that an unintended system reset does not occur.

一方、タイムアウト時間を短くするため、大容量データ処理の間、INH信号を出力して、ウオッチドッグタイマ装置1を無効化する方法もあげられる。   On the other hand, in order to shorten the time-out time, there is a method of invalidating the watchdog timer device 1 by outputting an INH signal during large-capacity data processing.

しかしながら、当該方法では、無効化の解除のし忘れや、無効化中の異常発生などの懸念事項が存在する。   However, with this method, there are concerns such as forgetting to cancel the invalidation and the occurrence of an abnormality during the invalidation.

このような課題を解決するため、特許文献1に記載されたウオッチドックタイマでは、タイムアウト時間を設定している抵抗およびコンデンサからなる積分回路と、監視対象のCPUによって制御される被制御機器又は当該被制御機器を構成する部品の駆動状態を検出するセンサと、このセンサの出力に基づき積分回路の抵抗値を少なくとも2段階に切り替える抵抗値切り替え回路とを有し、タイムアウト時間の変更を可能としている。   In order to solve such a problem, in the watchdog timer described in Patent Document 1, an integration circuit including a resistor and a capacitor for setting a timeout time, a controlled device controlled by a monitoring target CPU, or the It has a sensor for detecting the driving state of the components constituting the controlled device, and a resistance value switching circuit for switching the resistance value of the integrating circuit in at least two stages based on the output of the sensor, and the timeout time can be changed. .

特開2008−262443号公報JP 2008-262443 A

しかしながら、上記特許文献1では、センサの出力に基づき、タイムアウト時間を変更する構成であるため、能動的にタイムアウト時間を変更することができない。   However, in the above-mentioned Patent Document 1, since the timeout time is changed based on the output of the sensor, the timeout time cannot be changed actively.

また、上記特許文献1のように、積分回路によってタイムアウト時間を設定している場合であれば、抵抗値を切り替えることで、タイムアウト時間の変更が可能であるが、定電流源とコンデンサ部にて構成されるウオッチドッグタイマ装置であれば、コンデンサ部の容量値を変更することで、タイムアウト時間を変更しなければならない。   Moreover, if the timeout time is set by the integration circuit as in Patent Document 1, the timeout time can be changed by switching the resistance value. In the case of a configured watchdog timer device, the time-out time must be changed by changing the capacitance value of the capacitor unit.

ここで、例えば、コンデンサ部の容量値の変更方法として、容量値の異なるコンデンサを複数設け、必要に応じてコンデンサを切り替える方法を用いた場合、切り替え先のコンデンサには、電荷が無いため、切り替えた瞬間に、コンデンサ部にかかる電圧VctがVctLを下回り、意図せずシステムのリセットを行ってしまうという問題がある。   Here, for example, as a method for changing the capacitance value of the capacitor unit, when a method is used in which a plurality of capacitors having different capacitance values are provided and the capacitors are switched as necessary, the switching destination capacitor has no charge, so switching is performed. At the moment, the voltage Vct applied to the capacitor section falls below VctL, and there is a problem that the system is reset unintentionally.

他の方法で容量値を変更した場合であっても、同様に、コンデンサ部の容量値と電荷とが相対的に変化し、意図せずVctがVctLを下回ることによるシステムのリセットをおこなってしまう恐れがある。   Even when the capacitance value is changed by another method, similarly, the capacitance value of the capacitor portion and the charge are relatively changed, and the system is reset unintentionally due to Vct being lower than VctL. There is a fear.

そこで、本発明では、タイムアウト時間をコンデンサ部の容量値にて設定しているウオッチドッグタイマ装置において、意図しないリセットを防止しながら、タイムアウト時間を変更可能なウオッチドッグタイマ装置を提供することを目的とする。   Accordingly, the present invention provides a watchdog timer device in which the timeout time can be changed while preventing an unintended reset in the watchdog timer device in which the timeout time is set by the capacitance value of the capacitor unit. And

本発明は、監視対象から出力されるクロック信号を取得するクロック検出回路と、タイムアウト時間を設定しているコンデンサ部と、前記コンデンサ部にかかる電圧を監視する電圧監視回路と、前記コンデンサ部に定電流で電力を供給し、前記コンデンサ部から定電流で電力を放電するための定電流源回路と、前記コンデンサ部にかかる電圧が閾値以下になった場合、リセット信号を発行するリセット信号生成回路と、を有するウオッチドッグタイマ装置であって、前記ウオッチドッグタイマ装置は、前記コンデンサ部の容量値を変更するための制御信号を遅延させる制御信号遅延回路と、前記制御信号遅延回路を介さずに前記制御信号が入力され、前記制御信号が入力または停止された場合、所定期間、前記ウオッチドッグタイマ装置を無効化するためのINH制御回路と、前記制御信号遅延回路から出力された信号に基づき、前記コンデンサ部の容量値を変更する容量値変更回路と、
を有し、前記INH制御回路に基づき前記ウオッチドッグタイマ装置が無効化している期間に、前記コンデンサ部の容量値が変更されるように前記制御信号遅延回路による遅延が行われる。
The present invention provides a clock detection circuit that acquires a clock signal output from a monitoring target, a capacitor unit that sets a timeout time, a voltage monitoring circuit that monitors a voltage applied to the capacitor unit, and a capacitor unit. A constant current source circuit for supplying power with current and discharging power with a constant current from the capacitor unit; and a reset signal generating circuit for issuing a reset signal when a voltage applied to the capacitor unit falls below a threshold value; The watchdog timer device includes a control signal delay circuit that delays a control signal for changing the capacitance value of the capacitor unit, and the control signal delay circuit without passing through the control signal delay circuit. When a control signal is input and the control signal is input or stopped, the watchdog timer device is disabled for a predetermined period. And INH control circuit for reduction, based on a signal output from the control signal delay circuit, and the capacitance value changing circuit for changing the capacitance value of the capacitor portion,
The delay by the control signal delay circuit is performed so that the capacitance value of the capacitor unit is changed during a period when the watchdog timer device is invalidated based on the INH control circuit.

本発明により、タイムアウト時間をコンデンサ部の容量値にて設定しているウオッチドッグタイマ装置において、意図しないリセットを防止しながら、タイムアウト時間を変更することが可能になる。   According to the present invention, in the watchdog timer device in which the timeout time is set by the capacitance value of the capacitor unit, it is possible to change the timeout time while preventing an unintended reset.

従来のウオッチドッグタイマ装置の構成図Configuration diagram of a conventional watchdog timer device 従来のウオッチドッグタイマ装置の動作を説明する図The figure explaining operation of the conventional watchdog timer device 本発明の実施例1にかかるウオッチドッグタイマ装置の構成図1 is a configuration diagram of a watchdog timer device according to a first embodiment of the present invention. コンデンサ部の容量値を変更する場合の課題について説明する図The figure explaining the subject when changing the capacity value of a capacitor part 本発明の実施例1にかかるウオッチドッグタイマ装置の動作を説明する図The figure explaining operation | movement of the watchdog timer apparatus concerning Example 1 of this invention. 本発明の実施例2にかかるウオッチドッグタイマ装置の構成図Configuration diagram of a watchdog timer device according to Embodiment 2 of the present invention 本発明の実施例2にかかるウオッチドッグタイマ装置の動作を説明する図The figure explaining operation | movement of the watchdog timer apparatus concerning Example 2 of this invention.

以下、本発明の実施例について図面を参照して詳細に説明する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

ただし、以下に示す実施例は、本発明の技術思想を具体化するためのウオッチドッグタイマ装置を例示して説明するものであって、本発明をこのウオッチドッグタイマ装置に特定することを意図するものではなく特許請求の範囲に示した技術思想を逸脱することなくその他のウオッチドッグタイマ装置にも等しく適用し得るものである。   However, the following embodiments are described by exemplifying a watch dog timer device for embodying the technical idea of the present invention, and the present invention is intended to be specified to this watch dog timer device. The present invention can be applied equally to other watchdog timer devices without departing from the technical idea shown in the claims.

図3は、本発明のウオッチドッグタイマ装置3の構成を説明する構成図である。   FIG. 3 is a configuration diagram illustrating the configuration of the watchdog timer device 3 of the present invention.

ウオッチドッグタイマ装置3は、電圧監視回路11、リセット信号生成回路12、クロック検出回路13、定電流源回路14、コンデンサ部35、コンデンサ追加回路36、INH制御回路37、制御信号遅延回路38から構成される。   The watchdog timer device 3 includes a voltage monitoring circuit 11, a reset signal generation circuit 12, a clock detection circuit 13, a constant current source circuit 14, a capacitor unit 35, a capacitor addition circuit 36, an INH control circuit 37, and a control signal delay circuit 38. Is done.

図1のウオッチドッグタイマ装置1と同様の構成については、同じ図番を付加し、説明を省略する。   The same components as those of the watchdog timer device 1 in FIG.

なお、図3におけるINHは、図1と同じく、ウオッチドッグタイマ装置を有効または無効に切り替える信号であるが、後述する制御信号およびINH制御回路37に基づいている点で図1とは異なる。   Note that INH in FIG. 3 is a signal for switching the watchdog timer device between valid and invalid as in FIG. 1, but is different from FIG. 1 in that it is based on a control signal and an INH control circuit 37 described later.

なお、ウオッチドッグタイマ装置3の監視対象はCPU(不図示)であるものとして、以下の説明を行う。   The following description will be given on the assumption that the monitoring target of the watchdog timer device 3 is a CPU (not shown).

コンデンサ部35は、コンデンサCaおよびコンデンサCbから構成される。ウオッチドッグタイマ装置3のタイムアウト時間はコンデンサ部35の容量値に基づいて決定される。   The capacitor unit 35 includes a capacitor Ca and a capacitor Cb. The time-out time of the watchdog timer device 3 is determined based on the capacitance value of the capacitor unit 35.

コンデンサCaは、定電流源回路14に接続され、コンデンサCbは、コンデンサ追加回路36を介して定電流源回路14に接続される。   The capacitor Ca is connected to the constant current source circuit 14, and the capacitor Cb is connected to the constant current source circuit 14 via the capacitor addition circuit 36.

コンデンサ追加回路36は、コンデンサCbと定電流源回路14との接続を開閉するスイッチで構成される。   The capacitor addition circuit 36 includes a switch that opens and closes the connection between the capacitor Cb and the constant current source circuit 14.

コンデンサ追加回路36は、CPUから出力された制御信号に応じてスイッチを開閉する。   The capacitor addition circuit 36 opens and closes the switch according to the control signal output from the CPU.

コンデンサ追加回路36が有するスイッチが閉じている場合、コンデンサCaに加え、コンデンサCbが機能するため、コンデンサ部35の容量値が増加し、タイムアウト時間が長くなる。   When the switch included in the capacitor addition circuit 36 is closed, the capacitor Cb functions in addition to the capacitor Ca. Therefore, the capacitance value of the capacitor unit 35 increases and the timeout time becomes longer.

INH制御回路37は、コンデンサと抵抗からなる微分回路とFETとで構成される。   The INH control circuit 37 is composed of a differentiation circuit composed of a capacitor and a resistor, and an FET.

INH制御回路37には、制御信号が入力され、制御信号の立上りから所定時間の間、INH信号が発生する(VinhがLレベルになる)ように機能する。   The INH control circuit 37 receives a control signal and functions to generate an INH signal (Vinh becomes L level) for a predetermined time from the rise of the control signal.

具体的には、INH制御回路37の微分回路が制御信号の立上りを検出し、微分回路の出力がFETのゲートに入力され、FETが動作する。FETが動作している間、INH制御回路37のFETにより、VinhがLレベルとなる。   Specifically, the differentiation circuit of the INH control circuit 37 detects the rise of the control signal, the output of the differentiation circuit is input to the gate of the FET, and the FET operates. While the FET is operating, Vinh becomes L level by the FET of the INH control circuit 37.

INH信号は、電源電圧(Vdd)に基づいているため、ウオッチドッグタイマ装置3が起動しているときVinhはHレベルとなるが、FETを動作させてINH信号をGNDに短絡させることでVinhをLレベルにすることができる。   Since the INH signal is based on the power supply voltage (Vdd), Vinh becomes H level when the watchdog timer device 3 is activated. However, by operating the FET and shorting the INH signal to GND, Vinh is reduced. L level can be set.

すなわち、INH制御回路37により、制御信号の立上りから所定時間の間、ウオッチドッグタイマ装置3が無効化される。   That is, the watchdog timer device 3 is invalidated by the INH control circuit 37 for a predetermined time from the rise of the control signal.

制御信号遅延回路38は、抵抗およびコンデンサからなる遅延回路で構成され、制御信号を遅延させて、コンデンサ追加回路36に出力する。   The control signal delay circuit 38 includes a delay circuit composed of a resistor and a capacitor, delays the control signal, and outputs the delayed control signal to the capacitor addition circuit 36.

ここで、制御信号遅延回路38による制御信号の遅延時間は、INH制御回路37により、ウオッチドッグタイマ装置3が無効化されている時間よりも短くなるように設定されている。   Here, the delay time of the control signal by the control signal delay circuit 38 is set to be shorter than the time during which the watchdog timer device 3 is invalidated by the INH control circuit 37.

すなわち、ウオッチドッグタイマ装置3が無効化されている間に、制御信号がコンデンサ追加回路36に出力され、コンデンサ部35の容量値が変わるように遅延時間が設定されている。   That is, while the watchdog timer device 3 is disabled, a control signal is output to the capacitor adding circuit 36, and the delay time is set so that the capacitance value of the capacitor unit 35 changes.

なお、図3に示す通り、CPUから出力された制御信号は、分岐してINH制御回路37および制御信号遅延回路38にそれぞれ入力される。   As shown in FIG. 3, the control signal output from the CPU is branched and input to the INH control circuit 37 and the control signal delay circuit 38, respectively.

ここで、本発明の課題について図4を用いて説明を行う。   Here, the problem of the present invention will be described with reference to FIG.

図4は、図3のウオッチドッグタイマ装置において、INH制御回路37および制御信号遅延回路38を有しない場合のウオッチドッグタイマ装置の動作を説明する。   FIG. 4 illustrates the operation of the watchdog timer apparatus when the INH control circuit 37 and the control signal delay circuit 38 are not provided in the watchdog timer apparatus of FIG.

図4において、制御信号はCPUから出力される信号であり、コンデンサ部35の容量値を変更するための信号である。   In FIG. 4, the control signal is a signal output from the CPU and is a signal for changing the capacitance value of the capacitor unit 35.

ここでは、Hレベル時にコンデンサ追加回路36のスイッチを閉じてコンデンサCbを機能させることで、コンデンサ部35の容量値を増加させる。   Here, the capacitance value of the capacitor unit 35 is increased by closing the switch of the capacitor addition circuit 36 at the H level and causing the capacitor Cb to function.

一方、Lレベル時には、コンデンサ追加回路36のスイッチを開放し、コンデンサCbを機能させない。   On the other hand, at the L level, the switch of the capacitor addition circuit 36 is opened and the capacitor Cb is not functioned.

図4のコンデンサは、機能しているコンデンサを示している。「Ca」であれば。コンデンサCaのみが機能していることを示し、「Ca+Cb」であれば、コンデンサCaおよびコンデンサCbが機能していることを示す。   The capacitor in FIG. 4 indicates a functioning capacitor. If it is “Ca”. Only the capacitor Ca is functioning, and “Ca + Cb” indicates that the capacitor Ca and the capacitor Cb are functioning.

図4において、コンデンサCaのみが機能している状態で、CPUが大容量データ処理を行う場合、意図しないリセット信号の発行を防止するため、タイムアウト時間を長くする必要がある。   In FIG. 4, when the CPU performs large-capacity data processing in a state where only the capacitor Ca is functioning, it is necessary to lengthen the timeout time in order to prevent unintended issuance of a reset signal.

そのため、CPUは、大容量データ処理を開始する前に、制御信号を出力する(Ty)。   Therefore, the CPU outputs a control signal (Ty) before starting large-capacity data processing.

コンデンサ追加回路36は、制御信号に基づき、コンデンサ追加回路36のスイッチを閉じてコンデンサCbを機能させる。   Based on the control signal, the capacitor addition circuit 36 closes the switch of the capacitor addition circuit 36 to cause the capacitor Cb to function.

ここで、コンデンサCbを機能させると、コンデンサCbには電荷がたまっていないため、コンデンサ部にかかる電圧Vctが急激に減少し、VctLを下回り、意図しないリセット信号が発行されてしまう(Tz)。   Here, when the capacitor Cb is made to function, since the capacitor Cb has no electric charge, the voltage Vct applied to the capacitor portion is rapidly reduced to be lower than VctL and an unintended reset signal is issued (Tz).

そのため、本発明では、INH制御回路37および制御信号遅延回路38を設けることで、コンデンサ部35の容量値変更に伴う意図しないリセット信号の発行を防止する。   Therefore, in the present invention, by providing the INH control circuit 37 and the control signal delay circuit 38, an unintended reset signal issuance accompanying a change in the capacitance value of the capacitor unit 35 is prevented.

図5は、図3のウオッチドッグタイマ装置3の動作を示している。   FIG. 5 shows the operation of the watchdog timer device 3 of FIG.

図5において、Vctは、コンデンサ部35にかかる電圧を示している。   In FIG. 5, Vct indicates a voltage applied to the capacitor unit 35.

通常動作時、CPUから制御信号は出力されておらず(Lレベル)、コンデンサ部35のコンデンサCaのみが機能している。   During normal operation, no control signal is output from the CPU (L level), and only the capacitor Ca of the capacitor unit 35 functions.

すなわち、タイムアウト時間が短く設定されており、CPUに何らかの異常が発生し、SCK信号が出力できなくなったとき、速やかに異常を発見し、システムをリセットすることが可能である。   That is, the timeout time is set short, and when an abnormality occurs in the CPU and the SCK signal cannot be output, it is possible to quickly detect the abnormality and reset the system.

通常動作時、正常状態であれば、CPUは発行周期TvckaでSCK信号を出力する。Tvckaは、コンデンサCaに基づくタイムアウト時間よりも短いため、正常動作時に、リセット信号が発行されることはない。   During normal operation, if it is in a normal state, the CPU outputs an SCK signal at the issue cycle Tvcka. Since Tvcka is shorter than the timeout time based on the capacitor Ca, no reset signal is issued during normal operation.

ここで、CPUが大容量データ処理を行う場合、SCK信号の発行周期が長くなりTvckb(Tvcka<Tvckb)となる。   Here, when the CPU performs large-capacity data processing, the SCK signal issuance cycle becomes longer and Tvckb (Tvcka <Tvckb).

Tvckbは、コンデンサCaに基づくタイムアウト時間よりも長いため、タイムアウト時間を長くしなければ、正常動作であっても、リセット信号が発行されてしまう。   Since Tvckb is longer than the timeout time based on the capacitor Ca, a reset signal is issued even if the operation is normal unless the timeout time is increased.

そのため、本発明では、タイムアウト時間を変更しつつ、上述のコンデンサ部35の容量値変更に伴う意図しないリセット信号の発行を防止する。   Therefore, in the present invention, an unintended reset signal accompanying the change in the capacitance value of the capacitor unit 35 is prevented while changing the timeout time.

まず、CPUは、大容量データ処理を開始する前に、タイムアウト時間を長くするため
、制御信号を出力する(Ta)。なお、制御信号はCPUのハード構成により出力されることが好ましい。
First, before starting large-capacity data processing, the CPU outputs a control signal to increase the timeout time (Ta). The control signal is preferably output by the hardware configuration of the CPU.

CPUから出力された制御信号は、INH制御回路37および制御信号遅延回路38に入力される。   The control signal output from the CPU is input to the INH control circuit 37 and the control signal delay circuit 38.

INH制御回路37に制御信号が入力されると、INH制御回路37により、制御信号の立上りから所定時間の間、VinhがLレベルになり、ウオッチドッグタイマ装置3が無効化される(Ta〜Tc間)。   When a control signal is input to the INH control circuit 37, the INH control circuit 37 makes Vinh L level for a predetermined time from the rise of the control signal, and the watchdog timer device 3 is invalidated (Ta to Tc). while).

一方、制御信号遅延回路38に入力された制御信号が、遅延されてコンデンサ追加回路36に出力される。ここで、制御信号遅延回路38による遅延時間はTb−Taであり、ウオッチドッグタイマ装置3の無効化時間(Tc−Ta)よりも短い。   On the other hand, the control signal input to the control signal delay circuit 38 is delayed and output to the capacitor addition circuit 36. Here, the delay time by the control signal delay circuit 38 is Tb-Ta, which is shorter than the invalidation time (Tc-Ta) of the watchdog timer device 3.

コンデンサ追加回路36は、制御信号遅延回路38から出力された制御信号に基づき、スイッチを閉じることで、コンデンサCbを機能させる(Tb)。   The capacitor addition circuit 36 causes the capacitor Cb to function by closing the switch based on the control signal output from the control signal delay circuit 38 (Tb).

この時、既にVinhがLレベルとなっているため、VctはGNDレベルである。   At this time, since Vinh is already at the L level, Vct is at the GND level.

コンデンサCbが機能したタイミング(Tb)は、ウオッチドッグタイマ装置3が無効化されており、リセット信号が発行されない(VresetはHレベルを維持)。   At the timing (Tb) when the capacitor Cb functions, the watchdog timer device 3 is invalidated and no reset signal is issued (Vreset maintains H level).

その後、INH制御回路37による無効化時間が経過し、VinhがHレベルになると、コンデンサ部35への充電が開始され、ウオッチドッグタイマ装置3が有効化される(Tc)。   Thereafter, when the invalidation time by the INH control circuit 37 elapses and Vinh becomes H level, charging of the capacitor unit 35 is started and the watchdog timer device 3 is validated (Tc).

これにより、Tc以降のタイムアウト時間は、Ta以前のタイムアウト時間よりも長く、且つ、Tvckbよりも長くなる。   Thereby, the timeout time after Tc is longer than the timeout time before Ta and longer than Tvckb.

そのため、Tc以降にCPUが大容量データ処理を行ったとしても、正常にTvckb周期でSCK信号が出力されれば、リセット信号が発行されない。   Therefore, even if the CPU performs large-capacity data processing after Tc, the reset signal is not issued if the SCK signal is normally output in the Tvckb cycle.

また、大容量データ処理中に異常が発生し、SCK信号が出力されなくなると、VctがVctLを下回り、リセット信号が発行される。すなわち、大容量データ処理中であっても異常状態を発見することが可能である。   Further, when an abnormality occurs during large-capacity data processing and the SCK signal is not output, Vct falls below VctL and a reset signal is issued. That is, it is possible to find an abnormal state even during large-capacity data processing.

大容量データ処理が終了し、SCK信号の出力周期がTvckaに戻ると、CPUは制御信号の出力を停止する(Td)。   When the large-capacity data processing ends and the output cycle of the SCK signal returns to Tvcka, the CPU stops outputting the control signal (Td).

コンデンサ追加回路36は、制御信号遅延回路38による遅延時間分遅れて、スイッチを開放することにより、コンデンサCbを機能しない状態とする(Te)。   The capacitor adding circuit 36 delays the delay time by the control signal delay circuit 38 and opens the switch so that the capacitor Cb does not function (Te).

これにより、タイムアウト時間は短くなり、ウオッチドッグタイマ装置3がCPUの異常を速やかに判断できる状態となる。   As a result, the time-out period is shortened, and the watchdog timer device 3 is in a state where it can quickly determine whether the CPU is abnormal.

なお、図5では、INH制御回路37により制御信号の立上りから所定時間の間のみ、ウオッチドッグタイマ装置3が無効化され、制御信号が立下るときには無効化されない。   In FIG. 5, the watchdog timer device 3 is invalidated only for a predetermined time from the rise of the control signal by the INH control circuit 37, and is not invalidated when the control signal falls.

これは、コンデンサCbを機能させない状態としても、コンデンサCaにはすでに電荷がたまっているため、急激にVctが減少する恐れがないためである。   This is because, even when the capacitor Cb is not functioning, the capacitor Ca has already been charged, so there is no fear that Vct will decrease rapidly.

なお、INH制御回路37により制御信号の立下りから所定時間の間もウオッチドッグタイマ装置3が無効化される構成であってもよく、その場合は、コンデンサCbを機能させない状態とする場合も、ウオッチドッグタイマ装置3が無効化される。   The watchdog timer device 3 may be invalidated for a predetermined time from the falling edge of the control signal by the INH control circuit 37. In this case, the capacitor Cb may be disabled. The watchdog timer device 3 is invalidated.

以上の説明した通り、本発明は、コンデンサ部35の容量値に基づいてタイムアウト時間が定まるウオッチドッグタイマ装置3において、INH制御回路37および制御信号遅延回路38を設けることにより、意図しないリセット信号の発行を防止しつつ、タイムアウト時間を変更することが可能である。   As described above, according to the present invention, in the watchdog timer device 3 in which the time-out time is determined based on the capacitance value of the capacitor unit 35, by providing the INH control circuit 37 and the control signal delay circuit 38, an unintended reset signal can be generated. It is possible to change the timeout period while preventing issuance.

これにより、監視対象(CPU)が、大容量データ処理などによって、SCK信号の出力周期が長くなっても、意図しないリセット信号の発行を防止できる。   Accordingly, even if the monitoring target (CPU) has a long output cycle of the SCK signal due to large-capacity data processing or the like, it is possible to prevent an unintentional reset signal from being issued.

また、INH制御回路37により、ウオッチドッグタイマ装置3が無効化されるのは、制御信号の立上りから所定時間の間のみであるため、無効化の解除をし忘れることはない。   Further, the watchdog timer device 3 is invalidated by the INH control circuit 37 only for a predetermined time from the rising edge of the control signal, so that it is not forgotten to cancel the invalidation.

次に、図6を用いて、本発明の第2の実施例を説明する。   Next, a second embodiment of the present invention will be described with reference to FIG.

第2の実施例では、コンデンサ部のコンデンサを切り替えることにより、コンデンサ部の容量値を変更する場合について説明を行う。   In the second embodiment, the case where the capacitance value of the capacitor unit is changed by switching the capacitor of the capacitor unit will be described.

図6は、本発明のウオッチドッグタイマ装置6の構成を説明する構成図である。   FIG. 6 is a block diagram illustrating the configuration of the watchdog timer device 6 of the present invention.

ウオッチドッグタイマ装置6は、電圧監視回路11、リセット信号生成回路12、クロック検出回路13、定電流源回路14、コンデンサ部65、コンデンサ切替回路66、INH制御回路67、制御信号遅延回路38から構成される。   The watchdog timer device 6 includes a voltage monitoring circuit 11, a reset signal generation circuit 12, a clock detection circuit 13, a constant current source circuit 14, a capacitor unit 65, a capacitor switching circuit 66, an INH control circuit 67, and a control signal delay circuit 38. Is done.

ここで、図1または図3のウオッチドッグタイマ装置と同様の構成については、同じ図番を付加し、説明を省略する。   Here, with respect to the same configuration as the watch dog timer device of FIG. 1 or FIG.

なお、ウオッチドッグタイマ装置6の監視対象はCPU(不図示)であるものとして、以下の説明を行う。   The following description will be given on the assumption that the monitoring target of the watchdog timer device 6 is a CPU (not shown).

コンデンサ部65は、コンデンサCaおよびコンデンサCbから構成される。ウオッチドッグタイマ装置6のタイムアウト時間はコンデンサ部65の容量値に基づいて決定される。   The capacitor unit 65 includes a capacitor Ca and a capacitor Cb. The time-out time of the watchdog timer device 6 is determined based on the capacitance value of the capacitor unit 65.

INH制御回路67は、抵抗とコンデンサからなる積分回路を応用した立上り/立下り検出回路で構成される。   The INH control circuit 67 is constituted by a rising / falling detection circuit to which an integrating circuit composed of a resistor and a capacitor is applied.

INH制御回路67には、制御信号が入力され、制御信号の立上りおよび立下りから所定時間の間、INH信号が発生する(VinhがLレベルになる)ように機能する。
具体的には制御信号がLレベルからHレベルに切り替わったとき、INH制御回路67は制御信号の立上りを検出し一定時間Lレベルを出力してウオッチドッグタイマ装置3を無効化する。一定時間経過後、INH制御回路67の出力はHレベルになりウオッチドッグタイマ装置3を有効化する。制御信号がHレベルからLレベルに切り替わったときも同様に、制御信号の立下りを検出し一定時間Lレベルを出力してウオッチドッグタイマ装置3を無効化する。一定時間経過後、INH制御回路67の出力はHレベルになりウオッチド
ッグタイマ装置3を有効化する。
The INH control circuit 67 receives a control signal and functions to generate an INH signal (Vinh becomes L level) for a predetermined time from the rise and fall of the control signal.
Specifically, when the control signal is switched from the L level to the H level, the INH control circuit 67 detects the rising edge of the control signal, outputs the L level for a certain time, and invalidates the watchdog timer device 3. After a predetermined time has elapsed, the output of the INH control circuit 67 becomes H level and the watchdog timer device 3 is enabled. Similarly, when the control signal is switched from the H level to the L level, the falling edge of the control signal is detected and the L level is output for a predetermined time to invalidate the watchdog timer device 3. After a predetermined time has elapsed, the output of the INH control circuit 67 becomes H level and the watchdog timer device 3 is enabled.

すなわち、INH制御回路67により、制御信号の立上りから所定時間の間、および制御信号の立下りから所定時間の間、ウオッチドッグタイマ装置3が無効化される。   In other words, the INH control circuit 67 invalidates the watchdog timer device 3 for a predetermined time after the rising edge of the control signal and for a predetermined time after the falling edge of the control signal.

コンデンサCaおよびコンデンサCbは、コンデンサ切替回路66を介して定電流源回路14に接続される。   Capacitor Ca and capacitor Cb are connected to constant current source circuit 14 via capacitor switching circuit 66.

なお、コンデンサCaの容量値よりもコンデンサCbの容量値が大きいものとして、以下の説明を行う。   The following description will be made assuming that the capacitance value of the capacitor Cb is larger than the capacitance value of the capacitor Ca.

コンデンサ切替回路66は、コンデンサCaまたはコンデンサCbと定電流源回路14との接続を開閉するスイッチで構成される。   The capacitor switching circuit 66 includes a switch that opens and closes the connection between the capacitor Ca or the capacitor Cb and the constant current source circuit 14.

コンデンサ切替回路66は、制御信号遅延回路38から出力された制御信号に応じてスイッチを開閉する。   The capacitor switching circuit 66 opens and closes the switch according to the control signal output from the control signal delay circuit 38.

コンデンサ切替回路66が有するスイッチにより、コンデンサCaが機能している場合よりも、コンデンサCbが機能している場合の方が、コンデンサ部65の容量値が大きく、タイムアウト時間が長い。   The capacitance value of the capacitor unit 65 is larger and the timeout time is longer when the capacitor Cb is functioning than when the capacitor Ca is functioning due to the switch of the capacitor switching circuit 66.

第2の実施例では、コンデンサ切替回路66は、制御信号が出力されている場合(Hレベル)、コンデンサCbを機能させ、出力されていない場合(Lレベル)は、コンデンサCaを機能させるようにスイッチングを行う。   In the second embodiment, the capacitor switching circuit 66 causes the capacitor Cb to function when the control signal is output (H level), and causes the capacitor Ca to function when it is not output (L level). Perform switching.

図7は、図6のウオッチドッグタイマ装置6の動作を示している。   FIG. 7 shows the operation of the watchdog timer device 6 of FIG.

図5の動作説明図と同様の構成については、同じ図番を付加し、説明を省略する。   The same components as those in the operation explanatory diagram of FIG.

まず、CPUは、大容量データ処理を開始する前に、タイムアウト時間を長くするため、制御信号を出力する(Ta)。   First, before starting large-capacity data processing, the CPU outputs a control signal to increase the timeout time (Ta).

CPUから出力された制御信号は、INH制御回路67および制御信号遅延回路38に入力される。   The control signal output from the CPU is input to the INH control circuit 67 and the control signal delay circuit 38.

INH制御回路67に制御信号が入力されると、INH制御回路67により、制御信号の立上りから所定時間の間、VinhがLレベルになり、ウオッチドッグタイマ装置6が無効化される(Ta〜Tc間)。   When a control signal is input to the INH control circuit 67, the INH control circuit 67 causes Vinh to become L level for a predetermined time from the rise of the control signal, and the watchdog timer device 6 is invalidated (Ta to Tc). while).

一方、制御信号遅延回路38に入力された制御信号が、遅延されてコンデンサ切替回路66に出力される。   On the other hand, the control signal input to the control signal delay circuit 38 is delayed and output to the capacitor switching circuit 66.

コンデンサ切替回路66は、制御信号に基づき、コンデンサCaからコンデンサCbに接続を切り替える(Tb)。   The capacitor switching circuit 66 switches the connection from the capacitor Ca to the capacitor Cb based on the control signal (Tb).

この時、既にVinhがLレベルとなっているため、VctはGNDレベルである。   At this time, since Vinh is already at the L level, Vct is at the GND level.

コンデンサCbが機能したタイミング(Tb)は、ウオッチドッグタイマ装置6が無効化されており、リセット信号が発行されない(VresetはHレベルを維持)。   At the timing (Tb) when the capacitor Cb functions, the watchdog timer device 6 is invalidated and no reset signal is issued (Vreset maintains H level).

その後、INH制御回路67による無効化時間が経過し、VinhがHレベルになると、コンデンサ部65への充電が開始され、ウオッチドッグタイマ装置6が有効化される(Tc)。   Thereafter, when the invalidation time by the INH control circuit 67 elapses and Vinh becomes H level, charging of the capacitor unit 65 is started, and the watchdog timer device 6 is validated (Tc).

これにより、Tc以降のタイムアウト時間は、Ta以前のタイムアウト時間よりも長く、且つ、Tvckbよりも長くなる。   Thereby, the timeout time after Tc is longer than the timeout time before Ta and longer than Tvckb.

そのため、Tc以降にCPUが大容量データ処理を行ったとしても、正常にTvckb周期でSCK信号が出力されれば、リセット信号が発行されない。   Therefore, even if the CPU performs large-capacity data processing after Tc, the reset signal is not issued if the SCK signal is normally output in the Tvckb cycle.

また、大容量データ処理中に異常が発生し、SCK信号が出力されなくなると、VctがVctLを下回り、リセット信号が発行される。すなわち、大容量データ処理中であっても異常状態を発見することが可能である。   Further, when an abnormality occurs during large-capacity data processing and the SCK signal is not output, Vct falls below VctL and a reset signal is issued. That is, it is possible to find an abnormal state even during large-capacity data processing.

大容量データ処理が終了し、SCK信号の出力周期がTvckaに戻ると、CPUは制御信号の出力を停止する(Td)。   When the large-capacity data processing ends and the output cycle of the SCK signal returns to Tvcka, the CPU stops outputting the control signal (Td).

INH制御回路67は、制御信号の立下りを検知し、制御信号の立下りから所定時間の間、ウオッチドッグタイマ装置6が無効化される(Td〜Tf間)。   The INH control circuit 67 detects the fall of the control signal, and the watchdog timer device 6 is invalidated (between Td and Tf) for a predetermined time from the fall of the control signal.

コンデンサ切替回路66は、制御信号遅延回路38による遅延時間分遅れて、コンデンサCbからコンデンサCaに接続を切り替える(Te)。   The capacitor switching circuit 66 switches the connection from the capacitor Cb to the capacitor Ca after being delayed by the delay time by the control signal delay circuit 38 (Te).

この時、既にVinhがLレベルとなっているため、VctはGNDレベルである。   At this time, since Vinh is already at the L level, Vct is at the GND level.

コンデンサCaが機能したタイミング(Te)は、ウオッチドッグタイマ装置6が無効化されており、リセット信号が発行されない(VresetはHレベルを維持)。   At the timing (Te) when the capacitor Ca functions, the watchdog timer device 6 is invalidated and no reset signal is issued (Vreset maintains H level).

その後、INH制御回路67による無効化時間が経過し、VinhがHレベルになると、コンデンサ部65への充電が開始され、ウオッチドッグタイマ装置6が有効化される(Tf)。   Thereafter, when the invalidation time by the INH control circuit 67 elapses and Vinh becomes H level, charging of the capacitor unit 65 is started and the watchdog timer device 6 is validated (Tf).

これにより、タイムアウト時間は短くなり、ウオッチドッグタイマ装置6がCPUの異常を速やかに判断できる状態となる。   As a result, the time-out time is shortened, and the watchdog timer device 6 is in a state where it can quickly determine whether the CPU is abnormal.

以上の説明した通り、本発明は、コンデンサ部65の容量値に基づいてタイムアウト時間が定まるウオッチドッグタイマ装置6において、INH制御回路67および制御信号遅延回路38を設けることにより、意図しないリセット信号の発行を防止しつつ、タイムアウト時間を変更することが可能である。   As described above, according to the present invention, in the watchdog timer device 6 in which the timeout time is determined based on the capacitance value of the capacitor unit 65, by providing the INH control circuit 67 and the control signal delay circuit 38, an unintended reset signal can be generated. It is possible to change the timeout period while preventing issuance.

本発明のウオッチドッグタイマ装置は、タイムアウト時間を変更するのに有用である。   The watchdog timer device of the present invention is useful for changing the timeout time.

1、3、6 ウオッチドッグタイマ装置
11 電圧監視回路
12 リセット信号生成回路
13 クロック検出回路
14 定電流源回路
15、35、65 コンデンサ部
36 コンデンサ追加回路
37、67 INH制御回路
38 制御信号遅延回路
66 コンデンサ切替回路
1, 3, 6 Watchdog timer device 11 Voltage monitoring circuit 12 Reset signal generation circuit 13 Clock detection circuit 14 Constant current source circuit 15, 35, 65 Capacitor section 36 Capacitor addition circuit 37, 67 INH control circuit 38 Control signal delay circuit 66 Capacitor switching circuit

Claims (5)

監視対象から出力されるクロック信号を取得するクロック検出回路と、
タイムアウト時間を設定しているコンデンサ部と、
前記コンデンサ部にかかる電圧を監視する電圧監視回路と、
前記コンデンサ部に定電流で電力を供給し、前記コンデンサ部から定電流で電力を放電するための定電流源回路と、
前記コンデンサ部にかかる電圧が閾値以下になった場合、リセット信号を発行するリセット信号生成回路と、
を有するウオッチドッグタイマ装置であって、
前記ウオッチドッグタイマ装置は、
前記コンデンサ部の容量値を変更するための制御信号を遅延させる制御信号遅延回路と、
前記制御信号遅延回路を介さずに前記制御信号が入力され、前記制御信号が入力または停止された場合、所定期間、前記ウオッチドッグタイマ装置を無効化するためのINH制御回路と、
前記制御信号遅延回路から出力された信号に基づき、前記コンデンサ部の容量値を変更する容量値変更回路と、
を有し、
前記INH制御回路に基づき前記ウオッチドッグタイマ装置が無効化している期間に、前記コンデンサ部の容量値が変更されるように前記制御信号遅延回路による遅延が行われる、
ウオッチドッグタイマ装置。
A clock detection circuit for acquiring a clock signal output from the monitoring target;
The capacitor part which sets the timeout time,
A voltage monitoring circuit for monitoring the voltage applied to the capacitor unit;
A constant current source circuit for supplying power to the capacitor unit with a constant current, and discharging the power with a constant current from the capacitor unit;
A reset signal generation circuit for issuing a reset signal when the voltage applied to the capacitor section is equal to or lower than a threshold;
A watchdog timer device comprising:
The watchdog timer device is
A control signal delay circuit for delaying a control signal for changing the capacitance value of the capacitor unit;
An INH control circuit for invalidating the watchdog timer device for a predetermined period when the control signal is input without going through the control signal delay circuit and the control signal is input or stopped;
Based on the signal output from the control signal delay circuit, a capacitance value changing circuit that changes the capacitance value of the capacitor unit;
Have
During the period when the watchdog timer device is invalidated based on the INH control circuit, a delay by the control signal delay circuit is performed so that the capacitance value of the capacitor unit is changed.
Watchdog timer device.
前記クロック信号の発行周期が長くなるとき、前記コンデンサ部の容量値が大きい値に変更され、前記クロック信号の発行周期が短くなるとき、前記コンデンサ部の容量値が小さい値に変更される、
請求項1に記載のウオッチドッグタイマ装置。
When the issuing period of the clock signal is increased, the capacitance value of the capacitor unit is changed to a large value, and when the issuing period of the clock signal is reduced, the capacitance value of the capacitor unit is changed to a small value.
The watch dog timer device according to claim 1.
前記クロック信号の発行周期の変化が予測されるとき、前記制御信号が出力される、
請求項1または2に記載のウオッチドッグタイマ装置。
The control signal is output when a change in the issuing period of the clock signal is predicted,
The watchdog timer device according to claim 1 or 2.
前記コンデンサ部は、複数のコンデンサを有し、
前記容量値変更回路は、前記コンデンサの接続を開閉するスイッチで構成され、前記複数のコンデンサの接続数を変更することで、前記コンデンサ部の容量値を変更する、
請求項1乃至3に記載のウオッチドッグタイマ装置。
The capacitor unit has a plurality of capacitors,
The capacitance value changing circuit is composed of a switch that opens and closes the connection of the capacitor, and changes the capacitance value of the capacitor unit by changing the number of connections of the plurality of capacitors.
The watch dog timer device according to claim 1.
前記コンデンサ部は、容量値の異なるコンデンサを2つ以上有し、
前記容量値変更回路は、機能させるコンデンサを変更することで、前記コンデンサ部の容量値を変更する、
請求項1乃至3に記載のウオッチドッグタイマ装置。
The capacitor unit has two or more capacitors having different capacitance values,
The capacitance value changing circuit changes the capacitance value of the capacitor unit by changing the capacitor to function.
The watch dog timer device according to claim 1.
JP2014107744A 2014-05-26 2014-05-26 Watchdog timer device Pending JP2015225360A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014107744A JP2015225360A (en) 2014-05-26 2014-05-26 Watchdog timer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014107744A JP2015225360A (en) 2014-05-26 2014-05-26 Watchdog timer device

Publications (1)

Publication Number Publication Date
JP2015225360A true JP2015225360A (en) 2015-12-14

Family

ID=54842088

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014107744A Pending JP2015225360A (en) 2014-05-26 2014-05-26 Watchdog timer device

Country Status (1)

Country Link
JP (1) JP2015225360A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPWO2019208103A1 (en) * 2018-04-26 2021-05-13 工機ホールディングス株式会社 Driving machine
CN116541203A (en) * 2023-07-07 2023-08-04 成都汉度科技有限公司 Hardware watchdog circuit of LINUX system and dynamic ring monitoring host

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPWO2019208103A1 (en) * 2018-04-26 2021-05-13 工機ホールディングス株式会社 Driving machine
JP7036202B2 (en) 2018-04-26 2022-03-15 工機ホールディングス株式会社 Driving machine
CN116541203A (en) * 2023-07-07 2023-08-04 成都汉度科技有限公司 Hardware watchdog circuit of LINUX system and dynamic ring monitoring host
CN116541203B (en) * 2023-07-07 2023-09-05 成都汉度科技有限公司 Hardware watchdog circuit of LINUX system and dynamic ring monitoring host

Similar Documents

Publication Publication Date Title
US10476374B2 (en) Power supply system and short circuit and/or bad connection detection method thereof, and power converter thereof
KR101106813B1 (en) Overcurrent protection circuit
JP2008125180A (en) Switching step-up power supply circuit
JP2015225360A (en) Watchdog timer device
JP2016046620A (en) Power-on reset circuit
KR101148240B1 (en) Reset circuit
TW201633657A (en) Power supply control device and information processing device
JP2010187438A (en) Battery protection circuit and battery device
JP5163211B2 (en) Semiconductor integrated circuit for reset circuit and power supply control
EP2860634A1 (en) Electronic device
KR101779943B1 (en) Operation voltage detection circuit of MCU
JP6548453B2 (en) Control device and control method thereof
TWI738965B (en) Charge and discharge control circuit and battery device
JP7143797B2 (en) Power control device for in-vehicle camera module
JP5407466B2 (en) Power control method
TWI678854B (en) Power circuit and method for releasing protection status thereof
JP2019106851A (en) Power supply sequence controller of digital protective relay
JP5428969B2 (en) Image forming apparatus
JP6952820B2 (en) Power cutoff start control device
JP2014006225A (en) Image forming device, power source switching method, and program
JP2008070951A (en) Microcomputer monitoring circuit
JP4438535B2 (en) Voltage detector
JP6834523B2 (en) Electronic control device
JP6665653B2 (en) Power supply
JP5495341B2 (en) Reset device and reset operation control method

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20160520