JPH0651895A - Switch input detector - Google Patents

Switch input detector

Info

Publication number
JPH0651895A
JPH0651895A JP4205481A JP20548192A JPH0651895A JP H0651895 A JPH0651895 A JP H0651895A JP 4205481 A JP4205481 A JP 4205481A JP 20548192 A JP20548192 A JP 20548192A JP H0651895 A JPH0651895 A JP H0651895A
Authority
JP
Japan
Prior art keywords
signal
switch
output
input
switches
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
JP4205481A
Other languages
Japanese (ja)
Inventor
Masayoshi Masuda
昌佳 益田
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo 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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP4205481A priority Critical patent/JPH0651895A/en
Publication of JPH0651895A publication Critical patent/JPH0651895A/en
Pending legal-status Critical Current

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)
  • Keying Circuit Devices (AREA)
  • Push-Button Switches (AREA)

Abstract

PURPOSE:To reduce the influence of noise caused by a key scan signal. CONSTITUTION:While no switch on a key matrix is pressed, an output signal from the output port of a signal output part 16 is completely set at a low level. When any switch is pressed and any input port of a signal input part (a) is turned to the low level, the key scan signal is outputted from the signal output part 16 by an operation processing part 20. When it is detected which switch is turned on in response to the key scan signal, the operation processing part 20 stops outputting the key scan signal and outputs a normal signal from the signal output part 16 for judging the OFF of the switch.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、スイッチ入力検出装
置に関し、特にマトリクス構造に配置されたスイッチの
開閉を検出する、スイッチ入力検出装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a switch input detecting device, and more particularly to a switch input detecting device for detecting opening / closing of switches arranged in a matrix structure.

【0002】[0002]

【従来の技術】この種の従来のスイッチ入力検出におい
ては、(a) 信号出力部から常にキーマトリクスの各行毎
に時間的に異なるパルス(以下、「キースキャン信
号」)を出力し、信号入力部でのキースキャン信号に同
期したパルスの出現あるいは消滅でいずれのスイッチが
閉じられあるいは開かれたかを検出する方法、あるいは
(b)全てのスイッチが開いている場合にはキースキャン
信号を出力せず、何らかの方法でいずれかのスイッチが
閉じたことを検出すると、全てのスイッチが開かれるま
でキースキャン信号を出力して、それぞれのスイッチが
開いたことを検出する方法があった。
2. Description of the Related Art In conventional switch input detection of this type, (a) a signal output section always outputs temporally different pulses (hereinafter referred to as "key scan signal") for each row of a key matrix to input a signal. Method to detect which switch is closed or opened by the appearance or disappearance of a pulse synchronized with the key scan signal in
(b) The key scan signal is not output when all the switches are open, and if any switch is detected to be closed by some method, the key scan signal is output until all the switches are opened. , There was a way to detect when each switch was opened.

【0003】[0003]

【発明が解決しようとする課題】このようなキースキャ
ン信号は任意の周期で繰り返し出力されるため、このキ
ーマトリクスの近傍に増幅回路などがある場合、このキ
ースキャン信号が非常に煩わしいノイズ源となってしま
う。上述の従来技術では、このノイズ源となるキースキ
ャン信号が(a) の方法においては常時出力されており、
また(b) の方法ではスイッチのいずれかが閉じている間
中ずっと出力されている。したがって、従来のいずれの
方法でも、キースキャン信号によるノイズの影響が少な
くなかった。
Since such a key scan signal is repeatedly output at an arbitrary cycle, if there is an amplifier circuit in the vicinity of this key matrix, this key scan signal becomes a very troublesome noise source. turn into. In the above-mentioned conventional technique, the key scan signal which is the noise source is always output in the method (a),
Also, in the method (b), the output is output as long as one of the switches is closed. Therefore, the influence of noise due to the key scan signal is not small in any of the conventional methods.

