JPH04113367A - Switch input detection device - Google Patents

Switch input detection device

Info

Publication number
JPH04113367A
JPH04113367A JP2232177A JP23217790A JPH04113367A JP H04113367 A JPH04113367 A JP H04113367A JP 2232177 A JP2232177 A JP 2232177A JP 23217790 A JP23217790 A JP 23217790A JP H04113367 A JPH04113367 A JP H04113367A
Authority
JP
Japan
Prior art keywords
voltage
switch
output terminal
detection device
terminal
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
JP2232177A
Other languages
Japanese (ja)
Inventor
Haruo Nishiyama
晴雄 西山
Koichi Yamada
幸一 山田
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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP2232177A priority Critical patent/JPH04113367A/en
Publication of JPH04113367A publication Critical patent/JPH04113367A/en
Pending legal-status Critical Current

Links

Landscapes

  • Control Or Security For Electrophotography (AREA)
  • Keying Circuit Devices (AREA)

Abstract

PURPOSE:To surely detect the ON/OFF states of respective operation switches by making a constant current flow to the resistances of a switch input circuit and the operation switches through a constant current circuit. CONSTITUTION:When one operation switch SWi is turned ON, the current from a power terminal Vref flows through the resistances R1-Ri and operation switch SWi and then flows to a ground power source through the constant current circuit 2. Therefore, the voltage Vout at an output terminal connected to a common line 1 is represented as Vout=Vref-SIGMARXI0, where Vref is a source voltage, I0 is the constant current of the constant current circuit 2, and SIGMARi is the sum of the resistance values of the resistances R1-Ri. Consequently. the voltage developed at the terminal Vout is higher and higher as the switch SW which is turned ON is closer and closer to the terminal Vref. Then a microcomputer the voltage at the terminal Vout with a decision levels set corresponding to respective switches SW to decide which switch SW is turned on. Therefore, a current flowing to a constant is invariably constant without reference whether an operated switch is close to or remote from the power source.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、複写機、ファクシミリ装置等のように複数の
操作スイッチを有する電子機器等におけるスイッチ入力
検出装置に関する。
DETAILED DESCRIPTION OF THE INVENTION (Industrial Application Field) The present invention relates to a switch input detection device for electronic equipment such as a copying machine, a facsimile machine, etc., which has a plurality of operation switches.

(従来の技術) 複写機等のように多数の操作スイッチを有する電子機器
では、各操作スイッチごとにスイッチの0N10FFを
検出するための検出線を設けるとハーネスの本数が多く
なりすぎ、装置のコストアップを避けることができなく
なる。
(Prior art) In electronic devices such as copying machines that have a large number of operation switches, if a detection line is provided for each operation switch to detect 0N10FF of the switch, the number of harnesses will be too large, which will increase the cost of the device. It becomes impossible to avoid close-ups.

そこで、従来は、第5図に示すようなスイッチ入力回路
を有するスイッチ入力検出装置を設けていた。このスイ
ッチ入力回路は、多数の抵抗R+〜R0が電源端子■、
。ずに直列に接続されている。また、同数の操作スイッ
チS W +〜SWnの一端がそれぞれこれら抵抗R1
−Rn聞及び抵抗Rrlの他端に接続されている。そし
て、これら操作スイッチSW1〜SWoの他端側は、共
通線1によって互いに接続され、さらに抵抗R181を
介して接地されている。
Therefore, conventionally, a switch input detection device having a switch input circuit as shown in FIG. 5 has been provided. In this switch input circuit, a large number of resistors R+ to R0 are power terminals ■,
. connected in series without Further, one end of the same number of operation switches SW + to SWn is connected to each of these resistors R1.
-Rn and the other end of the resistor Rrl. The other ends of these operation switches SW1 to SWo are connected to each other by a common line 1 and further grounded via a resistor R181.

