JP2001350565A - Key operation detecting method - Google Patents

Key operation detecting method

Info

Publication number
JP2001350565A
JP2001350565A JP2000173008A JP2000173008A JP2001350565A JP 2001350565 A JP2001350565 A JP 2001350565A JP 2000173008 A JP2000173008 A JP 2000173008A JP 2000173008 A JP2000173008 A JP 2000173008A JP 2001350565 A JP2001350565 A JP 2001350565A
Authority
JP
Japan
Prior art keywords
key
matrix
data
input
operated
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
JP2000173008A
Other languages
Japanese (ja)
Inventor
Shi Cho
鷙 張
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.)
Hitachi Kokusai Electric Inc
Original Assignee
Hitachi Kokusai Electric Inc
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 Hitachi Kokusai Electric Inc filed Critical Hitachi Kokusai Electric Inc
Priority to JP2000173008A priority Critical patent/JP2001350565A/en
Publication of JP2001350565A publication Critical patent/JP2001350565A/en
Pending legal-status Critical Current

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a key operation detecting method which can decrease the frequency of repetition of data read processing since the operability of a device becomes worse because of a heavy processing load on a microcomputer system as the data read processing is repeated several times to detect whether or not all keys of a remote controller connected to a key station of, for example, a local government disaster-preventive radio system are operated if the number of the keys of the remote controller is large when a specific group consisting of slave stations is selected by operating keys of the remote controller. SOLUTION: It is made possible to set the input and output of a matrix row part and a matrix column part. Key operation detection is carried out by using data read in when the matrix row part is set to the input and data read in when the matrix column part is set to the input to lighten the processing load on the microcomputer and improve the operability of the device.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、例えば市町村防災
無線システムで親局が特定のグループの子局へ指令をだ
すときのグループ選択を行うキーに関し、操作されたキ
ーを検出する方法(キー操作検出方法)に関するもので
ある。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a key for selecting a group when a master station issues a command to a slave station of a specific group in a municipal disaster prevention radio system, for example, and a method for detecting an operated key (key operation). Detection method).

【0002】[0002]