【0004】それゆえに、この発明の主たる目的は、キ
ースキャン信号によるノイズの影響を少なくできる、ス
イッチ入力検出装置を提供することである。
Therefore, a main object of the present invention is to provide a switch input detection device which can reduce the influence of noise caused by a key scan signal.

【0005】[0005]

【課題を解決するための手段】この発明は、複数のスイ
ッチのそれぞれの接点の一方を行毎に配線しかつ接点の
他方を列毎に配線したキーマトリクスと、キーマトリク
スの行毎に配線されて各々のスイッチの開閉動作を検出
するための検出信号を出力する信号出力手段と、キーマ
トリクスの列毎に配線されてスイッチの開閉によってキ
ーマトリクスから出力される信号を受ける信号入力手段
とを備え、信号出力手段から行毎に時間的に異なるパル
スを出力して信号入力手段で入力信号とパルスとのタイ
ミングの一致により複数のスイッチのいずれが閉じたか
を検出する、スイッチ入力検出装置において、いずれか
のスイッチが閉じたことを検出した後に信号出力部から
パルスに代えてその閉じたスイッチが開いた状態になる
ことを検出するための定常信号を出力するようにしたこ
とを特徴とする、スイッチ入力検出装置である。
According to the present invention, a key matrix in which one of the contacts of each of a plurality of switches is wired in each row and the other of the contacts is wired in each column, and each key matrix is wired in each row. A signal output means for outputting a detection signal for detecting the opening / closing operation of each switch, and a signal input means wired for each column of the key matrix and receiving a signal output from the key matrix by opening / closing the switch. In the switch input detection device, the signal output means outputs a pulse that is temporally different for each row, and the signal input means detects which of the plurality of switches is closed by the coincidence of the timing of the input signal and the pulse After detecting that one of the switches is closed, the signal output section detects that the closed switch is in the open state instead of the pulse. Characterized in that so as to output a constant signal, a switch input detection device.

【0006】[0006]

【作用】キーマトリクス上のいずれのスイッチも押され
ていない間は、たとえば信号出力手段からは各行毎にロ
ーレベル信号を出力し、信号入力手段には各列からハイ
レベル信号が入力されるようにしておく。そして、いず
れかのスイッチが押された段階で信号出力部からキース
キャン信号を出力する。そして、キースキャン信号のパ
ルスに応答したパルスが信号入力手段に入力されること
によってどのスイッチが閉じたかを検出すると、信号出
力部はキースキャン信号の出力を停止して、閉じたスイ
ッチが開かれるのを検出するための定常信号を出力す
る。これによって、ノイズ源となるキースキャン信号を
出力する時間が必要最小限となる。
When none of the switches on the key matrix is pressed, for example, the signal output means outputs a low level signal for each row, and the signal input means receives a high level signal from each column. Leave. Then, a key scan signal is output from the signal output unit when any switch is pressed. Then, when a pulse corresponding to the pulse of the key scan signal is input to the signal input means to detect which switch is closed, the signal output unit stops the output of the key scan signal and the closed switch is opened. It outputs a steady signal to detect the. This minimizes the time required to output the key scan signal that is a noise source.

【0007】[0007]

【発明の効果】この発明によれば、ノイズ源となるキー
スキャン信号を出力している時間が短くなるので、キー
スキャン信号によるノイズの影響を大幅に軽減すること
ができる。この発明の上述の目的,その他の目的,特徴
および利点は、図面を参照して行う以下の実施例の詳細
な説明から一層明らかとなろう。
According to the present invention, the time during which the key scan signal that is a noise source is output is shortened, so that the influence of noise due to the key scan signal can be greatly reduced. The above-mentioned objects, other objects, features and advantages of the present invention will become more apparent from the following detailed description of the embodiments with reference to the drawings.

【0008】[0008]