上記のような従来のスイッチ入力回路は、いずれかの操
作スイッチsw1が操作されてONになると、電源端子
Vl@(からの電流が抵抗R1〜R1と操作スイッチS
W1と抵抗R1111を通って接地電源に流れ込むこと
になる。従って、このときに共通線1に接続された出力
端子■。、tの電圧(Vout)は、抵抗R1〜R1の
抵抗値の総和をΣR1とすると、次式で表すことができ
る。
In the conventional switch input circuit as described above, when one of the operation switches sw1 is operated and turned ON, the current from the power supply terminal Vl@( is connected to the resistors R1 to R1 and the operation switch S
It flows into the ground power supply through W1 and resistor R1111. Therefore, at this time, the output terminal ■ is connected to the common line 1. , t can be expressed by the following equation, assuming that the sum of the resistance values of the resistors R1 to R1 is ΣR1.

V out= (R121/ (ΣR++R+in) 
) X Vrerそして、この出力端子■。、tの電圧
は、第6図に示すように、電源端子v r6.により近
い操作スイッチSWをONにしたときほど電圧が高くな
る。このため、出力端子■。utの電圧を図示しない電
圧判定回路で判定することにより、いずれの操作スイッ
チSWが操作されたかを検出することができる。
V out= (R121/ (ΣR++R+in)
) X Vrer and this output terminal■. , t, as shown in FIG. The closer the operating switch SW is turned on, the higher the voltage becomes. For this reason, the output terminal ■. By determining the voltage of ut with a voltage determination circuit (not shown), it is possible to detect which operation switch SW has been operated.

なお、前記第5図に示したスイッチ入力回路を複数設け
、各電源端子Vrejに走査によって電源を順に印加す
ることにより、さらに多数の操作スイッチSWの入力検
出を行うようにしている場合もある。
In some cases, a plurality of switch input circuits shown in FIG. 5 are provided, and the inputs of even more operation switches SW are detected by sequentially applying power to each power supply terminal Vrej by scanning.

(発明か解決しようとする課題) 上記従来のスイッチ入力検出装置は、前記第5図に示す
ように、電源端子■、。fに近い操作スイッチSWI等
を操作した場合には、隣接する操作スイッチSWに対し
て出力端子■。utの電圧変化△■も大きくなり、容易
に操作スイッチSWの判定を行うことができる。しかし
ながら、電源端子■1゜tから遠い操作スイッチSWo
等を操作したときは、出力端子■。utの電圧変化△V
が小さ(なり、しかも、出力端子■。utの電圧を決定
するΣR1が多数の抵抗R1〜R1の抵抗値を合計した
ものとなるために、各抵抗R1〜R,の抵抗値の誤差が
累積されて電圧のバラツキも大きくなる。このため、従
来のスイッチ入力検出装置は、各抵抗R1〜R1、RI
il+や電圧判定回路におけるA/D変換器に精度の高
いものを使用したり、さもなければ、電源端子v r、
、と接地電源間に接続する操作スイッチSWの数を制限
する必要があるという問題点があった。
(Problems to be Solved by the Invention) The conventional switch input detection device described above, as shown in FIG. When operating the operation switch SWI etc. close to f, the output terminal ■ is sent to the adjacent operation switch SW. The voltage change Δ■ of ut also becomes large, and the operation switch SW can be easily determined. However, the operation switch SWo that is far from the power supply terminal
etc., when operating the output terminal ■. ut voltage change △V
is small (and, moreover, since ΣR1, which determines the voltage at the output terminal Therefore, in the conventional switch input detection device, each resistor R1 to R1, RI
Use a highly accurate A/D converter in the il+ or voltage determination circuit, or use the power supply terminal v r,
There was a problem in that it was necessary to limit the number of operation switches SW connected between the power source and the ground power source.

また、操作スイッチSWを安定して動作させるためには
、OFF時における接点間電圧とON時に接点に流れる
電流とが所定値以上の値になるようにする必要がある。
Further, in order to operate the operation switch SW stably, it is necessary to make the voltage between the contacts when it is OFF and the current that flows through the contacts when it is ON be a predetermined value or more.

ところが、従来のスイッチ入力検出装置では、操作スイ
ッチSWの接点に流れる電流が電源端子v rorから
遠い操作スイッチSWはど小さくなるので、このような
操作スイッチSWの操作時における動作が不安定になり
易いという問題も生じていた。
However, in the conventional switch input detection device, the current flowing through the contacts of the operation switch SW becomes smaller in the operation switch SW far from the power supply terminal v ror, so that the operation of such an operation switch SW becomes unstable. There was also the problem of ease of use.

本発明は、上記事情に鑑み、スイッチ入力回路の抵抗と
操作スイッチに定電流が流れるようにすることにより、
操作スイッチの操作を電圧判定回路によって確実に判定
することができるスイッチ入力検出装置を提供すること
を目的としている。
In view of the above-mentioned circumstances, the present invention allows a constant current to flow through the resistance of the switch input circuit and the operation switch.
It is an object of the present invention to provide a switch input detection device that can reliably determine the operation of an operation switch using a voltage determination circuit.

(課題を解決するための手段) 本発明のスイッチ入力検出装置は、他端側を共に出力端
子に接続された複数の操作スイッチの一端か、電源の一
方端に直列に接続された複数の抵抗の抵抗間又は抵抗端
にそれぞれ接続され、該操作スイッチの他端側の出力端
子が定電流回路を介して電源の他方☆:1′4に接続さ
れると共に、該出力端子に電圧判定回路が接続されてお
り、そのことにより上記目的が達成される。
(Means for Solving the Problems) The switch input detection device of the present invention includes one end of a plurality of operation switches whose other ends are both connected to an output terminal, or a plurality of resistors connected in series to one end of a power supply. The output terminal of the other end of the operation switch is connected to the other side of the power supply ☆:1'4 via a constant current circuit, and a voltage determination circuit is connected to the output terminal. connected, thereby achieving the above objective.

また、本発明のスイッチ入力検出装置は、複数の操作ス
イッチのいずれが操作されたことを出力端子に現れる電
圧と判定レベルとを比較することにより検出するスイッ
チ入力検出装置であって、該操作スイッチのうちの所定
のものが操作された時の出力端子の電圧を検出する電圧
検出手段、及び該検出された電圧に基づいて他の操作ス
イッチに対する判定レベルを修正する判定レベル修正手
段を備えている。
Further, the switch input detection device of the present invention is a switch input detection device that detects which of a plurality of operation switches has been operated by comparing a voltage appearing at an output terminal with a determination level, and which detects which of a plurality of operation switches has been operated. The switch includes voltage detection means for detecting the voltage at the output terminal when a predetermined one of the switches is operated, and judgment level correction means for correcting the judgment level for other operation switches based on the detected voltage. .

(作用) 上記構成により、ある操作スイッチが操作されてONに
なると、この操作スイッチよりも電源の一方端側に接続
された全ての抵抗に電流が流れる。
(Function) With the above configuration, when a certain operation switch is operated and turned ON, current flows through all the resistors connected to one end of the power source from the operation switch.

しかも、これらの抵抗には定電流回路によって一定の電
流が流れるので、電源電圧を■、。「とし、定電流I8
が流れる抵抗における抵抗値の総和をΣRとすれば、出
力端子の電圧■。、tは、次式で示され、V out=
V rer−Σ RXI[l抵抗値の総和ΣRに比例す
ることになる。従って、操作ス、イッチが電源の一方端
に近いか遠いかにかかわりなく、隣接する操作スイッチ
に対して出力端子の電圧を十分に変化させることができ
るため、電圧判定回路によって確実な判定を行うことが
できるようになる。また、操作スイッチにおけるOFF
時の接点間電圧とON時に接点に流れる電流が電源の一
方端からの遠近にかかわらず常に一定となるので、各操
作スイッチが安定した動作を行うことができるようにな
る。
Moreover, a constant current flows through these resistors due to the constant current circuit, so the power supply voltage is reduced to ■. ``Constant current I8
If the sum of the resistance values in the resistance through which the current flows is ΣR, then the voltage at the output terminal is ■. , t are shown by the following formula, and V out=
V rer-Σ RXI[l is proportional to the sum of resistance values ΣR. Therefore, regardless of whether the operating switch is near or far from one end of the power supply, the voltage at the output terminal can be sufficiently changed relative to the adjacent operating switch, so the voltage judgment circuit can make reliable judgments. You will be able to do this. In addition, the operation switch can be turned off.
Since the voltage between the contacts at the time of operation and the current flowing through the contacts at the time of ON are always constant regardless of the distance from one end of the power supply, each operation switch can perform stable operation.

なお、電源の一方端から遠い操作スイッチがONとなっ
た場合には、多数の抵抗の抵抗値の総和によって出力端
子の電圧が決定されるため、使用する抵抗の抵抗値の誤
差が累積される。このため、例えば各抵抗の抵抗値を電
源の一方端から遠ざかるほど徐々に大きくなるようにし
て電圧判定回路による判定に余裕を持たせるようにする
こともできる。
Note that if an operation switch that is far from one end of the power supply is turned on, the voltage at the output terminal is determined by the sum of the resistance values of many resistors, so errors in the resistance values of the resistors used will accumulate. . For this reason, for example, the resistance value of each resistor may be made to gradually increase as the distance from one end of the power supply increases, so that the voltage determination circuit can make a determination with more margin.

また、電圧検出手段に依って出力電圧が検出されると、
各抵抗における抵抗値の誤差や経年変化又は操作スイッ
チにおける接点抵抗の変化等を考慮して、判定レベル修
正手段に依ってこの検出電圧に基づいて随時判定レベル
が修正される。
Furthermore, when the output voltage is detected by the voltage detection means,
The determination level is corrected at any time based on this detected voltage by the determination level correction means, taking into consideration errors in the resistance value of each resistor, changes over time, changes in contact resistance of the operation switch, and the like.

(実施例) 本発明を実施例について以下に説明する。(Example) The invention will now be described with reference to examples.

第1図乃至第4図は本発明の一実施例を示すものであっ
て、第1図はスイッチ入力検出装置におけるスイッチ入
力回路の回路図、第2図はスイッチ入力検出装置におけ
る電圧判定回路のブロック図、第3図は各操作スイッチ
の操作と出力電圧との関係を示すグラフ、第4図は電圧
判定回路における判定レベルの許容範囲を示すグラフで
ある。
1 to 4 show an embodiment of the present invention, in which FIG. 1 is a circuit diagram of a switch input circuit in a switch input detection device, and FIG. 2 is a circuit diagram of a voltage determination circuit in a switch input detection device. In the block diagram, FIG. 3 is a graph showing the relationship between the operation of each operation switch and the output voltage, and FIG. 4 is a graph showing the allowable range of the judgment level in the voltage judgment circuit.

なお、前記第5図に示した従来例と同様の機能を有する
構成部材には同じ符号を付する。
Components having the same functions as those of the conventional example shown in FIG. 5 are given the same reference numerals.

本実施例は、複写機に用いられるスイッチ入力検出装置
である。このスイッチ入力検出装置におけるスイッチ入
力回路には、第1図に示すように、多数の抵抗R1〜R
,が電源端子v r、、に直列に接続されている。また
、同数の操作スイッチS W I−、SWnの一端がそ
れぞれこれら抵抗R1−Rn間及び抵抗R1の他端に接
続されている。そして、これら操作スイッチS W 1
〜SWnの他端側は、共通線1によって互いに接続され
ている。この共通線1は、出力端子V。utに接続され
ると共に、定電流回路2を介して接地されている。
This embodiment is a switch input detection device used in a copying machine. As shown in FIG. 1, the switch input circuit in this switch input detection device includes a large number of resistors R1 to R1.
, are connected in series to the power supply terminals v r, ,. Further, one end of the same number of operation switches SW I- and SWn is connected between these resistors R1 and Rn and to the other end of the resistor R1, respectively. And these operation switches SW 1
The other ends of ~SWn are connected to each other by a common line 1. This common line 1 is the output terminal V. ut and is also grounded via a constant current circuit 2.

定電流回路2は、演算増幅器2a(オペアンプ)とトラ
ンジスタ2bと抵抗R21!t〜R284とからなる回
路であり、上記共通線1には、トランジスタ2bのコレ
クタ端子が接続され、このトランジスタ2bのエミッタ
端子が抵抗R21!1を介して接地されている。演算増
幅器2aは、非反転入力子に電源端子■、。fの電圧が
抵抗R2θ2と抵抗R2113とによって分圧されて入
力されると共に、反転入力−に抵抗R2θ1での電圧降
下が入力されるようになっていて、出力が抵抗R21+
4を介してトランジスタ2bのベース端子に接続されて
いる。従って、演算増幅器2aは、イマジナリショート
(仮想短絡)により抵抗R2i11での電圧降下が抵抗
R2112・R2B3での分圧電圧に等しくなるように
トランジスタ2bを制御し、この結果、共通線1に流れ
る電流が定電流となるようにしている。
The constant current circuit 2 includes an operational amplifier 2a (op-amp), a transistor 2b, and a resistor R21! The collector terminal of the transistor 2b is connected to the common line 1, and the emitter terminal of the transistor 2b is grounded via the resistor R21!1. The operational amplifier 2a has a non-inverting input terminal and a power supply terminal (2). The voltage of f is divided by resistor R2θ2 and resistor R2113 and inputted, and the voltage drop across resistor R2θ1 is inputted to the inverting input -, and the output is inputted to resistor R21+.
4 to the base terminal of the transistor 2b. Therefore, the operational amplifier 2a controls the transistor 2b so that the voltage drop across the resistor R2i11 becomes equal to the divided voltage across the resistors R2112 and R2B3 due to an imaginary short circuit, and as a result, the current flowing through the common line 1 is made to be a constant current.

上記出力端子■。utは、第2図に示すように、電圧判
定回路を構成するマイクロコンピュータ3におけるアナ
ログ入力部3aのアナログ入力端子ANに接続されてい
る。また、マイクロコンピュータ3のアナログ入力部3
aは、アナログ電源端子VANに上記電源端子■、。f
を接続すると共に、アナログ接地端子GN D ANを
接地して第1図の回路における電源端子v r、、の電
圧が基準電圧として入力されるようになっている。この
マイクロコンピュータ3のアナログ入力部3aは、入力
電圧をA/D変換によりディジタルデータに変換し、I
10ポートを介してCPUに入力するアナログインター
フェイスである。そして、このマイクロコンピュータ3
は、アナログ入力端子ANから入力した出力端子■。u
tの電圧を内部のROM又はRAMに記憶した各判定レ
ベルと比較することにより、スイッチ入力回路における
いずれの操作スイッチSWがONとなったかを判定でき
るようになっている。
The above output terminal ■. As shown in FIG. 2, ut is connected to the analog input terminal AN of the analog input section 3a of the microcomputer 3 constituting the voltage determination circuit. In addition, the analog input section 3 of the microcomputer 3
a is the analog power supply terminal VAN and the above power supply terminal ■. f
At the same time, the analog ground terminal GN DAN is grounded so that the voltage of the power supply terminal v r, , in the circuit of FIG. 1 is inputted as a reference voltage. The analog input section 3a of the microcomputer 3 converts the input voltage into digital data by A/D conversion, and converts the input voltage into digital data.
This is an analog interface that inputs to the CPU through 10 ports. And this microcomputer 3
is the output terminal ■ that receives input from the analog input terminal AN. u
By comparing the voltage at t with each determination level stored in the internal ROM or RAM, it is possible to determine which operation switch SW in the switch input circuit is turned on.

なお、上記第1図に示したスイッチ入力回路を複数設け
、それぞれの出力端子■。utをマイクロコンピュータ
3のアナログ入力端子ANに接続すると共に、各回路の
電源端子V r e rに走査によって電源を順に印加
することにより、さらに多数の操作スイッチSWの入力
検出を行うようにすることもできる。
It should be noted that a plurality of switch input circuits shown in FIG. ut to the analog input terminal AN of the microcomputer 3, and by sequentially applying power to the power supply terminal Vrer of each circuit by scanning, the inputs of even more operation switches SW can be detected. You can also do it.

上記構成のスイッチ入力検出装置は、いずれかの操作ス
イッチS W +が操作されてONになる払電源端子V
、。fからの電流が、抵抗R1〜R1と操作スイッチS
W+を通り定電流回路2を介して接地電源に流れ込むこ
とになる。従って、このときに共通線1に接続された出
力端子■。utの電圧(■。ut)は、電源電圧をV 
relとし、定電流回路2の定電流をT、とじ、抵抗R
1〜R1の抵抗値の総和をΣRとすると、次式で表され
る。
The switch input detection device having the above configuration has a power supply terminal V that is turned on when any of the operation switches SW + is operated.
,. The current from f flows through resistors R1 to R1 and operation switch S.
It passes through W+ and flows into the ground power source via the constant current circuit 2. Therefore, at this time, the output terminal ■ is connected to the common line 1. The voltage of ut (■.ut) is the power supply voltage V
rel, the constant current of constant current circuit 2 is T, and the resistance R is
Letting the sum of the resistance values of 1 to R1 be ΣR, it is expressed by the following equation.

V out−V tar−ΣR,XIgこのため、出力
端子■。uiからは、ONとなった操作スイノチSWが
電源端子V r e fに近いほと高い電圧が出力され
ることになる。そして、マイクロコンピュータ3では、
この出力端子V。、tの電圧を各操作スイッチSWに応
じて設定された判定レベルと比較することにより、いず
れの操作スイッチSWがONとなったかを判定する。な
お、同時に2以上の操作スイッチSWが操作された場合
には、電源端子■、。「に最も近い操作スイッチswの
操作が検出される。
V out-V tar-ΣR,XIg Therefore, the output terminal ■. The closer the turned ON operation switch SW is to the power supply terminal V r e f , the higher the voltage will be output from the ui. And in microcomputer 3,
This output terminal V. , t is compared with a determination level set according to each operation switch SW to determine which operation switch SW is turned on. Note that if two or more operation switches SW are operated at the same time, the power terminals ■,. ``The operation of the operation switch sw closest to ``is detected.

上記スイッチ入力検出装置の動作の際、出力端子■。、
tの電圧は、上式に示すように、抵抗値の総和ΣR,に
比例して低下することになる。従って、例えば各抵抗R
、−Roを同じ抵抗値にしておけば、この出力端子■。
When the above switch input detection device operates, the output terminal ■. ,
As shown in the above equation, the voltage at t decreases in proportion to the total resistance value ΣR. Therefore, for example, each resistor R
, -Ro are set to the same resistance value, this output terminal ■.

、tの電圧は、第3図に示すように、各操作スイッチS
W+〜SWnの操作に対して電圧変化Δ■が等しくなる
。従って、マイクロコンピュータ3では、ONとなった
操作スイッチswの電tX端子■1゜fからの遠近にか
かわらず、この操作スイッチSWを確実に判定すること
ができる。
, t, as shown in FIG.
The voltage change Δ■ becomes equal for the operation of W+ to SWn. Therefore, the microcomputer 3 can reliably determine the operation switch SW that is turned on, regardless of its distance from the voltage tX terminal 1°F.

また、各操作スイッチSWにおけるOFF時の=12 接点間型圧とON時に接点に流れる電流が電源端子v 
r、rからの遠近にかかわらず常に一定となるので、各
操作スイツチSWが安定した動作を行うことかできるよ
うになる。この結果、マイクロコンピュータ3のA/D
変換器が8ビツトの分解能を有するとすると、電源の安
定性、操作スイッチSWの接点抵抗の変化及び操作スイ
ッチSWの必要最低電流値等を考慮した場合、前記第5
図に示した従来のスイッチ入力回路では通常1ラインあ
たり4〜5個の操作スイッチSWが接続可能であったの
に対して、本実施例では、1ラインに13〜15個の操
作スイッチSWを接続することができるようになる。
In addition, when each operation switch SW is OFF, the pressure between the contacts is 12, and when the switch is ON, the current flowing through the contacts is the power supply terminal v.
Since it is always constant regardless of distance from r or r, each operation switch SW can perform stable operation. As a result, the A/D of microcomputer 3
Assuming that the converter has an 8-bit resolution, the fifth
In the conventional switch input circuit shown in the figure, normally 4 to 5 operation switches SW can be connected per line, but in this embodiment, 13 to 15 operation switches SW can be connected to one line. You will be able to connect.

電源端子Vr6(から遠い操作スイッチsWがONとな
った場合には、多数の抵抗R1〜R1の抵抗値の総和に
よって出力端子Voutの電圧が決定されるので、使用
する抵抗R1〜R1の抵抗値の誤差が累積される。この
ため、各抵抗R1〜R,の抵抗値を電源端子■、。rか
ら遠ざかるほど徐々に大きくなるようにすると共に、マ
イクロコンピュータ3における各操作スイッチSWに応
じた判定レベルを第4図に示すように、電源端子Vre
rから遠い操作スイッチSWはど広い許容範囲を有する
ように設定しておけば、より確実な判定を行うことがで
きるようになる。ただし、操作スイッチSWごとの各許
容範囲は、互いに重複することがないように、ある程度
以上の間隔を開けて設定する必要がある。
When the operation switch sW that is far from the power supply terminal Vr6 is turned on, the voltage of the output terminal Vout is determined by the sum of the resistance values of many resistors R1 to R1, so the resistance values of the resistors R1 to R1 used For this reason, the resistance value of each resistor R1 to R, is made to gradually increase as it moves away from the power supply terminals R, and the judgment is made according to each operation switch SW in the microcomputer 3. As shown in FIG. 4, the power supply terminal Vre
If the operation switch SW farthest from r is set to have a wide tolerance range, more reliable determination can be made. However, each allowable range for each operation switch SW needs to be set at a certain interval or more so that they do not overlap with each other.

また、本実施例では、使用する抵抗R1〜R1、R28
1〜R284の抵抗値の誤差の他に、これら抵抗値の経
年変化又は操作スイッチSWにおける接点抵抗の変化等
を考慮して、上記のようにマイクロコンピュータ3にお
ける各操作スイッチSWの判定レベルにある程度の許容
範囲を設ける必要がある。このため、電源端子V4.「
と接地間の1ラインに接続することができる操作スイッ
チsWの数は、従来よりも増加させることができても、
この数には限度がある。そこで、操作スイッチSWが操
作されて出力端子■。utの電圧がマイクロコンピュタ
3によって判定される度に、このマイクロコンピュータ
3かそのときの電圧値を中央値とするように判定レベル
を補正すれば、抵抗値の誤差や経年変化等に対応した判
定を行うことができるようになる。そして、これにより
マイクロコンピュータ3における判定レベルの許容範囲
の幅を狭めることができるので、さらに多くの操作スイ
ッチを接続して検出することが可能となる。また、この
判定レベルの補正を各操作スイッチSWが操作される度
に行うのではなく、いずれか1の操作スイッチSWが操
作された場合、又は、複写機の電源ON時に最初に操作
された操作スイッチSWについてのみ行うようにすれば
、マイクロコンピユータ3の負担を軽減することができ
る。この場合、1の操作スイッチSWにおける変化は全
ての操作スイッチSWについても同様に影響が及ぶ場合
が多いので、対象外の操作スイッチSWの判定レベルも
、対象となる操作スイッチSWの判定レベルの補正にス
ライドして補正すればよい。補正の対象となる1の操作
スイッチSWは、電源端子■、。
In addition, in this embodiment, the resistors R1 to R1, R28
In addition to errors in the resistance values of 1 to R284, consideration is given to changes in these resistance values over time, changes in contact resistance in the operation switch SW, etc., and as described above, the determination level of each operation switch SW in the microcomputer 3 is adjusted to a certain extent. It is necessary to establish a tolerance range. For this reason, the power supply terminal V4. "
Although the number of operation switches sW that can be connected to one line between
There is a limit to this number. Then, the operation switch SW is operated and the output terminal ■. Every time the voltage of ut is judged by the microcomputer 3, if the judgment level is corrected so that the voltage value at that time is set as the median value, the judgment can be made in response to errors in resistance values, changes over time, etc. You will be able to do this. As a result, the allowable range of the determination level in the microcomputer 3 can be narrowed, so that it is possible to connect and detect even more operation switches. In addition, this judgment level correction is not performed every time each operation switch SW is operated, but when any one operation switch SW is operated, or when the first operation is performed when the copying machine is turned on. By performing this only on the switch SW, the burden on the microcomputer 3 can be reduced. In this case, since a change in one operation switch SW often affects all operation switches SW in the same way, the judgment level of the non-target operation switch SW is also corrected to the judgment level of the target operation switch SW. Just slide it to correct it. The first operation switch SW to be corrected is the power terminal ■.

fから最も遠い操作スイッチSWoに設定しておけば、
抵抗R1〜Roの全ての経年変化等に対応することがで
きる。また、複写機において頻繁に使用されるコピーキ
ーやクリアキー等に設定しておいてもよい。
If you set the operation switch SWo farthest from f,
It is possible to cope with all aging changes of the resistors R1 to Ro. Further, the key may be set to a copy key, clear key, etc. that are frequently used in a copying machine.

(発明の効果) 以上の説明から明かなように、本発明のスイッチ入力検
出装置によれば、各操作スイッチの0N10FFを確実
に検出することが可能となり、抵抗や電圧判定回路等に
高価な精度の高い部品を使用する必要がなくなり、また
、電源間に接続する操作スイッチの数を増加してハーネ
スの本数をさらに削減することができるようになるので
、装置のコストダウンを図ることができる。
(Effects of the Invention) As is clear from the above explanation, according to the switch input detection device of the present invention, it is possible to reliably detect 0N10FF of each operation switch. It is no longer necessary to use high-performance parts, and the number of harnesses can be further reduced by increasing the number of operation switches connected between the power supplies, so the cost of the device can be reduced.

4、図 の。 な説I 第1図乃至第4図は本発明の一実施例を示すものであっ
て、第1図はスイッチ入力検出装置におけるスイッチ入
力回路の回路図、第2図はスイッチ入力検出装置におけ
る電圧判定回路のブロック図、第3図は各操作スイッチ
の操作と出力電圧との関係を示すグラフ、第4図は電圧
判定回路における判定レベルを示すグラフ、第5図及び
第6図は従来例を示すものであって、第5図はスイッチ
入力検出装置におけるスイッチ入力回路の回路図、第6
図は各操作スイッチの操作と出力電圧との関係を示すグ
ラフである。
4.Fig. Theory I Figures 1 to 4 show an embodiment of the present invention, in which Figure 1 is a circuit diagram of a switch input circuit in a switch input detection device, and Figure 2 is a circuit diagram of a switch input circuit in a switch input detection device. A block diagram of the judgment circuit, Fig. 3 is a graph showing the relationship between the operation of each operation switch and the output voltage, Fig. 4 is a graph showing the judgment level in the voltage judgment circuit, and Figs. 5 and 6 are conventional examples. 5 is a circuit diagram of a switch input circuit in a switch input detection device, and FIG.
The figure is a graph showing the relationship between the operation of each operation switch and the output voltage.

2・・・定電流回路、3・・・マイクロコンピュータ(
電圧判定回路、判定レベル修正手段)、■。。t・・・
出力端子、SW・・・操作スイッチ、Vr6r・・・電
源、R1−Rn・・・抵抗。
2... constant current circuit, 3... microcomputer (
Voltage judgment circuit, judgment level correction means), ■. . T...
Output terminal, SW...operation switch, Vr6r...power supply, R1-Rn...resistance.

以上that's all

Claims (1)

【特許請求の範囲】 1、他端側を共に出力端子に接続された複数の操作スイ
ッチの一端が、電源の一方端に直列に接続された複数の
抵抗の抵抗間又は抵抗端にそれぞれ接続され、該操作ス
イッチの他端側の出力端子が定電流回路を介して電源の
他方端に接続されると共に、該出力端子に電圧判定回路
が接続されているスイッチ入力検出装置。 2、複数の操作スイッチのいずれが操作されたことを出
力端子に現れる電圧と判定レベルとを比較することによ
り検出するスイッチ入力検出装置であって、 該操作スイッチのうちの所定のものが操作された時の出
力端子の電圧を検出する電圧検出手段、及び 該検出された電圧に基づいて他の操作スイッチに対する
判定レベルを修正する判定レベル修正手段 を備えているスイッチ入力検出装置。
[Claims] 1. One end of a plurality of operation switches whose other ends are both connected to an output terminal is connected between each resistor or to a resistor end of a plurality of resistors connected in series to one end of a power supply. , a switch input detection device in which an output terminal on the other end side of the operation switch is connected to the other end of a power source via a constant current circuit, and a voltage determination circuit is connected to the output terminal. 2. A switch input detection device that detects which of a plurality of operation switches has been operated by comparing a voltage appearing at an output terminal with a determination level, the switch input detection device detecting whether a predetermined one of the operation switches has been operated. A switch input detection device comprising voltage detection means for detecting a voltage at an output terminal when a switch is input, and judgment level correction means for correcting judgment levels for other operation switches based on the detected voltage.
JP2232177A 1990-08-31 1990-08-31 Switch input detection device Pending JPH04113367A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2232177A JPH04113367A (en) 1990-08-31 1990-08-31 Switch input detection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2232177A JPH04113367A (en) 1990-08-31 1990-08-31 Switch input detection device

Publications (1)

Publication Number Publication Date
JPH04113367A true JPH04113367A (en) 1992-04-14

Family

ID=16935215

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2232177A Pending JPH04113367A (en) 1990-08-31 1990-08-31 Switch input detection device

Country Status (1)

Country Link
JP (1) JPH04113367A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010157411A (en) * 2008-12-26 2010-07-15 Teikoku Tsushin Kogyo Co Ltd Multiple-connected switch
JP2011023252A (en) * 2009-07-17 2011-02-03 Funai Electric Co Ltd Input circuit
US7930999B2 (en) 2003-10-10 2011-04-26 Nissan Motor Co., Ltd. Cooling water passage structure of internal combustion engines
JP2012180026A (en) * 2011-03-02 2012-09-20 Yazaki Corp Switch state detector and controller having the same

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7930999B2 (en) 2003-10-10 2011-04-26 Nissan Motor Co., Ltd. Cooling water passage structure of internal combustion engines
JP2010157411A (en) * 2008-12-26 2010-07-15 Teikoku Tsushin Kogyo Co Ltd Multiple-connected switch
JP2011023252A (en) * 2009-07-17 2011-02-03 Funai Electric Co Ltd Input circuit
JP2012180026A (en) * 2011-03-02 2012-09-20 Yazaki Corp Switch state detector and controller having the same

Similar Documents

Publication Publication Date Title
KR20040073383A (en) Sensor read out
US7075464B2 (en) Circuit for current measurement and current monitoring
US20120082204A1 (en) Two-wire transmitter
US6657423B2 (en) Physical quantity detection device with error detection in power supply line thereto
US10416697B2 (en) Wheatstone bridge sensing system with multiple current sources
JPH04113367A (en) Switch input detection device
JPH0118386B2 (en)
US20040232970A1 (en) Level shift circuit
JP2862296B2 (en) Voltage applied current measuring device and current applied voltage measuring device
CN113541692A (en) Integrating circuit and source measurement module
CN109031058B (en) Insulation detection device and insulation detection circuit
JPH10103910A (en) Displacement detection circuit by potentiometer
JP2008209998A (en) Voltage generator
JPH02157915A (en) Fault detector for analog output circuit
US5636274A (en) Switch controller and method
JPH09138141A (en) Input circuit for sensor
US6784669B2 (en) Electrical circuit arrangement for converting an electrical input variable into an impressed output electrical voltage
JP3735494B2 (en) Temperature detection circuit
JPH04301776A (en) Lcr measuring device
JPH07260859A (en) Power supply having variable output resistance
JP2022125458A (en) Field apparatus
JPS6049417A (en) Overcurrent detecting circuit
JP3751822B2 (en) Power supply
JPH1163912A (en) Steering angle detecting equipment
JPH0599997A (en) Detecting apparatus of position of disconnection of feedback resistance of modutrol motor