JPH03222215A - Switching condition detection circuit - Google Patents

Switching condition detection circuit

Info

Publication number
JPH03222215A
JPH03222215A JP1605990A JP1605990A JPH03222215A JP H03222215 A JPH03222215 A JP H03222215A JP 1605990 A JP1605990 A JP 1605990A JP 1605990 A JP1605990 A JP 1605990A JP H03222215 A JPH03222215 A JP H03222215A
Authority
JP
Japan
Prior art keywords
switch
input
output terminal
resistor
capacitor
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.)
Pending
Application number
JP1605990A
Other languages
Japanese (ja)
Inventor
Takayuki Mashio
真塩 隆之
Kenzo Masuoka
増岡 謙三
Kimitoshi Nakamura
公俊 中村
Takeshi Shimada
健 嶋田
Hisayoshi Suzuki
鈴木 久悦
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.)
HASEGAWA DENKI SEISAKUSHO KK
Nippon Telegraph and Telephone Corp
Nakayo Telecommunications Inc
Original Assignee
HASEGAWA DENKI SEISAKUSHO KK
Nippon Telegraph and Telephone Corp
Nakayo Telecommunications Inc
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 HASEGAWA DENKI SEISAKUSHO KK, Nippon Telegraph and Telephone Corp, Nakayo Telecommunications Inc filed Critical HASEGAWA DENKI SEISAKUSHO KK
Priority to JP1605990A priority Critical patent/JPH03222215A/en
Publication of JPH03222215A publication Critical patent/JPH03222215A/en
Pending legal-status Critical Current

Links

Landscapes

  • Measurement Of Current Or Voltage (AREA)
  • Keying Circuit Devices (AREA)

Abstract

PURPOSE:To detect the ON-OFF conditions of a switch without increasing the current consumption of a device by inserting a circuit formed through the process of connecting the switch, a capacitor and a resistor in parallel to one another between the input-output terminal of the device and the ground thereof, outputting a pulse from a pulse output circuit via the input-output terminal and after a short while reading the charged voltage of the capacitor connected to the input-output terminal in a detection circuit. CONSTITUTION:A circuit formed through the process of connecting a switch SW, a capacitor C1 and a resistor R1 in parallel to one another is connected between the input-output terminal A of a device and the ground thereof, then a pulse is outputted from the input-output terminal A and thereafter the charged voltage of the capacitor C1 connected to the input-output terminal A is read in so that the ON-OFF conditions of the switch can be detected without letting a current flow through a pull-up resistor (or through a pull-down resistor). Whereby the current consumption of the device can be lowered and consequently a switching condition detection circuit can be applied to a function change-over switch for a battery-operated calculating machine being required to have low current consumption, an electronic pocket notebook or the like.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明はスイッチの状態を検出する方式に関するもので
ある。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a method for detecting the state of a switch.

(従来の技術) 従来はプルアップ抵抗(又はプルダウン抵抗)とスイッ
チを直列接続した回路を電源の■とグランド間に接続し
、プルアップ抵抗(又はプルダウン抵抗)とスイッチの
接続点の電圧を読み込むことによりスイッチのON、O
FF状態を検出している。
(Conventional technology) Conventionally, a circuit in which a pull-up resistor (or pull-down resistor) and a switch are connected in series is connected between the power supply ■ and the ground, and the voltage at the connection point between the pull-up resistor (or pull-down resistor) and the switch is read. Depending on whether the switch is ON or O
FF state is detected.

(発明が解決しようとする課題) 従来のプルアップ抵抗(又はプルダウン抵抗)とスイッ
チを直列接続した回路を電源の■とグランド間に接続し
、プルアップ抵抗(又はプルダウン抵抗)とスイッチの
接続点の電圧を読み込むことによりスイッチのON、O
FF状態を検出する回路では、スイッチがONのときに
プルアップ抵抗(又はプルダウン抵抗)を通じて電流が
流れ、これがために装置の消費電流が増加し、とくに電
池により動作する装置では電池寿命が短くなる。
(Problem to be solved by the invention) A circuit in which a conventional pull-up resistor (or pull-down resistor) and a switch are connected in series is connected between the power supply ■ and the ground, and the connection point between the pull-up resistor (or pull-down resistor) and the switch is The switch can be turned ON or OFF by reading the voltage of
In the circuit that detects the FF state, current flows through the pull-up resistor (or pull-down resistor) when the switch is ON, which increases the current consumption of the device and shortens the battery life, especially in devices that operate on batteries. .

(課題を解決するための手段と作用) 本発明は上述の不具合を解決するため、スイッチ、コン
デンサ、抵抗を並列に接続した回路を装置の入出力端子
とグランド間に接続し、入出力端子からパルスを出力し
、その後入出力端子に接続したコンデンサの充電電圧を
読み込むことにより、プルアップ抵抗(又はプルダウン
抵抗)に電流を流すことなくスイッチのON、 OFF
状態を検出することが可能であり、従って装置の消費電
流の省力化を計ることが可能とな(実施例) 以下図面により本発明の一実施例について詳細に説明す
る。
(Means and effects for solving the problem) In order to solve the above problems, the present invention connects a circuit in which a switch, a capacitor, and a resistor are connected in parallel between the input/output terminal of the device and the ground, and connects the circuit from the input/output terminal to the ground. By outputting a pulse and then reading the charging voltage of the capacitor connected to the input/output terminal, the switch can be turned on and off without flowing current to the pull-up resistor (or pull-down resistor).
It is possible to detect the state, and therefore it is possible to reduce the power consumption of the device (Embodiment) An embodiment of the present invention will be described in detail below with reference to the drawings.

第2図は従来のスイッチ状態検出回路を示すもので、検
出回路102.プルアップ抵抗R,入力端子■、スイッ
チSWよりなる。
FIG. 2 shows a conventional switch state detection circuit, in which the detection circuit 102. It consists of a pull-up resistor R, an input terminal ■, and a switch SW.

検出回路102に、プルアップ抵抗R1と入力端子■を
通じてe電圧が加わっている場合は、スイッチSWがO
FF していると検出できる。
When the voltage e is applied to the detection circuit 102 through the pull-up resistor R1 and the input terminal
It can be detected if it is FF.

検出回路102に入力端子■を通じてグランド電圧が加
わっている場合は、スイッチSWがON していると検
出できる。
When the ground voltage is applied to the detection circuit 102 through the input terminal (2), it can be detected that the switch SW is turned on.

このとき■−プルアップ抵抗R1−スイッチ−グランド
の経路で電流Iが流れ、従って消費電流Iは増加する。
At this time, the current I flows through the path ①-pull-up resistor R1-switch-ground, and therefore the current consumption I increases.

第1図は本発明の一実施例を示すスイッチ状態検出回路
であり、パルス出力回路101.検出回路102.入出
力端子■。
FIG. 1 shows a switch state detection circuit showing an embodiment of the present invention, in which a pulse output circuit 101. Detection circuit 102. Input/output terminal■.

トランジスタQ1.コンデンサCI+抵抗Rt、保護抵
抗R2。
Transistor Q1. Capacitor CI + resistor Rt, protection resistor R2.

スイッチSWよりなる。It consists of a switch SW.

パルス出力回路101によりトランジスタQ、のベース
にパルスを加えてトランジスタQ1をONさせ2次にト
ランジスタQ1をOFFさせたとき、入出力端子■ を
通じて検出回路102にグランド電圧が加わっている場
合は、スイッチSWがON していると検出できる。
When the pulse output circuit 101 applies a pulse to the base of the transistor Q to turn on the transistor Q1 and then turn off the transistor Q1, if ground voltage is applied to the detection circuit 102 through the input/output terminal, the switch It can be detected if the SW is turned on.

