JPH09270685A - Operation device - Google Patents

Operation device

Info

Publication number
JPH09270685A
JPH09270685A JP10465996A JP10465996A JPH09270685A JP H09270685 A JPH09270685 A JP H09270685A JP 10465996 A JP10465996 A JP 10465996A JP 10465996 A JP10465996 A JP 10465996A JP H09270685 A JPH09270685 A JP H09270685A
Authority
JP
Japan
Prior art keywords
switches
operated
resistors
key
input
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.)
Withdrawn
Application number
JP10465996A
Other languages
Japanese (ja)
Inventor
Kazuhiro Miwa
一博 三輪
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.)
Nippon Columbia Co Ltd
Original Assignee
Nippon Columbia 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 Nippon Columbia Co Ltd filed Critical Nippon Columbia Co Ltd
Priority to JP10465996A priority Critical patent/JPH09270685A/en
Publication of JPH09270685A publication Critical patent/JPH09270685A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Analogue/Digital Conversion (AREA)
  • Electronic Switches (AREA)

Abstract

PROBLEM TO BE SOLVED: To execute lots of operations with a few operation keys. SOLUTION: A reference voltage Vref is given to an input terminal of a 1-chip microcomputer having an A/D converter function via a resistor R5. Plural series connection resistors R1-R4 are connected between the input terminal and ground and switches SW1-SW4 closed through key operation are provided in parallel with the plural series connection resistors R1-R4. Keys operated multiply are discriminated by comparing the input voltage resulting from combinations of plural switches with a content of a table representing a data range. A control output is outputted from the result of discrimination and lots of different operation commands are made.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、操作キー等の複数
のキーのうち操作されたキーの判別に関するものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to discrimination of operated keys among a plurality of keys such as operation keys.

【0002】[0002]

【従来の技術】従来、AD変換機能を有したキーの認識
を行う回路は図3に示すように操作部3’の複数のキー
スイッチSW1〜n(図3ではn=4)の一端が接地され他
端が直列に複数の抵抗R1〜nの接続点に接続される。
2. Description of the Related Art Conventionally, as shown in FIG. 3, a circuit for recognizing a key having an AD conversion function has one end of a plurality of key switches SW1 to SWn (n = 4 in FIG. 3) of an operating section 3'grounded. The other end is connected in series to the connection point of the resistors R1 to Rn.

【0003】抵抗Rn とキースイッチSWn の接続点に
基準入力電圧Vref が抵抗Rn+1 を介し供給され1チッ
プマイコンの入力に設けられたAD変換器2に入力され
る。AD変換器2にてAD変換された値は1チップマイ
コン1で処理され、キースイッチSW1〜nのどれが操作
されたかをメモリ内に予め記憶された値と比較し判別さ
れてキースイッチの操作が成された指令に従った動作の
制御が成される。
A reference input voltage Vref is supplied to a connection point between the resistor Rn and the key switch SWn via a resistor Rn + 1 and is input to an AD converter 2 provided at the input of the one-chip microcomputer. The value converted by the AD converter 2 is processed by the one-chip microcomputer 1, and which of the key switches SW1 to SWn is operated is compared with the value stored in the memory in advance to be discriminated and the key switch is operated. The operation is controlled according to the command issued.

【0004】[0004]

【発明が解決しようとする課題】従来のキースイッチが
多重操作されたとき、キースイッチの一端が共通に接地
されているためにAD入力側に最も近いキースイッチが
操作されたと認識され、多重操作による指令をすること
ができなかった。本発明は少ないキースイッチで多種の
操作指令を成すことを目的とするものである。
When the conventional key switch is operated in multiple, it is recognized that the key switch closest to the AD input side is operated because one end of the key switch is commonly grounded, and the multiple operation is performed. I couldn't order. An object of the present invention is to issue various operation commands with a small number of key switches.

【0005】[0005]