【実施例】図1を参照して、この実施例のスイッチ入力
検出装置10は、テープ再生装置に用いられるものであ
り、スイッチ12a〜12iが3行3列に配置され、そ
れぞれの接点の一方が行毎に配線され、他方が列毎に配
線されるキーマトリクス14を含む。第1行のスイッチ
12a,12bおよび12cの各一方接点は、ダイオー
ドD1を介して信号出力部16の出力ポートO1に接続
される。また、第2行のスイッチ12d,12eおよび
12fの各一方接点は、ダイオードD2を介して信号出
力部16の出力ポートO2に接続される。そして、第3
行のスイッチ12g,12hおよび12iの各一方接点
は、ダイオードD3を介して信号出力部16の出力ポー
トO3に接続される。これに対して、スイッチ12a,
12dおよび12gの各他方接点は、信号入力部18の
入力ポートI1に接続されるとともに、抵抗R1を介し
て定電圧源(+B)に接続される。また、スイッチ12
b,12eおよび12hの各他方接点は信号入力部18
の入力ポートI2に接続されるとともに、抵抗R2を介
して定電圧源(+B)に接続される。そして、スイッチ
12c,12fおよび12iの各他方接点は信号入力部
18の入力ポートI3に接続されるとともに、抵抗R3
を介して定電圧源(+B)に接続される。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Referring to FIG. 1, a switch input detecting device 10 of this embodiment is used for a tape reproducing device, and switches 12a to 12i are arranged in 3 rows and 3 columns, and one of respective contacts is provided. Is wired for each row and the other is wired for each column. Each one contact of the switches 12a, 12b and 12c in the first row is connected to the output port O1 of the signal output unit 16 via the diode D1. Further, each one contact of the switches 12d, 12e and 12f of the second row is connected to the output port O2 of the signal output unit 16 via the diode D2. And the third
Each one-side contact of the switches 12g, 12h, and 12i of the row is connected to the output port O3 of the signal output unit 16 via the diode D3. On the other hand, the switches 12a,
The other contacts of 12d and 12g are connected to the input port I1 of the signal input unit 18 and also connected to the constant voltage source (+ B) via the resistor R1. Also, switch 12
The other contacts of b, 12e and 12h are the signal input unit 18
Input port I2 and a constant voltage source (+ B) via a resistor R2. The other contacts of the switches 12c, 12f and 12i are connected to the input port I3 of the signal input unit 18 and the resistor R3.
Is connected to a constant voltage source (+ B) via.

【0009】信号出力部16および信号入力部18は、
それぞれ演算処理部20に接続され、演算処理部20
は、スイッチ12a〜12iのいずれかが開閉されたこ
とを検出するための信号出力部16からの検出信号の出
力動作を制御し、また、信号入力部18から、スイッチ
12a〜12iのいずれかが開閉されることによって信
号入力部18に入力される信号の状態に基づいて、スイ
ッチ12a〜12iのいずれが開閉したかを検出する。
The signal output unit 16 and the signal input unit 18 are
Each is connected to the arithmetic processing unit 20, and the arithmetic processing unit 20
Controls the output operation of the detection signal from the signal output unit 16 for detecting that any of the switches 12a to 12i is opened or closed, and from the signal input unit 18, any of the switches 12a to 12i is Which of the switches 12a to 12i is opened or closed is detected based on the state of the signal input to the signal input unit 18 by being opened or closed.

【0010】どのスイッチも押されていないとき、図2
に示すように、出力ポートO1,O2およびO3の全て
の出力信号はローレベルであり、入力ポートI1,I2
およびI3の全ての入力信号はハイレベルとなってい
る。たとえば、図2に示す時間t1で、たとえばテープ
再生スイッチとして機能するスイッチ12gが押された
とすると、スイッチ12gの接点につながっている入力
ポートI1だけが出力ポートO3の出力信号に応答して
ローレベルとなる。この時点では、演算処理部20は、
押されたスイッチがスイッチ12a,12dおよび12
gのいずれであるかは判断できない。
When none of the switches are pressed, FIG.
As shown in, all output signals of the output ports O1, O2 and O3 are at low level, and the input ports I1, I2
And all the input signals of I3 are at high level. For example, if the switch 12g functioning as a tape reproducing switch is pressed at the time t1 shown in FIG. 2, only the input port I1 connected to the contact of the switch 12g responds to the output signal of the output port O3 to attain the low level. Becomes At this point, the arithmetic processing unit 20
The pressed switches are the switches 12a, 12d and 12
It cannot be determined which is g.

