JP6325217B2 - CIRCUIT DEVICE AND CIRCUIT DEVICE RECOVERY METHOD - Google Patents
CIRCUIT DEVICE AND CIRCUIT DEVICE RECOVERY METHOD Download PDFInfo
- Publication number
- JP6325217B2 JP6325217B2 JP2013182852A JP2013182852A JP6325217B2 JP 6325217 B2 JP6325217 B2 JP 6325217B2 JP 2013182852 A JP2013182852 A JP 2013182852A JP 2013182852 A JP2013182852 A JP 2013182852A JP 6325217 B2 JP6325217 B2 JP 6325217B2
- Authority
- JP
- Japan
- Prior art keywords
- circuit
- timer circuit
- clear signal
- control circuit
- power supply
- 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.)
- Active
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
Description
本発明は、回路装置および回路装置の復旧方法に関する。 The present invention relates to a circuit device and a circuit device restoration method.
装置のプログラムが異常動作していないか否かを監視し、異常があった場合に再起動させる回路として、ウォッチドッグタイマ回路が知られている。しかし、AC商用電源により動作する装置において、制御回路を構成しているメモリの一次的ラッチアップ現象等でプログラム異常が発生した場合、ウォッチドッグタイマ回路による再起動によってもプログラムが正常に動作しない場合がある。この場合、AC商用電源を一旦停止し再入力することで問題なく動作を継続できることがある。しかし、自律的にAC商用電源による供給を停止し再入力する手段がない場合、装置はプログラム異常状態を継続し、装置本来の機能を発揮することができない。 A watchdog timer circuit is known as a circuit that monitors whether or not the program of the apparatus is operating abnormally and restarts when there is an abnormality. However, in a device that operates with an AC commercial power supply, if a program error occurs due to the primary latch-up phenomenon of the memory that constitutes the control circuit, etc., and the program does not operate normally even after restart by the watchdog timer circuit There is. In this case, it may be possible to continue the operation without any problem by temporarily stopping and re-inputting the AC commercial power supply. However, if there is no means for autonomously stopping the supply by the AC commercial power supply and re-inputting, the apparatus continues the program abnormal state and cannot perform the original function of the apparatus.
特許文献1には、ウォッチドッグタイマがコンピュータにリセット信号を送った後、所定時間の間にコンピュータから信号を受け取らない場合には、コンピュータの電源を一定時間遮断する電源一時遮断機能を有するコンピュータシステムが開示されている。当該所定時間については、コンピュータからウォッチドッグタイマにリセット信号が出力される周期の2倍よりも長い時間としておく必要があると記載されている。
しかしながら、特許文献1に記載のコンピュータシステムには以下の問題があった。すなわち、コンピュータがウォッチドッグタイマからリセット信号を受信して再起動に要する時間、さらに再起動後ウォッチドッグタイマに対して信号を出力するまでに要する時間は、コンピュータに実装されているプログラムの動作等により異なる。しかしながら、特許文献1には、ウォッチドッグタイマがコンピュータリセット信号を出力してから電源の一時遮断信号を出力するまでの時間(所定時間)は、コンピュータからウォッチドッグタイマにリセット信号が出力される周期の2倍よりも長い時間としておく必要があると記載されている。そのため、プログラムに変更が生じコンピュータがウォッチドッグタイマからリセット信号を受信して再起動に要する時間、さらに再起動後ウォッチドッグタイマに対して信号を出力するまでに要する時間が変更したとしても、上述の所定時間を変更することができないという問題があった。
However, the computer system described in
本発明は、上述した課題を解決する回路装置を提供することを目的とする。 An object of this invention is to provide the circuit apparatus which solves the subject mentioned above.
本発明の回路装置は、電源部と、制御回路と、タイマ回路と、調整手段とを有し、制御回路は、電源部からの出力により動作し、プログラムが正常に動作している場合にタイマ回路に対してタイマ回路クリア信号を出力し、タイマ回路は、制限時間内に制御回路からタイマ回路クリア信号が入力されない場合に電源部の動作を所定時間停止させ、調整手段は、制限時間を調整することを特徴とする。 The circuit device according to the present invention includes a power supply unit, a control circuit, a timer circuit, and an adjustment unit. The control circuit operates according to an output from the power supply unit, and the timer operates when the program operates normally. A timer circuit clear signal is output to the circuit, and the timer circuit stops the operation of the power supply unit for a predetermined time when the timer circuit clear signal is not input from the control circuit within the time limit, and the adjusting means adjusts the time limit. It is characterized by doing.
本発明の装置の復旧方法は、電源部を有する回路装置において、プログラムが正常に動作している場合に出力されるタイマ回路クリア信号の入力を判断するステップと、制限時間内にタイマ回路クリア信号が入力されない場合に電源部の動作を所定時間停止させ再稼動させるステップと、制限時間を調整するステップと、を含むことを特徴とする。 In a circuit device having a power supply unit, a device recovery method according to the present invention includes a step of determining an input of a timer circuit clear signal output when a program is operating normally, and a timer circuit clear signal within a time limit. In the case where no power is input, the operation includes stopping the operation of the power supply unit for a predetermined time and restarting the operation, and adjusting the time limit.
本発明によれば、プログラムの変更に応じて電源部の動作を停止させるまでの時間を柔軟に調整可能な回路装置を提供することができる。 ADVANTAGE OF THE INVENTION According to this invention, the circuit apparatus which can adjust flexibly the time until it stops operation | movement of a power supply part according to the change of a program can be provided.
[第1の実施形態]
図1は、第1の実施形態にかかる回路装置100の構成を示す図である。回路装置100は、電源部10と、制御回路20と、タイマ回路30と、調整手段40と、を含んで構成される。
[First Embodiment]
FIG. 1 is a diagram illustrating a configuration of a
電源部10は、AC商用電源やDC電源等の外部電源から電源供給を受ける。
The
制御回路20は、制御回路20のプログラムが正常に動作している場合にタイマ回路クリア信号を後述のタイマ回路30に出力する。プログラムが正常に動作していない場合にはタイマ回路クリア信号を出力しない。
The
タイマ回路30は、後述の調整手段40により制限時間t内にタイマ回路クリア信号が入力されない場合に電源部10による電源供給を停止させ、所定時間経過後に電源部10を再稼動させる機能を有する。
The
調整手段40は、タイマ回路30がタイマ回路クリア信号の入力を受け付ける制限時間tを調整する。
The adjusting means 40 adjusts the time limit t at which the
タイマ回路30の動作を中心に回路装置100の動作について説明する。図2は、タイマ回路30の動作を説明するフロー図である。
The operation of the
タイマ回路30は、制御回路20からのタイマ回路クリア信号の入力があるか否かを判断する(S1)。タイマ回路クリア信号の入力がない場合(S1でno)、制限時間tが経過したか否かを判断する(S2)。タイマ回路クリア信号の入力がないまま制限時間tが経過した場合(S2でyes)、タイマ回路30は電源部10の動作を停止させ、所定時間経過後に再稼動させる(S3)。
The
本実施の形態にかかる回路装置100によれば、制御回路20のプログラムが正常に動作していない場合に自動的に電源部10の動作を停止させ再稼動させることができる。この場合において、タイマ回路がタイマ回路クリア信号の入力を受け付ける制限時間tを調整手段40で調整する。これにより、装置に実装されるプログラムの変更等により装置がウォッチドッグタイマからリセット信号を受信して再起動に要する時間、さらに再起動後ウォッチドッグタイマに対して信号を出力するまでに要する時間に変更が生じたとしても、当該変更に応じて電源部の動作を停止させるまでの時間を柔軟に調整することができる。
According to the
[第2の実施形態]
図3は、第2の実施形態にかかる回路装置200の構成を示す図である。図4は、制御回路21の構成を示す図である。
[Second Embodiment]
FIG. 3 is a diagram illustrating a configuration of a circuit device 200 according to the second embodiment. FIG. 4 is a diagram illustrating a configuration of the control circuit 21.
回路装置200は、電源部10aと、内部回路20aと、タイマ回路30aと、コンデンサ41、42とを含んで構成される。
The circuit device 200 includes a power supply unit 10a, an internal circuit 20a, a timer circuit 30a, and
電源部10aは、AC/DC変換回路11とDC/DC変換回路12とを含む。 The power supply unit 10 a includes an AC / DC conversion circuit 11 and a DC / DC conversion circuit 12.
AC/DC変換回路11は、AC商用電源101からの電源供給を受け付け、タイマ回路30aおよびDC/DC変換回路12にDC電源111を出力する。
The AC / DC conversion circuit 11 receives power supply from the AC
DC/DC変換回路12は、DC電源111をDC電源121に変換し、内部回路20aに出力する。 The DC / DC conversion circuit 12 converts the DC power supply 111 into a DC power supply 121 and outputs it to the internal circuit 20a.
内部回路20aは、制御回路21とウォッチドッグタイマ回路22とを含む。 Internal circuit 20 a includes a control circuit 21 and a watchdog timer circuit 22.
制御回路21は、図4に示すように、CPU(Central Processing Unit)21a、メモリ21b、I/O周辺回路21c、これらを相互に接続するCPUバス21dを含む。制御回路21は、制御回路21のプログラムが正常に動作していることを示すウォッチドッグタイマ回路クリア信号212を一定時間ごとにウォッチドッグタイマ回路22に出力する。逆に、プログラムが正常に動作していない場合にはウォッチドッグタイマ回路22に対してウォッチドッグタイマ回路クリア信号212を出力しない。また、制御回路21は、タイマ回路30aに対してタイマ回路クリア信号211を出力する。これについては、回路装置200の動作を説明する際に詳細に説明する。
As shown in FIG. 4, the control circuit 21 includes a CPU (Central Processing Unit) 21a, a
ウォッチドッグタイマ回路22は、制御回路21からウォッチドッグタイマ回路クリア信号212の入力がない場合に制御回路21が正常に動作していないと判断する。そして、制御回路21を再起動させるため、制御回路21およびタイマ回路30aに対して制御回路クリア信号221を出力する。 The watchdog timer circuit 22 determines that the control circuit 21 is not operating normally when there is no input of the watchdog timer circuit clear signal 212 from the control circuit 21. In order to restart the control circuit 21, a control circuit clear signal 221 is output to the control circuit 21 and the timer circuit 30a.
タイマ回路30aは、制御回路21からのタイマ回路クリア信号211およびウォッチドッグタイマ回路22からの制御回路クリア信号221に応じて動作する。タイマ回路30aは、制御回路21がウォッチドッグタイマ回路22からの制御回路クリア信号221に応じて再起動できない場合、DC/DC変換回路12に対して所定時間DC/DC変換回路Disable信号301を出力する。すなわち、DC/DC変換回路12を一旦停止させ、再稼働させる機能を有する。タイマ回路30aは、DC/DC変換回路12からのDC電源121ではなくAC/DC変換回路11からのDC電源111で動作するため、DC/DC変換回路12からのDC電源121の出力が停止している期間であっても動作可能である。
The timer circuit 30 a operates in response to the timer circuit
コンデンサ41、42は、第1の実施形態の回路装置100における調整手段40に対応する。
The
コンデンサ41は、タイマ回路30aが制御回路21からタイマ回路クリア信号211の入力を受け付ける時間、すなわち、制御回路21が制御回路クリア信号221により再起動を試みる制限時間t4を調整する。
The
コンデンサ42は、タイマ回路30aがDC/DC変換回路12を停止させてから再稼働させるまでの時間t5を調整する。 The capacitor 42 adjusts a time t5 from when the timer circuit 30a stops the DC / DC conversion circuit 12 until it is restarted.
回路装置200の動作を説明する。図5及び図6は、回路装置200の動作を説明するタイミングチャートである。図5は、ウォッチドッグタイマ回路22の動作によって制御回路21が正常に再起動する場合の動作を示す。図6は、ウォッチドッグタイマ回路22を動作させても制御回路21が正常に再起動しない場合の動作を示す。 The operation of the circuit device 200 will be described. 5 and 6 are timing charts for explaining the operation of the circuit device 200. FIG. FIG. 5 shows the operation when the control circuit 21 is normally restarted by the operation of the watchdog timer circuit 22. FIG. 6 shows the operation when the control circuit 21 does not restart normally even when the watchdog timer circuit 22 is operated.
まず、図5について説明する。制御回路21は、ウォッチドッグタイマ回路22に対して制御回路21のプログラムが正常に動作していることを示すウォッチドッグタイマ回路クリア信号212を所定時間t1ごとに連続して出力する。 First, FIG. 5 will be described. The control circuit 21 continuously outputs a watchdog timer circuit clear signal 212 indicating that the program of the control circuit 21 is operating normally to the watchdog timer circuit 22 every predetermined time t1.
ウォッチドッグタイマ回路22は、所定時間t2内に制御回路21からのウォッチドッグタイマ回路クリア信号212を検出できない場合、制御回路21が正常に動作していないと判断する。そして、ウォッチドッグタイマ回路22は、制御回路21を再起動させるため制御回路21およびタイマ回路30aに対してLowパルス(アクティブ)の制御回路クリア信号221をt3時間出力する。 If the watchdog timer circuit clear signal 212 from the control circuit 21 cannot be detected within the predetermined time t2, the watchdog timer circuit 22 determines that the control circuit 21 is not operating normally. The watchdog timer circuit 22 outputs a low pulse (active) control circuit clear signal 221 to the control circuit 21 and the timer circuit 30a for the time t3 in order to restart the control circuit 21.
制御回路21は、ウォッチドッグタイマ回路22からの制御回路クリア信号221に応じて再起動状態となる。制御回路21は、再起動状態の間は制御回路クリア信号端子を制御することができない。再起動状態の間にハイインピーダンス状態となる端子(例えば3状態バッファ、オープン・コネクタ、オープン・ドレイン)をタイマ回路クリア信号端子に割り当て、抵抗R1を接続する。これにより、制御回路21は、再起動状態の間にタイマ回路30aに対してLowパルス(アクティブ)のタイマ回路クリア信号211を出力する。
The control circuit 21 enters a restart state in response to the control circuit clear signal 221 from the watchdog timer circuit 22. The control circuit 21 cannot control the control circuit clear signal terminal during the restart state. A terminal (for example, a three-state buffer, an open connector, and an open drain) that is in a high impedance state during the restart state is assigned to the timer circuit clear signal terminal, and the resistor R1 is connected. As a result, the control circuit 21 outputs a low pulse (active) timer circuit
タイマ回路30aは、制御回路クリア信号221およびタイマ回路クリア信号211がともにLowレベルになったタイミングで、コンデンサ41の時定数に基づいて調整した制限時間t4のカウントを開始する。
The timer circuit 30a starts counting the time limit t4 adjusted based on the time constant of the
再起動状態から正常状態に復旧した制御回路21は、タイマ回路30aに対してLowパルス(アクティブ)のタイマ回路クリア信号211を出力する。
The control circuit 21 restored from the restart state to the normal state outputs a low pulse (active) timer circuit
タイマ回路30aは、t4時間内に制御回路21からのタイマ回路クリア信号211を確認した場合、制御回路21が正常状態に復旧したと判断し、動作を停止する。すなわち、DC/DC変換回路12に対してDC/DC変換回路Disable信号301を出力しない。
When the timer circuit 30a confirms the timer circuit
次に、図6について説明する。制御回路21は、ウォッチドッグタイマ回路22に対して制御回路21のプログラムが正常に動作していることを示すウォッチドッグタイマ回路クリア信号212を所定時間t1ごとに連続して出力する。 Next, FIG. 6 will be described. The control circuit 21 continuously outputs a watchdog timer circuit clear signal 212 indicating that the program of the control circuit 21 is operating normally to the watchdog timer circuit 22 every predetermined time t1.
ウォッチドッグタイマ回路22は、所定時間t2内に制御回路21からのウォッチドッグタイマ回路クリア信号212を検出できない場合、制御回路21が正常に動作していないと判断する。そして、ウォッチドッグタイマ回路22は、制御回路21を再起動させるため制御回路21およびタイマ回路30aに対してLowパルス(アクティブ)の制御回路クリア信号221をt3時間出力する。 If the watchdog timer circuit clear signal 212 from the control circuit 21 cannot be detected within the predetermined time t2, the watchdog timer circuit 22 determines that the control circuit 21 is not operating normally. The watchdog timer circuit 22 outputs a low pulse (active) control circuit clear signal 221 to the control circuit 21 and the timer circuit 30a for the time t3 in order to restart the control circuit 21.
制御回路21は、ウォッチドッグタイマ回路22からの制御回路クリア信号221に応じて再起動状態となり、タイマ回路30aに対してLowパルス(アクティブ)のタイマ回路クリア信号211を出力する。
The control circuit 21 is restarted in response to the control circuit clear signal 221 from the watchdog timer circuit 22, and outputs a low pulse (active) timer circuit
タイマ回路30aは、制御回路クリア信号221およびタイマ回路クリア信号211がともにLowレベルであることを確認した場合、コンデンサ41の時定数に基づいて調整した制限時間t4のカウントを開始する。ここまでの動作は、図5の場合と同様である。
When the timer circuit 30a confirms that both the control circuit clear signal 221 and the timer circuit
再起動状態から正常状態に復旧しない制御回路21は、タイマ回路30aに対してLowパルス(アクティブ)のタイマ回路クリア信号211を出力することができない。
The control circuit 21 that does not recover from the restart state to the normal state cannot output the low pulse (active) timer circuit
タイマ回路30aがt4時間内に制御回路21からのタイマ回路クリア信号211の確認をすることができない場合、カウントが満了する。そして、タイマ回路30aは、コンデンサ42の時定数に基づいて調整した時間t5、DC/DC変換回路12に対してLowパルス(アクティブ)のDC/DC変換回路Disable信号301を出力する。すなわち、t5時間DC/DC変換回路12を停止させ、再稼働させる。
When the timer circuit 30a cannot confirm the timer circuit
DC/DC変換回路12は、DC/DC変換回路Disable信号301の入力を受け付けている間内部回路20aへのDC電源121の出力を停止する。 The DC / DC conversion circuit 12 stops the output of the DC power supply 121 to the internal circuit 20a while receiving the input of the DC / DC conversion circuit Disable signal 301.
内部回路20aは、DC電源121からの出力が停止されている間、回路装置200にAC商用電源101が入力されていない状態と同じ状態となり動作停止状態となる。DC/DC変換回路12が再稼働すると、制御回路21は、回路装置200にAC商用電源101が再入力された状態と同じ状態となり正常状態で動作を継続する。
While the output from the DC power supply 121 is stopped, the internal circuit 20a becomes the same state as the state where the AC
本実施形態にかかる回路装置200によれば、制御回路21がウォッチドッグタイマ回路22からの制御回路クリア信号221により正常に再起動しない場合、タイマ回路30aにより自動的にDC/DC変換回路12を停止させ、再稼働させることができる。また、再起動の制限時間t4を調整するコンデンサ41を有する。これにより、装置に実装されるプログラムの変更等により装置がウォッチドッグタイマからリセット信号を受信して再起動に要する時間、さらに再起動後ウォッチドッグタイマに対して信号を出力するまでに要する時間に変更が生じたとしても、当該変更に応じて電源部の動作を停止させるまでの時間を柔軟に調整することができる。
According to the circuit device 200 according to the present embodiment, when the control circuit 21 does not restart normally by the control circuit clear signal 221 from the watchdog timer circuit 22, the timer circuit 30a automatically activates the DC / DC conversion circuit 12. Can be stopped and restarted. Moreover, it has the capacitor |
また、装置によってDC/DC変換回路の最低電源停止時間があらかじめ決められている場合がある。本実施形態にかかる回路装置200では、DC/DC変換回路12を停止させてから再稼働させるまでの時間t5を調整するコンデンサ42を有する。これにより、装置によってDC/DC変換回路の最低電源停止時間が異なる場合であっても、当該時間に合わせて電源停止時間を柔軟に調整することができる。 In some cases, the minimum power supply stop time of the DC / DC conversion circuit is determined in advance by the apparatus. The circuit device 200 according to the present embodiment includes the capacitor 42 that adjusts the time t5 from when the DC / DC conversion circuit 12 is stopped to when it is restarted. Thereby, even when the minimum power supply stop time of the DC / DC conversion circuit varies depending on the device, the power supply stop time can be flexibly adjusted according to the time.
さらに、コンデンサ41、42の放電特性を利用して制限時間や電源停止時間を調整することにより、振動子等の発信源によるカウンタ回路を用いてカウントする場合と比較して消費電力を抑えることができる。
Furthermore, by using the discharge characteristics of the
[第3の実施形態]
図7は、第3の実施形態にかかる回路装置300の構成を示す図である。本実施形態では、第2の実施形態におけるコンデンサ41、42に対応する構成として、タイマ回路30b内にカウンタ回路30b1を構成する。すなわち、AC商用電源101の周波数に基づいて再起動の制限時間t4およびDC/DC変換回路12の停止時間t5を調整する。その他の構成は第2の実施形態における回路装置200と同様である。
[Third Embodiment]
FIG. 7 is a diagram illustrating a configuration of a circuit device 300 according to the third embodiment. In the present embodiment, a counter circuit 30b1 is configured in the timer circuit 30b as a configuration corresponding to the
AC商用電源101の周波数を利用してタイマ回路30b内にカウンタ回路30b1を構成する場合、タイマ回路30bに制御回路クリア信号221およびタイマ回路クリア信号211が入力される前の期間(制御回路21のプログラムが正常に動作している期間)中であっても電力を消費することになる。この場合は、タイマ回路30bに制御回路クリア信号221およびタイマ回路クリア信号211が入力される前の期間中はカウンタ回路30b1の動作を停止させ、低省電力モードとすればよい。そして、制御回路クリア信号221およびタイマ回路クリア信号211が入力されたことを契機にカウンタ動作を開始するように構成する。その他の動作は、第1および第2の実施形態における回路装置と同様である。
When the counter circuit 30b1 is configured in the timer circuit 30b using the frequency of the AC
AC商用電源101の周波数は、50Hzもしくは60Hzと安定している。そのため、AC商用電源101の周波数を利用することにより、タイマ回路30bの精度が向上する。さらに、コンデンサを用いる場合と比較して部品実装面積を小さくすることができるとともに回路作製のコストを低減することができる。
The frequency of the AC
[第4の実施形態]
図8は、第4の実施形態にかかる回路装置400を示す図である。本実施形態では、第3の実施形態におけるAC商用電源101の周波数に代えて、外部DC電源からのDC入力102に基づいて再起動の制限時間t4およびDC/DC変換回路12の停止時間t5を調整する。
[Fourth Embodiment]
FIG. 8 is a diagram illustrating a circuit device 400 according to the fourth embodiment. In this embodiment, instead of the frequency of the AC
回路装置400は、DC入力102のリップル・スパイクノイズから一定の周波数を抽出するリップル・スパイクノイズ抽出回路43を備える。その他の構成および動作は第1乃至第3の実施形態における回路装置と同様である。
The circuit device 400 includes a ripple / spike noise extraction circuit 43 that extracts a constant frequency from the ripple / spike noise of the
一般的にDC電源のリップル・スパイクノイズは一定の周波数である。そのため、リップル・スパイクノイズ抽出回路43を備えDC入力102のリップル・スパイクノイズから一定の周波数を抽出することにより、コンデンサを用いる場合と比較してタイマ回路30cの精度が向上する。さらに、コンデンサを用いる場合と比較して部品実装面積を小さくすることができるとともに回路作製のコストを低減することができる。
Generally, ripple / spike noise of a DC power supply has a constant frequency. Therefore, by providing the ripple / spike noise extraction circuit 43 and extracting a constant frequency from the ripple / spike noise of the
[第5の実施形態]
図9は、第5の実施形態にかかる回路装置500を示す図である。回路装置500は、第2の実施形態におけるウォッチドッグタイマ22およびコンデンサ41を削除した構成である。また、本実施形態において制御回路21’内のメモリ21b’およびI/O周辺回路21c’の少なくとも一方は、セルフテストを行う。CPU21a’は、当該セルフテストが失敗した場合(例えばセルフテストによってもプログラム異常を回復することができなかった場合)、タイマ回路30dに対してタイマ回路クリア信号211’を出力する。
[Fifth Embodiment]
FIG. 9 is a diagram illustrating a circuit device 500 according to the fifth embodiment. The circuit device 500 has a configuration in which the watchdog timer 22 and the
セルフテストは、定期的、電源オン時、または、1日の中で任意の時間に実行されることが考えられる。 Self-tests can be performed regularly, at power-on, or at any time of day.
タイマ回路30dは、コンデンサ42の時定数に基づいて調整した時間t5、DC/DC変換回路12に対してLowパルス(アクティブ)のDC/DC変換回路Disable信号301を出力する。すなわち、DC/DC変換回路12をt5時間停止させ、再稼働させる。 The timer circuit 30d outputs a low pulse (active) DC / DC conversion circuit Disable signal 301 to the DC / DC conversion circuit 12 at time t5 adjusted based on the time constant of the capacitor 42. That is, the DC / DC conversion circuit 12 is stopped for t5 time and restarted.
本実施形態にかかる回路装置500では、メモリ21b’およびI/O周辺回路21c’の少なくとも一方が行ったセルフテストの結果に基づいてタイマ回路クリア信号を出力する。これにより、第2の実施形態におけるウォッチドッグタイマ22およびコンデンサ41が不要となり、より部品実装面積を小さくすることができるとともに回路作製のコストを低減することができる。
In the circuit device 500 according to the present embodiment, the timer circuit clear signal is output based on the result of the self test performed by at least one of the
[第6の実施形態]
図10は、第6の実施形態にかかる回路装置600を示す図である。回路装置600は、第1乃至5にかかる回路装置に、さらに読取手段50を設けたものである。図10においては、特に第1の実施形態にかかる回路装置100に読取手段50を設けた例について説明する。
[Sixth Embodiment]
FIG. 10 is a diagram illustrating a
制御回路20内のメモリ20b’’には、制御回路20が有しているプログラムの識別子と当該プログラムにおいて装置がウォッチドッグタイマからリセット信号を受信して再起動に要する時間(再起動時間)と、再起動後ウォッチドッグタイマに対して信号を出力するまでに要する時間(パルス出力時間)とが対応づけられたテーブル1が記憶されている(図11)。
The
読取手段50は、装置に実装されるプログラムに変更があった場合、テーブル1から変更後のプログラムに対応する再起動時間とパルス出力時間を読み出し、読み出した時間に応じて再起動の制限時間t4を設定する。そして、設定したt4を調整手段に指示する。
When the program installed in the apparatus is changed, the
本実施形態にかかる回路装置600によれば、読取手段50を設けることにより、プログラムに変更が生じ装置がウォッチドッグタイマからリセット信号を受信して再起動に要する時間、さらに再起動後ウォッチドッグタイマに対して信号を出力するまでに要する時間が変更した場合であっても、その変更に応じて再起動の制限時間を自動的に設定することができる。
According to the
テーブル1に、さらにタイマ回路30が電源部10の動作を停止させる時間を対応づけて記憶することもできる。これにより、プログラムに変更が生じDC/DC変換回路の最低電源停止時間に変更が生じた場合であっても、その変更に応じて電源停止時間を自動的に設定することができる。
The table 1 can further store the time during which the
以上、本発明の実施形態について説明したが、本発明は、上記実施形態に限定されるものではなく、本発明の趣旨を逸脱しない限りにおいて、他の変形例、応用例を含むことは言うまでもない。 As mentioned above, although embodiment of this invention was described, this invention is not limited to the said embodiment, Of course, unless it deviates from the meaning of this invention, another modification and an application example are included. .
上記の実施形態の一部又は全部は、以下のようにも記載されうるが、以下には限られない。 Part or all of the above embodiments can be described as follows, but is not limited to the following.
(付記1)
電源部と、制御回路と、タイマ回路と、調整手段とを有し、
前記制御回路は、前記電源部からの出力により動作し、プログラムが正常に動作している場合に前記タイマ回路に対してタイマ回路クリア信号を出力し、
前記タイマ回路は、制限時間内に前記制御回路から前記タイマ回路クリア信号が入力されない場合に前記電源部の動作を所定時間停止させ、
前記調整手段は、前記制限時間を調整することを特徴とする回路装置。
(Appendix 1)
A power supply unit, a control circuit, a timer circuit, and adjustment means;
The control circuit operates by an output from the power supply unit, and outputs a timer circuit clear signal to the timer circuit when a program is operating normally,
The timer circuit stops the operation of the power supply unit for a predetermined time when the timer circuit clear signal is not input from the control circuit within a time limit,
The circuit device characterized in that the adjusting means adjusts the time limit.
(付記2)
前記調整手段は、さらに前記タイマ回路が前記電源部の動作を停止させる時間を調整する、付記1に記載の回路装置。
(Appendix 2)
The circuit device according to
(付記3)
ウォッチドッグタイマ回路をさらに有し、
前記制御回路は、正常に動作している場合に前記ウォッチドッグタイマ回路に対してウォッチドッグタイマ回路クリア信号を出力し、
前記ウォッチドッグタイマ回路は、前記制御回路から前記ウォッチドッグタイマ回路クリア信号が入力されない場合に前記制御回路および前記タイマ回路に対して制御回路クリア信号を出力し、
前記制御回路は、前記制御回路クリア信号の入力に応じて再起動を試み、
前記タイマ回路は、前記制御回路クリア信号の入力に応じて前記制限時間のカウントを開始し、
前記タイマ回路クリア信号は、前記制御回路が再起動した場合に出力する信号である、付記1又は2に記載の回路装置。
(Appendix 3)
A watchdog timer circuit;
The control circuit, when operating normally, outputs a watchdog timer circuit clear signal to the watchdog timer circuit,
The watchdog timer circuit outputs a control circuit clear signal to the control circuit and the timer circuit when the watchdog timer circuit clear signal is not input from the control circuit,
The control circuit attempts to restart in response to the input of the control circuit clear signal,
The timer circuit starts counting the time limit in response to the input of the control circuit clear signal,
The circuit device according to
(付記4)
前記調整手段としてコンデンサを有する、請求項1乃至3のいずれか一項に記載の回路装置。
(Appendix 4)
The circuit device according to
(付記5)
前記調整手段は、前記電源部に接続されたAC商用電源の周波数を用いる、付記1乃至3のいずれか一項に記載の回路装置。
(Appendix 5)
The circuit device according to any one of
(付記6)
前記電源部に接続されたDC電源のリップルノイズおよびスパイクノイズの少なくともいずれか一方を抽出するリップル・スパイクノイズ抽出回路をさらに有し、
前記調整手段は、前記リップルノイズおよびスパイクノイズの少なくとも一方の周波数を用いる、付記1乃至3のいずれか一項に記載の回路装置。
(Appendix 6)
A ripple / spike noise extraction circuit for extracting at least one of ripple noise and spike noise of a DC power supply connected to the power supply unit;
The circuit device according to any one of
(付記7)
前記制御回路はセルフテストを行い、前記セルフテストの結果に応じて前記タイマ回路に対し前記タイマ回路クリア信号を出力する、付記1乃至3のいずれか一項に記載の回路装置。
(Appendix 7)
The circuit device according to any one of
(付記8)
電源部と、制御回路と、ウォッチドッグタイマ回路と、タイマ回路と、コンデンサとを有し、
前記制御回路は、前記電源部からの出力により正常動作している場合に前記ウォッチドッグタイマ回路に対してウォッチドッグタイマ回路クリア信号を出力し、正常動作していない場合に前記ウォッチドックタイマ回路からの制御回路クリア信号に応じて再起動を試み、再起動した場合に前記タイマ回路に対してタイマ回路クリア信号を出力し、
前記ウォッチドッグタイマ回路は、前記ウォッチドッグタイマ回路クリア信号が入力されない場合に前記制御回路及び前記タイマ回路に対して前記制御回路クリア信号を出力し、
前記タイマ回路は、制限時間内に前記制御回路から前記タイマ回路クリア信号が入力されない場合に前記電源部に対して前記電源部を停止させるための信号を出力し、
前記コンデンサは、前記制限時間を調整することを特徴とする回路装置。
(Appendix 8)
A power supply unit, a control circuit, a watchdog timer circuit, a timer circuit, and a capacitor;
The control circuit outputs a watchdog timer circuit clear signal to the watchdog timer circuit when operating normally by an output from the power supply unit, and from the watchdog timer circuit when not operating normally. Attempting to restart according to the control circuit clear signal, and when restarting, output a timer circuit clear signal to the timer circuit,
The watchdog timer circuit outputs the control circuit clear signal to the control circuit and the timer circuit when the watchdog timer circuit clear signal is not input,
The timer circuit outputs a signal for stopping the power supply unit to the power supply unit when the timer circuit clear signal is not input from the control circuit within a time limit,
The circuit device, wherein the capacitor adjusts the time limit.
(付記9)
電源部を有する回路装置において、
プログラムが正常に動作している場合に出力されるタイマ回路クリア信号の入力を判断するステップと、
制限時間内に前記タイマ回路クリア信号が入力されない場合に前記電源部の動作を所定時間停止させ再稼動させるステップと、
前記制限時間及び前記タイマ回路が前記電源部の動作を停止させる時間を調整する調整ステップと、を含むことを特徴とする回路装置の復旧方法。
(Appendix 9)
In a circuit device having a power supply unit,
Determining the input of a timer circuit clear signal output when the program is operating normally;
When the timer circuit clear signal is not input within a time limit, the operation of the power supply unit is stopped for a predetermined time and restarted;
Adjusting the time limit and the time for which the timer circuit stops the operation of the power supply unit.
(付記10)
前記調整ステップにおいてさらに、前記電源部の動作を停止させる時間を調整する、付記9に記載の回路装置の復旧方法。
(Appendix 10)
The circuit device recovery method according to appendix 9, wherein the adjustment step further adjusts the time for stopping the operation of the power supply unit.
(付記11)
前記ウォッチドッグタイマ回路クリア信号の入力を判断するステップと、
前記ウォッチドッグタイマ回路クリア信号が入力されない場合に制御回路クリア信号を出力するステップと、
前記制御回路クリア信号に応じて再起動し前記タイマ回路クリア信号を出力するステップと、
前記制御回路クリア信号に応じて前記制限時間のカウントを開始するステップと、を含む
付記9又は10に記載の回路装置の復旧方法。
(Appendix 11)
Determining the input of the watchdog timer circuit clear signal;
Outputting a control circuit clear signal when the watchdog timer circuit clear signal is not input;
Restarting in response to the control circuit clear signal and outputting the timer circuit clear signal;
11. The circuit device recovery method according to
(付記12)
前記調整ステップにおいてコンデンサを用いる、付記9乃至11のいずれか一項に記載の回路装置の復旧方法。
(Appendix 12)
The circuit device restoration method according to any one of appendices 9 to 11, wherein a capacitor is used in the adjustment step.
(付記13)
前記調整ステップにおいて前記電源部に接続されたAC商用電源の周波数を用いる、付記9乃至11のいずれか一項に記載の回路装置の復旧方法。
(Appendix 13)
The restoration method for a circuit device according to any one of appendices 9 to 11, wherein a frequency of an AC commercial power source connected to the power source unit is used in the adjustment step.
(付記14)
前記電源部に接続されたDC電源のリップルノイズおよびスパイクノイズの少なくともいずれか一方を抽出するリップル・スパイクノイズ抽出するステップをさらに有し、
前記調整ステップにおいて前記リップルノイズおよびスパイクノイズの少なくとも一方の周波数を用いる、付記9乃至11のいずれか一項に記載の回路装置の復旧方法。
(Appendix 14)
Extracting ripple / spike noise for extracting at least one of ripple noise and spike noise of a DC power supply connected to the power supply unit;
The circuit device restoration method according to any one of appendices 9 to 11, wherein at least one of the ripple noise and spike noise is used in the adjustment step.
(付記15)
セルフテストを行うステップと、
前記セルフテストの結果に応じて前記タイマ回路に対し前記タイマ回路クリア信号を出力するステップを有する、付記9乃至11のいずれか一項に記載の回路装置の復旧方法。
(Appendix 15)
Self-testing steps,
The circuit device restoration method according to any one of appendices 9 to 11, further comprising a step of outputting the timer circuit clear signal to the timer circuit in accordance with a result of the self test.
1 テーブル
10、10a、10b 電源部
11 AC/DC変換回路
12 DC/DC変換回路
20a 内部回路
20、21、21’ 制御回路
21a、21a’ CPU
21b、21b’、21b’’ メモリ
21c、21c’ I/O周辺回路
21d、21d’ CPUバス
22 ウォッチドッグタイマ回路
30、30a、30b、30c、30d タイマ回路
30b1 カウンタ回路
40 調整手段
41、42 コンデンサ
43 リップル・スパイクノイズ抽出回路
50 読取手段
R1 抵抗
100、200、300、400、500 回路装置
101 AC商用電源
102 DC入力
111、121 DC電源
211、211’ タイマ回路クリア信号
212 ウォッチドッグタイマ回路クリア信号
221 制御回路クリア信号
301 DC/DC変換回路Disable信号
DESCRIPTION OF
21b, 21b ′, 21b ″
Claims (9)
前記制御回路は、前記電源部からの出力により動作し、プログラムが正常に動作している場合に前記ウォッチドッグタイマ回路に対してウォッチドッグタイマ回路クリア信号を出力し、
前記ウォッチドッグタイマ回路は、前記制御回路から前記ウォッチドッグタイマ回路クリア信号が入力されない場合に前記制御回路および前記タイマ回路に対して制御回路クリア信号を出力し、
前記制御回路は、前記制御回路クリア信号の入力に応じて再起動を試み、
前記タイマ回路は、前記制御回路クリア信号の入力に応じて制限時間のカウントを開始し、
前記制御回路は、再起動した場合に前記タイマ回路に対してタイマ回路クリア信号を出力し、
前記タイマ回路は、前記制限時間内に前記制御回路から前記タイマ回路クリア信号が入力されない場合に前記電源部の動作を所定時間停止させ、
前記調整手段は、前記制限時間を調整することを特徴とする回路装置。
A power supply unit, a control circuit, a timer circuit, adjustment means, and a watchdog timer circuit;
The control circuit is operated by an output from the power supply unit, and outputs a watchdog timer circuit clear signal to the watchdog timer circuit when a program is operating normally,
The watchdog timer circuit outputs a control circuit clear signal to the control circuit and the timer circuit when the watchdog timer circuit clear signal is not input from the control circuit,
The control circuit attempts to restart in response to the input of the control circuit clear signal,
The timer circuit starts counting the time limit in response to the input of the control circuit clear signal,
The control circuit outputs a timer circuit clear signal to the timer circuit when restarted,
The timer circuit stops the operation of the power supply unit for a predetermined time when the timer circuit clear signal is not input from the control circuit within the time limit,
The circuit device characterized in that the adjusting means adjusts the time limit.
前記調整手段は、前記リップルノイズおよびスパイクノイズの少なくとも一方の周波数を用いる、請求項1又は2に記載の回路装置。 A ripple / spike noise extraction circuit for extracting at least one of ripple noise and spike noise of a DC power supply connected to the power supply unit;
It said adjusting means uses at least one of the frequency of the ripple noise and spike noise, the circuit device according to claim 1 or 2.
前記制御回路は、前記電源部からの出力により正常動作している場合に前記ウォッチドッグタイマ回路に対してウォッチドッグタイマ回路クリア信号を出力し、正常動作していない場合に前記ウォッチドックタイマ回路からの制御回路クリア信号に応じて再起動を試み、再起動した場合に前記タイマ回路に対してタイマ回路クリア信号を出力し、
前記ウォッチドッグタイマ回路は、前記ウォッチドッグタイマ回路クリア信号が入力されない場合に前記制御回路及び前記タイマ回路に対して前記制御回路クリア信号を出力し、
前記タイマ回路は、制限時間内に前記制御回路から前記タイマ回路クリア信号が入力されない場合に前記電源部に対して前記電源部を停止させるための信号を出力し、
前記コンデンサは、前記制限時間を調整することを特徴とする回路装置。 A power supply unit, a control circuit, a watchdog timer circuit, a timer circuit, and a capacitor;
The control circuit outputs a watchdog timer circuit clear signal to the watchdog timer circuit when operating normally by an output from the power supply unit, and from the watchdog timer circuit when not operating normally. Attempting to restart according to the control circuit clear signal, and when restarting, output a timer circuit clear signal to the timer circuit,
The watchdog timer circuit outputs the control circuit clear signal to the control circuit and the timer circuit when the watchdog timer circuit clear signal is not input,
The timer circuit outputs a signal for stopping the power supply unit to the power supply unit when the timer circuit clear signal is not input from the control circuit within a time limit,
The circuit device, wherein the capacitor adjusts the time limit.
プログラムが正常に動作している場合に出力されるウォッチドッグタイマ回路クリア信号が出力されない場合に前記制御回路に対して出力される制御回路クリア信号の入力を判断するステップと、
前記制御回路クリア信号の入力に応じて制限時間のカウントを開始するステップと、
前記制御回路クリア信号の入力に応じて前記制御回路が再起動を試み再起動した場合に出力するタイマ回路クリア信号の入力を判断するステップと、
前記制限時間内に前記タイマ回路クリア信号が入力されない場合に前記電源部の動作を所定時間停止させ再稼動させるステップと、
前記制限時間及び前記タイマ回路が前記電源部の動作を停止させる時間を調整する調整ステップと、を含むことを特徴とする回路装置の復旧方法。 In a circuit device having a power supply unit and a control circuit ,
Determining an input of a control circuit clear signal output to the control circuit when a watchdog timer circuit clear signal output when the program is operating normally is not output;
Starting counting the time limit in response to the input of the control circuit clear signal;
Determining the input of a timer circuit clear signal to be output when the control circuit attempts to restart and restarts in response to the input of the control circuit clear signal ;
When the timer circuit clear signal is not input within the time limit, the operation of the power supply unit is stopped for a predetermined time and restarted;
Adjusting the time limit and the time for which the timer circuit stops the operation of the power supply unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2013182852A JP6325217B2 (en) | 2013-09-04 | 2013-09-04 | CIRCUIT DEVICE AND CIRCUIT DEVICE RECOVERY METHOD |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2013182852A JP6325217B2 (en) | 2013-09-04 | 2013-09-04 | CIRCUIT DEVICE AND CIRCUIT DEVICE RECOVERY METHOD |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2015049827A JP2015049827A (en) | 2015-03-16 |
JP6325217B2 true JP6325217B2 (en) | 2018-05-16 |
Family
ID=52699752
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2013182852A Active JP6325217B2 (en) | 2013-09-04 | 2013-09-04 | CIRCUIT DEVICE AND CIRCUIT DEVICE RECOVERY METHOD |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6325217B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016194170A1 (en) * | 2015-06-03 | 2016-12-08 | 株式会社日立製作所 | Error detection device and error detection system |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH03230254A (en) * | 1990-02-05 | 1991-10-14 | Mitsubishi Electric Corp | Fault detecting method for multiprocessor system |
JP2545658B2 (en) * | 1991-10-21 | 1996-10-23 | 山武ハネウエル株式会社 | Electromagnetic flow meter |
JPH0756771A (en) * | 1993-08-17 | 1995-03-03 | Mitsubishi Electric Corp | Semiconductor integrated circuit |
JP2003067220A (en) * | 2001-08-24 | 2003-03-07 | Tokyo Gas Co Ltd | Computer system |
JP2011022833A (en) * | 2009-07-16 | 2011-02-03 | Toshiba Tec Corp | Information processor |
-
2013
- 2013-09-04 JP JP2013182852A patent/JP6325217B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2015049827A (en) | 2015-03-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8677182B2 (en) | Computer system capable of generating an internal error reset signal according to a catastrophic error signal | |
JP2012069032A (en) | Information processor | |
US20130132741A1 (en) | Power supply apparatus of computer system and method for controlling power sequence thereof | |
US10387260B2 (en) | Reboot system and reboot method | |
CN106610712A (en) | Substrate management controller reset system and method | |
US8902011B2 (en) | Signal generating circuit for real time clock device and method thereof | |
WO2016110000A1 (en) | Adjustment method, device and system for power-down reboot of single plate | |
JP6325217B2 (en) | CIRCUIT DEVICE AND CIRCUIT DEVICE RECOVERY METHOD | |
JP2008225929A (en) | Information processor | |
JP5241450B2 (en) | Semiconductor device and abnormality detection method thereof | |
US9599644B2 (en) | Semiconductor device | |
KR101560493B1 (en) | Output device and diagnosis method thereof | |
JP5691943B2 (en) | Memory voltage controller | |
US20230019075A1 (en) | Electronic device including a plurality of power management integrated circuits and method of operating the same | |
JP2007041824A (en) | Resetting circuit for electronic control unit | |
JP2008288926A (en) | Electronic equipment | |
JP6585977B2 (en) | Semiconductor device and oscillation circuit control method | |
JP6008794B2 (en) | Power supply device and video display device | |
JP5428969B2 (en) | Image forming apparatus | |
JP5407466B2 (en) | Power control method | |
JP6270369B2 (en) | Traffic signal controller, traffic signal device, display control device, and information display device | |
US11385904B2 (en) | Methods and apparatus for selecting operating modes in a device | |
JP2012160140A (en) | Electronic equipment and system management program | |
JP2018022256A (en) | Electronic control device | |
JP2007027960A (en) | Signal variation timing delay circuit, sequence signal output circuit and power failure supervisory circuit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20160816 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20170501 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20170516 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20170712 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20171128 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20171213 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20180320 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20180412 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6325217 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |