JPH01221816A - Switch on/off detector - Google Patents

Switch on/off detector

Info

Publication number
JPH01221816A
JPH01221816A JP4699888A JP4699888A JPH01221816A JP H01221816 A JPH01221816 A JP H01221816A JP 4699888 A JP4699888 A JP 4699888A JP 4699888 A JP4699888 A JP 4699888A JP H01221816 A JPH01221816 A JP H01221816A
Authority
JP
Japan
Prior art keywords
switch
potential
resistor
comparator
output
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.)
Granted
Application number
JP4699888A
Other languages
Japanese (ja)
Other versions
JPH063697B2 (en
Inventor
Yoshito Nakamura
義人 中村
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.)
Toshiba Corp
Toshiba Electronic Device Solutions Corp
Original Assignee
Toshiba Corp
Toshiba Microelectronics 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 Toshiba Corp, Toshiba Microelectronics Corp filed Critical Toshiba Corp
Priority to JP4699888A priority Critical patent/JPH063697B2/en
Publication of JPH01221816A publication Critical patent/JPH01221816A/en
Publication of JPH063697B2 publication Critical patent/JPH063697B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01HELECTRIC SWITCHES; RELAYS; SELECTORS; EMERGENCY PROTECTIVE DEVICES
    • H01H9/00Details of switching devices, not covered by groups H01H1/00 - H01H7/00
    • H01H9/16Indicators for switching condition, e.g. "on" or "off"
    • H01H9/167Circuits for remote indication

Landscapes

  • Switch Cases, Indication, And Locking (AREA)

Abstract

PURPOSE:To make it possible to detect accurately on/off of a switch while reducing electric power consumption by passing a huge current either through the switch when the switch is on or through a leak resistance when the switch is off, for a given time and by detecting, with the second comparator, a change in voltage drops developed between respective two cases. CONSTITUTION:On/off change of a switch 11 is detected with the first comparator 15 to actuate a timer means 24 which turns a switching circuit on to flow current from a power supply through the second resistance 14 to a middle connecting point for a period set with the timer. Here, if the switch 11 is changed from on to off (off to on), current flows from the connecting middle point through a leak resistance 13 (switch 11) to the earth. Accordingly, the voltage at the connecting middle point rises (does not rise) over the second threshold value so that it is detected with the second comparator 16 that keeps the output in a state opposite to the previous one. With this procedure it is possible to detect accurately on/off of a car door interlock switch while reducing electric power consumption as far as possible.

Description

【発明の詳細な説明】 〔発明の目的〕 (産業上の利用分野) 本発明は、スイッチオンオフ検出装置に関し、例えば自
動車のドアの開閉に伴って作動するスイッチのオン、オ
フを検出するスイッチオンオフ検出装置に関する。
[Detailed Description of the Invention] [Object of the Invention] (Industrial Application Field) The present invention relates to a switch-on-off detection device, and the present invention relates to a switch-on-off detection device that detects whether a switch is turned on or off when a car door is opened or closed, for example. This invention relates to a detection device.

(従来の技術) 一般に、スイッチがオン、オフいずれの状態にあるかを
検出するには、第6図に示す構成が使用される。同図に
おいて、スイッチ1のオフ状態には電流が流れず、抵抗
2による電位降下はない。
(Prior Art) Generally, the configuration shown in FIG. 6 is used to detect whether a switch is in an on or off state. In the figure, when the switch 1 is in the off state, no current flows and there is no potential drop due to the resistor 2.

そのため、検出回路3にHレベル信号が加えられる。ま
た、スイッチ1のオン状態には抵抗2及びスイッチ1を
介して電流■1が流れ、抵抗2に電位降下が生じる。そ
れにより、検出回路3にはLレベル信号が入力される。
Therefore, an H level signal is applied to the detection circuit 3. Further, when the switch 1 is in the on state, a current 1 flows through the resistor 2 and the switch 1, and a potential drop occurs in the resistor 2. As a result, an L level signal is input to the detection circuit 3.

このように、スイッチ1のオンオフに伴って検出回路3
に人力される信号のレベルがH,Lと変化することから
、スイッチ1のオンオフ状態が検出される。
In this way, as the switch 1 turns on and off, the detection circuit 3
The on/off state of the switch 1 is detected because the level of the signal input manually changes from H to L.

しかして、上記スイッチ1が自動車のドアの開閉に連動
するスイッチの場合には、そのスイッチ1に並列にリー
ク抵抗4が存在することがある。
If the switch 1 is a switch that is linked to the opening and closing of an automobile door, a leak resistor 4 may exist in parallel with the switch 1.

そのため、スイッチ1のオフ状態においてもリーク電流
I2が流れる。そのリーク電流■2によるリーク抵抗4
での電位降下が生じても、スイッチ1のオフ状態をオン
状態と区別して的確に把握する必要がある。このために
は、電流■1、I2を大きな値とすればよい。しかしな
がら、そのようにすれば、消費電力が大きくなるという
問題が生じる。
Therefore, leakage current I2 flows even when switch 1 is in the off state. Leakage resistance 4 due to the leakage current ■2
Even if a potential drop occurs at the switch 1, it is necessary to accurately grasp the off state of the switch 1 by distinguishing it from the on state. For this purpose, the currents 1 and I2 may be set to large values. However, if this is done, a problem arises in that power consumption increases.

このような問題を解決するようにしたものとして、例え
ば特開昭60−102477号公報に示された装置があ
る。この装置は、発振回路を常時作動状態としてクロッ
クを発生させる。そのクロックに基づいて第7図に示す
ようなパルス列を形成する。そのパルス列を用いてその
パルス列のオン時間だけ電流I 又はI2を流しサンプ
リング■ してスイッチ1の開閉を検出する。即ち、そのパルス列
におけるパルス幅τのHレベル期間に電流■ 又はI2
を流し、サンプリングによりスイッチ1の開閉を検出し
、それ以外のLレベル期間はハイインピーダンスとして
上記電流1.1  のいずれも流さないようにしている
。このようにすれば、電流1  、I  の値を大きく
しても消費型力が大きくなるのを防ぐことができる。
An example of a device designed to solve this problem is disclosed in Japanese Patent Application Laid-open No. 102477/1983. This device generates a clock by keeping the oscillation circuit in constant operation. Based on the clock, a pulse train as shown in FIG. 7 is formed. Using the pulse train, a current I or I2 is caused to flow for the ON time of the pulse train, and sampling is performed to detect whether the switch 1 is open or closed. That is, during the H level period of the pulse width τ in the pulse train, the current ■ or I2
, and the opening and closing of switch 1 is detected by sampling, and during the other L level period, the current is set to high impedance so that none of the above current 1.1 flows. In this way, it is possible to prevent the consumed force from increasing even if the values of the currents 1 and I are increased.

(発明が解決しようとする課題) 上記従来の装置においては、電流I 1■ による消費
電力を低く抑えることはできるものの、発振回路は常時
作動させなければならない。このため、その発振回路で
の電力消費を考慮する必要がある。また、上記従来装置
では、電流11、I2による消費電力を低く抑えるため
、第7図に示すように、パルス列のデユーティ−比(τ
/T)を小さくして、周期Tを大きなものとしている。
(Problems to be Solved by the Invention) In the conventional device described above, although the power consumption due to the current I 1■ can be kept low, the oscillation circuit must be operated at all times. Therefore, it is necessary to consider the power consumption in the oscillation circuit. In addition, in the conventional device described above, in order to suppress the power consumption due to the currents 11 and I2, the pulse train duty ratio (τ
/T) is made small, and the period T is made large.

周期Tを大きくしたので、スイッチ1のオンオフ検出の
応答性が悪くなるのが避けられない。応答性を向上させ
るには周期Tを短くすればよいが、そのようにすれば電
流I  SI  による消費電力が増大してしまう。よ
って、周期Tはあまり短くすることができない。さらに
、第7図に示すパルス列にノイズが重畳されることも少
なくない。そのノイズによって誤動作し、スイッチ1の
開閉を適性に検出できないこともある。
Since the period T is increased, it is inevitable that the responsiveness of the on/off detection of the switch 1 will deteriorate. In order to improve the responsiveness, the period T may be shortened, but if this is done, the power consumption due to the current I SI increases. Therefore, the period T cannot be made very short. Furthermore, noise is often superimposed on the pulse train shown in FIG. The noise may cause a malfunction, and the opening and closing of the switch 1 may not be properly detected.

本発明は、上記に鑑みてなされたもので、その目的は、
消費電力を極力低く抑えつつも的確に自動車ドア連動ス
イッチのオンオフを検出可能な装置を提供することにあ
る。
The present invention has been made in view of the above, and its purpose is to:
To provide a device capable of accurately detecting on/off of an automobile door interlocking switch while suppressing power consumption as low as possible.

〔発明の構成〕 (課題を解決するための手段) 本発明のスイッチオンオフ検出装置は、電源とアースと
の間に、第1抵抗と、リーク抵抗と電気的に並列なスイ
ッチと、を直列に接続し、前記第1抵抗と前記スイッチ
との接続中点の電位変化から前記スイッチのオンオフ状
態を検出するスイッチオンオフ検出装置において、 電源と前記接続中点との間に直列に接続されたスイッチ
ング回路及び第2抵抗を有し、その第2抵抗は前記第1
抵抗よりも抵抗値の小さいものとして構成され、さらに
、 前記接続中点の電位を第1しきい値と比較して、その電
位と前記第1しきい値との大小関係が反転したときに出
力信号のH,Lレベルを反転させる第1コンパレータと
、 前記接続中点の電位を第1°しきい値よりも大きな第2
しきい値と比較して、その電位と前記第2しきい値との
大小関係が反転したときに出力信号のH,Lレベルを反
転させる第2コンパレータと、前記第1コンパレータの
出力信号のH,Lレベルが反転したときに作動して、予
め定めたタイマー時間だけタイマー信号を出力し、その
タイマー信号によって前記スイッチング回路をそのタイ
マー時1間だけオンさせるタイマー手段と、前記第2コ
ンパレータからの出力信号のH,Lレベルが反転したと
きに、前記タイマー信号の出力期間中において、前記ス
イッチのオンオフの変化を検出出力し、その出力状態を
前記出力期間後も維持する出力回路と、を備え、さらに
、前記第1しきい値は、前記スイッチのオフ状態におい
て電源から前記第1抵抗及び前記リーク抵抗を介してア
ースに第1電流が流れる際の前記接続中点の電位である
第1電位(V  )よりも低く設定され、 前記第2しきい値は、前記スイッチのオフ状態において
前記第1電流が流れると共に、前記スイッチング回路の
オンに伴って電源から前記第2抵抗及び前記リーク抵抗
を介してアースに第2電流が流れる際の前記接続中点の
電位である第2電位(V1)よりも低く、且つ前記第1
電位(v0)よりも高く設定されているものとして構成
される。
[Structure of the Invention] (Means for Solving the Problems) The switch on/off detection device of the present invention includes a first resistor and a switch electrically parallel to the leak resistor connected in series between a power source and a ground. a switching circuit connected in series between a power source and the connection midpoint in the switch on/off detection device that detects the on/off state of the switch from a potential change at a midpoint of the connection between the first resistor and the switch; and a second resistor, the second resistor being the first resistor.
It is configured to have a resistance value smaller than a resistor, and further compares the potential at the midpoint of the connection with a first threshold, and outputs an output when the magnitude relationship between the potential and the first threshold is reversed. a first comparator that inverts the H and L levels of the signal;
a second comparator that inverts the H and L levels of the output signal when the magnitude relationship between the potential and the second threshold is reversed compared to a threshold; and the H output signal of the first comparator. , timer means that is activated when the L level is inverted and outputs a timer signal for a predetermined timer period, and turns on the switching circuit for one timer period using the timer signal; an output circuit that detects and outputs an on/off change of the switch during the output period of the timer signal when the H and L levels of the output signal are inverted, and maintains the output state even after the output period. Further, the first threshold value is a first potential that is a potential at the midpoint of the connection when a first current flows from the power supply to the ground via the first resistor and the leakage resistor when the switch is in the off state. (V), and the second threshold is set such that the first current flows when the switch is off, and the second resistance and the leakage resistance are removed from the power supply when the switching circuit is turned on. lower than the second potential (V1) that is the potential at the middle point of the connection when the second current flows to the ground through the first
It is configured to be set higher than the potential (v0).

(作 用) スイッチング回路がオフした定常状態時において、スイ
ッチのオンオフ変化に伴って接続中点の電位が第1しき
い値を上下に変化する。そのため、その変化は、オンか
らオフへ、オフからオンへのいずれの変化であっても第
1コンパレータによって検出される。それにより、タイ
マー手段が作動してスイッチング回路をオンする。これ
により、タイマー時間だけ電源からの電流が第2抵抗か
ら接続中点に流入する。
(Function) In a steady state in which the switching circuit is off, the potential at the connection midpoint changes above and below the first threshold value as the switch changes on and off. Therefore, the first comparator detects the change whether it is from on to off or from off to on. This activates the timer means to turn on the switching circuit. As a result, current from the power source flows from the second resistor to the connection midpoint for the timer period.

上記スイッチのオンオフ変化が、オンからオフに変化し
たものである場合には、上記電流が接続中点からリーク
抵抗を介してアースに流れる。これにより、接続中点の
電位が第2しきい値よりも上昇し、第2コンパレータが
それを検出し、出力をそれまでと反転する。第2コンパ
レータの反転後の出力が、タイマー時間内において、出
力回路によってスイッチのオフを示す信号として出力さ
れる。タイマー時間経過後は、第2抵抗を通る電流は停
止し、接続中点の電位は第2しきい値よりも低ドし、第
2コンパレータの出力は再び反転する。しかしながら、
タイマー時間外であるため、出力回路からはスイッチの
オフを示す出力が維持される。
When the on/off change of the switch is from on to off, the current flows from the midpoint of the connection to the ground via the leak resistance. As a result, the potential at the midpoint of the connection rises above the second threshold, and the second comparator detects this and inverts the output. The inverted output of the second comparator is output by the output circuit as a signal indicating that the switch is off within the timer time. After the timer period has elapsed, the current passing through the second resistor stops, the potential at the midpoint of the connection becomes lower than the second threshold, and the output of the second comparator is inverted again. however,
Since the timer is out of time, the output circuit maintains an output indicating that the switch is off.

また、上記スイッチのオンオフ変化が、オフからオンに
変化したものである場合には、前と同じく電源から第2
抵抗を介して接続中点に電流が流れるが、その電流はス
イッチがオンされていることから、スイッチを介してア
ースに流れる。そのため、接続中点の電位が第2しきい
値よりも上昇することはない。よって、第2コンパレー
タは先の出力状態を維持するが、その出力状態は、先に
述べたようにタイマー時間経過後に再び反転して出力回
路から現在の出力が得られたときと出力状態の異なった
ものとなっている。よって、出力回路の出力はタイマー
時間内においてそれまでとは反転して、スイッチのオン
状態を示す信号を出力し、その出力状態を維持する。
Also, if the on/off change of the switch is from off to on, then the second switch is connected to the power source as before.
Current flows through the resistor to the midpoint of the connection, but since the switch is on, that current flows through the switch to ground. Therefore, the potential at the midpoint of the connection never rises above the second threshold. Therefore, the second comparator maintains the previous output state, but the output state is different from when it is inverted again after the timer time elapses and the current output is obtained from the output circuit as described above. It has become something like this. Therefore, the output of the output circuit is inverted within the timer period, outputs a signal indicating the on state of the switch, and maintains this output state.

このような動作は、スイッチのオンオフ切り換えによっ
て繰り返される。
Such operations are repeated by turning the switch on and off.

(実施例) 本発明は、雨ざらし等によりスイッチに並列にリーク抵
抗が生じてしまうような各種の機器に適用されるが、以
下にはその一実施例として自動車の場合について説明す
る。
(Example) The present invention is applied to various devices in which leak resistance is generated in parallel to a switch due to exposure to rain, etc., and the case of an automobile will be described below as an example.

第1図において、11は自動車のドアに連動して動作す
るスイッチであり、ドアの開、閉時にそれぞれオン、オ
フする。そのスイッチ11には直列に抵抗12が接続さ
れている。そして、自動車のバッテリーBattが抵抗
12及びスイッチ11を介して接地されている。上記ス
イッチ11には、理論的に、並列にリーク抵抗13が接
続されている。上記スイッチ11と抵抗12との接続中
点(A点)と、端子Gとの間に、抵抗14が接続されて
いる。抵抗12.14の抵抗値R1□。
In FIG. 1, 11 is a switch that operates in conjunction with the door of the automobile, and is turned on and off when the door is opened and closed, respectively. A resistor 12 is connected in series to the switch 11. The car battery Batt is grounded via a resistor 12 and a switch 11. Theoretically, a leak resistor 13 is connected to the switch 11 in parallel. A resistor 14 is connected between the connection midpoint (point A) between the switch 11 and the resistor 12 and the terminal G. Resistance value R1□ of resistor 12.14.

R14は、幅2)R14としである。R14 has a width of 2) R14.

上記A点をコンパレータ(I)15の非反転入力端子と
コンパレータ(II)16の非反転入力端子に接続して
いる。コンパレータ(1)15の反転入力端子には、バ
ッテリーBattとアースとの間に直列接続された抵抗
18.19の接続中点が接続されている。これにより、
その反転入力端子は、第1しきい値vthlに保持され
る。コンパレータ(n)16の反転入力端子は、バッテ
リーBattとアースとの間に直列接続された抵抗20
.21の接続中点が接続されている。これにより、その
反転入力端子は、第2しきい値vth2に保持される。
The above point A is connected to a non-inverting input terminal of a comparator (I) 15 and a non-inverting input terminal of a comparator (II) 16. The inverting input terminal of the comparator (1) 15 is connected to the connection midpoint of resistors 18 and 19 connected in series between the battery Batt and the ground. This results in
Its inverting input terminal is held at a first threshold value vthl. The inverting input terminal of the comparator (n) 16 is connected to a resistor 20 connected in series between the battery Batt and ground.
.. 21 connection midpoints are connected. Thereby, the inverting input terminal is held at the second threshold value vth2.