トランジスタQ、がON している時間を短くすること
により、保護抵抗R2とスイッチSWを通じて電流が流
れる時間は短くなるので、消費電流の増加は防止できる
By shortening the time during which the transistor Q is ON, the time during which current flows through the protection resistor R2 and the switch SW is shortened, so an increase in current consumption can be prevented.

入出力端子■を通じて検出回路]02に■電圧が加わっ
ている場合は、スイッチSWがOFF していると検出
できる。
If the voltage ■ is applied to the detection circuit]02 through the input/output terminal ■, it can be detected that the switch SW is OFF.

この場合の回路創作は、パルス出力回路101によりト
ランジスタQ、のベースにパルスを加えてトランジスタ
Ql’fr: ONさせ、入出力端子■を通してコンデ
ンサC1を充電し、 その後にトランジスタQ+をOF
Fさせると、コンデンサC1は■電圧に充電された後コ
ンデンサC1と抵抗R1の時定数によりコンデンサC1
の電荷が放電する。
To create a circuit in this case, the pulse output circuit 101 applies a pulse to the base of the transistor Q, turns on the transistor Ql'fr, charges the capacitor C1 through the input/output terminal ■, and then turns off the transistor Q+.
When the capacitor C1 is charged to the voltage F, the capacitor C1 is charged by the time constant of the capacitor C1 and resistor R1
charge is discharged.

このとき、検出回路102には入出力端子■を通じてコ
ンデンサCIに充電されている■電圧が加わるので、ス
イッチSWがOFF していると検出できる。
At this time, since the voltage (2) charged in the capacitor CI is applied to the detection circuit 102 through the input/output terminal (2), it can be detected that the switch SW is OFF.

トランジスタQlがONすることによりコンデンサCi
を充電する電流はわずかであり、従って消費電流は増加
しない。
When transistor Ql turns on, capacitor Ci
The charging current is small, so current consumption does not increase.

パルス出力回路101から一定周期(例えば1秒おき)
又はスイッチSWの状態を検出する必要が生じたとき1
こ、パルスを出力してトランジスタQlをOFF→ON
−+OFFさせることにより消費電流の増加なしにスイ
ッチSWの状態を検出することができるので、低消費電
流であることを要求される電池動作の計算機、電子手帳
などの機能切替スイッチに利用できる。
from the pulse output circuit 101 at a constant cycle (for example, every 1 second)
Or when it becomes necessary to detect the state of the switch SW 1
This outputs a pulse and turns the transistor Ql OFF → ON
- Since the state of the switch SW can be detected without increasing current consumption by turning it OFF, it can be used as a function changeover switch for battery-operated calculators, electronic notebooks, etc. that require low current consumption.

(発明の効果) 以上説明したように本発明のスイッチ状態検出回路によ
り。
(Effects of the Invention) As explained above, by the switch state detection circuit of the present invention.

装置の消費電流を増加させることなくスイッチのON、
OFFを検出することができ、電池により動作する装置
では電池寿命を長くすることができる。
Turn on the switch without increasing the current consumption of the device.
OFF can be detected, and battery life can be extended in devices operated by batteries.

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

第1図は本発明の一実施例を示すスイッチ状態検出回路
のブロック図である。
FIG. 1 is a block diagram of a switch state detection circuit showing one embodiment of the present invention.

Claims (1)

【特許請求の範囲】[Claims] (1)パルス出力回路と検出回路を備えた装置において
、装置の入出力端子とグランド間に、スイッチとコンデ
ンサと抵抗とを並列接続したものを挿入し、パルス出力
回路のパルスを入出力端子を経て出力し、暫時後、入出
力端子に接続したコンデンサの充電電圧を検出回路によ
り読み込むことにより、スイッチのON、OFF状態を
検出することを特徴とするスイッチ状態検出回路。
(1) In a device equipped with a pulse output circuit and a detection circuit, insert a switch, a capacitor, and a resistor connected in parallel between the input/output terminal of the device and the ground, and then connect the pulse of the pulse output circuit to the input/output terminal. 1. A switch state detection circuit that detects an ON or OFF state of a switch by reading the charged voltage of a capacitor connected to an input/output terminal with a detection circuit after a while.
JP1605990A 1990-01-29 1990-01-29 Switching condition detection circuit Pending JPH03222215A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1605990A JPH03222215A (en) 1990-01-29 1990-01-29 Switching condition detection circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1605990A JPH03222215A (en) 1990-01-29 1990-01-29 Switching condition detection circuit

