JPH039057Y2 - - Google Patents

Info

Publication number
JPH039057Y2
JPH039057Y2 JP7843882U JP7843882U JPH039057Y2 JP H039057 Y2 JPH039057 Y2 JP H039057Y2 JP 7843882 U JP7843882 U JP 7843882U JP 7843882 U JP7843882 U JP 7843882U JP H039057 Y2 JPH039057 Y2 JP H039057Y2
Authority
JP
Japan
Prior art keywords
circuit
signal
output
reset
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired
Application number
JP7843882U
Other languages
Japanese (ja)
Other versions
JPS58183539U (en
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed filed Critical
Priority to JP7843882U priority Critical patent/JPS58183539U/en
Publication of JPS58183539U publication Critical patent/JPS58183539U/en
Application granted granted Critical
Publication of JPH039057Y2 publication Critical patent/JPH039057Y2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Power Sources (AREA)
  • Stand-By Power Supply Arrangements (AREA)
  • Continuous-Control Power Sources That Use Transistors (AREA)

Description

【考案の詳細な説明】 〔産業上の利用分野〕 本考案はマイクロコンピユータ応用装置におけ
る停電処理回路に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a power failure processing circuit in a microcomputer application device.

〔従来の技術〕[Conventional technology]

従来の停電処理回路は、構成を第1図aおよび
動作を第1図bにそれぞれ示すように、マイクロ
コンピユータ応用装置の電源部からの停電検出信
号POWが図示されない中央制御部に停電を知ら
せる(時刻T11)と共に、入力に応答して一定時
間のパルスを出力するモノステーブルマルチバイ
ブレータ回路10を起動し、中央制御部の停電処
理プログラムが動作完了するまでの時間(P1=
時刻T12−T11)、この装置の各部にリセツト信
号RSTを送出するリセツト回路12に対して、
停電検出信号POWのAND(アンド)機能ゲート
回路13およよびOR(オア)機能ゲート回路1
4を介した入力を禁止するように動作する。モノ
ステーブルマルチバイブレータ回路10の前記一
定パルスで定められた禁止時間P1経過後、停電
検出信号POWが継続していれば、リセツト回路
12が起動し電源復旧後の再動作にそなえて装置
側はリセツト状態を保持し停電が復旧して停電検
出信号POWが消滅しても(時刻T13)、装置の再
動作が確実に行なわれるよう一定時間(P2=時
刻T14−T13)リセツト信号を送出し続ける。
In the conventional power failure processing circuit, the configuration is shown in FIG. 1a and the operation is shown in FIG. At the same time as time T11), the monostable multivibrator circuit 10 that outputs a pulse for a certain period of time in response to the input is started, and the time until the power failure processing program of the central control unit completes operation (P1 =
At time T12-T11), to the reset circuit 12 that sends the reset signal RST to each part of this device,
AND function gate circuit 13 and OR function gate circuit 1 for power outage detection signal POW
It operates to prohibit input via 4. If the power failure detection signal POW continues after the prohibition time P1 determined by the constant pulse of the monostable multivibrator circuit 10 has elapsed, the reset circuit 12 is activated and the device is reset in preparation for re-operation after the power is restored. Even if the state is maintained and the power outage is restored and the power outage detection signal POW disappears (time T13), the reset signal continues to be sent for a certain period of time (P2 = time T14-T13) to ensure that the device restarts.

中央制御部の停電処理中に電源が復旧した場合
は、停電検出信号POWが消滅してリセツト回路
12が起動しなくなることを防止するため、モノ
ステーブルマルチバイブレータ回路10の動作終
了によつて起動されリセツト回路を起動するのに
充分な程度の短かい単発パルスを発生する単発パ
ルス発勢回路11を配し、その出力信号によつて
リセツト回路12を自動的に起動し前記一定時間
P2の間リセツト信号を送出して装置をリセツト
し再動作を開始させる。
If the power is restored while the central control unit is processing a power outage, in order to prevent the power outage detection signal POW from disappearing and the reset circuit 12 not being activated, the reset circuit 12 is activated when the operation of the monostable multivibrator circuit 10 ends. A single pulse generation circuit 11 is provided which generates a short single pulse sufficient to activate the reset circuit, and the reset circuit 12 is automatically activated by the output signal of the circuit 11 to generate a single pulse that is short enough to activate the reset circuit.
During P2, a reset signal is sent to reset the device and restart operation.