第1及び第2しきい値vtht’■  の大小関係は”
 thl <vth2としである。
The magnitude relationship between the first and second threshold values vtht'■ is "
thl <vth2.

h2 コンパレータ(1)15の出力端子は、サンプリング回
路23、タイマー24及びスイッチング回路25を介し
て前記端子Gに接続されている。
The output terminal of the h2 comparator (1) 15 is connected to the terminal G via a sampling circuit 23, a timer 24, and a switching circuit 25.

そのスイッチング回路25は、バッテリーBattを端
子Gに対してオン、オフ制御するためのものである。ま
た、前記コンパレータ(II)の出力端子はチャタリン
グ防止回路(出力回路)27に接続され、そのチャタリ
ング防止回路27の出力端子を第1図に示した装置全体
の出力端子29としている。そのチャタリング防止回路
27には上記タイマー24の出力端子が接続されている
。そのチャタリング防止回路27は、スイッチ11のチ
ャタリングをフィルタリングする回路である。この回路
27の出力が各種の仕事に使用される。
The switching circuit 25 is for controlling the battery Batt to be turned on and off with respect to the terminal G. The output terminal of the comparator (II) is connected to a chattering prevention circuit (output circuit) 27, and the output terminal of the chattering prevention circuit 27 is used as the output terminal 29 of the entire apparatus shown in FIG. The output terminal of the timer 24 is connected to the chattering prevention circuit 27. The chattering prevention circuit 27 is a circuit that filters chattering of the switch 11. The output of this circuit 27 is used for various tasks.

上記構成の装置の動作を第2図のタイムチャートを参照
して説明する。
The operation of the apparatus having the above configuration will be explained with reference to the time chart shown in FIG.

時刻10においてはスイッチ11はオフしている。それ
により、抵抗12.13に電流■2が流れ、A点の電位
がVoとなっている。この電位voは、第2図のA点電
位のチャートから明らかなように、第1しきい値vth
1より大きく、第2しきい値V  より小さい値である
(v、hl〈vh2 oくvth2)。よって、コンパレータ(1,II)1
5.16からはそれぞれHレベル信号15及びLレベル
信号16aが出力されている。そして、チャタリング防
止回路27からは、スイッチ11が時刻10以前にオン
からオフに変った。(図示せず)ことに起因して、Hレ
ベル信号27aが出力されている。
At time 10, switch 11 is off. As a result, current 2 flows through the resistors 12 and 13, and the potential at point A becomes Vo. This potential vo is equal to the first threshold value vth, as is clear from the chart of the potential at point A in FIG.
It is a value larger than 1 and smaller than the second threshold value V 2 (v, hl<vh2 o × vth2). Therefore, comparator (1, II) 1
5.16 outputs an H level signal 15 and an L level signal 16a, respectively. Then, from the chattering prevention circuit 27, the switch 11 was changed from on to off before time 10. (not shown), the H level signal 27a is output.

この状態において、時刻11にスイッチ11がオフから
オンに変化すると、第1図において、電流!・に代わっ
て電流1.が流れる。そして、スイッチ11によるA点
の接地により、A点電位は降下し始める。A点電位が時
刻t2において第1しきい値vLhlを下まわりやがて
零となる。それによりコンパレータ(I)15はそれま
でのHレベル信号15aに代えてLレベル信号15bを
出力する。そのレベル変化は発振回路(図示せず)とサ
ンプリング回路23に伝えられる。発振回路はその変化
を受けて一定時間だけ動作する。また、上記サンプリン
グ回路23はデジタル微分回路として構成されたもので
、コンパレータ(1)15の出力のレベル変化によって
パルス23aを発生し、タイマー24に送出する。タイ
マー24はそのパルス23aを受け、Lレベル信号24
aに代えてHレベル信号(タイマー信号)24bを出力
する。そのHレベル信号24bはチャタリング防止回路
27とスイッチング回路2°5に伝えられる。
In this state, when the switch 11 changes from off to on at time 11, the current!・Instead of current 1. flows. Then, as the point A is grounded by the switch 11, the potential at the point A begins to drop. The potential at point A falls below the first threshold value vLhl at time t2 and eventually becomes zero. As a result, the comparator (I) 15 outputs an L level signal 15b instead of the previous H level signal 15a. The level change is transmitted to an oscillation circuit (not shown) and a sampling circuit 23. The oscillation circuit operates for a certain period of time in response to this change. Further, the sampling circuit 23 is configured as a digital differentiating circuit, and generates a pulse 23a according to a change in the level of the output of the comparator (1) 15, and sends it to the timer 24. The timer 24 receives the pulse 23a and outputs the L level signal 24.
An H level signal (timer signal) 24b is output instead of signal a. The H level signal 24b is transmitted to the chattering prevention circuit 27 and the switching circuit 2°5.

スイッチング回路25は、そのHレベル信号24bによ
りオンとなり、バッテリーBattを端子Gに接続する
。これにより、バッテリーBattからスイッチング回
路25、端子G、低抵抗4及びスイッチ11を介してア
ースに電流I3が流れる。しかしながら、スイッチ11
がオン状態にあることから、A点電位は零を維持する。
The switching circuit 25 is turned on by the H level signal 24b, and connects the battery Batt to the terminal G. As a result, a current I3 flows from the battery Batt to the ground via the switching circuit 25, the terminal G, the low resistance 4, and the switch 11. However, switch 11
Since is in the on state, the potential at point A maintains zero.

このため、当然、コンパレータ(n)16もLレベル信
8号16aの出力状態を維持する。コンパレータ(II
)16のLレベル信号16aはチャタリング防止回路2
7に伝えられる。チャタリング防止回路27には、先に
も述べたように、タイ七−24からのnレベル信号24
bが加えられている。
Therefore, naturally, the comparator (n) 16 also maintains the output state of the L level signal 8 signal 16a. Comparator (II
) 16 L level signal 16a is the chattering prevention circuit 2
7 can be conveyed. As mentioned earlier, the chattering prevention circuit 27 receives the n level signal 24 from the tie 7-24.
b has been added.