【0011】このため、次に信号出力部16の各出力ポ
ートO1,O2およびO3からキースキャン信号を出力
する。そして、キースキャン信号の1周期目の時間t3
および2周期目の時間t4で出力ポートO3からそれぞ
れローレベル信号が発せられたとき、入力ポートI1に
ローレベル信号が入力されており、また、出力ポートO
1およびO2からローレベル信号が出力されたときに
は、入力ポートI1にはローレベル信号が入力されてい
ないことから、演算処理部20はスイッチ12gが確実
に押されていると判断する。
Therefore, next, the key scan signal is output from each of the output ports O1, O2 and O3 of the signal output section 16. Then, the time t3 of the first cycle of the key scan signal
When the low level signal is output from the output port O3 at the time t4 of the second cycle, the low level signal is input to the input port I1, and the output port O3 is output.
When the low level signal is output from 1 and O2, the low level signal is not input to the input port I1. Therefore, the arithmetic processing unit 20 determines that the switch 12g is reliably pressed.

【0012】そして、その時点すなわち時間t4の時点
で演算処理部20は信号出力部16からのキースキャン
信号の出力を停止させるとともに、スイッチ12gが接
続されている出力ポートO3の出力だけをローレベルに
固定し、出力ポートO1およびO2の出力はハイレベル
に固定する。すなわち、信号出力部16は、スイッチ1
2gが閉じたことを検出した後には、キースキャン信号
ではなくノイズ源とならない定常信号を出力する。
At that time, that is, at time t4, the arithmetic processing unit 20 stops the output of the key scan signal from the signal output unit 16, and outputs only the output of the output port O3 to which the switch 12g is connected to the low level. The output of the output ports O1 and O2 is fixed to the high level. That is, the signal output unit 16 includes the switch 1
After detecting that 2g is closed, a steady signal that does not become a noise source is output instead of the key scan signal.

【0013】このようにして、スイッチ12gが押され
ていると判断すると、演算処理部20はスイッチ12g
がテープ再生スイッチであることから、テープ再生部2
2をコントロールしてテープを再生し、再生音は増幅器
24で増幅され、スピーカ26から出力される。次に、
図2に示す時間t5の時点で、押されていたスイッチ1
2gが離されると、スイッチ12gの接点は開き、入力
ポートI1の入力信号はハイレベルとなる。この入力ポ
ートI1に入力されるハイレベル信号を演算処理部20
が検出して、閉じていたスイッチ12gが開いたと判断
する。そして、この時点で各出力ポートO1〜O3の出
力信号と各入力ポートI1〜I3の入力信号を、初期状
態に戻す。
In this way, when it is determined that the switch 12g is pressed, the arithmetic processing unit 20 is switched to the switch 12g.
Is a tape playback switch, the tape playback unit 2
2 is controlled to reproduce the tape, and the reproduced sound is amplified by the amplifier 24 and output from the speaker 26. next,
At the time t5 shown in FIG. 2, the switch 1 that has been pressed.
When 2g is separated, the contact of the switch 12g opens and the input signal of the input port I1 becomes high level. The high-level signal input to the input port I1 is processed by the arithmetic processing unit 20.
Detects and detects that the closed switch 12g is opened. Then, at this time, the output signals of the output ports O1 to O3 and the input signals of the input ports I1 to I3 are returned to the initial state.