前記リセツト回路12は、上述したようにOR
機能ゲート回路14の出力信号の立上りに応答し
てリセツト信号を出力し、前記回路14の出力信
号が消滅してもさらに一定時間リセツト信号を出
力する機能を有する回路であり、マイクロコンピ
ユータ回路で通常使用されている手動操作可能な
リセツト回路で構成できる(例えば、昭和56年5
月20日(株)オーム社発行「図解マイクロコンピユー
タZ−80の使い方」第48頁〜第49頁参照)。
The reset circuit 12 is an OR circuit as described above.
This circuit has the function of outputting a reset signal in response to the rise of the output signal of the functional gate circuit 14, and further outputting the reset signal for a certain period of time even if the output signal of the circuit 14 disappears, and is commonly used in microcomputer circuits. It can be configured with a manually operable reset circuit that is currently in use (for example,
(Refer to pages 48-49 of ``Illustrated Instructions for Using the Microcomputer Z-80,'' published by Ohmsha Co., Ltd. on May 20th).

〔考案が解決しようとする問題点〕[Problem that the invention attempts to solve]

この様に、モノステーブルマルチバイブレータ
回路10および単発パルス発生回路11は中央制
御部の停電処理動作時間に密接な関係を持つた
め、一台毎に精密な調整確認が必要であり、また
単発パルス発生回路11もリセツト回路12を起
動するに必要な最低パルス幅を確保するため、一
台毎に回路設定条件の調整が必要があり、長期に
わたつて無保守で安定に動作させることが困難で
ある。
In this way, the monostable multivibrator circuit 10 and the single-shot pulse generation circuit 11 are closely related to the power failure processing operation time of the central control unit, so precise adjustment confirmation is required for each unit, and single-shot pulse generation In order to ensure the minimum pulse width necessary for starting the reset circuit 12 for the circuit 11, it is necessary to adjust the circuit setting conditions for each unit, making it difficult to operate stably over a long period of time without maintenance. .

本考案の目的は、中央制御部からの停電処理動
作の終了を示す信号に応答してリセツト回路を起
動させることにより、中央制御部の停電処理動作
中のガード時間設定のために厳密な調整および確
認を必要とする回路を除去し、長期にわたつて安
定に動作する停電処理回路を提供することにあ
る。
The purpose of the present invention is to activate the reset circuit in response to a signal from the central control unit indicating the end of the power failure handling operation, thereby making precise adjustments and setting the guard time during the power failure handling operation of the central control unit. The object of the present invention is to provide a power outage processing circuit that operates stably over a long period of time by eliminating circuits that require confirmation.

〔問題点を解決するための手段〕[Means for solving problems]

本考案の停電処理回路は、電源からの停電検出
信号を保持し、中央制御部のイニシヤライズリセ
ツト信号により出力反転をなす第1の状態保持回
路と;この回路の出力により開閉されて前記停電
検出信号を保持状態で通過させず反転状態で通過
させる第1のゲート回路と;中央制御部からの停
電処理プログラムの終了信号を保持し、前記イニ
シヤライズリセツト信号により出力反転をなす第
2の状態保持回路と;この回路出力と前記第1の
ゲート回路出力とを論理和する第2のゲート回路
出力と;その出力信号によつて起動される前記イ
ニシヤライズリセツト信号の送出回路と;から構
成されることを特徴とする。
The power outage processing circuit of the present invention includes a first state holding circuit that holds a power outage detection signal from the power supply and inverts the output in response to an initialization reset signal from the central control unit; a first gate circuit that does not pass the detection signal in a held state but passes it in an inverted state; a second gate circuit that holds a power failure processing program end signal from the central control unit and inverts its output in response to the initialization reset signal; a state holding circuit; a second gate circuit output that ORs the output of this circuit and the output of the first gate circuit; and a circuit for transmitting the initialization reset signal activated by the output signal thereof; It is characterized by being configured.

〔実施例〕〔Example〕

第2図を参照すると、本考案の一実施例は、第
1の状態保持回路20と、AND機能ゲート回路
(第1のゲート回路)21と、OR機能ゲート回
路(第2のゲート回路)22と、リセツト回路2
3と、第2の状態保持回路24とを備えている。
リセツト回路23は第1図aおよびbで説明した
リセツト回路12と同じ回路で構成できる。
Referring to FIG. 2, one embodiment of the present invention includes a first state holding circuit 20, an AND function gate circuit (first gate circuit) 21, and an OR function gate circuit (second gate circuit) 22. and reset circuit 2
3 and a second state holding circuit 24.
Reset circuit 23 can be constructed of the same circuit as reset circuit 12 described in FIGS. 1a and 1b.

第3図も合せて参照して、停電発生時の動作に
ついて説明する。時刻T1において、停電検出信
号POWが入力されると第1の状態保持回路20
で保持される。この状態保持回路20は図示され
ない中央制御部(CPU)の停電処理プログラム
起動のための割込み信号IRPをCPUへ送出する。
一方、状態保持回路20の出力信号はAND機能
ゲート回路21へも送られてこの回路21の出力
を禁止し、停電検出信号POWがOR機能ゲート回
路22を介してリセツト回路23に入力されるの
を禁止する。CPUが停電処理プログラムの実行
を終了し、あらかじめ決められた命令(OUT命
令またはメモリライト命令等)を実行すると、時
刻T2において動作終了信号ENDが第2の状態保
持回路24に入力され保持される。この状態保持
回路24の出力はOR機能ゲート回路22に送出
され、先のAND機能ゲート回路21の出力信号
との論理和をとつた信号がリセツト回路23に送
出される。リセツト回路23はこの論理和信号が
入力されるとただちにリセツト信号RSTをCPU
に出力する。(時刻T2)。また、リセツト信号
RSTは第1および第2の状態保持回路20,2
4に送られる。これにより、停電検出信号POW
を禁止していたAND機能ゲート回路21の禁止
条件が解除される一方、第2の状態保持回路24
からのリセツト回路駆動信号は消滅する。リセツ
ト回路23が起動された時点で停電状態が継続し
ている場合は、AND機能ゲート回路21および
ORゲート回路22を通して停電検出信号POWが
リセツト回路23に入力されるため、停電検出信
号POWが消滅する(時刻T3)まで、リセツト回
路23の動作が延長されるので、電源が復旧する
まで装置はリセツト状態を保持する(時刻T4)。
すなわち、OR機能ゲート回路22の出力に応答
してリセツト回路23が出力するリセツト信号
RSTの最小パルス幅はT=T4−T3であり、これ
は装置の再動作が確実に行われるように決定され
ている。ここで、リセツト回路23はOR機能ゲ
ート回路22の出力の反転(時刻T2)で動作を
開始しリセツト信号RSTを送出し始め、この回
路22の出力がさらに反転しても(時刻T3)、上
記一定時間Tの間はリセツト信号RSTは送出さ
れる。すなわち、第3図においては、リセツト信
号RSTのうち、時刻T2からT3のパルスはリセツ
ト回路23の動作延長部分であり、停電検出信号
POWが消滅した時刻T3からT4が上述の本来の
リセツトパルス幅である。
The operation when a power outage occurs will be described with reference to FIG. 3 as well. At time T1, when the power outage detection signal POW is input, the first state holding circuit 20
is held in This state holding circuit 20 sends an interrupt signal IRP to a central control unit (CPU, not shown) for starting a power outage processing program.
On the other hand, the output signal of the state holding circuit 20 is also sent to the AND function gate circuit 21 to inhibit the output of this circuit 21, and the power failure detection signal POW is input to the reset circuit 23 via the OR function gate circuit 22. prohibited. When the CPU finishes executing the power outage processing program and executes a predetermined command (OUT command, memory write command, etc.), the operation end signal END is input to the second state holding circuit 24 and held at time T2. . The output of this state holding circuit 24 is sent to the OR function gate circuit 22, and a signal obtained by performing a logical sum with the output signal of the previous AND function gate circuit 21 is sent to the reset circuit 23. As soon as this OR signal is input, the reset circuit 23 outputs the reset signal RST to the CPU.
Output to. (Time T2). Also, the reset signal
RST is the first and second state holding circuit 20, 2
Sent to 4. As a result, the power failure detection signal POW
While the prohibition condition of the AND function gate circuit 21 that had prohibited the
The reset circuit drive signal from . If the power outage continues when the reset circuit 23 is activated, the AND function gate circuit 21 and
Since the power failure detection signal POW is input to the reset circuit 23 through the OR gate circuit 22, the operation of the reset circuit 23 is extended until the power failure detection signal POW disappears (time T3), so the device remains in operation until the power is restored. Reset state is maintained (time T4).
That is, the reset signal output by the reset circuit 23 in response to the output of the OR function gate circuit 22
The minimum pulse width of RST is T=T4-T3, which has been determined to ensure re-operation of the device. Here, the reset circuit 23 starts operating when the output of the OR function gate circuit 22 is inverted (time T2) and begins to send out the reset signal RST, and even if the output of this circuit 22 is further inverted (time T3), the above-mentioned The reset signal RST is sent out for a certain period of time T. That is, in FIG. 3, the pulse from time T2 to T3 of the reset signal RST is an extended part of the operation of the reset circuit 23, and is the power failure detection signal.
The period from time T3 when POW disappears to time T4 is the above-mentioned original reset pulse width.

また、停電が復旧せずに継続した場合は、第4
図に示すように電源電圧の低下(時刻T5)にし
たがつて各出力信号が低下し、各回路の動作保証
電圧以下になると、その動作は保証されなくな
る。すなわち、停電発生後、時刻T5まではバツ
クアツプ電源で正常に動作しているが、この時刻
T5を過ぎるとバツクアツプ電源の電圧が低下し
てこのような状態となる。しかしながら、停電復
旧後に必要なデータ等はすでに割込み信号IRPに
より起動された停電処理プログラムによつてバツ
クアツプされている。このあと、電源電圧が各回
路の動作保証電圧まで回復すると、電源が完全に
復旧するまで装置はリセツト状態を保持する。
In addition, if the power outage continues without being restored, the fourth
As shown in the figure, each output signal decreases as the power supply voltage decreases (time T5), and when the voltage falls below the guaranteed operation voltage of each circuit, its operation is no longer guaranteed. In other words, after a power outage occurs, it operates normally with backup power until time T5, but at this time
After passing T5, the voltage of the backup power supply decreases and this state occurs. However, data required after the power is restored has already been backed up by the power outage processing program activated by the interrupt signal IRP. Thereafter, when the power supply voltage recovers to the voltage guaranteed for operation of each circuit, the device maintains the reset state until the power supply is completely restored.

また、第5図に示すように、リセツト回路23
が起動された時点(時刻T2)において、電源が
すでに復旧し、停電検出信号が消滅している(時
刻T6)場合には、前記リセツト回路23の動作
終了後、装置は動作を開始する(時刻T7)。すな
わち、リセツト回路23はOR機能ゲート回路2
2が出力する短かいパルス(時刻T2)に応答し
て、上述の最小パルス幅T(=T7−T2)のリセ
ツト信号RSTを出力する。
In addition, as shown in FIG.
If the power supply has already been restored and the power failure detection signal has disappeared (time T6) when the reset circuit 23 is activated (time T2), the device starts operating after the reset circuit 23 has finished operating (time T2). T7). That is, the reset circuit 23 is the OR function gate circuit 2.
In response to the short pulse (time T2) output by the circuit 2, the reset signal RST of the above-mentioned minimum pulse width T (=T7-T2) is output.

