JP2536235B2 - Power-on circuit - Google Patents

Power-on circuit

Info

Publication number
JP2536235B2
JP2536235B2 JP2127202A JP12720290A JP2536235B2 JP 2536235 B2 JP2536235 B2 JP 2536235B2 JP 2127202 A JP2127202 A JP 2127202A JP 12720290 A JP12720290 A JP 12720290A JP 2536235 B2 JP2536235 B2 JP 2536235B2
Authority
JP
Japan
Prior art keywords
microcomputer
switch
power
main power
latch circuit
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
Application number
JP2127202A
Other languages
Japanese (ja)
Other versions
JPH0426326A (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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2127202A priority Critical patent/JP2536235B2/en
Publication of JPH0426326A publication Critical patent/JPH0426326A/en
Application granted granted Critical
Publication of JP2536235B2 publication Critical patent/JP2536235B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、外部スイッチにより機器の主電源を電気的
に制御する電源投入回路に関するものである。
TECHNICAL FIELD The present invention relates to a power-on circuit that electrically controls a main power supply of a device by an external switch.

〔従来の技術〕[Conventional technology]

第4図は、従来の電源投入回路を示す回路図である。
同図において、1は機器の制御を行なうマイクロコンピ
ュータ、2は機器の電源、3は機器の主電源スイッチ
部、4は電圧検出器、5は外部スイッチ6のラッチ回
路、RGはプルアップ抵抗、R,SおよびQはラッチ回路5
のリセット端子,入力端子および出力端子である。
FIG. 4 is a circuit diagram showing a conventional power-on circuit.
In the figure, 1 is a microcomputer for controlling the equipment, 2 is the power supply of the equipment, 3 is the main power switch of the equipment, 4 is a voltage detector, 5 is a latch circuit of the external switch 6, RG is a pull-up resistor, R, S and Q are latch circuits 5
Reset terminal, input terminal and output terminal.

第5図は、第4図のマイクロコンピュータ1の動作を
説明するための概略フローチャートである。
FIG. 5 is a schematic flow chart for explaining the operation of the microcomputer 1 of FIG.

次に動作について説明する。第4図の回路構成におい
て、電源2を接続しただけでは、主電源スイッチ部3に
電源がかかるのみで、マイクロコンピュータ1は動作し
ない。本回路構成の機器を動作させるためには、外部ス
イッチ6を押下する必要がある。外部スイッチ6が押下
されると、この外部スイッチ6によるスイッチ入力信号
はラッチ回路5でラッチされ、主電源スイッチ部3をオ
ンにする。これにより、マイクロコンピュータ1には電
源が供給されるとともに、電圧検出器4からのリセット
信号により動作を開始する。
Next, the operation will be described. In the circuit configuration of FIG. 4, if the power supply 2 is simply connected, the main power supply switch section 3 is powered on, and the microcomputer 1 does not operate. In order to operate the device having this circuit configuration, it is necessary to press the external switch 6. When the external switch 6 is pressed, the switch input signal from the external switch 6 is latched by the latch circuit 5 to turn on the main power switch unit 3. As a result, power is supplied to the microcomputer 1 and operation is started by the reset signal from the voltage detector 4.

マイクロコンピュータ1は第5図に示す概略フローチ
ャートに従って動作し、任意の時間Mms連続して外部ス
イッチ6が押下されていると判定した時は(ステップST
1,ST2)、主電源スイッチ部3をオンにしたまま所定の
処理を実行する(ステップST3)。また、外部スイッチ
6がMms連続して押下されなかったと判定した時、所定
の処理中に電源を切る条件を検出した時は、マイクロコ
ンピュータ1の出力ポートPOからラッチ回路5にリセッ
ト信号を出力し、これにより主電源スイッチ部3をオフ
して電源断とする。
The microcomputer 1 operates according to the schematic flowchart shown in FIG. 5, and when it is determined that the external switch 6 is continuously pressed for an arbitrary time Mms (step ST
1, ST2), a predetermined process is executed with the main power switch unit 3 kept on (step ST3). Further, when it is determined that the external switch 6 has not been continuously pressed for Mms, and when a condition for turning off the power is detected during a predetermined process, a reset signal is output from the output port PO of the microcomputer 1 to the latch circuit 5. As a result, the main power switch unit 3 is turned off to cut off the power.

〔発明が解決しようする課題〕[Problems to be Solved by the Invention]

従来の電源投入回路は以上のように構成されているの
で、電源を接続しただけでマイクロコンピュータを動作
させることは不可能であり、また、所定の処理以外に別
の処理を動作させたい場合は、一度外部スイッチを押下
して電源を入れてから処理を切り換えるようにしなけれ
ばならなかった。
Since the conventional power-on circuit is configured as described above, it is impossible to operate the microcomputer just by connecting the power supply. Further, when it is desired to operate another process other than the predetermined process, , I had to press the external switch once to turn on the power and then switch the processing.

本発明はこのような点に鑑みてなされたものであり、
その目的とするところは、電源接続時又は外部スイッチ
押下時にマイクロコンピュータを起動させ、外部スイッ
チの押下か否かの状態によってマイクロコンピュータの
処理を切り換えることができる電源投入回路を得ること
にある。
The present invention has been made in view of such a point,
An object of the invention is to obtain a power-on circuit that can start a microcomputer when power is connected or when an external switch is pressed and can switch the processing of the microcomputer depending on whether the external switch is pressed or not.

〔課題を解決するための手段〕[Means for solving the problem]

このような目的を達成するために本発明は、電源接続
時に動作する電圧検出器を第2の電圧検出器として独立
してもち、その出力によって外部スイッチの押下がなく
ともラッチ回路を動作させる回路を追加したものであ
る。
In order to achieve such an object, the present invention provides a circuit in which a voltage detector that operates when a power supply is connected is independently used as a second voltage detector, and the output of the voltage detector operates a latch circuit without pressing an external switch. Is added.

〔作用〕[Action]

本発明による電源投入回路においては、電源接続時に
新たに設けた第2の電圧検出器の出力をもってラッチ回
路を動作させることにより主電源スイッチ部をオンして
マイクロコンピュータを動作させることができ、また、
マイクロコンピュータの処理の先頭で、外部スイッチが
押下されているか否かを判定して、処理を切り換えるこ
とが可能となる。
In the power-on circuit according to the present invention, the main power switch section can be turned on to operate the microcomputer by operating the latch circuit with the output of the second voltage detector newly provided when the power is connected. ,
At the beginning of the processing of the microcomputer, it is possible to determine whether or not the external switch is pressed and switch the processing.

〔実施例〕〔Example〕

以下、本発明の実施例について説明する。第1図は本
発明による電源投入回路の一実施例を示す回路図であ
る。同図において、1は機器を制御するマイクロコンピ
ュータ、2は機器の電源、3は機器の主電源スイッチ
部、4,7は第1,第2の電圧検出器、5はラッチ回路、6
は外部スイッチ、8はバッファ、RGはプルアップ抵抗で
ある。
Examples of the present invention will be described below. FIG. 1 is a circuit diagram showing an embodiment of a power-on circuit according to the present invention. In the figure, 1 is a microcomputer for controlling the equipment, 2 is the power supply of the equipment, 3 is the main power switch of the equipment, 4, 7 are first and second voltage detectors, 5 is a latch circuit, 6
Is an external switch, 8 is a buffer, and RG is a pull-up resistor.

第2図は第1図のマイクロコンピュータの動作の概略
フローチャートである。
FIG. 2 is a schematic flowchart of the operation of the microcomputer of FIG.

次に動作について説明する。第1図の回路構成におい
て、電源2を接続すると、電圧検出器7はこれを検出し
て電源接続信号を出力し、この信号をラッチ回路5でラ
ッチし、主電源スイッチ部3をオンにする。これによ
り、マイクロコンピュータ1には電源が供給されるとと
もに、電圧検出器4からのリセット信号により動作を開
始する。また一方、外部スイッチ6が押下されると、こ
のスイッチ入力信号はバッファ8を介してラッチ回路5
でラッチされ、主電源スイッチ部3をオンにする。これ
により上記と同様にマイクロコンピュータ1が動作を開
始する。
Next, the operation will be described. In the circuit configuration of FIG. 1, when the power supply 2 is connected, the voltage detector 7 detects this and outputs a power supply connection signal, which is latched by the latch circuit 5 to turn on the main power supply switch section 3. . As a result, power is supplied to the microcomputer 1 and operation is started by the reset signal from the voltage detector 4. On the other hand, when the external switch 6 is pressed, this switch input signal is sent to the latch circuit 5 via the buffer 8.
And the main power switch unit 3 is turned on. As a result, the microcomputer 1 starts operating in the same manner as above.

マイクロコンピュータ1は第1図に示す概略フローチ
ャートに従って動作し、任意の時間Nms連続して外部ス
イッチ6が押下されていない場合(ステップST11,ST1
2)と、任意の時間Mms連続して外部ステップ6が押下さ
れている場合(ステップST11,ST13)との2つの状態を
判定し、前者の場合は処理1(ステップST14)、後者の
場合は処理2(ステップST15)というように切り換えて
実行する。また、処理1,処理2のいずれかを実行中に電
源を切る条件を検出した時は、マイクロコンピュータ1
の出力ポートPOからラッチ回路5にリセット信号を出力
し(ステップST16)、これにより主電源スイッチ部3を
オフして電源断とする。
The microcomputer 1 operates according to the schematic flowchart shown in FIG. 1, and when the external switch 6 is not pressed continuously for an arbitrary time Nms (steps ST11, ST1).
2) and if the external step 6 is continuously pressed for an arbitrary time Mms (steps ST11, ST13), the two states are determined. In the case of the former, the process 1 (step ST14), in the case of the latter, The processing is switched and executed as in processing 2 (step ST15). Further, when the condition for turning off the power is detected during the execution of any of the processes 1 and 2, the microcomputer 1
A reset signal is output to the latch circuit 5 from the output port PO (step ST16), and the main power switch unit 3 is turned off to disconnect the power.

