[go: up one dir, main page]

JPS5840203B2 - Power control circuit for electronic equipment - Google Patents

Power control circuit for electronic equipment

Info

Publication number
JPS5840203B2
JPS5840203B2 JP54114763A JP11476379A JPS5840203B2 JP S5840203 B2 JPS5840203 B2 JP S5840203B2 JP 54114763 A JP54114763 A JP 54114763A JP 11476379 A JP11476379 A JP 11476379A JP S5840203 B2 JPS5840203 B2 JP S5840203B2
Authority
JP
Japan
Prior art keywords
voltage
detection
state
signal
cpu
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
JP54114763A
Other languages
Japanese (ja)
Other versions
JPS5638622A (en
Inventor
英明 綾
俊一 坂口
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.)
Omron Corp
Original Assignee
Omron Tateisi Electronics Co
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 Omron Tateisi Electronics Co filed Critical Omron Tateisi Electronics Co
Priority to JP54114763A priority Critical patent/JPS5840203B2/en
Publication of JPS5638622A publication Critical patent/JPS5638622A/en
Publication of JPS5840203B2 publication Critical patent/JPS5840203B2/en
Expired legal-status Critical Current

Links

Landscapes

  • Electronic Switches (AREA)

Description

【発明の詳細な説明】 この発明は電子機器の電源制御回路に関し、特に、演算
処理装置を含む電子機器において、電源がオン、オフし
たときに演算処理装置に与えるリセット信号を=lJX
]するような電源制御回路に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a power supply control circuit for electronic equipment, and in particular, in electronic equipment including an arithmetic processing unit, a reset signal given to the arithmetic processing unit when the power is turned on or off is
] The present invention relates to a power supply control circuit.

たとえば、マイクロコンピュータなどの演算処理装置に
は、プログラムを記憶しているリードオンリメモリのア
ドレスを指定するためのプログラムカウンタが設けられ
ている。
For example, an arithmetic processing device such as a microcomputer is provided with a program counter for specifying the address of a read-only memory that stores a program.

このプログラムカウンタは電源が投入されたとき、電源
リセット信号によってリセットされて初期状態に戻るよ
うに構成されている。
This program counter is configured to be reset by a power supply reset signal and return to the initial state when the power is turned on.

そして、プログラムカウンタが初期状態に戻ることによ
って、リードオンリメモリに記憶されている先頭番地の
命令語が読出され、その命令語に基づいて動作を実行す
る。
Then, when the program counter returns to its initial state, the instruction word at the first address stored in the read-only memory is read out, and an operation is executed based on the instruction word.

したがって、CPUにとって電源リセット信号は必要不
可欠なものであり、電源が投入されたときにこの電源リ
セット信号が与えられないと、プログラムカウンタが初
期リセットされないため、電源投入時のプログラムカウ
ンタの計数値によってROMのいずれの番地からどの命
令が読出されるかわからなくなり、CPUの動作に異常
をきたす。
Therefore, the power reset signal is essential for the CPU, and if the power reset signal is not given when the power is turned on, the program counter will not be reset to its initial state. It becomes impossible to know which instruction is to be read from which address in the ROM, which causes an abnormality in the operation of the CPU.

また、CPUに与えられる直流電圧がCPUの動作に必
要な最低電圧以下になったとき、CPUは動作をただち
に停止してしまう。
Further, when the DC voltage applied to the CPU becomes lower than the minimum voltage necessary for the operation of the CPU, the CPU immediately stops operating.

ところが、ランダムアクセスメモリなどにおいては、電
源が遮断されるとそれまでに記憶していたデータが消去
されてしまうため、電源遮断時にそれまでに記憶したデ
ータを不揮発性メモリに転込する必要がある。
However, in random access memory, etc., when the power is cut off, the previously stored data is erased, so it is necessary to transfer the previously stored data to nonvolatile memory when the power is cut off. .