なお、ここで第2の状態保持回路24はCPU
は内蔵されているステータス表示信号出力(たと
えば、8080系CPUのHLT命令等)を動作終了信
号ENDとして代用してもかまわないし、割込み
信号IRPとしては停電検出信号POWをそのまま
転送使用しても同様に実施できる。
Note that the second state holding circuit 24 is the CPU
The built-in status display signal output (for example, HLT command of 8080 series CPU) can be used instead as the operation end signal END, or the power failure detection signal POW can be directly transferred and used as the interrupt signal IRP. can be implemented.

〔考案の効果〕[Effect of idea]

以上説明したように、本考案によれば、中央制
御部からの停電処理動作の終了信号により、リセ
ツト信号を送出して再動作開始を指示することに
より、中央制御部の停電処理動作時間を保証する
ために厳密な回路調整等を不要とし、長期間安定
に動作する停電処理回路が得られる。また、この
ような本考案によれば停電処理プログラムの動作
可能時間が電源の出力電圧保持時間にのみ影響さ
れるだけなので停電処理プログラムを容易に変更
および設定することも可能にする。
As explained above, according to the present invention, the power outage processing operation time of the central control unit is guaranteed by sending out a reset signal and instructing the restart of the operation in response to the end signal of the power outage processing operation from the central control unit. This eliminates the need for strict circuit adjustment, etc., and provides a power outage processing circuit that operates stably for a long period of time. Further, according to the present invention, the operable time of the power outage processing program is only affected by the output voltage holding time of the power supply, so that the power outage processing program can be easily changed and set.

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

