JP2000137567A - Key switch circuit - Google Patents
Key switch circuitInfo
- Publication number
- JP2000137567A JP2000137567A JP10326172A JP32617298A JP2000137567A JP 2000137567 A JP2000137567 A JP 2000137567A JP 10326172 A JP10326172 A JP 10326172A JP 32617298 A JP32617298 A JP 32617298A JP 2000137567 A JP2000137567 A JP 2000137567A
- Authority
- JP
- Japan
- Prior art keywords
- key
- circuit
- switch
- resistor
- key switch
- 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
Links
- 230000008859 change Effects 0.000 claims abstract description 12
- 230000000994 depressogenic effect Effects 0.000 abstract 1
- 230000006870 function Effects 0.000 description 26
- 238000010586 diagram Methods 0.000 description 9
- 230000004044 response Effects 0.000 description 5
- 238000013500 data storage Methods 0.000 description 4
- 238000000034 method Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 239000013256 coordination polymer Substances 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
Landscapes
- Input From Keyboards Or The Like (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は、キースイッチ回路
に関し、特に、キースイッチ群のうちのいずれのキース
イッチが操作されたかを電圧値変化に対応付けて出力す
るキースイッチ回路の改良に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a key switch circuit, and more particularly to an improvement in a key switch circuit that outputs which key switch of a key switch group is operated in association with a change in voltage value.
【0002】[0002]
【従来の技術】この種のキースイッチ回路は、電子機器
に対して少ない接続本数でもって多くのキー情報を伝達
することができるのでCDプレーヤやカセットテーププ
レーヤ等の電子機器における動作指令用のリモコン等々
に広く用いられていてる。その一例を第1従来例として
図5を用いて説明する。2. Description of the Related Art A key switch circuit of this type can transmit a large amount of key information to an electronic device with a small number of connections, so that a remote controller for operating commands in an electronic device such as a CD player or a cassette tape player can be provided. It is widely used. An example will be described as a first conventional example with reference to FIG.
【0003】図5において、電子機器1に内蔵されたC
PU(図示せず)には入力ポートVinと電源出力Vddと
接地端Gが設けられ、これらの3本のラインにキー回路
2とホールド用スイッチ3で構成されるキースイッチ回
路が着脱自在に接続し得るような、例えば、「停止,再
生,早送り,早戻し」の4つの動作指令を与えるための
リモコン装置として構成されている。[0003] In FIG. 5, C
A PU (not shown) is provided with an input port Vin, a power supply output Vdd, and a ground terminal G, and a key switch circuit composed of a key circuit 2 and a hold switch 3 is detachably connected to these three lines. For example, it is configured as a remote controller for giving four operation commands such as “stop, playback, fast forward, and fast reverse”.
【0004】即ち、キー回路2は、電源出力Vddの端と
入力ポートVinの端に抵抗R0が接続され、入力ポート
Vinに4つの抵抗R1〜抵抗R4が直列接続されてい
る。この抵抗R1,R2の接続点と、抵抗R2,R3の
接続点と、抵抗R3,R4の接続点と、抵抗R4の端部
のそれぞれに、4つのキースイッチS1〜S4のそれぞ
れの片端が接続され、それぞれの他端が共通接続されて
ホールド用スイッチ3を介して接地されている。That is, in the key circuit 2, a resistor R0 is connected to an end of the power output Vdd and an end of the input port Vin, and four resistors R1 to R4 are connected in series to the input port Vin. One end of each of the four key switches S1 to S4 is connected to each of the connection point of the resistances R1 and R2, the connection point of the resistances R2 and R3, the connection point of the resistances R3 and R4, and the end of the resistance R4. The other end is connected in common and grounded via the hold switch 3.
【0005】ホールド用スイッチ3は、キーの誤操作を
防止するために設けられ、平生時には図示のようにオン
されて接地端に接続され、ホールド時には下方に移動さ
れてオフされキー回路2が接地端から浮かされた状態に
される。The hold switch 3 is provided to prevent erroneous operation of the key, and is turned on as shown in the drawing and connected to the ground terminal during normal life, and is moved downward and turned off during hold to turn the key circuit 2 on and off. It is made to float.
【0006】従って、ホールド用スイッチ3が図示の位
置(オン状態)にされている平生時には、入力ポートV
inへの入力電圧が、キースイッチS1〜S4のいずれが
操作されたかに応じて4種に変化し、この変化を電子機
器1に設けられたROMデータ(後述説明する図7)に
基づいて識別することによって求められる。Therefore, when the hold switch 3 is in the position shown in FIG.
The input voltage to in changes to four types according to which of the key switches S1 to S4 is operated, and this change is identified based on ROM data (FIG. 7 described later) provided in the electronic device 1. It is required by doing.
【0007】図6に示すフローチャートのように処理開
始されると、先ず、ステップS1で電子機器1に取り込
まれた入力ポートVinへの電圧(A)がメモリ(図示せ
ず)に格納され、次のステップS2で、前回データと比
較されてデータの差が大きいか否か、換言すればキー入
力変化があったか否かが判定され、NOの場合には、ス
テップS3として電圧(A)がメモリ格納される。When the process is started as shown in the flowchart of FIG. 6, first, the voltage (A) to the input port Vin taken into the electronic device 1 in step S1 is stored in a memory (not shown). In step S2, it is determined whether or not the difference between the data and the previous data is large, in other words, whether or not the key input has changed. If NO, the voltage (A) is stored in the memory as step S3. Is done.
【0008】ステップS2でYESの場合には、次のス
テップS4に進みステップS1で既に取り込まれた電圧
(A)のデータを電圧(B)としてメモリ格納し、前述
ステップS2と同様のステップS5で前回データと比較
されてデータの差が大きいか否か、換言すればキー入力
変化があったか否かが判定され、NOの場合には、ステ
ップS6して電圧(B)がメモリ格納される。If YES in step S2, the flow advances to the next step S4, where the data of the voltage (A) already taken in in step S1 is stored as a voltage (B) in a memory, and in step S5 similar to step S2 described above. It is determined whether or not the difference between the data and the previous data is large, in other words, whether or not there has been a key input change. If NO, the voltage (B) is stored in the memory in step S6.
【0009】ステップS5でYESの場合には、次のス
テップS6に進み、電子機器1に内蔵されたROMデー
タに基づきどのような機能を実行すべきかを選択し、選
択された機能を実行した後にステップS1に戻され、以
後のステップS2〜S7が繰り返し実行される。If YES in step S5, the process proceeds to the next step S6, where a function to be executed is selected based on ROM data built in the electronic device 1, and after the selected function is executed, Returning to step S1, the following steps S2 to S7 are repeatedly executed.
【0010】ステップS7で行われる機能選択は、電子
機器1に内蔵されたROMデータを概念的に示す図7の
ようになっている。The function selection performed in step S7 is as shown in FIG. 7 which conceptually shows ROM data built in the electronic device 1.
【0011】図7に示すROMデータ1aで明らかなよ
うに、ホールド用スイッチ3がオンされた状態では、キ
ー入力が有効とされ、キースイッチS1〜S4のいずれ
が操作されたということに対応して入力ポートVinへの
入力電圧がV1〜V4の4つに変化する。このときの入
力ポートVinへの入力電圧に応じて機能1〜4のいずれ
であるかを判定すれば、どの機能を実行させるという指
令が出たかを認識することができる。As is apparent from the ROM data 1a shown in FIG. 7, when the hold switch 3 is turned on, the key input is validated, which corresponds to the operation of any one of the key switches S1 to S4. As a result, the input voltage to the input port Vin changes to four voltages V1 to V4. By determining which of the functions 1 to 4 according to the input voltage to the input port Vin at this time, it is possible to recognize which function has been commanded to be executed.
【0012】一方、ホールド用スイッチ3がオフされた
状態では、入力ポートVinへの入力電圧が電源出力Vdd
の電圧に固定されてしまうので、実行機能は、機能0、
即ち、現在状態がそのまま保持されることになる。On the other hand, when the hold switch 3 is turned off, the input voltage to the input port Vin changes to the power output Vdd.
The execution function is fixed to the function 0,
That is, the current state is maintained as it is.
【0013】この場合、時間経過とキースイッチS1〜
S4の操作との間には次のようなことがいえる。In this case, the passage of time and the key switches S1 to S1
The following can be said between the operation of S4.
【0014】キースイッチS1〜S4のいずれも押され
ていないときには、入力ポートVinへの入力電圧がVdd
であり、キースイッチS1〜S4のいずれかが押される
と、Vddから「V1〜V4のいずれか」に変化し、離さ
れると「V1〜V4のいずれか」からVddに復旧する。When none of the key switches S1 to S4 is pressed, the input voltage to the input port Vin is Vdd
When any one of the key switches S1 to S4 is pressed, the voltage changes from Vdd to "any of V1 to V4", and when released, the voltage returns from "any of V1 to V4" to Vdd.
【0015】したがって、キースイッチS1〜S4の操
作によって、これに対応付けられた機能が実行されるの
である。Therefore, by operating the key switches S1 to S4, the function corresponding to the operation is executed.
【0016】今までの例は、ホールド動作をハード的に
行う例であるが、ソフト的に行う例もある。この例を第
2従来例として図8を用いて説明する。In the above examples, the hold operation is performed by hardware, but there is also an example in which the hold operation is performed by software. This example will be described as a second conventional example with reference to FIG.
【0017】図8に示すように電子機器4の入力ポート
を2系統、即ち、第1入力ポートVin-aと第2入力ポー
トVin-bとして構成し、前述同様のキー回路2のキース
イッチS1〜S4のそれぞれの共通接続点を接地し、抵
抗R0と抵抗R1の接続点を第1入力ポートVin-aに接
続する。As shown in FIG. 8, the input ports of the electronic device 4 are configured as two systems, that is, a first input port Vin-a and a second input port Vin-b. To S4 are grounded, and the connection point of the resistors R0 and R1 is connected to the first input port Vin-a.
【0018】電源出力Vddにプルアップ抵抗5を介して
第2入力ポートVin-bに接続し、第2入力ポートVin-b
と接地端Gにホールド用スイッチ6を接続する。The power supply output Vdd is connected to the second input port Vin-b via the pull-up resistor 5, and the second input port Vin-b
And the ground switch G are connected to the hold switch 6.
【0019】ホールド用スイッチ6は、キーの誤操作を
防止するために設けられたもので、ホールド時にはオン
されて図示のように接地端に接続され第2入力ポートV
in-b入力が強制的にLレベル(接地電位)とされ、平生
時には下方に移動されてキー回路2されて電源出力Vdd
のHレベルとされる。The hold switch 6 is provided to prevent erroneous operation of the key, and is turned on at the time of hold and connected to the ground terminal as shown in FIG.
The in-b input is forcibly set to the L level (ground potential), and is moved downward during normal life to form the key circuit 2 and the power supply output Vdd
H level.
【0020】そして、キースイッチS1〜S4のいずれ
が押されたかとそれに対応する機能は、図9に概念的に
示すようにされたROMデータ4aのようになってい
る。Then, which one of the key switches S1 to S4 is pressed and the function corresponding to it are as ROM data 4a conceptually shown in FIG.
【0021】図9に示すROMデータ4aで明らかなよ
うに、ホールド用スイッチ6がオフされた状態では、第
2入力ポートVin-bへの入力電圧がVddに固定されるの
で、キー入力が有効とされ、キースイッチS1〜S4の
いずれが操作されたということに対応して第1入力ポー
トVin-aへの入力電圧がV1〜V4の4つに変化する。As is apparent from the ROM data 4a shown in FIG. 9, when the hold switch 6 is turned off, the input voltage to the second input port Vin-b is fixed at Vdd, so that key input is effective. And the input voltage to the first input port Vin-a changes to four, V1 to V4, in response to the operation of any of the key switches S1 to S4.
【0022】このときの第1入力ポートVin-aへの入力
電圧に応じて機能1〜4のいずれであるかを判定すれ
ば、どの機能を実行させるという指令が出たかを認識す
ることができる。If it is determined which of the functions 1 to 4 according to the input voltage to the first input port Vin-a at this time, it is possible to recognize which function is instructed to be executed. .
【0023】一方、ホールド用スイッチ6がオンされた
状態では、第2入力ポートVin-bへの入力電圧が接地電
位に固定されてしまうので、第1入力ポートVin-aにい
かなる信号(V1〜V4)が供給されてもこれが無視さ
れ、実行機能は機能0、即ち、現在状態がそのまま保持
されることになる。On the other hand, when the hold switch 6 is turned on, the input voltage to the second input port Vin-b is fixed to the ground potential, so that any signal (V1 to V1) is applied to the first input port Vin-a. Even if V4) is supplied, this is ignored and the execution function is function 0, that is, the current state is maintained.
【0024】以上のような第1の従来例では、単にキー
を効かなくするだけであるので他の機能を割り付けるよ
うな使い方はできず、ホールド中にキーを押されたのか
ホールドされていないのかをマイクロコンピュータ上で
判断するには第2従来例が一般的であった。In the first conventional example as described above, the key is simply disabled, so that it cannot be used to assign another function, and whether the key is pressed during hold or not held is determined. The second conventional example is generally used to determine the value on a microcomputer.
【0025】[0025]
【発明が解決しようとする課題】第1従来例では、ホー
ルド時に、電子機器の入力ポートにキー回路の出力信号
が伝達されない状態であるために、「いずれのキーも操
作されていない状態」と「ホールド状態」と「キースイ
ッチ回路そのものが接続されていない状態」のいずれで
あるかの識別を行うことができないという問題がある。In the first prior art, since the output signal of the key circuit is not transmitted to the input port of the electronic device at the time of hold, the state is described as "the state in which no key is operated". There is a problem that it is not possible to discriminate between the “hold state” and the “state where the key switch circuit itself is not connected”.
【0026】第2従来例では、ホールド時には、そのホ
ールド信号が電子機器の入力ポートに伝達されるので
「キースイッチ回路そのものが接続されていない状態」
の識別が行えるものの、第2入力ポートが増設されてい
るので、リモコン装置等にこの回路を使用した場合に
は、信号線が1本増えることになり、コストアップにな
ると共に、信号線の断線事故の確率が高くなってしまう
という問題がある。In the second conventional example, at the time of hold, the hold signal is transmitted to the input port of the electronic device, so that "the key switch circuit itself is not connected".
However, since the second input port is added, if this circuit is used in a remote control device or the like, the number of signal lines increases by one, and the cost increases, and the signal line is disconnected. There is a problem that the probability of an accident increases.
【0027】そこで、本発明の目的は、キースイッチ回
路が接続されているかどうかの識別を、電子機器におけ
るCPU等の入力ポートを増加したり、電子機器1への
接続線の本数を増加させたりすることなく行えるキース
イッチ回路を提供することにある。Therefore, an object of the present invention is to determine whether a key switch circuit is connected or not by increasing the number of input ports of a CPU or the like in an electronic device or increasing the number of connection lines to the electronic device 1. It is an object of the present invention to provide a key switch circuit that can be performed without performing any operation.
【0028】[0028]
【課題を解決するための手段】前述の課題を解決するた
め、本発明によるキースイッチ回路は、次のような特徴
的構成を採用している。In order to solve the above-mentioned problems, the key switch circuit according to the present invention employs the following characteristic configuration.
【0029】(1)複数のキースイッチでなるキースイ
ッチ群と、前記キースイッチによる操作指令をホールド
するホールドスイッチと、前記キースイッチ群のうちの
いずれのキースイッチが操作されたかを電圧値変化に対
応付けて出力するキー回路と、前記ホールドスイッチを
操作することによって、前記キー回路の出力を、前記キ
ースイッチ群のうちのいずれのキースイッチも操作され
ていないときに該キー回路に生じる出力電圧とは異なる
特定電圧値に固定するホールド回路と、を具備する。(1) A key switch group composed of a plurality of key switches, a hold switch for holding an operation command by the key switch, and which of the key switches in the key switch group is operated is determined by a voltage value change. By operating the key circuit to output in association with the hold switch, the output of the key circuit is changed to an output voltage generated in the key circuit when none of the key switches in the key switch group is operated. And a hold circuit for fixing to a specific voltage value different from the above.
【0030】(2)複数のキースイッチでなるキースイ
ッチ群と、複数のモードを切り替えるためのモードスイ
ッチと、前記キースイッチ群のうちのいずれのキースイ
ッチが操作されたかを電圧値変化に対応付けて出力する
キー回路と、前記モードスイッチを操作して切り替えら
れ得る複数のモードのそれぞれに対応付けられ、かつ、
前記キースイッチ群のうちのいずれのキースイッチも操
作されていないときに前記キー回路に生じる出力電圧と
は異なる電圧値に設定されたモード回路と、を具備す
る。(2) A key switch group consisting of a plurality of key switches, a mode switch for switching a plurality of modes, and which key switch of the key switch group is operated is associated with a voltage value change. And a key circuit for outputting a plurality of modes that can be switched by operating the mode switch, and
A mode circuit set to a voltage value different from an output voltage generated in the key circuit when none of the key switches in the key switch group is operated.
【0031】(3)前記(1)のキー回路と前記ホール
ド回路を、直列接続抵抗群の始端を抵抗を介して特定電
圧源に接続し、該直列接続抵抗群の各接続点のそれぞれ
を、複数のキースイッチを介して接地し、前記直列接続
抵抗群の終端を、抵抗とホールドスイッチを介して接地
されるように構成する。(3) The key circuit and the hold circuit of the above (1) are connected to a specific voltage source via a resistor at a starting end of a series connection resistor group, and each connection point of the series connection resistor group is It is configured such that it is grounded via a plurality of key switches, and the terminal of the series-connected resistor group is grounded via a resistor and a hold switch.
【0032】(4)前記(2)のキー回路と前記モード
回路を、直列接続抵抗群の始端を抵抗を介して特定電圧
源に接続し、前記直列接続抵抗群の各接続点のそれぞれ
を、複数のキースイッチを介して接地し、前記直列接続
抵抗群の終端を、抵抗とモードスイッチを介して接地さ
れるように構成する。(4) The key circuit and the mode circuit of (2) are connected to a specific voltage source via a resistor at the beginning of the series-connected resistor group, and each connection point of the series-connected resistor group is It is configured such that it is grounded via a plurality of key switches, and the terminal of the series-connected resistor group is grounded via a resistor and a mode switch.
【0033】(5)前記(1)ないし(4)のいずれか
の前記キー回路を、直列接続抵抗群の始端を抵抗を介し
て特定電圧源に接続し、該直列接続抵抗群の各接続点の
それぞれを、複数のキースイッチを介して接地するよう
に構成する。(5) The key circuit according to any one of (1) to (4) is connected to a specific voltage source via a resistor at a starting end of a series connection resistor group, and each connection point of the series connection resistor group is connected. Are configured to be grounded via a plurality of key switches.
【0034】[0034]
【発明の実施の形態】以下、本発明の実施の形態につい
て添付図面を参照しながら説明する。図1は、本発明の
第1の実施の形態によるキースイッチ回路の回路構成を
示す回路ブロック図であり、前述の図5の構成と同様ま
たは類似の部分が多々あり、説明の重複を避けるため
に、同一部分もしくは類似部分には、図5に示す部材符
号と同一の符号を付してその説明を省略し、本発明に関
わる部分を重点的に説明する。Embodiments of the present invention will be described below with reference to the accompanying drawings. FIG. 1 is a circuit block diagram showing a circuit configuration of a key switch circuit according to a first embodiment of the present invention. There are many portions similar or similar to the configuration of FIG. The same or similar parts will be denoted by the same reference numerals as those shown in FIG. 5, and the description thereof will be omitted. The parts related to the present invention will be mainly described.
【0035】この形態によるキースイッチ回路の処理動
作は、図6に示すフローチャートにおけると同様でステ
ップS7の項目が異なるのみであるので、本発明に関わ
る部分を重点的に動作説明する。The processing operation of the key switch circuit according to this embodiment is the same as that in the flow chart shown in FIG. 6, except for the item of step S7. Therefore, the operation relating to the present invention will be mainly described.
【0036】図1の電子機器7に内蔵されたCPU(図
示せず)には入力ポートVinと電源出力Vddと接地端G
が設けられ、これらの3本のラインにキー回路2と抵抗
8とホールド用スイッチ9で構成されるキースイッチ回
路が着脱自在に接続し得るようなリモコン装置として構
成されている。A CPU (not shown) built in the electronic device 7 of FIG. 1 has an input port Vin, a power output Vdd, and a ground terminal G.
And a key switch circuit composed of a key circuit 2, a resistor 8, and a hold switch 9 can be detachably connected to these three lines.
【0037】「キー回路2」と「抵抗8とホールド用ス
イッチ9でなるホールド回路」は、直列接続抵抗群の始
端を抵抗を介して特定電圧源に接続し、該直列接続抵抗
群の各接続点のそれぞれを、複数のキースイッチを介し
て接地し、前記直列接続抵抗群の終端を、抵抗とホール
ドスイッチを介して接地されるように構成されている。The "key circuit 2" and the "hold circuit composed of the resistor 8 and the hold switch 9" connect the starting end of the series-connected resistor group to a specific voltage source via a resistor, and connect each of the series-connected resistor groups. Each of the points is grounded via a plurality of key switches, and the terminal of the series-connected resistor group is grounded via a resistor and a hold switch.
【0038】即ち、キー回路2は、電源出力Vddの端と
入力ポートVinの端に抵抗R0が接続され、入力ポート
Vinに4つの抵抗R1〜抵抗R4が直列接続されてい
る。この抵抗R1,R2の接続点と、抵抗R2,R3の
接続点と、抵抗R3,R4の接続点と、抵抗R4の端部
のそれぞれに、4つのキースイッチS1〜S4のそれぞ
れの片端が接続され、それぞれの他端が共通接続されて
接地されている。That is, in the key circuit 2, the resistor R0 is connected to the end of the power output Vdd and the end of the input port Vin, and four resistors R1 to R4 are connected in series to the input port Vin. One end of each of the four key switches S1 to S4 is connected to each of the connection point of the resistors R1 and R2, the connection point of the resistors R2 and R3, the connection point of the resistors R3 and R4, and the end of the resistor R4. The other ends are commonly connected and grounded.
【0039】抵抗R4とキースイッチS4の接続点は、
抵抗8とホールド用スイッチ9を順次に介して接地され
ている。The connection point between the resistor R4 and the key switch S4 is
Grounded via a resistor 8 and a hold switch 9 sequentially.
【0040】このホールド用スイッチ9は、キーの誤操
作を防止するために設けられたもので、平生時には図示
のようにオフされて接地端から浮かされた状態とされ、
ホールド時には上方に移動されてオンされ、キー回路2
の抵抗R4SキースイッチS4の接続点が抵抗8を介し
て接地されるものである。The hold switch 9 is provided to prevent erroneous operation of the key, and is turned off as shown in FIG.
At the time of hold, it is moved upward and turned on, and the key circuit 2
The connection point of the resistor R4S key switch S4 is grounded via the resistor 8.
【0041】従って、ホールド用スイッチ9が図示の位
置(オフ状態)にされている平生時には、入力ポートV
inへの入力電圧が、キースイッチS1〜S4のいずれが
操作されたかに応じて4種に変化し、この変化を図2に
示すROMデータ7aに基づいて識別することによって
求められる。Therefore, when the hold switch 9 is in the position shown in FIG.
The input voltage to "in" changes into four types depending on which of the key switches S1 to S4 is operated, and this change is determined by identifying the change based on the ROM data 7a shown in FIG.
【0042】図2に示すROMデータ7aで明らかなよ
うに、ホールド用スイッチ9がオフされた状態では、キ
ースイッチS1〜S4のいずれが操作されたということ
に対応して入力ポートVinへの入力電圧がVddから「V
1〜V4」の4つに変化する。このときの入力ポートV
inへの入力電圧に応じて機能1〜4のいずれであるかを
判定すれば、どの機能を実行させるという指令が出たか
を認識することができる。As is apparent from the ROM data 7a shown in FIG. 2, when the hold switch 9 is turned off, an input to the input port Vin is made in response to any one of the key switches S1 to S4 being operated. When the voltage changes from Vdd to "V
1 to V4 ". Input port V at this time
By determining which of the functions 1 to 4 according to the input voltage to in, it is possible to recognize which function has been commanded to be executed.
【0043】一方、ホールド用スイッチ9がオンされた
ホールド状態では、いずれのキーも押されないときに入
力ポートVinへの入力電圧が、Va=Vdd・(r1+r2+r3+r4+r
8)/(r0+r1+r2+r3+r4+r8) とされ、キースイッチS1〜
S4のいずれかが押されたときにはVaから「V1〜V
4」の4つに変化する。このときの入力ポートVinへの
入力電圧に応じて機能5〜8のいずれであるかを判定す
れば、どの機能を実行させるという指令が出たかを認識
することができる。On the other hand, in the hold state where the hold switch 9 is turned on, when no key is pressed, the input voltage to the input port Vin becomes Va = Vdddd (r1 + r2 + r3 + r4 + r
8) / (r0 + r1 + r2 + r3 + r4 + r8)
When any one of S4 is pressed, from Va, “V1 to V
4 ". If it is determined which of the functions 5 to 8 according to the input voltage to the input port Vin at this time, it is possible to recognize which function has been commanded to be executed.
【0044】従って、ホールド用スイッチ9がオフされ
たときには、機能1〜4の4通りの識別が行えホールド
用スイッチ9がオンされたときには、機能5〜8の4通
りである合計8つの識別が行えることになる。Therefore, when the hold switch 9 is turned off, four types of functions 1 to 4 can be identified, and when the hold switch 9 is turned on, a total of eight types of functions 5 to 8 can be identified. You can do it.
【0045】なお、ホールド用スイッチ9がオフされた
ときには機能1〜4は全てホールド状態としているが、
ホールド用スイッチ9をモードスイッチとして用いれ
ば、ホールド用スイッチ9がオフされたときを第1モー
ドとし、オンされたときを第2モードとする8つの機能
を識別させることができる。When the hold switch 9 is turned off, all of the functions 1 to 4 are in the hold state.
When the hold switch 9 is used as a mode switch, it is possible to identify eight functions in which the first mode is set when the hold switch 9 is turned off and the second mode is set when the hold switch 9 is turned on.
【0046】また、キースイッチ回路が電子機器7に接
続されている場合には、入力ポートVinへの供給電圧
が、初期状態(キースイッチS1〜S4のいずれも押さ
れていない状態)でVddまたはVaになるので、キース
イッチ回路の接続有無を識別することができる。When the key switch circuit is connected to the electronic device 7, the supply voltage to the input port Vin is Vdd or Vdd in the initial state (the state in which none of the key switches S1 to S4 is pressed). Since it is Va, it is possible to identify whether or not the key switch circuit is connected.
【0047】次に、本発明の第2の実施の形態によるキ
ースイッチ回路を図3と図4を用いて説明する。Next, a key switch circuit according to a second embodiment of the present invention will be described with reference to FIGS.
【0048】図3に示す電子機器10に内蔵されたCP
U(図示せず)には入力ポートVinと電源出力Vddと接
地端Gが設けられ、これらの3本のラインにキー回路2
と抵抗11,12とモード切替用スイッチ13で構成さ
れるキースイッチ回路が着脱自在に接続し得るようなリ
モコン装置として構成されている。The CP built in the electronic device 10 shown in FIG.
U (not shown) is provided with an input port Vin, a power supply output Vdd, and a ground terminal G.
A key switch circuit composed of resistors 11, 12 and a mode switch 13 is detachably connected to the remote controller.
【0049】「キー回路2」と「抵抗11,12とモー
ド切替用スイッチ13でなるモード回路」は、直列接続
抵抗群の始端を抵抗を介して特定電圧源に接続し、該直
列接続抵抗群の各接続点のそれぞれを、複数のキースイ
ッチを介して接地し、前記直列接続抵抗群の終端を、抵
抗とモードスイッチを介して接地されるように構成され
ている。The "key circuit 2", the "mode circuit comprising the resistors 11, 12 and the mode changeover switch 13" connect the starting end of the series-connected resistor group to a specific voltage source via a resistor, and Are connected to ground via a plurality of key switches, and the ends of the series-connected resistor group are grounded via resistors and a mode switch.
【0050】即ち、キー回路2は、電源出力Vddの端と
入力ポートVinの端に抵抗R0が接続され、入力ポート
Vinに4つの抵抗R1〜抵抗R4が直列接続されてい
る。この抵抗R1,R2の接続点と、抵抗R2,R3の
接続点と、抵抗R3,R4の接続点と、抵抗R4の端部
のそれぞれに、4つのキースイッチS1〜S4のそれぞ
れの片端が接続され、それぞれの他端が共通接続されて
接地されている。That is, in the key circuit 2, the resistor R0 is connected to the end of the power output Vdd and the end of the input port Vin, and four resistors R1 to R4 are connected in series to the input port Vin. One end of each of the four key switches S1 to S4 is connected to each of the connection point of the resistors R1 and R2, the connection point of the resistors R2 and R3, the connection point of the resistors R3 and R4, and the end of the resistor R4. The other ends are commonly connected and grounded.
【0051】抵抗R4とキースイッチS4の接続点は、
抵抗11と抵抗12とモード切替用スイッチ13を順次
に介して接地されている。The connection point between the resistor R4 and the key switch S4 is
Grounded via a resistor 11, a resistor 12, and a mode switch 13 sequentially.
【0052】このモード切替用スイッチ13は、機能の
モードを3つに設定するためのもので、第1モード時に
は符号cで示すように抵抗11と抵抗12が接地端から
浮かされた状態にされ、第2モード時には符号bで示す
ように抵抗12の先端が接地され、第3モード時には符
号aで示すように抵抗11と抵抗12の接続点が接地さ
れるものである。The mode changeover switch 13 is used to set three function modes. In the first mode, the resistors 11 and 12 are floated from the ground terminal as shown by reference numeral c. In the second mode, the tip of the resistor 12 is grounded as shown by reference numeral b, and in the third mode, the connection point between the resistors 11 and 12 is grounded as shown by reference numeral a.
【0053】従って、モード切替用スイッチ13が第1
ないし第3のいずれのモードにされているかに応じて、
キースイッチS1〜S4のいずれが操作されたかに応じ
て入力ポートVinへの入力電圧が変化し、この変化を図
4に示すROMデータ10aに基づいて識別することに
よって指令された機能が何であるかが求められる。Therefore, the mode switching switch 13 is
Or the third mode,
The input voltage to the input port Vin changes depending on which of the key switches S1 to S4 is operated, and what is the function instructed by identifying this change based on the ROM data 10a shown in FIG. Is required.
【0054】モード切替用スイッチ13が符号cで示す
第1モードにされているときには、図4に示すROMデ
ータ10aで明らかなように、キースイッチS1〜S4
のいずれも押されていない場合には入力ポートVinへの
入力電圧がVddであり、キースイッチS1〜S4のいず
れが操作されたということに対応して入力ポートVinへ
の入力電圧がVddから「V1〜V4」の4つに変化す
る。When the mode changeover switch 13 is set to the first mode indicated by the symbol c, as is apparent from the ROM data 10a shown in FIG.
Are not pressed, the input voltage to the input port Vin is Vdd, and the input voltage to the input port Vin is changed from Vdd to "Vdd" in response to any of the key switches S1 to S4 being operated. V1 to V4 ".
【0055】モード切替用スイッチ13が符号bで示す
第2モードにされているときには、キースイッチS1〜
S4のいずれも押されていない場合には入力ポートVin
への入力電圧がVbであり、キースイッチS1〜S4の
いずれが操作されたということに対応して入力ポートV
inへの入力電圧がVbから「V1〜V4」の4つに変化
する。このVbは、 Vb=Vdd・(r1+r2+r3+r4+r11+r12) /(r0+r1+r2+r3+r4+r1
1+r12) である。When the mode changeover switch 13 is set to the second mode indicated by the symbol b, the key switches S1 to S1
If none of S4 is pressed, input port Vin
The input voltage to the input port Vb is Vb, and when any of the key switches S1 to S4 is operated, the input port V
The input voltage to in changes from Vb to four “V1 to V4”. This Vb is calculated as follows: Vb = Vdd · (r1 + r2 + r3 + r4 + r11 + r12) / (r0 + r1 + r2 + r3 + r4 + r1
1 + r12).
【0056】モード切替用スイッチ13が符号aで示す
第3モードにされているときには、キースイッチS1〜
S4のいずれも押されていない場合には入力ポートVin
への入力電圧がVcであり、キースイッチS1〜S4の
いずれが操作されたということに対応して入力ポートV
inへの入力電圧がVcから「V1〜V4」の4つに変化
する。このVcは、 Vc=Vdd・(r1+r2+r3+r4+r11) /(r0+r1+r2+r3+r4+r11) である。When the mode changeover switch 13 is set to the third mode indicated by the symbol a, the key switches S1 to S1
If none of S4 is pressed, input port Vin
The input voltage to the input port Vc corresponds to the operation of any one of the key switches S1 to S4.
The input voltage to in changes from Vc to four of “V1 to V4”. This Vc is as follows: Vc = Vdddd (r1 + r2 + r3 + r4 + r11) / (r0 + r1 + r2 + r3 + r4 + r11)
【0057】従って、入力ポートVinへの入力電圧の変
化、即ち初期状態で「VddとVbとVc」のいずれであ
るかを判定することによって第1〜第3モードのいずれ
であるかが識別でき、キースイッチS1〜S4のいずれ
が操作されたということに対応して入力ポートVinへの
入力電圧が「V1〜V4」の4つに変化することに応じ
て機能1〜12のいずれであるかを判定すれば、どの機
能を実行させるという指令が出たかを認識することがで
きる。Therefore, by determining the change in the input voltage to the input port Vin, that is, which of "Vdd, Vb and Vc" in the initial state, it is possible to identify which of the first to third modes. Which of the functions 1 to 12 in response to which of the key switches S1 to S4 is operated, the input voltage to the input port Vin changes to four of "V1 to V4" in response to the operation. Is determined, it is possible to recognize which function has been commanded to be executed.
【0058】また、キースイッチ回路が電子機器10に
接続されている場合には、入力ポートVinへの供給電圧
が、初期状態(キースイッチS1〜S4のいずれも押さ
れていない状態)では「VddとVbとVc」になるの
で、キースイッチ回路の接続有無を容易に識別すること
ができる。When the key switch circuit is connected to the electronic device 10, the supply voltage to the input port Vin is "Vdd" in the initial state (the state in which none of the key switches S1 to S4 is pressed). And Vb and Vc ", it is possible to easily identify whether or not the key switch circuit is connected.
【0059】なお、本発明は、前述の形態に限定される
ことなく、キー回路を構成するキースイッチの数、なら
びにモード切替用スイッチにおけるモードの数は全くの
任意であって、これらの設定は電子機器の態様に基づく
全くの任意である。It should be noted that the present invention is not limited to the above-described embodiment, and the number of key switches constituting the key circuit and the number of modes in the mode switching switch are completely arbitrary. It is completely arbitrary based on the aspect of the electronic device.
【0060】[0060]
【発明の効果】以上説明したように、本発明のキースイ
ッチ回路によれば、ホールド時に、「いずれのキーも操
作されていない状態」と「ホールド状態」と「キースイ
ッチ回路そのものが接続されていない状態」のいずれで
あるかの識別を入力ポートを増設したり線路の本数を増
加させずに行うことができる。As described above, according to the key switch circuit of the present invention, at the time of hold, "the state where no key is operated", "the hold state", and "the key switch circuit itself" are connected. It is possible to identify which state is “no state” without adding an input port or increasing the number of lines.
【0061】これに伴い、コストアップになったり、信
号線の断線事故の確率が高くなってしまうことがなく、
従って、キースイッチ回路が接続されているかどうかの
識別を、電子機器におけるCPU等の入力ポートを増加
したり、電子機器1への接続線の本数を増加させたりす
ることなく行えるキースイッチ回路を提供できる。Accordingly, the cost does not increase and the probability of a signal line disconnection accident does not increase.
Therefore, it is possible to provide a key switch circuit that can determine whether or not the key switch circuit is connected without increasing the number of input ports such as CPUs in the electronic device or increasing the number of connection lines to the electronic device 1. it can.
【図1】本発明の第1の実施の形態によるキースイッチ
回路の要部構成を示す回路図図である。FIG. 1 is a circuit diagram showing a main part configuration of a key switch circuit according to a first embodiment of the present invention.
【図2】図1中に示される電子機器に内蔵されたROM
データを概念的に示すデータ格納図である。FIG. 2 is a ROM incorporated in the electronic device shown in FIG.
FIG. 3 is a data storage diagram conceptually showing data.
【図3】本発明の第2の実施の形態によるキースイッチ
回路の要部構成を示す回路図図である。FIG. 3 is a circuit diagram showing a configuration of a main part of a key switch circuit according to a second embodiment of the present invention.
【図4】図3中に示される電子機器に内蔵されたROM
データを概念的に示すデータ格納図である。FIG. 4 is a ROM incorporated in the electronic device shown in FIG. 3;
FIG. 3 is a data storage diagram conceptually showing data.
【図5】キースイッチ回路の第1従来例の要部構成を示
す回路図である。FIG. 5 is a circuit diagram showing a main configuration of a first conventional example of a key switch circuit.
【図6】図5に示されるキースイッチの検出動作を説明
するためのフローチャートである。FIG. 6 is a flowchart for explaining a key switch detection operation shown in FIG. 5;
【図7】図5中に示される電子機器に内蔵されたROM
データを概念的に示すデータ格納図である。FIG. 7 is a ROM incorporated in the electronic device shown in FIG. 5;
FIG. 3 is a data storage diagram conceptually showing data.
【図8】キースイッチ回路の第2従来例の要部構成を示
す回路図である。FIG. 8 is a circuit diagram showing a configuration of a main part of a second conventional example of a key switch circuit.
【図9】図8中に示される電子機器に内蔵されたROM
データを概念的に示すデータ格納図である。FIG. 9 is a ROM incorporated in the electronic device shown in FIG. 8;
FIG. 3 is a data storage diagram conceptually showing data.
R0〜R4,8,10,11,12 抵抗 S1〜S4 キースイッチ 1,4,7,10 電子機器 2 キー回路 3,6,9 ホールド用スイッチ 13 モード切替用スイッチ R0 to R4, 8, 10, 11, 12 Resistance S1 to S4 Key switch 1, 4, 7, 10 Electronic equipment 2 Key circuit 3, 6, 9 Hold switch 13 Mode switch
───────────────────────────────────────────────────── フロントページの続き (72)発明者 百瀬 滋 東京都渋谷区道玄坂1丁目14番6号 株式 会社ケンウッド内 (72)発明者 野俣 征紀 東京都渋谷区道玄坂1丁目14番6号 株式 会社ケンウッド内 Fターム(参考) 5B020 BB10 DD02 FF11 ──────────────────────────────────────────────────続 き Continuing on the front page (72) Inventor Shigeru Momose 1-14-6 Dogenzaka, Shibuya-ku, Tokyo Inside Kenwood Corporation (72) Inventor Seiki Nomata 1-14-6 Dogenzaka, Shibuya-ku, Tokyo Stock Company F-term (reference) in Kenwood 5B020 BB10 DD02 FF11
Claims (5)
と、 前記キースイッチによる操作指令をホールドするホール
ドスイッチと、 前記キースイッチ群のうちのいずれのキースイッチが操
作されたかを電圧値変化に対応付けて出力するキー回路
と、 前記ホールドスイッチを操作することによって、前記キ
ー回路の出力を、前記キースイッチ群のうちのいずれの
キースイッチも操作されていないときに該キー回路に生
じる出力電圧とは異なる特定電圧値に固定するホールド
回路と、 を具備することを特徴とするキースイッチ回路。1. A key switch group comprising a plurality of key switches, a hold switch for holding an operation command by the key switch, and which key switch of the key switch group is operated corresponds to a voltage value change. By operating the hold switch, an output voltage generated in the key circuit when none of the key switches in the key switch group is operated. A key switch circuit, comprising: a hold circuit for fixing the voltage to a different specific voltage value.
と、 複数のモードを切り替えるためのモードスイッチと、 前記キースイッチ群のうちのいずれのキースイッチが操
作されたかを電圧値変化に対応付けて出力するキー回路
と、 前記モードスイッチを操作して切り替えられ得る複数の
モードのそれぞれに対応付けられ、かつ、前記キースイ
ッチ群のうちのいずれのキースイッチも操作されていな
いときに前記キー回路に生じる出力電圧とは異なる電圧
値に設定されたモード回路と、 を具備することを特徴とするキースイッチ回路。2. A key switch group comprising a plurality of key switches, a mode switch for switching a plurality of modes, and which key switch of the key switch group is operated is associated with a voltage value change. A key circuit to be output, the key circuit being associated with each of a plurality of modes that can be switched by operating the mode switch, and when no key switch in the key switch group is operated. A key switch circuit comprising: a mode circuit set to a voltage value different from a generated output voltage.
し、該直列接続抵抗群の各接続点のそれぞれを、複数の
キースイッチを介して接地し、前記直列接続抵抗群の終
端を、抵抗とホールドスイッチを介して接地されるよう
に構成したことを特徴とする請求項1に記載のキースイ
ッチ回路。3. The key circuit and the hold circuit, wherein a starting point of a series connection resistor group is connected to a specific voltage source via a resistor, and each connection point of the series connection resistor group is connected to a plurality of key switches. The key switch circuit according to claim 1, wherein the key switch circuit is configured to be grounded via a resistor, and a terminal of the series-connected resistor group is grounded via a resistor and a hold switch.
し、前記直列接続抵抗群の各接続点のそれぞれを、複数
のキースイッチを介して接地し、前記直列接続抵抗群の
終端を、抵抗とモードスイッチを介して接地されるよう
に構成したことを特徴とする請求項2に記載のキースイ
ッチ回路。4. The key circuit and the mode circuit, wherein a starting point of a series connection resistor group is connected to a specific voltage source via a resistor, and each connection point of the series connection resistor group is connected to a plurality of key switches. 3. The key switch circuit according to claim 2, wherein the terminal is grounded via a resistor, and the terminal of the series-connected resistor group is grounded via a resistor and a mode switch. 4.
し、該直列接続抵抗群の各接続点のそれぞれを、複数の
キースイッチを介して接地するように構成したことを特
徴とする請求項1ないし請求項4のいずれかに記載のキ
ースイッチ回路。5. The key circuit according to claim 1, wherein a starting end of the series connection resistor group is connected to a specific voltage source via a resistor, and each connection point of the series connection resistor group is grounded via a plurality of key switches. 5. The key switch circuit according to claim 1, wherein the key switch circuit is configured as described above.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP32617298A JP3403347B2 (en) | 1998-10-29 | 1998-10-29 | Key switch circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP32617298A JP3403347B2 (en) | 1998-10-29 | 1998-10-29 | Key switch circuit |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2000137567A true JP2000137567A (en) | 2000-05-16 |
JP3403347B2 JP3403347B2 (en) | 2003-05-06 |
Family
ID=18184855
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP32617298A Expired - Fee Related JP3403347B2 (en) | 1998-10-29 | 1998-10-29 | Key switch circuit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3403347B2 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7999420B2 (en) | 2008-08-26 | 2011-08-16 | Funai Electric Co., Ltd. | Key input device |
JP2012165161A (en) * | 2011-02-07 | 2012-08-30 | Rb Controls Co | Device with remote control |
CN110190841A (en) * | 2019-06-06 | 2019-08-30 | 深圳市兆威机电股份有限公司 | I/O port multiplexing control circuit and electronic equipment |
CN113433406A (en) * | 2021-06-18 | 2021-09-24 | 上海润欣科技股份有限公司 | Key detection circuit and terminal equipment |
-
1998
- 1998-10-29 JP JP32617298A patent/JP3403347B2/en not_active Expired - Fee Related
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7999420B2 (en) | 2008-08-26 | 2011-08-16 | Funai Electric Co., Ltd. | Key input device |
JP2012165161A (en) * | 2011-02-07 | 2012-08-30 | Rb Controls Co | Device with remote control |
CN110190841A (en) * | 2019-06-06 | 2019-08-30 | 深圳市兆威机电股份有限公司 | I/O port multiplexing control circuit and electronic equipment |
CN113433406A (en) * | 2021-06-18 | 2021-09-24 | 上海润欣科技股份有限公司 | Key detection circuit and terminal equipment |
CN113433406B (en) * | 2021-06-18 | 2024-06-04 | 上海润欣科技股份有限公司 | Key detection circuit and terminal equipment |
Also Published As
Publication number | Publication date |
---|---|
JP3403347B2 (en) | 2003-05-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
GB2102993A (en) | Microcomputer systems | |
CN111756383B (en) | Keyboard scanning circuit and control method thereof | |
US8754790B2 (en) | Input device with ghost key suppression | |
US5598110A (en) | Detector circuit for use with tri-state logic devices | |
JPH11161391A (en) | Interface circuit | |
JP2000137567A (en) | Key switch circuit | |
US4821033A (en) | Matrix switching apparatus for preventing pseudo input | |
JP3636232B2 (en) | Integrated circuit capable of selecting function and method for selecting function | |
JPH05289778A (en) | Information processor | |
JPH05303456A (en) | Information processor | |
JP4198462B2 (en) | Output driver circuit with current detection | |
US5373202A (en) | Three state input circuit for an integrated circuit | |
JPH09270685A (en) | Operation device | |
JPH06124155A (en) | Keyboard | |
JPH06195863A (en) | Data transmitter | |
JPH02177098A (en) | Semiconductor memory device | |
JPS6155725A (en) | keyboard device | |
KR0174937B1 (en) | Apparatus for detecting a memory in a cassette tape for use in a dvcr | |
JP2834483B2 (en) | Duplex insulated output switching method | |
JP2579425B2 (en) | Logic circuit test equipment | |
JPH05173876A (en) | Extended memory board | |
JP3017124B2 (en) | Hopper selector | |
KR0162593B1 (en) | Output automatic switching device of multi-input VTR | |
JPH08130452A (en) | Connecting state detector for switch | |
JPH09319660A (en) | Semiconductor memory |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080229 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090228 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090228 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100228 Year of fee payment: 7 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110228 Year of fee payment: 8 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110228 Year of fee payment: 8 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120229 Year of fee payment: 9 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120229 Year of fee payment: 9 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120229 Year of fee payment: 9 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130228 Year of fee payment: 10 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130228 Year of fee payment: 10 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140228 Year of fee payment: 11 |
|
LAPS | Cancellation because of no payment of annual fees |