さらに、ラインプリンタなどにおいては、電源遮断時に
たとえばデータを1行分印字させる必要がある場合もあ
る。
Furthermore, in line printers and the like, it may be necessary to print, for example, one line of data when the power is turned off.

そこで、この発明は電源がオンしたときに確実に演算処
理装置をリセットし、かつ電源が所定電圧以下になった
ときただちに演算処理装置の動作を停止することなく必
要な処理を可能にならしめる電子機器の電源制御回路を
提供することである。
Therefore, the present invention provides an electronic device that reliably resets the processing unit when the power is turned on, and that enables necessary processing without stopping the operation of the processing unit immediately when the power supply drops below a predetermined voltage. Its purpose is to provide power supply control circuits for equipment.

この発明は、要約すれば、演算処理装置に直流電圧を供
給するための直流定電圧電源が定電圧動作するのに必要
な第1の電圧と、その電圧よりも高い第2の電圧とを検
知し、第2の電圧を検知したことに基づいて演算処理装
置をリセット解除状態にする。
In summary, the present invention detects a first voltage necessary for constant voltage operation of a DC constant voltage power supply for supplying DC voltage to an arithmetic processing unit, and a second voltage higher than the first voltage. Then, based on the detection of the second voltage, the arithmetic processing unit is brought into a reset release state.

そして、演算処理装置より動作指令信号が導出されてか
ら電源電圧が低下して第1の電圧を検出するまでの間だ
け外部機器を動作可能なように制御するものである。
Then, the external device is controlled to be operable only from the time when the operation command signal is derived from the arithmetic processing unit until the power supply voltage drops and the first voltage is detected.

以下に、図面に示す実施例とともにこの発明をより具体
的に説明する。
The present invention will be described in more detail below along with embodiments shown in the drawings.

第1図はこの発明の一実施例の電気回路図である。FIG. 1 is an electrical circuit diagram of an embodiment of the present invention.

構成において、AC入力が整流器1に与えられて直流電
圧に整流される。
In the configuration, an AC input is provided to a rectifier 1 and rectified into a DC voltage.

この直流電圧は完全な直流ではなく交流分を含み、直流
安定化回路2に与えられてたとえば5■の完全な直流電
圧に定電圧化される。
This direct current voltage is not a complete direct current but includes an alternating current component, and is supplied to the direct current stabilizing circuit 2, where it is regulated to a complete direct current voltage of, for example, 5 cm.

また、整流器1によって整流された電圧は第1の検知回
路3と第2の検知回路4とに与えられる。
Further, the voltage rectified by the rectifier 1 is applied to a first detection circuit 3 and a second detection circuit 4.

第1の検知回路3は、ツェナーダイオード31、トラン
ジスタ32および抵抗33〜35によって構成される。
The first detection circuit 3 includes a Zener diode 31, a transistor 32, and resistors 33-35.

この検知回路3は整流器1によって整流された直流電圧
が直流安定化回路2の動作に必要な最低電圧を検知する
ものであり、この最低電圧PFlはたとえば約16Vに
定められろうそして、この第1の検知回路3の検知信号
は状態記憶手段としてのフリップフロップ6のリセット
入力端に与えられる。
This detection circuit 3 detects the minimum voltage of the DC voltage rectified by the rectifier 1 necessary for the operation of the DC stabilization circuit 2. This minimum voltage PFl may be set to, for example, about 16V. The detection signal of the detection circuit 3 is applied to the reset input terminal of a flip-flop 6 as state storage means.

第2の検知回路4はツェナーダイオード41゜トランジ
スタ42および抵抗43〜45によって構成される。
The second detection circuit 4 includes a Zener diode 41, a transistor 42, and resistors 43-45.