【課題を解決するための手段】本発明は、AD変換器の
基準入力電圧を供給する基準電圧供給手段と、前記基準
電圧から抵抗(R n+1)を介し複数の抵抗(Rn〜1)を直列
接続し前記AD変換器の入力端間に接続し、前記複数の
抵抗(R1〜n)の各々に並列に接続され操作手段により接
又は断されるスイッチ手段と、前記操作手段により操作
された前記スイッチ手段の接又は断による電圧値を検出
し判別する判別手段と、前記判別手段の判別により前記
操作手段の操作に従った制御出力をする手段を具備する
操作装置である。
According to the present invention, reference voltage supply means for supplying a reference input voltage of an AD converter and a plurality of resistors (Rn-1) via the resistor (Rn + 1) from the reference voltage are provided. Connected in series and connected between input terminals of the AD converter, connected in parallel to each of the plurality of resistors (R1 to n) and connected or disconnected by operating means, and operated by the operating means. Further, the operating device comprises a discriminating means for detecting and discriminating a voltage value due to the contact or disconnection of the switch means, and means for performing control output according to the operation of the operating means by the discrimination of the discriminating means.

【0006】又、本発明は、抵抗R1〜n のインピーダ
ンス値をr1〜rnとしたときr1<r2,r1+r2<r
3,・・・,r1+r2+・・・+rn<rn+1となるよう
に成す操作装置である。本発明は複数の操作手段が多重
操作された場合でも操作された組み合わせ電圧値を予め
記憶し判別することができるので少ない操作手段で多種
類の操作指令を成すことができる操作装置である。
Further, in the present invention, when the impedance values of the resistors R1 to n are r1 to rn, r1 <r2, r1 + r2 <r.
3, ..., r1 + r2 + ... + rn <rn + 1. The present invention is an operating device capable of issuing various types of operation commands with a small number of operating means, because the operated combined voltage value can be stored and discriminated in advance even when a plurality of operating means are operated multiple times.

【0007】[0007]

【発明の実施形態】本発明の実施例を説明する。図1は
本発明の一実施例を示す回路図である。本発明の操作装
置には1チップマイコン1を有し装置を制御するための
指令が出される。
Embodiments of the present invention will be described. FIG. 1 is a circuit diagram showing one embodiment of the present invention. The operating device of the present invention has a one-chip microcomputer 1 and issues commands for controlling the device.

【0008】1チップマイコン1の入力にAD変換器2
を有し、入力された電圧をAD変換し8ビット又は16
ビットのデジタルデータとしメモリに一時記憶し、1チ
ップマイコン1内に予め記憶されたテーブルの域値Cと
比較して操作部3のキー入力による指令が何であるかの
判断が成される。
The AD converter 2 is connected to the input of the one-chip microcomputer 1.
With 8 bits or 16
Bit digital data is temporarily stored in the memory and compared with the threshold value C of a table stored in advance in the one-chip microcomputer 1 to determine what the command by the key input of the operation unit 3 is.

【0009】1チップマイコン1は、基準電圧としてV
ref が供給される。又、基準電圧Vref から抵抗R5 を
介し1チップマイコン1内に設けられたAD変換器2の
入力端へ接続され、更に複数の抵抗R1,R2,R3,R4
が直列接続され、入力端と接地間に接続される。
The 1-chip microcomputer 1 uses V as a reference voltage.
ref is supplied. Further, the reference voltage Vref is connected to the input terminal of the AD converter 2 provided in the one-chip microcomputer 1 through the resistor R5, and further, a plurality of resistors R1, R2, R3, R4.
Are connected in series and are connected between the input end and ground.

【0010】複数の抵抗R1〜R4に、スイッチSW1〜
SW4がそれぞれ並列に接続され、抵抗R1〜R4はキー
入力操作によりスイッチSW1〜SW4によりそれぞれ短
絡されるように成される。抵抗R1〜R5の抵抗値をr1
〜r5とするとスイッチSW1〜SW4が単独で短絡され
た場合と、キーの多重操作(同時多重押し)が成されて複
数のスイッチが短絡された場合のAD変換器2への入力
電圧Vは V=A・Vref/(1+A) 但し A=(r1+r2+r3+r4−B)/r5 Bは短絡された抵抗値の合計 で表される。
A plurality of resistors R1 to R4 are connected to switches SW1 to SW1.
SW4 is connected in parallel, and the resistors R1 to R4 are short-circuited by the switches SW1 to SW4 by a key input operation. The resistance value of resistors R1 to R5 is r1
When r5 is set to r5, the input voltage V to the AD converter 2 is V when the switches SW1 to SW4 are short-circuited independently and when a plurality of switches are short-circuited (simultaneous multiple pressing) to short-circuit a plurality of switches. = A · Vref / (1 + A) However, A = (r1 + r2 + r3 + r4-B) / r5B is represented by the sum of the short-circuited resistance values.