第1図aは従来の停電処理回路の一例を示す構
成図、第1図bは第1図の動作を説明するタイム
チヤート、第2図は本考案の一実施例の構成図、
第3図は同実施例において途中で停電が復旧した
場合のタイムチヤート、第4図は同実施例におい
て停電が継続した場合のタイムチヤート、第5図
は同実施例において停電検出後すぐに復旧した場
合のタイムチヤートである。 20……第1の状態保持回路、21……AND
機能ゲート回路、22……OR機能ゲート回路、
23……リセツト回路、24……第2の状態保持
回路。
FIG. 1a is a block diagram showing an example of a conventional power outage processing circuit, FIG. 1b is a time chart explaining the operation of FIG. 1, and FIG. 2 is a block diagram of an embodiment of the present invention.
Figure 3 is a time chart in the case where the power outage is restored midway in the same example, Figure 4 is a time chart in the case where the power outage continues in the same example, and Figure 5 is a time chart in the same example where the power is restored immediately after the power outage is detected. This is a time chart if you do. 20...first state holding circuit, 21...AND
Functional gate circuit, 22...OR functional gate circuit,
23...Reset circuit, 24...Second state holding circuit.

Claims (1)

【実用新案登録請求の範囲】[Scope of utility model registration request] 電源からの停電検出信号を保持し、中央制御部
のイニシヤライズリセツト信号により出力反転を
なす第1の状態保持回路と;この回路の出力によ
り開閉されて前記停電検出信号を保持状態で通過
させず反転状態で通過させる第1のゲート回路
と;中央制御部からの停電処理プログラムの終了
信号を保持し、前記イニシヤライズリセツト信号
により出力反転をなす第2の状態保持回路と;こ
の回路出力と前記第1のゲート回路出力とを論理
和する第2のゲート回路と;その出力信号によつ
て起動される前記イニシヤライズリセツト信号の
送出回路と;から構成されることを特徴とする停
電処理回路。
a first state holding circuit that holds a power outage detection signal from the power supply and inverts its output in response to an initialization reset signal from the central control unit; the circuit is opened and closed by the output of this circuit to allow the power outage detection signal to pass in a held state; a first gate circuit that allows the signal to pass through in an inverted state; a second state holding circuit that holds the end signal of the power outage processing program from the central control unit and inverts the output in response to the initialization reset signal; and a second gate circuit that ORs the output of the second gate circuit and the output of the first gate circuit; and a circuit that sends out the initialization reset signal that is activated by the output signal of the second gate circuit. processing circuit.
JP7843882U 1982-05-28 1982-05-28 Power outage processing circuit Granted JPS58183539U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7843882U JPS58183539U (en) 1982-05-28 1982-05-28 Power outage processing circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7843882U JPS58183539U (en) 1982-05-28 1982-05-28 Power outage processing circuit