この第2の検知回路4は、整流器1の整流電圧が第1の
検知回路3で検知される電圧よりも高い電圧PF2 (
たとえば18■)になったことを検知するものであり、
その検知信号をインバータ5によってアンドゲ−ドアの
一力入力端に与える。
This second detection circuit 4 detects a voltage PF2 (
For example, it detects when the
The detection signal is applied by an inverter 5 to one input terminal of the AND gate door.

また、この検知回路4は、整流電圧が検知電圧PF2よ
り低くなったとき検知信号を割込信号ととして与える。
Further, this detection circuit 4 provides a detection signal as an interrupt signal when the rectified voltage becomes lower than the detection voltage PF2.

前記アンド7の他力入力端には、前記フリップフロップ
6の回出力が与えられ、アンドゲート7の出力信号はオ
アゲート8を介してCPU9のリセット入力端に与えら
れる。
The input terminal of the AND 7 is supplied with the output of the flip-flop 6, and the output signal of the AND gate 7 is supplied via the OR gate 8 to the reset input terminal of the CPU 9.

また、フリップフロップ6のQ出力は、オアゲート8を
介してCPU9のリセット入力端に与えられるとともに
、外部機器としてのメモリ10とプリンタ11とにイネ
ーブル信号として与えられる。
Further, the Q output of the flip-flop 6 is applied to a reset input terminal of the CPU 9 via an OR gate 8, and is also applied as an enable signal to a memory 10 and a printer 11 as external devices.

このフリップフロップ6は、検知回路4がCPU9に割
込信号を与えたとき、CPU9から与えられる動作指令
信号としてのプログラムスタート指令信号によってセッ
トされる。
This flip-flop 6 is set by a program start command signal as an operation command signal given from the CPU 9 when the detection circuit 4 gives an interrupt signal to the CPU 9.

第2図はこの発明の一実施例の動作を説明するための波
形図である。
FIG. 2 is a waveform diagram for explaining the operation of an embodiment of the present invention.

次に、第1図および第2図を参照してこの発明の一実施
例の具体的な動作について説明する。
Next, the specific operation of one embodiment of the present invention will be described with reference to FIGS. 1 and 2.

入力が整流器1に与えられると、整流器1はそのAC入
力を直流電圧に整流する。
When an input is applied to the rectifier 1, the rectifier 1 rectifies the AC input into a DC voltage.

この整流器1の整流出力は第2図aに示すように時間の
経過とともに除々に立上がる。
The rectified output of the rectifier 1 gradually rises as time passes, as shown in FIG. 2a.

また、直流安定化回路2は整流器1の直流電圧を+5■
に定電圧化する。
In addition, the DC stabilizing circuit 2 increases the DC voltage of the rectifier 1 by +5■
Make the voltage constant.

このとき、フリップフロップ6はリセットされていて、
回出力がハイレベル(以下「■」)になっている。
At this time, flip-flop 6 has been reset,
The output is at a high level (hereinafter referred to as "■").

しかしながら、第2の検知回路4の検知信号は第2の検
知電圧PF2を検知していないため、その出力はrHJ
になっている。
However, since the detection signal of the second detection circuit 4 does not detect the second detection voltage PF2, its output is rHJ
It has become.

このrHJ信号はインバータ5によって反転されてロー
レベル(以下、「L」)になる。
This rHJ signal is inverted by the inverter 5 and becomes a low level (hereinafter referred to as "L").

したがって、アンドゲート7は開かれないため、「L」
信号をオアゲート8に与える。
Therefore, since AND gate 7 is not opened, "L"
A signal is given to the OR gate 8.

このとき、フリップフロップ6のQ出力も「L」になっ
ているため、オアゲート8はCPU9のリセット入力端
にrLJ信号(第2図d)を与えてリセットさせる。
At this time, since the Q output of the flip-flop 6 is also "L", the OR gate 8 applies the rLJ signal (FIG. 2d) to the reset input terminal of the CPU 9 to reset it.

整流器1の整流電圧がさらに立上がり、検知電圧PFi
になると、第1の検知回路3のツェナーダイオード31
が導通して、抵抗33に直流電流が流れる。
The rectified voltage of rectifier 1 further rises, and the detection voltage PFi
Then, the Zener diode 31 of the first detection circuit 3
becomes conductive, and a DC current flows through the resistor 33.

抵抗33の両端電圧はトランジスタ32のベースに与え
られ、その結果トランジスタ32′がオンしてそのコレ
クタがrLJレベル(第2図b)になる。
The voltage across resistor 33 is applied to the base of transistor 32, which turns on transistor 32' and brings its collector to the rLJ level (FIG. 2b).

さらに、整流器1の整流電圧が立上がり、第2の検知電
圧PF2になると、第2の検知回路4のツェナーダイオ
ード41が導通し、抵抗43に直流電流が流れる。
Further, when the rectified voltage of the rectifier 1 rises and reaches the second detection voltage PF2, the Zener diode 41 of the second detection circuit 4 becomes conductive, and a direct current flows through the resistor 43.

抵抗43に直流電流が流れると、その両端電圧はトラン
ジスタ42のベースに与えられ、このトランジスタ42
が導通ずる。
When a DC current flows through the resistor 43, the voltage across it is applied to the base of the transistor 42.
is conductive.

その結果、トランジスタ42のコレクタがrLJレベル
(第2図C)になってこのrLJレベル信号がインバー
タ5に与えられる。
As a result, the collector of transistor 42 becomes rLJ level (FIG. 2C), and this rLJ level signal is applied to inverter 5.

インバータ5は、そ゛の「L」信号をrHJ信号に反転
し、このrHJ信号をリセット解除信号としてCPU9
に与える。
The inverter 5 inverts the "L" signal to the rHJ signal, and uses the rHJ signal as a reset release signal to the CPU 9.
give to

応じてCCPU9はプログラムスタート信号(第2図e
)を導通してフリップフロップ6をセットする。
In response, the CCPU 9 sends a program start signal (Fig. 2 e
) is made conductive and the flip-flop 6 is set.

それによって、第2図fに示すフリップフロップ6のQ
出力端からHのリセット解除信号がオアゲート8を介し
てCPU9に与えられる。
Thereby, the Q of the flip-flop 6 shown in FIG.
An H reset release signal is applied from the output terminal to the CPU 9 via the OR gate 8 .

同時に、このリセット解除信号はメモリ10とプリンタ
11とにイネーブル信号として与えられる。
At the same time, this reset release signal is given to the memory 10 and printer 11 as an enable signal.

したがって、CPU9はリセット状態が解除されたこと
により、メモリ10およびプリンタ11の制御を可能に
する。
Therefore, the CPU 9 is enabled to control the memory 10 and the printer 11 since the reset state is released.

上述のごとく、第1の検知電圧PF1を検知してから第
2の検知電圧PF2を検知してCPU9をリセットして
、CPU9からプログラムスタート信号が導出されるま
での期間TだけCPU9をリセット状態にすることがで
きるので、電源が急激に立上がってもCPU9を十分に
リセットすることができる。
As described above, the CPU 9 is reset by detecting the first detection voltage PF1 and then detecting the second detection voltage PF2, and the CPU 9 is kept in the reset state for the period T until the program start signal is derived from the CPU 9. Therefore, even if the power is suddenly turned on, the CPU 9 can be sufficiently reset.

次に、たとえば停電などによって電源が遮断されたとき
、整流器1の整流出力は第2図aに示すように徐々に立
下がる。
Next, when the power is cut off due to, for example, a power outage, the rectified output of the rectifier 1 gradually falls as shown in FIG. 2a.

そして、整流電圧が第2の検知電圧PF2に達したとき
、検知回路4はCPU9に「用レベルの割込信号を与え
るとともにインバータ5によって反転してアンドゲート
7を閉じる。
Then, when the rectified voltage reaches the second detection voltage PF2, the detection circuit 4 gives an interrupt signal at the normal level to the CPU 9, and inverts it by the inverter 5 to close the AND gate 7.

それによって、CPU9はただちにメモリ10に記憶さ
れているデータを他の不揮発性メモリ(図示せず)に転
送させたり、プリンタ11に1行分の印字をさせる。
Thereby, the CPU 9 immediately transfers the data stored in the memory 10 to another non-volatile memory (not shown) or causes the printer 11 to print one line.

そして、整流器1の整流電圧がさらに低下し、検知回路
3が第1の検知電圧PFiを検知すると、フリップフロ
ップ6をリセットする。
Then, when the rectified voltage of the rectifier 1 further decreases and the detection circuit 3 detects the first detection voltage PFi, the flip-flop 6 is reset.

フリップフロップ6がリセットされたことにより、Q出
力がHになりかつQ出力が「L」になるため、CPU’
9にLレベルのリセット信号が与えられる。
By resetting the flip-flop 6, the Q output becomes H and the Q output becomes "L", so the CPU'
9 is given an L level reset signal.

それによって、CPU9がリセット状態になる。This causes the CPU 9 to enter the reset state.

以上のように、この発明によれば、直流安定化回路に印
加される直流電圧が第1の電圧および第2の電圧になっ
たことを検知し、第2の電圧に達したときCPUに割込
信号を与えてCPUから動作指令信号が導出されたとき
リセット状態を解除するようにしているため、電源が急
激に立上がってもCPUを確実にリセット状態にするこ
とができる。
As described above, according to the present invention, it is detected that the DC voltage applied to the DC stabilizing circuit has reached the first voltage and the second voltage, and when the DC voltage reaches the second voltage, the CPU is Since the reset state is canceled when the operation command signal is derived from the CPU by applying the input signal, the CPU can be reliably brought into the reset state even if the power is suddenly turned on.

また、直流安定化回路の入力電圧が第2の電圧に立下が
ったときただちにメモリの待避1を行なうことができる
Furthermore, the memory can be saved 1 immediately when the input voltage of the DC stabilizing circuit falls to the second voltage.

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

第1図はこの発明の一実施例の電気回路図であり、第2
図は第1図の各部の電圧波形図である。 図において、1は整流器、2は直流安定化回路、3は第
1の検知回路、4は第2の検知回路、5(1インバータ
、6はフリップフロップ、7はアンドゲート、8はオア
ゲート、9は演算処理装置、10はメモリ、11はプリ
ンタを示す。
FIG. 1 is an electrical circuit diagram of one embodiment of the present invention, and FIG.
The figure is a voltage waveform diagram of each part in FIG. 1. In the figure, 1 is a rectifier, 2 is a DC stabilization circuit, 3 is a first detection circuit, 4 is a second detection circuit, 5 (1 inverter, 6 is a flip-flop, 7 is an AND gate, 8 is an OR gate, 9 1 is a processing unit, 10 is a memory, and 11 is a printer.

Claims (1)

【特許請求の範囲】 1 外部機器と、前記外部機器を制御するための中央処
理手段と、整流手段と、前記整流手段によって整流され
た直流電圧を定電圧化して、少なくとも前記中央処理手
段に与える直流定電圧化手段とを含む電子機器において
、 前記整流手段の出力電圧が、前記直流定電圧化手段が定
電圧動作するのに必要な予め定める第1の電圧になった
か否かを検知する第1の検知手段、前記整流手段の出力
電圧が、前記第1の電圧よりも高い予め定める第2の電
圧になったか否かを検知する第2の検知手段、および 前記第1の検知手段が前記第1の電圧を検知したことに
応じて、第1の論理状態を記憶する状態記憶手段を備え 前記中央処理手段は、前記直流定電圧化手段から定電圧
化された直流電圧が与えられたことに応じて初期リセッ
トし、前記第2の検知手段が前記第2の電圧を検知した
ことに応じて前記初期リセットを解除するとともに、前
記状態記憶手段を第2の論理状態に記憶させ、前記状態
記憶手段が前記第2の論理状態にされたことに応じて初
期リセット解除状態を保持する手段を含み、 前記状態記憶手段の前記第2の論理状態出力を能動化信
号として前記外部機器に与えるようにしたことを特徴と
する、電子機器の電源制御回路。
[Scope of Claims] 1: an external device, a central processing means for controlling the external device, a rectifying means, and a DC voltage rectified by the rectifying means, which is supplied to at least the central processing means. A first step of detecting whether the output voltage of the rectifying means reaches a predetermined first voltage necessary for the DC voltage regulating means to operate at a constant voltage. 1 detection means, a second detection means for detecting whether the output voltage of the rectification means has reached a predetermined second voltage higher than the first voltage, and the first detection means The central processing means includes state storage means for storing a first logic state in response to detecting the first voltage, and the central processing means receives the regulated DC voltage from the DC voltage regulation means. In response to the detection of the second voltage by the second detection means, the initial reset is canceled, and the state storage means is stored in a second logic state, and the state is and means for maintaining an initial reset release state in response to the storage means being set to the second logic state, and providing the second logic state output of the state storage means to the external device as an activation signal. A power supply control circuit for electronic equipment, characterized by:
JP54114763A 1979-09-06 1979-09-06 Power control circuit for electronic equipment Expired JPS5840203B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP54114763A JPS5840203B2 (en) 1979-09-06 1979-09-06 Power control circuit for electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP54114763A JPS5840203B2 (en) 1979-09-06 1979-09-06 Power control circuit for electronic equipment

Publications (2)

Publication Number Publication Date
JPS5638622A JPS5638622A (en) 1981-04-13
JPS5840203B2 true JPS5840203B2 (en) 1983-09-03

Family

ID=14646067

Family Applications (1)

Application Number Title Priority Date Filing Date
JP54114763A Expired JPS5840203B2 (en) 1979-09-06 1979-09-06 Power control circuit for electronic equipment

Country Status (1)

Country Link
JP (1) JPS5840203B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59216422A (en) * 1983-05-19 1984-12-06 三菱電機株式会社 Initial reset circuit
JP2587705Y2 (en) * 1989-01-26 1998-12-24 松下電工 株式会社 CPU reset circuit and hot-wire detector using the same

Also Published As

Publication number Publication date
JPS5638622A (en) 1981-04-13

Similar Documents

Publication Publication Date Title
US4962485A (en) Noncontacting IC card supplied with power from an outside source
US4985804A (en) Microcomputer housing and ventilation arrangement
US3372328A (en) Scr temperature control circuit
US4943762A (en) Power supply system
CN111971887B (en) Control system and power supply unit
JPS5840203B2 (en) Power control circuit for electronic equipment
US7557463B2 (en) Image forming apparatus having power supply apparatus
JPS5855591B2 (en) Power supply for bubble memory unit
JP7080623B2 (en) Power supply and image forming equipment
JPS5840204B2 (en) Power control circuit for electronic equipment
JPH03100848A (en) Memory back-up device using eeprom
JPH0345795B2 (en)
JP2857442B2 (en) Power supply low voltage detector
JPS5930284A (en) Chip selection controlling circuit
JP2004310312A (en) Electronic equipment
JP4682768B2 (en) Start-up circuit of power supply device and start-up control method thereof
JPH0219856Y2 (en)
TW201823906A (en) Voltage regulator
JPS5830229A (en) Resetting circuit
JP2976345B2 (en) Power failure detection circuit
KR0110775Y1 (en) AC power under voltage detection circuit
JPS61122766A (en) Power supply supervisory circuit for memory backup
KR0122339B1 (en) Memory Storage in Chipmount Systems
KR950003220Y1 (en) Power protection circuit in case of power failure
KR860000174Y1 (en) Power supply circuit of micom equipment