JP5005442B2 - Input device using rotary dip switch - Google Patents

Input device using rotary dip switch Download PDF

Info

Publication number
JP5005442B2
JP5005442B2 JP2007167973A JP2007167973A JP5005442B2 JP 5005442 B2 JP5005442 B2 JP 5005442B2 JP 2007167973 A JP2007167973 A JP 2007167973A JP 2007167973 A JP2007167973 A JP 2007167973A JP 5005442 B2 JP5005442 B2 JP 5005442B2
Authority
JP
Japan
Prior art keywords
dip switch
rotary dip
matrix circuit
key matrix
terminals
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.)
Active
Application number
JP2007167973A
Other languages
Japanese (ja)
Other versions
JP2009010518A (en
JP2009010518A5 (en
Inventor
弘樹 本間
秀則 引地
孔明 一ノ関
Original Assignee
株式会社五洋電子
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 株式会社五洋電子 filed Critical 株式会社五洋電子
Priority to JP2007167973A priority Critical patent/JP5005442B2/en
Publication of JP2009010518A publication Critical patent/JP2009010518A/en
Publication of JP2009010518A5 publication Critical patent/JP2009010518A5/ja
Application granted granted Critical
Publication of JP5005442B2 publication Critical patent/JP5005442B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an input device using a rotary dip switch, capable of effectively utilizing the I/O port of a control IC 11 and reducing a mounting area on a substrate. <P>SOLUTION: In this input device, a key matrix circuit 31 connects row lines H1-H5 through a noise countermeasure circuit 32 to the input terminals R1-R5 of a control IC 33, executes pull-up to a power supply voltage VDD through a resistor R, and further connects the row lines H1-H4 to the terminals A, E, B and D of the rotary dip switch 34 through diodes D1-D4 in a forward direction. The control IC 33 supplies scanning signals outputted from open drain output terminals C1-C5 to the column lines V1-V4 of the key matrix circuit 31 and the common terminal C of the rotary dip switch 34, fetches in the input information of the input terminals R1-R5, and discriminates the operation contents of the key matrix circuit 31 and the setting contents of the rotary dip switch 34 by the timing of the scanning signals and the input information. <P>COPYRIGHT: (C)2009,JPO&amp;INPIT

Description

本発明は、例えば業務用無線端末機等に利用されるロータリーディップスイッチを用いた入力装置に関する。   The present invention relates to an input device using a rotary dip switch used in, for example, a commercial wireless terminal.

従来、例えば携帯無線機等の業務用無線端末機においては、通信チャネル選択用スイッチとしてロータリーディップスイッチ(回転型スイッチ)が一般的に用いられている(例えば、特許文献1参照。)。ロータリーディップスイッチは、回転角度毎に固定位置が設けられており、スイッチの状態が目視困難な場合でも、回転させたときの固定位置状態をカウントすることにより、通信チャネルの選択状態を使用者が把握できるという利点がある。上記ロータリーディップスイッチは、例えば図4に示すようなコード体系をとっており、複数のコード端子例えば端子A、E、B、Dとコモン端子Cを備え、操作軸を回すと機械的な固定位置状態が例えば0〜15まで変化し、16の通信チャネルを選択することができる。これらの各通信チャネルは、受送信周波数が異なる値に設定されている。   Conventionally, in business wireless terminals such as portable wireless devices, a rotary dip switch (rotary switch) is generally used as a communication channel selection switch (see, for example, Patent Document 1). The rotary dip switch has a fixed position for each rotation angle, and even if the switch state is difficult to see, the user can determine the communication channel selection state by counting the fixed position state when the switch is rotated. There is an advantage of being able to grasp. The rotary dip switch has, for example, a cord system as shown in FIG. 4 and includes a plurality of cord terminals, for example, terminals A, E, B, D and a common terminal C, and a mechanical fixed position when the operation shaft is turned. The state changes from 0 to 15, for example, and 16 communication channels can be selected. Each of these communication channels is set to a different value for the transmission / reception frequency.

上記端子A、E、B、Dと16チャネルの各位置状態との関係は、図4に示すように設定されており、例えば位置状態が「2」であった場合、端子Aと端子Eがスイッチ内部でコモン端子Cと導通し、端子Bと端子Dはコモン端子Cに対して開放となる。なお、図4において、黒丸は端子A、E、B、Dがコモン端子Cと導通状態にあることを示している。   The relationship between the terminals A, E, B, and D and the position states of the 16 channels is set as shown in FIG. 4. For example, when the position state is “2”, the terminals A and E are The switch is electrically connected to the common terminal C, and the terminals B and D are open to the common terminal C. In FIG. 4, black circles indicate that the terminals A, E, B, and D are in conduction with the common terminal C.

次に、上記ロータリーディップスイッチにおける従来のデータ取込方式について説明する。図5は、業務用無線端末機等に用いられる従来の入力装置の回路構成図である。   Next, a conventional data capturing method in the rotary dip switch will be described. FIG. 5 is a circuit configuration diagram of a conventional input device used for a commercial wireless terminal or the like.

図5において、10は通信チャネルを選択するためのロータリーディップスイッチ入力回路部、20はキー入力を行うキーマトリクス回路部、11は上記ロータリーディップスイッチ入力回路部10及びキーマトリクス回路部20に共通の制御ICである。   In FIG. 5, 10 is a rotary dip switch input circuit unit for selecting a communication channel, 20 is a key matrix circuit unit for performing key input, and 11 is common to the rotary dip switch input circuit unit 10 and the key matrix circuit unit 20. Control IC.

ロータリーディップスイッチ入力回路部10は、制御IC11の汎用ポートである入力端子I/O1〜I/O4がノイズ対策回路12を介してロータリーディップスイッチ13の端子A、E、B、Dにそれぞれ接続される。そして、上記ノイズ対策回路12とロータリーディップスイッチ13の端子A、E、B、Dとの各接続ラインは、抵抗Rを介して電源電圧VDDにプルアップされる。また、ロータリーディップスイッチ13のコモン端子Cは、接地(GND)されてロー(Low)レベルの状態に保持される。   In the rotary dip switch input circuit unit 10, input terminals I / O 1 to I / O 4 that are general-purpose ports of the control IC 11 are connected to terminals A, E, B, and D of the rotary dip switch 13 via the noise countermeasure circuit 12. The Each connection line between the noise countermeasure circuit 12 and the terminals A, E, B, and D of the rotary dip switch 13 is pulled up to the power supply voltage VDD via the resistor R. Further, the common terminal C of the rotary dip switch 13 is grounded (GND) and held in a low level state.

上記のように構成されたロータリーディップスイッチ入力回路部10は、ロータリーディップスイッチ13の端子A、E、B、Dとコモン端子Cとの接続状態に応じて各端子A、E、B、Dがハイ(High)レベルあるいはロー(Low)レベルの状態となり、この状態が制御IC11の入力情報となる。例えばロータリーディップスイッチ13が図4に示したコード体系の状態「2」であった場合、端子Aと端子Eがスイッチ内部でコモン端子Cと導通してロー(Low)レベルの状態となり、端子B、Dは電源電圧VDDにプルアップされているのでハイ(High)レベルの状態となる。上記端子A、E、B、Dのロー(Low)レベルあるいはハイ(High)レベルの状態を制御IC11の入力情報として判断し制御することにより、ロータリーディップスイッチ13の固定位置状態を把握してチャネル選択を行う。   The rotary dip switch input circuit unit 10 configured as described above has terminals A, E, B, and D depending on the connection state between the terminals A, E, B, and D of the rotary dip switch 13 and the common terminal C. The state becomes a high level or a low level, and this state becomes input information of the control IC 11. For example, when the rotary dip switch 13 is in the state “2” of the code system shown in FIG. 4, the terminal A and the terminal E are electrically connected to the common terminal C inside the switch and become a low level state. , D are pulled up to the power supply voltage VDD, so that they are in a high level state. By determining and controlling the low level or high level state of the terminals A, E, B, and D as input information of the control IC 11, the fixed position state of the rotary dip switch 13 can be grasped and controlled. Make a selection.

また、上記キーマトリクス回路部20は、例えばプッシュスイッチS1〜S20を5行4列のマトリクス状に配置したキーマトリクス回路21を備えている。上記キーマトリクス回路21の行ラインは、ノイズ対策回路22を介して制御IC11の入力端子R1〜R5に接続されると共にそれぞれ抵抗Rを介して電源電圧VDDにプルアップされる。また、キーマトリクス回路21の列ラインは、ノイズ対策回路22を介して制御IC11のオープンドレイン出力端子C1〜C4に接続される。   The key matrix circuit unit 20 includes a key matrix circuit 21 in which, for example, push switches S1 to S20 are arranged in a matrix of 5 rows and 4 columns. The row lines of the key matrix circuit 21 are connected to the input terminals R1 to R5 of the control IC 11 via the noise countermeasure circuit 22 and are pulled up to the power supply voltage VDD via the resistors R, respectively. The column lines of the key matrix circuit 21 are connected to the open drain output terminals C1 to C4 of the control IC 11 via the noise countermeasure circuit 22.

上記制御IC11のオープンドレイン出力端子C1〜C4は、図6のタイミングチャートに示すようにt1、t2、t3、t4のタイミングでインピーダンスがパルス的に変化し、t1、t2、t3、t4のタイミングでロー(Low)状態、その他のタイミングでハイ(High)状態となる。すなわち、制御IC11は、キーマトリクス回路21に対するソフト制御部を走査型方式としてデータ入力を取り込んでいる。   As shown in the timing chart of FIG. 6, the open drain output terminals C1 to C4 of the control IC 11 change in impedance at timings t1, t2, t3, and t4, and at timings t1, t2, t3, and t4. It goes into a low state and a high state at other timings. That is, the control IC 11 takes in the data input by using the software control unit for the key matrix circuit 21 as a scanning type.

上記キーマトリクス回路部20は、プッシュスイッチS1〜S20が押されると、t1〜t4のタイミングで行ラインの信号がロー(Low)レベルの状態に変化し、その状態が入力情報として制御IC11の入力端子R1〜R5に入力される。制御IC11は、オープンドレイン出力端子C1〜C4のインピーダンスがロー(Low)レベルの状態に変化するタイミングt1、t2、t3、t4と入力端子R1〜R5の入力情報からキーマトリクス回路部20におけるどのプッシュスイッチS1〜S20が押されたのかを判断する。例えばプッシュスイッチS2を操作した場合、制御IC11の入力端子R1に接続されている行ラインがt3のタイミングでロー(Low)レベルの状態となるので、制御IC11は入力端子R1の行ラインとオープンドレイン出力端子C3の列ラインとの交点にあるプッシュスイッチS2が押されたものと判断することができる。
特開2006−250566号公報
When the push switches S1 to S20 are pressed, the key matrix circuit unit 20 changes the row line signal to a low level at the timing t1 to t4, and this state is input to the control IC 11 as input information. Input to terminals R1 to R5. The control IC 11 determines which push in the key matrix circuit unit 20 from the timing t1, t2, t3, t4 when the impedance of the open drain output terminals C1 to C4 changes to a low level state and the input information of the input terminals R1 to R5. It is determined whether the switches S1 to S20 are pressed. For example, when the push switch S2 is operated, the row line connected to the input terminal R1 of the control IC 11 becomes a low level state at the timing t3, so that the control IC 11 is connected to the row line of the input terminal R1 and the open drain. It can be determined that the push switch S2 at the intersection of the output terminal C3 and the column line is pressed.
JP 2006-250666 A

上記従来の入力装置によれば、制御IC11は、入力端子I/O1〜I/O4の入力情報からロータリーディップスイッチ13の固定位置状態を把握してチャネル選択を行うことができ、また、入力端子R1〜R5の入力情報及びオープンドレイン出力端子C1〜C4から出力される走査信号のタイミングからどのプッシュスイッチS1〜S20が押されたかを判断することができる。   According to the above conventional input device, the control IC 11 can perform channel selection by grasping the fixed position state of the rotary dip switch 13 from the input information of the input terminals I / O1 to I / O4. Which push switches S1 to S20 are pressed can be determined from the input information of R1 to R5 and the timing of the scanning signals output from the open drain output terminals C1 to C4.

しかし、制御IC11の汎用I/Oポートには限りがあるため、使用するポート数はできるだけ少なくする必要がある。また、ロータリーディップスイッチ13やキーマトリクス回路21などの外部入力回路はシールドができないため、ノイズ対策回路12、22を各配線毎に設置しなければならない。この結果、基板上の配線制約を受けるのみならず、実装面積の増大や部品点数の増加などにつながるという問題があった。   However, since the general-purpose I / O ports of the control IC 11 are limited, it is necessary to use as few ports as possible. Further, since external input circuits such as the rotary dip switch 13 and the key matrix circuit 21 cannot be shielded, the noise countermeasure circuits 12 and 22 must be installed for each wiring. As a result, there is a problem that not only the wiring restriction on the substrate is imposed, but also the mounting area and the number of parts are increased.

本発明は上記の課題を解決するためになされたもので、制御IC11のI/Oポートを有効に利用できると共にノイズ対策回路の設置数を減少でき、基板上の実装面積を減少できるロータリーディップスイッチを用いた入力装置を提供することを目的とする。   The present invention has been made to solve the above-described problems, and can be used effectively for the I / O port of the control IC 11, and the rotary dip switch can reduce the number of noise countermeasure circuits and reduce the mounting area on the board. An object of the present invention is to provide an input device using the.

本発明は、複数のスイッチがマトリクス状に配置されたキーマトリクス回路と、複数の端子とコモン端子を備え、前記複数の端子とコモン端子との接続状態に応じてコード信号を出力するロータリーディップスイッチと、前記キーマトリクス回路の行ラインと前記ロータリーディップスイッチの複数の端子との間にそれぞれ設けられるダイオードと、前記キーマトリクス回路の列ライン及び前記ロータリーディップスイッチのコモン端子に順次異なるタイミングで走査信号を与え、前記キーマトリクス回路の行ラインに生じる信号を取り込む制御部とを具備してなるロータリーディップスイッチを用いた入力装置であって、
前記制御部は、前記キーマトリクス回路及びロータリーディップスイッチに与える走査信号のタイミング及び前記キーマトリクス回路の行ラインに生じる信号によって前記キーマトリクス回路の操作内容及びロータリーディップスイッチの設定内容を判別する判別手段と、当該ロータリーディップスイッチを用いた入力装置を携帯無線機に適用した場合に、前記携帯無線機で選択された受信周波数に応じて前記走査信号の周波数を可変設定する周波数設定手段とを備えたことを特徴とする。
The present invention is a rotary dip switch that includes a key matrix circuit in which a plurality of switches are arranged in a matrix, a plurality of terminals and a common terminal, and outputs a code signal according to the connection state between the plurality of terminals and the common terminal. Scanning signals at different timings sequentially to the diodes provided between the row line of the key matrix circuit and the plurality of terminals of the rotary dip switch, and the column line of the key matrix circuit and the common terminal of the rotary dip switch, respectively. And an input device using a rotary dip switch comprising a control unit that captures a signal generated in a row line of the key matrix circuit ,
Wherein the control unit, said key matrix circuit and the rotary give DIP switch scan signal timing and discriminating means for discriminating the operation contents and settings of the rotary DIP switch of the key matrix circuit by a signal generated row lines of the key matrix circuit And a frequency setting means for variably setting the frequency of the scanning signal according to the reception frequency selected by the portable radio when the input device using the rotary dip switch is applied to the portable radio. It is characterized by that.

本発明によれば、キーマトリクス回路部にロータリーディップスイッチを組み込むことにより、制御部にロータリーディップスイッチのデータを取り込むための専用の入力端子を設けることなく、キーマトリクスデータ取り込み用の入力端子を利用してロータリーディップスイッチのデータを制御部に取り込むことができ、入力端子数を少なくして回路構成を簡易化でき、基板上の実装面積を減少することができる。   According to the present invention, by incorporating a rotary dip switch in the key matrix circuit unit, an input terminal for capturing key matrix data is used without providing a dedicated input terminal for capturing data of the rotary dip switch in the control unit. Thus, the data of the rotary dip switch can be taken into the control unit, the number of input terminals can be reduced, the circuit configuration can be simplified, and the mounting area on the substrate can be reduced.

以下、図面を参照して本発明の一実施形態を説明する。   Hereinafter, an embodiment of the present invention will be described with reference to the drawings.

図1は本発明の一実施形態に係るロータリーディップスイッチを用いた入力装置の回路構成図である。図1において、31はキーマトリクス回路で、例えばプッシュスイッチS1〜S20を5行4列のマトリクス状に配置している。上記キーマトリクス回路31の行ラインH1〜H5は、ノイズ対策回路32を介して制御部例えば制御IC33の入力端子R1〜R5に接続されると共にそれぞれ抵抗Rを介して電源電圧VDDにプルアップされる。上記ノイズ対策回路32としては、例えばチョークコイルLとコンデンサCとを組み合わせて構成したローパスフィルタが用いられる。   FIG. 1 is a circuit configuration diagram of an input device using a rotary dip switch according to an embodiment of the present invention. In FIG. 1, reference numeral 31 denotes a key matrix circuit. For example, push switches S1 to S20 are arranged in a matrix of 5 rows and 4 columns. The row lines H1 to H5 of the key matrix circuit 31 are connected to the input terminals R1 to R5 of the control unit, for example, the control IC 33 through the noise countermeasure circuit 32 and are pulled up to the power supply voltage VDD through the resistors R, respectively. . As the noise countermeasure circuit 32, for example, a low pass filter configured by combining a choke coil L and a capacitor C is used.

また、上記キーマトリクス回路31は、行ラインH1〜H5のうち、行ラインH1〜H4がダイオードD1〜D4を順方向に介してロータリーディップスイッチ34の端子A、E、B、Dに接続される。上記ダイオードD1〜D4は、キーマトリクス回路31における行ラインH1〜H5のレベル変化が相互に影響しないように設けたもので、その詳細については後述する。上記ロータリーディップスイッチ34は、従来のロータリーディップスイッチと同様に例えば4つの端子A、E、B、Dとコモン端子Cからなり、例えば図4に示したコード体系を有し、16の通信チャネルを選択することができる。   In the key matrix circuit 31, among the row lines H1 to H5, the row lines H1 to H4 are connected to the terminals A, E, B, and D of the rotary dip switch 34 through the diodes D1 to D4 in the forward direction. . The diodes D1 to D4 are provided so that the level changes of the row lines H1 to H5 in the key matrix circuit 31 do not affect each other, and details thereof will be described later. The rotary dip switch 34 is composed of, for example, four terminals A, E, B, D and a common terminal C like the conventional rotary dip switch, and has, for example, the code system shown in FIG. You can choose.

また、キーマトリクス回路31の列ラインV1〜V4は、ノイズ対策回路32を介して制御IC33のオープンドレイン出力端子C1〜C4に接続される。上記制御IC33は、上記オープンドレイン出力端子C1〜C4の他にもう1つのオープンドレイン出力端子C5を備えており、このオープンドレイン出力端子C5を信号ライン35により上記ロータリーディップスイッチ34のコモン端子Cに接続している。   The column lines V1 to V4 of the key matrix circuit 31 are connected to the open drain output terminals C1 to C4 of the control IC 33 via the noise countermeasure circuit 32. The control IC 33 is provided with another open drain output terminal C5 in addition to the open drain output terminals C1 to C4. The open drain output terminal C5 is connected to the common terminal C of the rotary dip switch 34 by a signal line 35. Connected.

上記制御IC33は、上記キーマトリクス回路31に対する走査型方式のソフト制御部及びロータリーディップスイッチ34に対する走査型方式のソフト制御部を備えている。上記制御IC33におけるキーマトリクス回路31に対する走査型方式のソフト制御部は、オープンドレイン出力端子C1〜C5から走査信号を出力し、図2(a)に示すようにオープンドレイン出力端子C1〜C5のインピーダンスをt1、t2、t3、t4、t5のタイミングでロー(Low)状態、その他のタイミングでハイ(High)状態となるようにパルス的に変化させ、オープンドレイン出力端子C1〜C4の走査タイミングt1、t2、t3、t4及び入力端子R1〜R5の入力情報からキーマトリクス回路31の操作内容を判別している。また、上記キーマトリクス回路31に対するソフト制御部は、詳細を後述するようにオープンドレイン出力端子C1〜C5の走査時間を、無線機で選択された受送信周波数に応じて可変する機能を備えている。   The control IC 33 includes a scanning type software control unit for the key matrix circuit 31 and a scanning type software control unit for the rotary DIP switch 34. The scanning type soft control unit for the key matrix circuit 31 in the control IC 33 outputs scanning signals from the open drain output terminals C1 to C5, and the impedance of the open drain output terminals C1 to C5 as shown in FIG. Is changed in a pulse manner so as to be in a low state at timings t1, t2, t3, t4, and t5, and in a high state at other timings, and scanning timings t1, t1 of the open drain output terminals C1 to C4 are changed. The operation content of the key matrix circuit 31 is determined from t2, t3, t4 and the input information of the input terminals R1 to R5. The software controller for the key matrix circuit 31 has a function of changing the scanning time of the open drain output terminals C1 to C5 in accordance with the transmission / reception frequency selected by the wireless device, as will be described in detail later. .

また、制御IC33におけるロータリーディップスイッチ34に対する走査型方式のソフト制御部は、オープンドレイン出力端子C5の走査タイミングt5及び入力端子R1〜R4の入力情報からロータリーディップスイッチ34の固定位置状態を把握し、チャネル選択を行う。   Further, the scanning type soft control unit for the rotary dip switch 34 in the control IC 33 grasps the fixed position state of the rotary dip switch 34 from the scanning timing t5 of the open drain output terminal C5 and the input information of the input terminals R1 to R4. Perform channel selection.

次に上記実施形態に係る入力装置のデータ取り込み動作について図2に示すタイミングチャートを参照して説明する。図2(a)は制御IC33のオープンドレイン出力端子C1〜C4から出力される走査信号のタイミングを示すタイミングチャート、図2(b)〜(d)は制御IC33のデータ取り込み動作を説明するためのタイミングチャートである。   Next, a data capturing operation of the input device according to the above embodiment will be described with reference to a timing chart shown in FIG. 2A is a timing chart showing the timing of scanning signals output from the open drain output terminals C1 to C4 of the control IC 33, and FIGS. 2B to 2D are diagrams for explaining the data capturing operation of the control IC 33. FIG. It is a timing chart.

図2(b)は、ロータリーディップスイッチ34が図4に示したコード体系の状態「1」、すなわち端子Aがスイッチ内部でコモン端子Cに導通している状態で、キーマトリクス回路31のプッシュスイッチS2が押されたときの制御IC33の入力端子R1〜R5における動作タイミングチャートを示している。   FIG. 2B shows the push switch of the key matrix circuit 31 when the rotary dip switch 34 is in the state “1” of the code system shown in FIG. 4, that is, the terminal A is electrically connected to the common terminal C inside the switch. The operation | movement timing chart in input terminal R1-R5 of control IC33 when S2 is pushed is shown.

ロータリーディップスイッチ34が状態「1」のときにキーマトリクス回路31のプッシュスイッチS2が押されると、制御IC33の入力端子R1はt3のタイミングでオープンドレイン出力端子C3と共にロー(Low)レベルの状態となるので、制御IC33はキーマトリクス回路31の行ラインH1と列ラインV3との間に設けられているプッシュスイッチS2が押されたものと判別することができる。また、ロータリーディップスイッチ34の端子Aがコモン端子Cに導通している場合は、t5のタイミングで制御IC33の入力端子R1のみがローレベルの状態となるので、ロータリーディップスイッチ34に対するソフト制御部は入力端子R1の状態を時間分割で認識することにより、ロータリーディップスイッチ34が状態「1」にあると判別することができる。   When the push switch S2 of the key matrix circuit 31 is pressed while the rotary dip switch 34 is in the state “1”, the input terminal R1 of the control IC 33 is in a low level state together with the open drain output terminal C3 at the timing t3. Therefore, the control IC 33 can determine that the push switch S2 provided between the row line H1 and the column line V3 of the key matrix circuit 31 is pressed. When the terminal A of the rotary dip switch 34 is electrically connected to the common terminal C, only the input terminal R1 of the control IC 33 is in a low level state at the timing t5, so that the software control unit for the rotary dip switch 34 is By recognizing the state of the input terminal R1 by time division, it can be determined that the rotary DIP switch 34 is in the state “1”.

また、ロータリーディップスイッチ34が状態「2」のとき(端子A、Eがコモン端子Cと導通)にキーマトリクス回路31のプッシュスイッチS2が押されると、図2(c)のタイミングチャートに示すようにt3のタイミングで制御IC33の入力端子R1がローレベルの状態となると共に、t5のタイミングで制御IC33の入力端子R1、R2がローレベルとなる。制御IC33は、t3のタイミングで制御IC33の入力端子R1がローレベルの状態となることにより、キーマトリクス回路31のプッシュスイッチS2が押されたものと判別し、また、t5のタイミングで制御IC33の入力端子R1、R2がローレベルとなることにより、ロータリーディップスイッチ34が状態「2」にあると判別することができる。   Further, when the push switch S2 of the key matrix circuit 31 is pressed when the rotary dip switch 34 is in the state “2” (terminals A and E are in conduction with the common terminal C), as shown in the timing chart of FIG. At the timing of t3, the input terminal R1 of the control IC 33 becomes a low level state, and at the timing of t5, the input terminals R1 and R2 of the control IC 33 become a low level. The control IC 33 determines that the push switch S2 of the key matrix circuit 31 has been pressed when the input terminal R1 of the control IC 33 becomes a low level state at the timing t3, and the control IC 33 performs the control IC 33 at the timing t5. When the input terminals R1 and R2 become low level, it can be determined that the rotary dip switch 34 is in the state “2”.

また、ロータリーディップスイッチ34が状態「5」のとき(端子A、E、Bがコモン端子Cと導通)にキーマトリクス回路31のプッシュスイッチS2が押されると、図2(d)のタイミングチャートに示すようにt3のタイミングで制御IC33の入力端子R1がローレベルの状態となると共に、t5のタイミングで制御IC33の入力端子R1、R2、R3がローレベルとなる。制御IC33は、t3のタイミングで制御IC33の入力端子R1がローレベルの状態となることによりキーマトリクス回路31のプッシュスイッチS2が押されたものと判別し、また、t5のタイミングで制御IC33の入力端子R1、R2、R3がローレベルとなることにより、ロータリーディップスイッチ34が状態「5」にあると判別することができる。   When the push switch S2 of the key matrix circuit 31 is pressed when the rotary dip switch 34 is in the state “5” (terminals A, E, and B are electrically connected to the common terminal C), the timing chart of FIG. As shown, the input terminal R1 of the control IC 33 becomes a low level at the timing t3, and the input terminals R1, R2, and R3 of the control IC 33 become the low level at the timing t5. The control IC 33 determines that the push switch S2 of the key matrix circuit 31 has been pressed when the input terminal R1 of the control IC 33 becomes a low level state at the timing t3, and the input of the control IC 33 at the timing t5. When the terminals R1, R2, and R3 are at a low level, it can be determined that the rotary dip switch 34 is in the state “5”.

なお、上記図2(b)〜(d)の例では、キーマトリクス回路31のプッシュスイッチS2が押された場合の動作について示したが、その他のプッシュスイッチが押された場合においても同様にして判別することができる。また、プッシュスイッチS1〜S20が押されていない状態であっても、制御IC33のオープンドレイン出力端子C5の走査タイミングt5及び入力端子R1〜R4の入力情報からロータリーディップスイッチ34の状態「0」〜「15」を判別することができる。   In the example of FIGS. 2B to 2D, the operation when the push switch S2 of the key matrix circuit 31 is pressed has been described. However, the same applies when other push switches are pressed. Can be determined. Further, even when the push switches S1 to S20 are not pressed, the state of the rotary dip switch 34 from “0” to the state of the rotary dip switch 34 is determined from the scanning timing t5 of the open drain output terminal C5 of the control IC 33 and the input information of the input terminals R1 to R4. “15” can be discriminated.

上記のように制御IC33は、オープンドレイン出力端子C1〜C4の走査によるタイミングt1〜t4と入力端子R1〜R5の入力情報からキーマトリクス回路31のキー操作を判別でき、また、オープンドレイン出力端子C5の走査タイミングt5及び入力端子R1〜R4の入力情報からロータリーディップスイッチ34の状態「0」〜「15」を把握してチャネル選択を行うことができる。   As described above, the control IC 33 can determine the key operation of the key matrix circuit 31 from the timings t1 to t4 by the scanning of the open drain output terminals C1 to C4 and the input information of the input terminals R1 to R5, and the open drain output terminal C5. The channel selection can be performed by grasping the states “0” to “15” of the rotary dip switch 34 from the scanning timing t5 and the input information of the input terminals R1 to R4.

次にキーマトリクス回路31の行ラインH1〜H4とロータリーディップスイッチ34の端子A、E、B、Dとの間に設けたダイオードD1〜D4の動作について説明する。   Next, the operation of the diodes D1 to D4 provided between the row lines H1 to H4 of the key matrix circuit 31 and the terminals A, E, B, and D of the rotary dip switch 34 will be described.

図1に示したようにダイオードD1〜D4を設けている場合には、例えばロータリーディップスイッチ34が状態「2」(端子A、Eがコモン端子Cと導通)に設定されているときにキーマトリクス回路31のプッシュスイッチS2が押されたとすると、上記図2(c)のタイミングチャートに示したように制御IC33の入力端子R1がt3のタイミングでロー状態となると共にt5のタイミングで入力端子R1、R2がロー状態となり、制御IC33はプッシュスイッチS2の操作及びロータリーディップスイッチ34の状態「2」を正常に判別することができる。   When the diodes D1 to D4 are provided as shown in FIG. 1, for example, when the rotary DIP switch 34 is set to the state “2” (terminals A and E are in conduction with the common terminal C), the key matrix is used. If the push switch S2 of the circuit 31 is pressed, the input terminal R1 of the control IC 33 goes to the low state at the timing t3 and the input terminal R1, at the timing t5, as shown in the timing chart of FIG. R2 is in the low state, and the control IC 33 can normally determine the operation of the push switch S2 and the state “2” of the rotary dip switch 34.

しかし、ダイオードD1〜D4がない場合は、例えばロータリーディップスイッチ34が状態「2」に設定されているときにキーマトリクス回路31のプッシュスイッチS2が押されると、t3のタイミングでロータリーディップスイッチ34の端子Aがロー状態になると共に、端子Aに導通している端子E及びキーマトリクス回路31の行ラインH2もロー状態となる。この結果、キーマトリクス回路31のプッシュスイッチS6が押されていなくても、t3のタイミングで制御IC33の入力端子R1、R2がロー状態となり、制御IC33はプッシュスイッチS2、S6が押されたものと誤認識してしまう。このような制御IC33の誤認識を防止するために、ダイオードD1〜D4を設け、キーマトリクス回路31における行ラインH1〜H5のレベル変化が相互に影響しないようにしている。   However, if the diodes D1 to D4 are not present, for example, when the push switch S2 of the key matrix circuit 31 is pressed while the rotary dip switch 34 is set to the state “2”, the rotary dip switch 34 is turned on at the timing t3. As the terminal A goes to the low state, the terminal E conducting to the terminal A and the row line H2 of the key matrix circuit 31 also go to the low state. As a result, even if the push switch S6 of the key matrix circuit 31 is not pressed, the input terminals R1 and R2 of the control IC 33 are in a low state at the timing of t3, and the control IC 33 indicates that the push switches S2 and S6 are pressed. Misunderstood. In order to prevent such erroneous recognition of the control IC 33, diodes D1 to D4 are provided so that the level changes of the row lines H1 to H5 in the key matrix circuit 31 do not affect each other.

本発明に係る入力装置は、上記実施形態に示したようにキーマトリクス回路部にロータリーディップスイッチ34を組み込むと共にロータリーディップスイッチデータ取り込み方式を走査型として回路構成の簡易化を図っているが、業務用無線端末機に実施した場合、走査時間によっては無線機の性能に影響を与える可能性がある。特に走査信号の高調波成分が受信周波数と同一となる場合は、受信感度の劣化等の弊害が考えられる。このため本実施形態では、制御IC33に設けられるソフト制御部に、オープンドレイン出力端子C1〜C5の走査時間を、無線機で選択された受送信周波数に応じて可変する機能を持たせ、無線機の性能劣化を防止している。   The input device according to the present invention incorporates the rotary dip switch 34 into the key matrix circuit unit as shown in the above embodiment and simplifies the circuit configuration by using the rotary dip switch data capturing method as a scanning type. When implemented in a wireless terminal, there is a possibility of affecting the performance of the wireless device depending on the scanning time. In particular, when the harmonic component of the scanning signal is the same as the reception frequency, problems such as deterioration in reception sensitivity can be considered. For this reason, in the present embodiment, the software control unit provided in the control IC 33 has a function of changing the scanning time of the open drain output terminals C1 to C5 according to the transmission / reception frequency selected by the wireless device. The performance degradation of the is prevented.

以下、無線機で選択された受送信周波数に応じて制御IC33のオープンドレイン出力端子C1〜C5の走査時間を設定する場合の処理動作を図3に示すフローチャートを参照して説明する。   Hereinafter, the processing operation when the scanning time of the open drain output terminals C1 to C5 of the control IC 33 is set according to the transmission / reception frequency selected by the wireless device will be described with reference to the flowchart shown in FIG.

制御IC33に設けられるソフト制御部は、図3のステップA1に示すように無線機の受送信周波数が選択されたかどうかをチェックしている。受送信周波数が選択されると、選択された受送信周波数をfs、オープンドレイン出力端子C1〜C5に対する基準走査時間をTs、タイマ最小設定時間をTn、整数Nを「0」とし(ステップA2)、受送信周波数fsを走査周波数(1/Ts)で除算して剰余Mを求める(ステップA3)。   The software control unit provided in the control IC 33 checks whether or not the radio transmission / reception frequency is selected as shown in step A1 of FIG. When the transmission / reception frequency is selected, the selected transmission / reception frequency is fs, the reference scanning time for the open drain output terminals C1 to C5 is Ts, the timer minimum setting time is Tn, and the integer N is “0” (step A2). Then, the remainder M is obtained by dividing the transmission / reception frequency fs by the scanning frequency (1 / Ts) (step A3).

次いで上記剰余Mが「0」であるかどうかを判定する(ステップA4)。すなわち、走査周波数(1/Ts)の高調波成分が受送信周波数fsと同一かどうかを判定し、剰余Mが「0」(走査周波数(1/Ts)の高調波成分が受送信周波数fsと同一)であればNの値を「+1」し(ステップA5)、「Ts=(Ts+N*Tn)」の処理、すなわち走査時間Tsにタイマ最小設定時間Tnを加算した値を走査時間Tsとして設定する(ステップA6)。その後、ステップA3に戻り、上記ステップA6で設定した走査時間Tsを用い、受送信周波数fsを走査周波数(1/Ts)で除算して剰余Mを求める。   Next, it is determined whether or not the remainder M is “0” (step A4). That is, it is determined whether the harmonic component of the scanning frequency (1 / Ts) is the same as the transmission / reception frequency fs. The remainder M is “0” (the harmonic component of the scanning frequency (1 / Ts) is the transmission / reception frequency fs). If it is the same, the value of N is incremented by “+1” (step A5), and the process of “Ts = (Ts + N * Tn)”, that is, the value obtained by adding the timer minimum setting time Tn to the scanning time Ts is set as the scanning time Ts. (Step A6). Thereafter, returning to step A3, the remainder M is obtained by dividing the transmission / reception frequency fs by the scanning frequency (1 / Ts) using the scanning time Ts set in step A6.

そして、ステップA4で、剰余Mが「0」でないと判定されると、オープンドレイン出力端子C1〜C5の走査時間をTsに設定する(ステップA7)。   When it is determined in step A4 that the remainder M is not “0”, the scanning time of the open drain output terminals C1 to C5 is set to Ts (step A7).

上記のようにしてオープンドレイン出力端子C1〜C5の走査時間Tsを設定することにより、走査信号による走査ノイズの高調波成分が受送信周波数と同一となることを防ぎ、受信感度劣化などの弊害を防止することができる。   By setting the scanning time Ts of the open drain output terminals C1 to C5 as described above, it is possible to prevent the harmonic component of the scanning noise due to the scanning signal from being the same as the reception and transmission frequency, and to cause adverse effects such as deterioration in reception sensitivity. Can be prevented.

上記実施形態によれば、キーマトリクス回路部にロータリーディップスイッチ34を組み込むと共にロータリーディップスイッチデータ取り込み方式を走査型としているので、ロータリーディップスイッチ34のデータを取り込むための専用の入力端子を制御IC33に設けることなく、キーマトリクスデータ取り込み用の入力端子R1、R2、…を利用してロータリーディップスイッチ34のデータを制御IC33に取り込むことができ、入力端子数及びノイズ対策回路の数を少なくして回路構成を簡易化でき、基板上の実装面積を減少することができる。   According to the above embodiment, since the rotary dip switch 34 is incorporated in the key matrix circuit section and the rotary dip switch data fetching method is a scanning type, a dedicated input terminal for fetching data of the rotary dip switch 34 is provided in the control IC 33. Without being provided, the data of the rotary dip switch 34 can be taken into the control IC 33 by using the input terminals R1, R2,... For taking the key matrix data, and the number of input terminals and the number of noise countermeasure circuits can be reduced. The configuration can be simplified and the mounting area on the substrate can be reduced.

また、本実施形態では、制御IC33に設けられるソフト制御部に、オープンドレイン出力端子C1〜C5の走査時間を、無線機で選択された受送信周波数に応じて可変する機能を持たせているので、業務用無線端末機に適用した場合においても、走査信号による走査ノイズの高調波成分が受送信周波数と同一となることを防ぎ、受信感度劣化などの弊害を防止することができる。   In the present embodiment, the software control unit provided in the control IC 33 has a function of changing the scanning time of the open drain output terminals C1 to C5 in accordance with the transmission / reception frequency selected by the wireless device. Even when applied to a commercial wireless terminal, it is possible to prevent the harmonic component of the scanning noise caused by the scanning signal from becoming the same as the reception / transmission frequency, and to prevent adverse effects such as deterioration in reception sensitivity.

なお、上記実施形態では、ロータリーディップスイッチ34により通信チャネルを選択する場合について示したが、その他、ロータリーディップスイッチ34により通信チャネル及びシステムを選択する場合であっても、同様にして実施し得るものである。   In the above embodiment, the case where the communication channel is selected by the rotary dip switch 34 has been described. However, even when the communication channel and the system are selected by the rotary dip switch 34, the embodiment can be implemented in the same manner. It is.

また、本発明は、上記実施形態そのままに限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で構成要素を変形して具体化できるものである。   Further, the present invention is not limited to the above-described embodiment as it is, and can be embodied by modifying constituent elements without departing from the scope of the invention in the implementation stage.

本発明の一実施形態に係るロータリーディップスイッチを用いた入力装置の回路構成図である。It is a circuit block diagram of the input device using the rotary dip switch which concerns on one Embodiment of this invention. キーマトリクス回路のスイッチ操作及びロータリーディップスイッチの設定内容の取り込み動作を説明するためのタイミングチャートである。It is a timing chart for explaining the switch operation of the key matrix circuit and the operation of fetching the setting contents of the rotary dip switch. 同実施形態において、無線機で選択された受送信周波数に応じて制御ICのオープンドレイン出力端子の走査時間を設定する場合の動作を示すフローチャートである。4 is a flowchart showing an operation in the case where the scanning time of the open drain output terminal of the control IC is set according to the transmission / reception frequency selected by the wireless device in the embodiment. ロータリーディップスイッチのコード体系例を示す図である。It is a figure which shows the code system example of a rotary dip switch. 従来のロータリーディップスイッチを用いた入力装置の回路構成図である。It is a circuit block diagram of the input device using the conventional rotary dip switch. 従来のロータリーディップスイッチを用いた入力装置のキーマトリクス回路に対する走査信号を示すタイミングチャートである。It is a timing chart which shows the scanning signal with respect to the key matrix circuit of the input device using the conventional rotary dip switch.

符号の説明Explanation of symbols

S1〜S20…プッシュスイッチ、R1〜R5…制御ICの入力端子、C1〜C5…制御ICのオープンドレイン出力端子、D1〜D4…ダイオード、H1〜H5…キーマトリクス回路の行ライン、V1〜V4…キーマトリクス回路の列ライン、31…キーマトリクス回路、32…ノイズ対策回路、33…制御IC、34…ロータリーディップスイッチ、35…信号ライン。   S1 to S20 ... push switches, R1 to R5 ... control IC input terminals, C1 to C5 ... control IC open drain output terminals, D1 to D4 ... diodes, H1 to H5 ... key matrix circuit row lines, V1 to V4 ... Column line of key matrix circuit 31... Key matrix circuit 32. Noise countermeasure circuit 33. Control IC 34. Rotary dip switch 35.

Claims (1)

複数のスイッチがマトリクス状に配置されたキーマトリクス回路と、複数の端子とコモン端子を備え、前記複数の端子とコモン端子との接続状態に応じてコード信号を出力するロータリーディップスイッチと、前記キーマトリクス回路の行ラインと前記ロータリーディップスイッチの複数の端子との間にそれぞれ設けられるダイオードと、前記キーマトリクス回路の列ライン及び前記ロータリーディップスイッチのコモン端子に順次異なるタイミングで走査信号を与え、前記キーマトリクス回路の行ラインに生じる信号を取り込む制御部とを具備してなるロータリーディップスイッチを用いた入力装置であって、
前記制御部は、前記キーマトリクス回路及びロータリーディップスイッチに与える走査信号のタイミング及び前記キーマトリクス回路の行ラインに生じる信号によって前記キーマトリクス回路の操作内容及びロータリーディップスイッチの設定内容を判別する判別手段と、当該ロータリーディップスイッチを用いた入力装置を携帯無線機に適用した場合に、前記携帯無線機で選択された受信周波数に応じて前記走査信号の周波数を可変設定する周波数設定手段とを備えたことを特徴とするロータリーディップスイッチを用いた入力装置。
A key matrix circuit in which a plurality of switches are arranged in a matrix, a rotary dip switch that includes a plurality of terminals and a common terminal, and outputs a code signal according to a connection state between the plurality of terminals and the common terminal, and the key Applying scanning signals to the diodes respectively provided between the row lines of the matrix circuit and the plurality of terminals of the rotary dip switch, and the column lines of the key matrix circuit and the common terminal of the rotary dip switch at different timings, An input device using a rotary dip switch comprising a control unit that captures a signal generated in a row line of a key matrix circuit ,
Wherein the control unit, said key matrix circuit and the rotary give DIP switch scan signal timing and discriminating means for discriminating the operation contents and settings of the rotary DIP switch of the key matrix circuit by a signal generated row lines of the key matrix circuit And a frequency setting means for variably setting the frequency of the scanning signal according to the reception frequency selected by the portable radio when the input device using the rotary dip switch is applied to the portable radio. An input device using a rotary dip switch.
JP2007167973A 2007-06-26 2007-06-26 Input device using rotary dip switch Active JP5005442B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007167973A JP5005442B2 (en) 2007-06-26 2007-06-26 Input device using rotary dip switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007167973A JP5005442B2 (en) 2007-06-26 2007-06-26 Input device using rotary dip switch

Publications (3)

Publication Number Publication Date
JP2009010518A JP2009010518A (en) 2009-01-15
JP2009010518A5 JP2009010518A5 (en) 2010-06-03
JP5005442B2 true JP5005442B2 (en) 2012-08-22

Family

ID=40325186

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007167973A Active JP5005442B2 (en) 2007-06-26 2007-06-26 Input device using rotary dip switch

Country Status (1)

Country Link
JP (1) JP5005442B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111600591A (en) * 2020-07-27 2020-08-28 北京维普无限智能技术有限公司 Key identification method and system of matrix keyboard

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62209608A (en) * 1986-03-11 1987-09-14 Sony Corp Controller
JPH07235238A (en) * 1994-02-24 1995-09-05 Sony Corp Electronic equipment
JPH10241867A (en) * 1997-02-20 1998-09-11 Asahi Natl Shomei Kk Port signal setting device
JP2005283384A (en) * 2004-03-30 2005-10-13 Optex Co Ltd Microwave sensor and system for preventing mutual interference of microwave sensor

Also Published As

Publication number Publication date
JP2009010518A (en) 2009-01-15

Similar Documents

Publication Publication Date Title
JP5005442B2 (en) Input device using rotary dip switch
WO2010125423A1 (en) Mobile phone with improved keyboard scanning and component reduction and method
EP2115606B1 (en) Integrated circuit and electronic device
JP2007235462A (en) Data receiving device
US6266049B1 (en) One-chip microcomputer system
US20200162064A1 (en) Debounce circuit using d flip-flops
TWI564813B (en) Touch sensing circuit and control method thereof
US20020097883A1 (en) System and method for sensing a sound system
JPH05284575A (en) Device and method for controlling reception of remote controller
JP4931727B2 (en) Data communication system
US7616039B2 (en) Memory reset apparatus
TWI590105B (en) Input Device and Status Detecting Method Using the Same
US20070076466A1 (en) Multiple-clock controlled logic signal generating circuit
KR101633471B1 (en) Method for equalizing output data signal of voltage mode driver and driver circuit using the same
JP4664845B2 (en) Key matrix circuit
JP2007122250A (en) Memory interface circuit
JP2009212930A (en) Input-level determination circuit
JP4542334B2 (en) Data transmission control device and data transmission control method
JP2010103663A (en) Receiving circuit, electronic apparatus, and method for controlling receiving circuit
US10015026B2 (en) Transmitter and communication system
US20090027237A1 (en) Key system and method capable of detecting if a plurality of keys are triggered
JP2016224588A (en) Controller and control method
JPH11282401A (en) Planar display device
US20020044139A1 (en) Digital rotary switch signal reading circuit
CN115794014A (en) Data restoration detection method and device for image input interface and storage medium

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100419

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100419

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120214

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120404

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20120424

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120523

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

Free format text: PAYMENT UNTIL: 20150601

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 5005442

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250