よって、チャタリング防止回路27の出力は、タイマー
24からのnレベル信号24bとコンパレータ(II)
16からのLレベル信号16aとに基づき、発振回路か
らのクロックCLoの例えば立ち上りに周期して、時刻
t3においてHレベル信号27aからnレベル信号27
bに変化する。チャタリング防止回路27からのnレベ
ル信号27bは出力端子29から外部に出力され、ある
決められた仕事が行われる。
Therefore, the output of the chattering prevention circuit 27 is the n-level signal 24b from the timer 24 and the comparator (II).
Based on the L level signal 16a from the oscillation circuit 16, the H level signal 27a to the n level signal 27 are generated at time t3, for example, at the rising edge of the clock CLo from the oscillation circuit.
Changes to b. The n-level signal 27b from the chattering prevention circuit 27 is outputted to the outside from the output terminal 29, and a certain predetermined work is performed.

タイマー24からのnレベル信号24bは予め定めた時
間の後に時刻t4でnレベル信号24bからLレベル信
号24cに変化する。それに同期して、スイッチング回
路25もオンからオフに変化する。それにより、バッテ
リーBattからスイッチング回路25、端子G、低抵
抗4及びスイッチ11を介してアースに流れる電流I3
は停止し、電流!1のみが流れる。
The n level signal 24b from the timer 24 changes from the n level signal 24b to the L level signal 24c at time t4 after a predetermined time. In synchronization with this, the switching circuit 25 also changes from on to off. As a result, a current I3 flows from the battery Batt to the ground via the switching circuit 25, the terminal G, the low resistance 4, and the switch 11.
Stop the current! Only 1 flows.

次に、時刻t5にスイッチ11がオンからオフに変化す
る。これにより、第1図において、電流11に代わって
電流12が流れる。それにより、A点の電位が第2図に
示すように上昇し始める。
Next, at time t5, the switch 11 changes from on to off. As a result, in FIG. 1, current 12 flows instead of current 11. As a result, the potential at point A begins to rise as shown in FIG.

時刻t6においてA点電位が第1しきい値vthtを上
まわる。よって、時刻t6においてコンパレータ(I)
15からの出力がnレベル信号15bからHレベル信号
15cに変化する。そのレベル変化によって、先に時刻
t2においてレベル変化したときと同様に、サンプリン
グ回路23はパルス23bを出力し、そのパルス23b
によってタイマー24がHレベル信号(タイマー信号)
24dを出力し、そのHレベル信号24dによってスイ
ッチング回路25が時刻t6において゛オンする。その
スイッチング回路25のオンにより、先と同様に、バッ
テリーBattが端子Gと連結する。しかして、時刻t
8においてはスイッチ11がオフしていることから、バ
ッテリーから電流I4がスイッチング回路25、端子0
1抵抗14及びリーク抵抗13を介してアースに流れる
At time t6, the potential at point A exceeds the first threshold value vtht. Therefore, at time t6, comparator (I)
15 changes from an N level signal 15b to an H level signal 15c. Due to the level change, the sampling circuit 23 outputs the pulse 23b, similar to when the level changed at time t2, and the pulse 23b
The timer 24 outputs an H level signal (timer signal).
24d, and the switching circuit 25 is turned on at time t6 by the H level signal 24d. By turning on the switching circuit 25, the battery Batt is connected to the terminal G as before. However, time t
At 8, since the switch 11 is off, the current I4 from the battery flows to the switching circuit 25 and the terminal 0.
1 resistor 14 and leakage resistor 13 to ground.

そして、抵抗14の抵抗値R14を抵抗12の抵抗値R
12よりも著しく小さく設定しているので、A点の電位
はさらに上昇する。そして、時刻t7においてA点電位
は第2しきい値vLh2を上まわる。
Then, the resistance value R14 of the resistor 14 is changed to the resistance value R14 of the resistor 12.
Since it is set significantly smaller than 12, the potential at point A further increases. Then, at time t7, the potential at point A exceeds the second threshold value vLh2.

これにより、コンパレータ(II)16の出力はLレベ
ル信号16aからnレベル信号16bに変化する。そし
て、時刻t8において、タイマー24の出力がHレベル
信号24dであり且つコンパレータ(II)16の出力
がnレベル信号16bであることから、発振回路からの
クロックCL2の例えば立ち上りに同期して、チャタリ
ング防止回路27からの出力がnレベル信号27bから
HレベルGK ’+ 27 cに変化する。そのHレベ
ル信号27cが出力端子29から外部に送出され、ある
決められた仕事を行う。
As a result, the output of the comparator (II) 16 changes from the L level signal 16a to the N level signal 16b. Then, at time t8, since the output of the timer 24 is the H level signal 24d and the output of the comparator (II) 16 is the N level signal 16b, chattering occurs in synchronization with, for example, the rising edge of the clock CL2 from the oscillation circuit. The output from the prevention circuit 27 changes from the n level signal 27b to the H level GK'+27c. The H level signal 27c is sent out from the output terminal 29 and performs a certain task.

次に、一定時間が経過した時刻t9においてタイマー2
4からの出力がHレベル信号24dからLレベル信号2
4eに変化する。それに伴って、スイッチング回路25
もオンからオフに変化する。
Next, at time t9 after a certain period of time has elapsed, the timer 2
The output from 4 is the H level signal 24d to the L level signal 2.
Changes to 4e. Along with this, the switching circuit 25
also changes from on to off.

これにより、第1図に示す電流I4は流れなくなり、電
流I2のみが流れる。しかして、抵抗12゜14の抵抗
値R1□、R14の大小関係がR12)R14であるこ
とから、A点の電位が電位v1から降下し始める。時刻
t1oにおいてA点電位が第2しきい値vth2を下ま
わる。それにより、コンパレータ(IF)16からの出
力はnレベル信号16bからLレベル信号16cに変化
する。そして、時刻t10−2において、A点電位は、
電流■2による電位V。に落ちつく。
As a result, the current I4 shown in FIG. 1 no longer flows, and only the current I2 flows. Since the magnitude relationship between the resistance values R1□ and R14 of the resistor 12°14 is R12)R14, the potential at point A begins to drop from the potential v1. At time t1o, the potential at point A falls below the second threshold value vth2. Thereby, the output from the comparator (IF) 16 changes from the N level signal 16b to the L level signal 16c. Then, at time t10-2, the potential at point A is
Potential V due to current ■2. calm down.

