JP2985510B2 - Current saving switch circuit - Google Patents

Current saving switch circuit

Info

Publication number
JP2985510B2
JP2985510B2 JP4150991A JP15099192A JP2985510B2 JP 2985510 B2 JP2985510 B2 JP 2985510B2 JP 4150991 A JP4150991 A JP 4150991A JP 15099192 A JP15099192 A JP 15099192A JP 2985510 B2 JP2985510 B2 JP 2985510B2
Authority
JP
Japan
Prior art keywords
switch
cpu
signal
circuit
current
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
JP4150991A
Other languages
Japanese (ja)
Other versions
JPH05341888A (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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric Co Ltd
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 Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP4150991A priority Critical patent/JP2985510B2/en
Publication of JPH05341888A publication Critical patent/JPH05341888A/en
Application granted granted Critical
Publication of JP2985510B2 publication Critical patent/JP2985510B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は操作スイッチの接点が不
必要に長時間オンの儘になった場合、CPUがこの操作
スイッチからその状態信号を取込む場合以外はこの操作
スイッチ接点のオンに基づく電流消費を防ぎ得るように
した省電流スイッチ回路に関する。
BACKGROUND OF THE INVENTION The present invention relates to a case where a contact of an operation switch is turned on unnecessarily for a long period of time, and the operation switch contact is turned on unless the CPU takes in the state signal from the operation switch. The present invention relates to a current-saving switch circuit capable of preventing current consumption based on the current.

【0002】[0002]

【従来の技術】図2は従来の回路の構成例を示すもので
ある。同図において1はトグルスイッチ等の操作スイッ
チ、5はこのスイッチ1と直列に設けられたプルアップ
抵抗、+Vはバッテリ電源、2は3ステートバッファ、
3はCPUである。
2. Description of the Related Art FIG. 2 shows a configuration example of a conventional circuit. In the figure, 1 is an operation switch such as a toggle switch, 5 is a pull-up resistor provided in series with the switch 1, + V is a battery power supply, 2 is a 3-state buffer,
3 is a CPU.

【0003】このCPU3はこの例では常時は電力量計
の電力パルスを計量する役割を持ち、計量対象の交流電
源から浮動充電される前記バッテリ電源+Vによって動
作している。そして前記交流電源が停電した場合、図外
の停電検出回路を介してこの停電を検出するとスタンバ
イモードに移行し、バッテリの電流消費を押さえるよう
にしている。
In this example, the CPU 3 always has a role of measuring the power pulse of the watt-hour meter, and is operated by the battery power supply + V floatingly charged from the AC power supply to be measured. Then, when the AC power supply fails, when the power failure is detected via a power failure detection circuit (not shown), the mode shifts to a standby mode to suppress the current consumption of the battery.

【0004】この停電状態にある電力量計から例えば電
力量等の計算値を読取る必要がある場合、CPU3のプ
ログラム実行を停止した状態(以下スタンバイモードと
いう)を一時的に解除して、プログラムを実行する状態
(以下連続動作モードという)に移行させる必要があ
る。スイッチ1はこのCPU3のスタンバイモードを解
除するための操作スイッチの1つであるものとする。い
まこのスイッチ1がONされると、スイッチ状態信号1
1はHレベルからLレベル(アクティブ)に変化し、ス
タンバイモード解除信号12となってCPU3の非マス
ク割込端子NMiに入力され、CPU3は連続動作モー
ドとなる。そしてリードサイクルで出力したLレベル
(アクティブ)のリード信号14により3ステートバッ
ファ2を導通させ、スイッチ状態信号11をデータバス
上の信号(データバス信号という)13として読み取
る。
When it is necessary to read, for example, a calculated value of an electric energy or the like from the watt hour meter in the power outage state, the state in which the CPU 3 stops executing the program (hereinafter referred to as a standby mode) is temporarily released, and the program is executed. It is necessary to shift to an execution state (hereinafter referred to as a continuous operation mode). The switch 1 is one of the operation switches for releasing the CPU 3 from the standby mode. Now, when this switch 1 is turned on, the switch state signal 1
1 changes from the H level to the L level (active), becomes the standby mode release signal 12, is input to the non-mask interrupt terminal NMi of the CPU 3, and the CPU 3 enters the continuous operation mode. Then, the three-state buffer 2 is made conductive by the L-level (active) read signal 14 output in the read cycle, and the switch state signal 11 is read as a signal (referred to as a data bus signal) 13 on the data bus.

【0005】これによりCPU3はスイッチ1のON操
作を判別し、予め定められた処理(この例では“計量値
の表示”)を実行する。そしてその後も停電状態が続い
ていれば再びスタンバイモードに移る。
Accordingly, the CPU 3 determines the ON operation of the switch 1 and executes a predetermined process ("display of a weighing value" in this example). Then, if the power failure state continues thereafter, the mode shifts to the standby mode again.

【0006】[0006]

【発明が解決しようとする課題】しかしながら図2の回
路ではスイッチ1をうっかりそのままON状態に保持し
ておくと、抵抗5,スイッチ1を介して常に電池電源か
ら電流が流れてしまい、消費電流が大きく、電池の寿命
が短くなるという問題がある。そこで本発明はスイッチ
の動作後、このスイッチが復帰しない状態が継続して
も、常時のスイッチの電流消費を防ぐことができるよう
な省電流スイッチ回路を提供することを課題とする。
However, in the circuit of FIG. 2, if the switch 1 is inadvertently kept in the ON state, current always flows from the battery power supply via the resistor 5 and the switch 1, and the current consumption is reduced. There is a problem that the battery life is large and the life of the battery is shortened. Therefore, an object of the present invention is to provide a current-saving switch circuit that can prevent the current consumption of the switch at all times even if the state where the switch does not return after the operation of the switch continues.

【0007】[0007]

【課題を解決するための手段】前記の課題を解決するた
めに、請求項1の省電流スイッチ回路では、直流電源
(+Vなどの)間に抵抗(5など)と直列に設けられた
スイッチ接点(1など)の状態を(スイッチ状態信号1
1などとして)CPU(3など)が(3ステートバッフ
ァ2などを介し)読込む回路において、前記スイッチ接
点と直列に少なくとも前記CPUのリード信号(14な
ど)を入力とする論理回路の出力回路を挿入し、この出
力回路が前記リード信号の有効時にはオンとなり、同じ
く前記リード信号の無効時にはオフとなるようにする。
According to a first aspect of the present invention, there is provided a current-saving switch circuit comprising: a switch contact provided in series with a resistor (eg, 5) between a DC power source (eg, + V); (Such as 1) (switch state signal 1
In a circuit that a CPU (such as 1) reads (eg, via a three-state buffer 2), an output circuit of a logic circuit that receives at least a read signal (such as 14) of the CPU as an input in series with the switch contact The output circuit is turned on when the read signal is valid, and is turned off when the read signal is invalid.

【0008】また請求項2の省電流スイッチ回路では、
請求項1に記載の省電流スイッチ回路において、前記C
PUはスタンバイモードとなり得るものであり、前記論
理回路の出力回路はこのスタンバイモードを示すCPU
の出力信号(コントロール信号15など)に基づいてオ
ンとなり、前記スイッチ接点のオン時の状態信号は前記
CPU(の割込端子NMiなど)にそのスタンバイモー
ドを解除する信号(12など)として与えられるもので
あるようにする。
Further, in the current saving switch circuit according to the second aspect,
2. The current saving switch circuit according to claim 1, wherein
The PU can be in a standby mode, and the output circuit of the logic circuit is a CPU indicating the standby mode.
On the basis of the output signal (e.g., control signal 15), and the state signal when the switch contact is on is given to the CPU (e.g., an interrupt terminal NMi) as a signal (e.g., 12) for releasing the standby mode. Things.

【0009】また請求項3の省電流スイッチ回路では、
請求項2に記載の省電流スイッチ回路において、前記論
理回路はゲート回路(ANDゲート4など)であるよう
にする。
Further, in the current-saving switch circuit according to claim 3,
3. The current-saving switch circuit according to claim 2, wherein the logic circuit is a gate circuit (such as an AND gate 4).

【0010】[0010]

【作用】スイッチ1と直列に、常時はCPU3のリード
信号14のみによってスイッチ1を通電可能とする論理
回路(ANDゲート4など)の出力回路を挿入し、スイ
ッチ1がたとえ常時ONのままとなっても、リードサイ
クル以外にはこのスイッチ1に電流が流れないようにし
てスイッチ1による電池電源の電流消費を抑制する。
An output circuit of a logic circuit (such as an AND gate 4) that enables the switch 1 to be normally energized only by the read signal 14 of the CPU 3 is inserted in series with the switch 1, and the switch 1 is always kept ON. However, current is prevented from flowing through the switch 1 except for the read cycle, and the current consumption of the battery power supply by the switch 1 is suppressed.

【0011】[0011]

【実施例】図1は本発明の実施例としての要部構成を示
す回路図で図2に対するものであり、図3はその動作を
示す波形図である。図1においては図2に対し、スイッ
チ1のグランド側の端子に直列にANDゲート4(オー
プンドレイン出力回路)を設け、このANDゲート4へ
入力信号としてCPU3のリード信号14およびコント
ロール信号15を与えるようにした点が異なる。なおこ
のコントロール信号15はCPU3のスタンバイモード
時にはLレベルとなり、同じく連続動作モード時にはH
レベルとなるものとする。
FIG. 1 is a circuit diagram showing a main part of an embodiment of the present invention, corresponding to FIG. 2, and FIG. 3 is a waveform diagram showing the operation thereof. In FIG. 1, an AND gate 4 (open drain output circuit) is provided in series with the ground side terminal of the switch 1 in FIG. 2, and a read signal 14 and a control signal 15 of the CPU 3 are supplied to the AND gate 4 as input signals. The difference was that The control signal 15 is at the L level when the CPU 3 is in the standby mode, and is at the H level when the CPU 3 is in the continuous operation mode.
Level.

【0012】次に図1の動作を図3を参照しながら説明
する。図3の波形(a)の如くCPU3がスタンバイモ
ードにある時にスイッチ1をON(時刻t1)する。この
ときリード信号14(図3波形(d))はHレベルにあ
り、コントロール信号15(図3波形(e))はLレベ
ルであることから、ANDゲート4の出力は波形(f)
に示すようにLレベルとなる。スイッチ1がONとな
り、該スイッチに図3波形(b)の如く電流が流れる
と、時刻t2においてCPU3は連動動作モードとなり、
コントロール信号15はHレベルとなる。この時、リー
ド信号14はHレベルにあり、コントロール信号15も
Hレベルにあるので、ANDゲート4の出力もHレベル
となる。スイッチ1にはANDゲート4の出力回路が接
続されているため、ANDゲート4の出力がHレベルに
なると、スイッチ1はON状態にあっても電流が流れな
くなる(波形(b))。次に、時刻t3からt4の期間にお
いて、リード信号がLレベルとなる(リードサイクルと
なる)とANDゲート4の出力はLレベルとなって、ス
イッチ1に電流が流れ、3ステートバッファ2を導通さ
せ、CPU3はLレベルのスイッチ状態信号11をデー
タバス信号13として読込み、図2と同様にスイッチ1
のON動作を判別する。
Next, the operation of FIG. 1 will be described with reference to FIG. When the CPU 3 is in the standby mode as shown in the waveform (a) of FIG. 3, the switch 1 is turned on (time t1). At this time, the read signal 14 (waveform (d) in FIG. 3) is at the H level and the control signal 15 (waveform (e) in FIG. 3) is at the L level, so that the output of the AND gate 4 has the waveform (f).
As shown in FIG. When the switch 1 is turned on and a current flows through the switch as shown in the waveform (b) of FIG. 3, the CPU 3 enters the linked operation mode at time t2,
The control signal 15 becomes H level. At this time, since the read signal 14 is at the H level and the control signal 15 is also at the H level, the output of the AND gate 4 is also at the H level. Since the output circuit of the AND gate 4 is connected to the switch 1, when the output of the AND gate 4 becomes H level, no current flows even when the switch 1 is in the ON state (waveform (b)). Next, during the period from time t3 to t4, when the read signal goes low (becomes a read cycle), the output of the AND gate 4 goes low, current flows through the switch 1, and the three-state buffer 2 is turned on. The CPU 3 reads the L-level switch state signal 11 as the data bus signal 13 and, as in FIG.
Is determined.

【0013】したがって、このCPU3が連動動作モー
ドある時でもリードサイクル以外ではANDゲート4の
入力信号14,15は共にHレベルであるため、AND
ゲート4の出力はHレベルとなり、スイッチ1がONの
ままであっても、このスイッチ1には電流は流れず、ス
イッチ1の常時の電流消費を抑えることができる。な
お、ANDゲート4の出力回路をオープンドレインとし
て説明したが、C−MOS出力を用いることもできる。
Therefore, even when the CPU 3 is in the interlocking operation mode, the input signals 14 and 15 of the AND gate 4 are both at the H level except during the read cycle.
The output of the gate 4 is at the H level, and even if the switch 1 remains ON, no current flows through the switch 1 and the constant current consumption of the switch 1 can be suppressed. Although the output circuit of the AND gate 4 has been described as an open drain, a C-MOS output can also be used.

【0014】[0014]

【発明の効果】本発明によれば、CPU3にスタンバイ
モード解除信号を与えるスイッチ1と直列に、CPU3
のスタンバイモードを示す信号とリード信号とのAND
条件でオンとなる(換言すれば非スタンバイモード(連
続動作モード)および非リードサイクルにてオフとな
る)ANDゲート4の出力回路を挿入するようにしたの
で、スイッチ1を押し続けた場合、CPUの連続動作状
態ではリードサイクル時のみスイッチ1に電流が流れ
る。従ってスイッチ1のON状態における常時のスイッ
チ1の電流消費の低減を図ることができる。
According to the present invention, the CPU 3 is connected in series with the switch 1 for supplying the standby mode release signal to the CPU 3.
AND between read signal and signal indicating standby mode
The output circuit of the AND gate 4 which is turned on under the condition (in other words, turned off in the non-standby mode (continuous operation mode) and in the non-read cycle) is inserted. In the continuous operation state, the current flows through the switch 1 only during the read cycle. Therefore, the current consumption of the switch 1 at all times when the switch 1 is in the ON state can be reduced.

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

【図1】本発明の一実施例としての要部構成を示す回路
FIG. 1 is a circuit diagram showing a configuration of a main part as one embodiment of the present invention.

【図2】図1に対応する従来の回路図FIG. 2 is a conventional circuit diagram corresponding to FIG.

【図3】図1の動作波形図FIG. 3 is an operation waveform diagram of FIG. 1;

【符号の説明】[Explanation of symbols]

1 スイッチ 2 3ステートバッファ 3 CPU 4 ANDゲート 5 プルアップ抵抗 +V バッテリ電源 11 スイッチ状態信号 12 スタンバイモード解除信号 13 データバス信号 14 リード信号 15 コントロール信号 Reference Signs List 1 switch 2 3-state buffer 3 CPU 4 AND gate 5 pull-up resistor + V battery power 11 switch state signal 12 standby mode release signal 13 data bus signal 14 read signal 15 control signal

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】直流電源間に抵抗と直列に設けられたスイ
ッチ接点の状態をCPUが読込む回路において、 前記スイッチ接点と直列に、前記CPUの動作モードを
示す信号とリード信号を入力とする論理回路を接続し、 前記論理回路の出力は、前記CPUが連続動作モードに
あるとき、前記リード信号の無効時にはHレベルとなっ
て前記スイッチ接点に流れる電流を阻止することを特徴
とする省電流スイッチ回路。
1. A circuit in which a CPU reads a state of a switch contact provided in series with a resistor between a DC power supply, wherein a signal indicating an operation mode of the CPU and a read signal are input in series with the switch contact. A logic circuit connected thereto, wherein, when the CPU is in the continuous operation mode, the output of the logic circuit goes to H level when the read signal is invalid, thereby preventing a current flowing through the switch contact. Switch circuit.
【請求項2】請求項1に記載の省電流スイッチ回路にお
いて、 前記CPUはスタンバイモードとなり得るものであり、 前記スイッチ接点のオン時の状態信号は前記CPUにそ
のスタンバイモードを解除する信号として与えられるも
のであることを特徴とする省電流スイッチ回路。
2. The current-saving switch circuit according to claim 1, wherein said CPU can be in a standby mode, and said ON-state signal of said switch contact is given to said CPU as a signal for releasing said standby mode. Current-saving switch circuit characterized by being able to be used.
【請求項3】請求項2に記載の省電流スイッチ回路にお
いて、 前記論理回路はゲート回路であることを特徴とする省電
流スイッチ回路。
3. The current saving switch circuit according to claim 2, wherein said logic circuit is a gate circuit.
JP4150991A 1992-06-11 1992-06-11 Current saving switch circuit Expired - Lifetime JP2985510B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4150991A JP2985510B2 (en) 1992-06-11 1992-06-11 Current saving switch circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4150991A JP2985510B2 (en) 1992-06-11 1992-06-11 Current saving switch circuit

Publications (2)

Publication Number Publication Date
JPH05341888A JPH05341888A (en) 1993-12-24
JP2985510B2 true JP2985510B2 (en) 1999-12-06

Family

ID=15508900

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4150991A Expired - Lifetime JP2985510B2 (en) 1992-06-11 1992-06-11 Current saving switch circuit

Country Status (1)

Country Link
JP (1) JP2985510B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4764852B2 (en) * 2007-04-26 2011-09-07 京セラ株式会社 Electronics

Also Published As

Publication number Publication date
JPH05341888A (en) 1993-12-24

Similar Documents

Publication Publication Date Title
US6981163B2 (en) Method and apparatus for power mode transition in a multi-thread processor
CN104777888B (en) Coordinate the energy consumption in control reduction computer system by the software and hardware of more power supplys
US4590553A (en) Microcomputer with power-save output instructions
US6675305B1 (en) Power saving in a USB peripheral by providing gated clock signal to CSR block in response to a local interrupt generated when an operation is to be performed
TWI303022B (en) Wake-up reset circuit
US20010030469A1 (en) Backup power-source module, backup power-source apparatus, and computer
JP2985510B2 (en) Current saving switch circuit
US20100102865A1 (en) Standby control circuit and method
US7263564B2 (en) Inquiring apparatus and method thereof
JP2000116013A (en) Electronic equipment and method for estimating capacity of secondary battery
JP3903716B2 (en) Microcomputer
JP2002063150A (en) Microcomputer
JPH0573349A (en) Stand-by control circuit
JPH06149417A (en) Cpu reset device
JPS61240303A (en) Washing machine
JPH02224107A (en) Automatic power saving method
JPS61141059A (en) Terminal equipment
JP2993318B2 (en) Timed switching watchdog timer circuit
JPS6234082A (en) Circuit for detecting residual capacity of storage battery
JPH0675654A (en) Power saving system for computer
JP2871186B2 (en) Microcomputer
JPH0285781A (en) Electric equipment using battery as power source
JPH0530938Y2 (en)
CN116009678A (en) Clock switching method and switching circuit
JPH0318224A (en) Auxiliary battery voltage detector