JPH0421019A - Key detecting method - Google Patents

Key detecting method

Info

Publication number
JPH0421019A
JPH0421019A JP2123511A JP12351190A JPH0421019A JP H0421019 A JPH0421019 A JP H0421019A JP 2123511 A JP2123511 A JP 2123511A JP 12351190 A JP12351190 A JP 12351190A JP H0421019 A JPH0421019 A JP H0421019A
Authority
JP
Japan
Prior art keywords
output information
key
switch group
read
output
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2123511A
Other languages
Japanese (ja)
Inventor
Tsutomu Shibazaki
芝崎 勉
Katsuhiko Onozuka
勝彦 小野塚
Teruhiro Hataya
畑谷 彰宏
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.)
Tamura Electric Works Ltd
Original Assignee
Tamura Electric Works 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 Tamura Electric Works Ltd filed Critical Tamura Electric Works Ltd
Priority to JP2123511A priority Critical patent/JPH0421019A/en
Publication of JPH0421019A publication Critical patent/JPH0421019A/en
Pending legal-status Critical Current

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

PURPOSE:To prevent the generation of a noise in a cordless telephone set, etc., in the course of speech by selecting successively a switch group from the direction being different from the read-out direction and detecting the output information, when the read-out output information is different from the output information at an initial time. CONSTITUTION:Output information of a switch group is read out of the direction of one of the direction and the column direction of the switch group, and in the case the read-out output information is different from output information at an initial time, the switch group is selected successively from the direction being different from the read-out direction and this output information is read out. For instance, in the case the output information of the switch group in the direction, that is, input data from input ports a1 - a4 are read out and all of them are not [H] level data, the switch group in the column direction, that is, output ports b1 - b5 are selected successively and the output information of the switch group in the row direction is read out and detected. In such a way, since the key detection is executed only at the time when keys 2, 3 are depressed, a noise in the course of speech of a telephone set caused by a selecting operation of the switch group can be eliminated.

Description