以後は、スイッチ11のオン、オフに伴って上記動作を
繰り返す。即ち、時刻t1□は時刻t1に、時刻t12
は時刻t2に、時刻t13は時刻t3に、及び時刻t 
は時刻t4にそれぞれ対応する。
Thereafter, the above operation is repeated as the switch 11 is turned on and off. That is, time t1□ becomes time t1, time t12
is at time t2, time t13 is at time t3, and time t
correspond to time t4, respectively.

第3図は、上述の第1図及び第2図で説明した装置の動
作を簡単に示すものである。即ち、先ずスイッチ11が
オンからオフへあるいはオフからオンへ変化したか否か
が判断される(ステップ1)。変化がない場合にはその
判断を繰り返す(ステップトN)。変化した場合には(
ステップトY)発振回路の動作が開始しくステップ2)
、タイマー24を動作させ(ステップ3)、第1図の抵
抗14に電流IBを流しくステップ4)、スイッチ11
のオン、オフ変化のチャタリングを防止しくステップ5
)た状態で出力を得る。
FIG. 3 briefly shows the operation of the apparatus described in FIGS. 1 and 2 above. That is, first, it is determined whether the switch 11 has changed from on to off or from off to on (step 1). If there is no change, the judgment is repeated (step N). If it changes (
Step Y) The oscillation circuit starts operating. Step 2)
, the timer 24 is operated (step 3), the current IB is passed through the resistor 14 in FIG. 1 (step 4), and the switch 11 is activated.
Step 5 to prevent chattering when changing on and off.
) to get the output.

その出力がHSLのいずれであるかを判断する(ステッ
プ6)。Hである場合にはそれに対応する仕事をしくス
テップ7)、してある場合にはそれに対応する仕事をし
くステップ8)、ステップ1に戻る。
It is determined whether the output is HSL (step 6). If the result is H, perform the corresponding work (step 7); if yes, perform the corresponding work (step 8), and return to step 1.

第4図は、第1図のより具体的な回路を示すものである
。その第4図かられかるように、コンパレーク(I)1
5で(7)第1しきい値vth1ハ0.7Vに設定して
いる。コンパレータ(II)16での第2しきい値vt
h2は3vに設定している。
FIG. 4 shows a more specific circuit of FIG. 1. As can be seen from Figure 4, Compare Lake (I) 1
5, (7) the first threshold value vth1 is set to 0.7V. Second threshold value vt at comparator (II) 16
h2 is set to 3v.

サンプリング回路(デジタル微分回路)23はD−FF
231,232とEx−OR233とにより構成され、
D−FF231,232のcp端子には40Hzの信号
を加えるようにしている。
The sampling circuit (digital differentiation circuit) 23 is a D-FF
231, 232 and Ex-OR233,
A 40 Hz signal is applied to the cp terminals of the D-FFs 231 and 232.

このデジタル微分回路23は、以前のデータを保持して
おき、コンパレータ(I)15からの出力と比較して、
不一致の場合に出力を次段のタイマー24に送出する。
This digital differentiation circuit 23 holds the previous data and compares it with the output from the comparator (I) 15.
If there is a mismatch, the output is sent to the timer 24 at the next stage.

タイマー24は、分周器241〜243、インバータ2
45,246及びFF247を備えるものとして構成さ
れ、分周器241のCP端子に20Hzの信号を加え、
その信号を分周器241〜243で順次分周し、分周器
243から0.2Secだけのタイマー信号を得るよう
にしている。
The timer 24 includes frequency dividers 241 to 243 and an inverter 2.
45, 246 and FF247, a 20Hz signal is applied to the CP terminal of the frequency divider 241,
The frequency of this signal is sequentially divided by frequency dividers 241 to 243, and a timer signal of only 0.2 Sec is obtained from the frequency divider 243.

即ち、タイマー24は、デジタル微分回路23からの出
力によりタイマースタートし、Q、  2sec後にタ
イマーオフする。
That is, the timer 24 is started by the output from the digital differentiation circuit 23, and is turned off after Q, 2 seconds.

スイッチング回路25はスイッチング素子251を備え
、その制御端子にタイマー24からの信号をインバータ
252を介して加えて、所定時間だけスイッチング素子
251をオンするようにしている。
The switching circuit 25 includes a switching element 251, and applies a signal from the timer 24 to its control terminal via an inverter 252 to turn on the switching element 251 for a predetermined period of time.

チャタリング防止回路27は、D−FF272゜273
、N0R274,AND275,2.71によって構成
され、タイマー24からの出力と40Hzの信号をAN
D271を介してD−FF272.273のCP端子に
加えるようにしている。
The chattering prevention circuit 27 is a D-FF272°273
, N0R274, AND275, 2.71, and the output from the timer 24 and the 40Hz signal are AN
It is applied to the CP terminals of D-FF272 and 273 via D271.

第4図におけるA−F点における電位は第2図に示すも
のと同一である。第4図のその他の点における電位の詳
細は第5図に示される。この第5図は、第2図の時刻t
4−2〜t14−2の期間を示すものである。
The potential at point A-F in FIG. 4 is the same as that shown in FIG. Details of the potentials at other points in FIG. 4 are shown in FIG. This figure 5 shows the time t in figure 2.
4-2 to t14-2.

第2図のD点電位チャートに重ねて示したクロックCL
、CL4は、第5図の340チャートに同じ符号CL2
 、CL4で示される。即ち、コンパレータ(II) 
16の出力(E点電位)を反転したI (E)がHレベ
ルにあり、且つタイマー24の出力0. 28 (D点
電位)がHレベルにあると、S40のクロックCLlの
立ち上がりに同期してI′がHレベルとなる。そして、
次のクロックCL2の立ち上がりに同期して、0.28
(D点電位)がHレベルにあり且つ■′がHレベルにあ
ることから、I’  (F点電位)はHレベルに変化す
る。また、I (E)がLレベルにあり且つ0. 2S
 (D点電位)がHレベルにあることから、クロックC