なお、上記実施例では、外部スイッチ6を用いた場合
について説明したが、第3図に示すように、外部制御回
路9を設け、その制御信号を用いた場合についても上記
実施例と同様の効果を奏する。
In the above embodiment, the case where the external switch 6 is used has been described. However, as shown in FIG. 3, the same effect as in the above embodiment can be obtained when the external control circuit 9 is provided and the control signal is used. Play.

〔発明の効果〕〔The invention's effect〕

以上説明したように本発明は、電源接続時又は外部ス
イッチ押下時に主電源スイッチ部をオンにしてマイクロ
コンピュータを起動し、マイクロコンピュータ起動後の
外部スイッチの状態によりマイクロコンピュータの制御
機能の切換えを行ない、電源を切る時はその条件を検出
してマイクロコンピュータからラッチ回路のリセットを
行なうことにより主電源スイッチ部をオフするようにし
たことにより、電源接続時又は外部スイッチの押下時に
それぞれ別の処理をマイクロコンピュータに実行させる
ことができ、電源を一度入れてから手操作入力により処
理を切り換えるような煩わしい手間を解消する効果があ
る。
As described above, according to the present invention, the main power switch unit is turned on to start the microcomputer when the power is connected or the external switch is pressed, and the control function of the microcomputer is switched according to the state of the external switch after starting the microcomputer. When the power is turned off, the main power switch is turned off by detecting the condition and resetting the latch circuit from the microcomputer, so that different processing is performed when the power is connected or the external switch is pressed. It can be executed by the microcomputer, and has an effect of eliminating the troublesome work of switching the processing by manual operation input after turning on the power once.

