JPH01145713A - Keyboard device - Google Patents

Keyboard device

Info

Publication number
JPH01145713A
JPH01145713A JP62181484A JP18148487A JPH01145713A JP H01145713 A JPH01145713 A JP H01145713A JP 62181484 A JP62181484 A JP 62181484A JP 18148487 A JP18148487 A JP 18148487A JP H01145713 A JPH01145713 A JP H01145713A
Authority
JP
Japan
Prior art keywords
key
information
code
buffer
keyboard
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
JP62181484A
Other languages
Japanese (ja)
Inventor
Masato Haraguchi
原口 正人
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP62181484A priority Critical patent/JPH01145713A/en
Publication of JPH01145713A publication Critical patent/JPH01145713A/en
Pending legal-status Critical Current

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

PURPOSE:To decrease the number of times of the processing for reading in a code by combining and outputting the code of a key corresponding to information and a code for showing the number of pieces of information which exists continuously in a buffer, when information of the same key exists continuously in the buffer and there is an output request of a host device of a system. CONSTITUTION:A keyboard control use microcomputer (KBC) 5 which is contained in a keyboard device 4 executes a scan of a key matrix 6, and checks depression and release of a key. When the depression of the key is confirmed, a code for showing the depressed key is stored temporarily in a buffer 7. Whenever a host device 1 of a system requests an output of depressed information of the key to the keyboard device by utilizing an output request signal line 3, the KBC 5 reads out successively the depressed information of the key and executes serial transfer to the host device 1 through a signal line 2. In such a way, the number of times of the processing for reading in the code can be decreased.

Description

【発明の詳細な説明】 産業上の利用分野 本発明はマイクロコンピュータ制御によるキーボード装
置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a keyboard device controlled by a microcomputer.

従来の技術 従来のキーボード装置では、バッファ中に連続して同じ
キーの情報が存在している時でも、システムの上位装置
がコード出力要求を1回行う毎に、バッファに蓄積され
た1個のキーの情報に対応するコードを出力する。
BACKGROUND OF THE INVENTION In conventional keyboard devices, even when the same key information continuously exists in the buffer, each time the system's host device issues a code output request, one code stored in the buffer is Outputs the code corresponding to the key information.

発明が解決しようとする問題点 このような従来のキーボードでは、バッファ中に連続し
て同じキーの情報が存在している時、システムの上位装
置はキーボード装置のこのようなコードを読み込むため
に、バッファ中に連続して存在している同じキーの個数
と同じ回数の処理が必要とな夛、オートリピート時のよ
うにバッファに同じコードが連続する場合の上位装置は
キーボードに関する処理に多くの時間を取られ、その他
の処理が遅れてしまう。
Problems to be Solved by the Invention In such a conventional keyboard, when information for the same key exists continuously in the buffer, the system's host device reads such a code from the keyboard device. The same number of processing is required as the number of consecutive same keys in the buffer, so when the same code is consecutive in the buffer, such as during auto-repeat, the host device spends a lot of time processing the keyboard. and other processing will be delayed.

本発明はこのような問題点を解決し、コードを読み込む
ための処理回数を低減させることを目的とする。
The present invention aims to solve these problems and reduce the number of processing times for reading code.

問題点を解決するための手段 本発明は上記問題点を解決するため、バッファ中に連続
して同じキーの情報が存在し、システムの上位装置の出
力要求がある時、前記情報に対応するキーのコードとバ
ッファ中に連続して存在する前記情報の個数を表すコー
ドとを組み合わせて出力するものである。
Means for Solving the Problems In order to solve the above problems, the present invention aims to solve the above problems.When information with the same key exists consecutively in the buffer and there is an output request from a higher-level device of the system, the key corresponding to the information is and a code representing the number of consecutive pieces of information in the buffer are combined and output.

作  用 本発明は上記した手段により、バッファ中に連続して同
じキーの情報が存在している時、システムの上位装置が
キーボード装置のコードを読み込むための処理回数を減
少させることができ、その他の処理に多くの時間を割シ
当てることができる。
Effects of the present invention By using the above-described means, when information of the same key exists continuously in the buffer, it is possible to reduce the number of processing times for the host device of the system to read the code of the keyboard device. You can allocate more time to processing.

実施例 以下図面を参照して本発明の一実施例を説明する。第1
図は本発明の一実施例における全体の構成を示すブロッ
ク図である。キーボード装置4に内蔵されるキーボード
制御用マイクロコンピュータ(以下、WBCと称す。)
6はキーマトリックス6のスキャンを行い、キーの押下
、解放を調べる。キーの押下を確認すると、押下された
キーを表すコードを一部バッファ7に格納する。システ
ムの上位装置1が出力要求信号線3を利用してキーボー
ド装置に対してキーの押下情報の出力を要求する毎にK
BCsはバッファ7に格納されているキーの押下情報を
順次読み出して信号線2を介して上位装置1にシリアル
転送を行う。第2図。
Embodiment An embodiment of the present invention will be described below with reference to the drawings. 1st
The figure is a block diagram showing the overall configuration of an embodiment of the present invention. A keyboard control microcomputer (hereinafter referred to as WBC) built into the keyboard device 4
6 scans the key matrix 6 to check whether a key is pressed or released. When the press of a key is confirmed, a part of the code representing the pressed key is stored in the buffer 7. K every time the host device 1 of the system uses the output request signal line 3 to request the keyboard device to output key press information.
The BCs sequentially reads the key press information stored in the buffer 7 and serially transfers it to the host device 1 via the signal line 2. Figure 2.