Publications (2)

Publication Number Publication Date
JPS58183539U JPS58183539U (en) 1983-12-07
JPH039057Y2 true JPH039057Y2 (en) 1991-03-07

Family

ID=30087645

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7843882U Granted JPS58183539U (en) 1982-05-28 1982-05-28 Power outage processing circuit

Country Status (1)

Country Link
JP (1) JPS58183539U (en)

Also Published As

Publication number Publication date
JPS58183539U (en) 1983-12-07

Similar Documents

Publication Publication Date Title
JPH0113573B2 (en)
CN101930274B (en) Information processing device and control method thereof
JPH039057Y2 (en)
JPS5971525A (en) State controller
JP2785997B2 (en) Power on / off control method for information processing device
JPS6073753A (en) Runaway processing system of microprocessor
JP2830216B2 (en) Standby circuit
JP3991124B2 (en) Peripheral device circuit that can automatically turn on / off the microcomputer power supply with software
JP2020067961A (en) Information processing apparatus with a device capable of switching to power-saving mode on the condition that the operation is stopped according to an operation stop signal and at least the operation stop signal is not input
JPH0431620Y2 (en)
JP5181583B2 (en) Image processing device
JPH0431621Y2 (en)
JPH037963B2 (en)
JP3035937B2 (en) Multifunctional telephone
JPS60124734A (en) Interruption processing circuit to cpu
JPS62209604A (en) Power supply cut-off system for information processing system
JPS5850409Y2 (en) information processing equipment
JPH0316656B2 (en)
JPS62212741A (en) Power supply control system
JPH0444987B2 (en)
JPH0786794B2 (en) Blackout control circuit
JPH04320511A (en) Microcomputer system
JPS6355601A (en) Watchdog timer circuit
JP2003131753A (en) Intermittent operation mode switching method of CPU operation clock
JPH05265602A (en) Power management control device