【0011】抵抗値をr1<r2,r1+r2<r3,・・
・,r1+r2+r3+r4<r5となるようにすると、r1
とr2 のスイッチSW1 及びSW2 が短絡状態にキー
操作がされたときの抵抗値はr2 とr3 の間の値に、r
3 とr1 又はr2 とが多重キー操作されスイッチSW3
とSW1 又はSW2 とが短絡されたときの抵抗値はr3
とr4 の間の値に、同様にr4 とr1 又はr2 又はr3
による多重キー操作がされた場合はr5 とr4 との間の
値に抵抗値がなるように各抵抗値を決めて全ての多重短
絡の状態を異ならしめて1チップマイコン1のメモリに
予め域値Cのテーブルを記憶しておきこの域値Cと比較
して判別することができるようになされる。 基準入力
電圧Vrefにより入力電圧がAD変換されたとき、多
重操作により複数同時にスイッチが押圧されたときの入
力電圧値を判別することが確実にできるように域値Cは
各操作指令の状態の電圧値の略中間の値に予めメモリに
データのテーブルとして記憶され、基準電圧の変動及び
抵抗値のバラツキ誤差等による誤動作が発生する確率を
減らすようにしている。
The resistance values are r1 <r2, r1 + r2 <r3, ...
.., r1 + r2 + r3 + r4 <r5, r1
And r2 switches SW1 and SW2 are short-circuited, the key resistance is between r2 and r3.
3 and r1 or r2 are operated by multiple keys and switch SW3
When SW1 and SW1 or SW2 are short-circuited, the resistance value is r3
Between r4 and r4, as well as r4 and r1 or r2 or r3
When the multiple key operation is performed by the above, each resistance value is determined so that the resistance value becomes a value between r5 and r4, all the multiple short circuit states are made different, and the threshold value C is stored in advance in the memory of the one-chip microcomputer 1. The table is stored and it can be discriminated by comparing with the threshold value C. When the input voltage is AD-converted by the reference input voltage Vref, the threshold value C is the voltage in the state of each operation command so that it is possible to surely determine the input voltage value when a plurality of switches are simultaneously pressed by multiple operations. A value approximately in the middle of the values is stored in advance in the memory as a data table to reduce the probability of malfunction due to variations in the reference voltage, variations in resistance, and the like.

【0012】R1=r,R2=2r,R3=4r,R4=8
r及び R5=16rとしたときの多重キー操作指令につ
いて図2に示すフローチャートにより説明する。キー操
作部3のキーが操作されスイッチSW1 及びSW4 が同
時に短絡したとき、AD変換器2の入力端の電圧V1-4
は、V1-4=(R2+R3)Vref/(R2+R3+R5)=3Vr
ef /11となり、キー操作がされないときの電圧V0は
V0=(R1+R2+R3+R4)Vref/(R1+R2+R3+R
4+R5)=15Vref /31であり、電圧の変動があっ
たことを1チップマイコン1が検出してキー操作がされ
たと判定する(S1)。
R1 = r, R2 = 2r, R3 = 4r, R4 = 8
The multiple key operation command when r and R5 = 16r will be described with reference to the flowchart shown in FIG. When the keys of the key operation unit 3 are operated and the switches SW1 and SW4 are short-circuited at the same time, the voltage V1-4 at the input end of the AD converter 2
Is V1-4 = (R2 + R3) Vref / (R2 + R3 + R5) = 3Vr
ef / 11, and the voltage V0 when no key is operated is V0 = (R1 + R2 + R3 + R4) Vref / (R1 + R2 + R3 + R)
4 + R5) = 15Vref / 31, and the one-chip microcomputer 1 detects that the voltage has fluctuated and determines that the key operation has been performed (S1).