第3図はKBCの内部のRAM上に設けられたバッファ
8及び1oと次に読み出すべきキーの押下情報を格納し
ているアドレスを示すリードポインタ9及び11の様子
を示している。KBCはRAM上のアドレス1000H
から1ooFHに設けられたバッファにキーの押下情報
を蓄積している。あるときバッファの状態が第2因のよ
うになっていたとする。このときシステムの上位装置が
出力要求信号線を利用してキーボード装置に対してキー
の押下情報の出力を要求するとKBCはリードポインタ
9の示すアドレス1002Hの内容を読み出すとともに
以下のバッファ中にアドレス1002Hの内容と同じ情
報が連続しているかを調べる。第2図のようにアドレス
1002Hの内容とおなじものがアドレス1006Hま
で連続していることが確認されるとこの内容に対応する
キーの情報とこの情報が連続する個数(この場合は6)
の情報を合わせてシステムの上位装置に対して出力する
。そしてリードポインタを第3図の11のように100
7Hとする。まだ第4図にシステムの上位装置に対して
出力するコードの形式を示す。本実施例では2バイトの
コードを用いている。第1バイトには押下されたキーに
対応するコードが、第2バイトにはビット0からピット
3に連続するキーの個数に対応するコードがそれぞれ格
納されている。第5図はバッファ中に蓄積された情報か
ら出力のための形式のコードを生成するアルゴリズムの
フローチャートを示す。システムの上位装置からの出力
要求信号がエネーブルとなると、KBCはリードポイン
タの示すアドレスの内容を読み込む。そしてリードポイ
ンタの内容をインクリメントして出力データの個数を数
えるためのカウンタに1を設定する。次にリードポイン
タの示すアドレスの内容を読み込む。前回読み込んだ情
報と今回読み込んだ情報が同じなら前記出力データの個
数のカウンタをインクリメントする。前回読み込んだ情
報と今回読み込んだ情報が異なるまでこれを繰シ返しす
ることによって連続する同じキーの情報の個数が得られ
る。読み込んだ情報とカウントされた個数よシ第4図に
示す出力形式のコードを生成する。
FIG. 3 shows buffers 8 and 1o provided on the internal RAM of the KBC and read pointers 9 and 11 indicating addresses storing key press information to be read next. KBC is address 1000H on RAM
Key press information is stored in a buffer provided at 1ooFH. Suppose that at some point the state of the buffer is as in the second cause. At this time, when the host device of the system uses the output request signal line to request the keyboard device to output key press information, the KBC reads the contents of the address 1002H indicated by the read pointer 9 and stores the contents of the address 1002H in the buffer below. Check whether the same information as the content is consecutive. As shown in Figure 2, if it is confirmed that the same content as address 1002H continues up to address 1006H, the number of pieces of key information corresponding to this content and this information are consecutive (6 in this case).
This information is combined and output to the system's higher-level device. Then set the read pointer to 100 as shown in 11 in Figure 3.
It will be 7H. FIG. 4 shows the format of the code output to the upper level device of the system. In this embodiment, a 2-byte code is used. The first byte stores a code corresponding to the pressed key, and the second byte stores a code corresponding to the number of consecutive keys from bit 0 to pit 3. FIG. 5 shows a flowchart of an algorithm for generating code in the form of an output from information stored in a buffer. When the output request signal from the host device of the system is enabled, the KBC reads the contents of the address indicated by the read pointer. Then, the content of the read pointer is incremented and 1 is set in a counter for counting the number of output data. Next, the contents of the address indicated by the read pointer are read. If the information read last time and the information read this time are the same, the counter for the number of output data is incremented. By repeating this process until the information read previously and the information read this time are different, the number of consecutive pieces of information with the same key can be obtained. A code in the output format shown in FIG. 4 is generated based on the read information and the counted number.

発明の効果 以上に述べてきたように、本発明によれば、バッファ中
に連続して同じキーの情報が存在し、システムの上位装
置の出力要求がある時、前記情報に対応するキーのコー
ドとバッファ中に連続して存在する前記情報の個数を表
すコードとを組み合わせて出力することによシ上位装置
のキーボードの処理時間を減らし、他の処理に多くの時
間を割シ当てることができ、実用上極めて有用である。
Effects of the Invention As described above, according to the present invention, when information with the same key continuously exists in the buffer and there is an output request from a higher-level device of the system, the code of the key corresponding to the information is By outputting the code in combination with the code representing the number of pieces of the above information continuously present in the buffer, the keyboard processing time of the host device can be reduced and more time can be allocated to other processing. , which is extremely useful in practice.

【図面の簡単な説明】 第1図は本発明の一実施例によるキーボード装置の全体
の構成を示すブロック図、第2図および第3図はKBC
内のバッファとリードポインタを示すブロック図、第4
図は出力コードの形式を表す説明図、第6図は出力形式
のコードを得るためのアルゴリズムのフローチャートで
ある。 1・・・・・・システムの上位装置、2・・・・・・信
号線、3・・・・・・出力要求線、4・・・・・・キー
ボード装置、6・・・・・・キーボード制御用マイクロ
コンピュータ、6・・川・キーマトリックス、7・・・
・・・バッファ、8・・・・・・バッファ、9・・・・
・・リードポインタ、10・・・・・・バッフ1゜11
・・・・・・バッファ。 代理人の氏名 弁理士 中 尾 敏 男 ほか1名第2
図 第4図 (@1パイトノ (第2ハ゛イト) ビ、7ト              フード    
ヒフト図面の浄啓 第 5 口 (くのl) 図面の浄書
[Brief Description of the Drawings] Figure 1 is a block diagram showing the overall configuration of a keyboard device according to an embodiment of the present invention, and Figures 2 and 3 are KBC.
Block diagram showing buffers and read pointers in the fourth
The figure is an explanatory diagram showing the format of the output code, and FIG. 6 is a flowchart of the algorithm for obtaining the code in the output format. 1... System host device, 2... Signal line, 3... Output request line, 4... Keyboard device, 6... Keyboard control microcomputer, 6... River key matrix, 7...
...Buffer, 8...Buffer, 9...
...Read pointer, 10...Buffer 1゜11
······buffer. Name of agent: Patent attorney Toshio Nakao and 1 other person 2nd
Figure 4 (@1 Piece (2nd Piece) B, 7 Piece Food
Hift's engraving of drawings Part 5 (Kuno l) Engraving of drawings

Claims (1)

【特許請求の範囲】[Claims] キーマトリックスとこのキーマトリックス上に配置され
たキースイッチとから構成されるキーボードと、このキ
ーボードを制御するマイクロコンピュータと、システム
の上位装置に対して出力すべきキーの情報を蓄積すべき
バッファを有し、システムの上位装置に対してキーの情
報を出力する時、前記バッファに蓄積されている情報に
対応するキーの情報と前記バッファ中に連続して存在す
る同じキーの情報の個数に対応する情報とを組み合わせ
て出力することを特徴とするキーボード装置。
It has a keyboard consisting of a key matrix and key switches arranged on the key matrix, a microcomputer that controls this keyboard, and a buffer that stores information on keys to be output to the system's host device. When outputting key information to a higher-level device of the system, the key information corresponding to the information stored in the buffer corresponds to the number of pieces of information with the same key continuously existing in the buffer. A keyboard device characterized by outputting information in combination.
JP62181484A 1987-07-21 1987-07-21 Keyboard device Pending JPH01145713A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62181484A JPH01145713A (en) 1987-07-21 1987-07-21 Keyboard device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62181484A JPH01145713A (en) 1987-07-21 1987-07-21 Keyboard device

Publications (1)

Publication Number Publication Date
JPH01145713A true JPH01145713A (en) 1989-06-07

Family

ID=16101565

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62181484A Pending JPH01145713A (en) 1987-07-21 1987-07-21 Keyboard device

Country Status (1)

Country Link
JP (1) JPH01145713A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04215115A (en) * 1990-12-13 1992-08-05 Fuji Electric Co Ltd Information processor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04215115A (en) * 1990-12-13 1992-08-05 Fuji Electric Co Ltd Information processor

Similar Documents

Publication Publication Date Title
AU592914B2 (en) System for processing various types of information in easily usable form
US3926088A (en) Apparatus for processing music as data
JP3137270B2 (en) Compressed image data decoding device
SE455650B (en) DOCUMENT PRESENTATION DEVICE INCLUDING A SYSTEM FOR STORING DOCUMENTS WITH TEXT AND RUST COMPONENTS
JPH01145713A (en) Keyboard device
JPS5740789A (en) Virtual processing system of auxiliary storage device
JPS61159697A (en) Electronic musical instrument
KR950025340A (en) Microwave encoder key input device and interrupt processing method using the device
JPH079280Y2 (en) Stack circuit
JP2651517B2 (en) Image processing method
JPS62269548A (en) Presonal computer voice mail system
JPS6030789Y2 (en) polyphonic synthesizer
JPS56152027A (en) Processing system for job execution result
JPH03150644A (en) Printer with dump function
JPS6034757B2 (en) electronic musical instruments
JPS63148324A (en) Data conversion mechanism for display device
JPS59225436A (en) Keyboard
JPS57174732A (en) Key input device
JPS5478040A (en) Communication controller
JPS6029114B2 (en) Character generation control method
JPH05284185A (en) Data form converting device
JPS6242235A (en) Virtual stack system
JPH0378024A (en) Data transfer parallel processor
JPH02181816A (en) Information processor
JPH01205324A (en) First-in first-out storage device