L3の立ち上がりに同期してI′はLレベルに変わる。
Clock CL shown superimposed on the D point potential chart in Figure 2
, CL4 is the same code CL2 in the 340 chart in FIG.
, CL4. That is, comparator (II)
16 (point E potential) is at H level, and the output of timer 24 is 0. When 28 (potential at point D) is at H level, I' becomes H level in synchronization with the rise of clock CLl in S40. and,
0.28 in synchronization with the rise of the next clock CL2.
Since (potential at point D) is at H level and 2' is at H level, I' (potential at point F) changes to H level. Also, I (E) is at L level and 0. 2S
(potential at point D) is at H level, so clock C
I' changes to L level in synchronization with the rise of L3.

そして、次のクロックCL4の立ち上がり時にはI′が
Lレベルにあり且つS40がHレベルにあることからI
’  CFE点電位はLレベルに変化する。
When the next clock CL4 rises, I' is at the L level and S40 is at the H level.
'The CFE point potential changes to L level.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、スイッチのオンオフを検出するために
しきい値の異なる第1及び第2の2つのコンパレータを
設け、スイッチのオンオフの変化を先ず第1コンパレー
タで検出し、スイッチのオン時にはスイッチに、スイッ
チのオフ時にはリーク抵抗にそれぞれ一定時間だけ大き
な電流を流し、その大きな電流がリーク抵抗に流れる場
合と停止する場合とによる電位降下の大きな変化を第2
コンパレータで検出して、スイッチのオンオフを検出す
るようにしたので、電力消費を小さなものに抑えつつス
イッチのオンオフを的確に検出することができる。
According to the present invention, two comparators, the first and second comparators having different threshold values, are provided in order to detect whether the switch is on or off, and the first comparator first detects the change in the on or off state of the switch, and when the switch is on, the first and second comparators have different threshold values. , when the switch is off, a large current is passed through each leak resistor for a certain period of time, and the large change in potential drop due to when the large current flows to the leak resistor and when it stops is calculated as a second
Since the comparator is used to detect whether the switch is on or off, it is possible to accurately detect whether the switch is on or off while minimizing power consumption.

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

第1図は本発明の一実施例の全体構成図、第2図及び第
3図はその動作を示すタイミングチャート及びフローチ
ャート、第4図は第1図の一興体例を示す回路図、第5
図はその動作の詳細を示すタイミングチャート、第6図
は従来例の回路図、第7図はそれに大きな電流を流すの
に使用されるパルスの波形図である。 11・・・スイッチ、12・・・抵抗(第1抵抗)、1
3・・・リーク抵抗、14・・・抵抗(第2抵抗)、1
5・・・コンパレータ(I)(第1コンパレータ)″、
16・・・コンパレータ(n)(i2コンパレータ)、
23.24・・・タイマー手段(サンプリング回路、タ
イマー)、25・・・スイッチング回路、27・・・チ
ャタリング防止囲路(出力回路)、I2・・・第1電流
、14・・・第2電流、A・・・接続中点、vthl・
・・第1しきい値、vLh2・・・第2しきい値、vo
・・・第1電位、vl・・・第2電位。 出願人代理人  佐  藤  −雄 第7図
FIG. 1 is an overall configuration diagram of an embodiment of the present invention, FIGS. 2 and 3 are timing charts and flowcharts showing its operation, FIG. 4 is a circuit diagram showing an example of the integrated circuit shown in FIG.
The figure is a timing chart showing the details of its operation, FIG. 6 is a circuit diagram of a conventional example, and FIG. 7 is a pulse waveform diagram used to cause a large current to flow therein. 11... Switch, 12... Resistor (first resistor), 1
3... Leak resistance, 14... Resistance (second resistance), 1
5... Comparator (I) (first comparator)'',
16... Comparator (n) (i2 comparator),
23.24... Timer means (sampling circuit, timer), 25... Switching circuit, 27... Chattering prevention circuit (output circuit), I2... First current, 14... Second current , A... Connection midpoint, vthl.
...First threshold, vLh2...Second threshold, vo
...first potential, vl...second potential. Applicant's agent Mr. Sato Figure 7

Claims (1)