【0013】S1でキー操作がされたとき、AD変換器
2でデジタルデータに変換されたデータをメモリに一時
記憶する(S2)。メモリに予め記憶されたテーブルの域
値Cを大から比較していき、S2で一時記憶されたデー
タがどの域値Cの値の範囲に含まれるかを域値Cより小
か(S3)によりを判別する。
When the key is operated in S1, the data converted into digital data by the AD converter 2 is temporarily stored in the memory (S2). The threshold values C of the table stored in advance in the memory are compared from the largest value, and the range of the threshold value C to which the data temporarily stored in S2 is included depends on whether the threshold value C is smaller than the threshold value C (S3). To determine.

【0014】テーブルの域値Cにより例えばスイッチS
W1が単独で操作されたか、又はスイッチSW1 及びS
W4 が短絡されたと判別し複数の操作キーが操作された
ときの指令状態を検知する(S4)。
According to the threshold value C of the table, for example, the switch S
W1 was operated alone or switches SW1 and S
It is determined that W4 is short-circuited and the command state when a plurality of operation keys are operated is detected (S4).

【0015】操作キーによりSW1 及びSW4 が同時に
多重短絡されたことを検知し、1チップマイコン1から
操作キーに応じた制御出力が出され装置の制御がなされ
る(S5)。
The operation keys detect that SW1 and SW4 are simultaneously short-circuited, and the one-chip microcomputer 1 outputs a control output according to the operation keys to control the apparatus (S5).

【0016】同様に操作キーが単独に操作された場合に
もAD変換器2によりデジタル変換されたデータとテー
ブルとして記憶された域値Cと対比することによってど
のスイッチが短絡されたかを判別することができ、AD
変換器2によって高精度のデジタル値に変換され、多重
に操作キーが操作された場合でもどのキーが操作された
かを正確に判別することができるので少ない操作キーで
複雑な指令操作をすることができる装置を提供すること
ができる。又図2の説明ではテーブルの域値の大きい値
から比較する場合を説明したが、小から大きい域値に向
かい比較しても同様に判別することが出来る。
Similarly, even when the operation key is operated independently, it is possible to determine which switch is short-circuited by comparing the data digitally converted by the AD converter 2 with the threshold value C stored as a table. Can be done, AD
The converter 2 converts it into a high-precision digital value, and even when multiple operation keys are operated, it is possible to accurately determine which key has been operated, so that complex command operations can be performed with a small number of operation keys. It is possible to provide a device that can. Further, in the description of FIG. 2, the case where the comparison is performed from the larger value of the threshold value of the table has been described, but the same determination can be made when the comparison is performed from the smaller value to the greater threshold value.

【0017】[0017]

【発明の効果】本発明によれば、操作部の多重操作を正
確に判別するので少ない操作部で多種の指令を実行させ
ることができる。
According to the present invention, since multiple operations of the operating section are accurately discriminated, it is possible to execute various commands with a small number of operating sections.

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

【図1】本発明による操作装置の一実施例を示す回路
図。
FIG. 1 is a circuit diagram showing an embodiment of an operating device according to the present invention.

【図2】本発明の動作の一例を説明するフローチャー
ト。
FIG. 2 is a flowchart illustrating an example of the operation of the present invention.

【図3】従来例を示す回路図。FIG. 3 is a circuit diagram showing a conventional example.

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

1 1チップマイコン 2 AD変換器 3 操作部 1 1-chip microcomputer 2 AD converter 3 Operation unit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 AD変換器の基準入力電圧を供給する基
準電圧供給手段と、前記基準電圧から抵抗(R n+1)を介
し複数の抵抗(Rn〜1)を直列接続し前記AD変換器の入
力端間に接続し、前記複数の抵抗(R1〜n)の各々に並列
に接続され操作手段により接又は断されるスイッチ手段
と、前記操作手段により操作された前記スイッチ手段の
接又は断による電圧値を検出し判別する判別手段と、前
記判別手段の判別により前記操作手段の操作に従った制
御出力をする手段を具備する操作装置。
1. A reference voltage supply means for supplying a reference input voltage to an AD converter, and a plurality of resistors (R n to 1) connected in series from the reference voltage via a resistor (R n + 1). Switch means connected between the input ends of the switch and connected in parallel to each of the plurality of resistors (R1 to n) and connected or disconnected by the operation means, and connection or disconnection of the switch means operated by the operation means. An operating device comprising: a discriminating means for detecting and discriminating a voltage value by the discriminating means, and means for performing a control output according to the operation of the operating means by the discrimination by the discriminating means.
【請求項2】 抵抗R1〜n のインピーダンス値をr1〜
rnとしたときr1<r2,r1+r2<r3,・・・,r1
+r2+・・・+rn<rn+1となるように成す請求項1
記載の操作装置。
2. The impedance value of the resistors R1 to n is r1 to
When rn, r1 <r2, r1 + r2 <r3, ..., r1
2. The method according to claim 1, wherein + r2 + ... + rn <rn + 1.
The operating device as described.
JP10465996A 1996-04-02 1996-04-02 Operation device Withdrawn JPH09270685A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10465996A JPH09270685A (en) 1996-04-02 1996-04-02 Operation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10465996A JPH09270685A (en) 1996-04-02 1996-04-02 Operation device