また、例えば電源接続時にのみマイクロコンピュータ
に何らかの処理(試験処理や初期設定処理)を実行させ
たい場合には最適である。
Further, for example, it is optimal when it is desired to cause the microcomputer to execute some processing (test processing or initial setting processing) only when the power source is connected.

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

第1図は本発明による電源投入回路の一実施例を示す回
路図、第2図は第1図の回路の動作を説明するための概
略フローチャート、第3図は本発明の他の実施例を示す
回路図、第4図は従来の電源投入回路を示す回路図、第
5図は第4図の回路の動作を説明するための概略フロー
チャートである。 1……マイクロコンピュータ、2……電源、3……主電
源スイッチ部、4……第1の電圧検出器、5……ラッチ
回路、6……外部スイッチ、7……第2の電圧検出器、
8……外部スイッチ、RG……プルアップ抵抗。
FIG. 1 is a circuit diagram showing an embodiment of a power-on circuit according to the present invention, FIG. 2 is a schematic flow chart for explaining the operation of the circuit of FIG. 1, and FIG. 3 is another embodiment of the present invention. FIG. 4 is a circuit diagram showing the conventional power-on circuit, and FIG. 5 is a schematic flow chart for explaining the operation of the circuit of FIG. 1 ... Microcomputer, 2 ... Power supply, 3 ... Main power switch section, 4 ... First voltage detector, 5 ... Latch circuit, 6 ... External switch, 7 ... Second voltage detector ,
8 ... External switch, RG ... Pull-up resistor.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】外部スイッチと、マイクロコンピュータ
と、ラッチ回路と、主電源スイッチ部と、第1および第
2の電圧検出器とを備え、 外部スイッチの一方の端子を接地し、その他方の端子を
プルアップ抵抗を介して電源に接続し、前記外部スイッ
チの他方の端子をマイクロコンピュータの入力ポートと
バッファを介してラッチ回路の入力とにそれぞれ接続
し、マイクロコンピュータの出力ポートをラッチ回路の
リセット端子に接続し、ラッチ回路の出力を主電源スイ
ッチ部の切換制御信号として主電源スイッチ部に接続
し、主電源スイッチ部の入力を電源に接続し、ラッチ回
路の入力を第2の電圧検出器を介して電源と接続し、主
電源スイッチ部の出力をマイクロコンピュータの電源端
子と接続し、マイクロコンピュータのリセット端子を第
1の電圧検出器を介して主電源スイッチ部の出力と接続
し、 電源接続時又は外部スイッチ押下時に主電源スイッチ部
をオンにしてマイクロコンピュータを起動し、マイクロ
コンピュータ起動後の外部スイッチの状態によりマイク
ロコンピュータの制御機能の切換えを行ない、電源を切
る時はその条件を検出してマイクロコンピュータからラ
ッチ回路のリセットを行なうことにより主電源スイッチ
部をオフすることを特徴とする電源投入回路。
1. An external switch, a microcomputer, a latch circuit, a main power supply switch section, and first and second voltage detectors, wherein one terminal of the external switch is grounded and the other terminal is grounded. Is connected to the power supply via a pull-up resistor, the other terminal of the external switch is connected to the input port of the microcomputer and the input of the latch circuit via the buffer, and the output port of the microcomputer is reset to the latch circuit. The output of the latch circuit is connected to the main power switch section as a switching control signal of the main power switch section, the input of the main power switch section is connected to the power source, and the input of the latch circuit is connected to the second voltage detector. Through the power supply, connect the output of the main power switch to the power supply terminal of the microcomputer, and connect the reset terminal of the microcomputer. Connected to the output of the main power switch through the first voltage detector, and when the power is connected or the external switch is pressed, the main power switch is turned on to start the microcomputer, and the state of the external switch after the microcomputer is started. The power-on circuit is characterized in that the control function of the microcomputer is switched by, and when the power is turned off, the condition is detected and the main power switch is turned off by resetting the latch circuit from the microcomputer.
JP2127202A 1990-05-17 1990-05-17 Power-on circuit Expired - Lifetime JP2536235B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2127202A JP2536235B2 (en) 1990-05-17 1990-05-17 Power-on circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2127202A JP2536235B2 (en) 1990-05-17 1990-05-17 Power-on circuit

