JPH081578B2 - Power supply switching control device - Google Patents
Power supply switching control deviceInfo
- Publication number
- JPH081578B2 JPH081578B2 JP3129381A JP12938191A JPH081578B2 JP H081578 B2 JPH081578 B2 JP H081578B2 JP 3129381 A JP3129381 A JP 3129381A JP 12938191 A JP12938191 A JP 12938191A JP H081578 B2 JPH081578 B2 JP H081578B2
- Authority
- JP
- Japan
- Prior art keywords
- power supply
- switch circuit
- circuit
- power
- switch
- 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 - Lifetime
Links
- 230000006378 damage Effects 0.000 description 2
- 239000003990 capacitor Substances 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000007257 malfunction Effects 0.000 description 1
- 238000000034 method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Landscapes
- Power Sources (AREA)
- Direct Current Feeding And Distribution (AREA)
Description
【0001】[0001]
【産業上の利用分野】この発明は、電源開閉制御装置に
関するものであり、特に、ワードプロセッサやパーソナ
ルコンピュータの電源開閉制御装置に関するものであ
る。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a power supply switching control device, and more particularly to a power supply switching control device for word processors and personal computers.
【0002】[0002]
【従来の技術】従来、パーソナルコンピュータやワード
プロセッサにおいては、フロッピーディスク等の記録媒
体へデータを書込み中に電源を切断すると、書込みエラ
ーを生じるとともに、既に記録されたデータが破壊され
ることがある。従って、データの読書き中は、電源スイ
ッチの入力操作を禁示する旨の取扱い指示がなされてい
る。2. Description of the Related Art Conventionally, in a personal computer or word processor, if the power is turned off while data is being written to a recording medium such as a floppy disk, a write error may occur and the already recorded data may be destroyed. Therefore, a handling instruction to prohibit the input operation of the power switch is given during the reading and writing of data.
【0003】[0003]
【考案が解決しようとする課題】前述した取扱い指示に
も拘わらず、データの読書き中に電源スイッチを誤操作
して電源をオフすればデータ破壊事故が発生する。そこ
で、此種の不慮の事故を防止するために解決すべき技術
的課題が生じてくるのであり、この発明は該課題を解決
することを目的とする。Despite the above-mentioned handling instructions, if the power switch is erroneously operated to turn off the power during reading and writing of data, a data destruction accident will occur. Therefore, there arises a technical problem to be solved in order to prevent an accident of this kind, and an object of the present invention is to solve the problem.
【0004】[0004]
【課題を解決するための手段】この発明は、上記目的を
達成するために提案するものであり、電源ライン4に挿
入したスイッチ回路6と、該スイッチ回路6の制御端子
18へ接続した単安定回路8と、該単安定回路8への電
源をオン/オフする手動スイッチ7とからなり、前記手
動スイッチ7の開閉信号を中央処理装置2の開閉信号の
入力ポート22へ接続するとともに、前記中央処理装置
2の電源開閉制御信号の出力ポート24を前記スイッチ
回路6の制御端子18へ並列接続した電源開閉装置1で
あって、前記単安定回路8の信号によって前記スイッチ
回路6をオンし、前記中央処理装置2の電源遮断信号に
よって前記スイッチ回路6をオフする電源開閉制御装置
を提供するものである。The present invention is proposed in order to achieve the above-mentioned object, and is a monostable circuit connected to a switch circuit 6 inserted in a power supply line 4 and a control terminal 18 of the switch circuit 6. A circuit 8 and a manual switch 7 for turning on / off the power supply to the monostable circuit 8. The open / close signal of the manual switch 7 is connected to the open / close signal input port 22 of the central processing unit 2, and A power supply switching device 1 in which an output port 24 of a power supply switching control signal of the processing device 2 is connected in parallel to a control terminal 18 of the switch circuit 6, and the switch circuit 6 is turned on by a signal from the monostable circuit 8, A power supply on / off control device for turning off the switch circuit 6 in response to a power supply cutoff signal of the central processing unit 2.
【0005】[0005]
【作用】手動スイッチを閉じると単安定回路が一定時間
オンになり、電源ラインのスイッチ回路をオンにして中
央処理装置が起動する。起動した中央処理装置の出力ポ
ートから前記スイッチ回路の制御端子へオン信号が出力
される。単安定回路がオフに戻った後も前記出力ポート
からのオン信号によってスイッチ回路はオンを継続し、
機器へ電源が供給される。When the manual switch is closed, the monostable circuit is turned on for a fixed time, the switch circuit of the power supply line is turned on, and the central processing unit is activated. An ON signal is output from the output port of the activated central processing unit to the control terminal of the switch circuit. The switch circuit continues to be turned on by the ON signal from the output port even after the monostable circuit returns to OFF,
Power is supplied to the equipment.
【0006】手動スイッチの開閉は入力ポートから中央
処理装置へ読込まれ、手動スイッチをオフにすると、中
央処理装置は電源切断処理プログラムに従い、現在実行
中の処理を終了後に出力ポートからオフ信号を出力し、
スイッチ回路をオフにして供給電源を遮断する。The opening and closing of the manual switch is read from the input port to the central processing unit, and when the manual switch is turned off, the central processing unit outputs an off signal from the output port after finishing the processing currently being executed according to the power-off processing program. Then
Turn off the switch circuit to cut off the power supply.
【0007】[0007]
【実施例】以下、この発明の一実施例を図面に従って詳
述する。図1はフロッピーディスク等の磁気記録媒体を
使用するワードプロセッサの直流電源部に電源開閉制御
装置1を設けた例を示し、中央処理装置(以下CPUと
いう)2を含めた機器全体へ電源を供給する3端子定電
圧レギュレータ3の入力電源ラインに、PNP形トラン
ジスタ5による第1のスイッチ回路6を挿入してある。
該スイッチ回路6の前段で分岐した入力電源は、手動ス
イッチ7を介して単安定回路8と第2のスイッチ回路9
の制御端子10とへ接続される。単安定回路8はコンデ
ンサ11、抵抗器12、ダイオード13によって構成し
た微分器14と、第3のスイッチ回路15とからなり、
前記微分器14の時定数は、後述するCPU2の起動に
十分な時間として数秒程度を設定しておく。第3のスイ
ッチ回路15のNPN形トランジスタ16のコレクタ1
7は、第1のスイッチ回路6の制御端子18へ接続す
る。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described in detail below with reference to the drawings. FIG. 1 shows an example in which a power supply switching control device 1 is provided in the DC power supply part of a word processor using a magnetic recording medium such as a floppy disk, and power is supplied to the entire equipment including a central processing unit (hereinafter referred to as CPU) 2. A first switch circuit 6 including a PNP transistor 5 is inserted in the input power supply line of the three-terminal constant voltage regulator 3.
The input power source branched in the preceding stage of the switch circuit 6 is connected to the monostable circuit 8 and the second switch circuit 9 via the manual switch 7.
Is connected to the control terminal 10. The monostable circuit 8 includes a differentiator 14 including a capacitor 11, a resistor 12, and a diode 13, and a third switch circuit 15,
The time constant of the differentiator 14 is set to about several seconds as a time sufficient for starting the CPU 2 described later. Collector 1 of NPN transistor 16 of third switch circuit 15
7 is connected to the control terminal 18 of the first switch circuit 6.
【0008】第2のスイッチ回路9のNPN形トランジ
スタ19は、コレクタ20を電源21とCPU2の開閉
信号の入力ポート22とに接続し、エミッタ23は接地
されている。CPU2の電源開閉信号の出力ポート24
は、第4のスイッチ回路25の制御端子26へ接続し、
NPN形トランジスタ27のコレクタ28を、第1のス
イッチ回路6の制御端子18へ第3のスイッチ回路15
と並列に接続している。前記CPU2は、電源投入後に
電源開閉制御端子である出力ポート24からHi信号を出
力し、入力ポート22の入力信号レベルがLoとなったと
きは、電源投入/切断処理プログラムにより現在実行中
のデータ処理を終了した後に、出力ポート24の出力レ
ベルをLoにするようにシステム制御される。The NPN transistor 19 of the second switch circuit 9 has a collector 20 connected to a power source 21 and an input / output signal input port 22 of the CPU 2, and an emitter 23 grounded. Output port 24 for power supply switching signal of CPU2
Is connected to the control terminal 26 of the fourth switch circuit 25,
The collector 28 of the NPN transistor 27 is connected to the control terminal 18 of the first switch circuit 6 by the third switch circuit 15
And are connected in parallel. After the power is turned on, the CPU 2 outputs a Hi signal from the output port 24, which is a power switching control terminal, and when the input signal level of the input port 22 becomes Lo, the data currently being executed by the power on / off processing program. After the processing is completed, the system is controlled so that the output level of the output port 24 becomes Lo.
【0009】次に、当該電源開閉制御装置1の動作を図
1及び図2に従って説明する。先ず、手動スイッチ7が
オフのときは、第1のスイッチ回路6の制御端子18へ
通電されず、図1中A,B,C,Dに於ける電圧はLoで
ある。又、AがLoであるから第2のスイッチ回路9はオ
フであり、電源21から入力ポート22へEに示す電圧
Hiが入力されている。Next, the operation of the power supply switching control device 1 will be described with reference to FIGS. First, when the manual switch 7 is off, the control terminal 18 of the first switch circuit 6 is not energized, and the voltages at A, B, C and D in FIG. 1 are Lo. Also, since A is Lo, the second switch circuit 9 is off, and the voltage from the power supply 21 to the input port 22 is shown at E.
Hi is entered.
【0010】次に、図2に示す時刻t1 の時点で手動ス
イッチ7を閉じると、第2のスイッチ回路9がオンして
電源21からグラウンド29へ電流が流れ、入力ポート
22の入力レベルEはLoになる。これと同時に、単安定
回路8の微分器14の微分出力によって第3のスイッチ
回路15がオンし、コレクタ17に接続した第1のスイ
ッチ回路6をオンさせる。これにより定電圧レギュレー
タ3が動作してCPU2を含むシステム全体へ電源を供
給し、CPU2が起動する。起動したCPU2の出力ポ
ートからはDに示す電圧Hiが出力され、第4のスイッチ
回路25をオンする。単安定回路8は、その時定数によ
り一定時間後に出力BをLoへ立下げるが、このとき、既
に第4のスイッチ回路25がオンしているので、第1の
スイッチ回路6はオンを継続する。Next, when the manual switch 7 is closed at time t 1 shown in FIG. 2, the second switch circuit 9 is turned on and a current flows from the power source 21 to the ground 29, and the input level E of the input port 22 is changed. Becomes Lo. At the same time, the third switch circuit 15 is turned on by the differentiated output of the differentiator 14 of the monostable circuit 8, and the first switch circuit 6 connected to the collector 17 is turned on. As a result, the constant voltage regulator 3 operates to supply power to the entire system including the CPU 2, and the CPU 2 is activated. The voltage Hi shown at D is output from the output port of the activated CPU 2 to turn on the fourth switch circuit 25. The monostable circuit 8 causes the output B to fall to Lo after a fixed time due to the time constant, but at this time, the fourth switch circuit 25 is already on, so the first switch circuit 6 continues to be on.
【0011】次に、供給している電源を遮断する場合
は、手動スイッチ7をオフにすると、Aの電位は図2中
t2 に示すようにオフとなり、第2のスイッチ回路9が
オフし、EがHiに立上がる。CPU2は入力ポート22
からこれを読込み、電源切断処理プログラムに従って、
フロッピーディスク等の記録媒体の読書き動作を終了後
(t3 )に出力ポート24の出力をLoへ立下げる。よっ
て第1のスイッチ回路6はオフとなり、定電圧レギュレ
ータ3への供給電源Cが遮断され、機器への給電を停止
する。このように、記録媒体へ書込み動作中に電源が切
断されることはなく、書込み中の内容及び記録されてい
る内容の破壊が防止される。Next, when the power supply being supplied is shut off, the manual switch 7 is turned off, the potential of A is turned off as indicated by t 2 in FIG. 2, and the second switch circuit 9 is turned off. , E rises to Hi. CPU2 is input port 22
Read this from, according to the power off processing program,
After the reading / writing operation of the recording medium such as the floppy disk is completed (t 3 ), the output of the output port 24 is lowered to Lo. Therefore, the first switch circuit 6 is turned off, the power supply C to the constant voltage regulator 3 is cut off, and the power supply to the device is stopped. In this way, the power is not cut off during the writing operation to the recording medium, and the contents being written and the recorded contents are prevented from being destroyed.
【0012】一方、図2中鎖線で示すように、手動スイ
ッチ7がオンでAがHiであり、入力ポート22の読込み
信号EがLoの状態であっても、キーボード等への入力操
作が行われない状態が一定時間継続すると、CPU2は
システム制御によって出力ポート24の出力DをLoとし
て第1のスイッチ回路6をオフし、電源を切断する。従
って、電池を電源とした場合に、手動スイッチをオンし
たまま放置して電池を消耗させる事故を防止できる。On the other hand, as shown by the chain line in FIG. 2, even when the manual switch 7 is on, A is Hi, and the read signal E of the input port 22 is in the Lo state, the input operation to the keyboard or the like is performed. When the undisturbed state continues for a certain period of time, the CPU 2 sets the output D of the output port 24 to Lo by the system control to turn off the first switch circuit 6 and turn off the power. Therefore, when the battery is used as a power source, it is possible to prevent an accident that the battery is consumed by leaving the manual switch on.
【0013】又、CPU2は、電源電圧を常時監視して
おり、電源電池の消耗等によって電圧が機器の正常動作
レベル以下に降下した場合は、前述した入力操作が行わ
れない場合と同様に、出力ポート24の出力DをLoとし
て電源を切断する。これにより、CPU2の暴走や機器
の誤動作が防止される。尚、この発明は上記一実施例に
限定されず、第1乃至第4のスイッチ回路6,9,1
5,25は、FETによるスイッチ回路やリレー等の電
器スイッチに置換えてもよい。そして、この発明がそれ
らの改変されたものに及ぶことは当然である。Further, the CPU 2 constantly monitors the power supply voltage, and when the voltage drops below the normal operation level of the device due to consumption of the power supply battery or the like, as in the case where the above-mentioned input operation is not performed, The output D of the output port 24 is set to Lo and the power supply is cut off. This prevents runaway of the CPU 2 and malfunction of the device. The present invention is not limited to the above-described embodiment, but the first to fourth switch circuits 6, 9, 1
The switches 5 and 25 may be replaced with an electric switch such as a switch circuit using an FET or a relay. And it goes without saying that the present invention extends to those modifications.
【0014】[0014]
【発明の効果】この発明は、上記一実施例に於て詳述し
たように構成したので、フロッピーディスクやRAMカ
ード等の記録媒体へ読書き中に、誤って手動スイッチを
オフしても電源は遮断されず、読書き処理を終了後に遮
断する。従って、読込み中のデータや記録されている内
容の破壊が防止され、安全性を確保できる。Since the present invention is configured as described in detail in the above one embodiment, the power supply is turned off even if the manual switch is accidentally turned off during reading / writing on a recording medium such as a floppy disk or a RAM card. Is not blocked, and is blocked after the reading / writing process is completed. Therefore, destruction of the data being read and the recorded contents can be prevented, and safety can be ensured.
【図1】電源開閉制御装置の回路図。FIG. 1 is a circuit diagram of a power supply switching control device.
【図2】電源開閉制御装置の各部のタイミングチャー
ト。FIG. 2 is a timing chart of each part of the power supply switching control device.
1 電源開閉制御装置 2 中央処理装置 4 入力電源ライン 6 スイッチ回路 7 手動スイッチ 8 単安定回路 18 制御端子 22 入力ポート 24 出力ポート 1 Power Supply Switching Control Device 2 Central Processing Unit 4 Input Power Line 6 Switch Circuit 7 Manual Switch 8 Monostable Circuit 18 Control Terminal 22 Input Port 24 Output Port
Claims (1)
と、該スイッチ回路6の制御端子18へ接続した単安定
回路8と、該単安定回路8への電源をオン/オフする手
動スイッチ7とからなり、前記手動スイッチ7の開閉信
号を中央処理装置2の開閉信号の入力ポート22へ接続
するとともに、前記中央処理装置2の電源開閉制御信号
の出力ポート24を前記スイッチ回路6の制御端子18
へ並列接続した電源開閉装置1であって、前記単安定回
路8の信号によって前記スイッチ回路6をオンし、前記
中央処理装置2の電源遮断信号によって前記スイッチ回
路6をオフする電源開閉制御装置。1. A switch circuit 6 inserted in a power supply line 4.
A monostable circuit 8 connected to the control terminal 18 of the switch circuit 6 and a manual switch 7 for turning on / off the power source to the monostable circuit 8. 2 is connected to the input / output signal input / output port 22 of the switching circuit 6 and the output port 24 of the power supply open / close control signal of the central processing unit 2 is connected to the control terminal 18 of the switch circuit
A power switchgear 1 connected in parallel to the switchgear 1 for turning on the switch circuit 6 in response to a signal from the monostable circuit 8 and turning off the switch circuit 6 in response to a power-off signal from the central processing unit 2.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3129381A JPH081578B2 (en) | 1991-05-31 | 1991-05-31 | Power supply switching control device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3129381A JPH081578B2 (en) | 1991-05-31 | 1991-05-31 | Power supply switching control device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH04354011A JPH04354011A (en) | 1992-12-08 |
| JPH081578B2 true JPH081578B2 (en) | 1996-01-10 |
Family
ID=15008176
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP3129381A Expired - Lifetime JPH081578B2 (en) | 1991-05-31 | 1991-05-31 | Power supply switching control device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH081578B2 (en) |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH11155240A (en) * | 1997-11-21 | 1999-06-08 | Shizuoka Seiki Co Ltd | Battery automatic separating circuit |
| JP4548714B2 (en) * | 2004-07-28 | 2010-09-22 | 株式会社五洋電子 | Power control circuit for portable radio |
| JP5614204B2 (en) * | 2010-09-24 | 2014-10-29 | ヤマハ株式会社 | Electronic equipment |
| JP7005229B2 (en) | 2017-08-24 | 2022-01-21 | キヤノン株式会社 | Recording device and control method of recording device |
| US12009035B2 (en) * | 2019-10-04 | 2024-06-11 | Lg Innotek Co., Ltd. | Apparatus for controlling NAND flash memory device and method for controlling same |
-
1991
- 1991-05-31 JP JP3129381A patent/JPH081578B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPH04354011A (en) | 1992-12-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5862393A (en) | System for managing power of a computer with removable devices | |
| US5515539A (en) | Apparatus and method for reducing power consumption by peripheral devices after downloading a program therefrom | |
| JPH0522983B2 (en) | ||
| US5410712A (en) | Computer system equipped with extended unit including power supply | |
| JPH081578B2 (en) | Power supply switching control device | |
| EP1473733B1 (en) | Composite storage circuit and semiconductor device having the same | |
| US4631418A (en) | Power supply control device | |
| US6314528B1 (en) | Computer for terminating power without the loss of data and a method thereof | |
| JPS6217299B2 (en) | ||
| KR100219680B1 (en) | Sleep mode enable / disable device | |
| JPS6271685A (en) | printing device | |
| JP2559639Y2 (en) | Power supply control device | |
| JPH05233474A (en) | Storage contents protection system | |
| JP2565018B2 (en) | Inrush current prevention circuit | |
| JPS59139189A (en) | Electronics | |
| JPS6375913A (en) | Power controller for personal computer | |
| KR970005035Y1 (en) | Power supply control circuit | |
| JPS62129904A (en) | Power source controller for magnetic recording and reproducing device | |
| JP2913306B2 (en) | Electronics | |
| JPS611230A (en) | No-break power source | |
| JPH01234915A (en) | Information processing system | |
| JPH04352016A (en) | information processing equipment | |
| JPS613220A (en) | Power source controller | |
| JPH02128260A (en) | Memory data check method when power is turned on/off | |
| JPH10177434A (en) | Memory extension detecting circuit |