【発明の詳細な説明】 [産業上の利用分野コ 本発明は、操作されたキーの検出を行うキー検出方法に
関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a key detection method for detecting an operated key.

[従来の技術] 従来のこの種のキー検出方法は、第4図のタイミングチ
ャートに示すように、キーの押下の有無に無関係に常時
一定のタイミングで例えば列方向bl〜b5に順次「L
」レベルの出力を行い、行方向から押下されたキーの出
力情報を得るようにしている。
[Prior Art] As shown in the timing chart of FIG. 4, the conventional key detection method of this type sequentially detects "L" in the column direction bl to b5, for example, at a constant timing regardless of whether a key is pressed or not.
” level output, and output information of the pressed keys is obtained from the row direction.

[発明が解決しようとする課題] 上述した従来のキー検出方法は、キーの押下に無関係に
常時一定のタイミングで列方向に順次「H」または「L
」の出力を行って押下されたキーを検出するようにして
いるので、例えば通話中のコードレス電話機等で常時こ
のようなキースキャンが行われるとこれがノイズとなっ
て到来し、通話に支障を来すという問題があった。そし
て、このようなノイズを除去するためには、電話機にシ
ールド板等を付加しなければならず、コストアップの要
因になるという問題があった。
[Problems to be Solved by the Invention] The conventional key detection method described above always sequentially detects "H" or "L" in the column direction at a constant timing regardless of the key press.
” is output to detect the pressed key. Therefore, if such key scanning is performed constantly on a cordless phone during a call, for example, this will come as noise and interfere with the call. There was a problem. In order to remove such noise, it is necessary to add a shield plate or the like to the telephone, which poses a problem of increasing costs.

[課題を解決するための手段] このような課題を解決するために、本発明に係るキー検
出方法は、スイッチ群の行方向および列方向のいずれか
一方の方向からスイッチ群の出力情報を読み出し、この
読み出された出力情報がイニシャル時の出力情報と異な
ったときに、読み出した方向と異なる方向から順次スイ
ッチ群を選択して選択されたスイッチ群の出力情報を読
み出し方向から読み出すことにより操作キーを検出する
ようにした方法である。
[Means for Solving the Problems] In order to solve such problems, a key detection method according to the present invention reads out output information of a switch group from either the row direction or the column direction of the switch group. , when this read output information differs from the initial output information, the operation is performed by sequentially selecting switch groups from a direction different from the read direction and reading out the output information of the selected switch groups from the read direction. This method detects the key.

[作用] 読み出された出力情報がイニシャル時の出力情報と異な
った場合は、読み出した方向と異なる方向から順次スイ
ッチ群が選択されてこの出力情報が読み出される。
[Operation] If the read output information is different from the initial output information, the switch group is sequentially selected from a direction different from the read direction, and this output information is read out.

[実施例] 次に、本発明について図面を参照して説明する。[Example] Next, the present invention will be explained with reference to the drawings.

第1図は本発明に係るキー検出方法を適用したコードレ
ス電話機の一実施例を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a cordless telephone to which a key detection method according to the present invention is applied.

同図において、1はキー検出を行うとともにこの電話機
全体の制御を行うCPU、2はマトリックス状のスイッ
チ群から構成されるダイヤルキー、3は同様にマトリッ
クス状のスイッチ群から構成される機能キー、4はアン
テナ、5は通話回路を内蔵した無線送受信部、Tは送話
器、Rは受話器、al〜a4はキーの押下を検出するた
めのCPUIの入力ボート、b8〜b、はキーの選択を
行うCPUIの出力ポートである。
In the figure, 1 is a CPU that performs key detection and controls the entire telephone; 2 is a dial key made up of a matrix of switches; 3 is a function key made of a matrix of switches; 4 is an antenna, 5 is a wireless transmitter/receiver unit with a built-in communication circuit, T is a transmitter, R is a receiver, al to a4 are CPU input ports for detecting key presses, and b8 to b are key selections. This is the output port of the CPUI.

次に、以上のように構成されたコードレス電話機のCP
UIのキー検出方法について、第2図のフローチャート
に基づきその動作を説明する。
Next, the CP of the cordless telephone configured as above
The operation of the UI key detection method will be explained based on the flowchart shown in FIG.

まず、電源が投入されると、CPUIはイニシャル処理
の中で全ての出力ポートb1〜b、に「L」レベルの出
力処理を実行して、この出力ポートb□〜b、を「L」
レベルの状態に設定する。これは、ダイヤルキー2およ
び機能キー3の中のいずれのキーが押下されても入力ボ
ートa。
First, when the power is turned on, the CPU performs an "L" level output process to all output ports b1 to b during initial processing, and sets these output ports b to b to "L".
Set to level state. This means that no matter which key among dial key 2 and function key 3 is pressed, input port a is pressed.

〜a4を介してこの押下されたキーの検出ができるよう
にするためであり、イニシャル時においてキーが押下さ
れない場合は、入力ポートa1〜a4から入力されるデ
ータは全てrH,レベルのデータとなっている。そして
、以後、以下に続く処理を一定のタイミングで実行する
ものとなっている。
This is to enable detection of this pressed key via ports a4, and if no key is pressed at the initial time, all data input from input ports a1 to a4 will be rH, level data. ing. Thereafter, the following processes are executed at a constant timing.

すなわち、ステップ10で入力ポートal〜a4からの
キーデータ、つまり押下されたダイヤルキー2および機
能キー3のデータを入力し、ステップ11で入力データ
はすべて「H」レベルのデータかの判断を行う、そして
、入力データが全て「H」レベルのデータであれば、各
キーのスイッチは閉成されておらず、従っていずれのキ
ーも押下されていないということで、そのまま終了し次
のタイミングが到来したときに再びステップ10から実
行される。
That is, in step 10, the key data from the input ports al to a4, that is, the data of the pressed dial key 2 and function key 3, is input, and in step 11, it is determined whether all input data is "H" level data. , and if all the input data is "H" level data, the switches for each key are not closed, and therefore, none of the keys are pressed, so the process ends and the next timing arrives. When this happens, the process starts again from step 10.

また、入力データが全てrH,レベルのデータではない
場合は、いずれかのキーが押下されてそのスイッチが閉
成され入力ポートa0〜a4に対応するデータのうちの
いずれかのデータが「L」レベルになったということで
、ステップ11で「N」となり、この場合は、押下され
たキーがどのキーに相当するのかを検出するために、後
述する従来のキー検出処理を実行して押下された該当の
キーを検出する(ステップ12)。そして、この従来の
キー検出処理の終了後、ステップ13で出力ポートb1
〜b5に「L」レベルの出力を与える処理を実行して、
この出力ポートb0〜b。
In addition, if the input data is not all rH, level data, when any key is pressed and the switch is closed, one of the data corresponding to input ports a0 to a4 becomes "L". In this case, in order to detect which key the pressed key corresponds to, conventional key detection processing, which will be described later, is executed to determine which key the pressed key corresponds to. The corresponding key is detected (step 12). After this conventional key detection process is completed, in step 13 the output port b1 is
~Execute the process of giving “L” level output to b5,
This output port b0-b.

をrl」レベルの状態に復旧させる。``rl'' level.

次に、第3図は上述した従来のキー検出処理、すなわち
キースキャンの動作を説明するフローチャートである。
Next, FIG. 3 is a flowchart illustrating the above-mentioned conventional key detection process, that is, key scanning operation.

まず、ステップ20でこのCPUIのレジスタXに出力
ボート数(この実施例の場合は5個)を設定し、続いて
ステップ21でレジスタyに「1」を設定する。その後
、ステップ22で出力ポートby(最初はレジスタyに
1が設定されているので出力ポートb1が選択される)
に「L」レベルの出力を行うとともに他の出力ポートは
rH,レベル状態に設定してキーの選択を行い、ステッ
プ23で入力ボートa、〜a4を介してこの選択された
キーのデータを入力する。
First, in step 20, the number of output votes (5 in this embodiment) is set in register X of this CPUI, and then in step 21, "1" is set in register y. Then, in step 22, output port by (at first, register y is set to 1, so output port b1 is selected)
Outputs "L" level to , sets other output ports to rH, level state, selects a key, and inputs the data of the selected key via input ports a, ~a4 in step 23. do.

そして、ステップ24で入力データは全て「H」レベル
かの判断を行い、これが全てrH,レベルデータであれ
ばステップ26に移行するが、入力データが全てrH,
レベルデータではない場合は「N」となり、ステップ2
5でキー押下処理、すなわち選択された列方向の出力ボ
ートの値(レジスタyの値)と行方向の各入力ボートa
1〜a4の入力データの中でどのボートのデータが「L
」レベルになっているかの判断とから押下されたキーを
検出する。
Then, in step 24, it is determined whether all the input data is at the "H" level. If all of the input data is rH, level data, the process moves to step 26, but if all the input data is rH,
If it is not level data, it will be "N" and step 2
5, key press processing, that is, the value of the selected column direction output boat (value of register y) and each row direction input boat a
Which boat's data is "L" among the input data of 1 to a4?
” level, and detects the pressed key.

その後、ステップ26に移行してレジスタXの値とレジ
スタyとの値が等しくなったか否かを判断し、等しくな
い場合は、ステップ27でレジスタyの値を1だけ増加
させ、ステップ22に戻ってこのレジスタyの値で示す
出力ボートbyだけを「L」レベルの状態にして次のキ
ー検出を行つ。
Thereafter, the process moves to step 26 to determine whether the value of register Only the output port by indicated by the value of the register y of the lever is set to the "L" level, and the next key detection is performed.

こうして、順次出力ボートb1〜b、が選択されること
によりキー検出が行われると、最終的にレジスタyの値
は5となり、また、レジスタXの値も5に設定されてい
るのでステップ26で「Y」となりこのキー検出処理は
終了する。
In this way, when key detection is performed by sequentially selecting output ports b1 to b, the value of register y becomes 5, and since the value of register X is also set to 5, step 26 is performed. The result is "Y" and this key detection process ends.

以上説明したように、このキー検出方法は、常時キース
キャンを行わず、始めにボートb4〜b、を「L」レベ
ル状態に設定しておいて、入力ボートa1〜a4からの
データを入力していずれかののキーが押下されたか否か
を判断し、いずれかのキーが押下されてはじめてキース
キャンを行うようにしたものである。
As explained above, this key detection method does not perform constant key scanning, but first sets ports b4 to b to the "L" level state, and then inputs data from input ports a1 to a4. It is determined whether or not any key has been pressed, and key scanning is performed only after any key is pressed.

なお、本実施例においては、行方向のスイッチ群の出力
情報、すなわち入力ボートa1〜a4からの入力データ
を読み出してこれが全て「H」レベルデータではない場
合は、列方向のスイッチ群、すなわち出力ボートb□〜
b、を順次選択して行方向のスイッチ群の出力情報を読
み出して検出するようにしたが、逆に、列方向のスイッ
チ群の出力情報を読み出してこれがrH,レベルではな
いときに行方向のスイッチ群を順次選択して列方向のス
イッチ群の出力情報を検出するようにしても良い。
In this embodiment, when the output information of the switch group in the row direction, that is, the input data from the input ports a1 to a4, is not all "H" level data, the output information of the switch group in the column direction, that is, the output Boat b□~
b, is sequentially selected and the output information of the switch group in the row direction is read out for detection, but conversely, when the output information of the switch group in the column direction is read out and it is not at rH, level, the output information of the row direction switch group is read out and detected. The switch groups may be sequentially selected to detect the output information of the switch groups in the column direction.

[発明の効果] 以上説明したことから明らかなように、本発明に係るキ
ー検出方法は、読み出された出力情報がイニシャル時の
出力情報と異なった場合に、読み出した方向と異なる方
向から順次スイッチ群を選択してこの出力情報を検出す
るように構成し、キーが押下されたときだけキー検出を
行うようにしたので、スイッチ群の選択動作に起因する
電話機の通話中のノイズを除去でき、従って電話機を経
済的に構成できるという効果がある。
[Effects of the Invention] As is clear from the above explanation, in the key detection method according to the present invention, when the readout output information differs from the initial output information, the key detection method sequentially starts from a direction different from the readout direction. Since the configuration is configured to select a switch group and detect this output information, and key detection is performed only when a key is pressed, it is possible to eliminate noise during telephone calls caused by the selection operation of the switch group. Therefore, there is an effect that the telephone can be constructed economically.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明に係るキー検出方法?適用したコードレ
ス電話機の一実施例を示すブロック図、第2図はこの動
作を説明するフローチャート、第3図は従来のキー検出
の動作を説明するフローチャート、第4図は従来のキー
検出のタイミングチャートである。 1−・・・CPU、2・・・・ダイヤルキー3・・・・
機能キー、4・・・・アンテナ、5・−・−無線送受信
部、T・・・・送話器、R−・・・受話器、a1〜a4
・・・・入力ポート、 b工〜b5 ・出力ボート。
Fig. 1 shows the key detection method according to the present invention? A block diagram showing an example of the applied cordless telephone, FIG. 2 is a flowchart explaining this operation, FIG. 3 is a flowchart explaining the operation of conventional key detection, and FIG. 4 is a timing chart of conventional key detection. It is. 1-...CPU, 2...Dial key 3...
Function key, 4...Antenna, 5...-Radio transmitting/receiving section, T...Telephone, R-...Telephone receiver, a1 to a4
...Input port, b engineering ~ b5 ・Output port.

Claims (1)

【特許請求の範囲】 複数のキーにそれぞれ対応して設けられM行×N列のマ
トリックス状に配置された複数のスイッチ群を備えた機
器において、 前記スイッチ群の行方向および列方向のいずれか一方の
方向からスイッチ群の出力情報を読み出し、この読み出
された出力情報がイニシャル時の出力情報と異なったと
きに、読み出した方向と異なる方向から順次スイッチ群
を選択して選択されたスイッチ群の出力情報を読み出し
方向から読み出すことにより操作キーを検出するように
したことを特徴とするキー検出方法。
[Scope of Claims] A device comprising a plurality of switch groups arranged in a matrix of M rows and N columns and provided corresponding to a plurality of keys, wherein either the row direction or the column direction of the switch group The output information of the switch group is read from one direction, and when the read output information differs from the initial output information, the switch group is selected by sequentially selecting the switch groups from the direction different from the read direction. A key detection method characterized in that an operation key is detected by reading out output information from the reading direction.
JP2123511A 1990-05-14 1990-05-14 Key detecting method Pending JPH0421019A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2123511A JPH0421019A (en) 1990-05-14 1990-05-14 Key detecting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2123511A JPH0421019A (en) 1990-05-14 1990-05-14 Key detecting method

Publications (1)

Publication Number Publication Date
JPH0421019A true JPH0421019A (en) 1992-01-24

Family

ID=14862423

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2123511A Pending JPH0421019A (en) 1990-05-14 1990-05-14 Key detecting method

Country Status (1)

Country Link
JP (1) JPH0421019A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1994016380A1 (en) * 1993-01-18 1994-07-21 Fanuc Ltd Numeric control machine tool

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61732B2 (en) * 1978-11-09 1986-01-10 Tokyo Shibaura Electric Co
JPS63149720A (en) * 1986-12-15 1988-06-22 Fujitsu General Ltd Keyboard device
JPS63188217A (en) * 1987-01-30 1988-08-03 Nec Corp Key scanning circuit
JPS6461813A (en) * 1987-09-01 1989-03-08 Nec Corp Key matrix switching circuit
JPH01184521A (en) * 1988-01-19 1989-07-24 Sanyo Electric Co Ltd Electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61732B2 (en) * 1978-11-09 1986-01-10 Tokyo Shibaura Electric Co
JPS63149720A (en) * 1986-12-15 1988-06-22 Fujitsu General Ltd Keyboard device
JPS63188217A (en) * 1987-01-30 1988-08-03 Nec Corp Key scanning circuit
JPS6461813A (en) * 1987-09-01 1989-03-08 Nec Corp Key matrix switching circuit
JPH01184521A (en) * 1988-01-19 1989-07-24 Sanyo Electric Co Ltd Electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1994016380A1 (en) * 1993-01-18 1994-07-21 Fanuc Ltd Numeric control machine tool
US5483460A (en) * 1993-01-18 1996-01-09 Fanuc Ltd. Numerically controlled machine tool having switch matrices with a reduced numbers of signal lines

Similar Documents

Publication Publication Date Title
JPS6242658A (en) Communicating terminal equipment
US20050231486A1 (en) Data entry method and apparatus
JPH0421019A (en) Key detecting method
CA1182928A (en) Method and apparatus for scanning a matrix of switchable elements
US7119719B2 (en) Device and method for improved text entry on an alphanumeric keypad
JP2000339083A (en) Input device
JP3272094B2 (en) Facsimile machine
KR100640372B1 (en) Method and apparatus for detecting signal of key input in a mobile communication terminal
KR100189249B1 (en) Telephone memory dialing method
KR100663505B1 (en) Method and apparatus for inputting hangul in a mobile terminal
KR100594081B1 (en) Character input method in communication terminal device_
JP3037314B1 (en) Key input device
GB2198613A (en) Auto dial service system
KR0173561B1 (en) Abbreviated dialing method of telephone terminal unit
KR100229869B1 (en) Key extending method of keyphone
KR100247037B1 (en) Device and method for redialing by stages
KR20010053011A (en) Call origination in a mobile telephone apparatus
KR100200340B1 (en) Ring perceiving method in telephone terminal apparatus
JPH01236848A (en) System telephone set
JPH10257153A (en) Telephone set with abbreviated dial function
JPH01235446A (en) Telephone set
JPH0426129B2 (en)
KR101153877B1 (en) Key input apparatus for identifying multi key in portable communication terminal
JP3393973B2 (en) Key scan method and device
JPH03196324A (en) Operating key detecting method