【特許請求の範囲】 電源とアースとの間に、第1抵抗と、リーク抵抗と電気
的に並列なスイッチと、を直列に接続し、前記第1抵抗
と前記スイッチとの接続中点の電位変化から前記スイッ
チのオンオフ状態を検出するスイッチオンオフ検出装置
において、 電源と前記接続中点との間に直列に接続されたスイッチ
ング回路及び第2抵抗を有し、その第2抵抗は前記第1
抵抗よりも抵抗値の小さいものとして構成され、さらに
、 前記接続中点の電位を第1しきい値と比較して、その電
位と前記第1しきい値との大小関係が反転したときに出
力信号のH、Lレベルを反転させる第1コンパレータと
、 前記接続中点の電位を第1しきい値よりも大きな第2し
きい値と比較して、その電位と前記第2しきい値との大
小関係が反転したときに出力信号のH、Lレベルを反転
させる第2コンパレータと、前記第1コンパレータの出
力信号のH、Lレベルが反転したときに作動して、予め
定めたタイマー時間だけタイマー信号を出力し、そのタ
イマー信号によって前記スイッチング回路をそのタイマ
ー時間だけオンさせるタイマー手段と、 前記第2コンパレータからの出力信号のH、Lレベルが
反転したときに、前記タイマー信号の出力期間中におい
て、前記スイッチのオンオフの変化を検出、出力し、そ
の出力状態を前記出力期間後も維持する出力回路と、を
備え、さらに、前記第1しきい値は、前記スイッチのオ
フ状態において電源から前記第1抵抗及び前記リーク抵
抗を介してアースに第1電流が流れる際の前記接続中点
の電位である第1電位(V_0)よりも低く設定され、
前記第2しきい値は、前記スイッチのオフ状態において
前記第1電流が流れると共に、前記スイッチング回路の
オンに伴って電源から前記第2抵抗及び前記リーク抵抗
を介してアースに第2電流が流れる際の前記接続中点の
電位である第2電位(V_1)よりも低く、且つ前記第
1電位(V_0)よりも高く設定されている ことを特徴とするスイッチオンオフ検出装置。
[Claims] A first resistor and a switch electrically parallel to the leakage resistor are connected in series between a power supply and the ground, and a potential at a midpoint between the first resistor and the switch is connected in series. A switch on/off detection device that detects the on/off state of the switch from a change, comprising a switching circuit and a second resistor connected in series between a power source and the connection midpoint, the second resistor being connected to the first
It is configured to have a resistance value smaller than a resistor, and further compares the potential at the midpoint of the connection with a first threshold, and outputs an output when the magnitude relationship between the potential and the first threshold is reversed. a first comparator that inverts the H and L levels of the signal; and a first comparator that compares the potential at the midpoint of the connection with a second threshold that is larger than the first threshold, and determines the difference between the potential and the second threshold. a second comparator that inverts the H and L levels of the output signal when the magnitude relationship is reversed; and a timer that operates when the H and L levels of the output signal of the first comparator are reversed for a predetermined timer period. a timer means that outputs a signal and turns on the switching circuit for the timer period according to the timer signal; and when the H and L levels of the output signal from the second comparator are inverted, during the output period of the timer signal , an output circuit that detects and outputs an on/off change of the switch and maintains the output state even after the output period; is set lower than a first potential (V_0) that is the potential of the connection midpoint when a first current flows to the ground via the first resistor and the leakage resistor,
The second threshold is such that the first current flows when the switch is off, and a second current flows from the power supply to the ground via the second resistor and the leakage resistor when the switching circuit is turned on. A switch on/off detection device characterized in that the switch is set lower than a second potential (V_1) which is the potential of the connection midpoint at the time of the switch, and higher than the first potential (V_0).
JP4699888A 1988-02-29 1988-02-29 Switch on / off detector Expired - Lifetime JPH063697B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4699888A JPH063697B2 (en) 1988-02-29 1988-02-29 Switch on / off detector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4699888A JPH063697B2 (en) 1988-02-29 1988-02-29 Switch on / off detector

Publications (2)

Publication Number Publication Date
JPH01221816A true JPH01221816A (en) 1989-09-05
JPH063697B2 JPH063697B2 (en) 1994-01-12

Family

ID=12762860

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4699888A Expired - Lifetime JPH063697B2 (en) 1988-02-29 1988-02-29 Switch on / off detector

Country Status (1)

Country Link
JP (1) JPH063697B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1997025729A1 (en) * 1996-01-11 1997-07-17 Fusion Meters Limited Switch status sensor
FR2841375A1 (en) * 2002-06-05 2003-12-26 Denso Corp SWITCHING STATE DETERMINATION DEVICE AND METHOD FOR DETERMINING A SWITCHING STATE
WO2015015862A1 (en) 2013-07-29 2015-02-05 本田技研工業株式会社 Switch-operation-determining device
JP2019185873A (en) * 2018-04-03 2019-10-24 三菱電機株式会社 Electronic control device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110726931A (en) 2019-11-01 2020-01-24 北京小米移动软件有限公司 On-off detection circuit of flash switch and electronic equipment

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1997025729A1 (en) * 1996-01-11 1997-07-17 Fusion Meters Limited Switch status sensor
FR2841375A1 (en) * 2002-06-05 2003-12-26 Denso Corp SWITCHING STATE DETERMINATION DEVICE AND METHOD FOR DETERMINING A SWITCHING STATE
US7123018B2 (en) 2002-06-05 2006-10-17 Denso Corporation Switching status determination device and method for determining switching status
WO2015015862A1 (en) 2013-07-29 2015-02-05 本田技研工業株式会社 Switch-operation-determining device
JP5968546B2 (en) * 2013-07-29 2016-08-10 本田技研工業株式会社 Switch operation judgment device
US9818554B2 (en) 2013-07-29 2017-11-14 Honda Motor Co., Ltd. Switch-operation-determining device
JP2019185873A (en) * 2018-04-03 2019-10-24 三菱電機株式会社 Electronic control device
US11018665B2 (en) 2018-04-03 2021-05-25 Mitsubishi Electric Corporation Electronic control device

Also Published As

Publication number Publication date
JPH063697B2 (en) 1994-01-12

Similar Documents

Publication Publication Date Title
KR970031387A (en) METHOD AND APPARATUS FOR DECODING NOISY, INTERMITTENT DATA, SUCH AS MANCHESTER ENCODED DATA OR THE LIKE
JPH11122954A (en) Method and system of monitoring current in pwm-driven inductive load through bridge stage
EP0863611B1 (en) A short-circuit detecting device
JPH01221816A (en) Switch on/off detector
GB1528334A (en) Inverter control circuit
WO2001025803A1 (en) Magnetic digital signal coupler monitor
KR950027412A (en) Voltage-frequency converter
CN113866668A (en) High-voltage interlocking circuit and detection method thereof
US20050057287A1 (en) Reset generator circuit for generating a reset signal
KR910005731A (en) Circuit device for load supply
JPH057582Y2 (en)
US5923201A (en) Clock signal generating circuit
JPH09325058A (en) Electromagnetic flowmeter
JPH0514581Y2 (en)
US6232809B1 (en) Differential input comparator with double sided hysteresis
KR100287660B1 (en) Signal input circuit
CN118191552A (en) Chip pin suspension detection circuit and detection method based on variable current
KR970002515B1 (en) Driving apparatus for window motor
US4430618A (en) Input buffer circuit
CN117949809A (en) Chip pin suspension detection circuit based on load potential and detection method thereof
JPH0470675B2 (en)
SU1238238A1 (en) Voltage=to-frequency converter
KR0128225Y1 (en) Pulse output error detecting circuit
SU1705778A1 (en) Probe to check logic device circuits
JPH0550366U (en) Voltage comparison circuit

Legal Events

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

Free format text: PAYMENT UNTIL: 20080112

Year of fee payment: 14

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

Free format text: PAYMENT UNTIL: 20090112

Year of fee payment: 15

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090112

Year of fee payment: 15