Publications (1)

Publication Number Publication Date
JPH03222215A true JPH03222215A (en) 1991-10-01

Family

ID=11906002

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1605990A Pending JPH03222215A (en) 1990-01-29 1990-01-29 Switching condition detection circuit

Country Status (1)

Country Link
JP (1) JPH03222215A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000014756A1 (en) * 1998-09-07 2000-03-16 Seiko Epson Corporation Switch operated state detector and electronic device
JP2006234783A (en) * 2005-01-28 2006-09-07 Yazaki Corp Device for measuring voltage
EP2141559A1 (en) * 2008-07-01 2010-01-06 EM Microelectronic-Marin SA Timepiece fitted with a control case for an electric motor
JP2012180026A (en) * 2011-03-02 2012-09-20 Yazaki Corp Switch state detector and controller having the same
JP2016197115A (en) * 2008-01-29 2016-11-24 株式会社日立製作所 Battery system and battery monitoring device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000014756A1 (en) * 1998-09-07 2000-03-16 Seiko Epson Corporation Switch operated state detector and electronic device
US6353522B1 (en) 1998-09-07 2002-03-05 Seiko Epson Corporation Switching state detecting device for switch, and electronic apparatus
JP2006234783A (en) * 2005-01-28 2006-09-07 Yazaki Corp Device for measuring voltage
JP2016197115A (en) * 2008-01-29 2016-11-24 株式会社日立製作所 Battery system and battery monitoring device
EP2141559A1 (en) * 2008-07-01 2010-01-06 EM Microelectronic-Marin SA Timepiece fitted with a control case for an electric motor
US7944777B2 (en) 2008-07-01 2011-05-17 Em Microelectronic-Marin Sa Watch fitted with an electric motor control case
JP2012180026A (en) * 2011-03-02 2012-09-20 Yazaki Corp Switch state detector and controller having the same

Similar Documents

Publication Publication Date Title
KR100281534B1 (en) Battery pack selection circuit of portable computer
KR100562877B1 (en) Charging and discharging control circuit and charging type power supply device
EP0657982A1 (en) Battery use system for portable electric equipment
KR960036237A (en) A battery charge control circuit and a method of simulating a thermistor in the battery charge control circuit and a battery cell discharge method
JPH11242966A (en) Protecting method for battery pack and device therefor
KR960016052A (en) Control circuit to protect the battery from over discharge
JPH08140281A (en) Charger
CN108879824B (en) Integrated rechargeable battery protection function circuit
JPH03222215A (en) Switching condition detection circuit
US20040196007A1 (en) Battery pack malfunction detection apparatus and battery pack malfunction detection method
JPH08186623A (en) Portable telephone set with automatic power control function
US7501796B2 (en) Semiconductor device having positive side of power supply voltage set
US6472849B1 (en) Reverse blocking function integrated into charging circuit
JP2001095168A (en) Charger and electric cleaner
JPH06284594A (en) Chargeable power supply apparatus
JP3239689B2 (en) Charging device
JP2730500B2 (en) Charging device
JP2003180038A (en) Charge controller
JP2003079058A (en) Battery pack
US6064184A (en) Charging circuit for charging a rechargeable battery and for preventing consumption of rechargeable battery power by the charging circuit
JPH09322410A (en) Charge discharge control circuit
JPH0232856B2 (en)
JP2002098743A (en) Battery classification detection device
JP3585086B2 (en) Lithium ion secondary battery charger
CN220291693U (en) Charging protection circuit and electronic device