【従来の技術】従来のキー操作検出方法の一例を図1、
2を参照して説明する。図1は、従来の一例であるマイ
コンシステムの構成を示すブロック図である。図1にお
いて、1はマイコン制御部、2はマトリックス行部、3
はマトリックス列部、4はマトリックス行部2へのリー
ド信号、5はマトリックス列部3へのライト信号、6は
8×8キーマトリックス部である。キー番号が小さい順
に8個ずつ、操作されたか否かを検出する。この検出を
8回繰り返すことにより、計64個のキーが操作された
か否かを検出する。即ち、1〜8のキーが操作されたか
否かを検出した後、9〜16のキーが操作されたか否か
を検出する。その後は、17〜24のキー、25〜32
のキーと順番に行い、最後は57〜64のキーが操作さ
れたか否かを検出する。初期設定時には、マトリックス
行部2のデータD0〜D7、マトリックス列部3のデー
タD0〜D7は全て1である。マイコン制御部1からマ
トリックス列部3へライト信号5が伝送されたとき、デ
ータD0が0に変換されて出力される。すると、マイコ
ン制御部1からマトリックス行部2へリード信号4が伝
送される。この伝送により、1〜7のキーが操作された
か否かに応じて、マトリックス行部2のデータD0〜D
7が入力される。キーが操作されたときのデータの値は
0、キーが押されないときのデータの値が1である。例
えばデータD2の値が0となったとき、3のキーが操作
されたことをマイコン制御部1が検出する。以下同様に
して、8〜16のキーが操作されたか否か、17〜24
のキーが操作されたか否か、…57〜64のキーが操作
されたか否かを検出するとき、マイコン制御部1からマ
トリックス列部3へライト信号5が伝送された後、マト
リックス列部3からデータD1〜D7の内の1ビットが
0に変換されて出力される。(8〜16のキーが操作さ
れたか否かのときはデータD1が0に、17〜24のキ
ーが操作されたか否かのときはデータD2が0に、…、
57〜64のキーが操作されたか否かを検出するときD
7が0に変換されて出力される。)すると、マイコン制
御部1からマトリックス行部2へリード信号4が伝送さ
れる。この伝送により、キーが操作されたか否かに応じ
て、マトリックス行部2のデータD0〜D7が入力され
る。キーが操作されたときのデータの値は0、キーが押
されないときのデータの値が1である。例えば、マトリ
ックス列部3からデータD3が0に変換されて出力され
た場合でマトリックス行部2のデータD2の値が0とな
ったとき、27のキーが操作されたことをマイコン制御
部1が検出する。
2. Description of the Related Art An example of a conventional key operation detecting method is shown in FIG.
This will be described with reference to FIG. FIG. 1 is a block diagram showing a configuration of a conventional microcomputer system. In FIG. 1, 1 is a microcomputer control unit, 2 is a matrix row unit, 3
Is a matrix column section, 4 is a read signal to the matrix row section 2, 5 is a write signal to the matrix column section 3, and 6 is an 8 × 8 key matrix section. It is detected whether the key numbers are operated in ascending order of eight key numbers. By repeating this detection eight times, it is detected whether a total of 64 keys have been operated. That is, after detecting whether the keys 1 to 8 are operated, it is detected whether the keys 9 to 16 are operated. After that, 17-24 keys, 25-32
Are performed in that order, and finally, it is detected whether or not keys 57 to 64 are operated. At the time of initial setting, data D0 to D7 of the matrix row 2 and data D0 to D7 of the matrix column 3 are all 1. When the write signal 5 is transmitted from the microcomputer control unit 1 to the matrix column unit 3, the data D0 is converted to 0 and output. Then, the read signal 4 is transmitted from the microcomputer control unit 1 to the matrix row unit 2. By this transmission, the data D0 to D0 of the matrix row unit 2 are determined according to whether the keys 1 to 7 are operated.
7 is input. The value of the data when the key is operated is 0, and the value of the data when the key is not pressed is 1. For example, when the value of the data D2 becomes 0, the microcomputer control unit 1 detects that the key 3 is operated. In the same manner, whether or not the keys 8 to 16 have been operated,
.., When keys 57 to 64 are operated, a write signal 5 is transmitted from the microcomputer control unit 1 to the matrix column unit 3 and then the matrix column unit 3 One bit of the data D1 to D7 is converted to 0 and output. (Data D1 is 0 when keys 8 to 16 are operated, data D2 is 0 when keys 17 to 24 are operated,...,
D to detect whether keys 57 to 64 have been operated
7 is converted to 0 and output. Then, the read signal 4 is transmitted from the microcomputer control unit 1 to the matrix row unit 2. By this transmission, the data D0 to D7 of the matrix row 2 are input depending on whether or not a key is operated. The value of the data when the key is operated is 0, and the value of the data when the key is not pressed is 1. For example, when the data D3 is converted to 0 from the matrix column section 3 and output, the microcomputer control section 1 determines that the 27 key is operated when the value of the data D2 of the matrix row section 2 becomes 0. To detect.

【0003】図2は、従来の一例であるマイコンシステ
ムによるキー操作検出方法を示すフローチャートであ
る。図2において、7はキー入力検出開始、8はマトリ
ックス列部3のイニシャル処理、9はマトリックス行部
データの読込処理、10はキー入力有無判断処理、11
はキー入力判断処理、12はキー入力完了判定処理、1
3は次のマトリックス列のキー入力検出準備処理、14
はキー入力検出後の処理である。キー入力検出が開始さ
れると(キー入力検出開始7)、マイコン制御部1はマ
トリックス列部3に対してライト動作を行わせることに
より、マトリックス列部3からデータD0を0に変換し
て出力する(マトリックス列部3のイニシャル処理
8)。すると、マイコン制御部1はマトリックス行部2
に対してリード動作を行わせることにより、データD0
〜D7がマトリックス行部2に入力される(マトリック
ス行部データの読込処理9)。このデータD0〜D7が
マイコン制御部1へ伝送された後、D0〜D7の各デー
タ(ビット)に0があるか否かを判断する(キー入力有
無判断処理10)。そして、 D0〜D7の各データ
(ビット)に0があるときは、どのビットが0であるか
を判定することで1〜8のどのキーが操作されたかを判
断する(キー入力判断処理11)。一方、 D0〜D7
の各データ(ビット)に0がないときは、キー入力判断
処理は行わない。1〜8のどのキーが操作されたかを判
断した後、キー入力完了判定処理12及び次のマトリッ
クス列のキー入力検出準備処理13により、マトリック
ス列部3のイニシャル処理8〜キー入力判断処理11の
動作が7回繰り返される。この動作が繰り返されること
により、9〜16のキー、17〜24のキー、…57〜
64のキーが操作されたかを順番に判断する。キー入力
完了判定処理12では、全て(1〜64)のキーに対し
て操作されたか否かの検出が、終了したか否かを判定す
る。検出が終了していないとき、次のマトリックス列の
キー入力検出準備処理13により、マトリックス列部3
から1桁上のデータ(ビット)を0に変換して出力する
ことで、対応するキーが操作されたか否かを判定する。
例えば、マトリックス列部3からデータD1を0に変換
して出力することで9〜16のキーが操作されたか否か
を検出し終えた後、マトリックス列部3からデータD2
を0に変換して出力する。そして、17〜24のキーが
操作されたか否かを検出する。全て(1〜64)のキー
に対して、操作されたか否かを検出し終えた後、キー入
力検出後の処理14を行う。キー入力検出後の処理14
は、キーを例えば市町村防災無線システムにおいて親局
が複数の子局から成る特定のグループを選択するときに
用いる場合、親局から選択した特定のグループ内の全て
の子局へ指令が伝送される。例えば、20番のキーが操
作されたとき、グループ番号20に属する子局全てに対
して指令を伝送する。
FIG. 2 is a flowchart showing a key operation detecting method by a microcomputer system as an example of the related art. In FIG. 2, 7 is a key input detection start, 8 is an initial process of the matrix column portion 3, 9 is a read process of matrix row portion data, 10 is a key input presence / absence judgment process, 11
Is a key input determination process, 12 is a key input completion determination process, 1
3 is a key input detection preparation process for the next matrix column, 14
Is a process after the key input is detected. When the key input detection is started (key input detection start 7), the microcomputer control unit 1 causes the matrix column unit 3 to perform a write operation, thereby converting the data D0 from the matrix column unit 3 to 0 and outputting it. (Initial processing 8 of matrix column section 3). Then, the microcomputer control unit 1 controls the matrix row unit 2
Performs a read operation on data D0.
To D7 are input to the matrix row 2 (matrix row data reading process 9). After the data D0 to D7 are transmitted to the microcomputer control unit 1, it is determined whether or not each data (bit) of D0 to D7 has 0 (key input presence / absence determination processing 10). When there is 0 in each data (bit) of D0 to D7, it is determined which key is 0 by determining which bit is 0 (key input determination processing 11). . On the other hand, D0 to D7
If there is no 0 in each data (bit), the key input determination processing is not performed. After determining which of the keys 1 to 8 has been operated, a key input completion determination process 12 and a key input detection preparation process 13 for the next matrix column perform an initial process 8 to a key input determination process 11 of the matrix column portion 3. The operation is repeated seven times. By repeating this operation, keys 9 to 16, keys 17 to 24,.
It is sequentially determined whether 64 keys have been operated. In the key input completion determination processing 12, it is determined whether or not detection of whether or not all (1 to 64) keys have been operated has been completed. When the detection has not been completed, the key input detection preparation processing 13 for the next matrix column performs the matrix column portion 3
By converting the data (bit) one digit higher than the data to 0 and outputting it, it is determined whether or not the corresponding key has been operated.
For example, after the data D1 is converted from the matrix column 3 to 0 and output to detect whether the keys 9 to 16 are operated, the data D1 is converted from the matrix column 3 to the data D2.
Is converted to 0 and output. Then, it is detected whether or not the keys 17 to 24 are operated. After detecting whether or not all the keys (1 to 64) have been operated, the processing 14 after the key input is detected is performed. Processing after key input detection 14
Is used when the master station selects a specific group of a plurality of slave stations in a municipal disaster prevention radio system, for example, a command is transmitted from the master station to all the slave stations in the selected specific group. . For example, when the No. 20 key is operated, a command is transmitted to all slave stations belonging to the group number 20.

【0004】[0004]

【発明が解決しようとする課題】前述の従来のキー操作
検出方法では、キーの数が多い場合、全てのキーに対し
て操作されたか否かを検出するには、数回の繰り返し処
理が必要となる。(例えば、図1、2に示したキー検出
方法では、8×8のキーマトリックスであるため、8回
の繰り返し処理が必要となる。)従って、マイコンシス
テムの処理負担が重くなり、装置の操作性が悪くなると
いう欠点がある。例えば、キーを市町村防災無線システ
ムにおいて親局が複数の子局を含む特定のグループを選
択するときに用いる場合、特定のグループを選択してか
らグループ内の全ての子局に対して指令をだすまでの時
間が長くなり、操作性が悪くなる。
In the above-mentioned conventional key operation detecting method, when the number of keys is large, several times of repetitive processing are required to detect whether or not all the keys have been operated. Becomes (For example, in the key detection method shown in FIGS. 1 and 2, an 8 × 8 key matrix requires eight repetitions of processing.) Therefore, the processing load on the microcomputer system is increased, and operation of the apparatus is increased. There is a drawback that the property deteriorates. For example, when a key is used when a master station selects a specific group including a plurality of slave stations in a municipal disaster prevention radio system, a command is issued to all the slave stations in the group after selecting the specific group. Time until the operation becomes longer.

【0005】そこで本発明では、上記の欠点を除去し、
キーが操作されたか否かの検出するためのデータの読込
回数を減らし、マイコンシステムの処理負担を軽くでき
るようにした極めて操作性の良いキー操作検出方法を提
供することを目的とする。
Accordingly, the present invention eliminates the above-mentioned disadvantages,
It is an object of the present invention to provide a key operation detection method with extremely high operability, in which the number of times of reading data for detecting whether a key is operated is reduced and the processing load on a microcomputer system can be reduced.

【0006】[0006]

【課題を解決するための手段】本発明は上記の目的を達
成するために、マトリックス行部を入力、マトリックス
列部を出力に設定した後、マトリックス列部から出力す
るデータを全て所定値(例えば、0)とし、マトリック
ス行部に入力されるデータをマイコン制御部(制御部)
が読み込むようにしたものである。更に、マトリックス
行部を出力、マトリックス列部を入力に設定した後、マ
トリックス行部から出力するデータを全て所定値(例え
ば、0)とし、マトリックし列部に入力されるデータを
マイコン制御部(制御部)が読み込むようにしたもので
ある。そして、マトリックス行部に入力されたデータ、
マトリックス列部に入力されたデータから、どのキーが
操作されたか否かを検出するようにしたものである。
In order to achieve the above object, the present invention sets a matrix row portion to input and a matrix column portion to output, and then sets all data output from the matrix column portion to a predetermined value (for example, , 0), and the data input to the matrix row section is transmitted to the microcomputer control section (control section).
Is to be read. Further, after setting the matrix row portion to output and the matrix column portion to input, all the data output from the matrix row portion are set to predetermined values (for example, 0), and the data input to the matrix column portion is converted to the microcomputer control portion ( (Control unit). Then, the data input to the matrix row,
This is to detect which key has been operated or not from the data input to the matrix column.

【0007】[0007]

【発明の実施の形態】本発明の一実施例であるキー操作
検出方法を図3、4を参照して説明する。図3は、本実
施例のマイコンシステムの構成を示すブロック図であ
る。図3において、1はマイコン制御部、6は8×8キ
ーマトリックス部、15はマトリックス行部、16はマ
トリックス列部、17はマトリックス行部15へのリー
ド/ライト信号、18はマトリックス列部16へのリー
ド/ライト信号である。まず、マトリックス行部15を
入力、マトリックス列部16を出力に設定し、マトリッ
クス行部15に入力されるデータD0〜D7をマイコン
制御部1が読み込む。次に、マトリックス行部15を出
力、マトリックス列部16を入力に設定し、マトリック
ス列部16に入力されるデータD0〜D7をマイコン制
御部1が読み込む。マトリックス行部15に入力される
データD0〜D7、マトリックス列部16に入力される
データD0〜D7より、どのキーが操作されたか否かを
検出する。キーが操作されたときのデータの値は0、キ
ーが押されないときのデータの値が1である。従って、
例えば、マトリックス行部15に入力されるデータが1
1111110(D0のみ、0)、マトリックス列部1
6に入力されるデータが11111110(D0のみ、
0)のとき、1番のキーが操作されたことをマイコン制
御部1が判定する。マトリックス行部15、マトリック
ス列部16の入力/出力の切替は、マイコン制御部1か
ら出力するリード/ライト信号17、18をリード信号
として出力するか、ライト信号として出力するかを切り
替えることにより行う。
DESCRIPTION OF THE PREFERRED EMBODIMENTS A key operation detecting method according to an embodiment of the present invention will be described with reference to FIGS. FIG. 3 is a block diagram illustrating the configuration of the microcomputer system according to the present embodiment. In FIG. 3, 1 is a microcomputer control unit, 6 is an 8 × 8 key matrix unit, 15 is a matrix row unit, 16 is a matrix column unit, 17 is a read / write signal to the matrix row unit 15, and 18 is a matrix column unit 16. Read / write signal. First, the matrix row section 15 is set to input and the matrix column section 16 is set to output, and the microcomputer control section 1 reads data D0 to D7 input to the matrix row section 15. Next, the matrix row section 15 is set to output and the matrix column section 16 is set to input, and the microcomputer control section 1 reads data D0 to D7 input to the matrix column section 16. From the data D0 to D7 input to the matrix row section 15 and the data D0 to D7 input to the matrix column section 16, it is detected which key has been operated. The value of the data when the key is operated is 0, and the value of the data when the key is not pressed is 1. Therefore,
For example, if the data input to the matrix row unit 15 is 1
1111110 (D0 only, 0), matrix column 1
6 is 11111110 (D0 only,
In the case of 0), the microcomputer control unit 1 determines that the first key has been operated. The input / output of the matrix row section 15 and the matrix column section 16 is switched by switching between read / write signals 17 and 18 output from the microcomputer control section 1 as read signals or write signals. .

【0008】図4は、本実施例であるマイコンシステム
によるキー操作検出方法を示すフローチャートである。
図4において、7はキー入力検出開始、19はマトリッ
クス行部15、マトリックス列部16の入出力設定処
理、20はマトリックス列部16のイニシャル処理、2
1はマトリックス行部データの読込処理、22はキー入
力有無判断処理、23はマトリックス行部15、マトリ
ックス列部16の入出力切替設定処理、24はマトリッ
クス行部15のイニシャル処理、25はマトリックス列
部データの読込処理、26はキー入力判断処理、14は
キー入力検出後の処理である。キー入力検出が開始され
ると(キー入力検出開始7)、マイコン制御部1は、マ
トリックス行部15に対してリード信号を出力すると共
にマトリックス列部16に対してライト信号を出力する
(マトリックス行部、マトリックス列部の入出力設定処
理19)。ライト信号が出力されることにより、マトリ
ックス列部16からデータD0〜D7を全て0に変換し
て出力する(マトリックス列部16のイニシャル処理2
0)。一方、リード信号が出力されることにより、キー
が操作されたか否かに応じてデータD0〜D7がマトリ
ックス行部15に入力される(マトリックス行部データ
の読込処理21)。このD0〜D7のデータがマイコン
制御部1へ伝送された後、D0〜D7の各データ(ビッ
ト)に0があるか否かを判断する(キー入力有無判断処
理22)。そして、 D0〜D7の各データ(ビット)
に0があるときは、マイコン制御部1へD0〜D7のデ
ータが伝送される。一方、 D0〜D7の各データ(ビ
ット)に0がないときは、マトリックス行部データの読
込処理21〜キー入力有無判断処理22の動作を繰り返
す。 このD0〜D7のデータがマイコン制御部1へ入
力された後、マトリックス行部15に対してライト信号
を出力すると共にマトリックス列部16に対してリード
信号を出力することで、マトリックス行部15、マトリ
ックス列部16の入出力が切り替えられる(マトリック
ス行部、マトリックス列部の入出力切替設定処理2
3)。ライト信号が出力されることにより、マトリック
ス行部15からデータD0〜D7を全て0に変換して出
力する(マトリックス列部15のイニシャル処理2
4)。一方、リード信号が出力されることにより、キー
が操作されたか否かに応じてD0〜D7のデータがマト
リックス列部16に入力される(マトリックス列部デー
タの読込処理25)。そして、このD0〜D7のデータ
がマトリックス列部16からマイコン制御部1へ伝送さ
れる。マイコン制御部1は、マトリックス行部15から
伝送されたD0〜D7のデータ、マトリックス列部16
から伝送されたD0〜D7のデータからどのキーが操作
されたか否かを検出する。例えば、マトリックス行部1
5に入力されるデータが11110111(D3のみ、
0)、マトリックス列部16に入力されるデータが11
111011(D2のみ、0)のとき、20番のキーが
操作されたことをマイコン制御部1が判定する。キー入
力検出後の処理14は、キーを例えば市町村防災無線シ
ステムにおいて親局が複数の子局から成る特定のグルー
プを選択するときに用いる場合、親局から選択した特定
のグループ内の全ての子局へ指令が伝送される。例え
ば、20番のキーが操作されたとき、グループ番号20
に属する子局全てに対して指令を伝送する。
FIG. 4 is a flowchart showing a key operation detecting method by the microcomputer system according to the present embodiment.
In FIG. 4, 7 is a key input detection start, 19 is an input / output setting process of the matrix row section 15 and the matrix column section 16, 20 is an initial process of the matrix column section 16, 2
1 is a process of reading matrix row data, 22 is a key input presence / absence determination process, 23 is an input / output switching setting process of a matrix row portion 15 and a matrix column portion 16, 24 is an initial process of the matrix row portion 15, and 25 is a matrix column. The process of reading the set data, the process 26 for determining the key input, and the process 14 after the detection of the key input are shown. When key input detection is started (key input detection start 7), the microcomputer control unit 1 outputs a read signal to the matrix row unit 15 and outputs a write signal to the matrix column unit 16 (matrix row detection). Section, matrix column section input / output setting processing 19). When the write signal is output, the data D0 to D7 are all converted to 0 from the matrix column 16 and output (initial processing 2 of the matrix column 16).
0). On the other hand, when the read signal is output, data D0 to D7 are input to matrix row section 15 depending on whether or not a key is operated (matrix row section data reading processing 21). After the data D0 to D7 are transmitted to the microcomputer control unit 1, it is determined whether or not each data (bit) of D0 to D7 has 0 (key input presence / absence determination processing 22). And each data (bit) of D0 to D7
Is 0, the data of D0 to D7 is transmitted to the microcomputer control unit 1. On the other hand, when there is no 0 in each of the data (bits) D0 to D7, the operation of the matrix row data read processing 21 to the key input presence / absence determination processing 22 is repeated. After the data D0 to D7 are input to the microcomputer control unit 1, a write signal is output to the matrix row unit 15 and a read signal is output to the matrix column unit 16, so that the matrix row unit 15, The input / output of the matrix column 16 is switched (input / output switching setting processing 2 for matrix row and matrix column)
3). When the write signal is output, the data D0 to D7 are all converted to 0 from the matrix row unit 15 and output (initial processing 2 of the matrix column unit 15).
4). On the other hand, when the read signal is output, data D0 to D7 are input to the matrix column section 16 according to whether or not a key is operated (matrix column section data reading processing 25). Then, the data D0 to D7 are transmitted from the matrix column section 16 to the microcomputer control section 1. The microcomputer control unit 1 stores the data D0 to D7 transmitted from the matrix row unit 15 and the matrix column unit 16
It detects which key has been operated from the data D0 to D7 transmitted from. For example, matrix row 1
5 is 11110111 (D3 only,
0), the data input to the matrix column section 16 is 11
In the case of 1111011 (only D2, 0), the microcomputer control unit 1 determines that the 20th key has been operated. If the key is used when the master station selects a specific group consisting of a plurality of slave stations in a municipal disaster prevention radio system, for example, the process 14 after detecting the key input is performed when all the children in the specific group selected from the master station are used. The command is transmitted to the station. For example, when the number 20 key is operated, the group number 20
The command is transmitted to all the slave stations belonging to.

【0009】従来のキー操作検出方法では、前述の従来
の技術に記載した様に、データを読み込むことによるキ
ー操作の検出を8回繰り返さなければすべてのキーに対
して操作されたか否かを検出できない(1度に8個のキ
ーが操作されたか否かを検出し、この検出を8回繰り返
すことで計64個のキーが操作されたか否かを検出す
る。)。一方、本実施例のキー操作検出方法では、デー
タの読込を2回繰り返せばすべてのキーに対して操作さ
れたか否かを検出することができる(マトリックス行部
15から伝送されたD0〜D7のデータと、マトリック
ス列部16から伝送されたD0〜D7のデータからどの
キーが操作されたか否かを検出する。)。従って、デー
タの読込回数を減らすことができるため、本実施例では
マイコンシステムの処理負担を軽くすることができる。
従って、極めて操作性の良いキー検出方法を提供するこ
とができる。
In the conventional key operation detection method, as described in the above-mentioned conventional technology, it is determined whether or not all the keys have been operated unless the detection of the key operation by reading data is repeated eight times. No (detects whether eight keys have been operated at once, and repeats this detection eight times to detect whether a total of 64 keys have been operated). On the other hand, in the key operation detection method of the present embodiment, it is possible to detect whether or not all the keys have been operated by repeating the data reading twice (the D0 to D7 transmitted from the matrix row unit 15). It is detected which key has been operated from the data and the data D0 to D7 transmitted from the matrix column section 16). Accordingly, since the number of times of reading data can be reduced, the processing load of the microcomputer system can be reduced in this embodiment.
Therefore, it is possible to provide a key detection method with extremely good operability.