Publications (2)

Publication Number Publication Date
JPH0426326A JPH0426326A (en) 1992-01-29
JP2536235B2 true JP2536235B2 (en) 1996-09-18

Family

ID=14954241

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2127202A Expired - Lifetime JP2536235B2 (en) 1990-05-17 1990-05-17 Power-on circuit

Country Status (1)

Country Link
JP (1) JP2536235B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101734191B1 (en) 2010-04-15 2017-05-12 코웨이 주식회사 apparatus and system of controlling power saving in bidet

Also Published As

Publication number Publication date
JPH0426326A (en) 1992-01-29

Similar Documents

Publication Publication Date Title
JP2536235B2 (en) Power-on circuit
US3873894A (en) Power supply control system
JPH0132432Y2 (en)
JPH0797721B2 (en) Automotive antenna controller
JP2546051B2 (en) Power-on device
JPH05206767A (en) Sound volume adjustment device
JP3371283B2 (en) Power control method
JPH02302129A (en) Video receiver
JP2893015B1 (en) Breaker electrical operating device
JPS6116978B2 (en)
JP2536150B2 (en) Fader voltage generator
JPH0734484Y2 (en) Cassette deck
JPH06236225A (en) Electronic equipment
JPH0327723A (en) Power supply switch
JPH04140814A (en) Panel switch for computer
JPH08116676A (en) Variable frequency power supply
JPH03198516A (en) Automatic gain control amplifier
JP2973503B2 (en) Timer using microcomputer
JP2556746Y2 (en) Sound device with automatic switching of operation keys
JPS62186154A (en) Control unit of air conditioner
JPH0125271B2 (en)
JPH07234703A (en) Automatic controller
JP2946562B2 (en) Frequency conversion circuit
JPH0755078B2 (en) Overcurrent detection device
JPH0584619B2 (en)

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070708

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080708

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090708

Year of fee payment: 13

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100708

Year of fee payment: 14

EXPY Cancellation because of completion of term