Publications (1)

Publication Number Publication Date
JPH09270685A true JPH09270685A (en) 1997-10-14

Family

ID=14386600

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10465996A Withdrawn JPH09270685A (en) 1996-04-02 1996-04-02 Operation device

Country Status (1)

Country Link
JP (1) JPH09270685A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100481500B1 (en) * 2002-07-29 2005-04-07 삼성전자주식회사 Micom Interface of an image signal receiver
KR100481501B1 (en) * 2002-07-29 2005-04-07 삼성전자주식회사 Micom Interface of an image signal receiver
JP2008010277A (en) * 2006-06-28 2008-01-17 Kyocera Corp Switching circuit, headset device, switch detection method, and call device
JP2009151455A (en) * 2007-12-19 2009-07-09 Funai Electric Co Ltd Key input device
JP2013004052A (en) * 2011-06-22 2013-01-07 Marusan Name:Kk Position sensor
CN104426520A (en) * 2013-09-10 2015-03-18 纬创资通股份有限公司 Switching Circuit And Electronic Device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100481500B1 (en) * 2002-07-29 2005-04-07 삼성전자주식회사 Micom Interface of an image signal receiver
KR100481501B1 (en) * 2002-07-29 2005-04-07 삼성전자주식회사 Micom Interface of an image signal receiver
JP2008010277A (en) * 2006-06-28 2008-01-17 Kyocera Corp Switching circuit, headset device, switch detection method, and call device
JP2009151455A (en) * 2007-12-19 2009-07-09 Funai Electric Co Ltd Key input device
JP2013004052A (en) * 2011-06-22 2013-01-07 Marusan Name:Kk Position sensor
CN104426520A (en) * 2013-09-10 2015-03-18 纬创资通股份有限公司 Switching Circuit And Electronic Device

Similar Documents

Publication Publication Date Title
EP1156587B1 (en) Method and apparatus for detecting switch closures
JP3505119B2 (en) Input circuit
JPH09270685A (en) Operation device
CN100353297C (en) Input detection device and related method
JPH05181586A (en) N key roll-over circuit
US7391343B2 (en) Input device
JP3636232B2 (en) Integrated circuit capable of selecting function and method for selecting function
EP1047187B1 (en) Pre-amplifier circuit
JPH05313803A (en) Key switch input circuit
CN110376421B (en) Detection circuit for analog input signal
US5702625A (en) Encoder key input device for a microwave oven and interrupt processing method using the same
JP3403347B2 (en) Key switch circuit
JPS61288606A (en) Protector for final stage of power amplifier
US5912563A (en) Trinary signal apparatus and method
JPH06124155A (en) Keyboard
KR0184500B1 (en) Optical coupler data detecting method
JP3164697B2 (en) A / D converter
KR100239848B1 (en) The method and device for device recognition by single connector
JP2500429B2 (en) Keyboard input device
JPS62144220A (en) Electrostatic capacity type keyboard switch
JPH06223461A (en) Input circuit for micro computer
JPH08152953A (en) Resistant film tablet device
US6982665B2 (en) Signal filtering system and method for a computer system remote controller
JPH09196975A (en) Signal output circuit and peak detection circuit
KR100281174B1 (en) Electronic proportional valve drive control circuit

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20030603