【0010】本実施例では、8×8のキーマトリックス
部のときのキー操作検出方法について説明したが、これ
に限定されるものではない。m×n(縦m個、横n個)
のときのキーマトリックス部のときも、同様の方法でキ
ー操作を検出できる(どのキーが操作されたか検出でき
る)ことは、明らかである。
In this embodiment, the key operation detecting method in the case of an 8 × 8 key matrix section has been described, but the present invention is not limited to this. mxn (m vertical, n horizontal)
It is apparent that the key operation can be detected in the same manner in the key matrix portion (ie, which key has been operated).

【0011】[0011]

【発明の効果】本発明によれば、キーが操作されたか否
かの検出するためのデータの読込回数を2回に減らすこ
とができるため、マイコンシステムの処理負担を軽くす
ることができる。従って、極めて操作性の良いキー検出
方法を提供することができる。
According to the present invention, the number of times of reading data for detecting whether or not a key is operated can be reduced to two times, so that the processing load on the microcomputer system can be reduced. Therefore, it is possible to provide a key detection method with extremely good operability.

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

【図1】従来の一例であるマイコンシステムの構成を示
すブロック図
FIG. 1 is a block diagram showing a configuration of a microcomputer system as an example of a conventional example.

【図2】従来の一例であるマイコンシステムによるキー
操作検出方法を示すフローチャート
FIG. 2 is a flowchart showing a key operation detection method by a microcomputer system which is an example of the related art.