【0014】このような、スイッチ入力検出装置10の
演算処理部20の動作は、図3に示すフロー図に基づい
て行われる。まず、ステップS1において、信号出力部
16の各出力ポートからの出力信号を全てローレベルに
する。そして、ステップS3に進んで、信号入力部18
の各入力ポートに入力される入力信号のいずれかがロー
レベルになったかどうかを判断する。ステップS3にお
いて、いずれの入力ポートにもローレベル信号が入力さ
れなかった場合には、ローレベル信号が入力されるまで
待機する。
The operation of the arithmetic processing unit 20 of the switch input detection device 10 is performed based on the flow chart shown in FIG. First, in step S1, all output signals from the output ports of the signal output unit 16 are set to low level. Then, in step S3, the signal input unit 18
It is determined whether any one of the input signals input to each input port of has become low level. In step S3, when the low level signal is not input to any of the input ports, the process waits until the low level signal is input.

【0015】ステップS3において、いずれかの入力ポ
ートにローレベル信号が入力されたと判断すると、ステ
ップS5に進んでキースキャン信号を信号出力部16の
各出力ポートから出力する。そして、ステップS7に進
んで、キースキャン信号に応答した信号入力部のいずれ
かの入力ポートからの入力信号によって、どのスイッチ
がオンされたかを判断したかどうかが判定される。ステ
ップS7において、まだどのスイッチがオンしたかが判
断されていない場合には、ステップS5に戻って2周期
目のキースキャン信号を出力する。
When it is determined in step S3 that the low level signal is input to any of the input ports, the process proceeds to step S5, and the key scan signal is output from each output port of the signal output section 16. Then, the process proceeds to step S7, and it is determined whether or not it has been determined which switch has been turned on by the input signal from any one of the input ports of the signal input unit in response to the key scan signal. If it is not determined in step S7 which switch has been turned on, the process returns to step S5 and the key scan signal for the second cycle is output.

【0016】ステップS7において、どのスイッチがオ
ンしたかが判断された場合には、ステップS9に進み、
キースキャン信号を停止してスイッチをオフしたことを
判断できる定常信号を出力する。そして、ステップS1
1に進み、スイッチがオフされたかどうかを判断する。
ステップS11においてスイッチがオフされていなかっ
た場合には、待機する。ステップS11において、スイ
ッチがオフされた場合には、ステップS1に戻り、電源
が落とされるまでステップS1〜S11の処理を繰り返
し行う。
When it is determined in step S7 which switch is turned on, the process proceeds to step S9,
It outputs a steady signal that can determine that the switch has been turned off by stopping the key scan signal. And step S1
Proceed to 1 to determine if the switch has been turned off.
If the switch is not turned off in step S11, the process stands by. When the switch is turned off in step S11, the process returns to step S1 and the processes of steps S1 to S11 are repeated until the power is turned off.

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

【図1】この発明の一実施例を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of the present invention.

【図2】図1に示す実施例の動作を示すタイミング図で
ある。
FIG. 2 is a timing diagram showing the operation of the embodiment shown in FIG.

【図3】図1に示す演算処理部の動作を示すフロー図で
ある。
3 is a flowchart showing the operation of the arithmetic processing unit shown in FIG.

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