【図3】本発明の一実施例であるマイコンシステムの構
成を示すブロック図
FIG. 3 is a block diagram showing a configuration of a microcomputer system according to an embodiment of the present invention.

【図4】本発明の一実施例であるマイコンシステムによ
るキー操作検出方法を示すフローチャート
FIG. 4 is a flowchart showing a key operation detection method by the microcomputer system according to one embodiment of the present invention;

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

1:マイコン制御部 2:入力用マ
トリックス行部 3:出力用マトリックス列部 4:リード信
号線 5:ライト信号線 6:8×8キ
ーマトリックス 7:キー入力検出開始 8:マトリックス列のイニシャル処理 9:マトリックス行部データの読込処理 10:キー入力有無判断処理 11:キー入
力判断処理 12:キー入力完了判定処理 13:次のマトリックス列のキー入力検出準備処理 14:キー入力検出後の処理 15:入出力用マトリックス行部 16:入出力
用マトリックス列部 17:リード/ライト信号線 18:リード
/ライト信号線 19:マトリックス行部、マトリックス列部の入出力設
定処理 20:マトリックス列部のイニシャル処理 21:マトリックス行部データの読込処理 22:キー入力有無判断処理 23:マトリックス行部、マトリックス列部の入出力切
替設定処理 24:マトリックス行部のイニシャル処理 25:マトリックス列部データの読込処理 26:キー入力判断処理
1: microcomputer control unit 2: input matrix row unit 3: output matrix column unit 4: read signal line 5: write signal line 6: 8 × 8 key matrix 7: key input detection start 8: matrix column initial processing 9 : Processing for reading matrix row data 10: Key input presence / absence determination processing 11: Key input determination processing 12: Key input completion determination processing 13: Key input detection preparation processing for the next matrix column 14: Processing after key input detection 15: Input / output matrix row section 16: Input / output matrix column section 17: Read / write signal line 18: Read / write signal line 19: Input / output setting processing of matrix row section and matrix column section 20: Initial processing of matrix column section 21: Matrix row data read processing 22: Key input presence / absence determination processing 23: Matrix Parts, output switching setting processing of the matrix row part 24: the initial processing of the matrix line section 25: matrix row part data reading processing 26: key input determination process

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】縦方向にm個、横方向にn個格子状に配置
されたキーを備えたキーマトリックス部と、該キーマト
リックス部に接続され前記キーの操作に応じてmビット
のデータが入力されるマトリックス行部と、前記キーマ
トリックス部に接続され前記キーの操作に応じてnビッ
トのデータが入力されるマトリックス列部と、前記キー
マトリックス部から前記マトリックス行部及び前記マト
リックス列部へのデータ入力を制御する制御部とを含む
制御システムのキー操作検出方法において、 前記制御部は前記マトリックス行部に前記キーマトリッ
クス部から出力されるmビットのデータを入力させた
後、該mビットのデータを読み込み、更に前記制御部は
前記マトリックス列部に前記キーマトリックス部から出
力されるnビットのデータを入力させた後、該nビット
のデータを読み込み、前記mビットのデータと前記nビ
ットのデータから操作されたキーを検出し、2回のデー
タ読込処理でキー操作を検出するようにしたことを特徴
とするキー操作検出方法。
1. A key matrix unit having keys arranged in a matrix of m in the vertical direction and n in the horizontal direction, and m bits of data connected to the key matrix unit and operated according to the operation of the keys. A matrix row portion to be input, a matrix column portion connected to the key matrix portion to receive n-bit data according to the operation of the key, and a matrix row portion and a matrix column portion from the key matrix portion. And a control unit for controlling data input of the key system. The control unit, after inputting m-bit data output from the key matrix unit to the matrix row unit, The control unit further inputs the n-bit data output from the key matrix unit into the matrix column unit. After reading the data, the n-bit data is read, the operated key is detected from the m-bit data and the n-bit data, and the key operation is detected in two data reading processes. Characteristic key operation detection method.
JP2000173008A 2000-06-09 2000-06-09 Key operation detecting method Pending JP2001350565A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000173008A JP2001350565A (en) 2000-06-09 2000-06-09 Key operation detecting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000173008A JP2001350565A (en) 2000-06-09 2000-06-09 Key operation detecting method