10 …スイッチ入力検出装置 12a〜12i …スイッチ 14 …キーマトリクス 16 …信号出力部 18 …信号入力部 20 …演算処理部 10 ... Switch input detection device 12a-12i ... Switch 14 ... Key matrix 16 ... Signal output part 18 ... Signal input part 20 ... Arithmetic processing part

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】複数のスイッチのそれぞれの接点の一方を
行毎に配線しかつ接点の他方を列毎に配線したキーマト
リクスと、前記キーマトリクスの前記行毎に配線されて
各々のスイッチの開閉動作を検出するための検出信号を
出力する信号出力手段と、前記キーマトリクスの前記列
毎に配線されて前記スイッチの開閉によって前記キーマ
トリクスから出力される信号を受ける信号入力手段とを
備え、前記信号出力手段から前記行毎に時間的に異なる
パルスを出力して前記信号入力手段で入力信号と前記パ
ルスとのタイミングの一致により前記複数のスイッチの
いずれが閉じたかを検出する、スイッチ入力検出装置に
おいて、 いずれかのスイッチが閉じたことを検出した後に前記信
号出力部から前記パルスに代えてその閉じたスイッチが
開いた状態になることを検出するための定常信号を出力
するようにしたことを特徴とする、スイッチ入力検出装
置。
1. A key matrix in which one of the contacts of each of a plurality of switches is wired in each row and the other of the contacts is wired in each column, and each switch is opened / closed by being wired in each row of the key matrix. Signal output means for outputting a detection signal for detecting an operation, and signal input means wired for each column of the key matrix to receive a signal output from the key matrix by opening / closing the switch, A switch input detection device that outputs a pulse that differs temporally for each row from the signal output means, and that the signal input means detects which of the plurality of switches is closed by coincidence of the timing of the input signal and the pulse. In the case where the closed switch is opened in place of the pulse from the signal output unit after detecting that one of the switches is closed, A switch input detection device, which is configured to output a steady signal for detecting that the switch input state is reached.
JP4205481A 1992-07-31 1992-07-31 Switch input detector Pending JPH0651895A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4205481A JPH0651895A (en) 1992-07-31 1992-07-31 Switch input detector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4205481A JPH0651895A (en) 1992-07-31 1992-07-31 Switch input detector

Publications (1)

Publication Number Publication Date
JPH0651895A true JPH0651895A (en) 1994-02-25

Family

ID=16507573

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4205481A Pending JPH0651895A (en) 1992-07-31 1992-07-31 Switch input detector

Country Status (1)

Country Link
JP (1) JPH0651895A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010218025A (en) * 2009-03-13 2010-09-30 Rhythm Watch Co Ltd Key input device and clock
KR101475675B1 (en) * 2013-12-20 2014-12-23 현대다이모스(주) Switch for vehicle seat

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010218025A (en) * 2009-03-13 2010-09-30 Rhythm Watch Co Ltd Key input device and clock
KR101475675B1 (en) * 2013-12-20 2014-12-23 현대다이모스(주) Switch for vehicle seat

Similar Documents

Publication Publication Date Title
KR970071201A (en) Data Synchronization Method and Circuit Using Timeout Counter
JPH0651895A (en) Switch input detector
KR920015359A (en) 2 signal simultaneous display circuit and method through screen division
KR970028940A (en) Signal Gain Control Device and Method Using Intelligent Envelope Detector
JPH04258885A (en) Semiconductor memory device
KR970072653A (en) Sound quality control device and volume sound quality control device
KR100211255B1 (en) Circuit and method for searching audio non-signal recorded period
JP3055266B2 (en) Voice switching control device
KR100199845B1 (en) Non-signal input processing method
JPH044480U (en)
KR900008093B1 (en) Fast winding device for video tape
JPH0142069Y2 (en)
KR930006892Y1 (en) Auto-repeat circuit for vcr
KR910013248A (en) Screen playback method and device
JP2808600B2 (en) Sync separation circuit
KR100207256B1 (en) A testing method of karaoke score-marking of complex system
KR970024938A (en) Automatic output switching device of audio / video signal and its method
KR960013015B1 (en) Method for alarming/recording type of tape
JP2517429B2 (en) Tone multi-mode discrimination circuit
KR920015316A (en) No signal recording prevention device and method
KR960039885A (en) Video terminal automatic switching device of TV
KR970050541A (en) Cassette player control device using earphone
JPH03293833A (en) Reception circuit
KR970002984A (en) Input line automatic selection device of video cassette recorder
JPH0429474A (en) Digital signal switching device

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19990525