Publications (1)

Publication Number Publication Date
JP2001350565A true JP2001350565A (en) 2001-12-21

Family

ID=18675312

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000173008A Pending JP2001350565A (en) 2000-06-09 2000-06-09 Key operation detecting method

Country Status (1)

Country Link
JP (1) JP2001350565A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008090642A (en) * 2006-10-03 2008-04-17 Nec Electronics Corp Key input device
JP2008198180A (en) * 2007-02-12 2008-08-28 Samsung Electronics Co Ltd Display device and driving method thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008090642A (en) * 2006-10-03 2008-04-17 Nec Electronics Corp Key input device
JP2008198180A (en) * 2007-02-12 2008-08-28 Samsung Electronics Co Ltd Display device and driving method thereof

Similar Documents

Publication Publication Date Title
US4470038A (en) Shift control system for keyboards
JP4027285B2 (en) Keypad device
JP2001350565A (en) Key operation detecting method
JPS6362765B2 (en)
US5912563A (en) Trinary signal apparatus and method
JPH05313803A (en) Key switch input circuit
JP3702605B2 (en) Transmission system having trigger function and time interval measuring method of input / output signal thereof
JPS5958528A (en) Key input device
JPS6136859A (en) Interface controller
JPS5899827A (en) Shift controlling system of keyboard device
JP2636669B2 (en) Connection information detection circuit and connection information detection method
JPH08202645A (en) Input and output circuit structure
JP2730518B2 (en) keyboard
JPS61123230A (en) Terminal device for transmission system
KR100409011B1 (en) Stream Data Processing System
JPH05289798A (en) Input interface method
JP3305456B2 (en) Data communication device
JPH0143322B2 (en)
JPH04126481U (en) remote control transmitter
JPS6235685B2 (en)
US20030058138A1 (en) Intelligent keypad scanner
JPS5816021Y2 (en) Double key press detection device
JPS59121528A (en) Key input device
KR970058191A (en) Combined Function Control Method of Remote Controller
JPS62173833A (en) Frame synchronizing circuit

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20051228

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060105

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060302

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20060327