JPH0221318A - Key input device - Google Patents

Key input device

Info

Publication number
JPH0221318A
JPH0221318A JP63170926A JP17092688A JPH0221318A JP H0221318 A JPH0221318 A JP H0221318A JP 63170926 A JP63170926 A JP 63170926A JP 17092688 A JP17092688 A JP 17092688A JP H0221318 A JPH0221318 A JP H0221318A
Authority
JP
Japan
Prior art keywords
key input
input data
key
data
buffer
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
JP63170926A
Other languages
Japanese (ja)
Inventor
Masahiro Asao
浅尾 正博
Takashi Kumano
熊野 隆
Yasuo Nakagawa
仲川 康夫
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 Ltd
Hitachi Keiyo Engineering Co Ltd
Original Assignee
Hitachi Ltd
Hitachi Keiyo Engineering 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 Hitachi Ltd, Hitachi Keiyo Engineering Co Ltd filed Critical Hitachi Ltd
Priority to JP63170926A priority Critical patent/JPH0221318A/en
Publication of JPH0221318A publication Critical patent/JPH0221318A/en
Pending legal-status Critical Current

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

PURPOSE:To realize a high-speed key input operation and to avoid the omission of the key input data by setting a buffer between a key input data processing part and a key input data conversion processing part. CONSTITUTION:A buffer 31 is set between a key input data processing part 3A which processes the input data and a key input data conversion processing part 4 which converts the input data. In the case the part 4 is not working at a key input time point, the key input data are not stored temporarily in the buffer 31 but given instantaneously to the part 3A. Thus the key input data are stored in the buffer 31 only when the key input data cannot be processed owing to a fact that the part 4 is working at the key input time point. Then the next key input data or the data stored in the buffer 31 are given to the part 3A in the case the part 3A is not working. Thus the high response is secured with no omission of the key input data.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はコンピュータのキー入力装置に係り、特に不連
続な非同期でデータが入力される入力装置に好適な処理
方式のキー入力装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a key input device for a computer, and more particularly to a key input device with a processing method suitable for an input device in which data is input discontinuously and asynchronously.

〔従来の技術〕[Conventional technology]

従来のキー入力装置はキーボードから入力されるデータ
を一旦バッファに記憶し、しかる後にバッファに蓄えら
れたデータをキー入力データ変換処理部であるかな漢字
変換処理部に転送し、そこで変換処理を行なっていた。
Conventional key input devices temporarily store data input from the keyboard in a buffer, and then transfer the data stored in the buffer to the key input data conversion processing section, which is a kana-kanji conversion processing section, where the conversion processing is performed. Ta.

またキー入力されると同時に直接アプリケーションへ渡
すイベント駆動型のキー入力装置があった。なおこの種
の装置として関連するものには1例えば特開昭61−7
5914号、特開昭61−86830号、特開昭61−
86826号公報等が挙げられる。
There was also an event-driven key input device that passed the key input directly to the application at the same time. Note that related devices of this type include 1, for example, Japanese Patent Application Laid-open No. 61-7
No. 5914, JP-A-61-86830, JP-A-61-
86826 and the like.

第7図は従来のイベント駆動型キー入力装置を例示する
機能ブロック図である。第7図において。
FIG. 7 is a functional block diagram illustrating a conventional event-driven key input device. In FIG.

1はキーボード、2はキーボード・コントローラ。1 is the keyboard, 2 is the keyboard controller.

3はキーボード・ドライバ(キー入力データ処理部)、
4はアプリケーション(キー入力データ変換処理部)で
ある。
3 is a keyboard driver (key input data processing unit);
4 is an application (key input data conversion processing section).

第8図は第7図のキーボード・コントローラ2のフロー
チャートである。第8図において、キーボード・コント
ローラ2は常時キーボード1のキー操作が行われたかキ
ー状態を監視しく処理2a)、キー操作が行われた場合
には割り込みを発生し、操作されたキーの位置に関する
データをキーボード・ドライバ3に連絡する(処理2b
)。
FIG. 8 is a flow chart of the keyboard controller 2 of FIG. In FIG. 8, the keyboard controller 2 constantly monitors the state of the keys on the keyboard 1 to see if any key operations have been performed (Process 2a), and when a key operation has been performed, an interrupt is generated and information regarding the position of the operated key is generated. Notify the data to the keyboard driver 3 (processing 2b
).

第9図は第7図のキーボード・ドライバ3のフローチャ
ートである。第9図において、キーボード・ドライバ3
はオペレーティングシステムO8の一部としてRAMに
格納されており、キーボード・コントローラ2よりの操
作されたキーの位置に関するデータを受けて、そのデー
タを内部データに変換しく処理3a)その後にアプリケ
ーション4の転送許可フラグがONかを参照しく処理3
b)、ONの場合にはアプリケーション4へ転送しく処
理3c)OFFの場合には終了する。
FIG. 9 is a flowchart of the keyboard driver 3 of FIG. In FIG. 9, keyboard driver 3
is stored in the RAM as a part of the operating system O8, and receives data regarding the position of the operated key from the keyboard controller 2 and converts the data into internal data. 3a) Then transfers it to the application 4. Check whether the permission flag is ON or not and process 3.
b), if ON, transfer to application 4; process 3c), OFF, end.

第1O図は第7図のアプリケーション4のフローチャー
トである。第10図において、イベント駆動型アプリケ
ーション4は転送許可フラグを持ち、キーボード・ドラ
イバ3より転送されたキー・データを受は取り(処理4
a)、転送許可フラグをOFFにしたのち(処理4b)
、受は取ったキー・データに対する処理を行う、ここで
の処理は例えばアプリケーション(キー入力データ変換
処理部)4が日本語ワードプロセッサであれば漢字変換
して画面に表示したりする処理である(処理4c)、こ
の処理終了後に転送許可フラグをONにする(処理4d
)。
FIG. 1O is a flowchart of application 4 of FIG. In FIG. 10, the event-driven application 4 has a transfer permission flag, and receives and receives key data transferred from the keyboard driver 3 (processing 4).
a) After turning off the transfer permission flag (processing 4b)
, the receiver performs processing on the received key data. For example, if the application (key input data conversion processing unit) 4 is a Japanese word processor, the processing involves converting it into kanji and displaying it on the screen ( Process 4c), after completing this process, turn on the transfer permission flag (process 4d)
).

ここで転送許可フラグを必要とする理由は、アプリケー
ション4が受は取ったキー・データを処理している最中
にもかかわらず、キー入力があってキー・データがキー
ボード・ドライバ3からアプリケーション4へ転送され
てしまうと、現在アプリケーション4が処理しているキ
ー・データが次の処理対象のキー・データに上書きされ
て破壊されてしまうためである。そこでアプリケーショ
ン4がキーボード・ドライバ3に対して転送を許可する
か否かを示す転送許可フラグを設け、アプリケーション
4は処理中には転送許可フラグをOFFにしてキーボー
ド・ドライバ3からの転送を禁止している。しかしなが
ら転送許可フラグがOFFの時にキー入力があった場合
には、キーボード・ドライバ3では処理が終了してしま
うため、キー入力したはずなのに、アプリケーション4
にはキー入力データが届かないという現象が発生する。
The reason why the transfer permission flag is required here is that even though the application 4 is processing the received key data, there is a key input and the key data is transferred from the keyboard driver 3 to the application 4. This is because if the key data is transferred to the application 4, the key data currently being processed by the application 4 will be overwritten and destroyed by the key data to be processed next. Therefore, a transfer permission flag is provided to indicate whether or not the application 4 allows transfer to the keyboard driver 3, and the application 4 turns the transfer permission flag OFF during processing to prohibit transfer from the keyboard driver 3. ing. However, if there is a key input when the transfer permission flag is OFF, the keyboard driver 3 ends the process, so even though the key input should have been made, the application 4
A phenomenon occurs in which key input data is not received.

つまりイベント駆動型のキー入力装置では、アプリケー
ション4のキー入力データに対する処理時間が利用者の
キーをタイプする間隔より長くかかる場合には、キー入
力したデータが欠落してしまうという不具合が発生する
わけである。
In other words, with event-driven key input devices, if the processing time for application 4's key input data is longer than the interval between the user's keystrokes, a problem occurs in which the key input data is lost. It is.

第11図は第7図のキー入力処理の具体的な実行経過の
説明図である。第11図において、横軸に時間をとり、
縦軸に上から具体的なサンプル・データを使用した場合
のアプリケーション4の処理内容と、転送許可フラグの
状態と、キーボード・ドライバ3が転送するキー・デー
タと、キー割り込みのタイミング(矢印)およびタイプ
されたキーの内容とが表の形式で図示される。またこの
具体例では説明の簡略化のため、アプリケーション4は
キー入力データをそのまま表示するプログラムで、キー
入力はAキーとBキーとCキーとを高速で行ったものと
する。ここでAキーが入力された際には転送許可フラグ
がONのため、キーボード・ドライバ3からアプリケー
ション4への転送は成功し、アプリケーション4はrA
Jと表示するが、続いてBキーが入力された際にはアプ
リケーション4はrAJと表示する処理中で転送許可フ
ラグがOFFのため、キーボード・ドライバ3からの転
送は失敗し、転送されずにデータが欠落してしまう、つ
いでCキーとDキーが入力された際にも同様にして、C
キーのデータ転送は成功して「C」と表示されるが、続
いてDキーのデータ転送は失敗する。その結果でAキー
とBキーとCキーとDキーを入力したにもかかわらず、
画面には「A」とrCJの2文字しか表示されない不具
合を生じる。
FIG. 11 is an explanatory diagram of a specific execution progress of the key input process of FIG. 7. In Figure 11, time is plotted on the horizontal axis,
The vertical axis shows the processing content of the application 4, the state of the transfer permission flag, the key data transferred by the keyboard driver 3, the key interrupt timing (arrow), and The contents of the typed keys are illustrated in the form of a table. In this specific example, for the sake of simplicity, it is assumed that the application 4 is a program that displays key input data as it is, and that key inputs are made using the A key, B key, and C key at high speed. Here, when the A key is input, the transfer permission flag is ON, so the transfer from keyboard driver 3 to application 4 is successful, and application 4
J is displayed, but when the B key is subsequently input, application 4 is in the process of displaying rAJ and the transfer permission flag is OFF, so the transfer from keyboard driver 3 fails and is not transferred. If data is missing and the C and D keys are input, do the same thing.
The data transfer for the key is successful and "C" is displayed, but then the data transfer for the D key fails. Even though I entered the A key, B key, C key, and D key as a result,
This causes a problem where only two characters, "A" and rCJ, are displayed on the screen.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上記従来技術は、−旦バッファに記憶するキー入力装置
のアプリケーションのキー入力方法では、まずキーボー
ド上のキーが押されるとキー入力割り込みが発生し、つ
いでキー入力データを処理するキー入力割り込み処理が
起動され、入力されたキーに対応するキーコードに変換
したのち、キ−入力データ用バッファに一旦格納する。
In the above conventional technology, in the key input method of an application of a key input device that stores data in a buffer, a key input interrupt is first generated when a key on the keyboard is pressed, and then a key input interrupt process is performed to process the key input data. After being activated and converted into a key code corresponding to the input key, it is temporarily stored in the key input data buffer.

ついでアプリケーションプログラムはキー入力データを
必要とする時点で”キー入力データ処理”にキー入力デ
ータを要求し、′キー人カデータ処理″は上記キー入力
側り込み処理で蓄えられたキー入力データがキー入力デ
ータ用バッファに存在すれば、そのデータをキー入力デ
ータ変換処理部に渡すが。
Next, when the application program requires key input data, it requests the key input data from the ``key input data processing'', and the ``key input data processing'' uses the key input data stored in the key input side input processing as the key input data. If it exists in the input data buffer, that data is passed to the key input data conversion processing section.

存在しなければキー入力データなしという情報のみを返
す、こうすることによりアプリケーションが入力要求を
出し、そのデータを処理している最中に入力されたキー
入力データが欠落するのを防いでいる。
If it does not exist, only the information that there is no key input data is returned.This prevents key input data from being lost when the application issues an input request and processes that data.

ところがこのキー入力方法で、複数のアプリケーション
プログラムが時分割で動作する場合には。
However, when using this key input method, multiple application programs operate on a time-sharing basis.

例えばアプリケーションAとBの2つのプログラムがあ
ったとして、アプリケーションAの画面で例えば1,2
.3とキー入力したところで時間がきてBに制御が移り
、Bの画面で4.5,6とキー入力したとすると、キー
入力データ用バッファには1,2.3,4.5,6と入
っているため。
For example, if there are two programs, application A and B, on the screen of application A, for example 1, 2
.. When the time has elapsed after you keyed in 3, control is transferred to B, and if you keyed in 4.5, 6 on B's screen, 1, 2.3, 4.5, 6 are stored in the key input data buffer. Because it's in.

2二でアプリケーションBが入力要求を行うとAで入力
したはずの1,2,3というキー入力データがBに取り
込まれてしまうという不具合が発生する問題がある。
There is a problem in that when application B makes an input request at step 22, the key input data 1, 2, 3 that should have been input at A is taken into B.

またイベント駆動型キー入力装置のアプリケーションの
キー入力方法では、上記の一旦バツファに記憶するキー
入力方法の問題点を解決するため。
Further, in a key input method for an application of an event-driven key input device, the above-mentioned problem of the key input method that is temporarily stored in a buffer is solved.

時分割で動作するアプリケーションにおいては。In applications that operate on a time-sharing basis.

キー入力されると同時にそのデータを直接アプリケーシ
ョンに渡すというイベント駆動型にしている。ところが
キー入力処理中にはその間に入力されたキー入力データ
が処理できず、キー入力データが欠落しやすいという不
具合が発生する問題があった。
It is event-driven in that the data is passed directly to the application as soon as a key is entered. However, there has been a problem in that during key input processing, key input data input during that time cannot be processed, and key input data is likely to be lost.

本発明の目的は、イベント駆動型のアプリケーションに
おけるキー入力データの欠落を防ぐことのできるキー入
力装置を提供するにある。
An object of the present invention is to provide a key input device that can prevent key input data from being lost in event-driven applications.

〔課題を解決するための手段〕[Means to solve the problem]

上記目的は、入力されたデータを処理するキー入力デー
タ処理部と入力されたデータを変換処理するキー入力デ
ータ変換処理部の間にバッファを設けることにより、キ
ー入力された時点でキー入力データ変換処理部が非処理
中の場合にはキー入力データを一旦バッファに蓄えるこ
とをせずに即座にキー入力データ変換処理部に渡し、キ
ー入力された時点でキー入力データ変換処理部が処理中
のためそのキー入力データが処理できない場合に限って
バッファに蓄え、そして次にキー入力データ変換処理部
が非処理中の場合には次のキー入力データかまたはバッ
ファに蓄えであるデータをキー入力データ変換処理部に
渡すようしたキー入力装置により達成される。
The above purpose is to convert the key input data at the time of key input by providing a buffer between the key input data processing section that processes input data and the key input data conversion processing section that converts the input data. If the processing unit is not processing the key input data, it is immediately passed to the key input data conversion processing unit without storing it in the buffer, and when the key input data is input, the key input data conversion processing unit Therefore, only if the key input data cannot be processed, it is stored in the buffer, and then when the key input data conversion processing section is not processing, the next key input data or the data stored in the buffer is used as the key input data. This is achieved by a key input device that is passed to the conversion processing section.

〔作用〕[Effect]

上記キー入力装置のキー入力データ処理部はキーtこよ
り入力されたデータを一意のコードに変換してキー入力
データ変換処理部に送出する機能をもち、キー入力デー
タ変換処理部は入力データの非処理中にはキー入力デー
タ処理部に「データ受取り可」という情報を返していて
、キー入力データ処理部から送られてくるキー入力の変
換処理を行ない、また入力データの処理中にはキー入力
データ処理部に「データ受取り不可」という情報を返し
ていて、TIL在処理中のデータの変換処理を続行する
一方で、キー入力データ処理部はキー入力データ変換処
理部からの情報が「データ受取り不可」であればキー入
力データを一旦バッファに格納し、またrデータ受取り
可」であればキー入力データまたはバッファに一旦格納
されているデータをキー入力データ変換処理部に送出し
、このようなキー入力データ処理部とキー入力データ変
換処理部の動作によりキー入力から入力データの変換に
至るまでの高い応答性をキー入力データの欠落なく確保
できる。
The key input data processing section of the key input device has a function of converting the data input through the key t into a unique code and sending it to the key input data conversion processing section. During processing, it returns information that "data can be received" to the key input data processing section, converts the key input sent from the key input data processing section, and also returns the key input data to the key input data processing section. The key input data processing unit returns the information "data cannot be received" to the data processing unit and continues the conversion process of the data currently being processed in the TIL, while the key input data processing unit returns the information "data cannot be received" from the key input data conversion processing unit. If "not possible", the key input data is temporarily stored in the buffer, and if "r data can be received", the key input data or the data temporarily stored in the buffer is sent to the key input data conversion processing section, and such The operations of the key input data processing section and the key input data conversion processing section can ensure high responsiveness from key input to input data conversion without missing any key input data.

〔実施例〕〔Example〕

以下に本発明の一実施例を第1図ないし第6図により説
明する。
An embodiment of the present invention will be described below with reference to FIGS. 1 to 6.

第5図は本発明によるキー入力装置の一実施例を示すパ
ーソナル・コンピュータのブロック図である。第6図は
第1図の外観図である。第5図および第6図において1
本発明を適用したバーソナル・コンピュータの全体構成
を示し、1はキーボード、20は本体である処理装置、
30は表示装置である。21は処理部!20のマイクロ
・プロセッサ(MPU)、22は読み出し専用の記憶装
置(ROM)、23は読み出し書き込み可能な記憶装!
 (RAM)である、SCは表示装置30の表示画面で
ある。キーボード1は多数のキーが配列されており、各
キーを押下することにより所定の文字データが処理装置
20に入力される。処理装置1120はMPU21とR
OM22とRAM23を備えており、MPU21はRO
M22あるいはRAM23に記憶されたプログラムを読
み出し、該当プログラムによって指定された所定の処理
を実行する0表示装置30はこれらの処理結果およびキ
ーボード1の入力結果などをその表示画面SCに表示す
る。
FIG. 5 is a block diagram of a personal computer showing an embodiment of the key input device according to the present invention. FIG. 6 is an external view of FIG. 1. 1 in Figures 5 and 6
The overall configuration of a personal computer to which the present invention is applied is shown, in which 1 is a keyboard, 20 is a main body of a processing device,
30 is a display device. 21 is the processing department! 20 microprocessors (MPU), 22 a read-only storage device (ROM), and 23 a readable/writable storage device!
(RAM), and SC is the display screen of the display device 30. The keyboard 1 has a large number of keys arranged, and by pressing each key, predetermined character data is input to the processing device 20. The processing device 1120 includes MPU21 and R
Equipped with OM22 and RAM23, MPU21 is RO
A display device 30 that reads a program stored in M22 or RAM 23 and executes predetermined processing specified by the corresponding program displays the results of these processings, input results from the keyboard 1, etc. on its display screen SC.

第1図は本発明によるキー入力装置の一実施例を示す機
能ブロック図である。第1図において。
FIG. 1 is a functional block diagram showing an embodiment of a key input device according to the present invention. In FIG.

第7図と同一符号は相当部分を示し、1はキーボード、
2はキーボード・コントローラー3Aは本発明によるキ
ーボード・ドライバ(キー入力データ処理部)、31は
本発明によるバッファ、4はアプリケーション(キー入
力データ変換処理部)、5は本発明によるタイマーであ
る。第1図の実施例では1本発明によりキーボード・ド
ライバ3A内にキーボード・ドライバ3Aとアプリケー
ション4との間にバッファ31を設け、転送許可フラグ
がOFFの場合には一部キー・データをバッファ31に
格納し、キーボード・コントローラ2からのキーボード
割り込みまたはタイマー5のタイマー割り込みが発生す
るタイミングにより、イベント駆動型のアプリケーショ
ン4の構造を変更することなく、データの欠落を減少さ
せることを可能にしている。なおキーボード1と、キー
ボード・コントローラ2と、アプリケーション4の機能
は第7図の従来のイベント駆動型キー入力装置と同様で
ある。タイマー5はこの実施例では例えば500 m 
s e c毎にタイマー割り込みを発生するものとする
The same symbols as in FIG. 7 indicate corresponding parts, 1 is the keyboard;
Reference numeral 2 denotes a keyboard controller 3A, which is a keyboard driver (key input data processing section) according to the present invention, 31 a buffer according to the present invention, 4 an application (key input data conversion processing section), and 5 a timer according to the present invention. In the embodiment shown in FIG. 1, according to the present invention, a buffer 31 is provided in the keyboard driver 3A between the keyboard driver 3A and the application 4, and when the transfer permission flag is OFF, some key data is transferred to the buffer 31. , and the timing of occurrence of a keyboard interrupt from the keyboard controller 2 or a timer interrupt from the timer 5 makes it possible to reduce data loss without changing the structure of the event-driven application 4. . Note that the functions of the keyboard 1, keyboard controller 2, and application 4 are similar to those of the conventional event-driven key input device shown in FIG. In this embodiment, the timer 5 is for example 500 m.
It is assumed that a timer interrupt is generated every sec.

第1図のキーボード・コントローラ2の機能は第8図の
従来のキーボード・コントローラ2のフローチャートと
同様である。キーボード・コントローラ2は常時キーボ
ード1のキー操作が行われたかキー状態を監視しく処理
2a)、キー操作が行われた場合にはキーボード割・り
込みを発生し、操作されたキーの位置に関するデータを
キーボード・ドライバ3に連絡する(処理2b)。
The functions of the keyboard controller 2 of FIG. 1 are similar to the flowchart of the conventional keyboard controller 2 of FIG. 8. The keyboard controller 2 constantly monitors the state of the keys on the keyboard 1 to see if any key operations have been performed (process 2a), and when a key operation has been performed, generates a keyboard interrupt, and generates data regarding the position of the operated key. to the keyboard driver 3 (processing 2b).

第2図は第1図のキーボード・ドライバ3Aのフローチ
ャートである。第2図において1本発明によるキーボー
ド・ドライバ3Aは従来と同様にオペレーティングシス
テムO8の一部としてRAM23に格納されており、キ
ーボード・コントローラ2よりの操作されたキーの位置
に関するデータを受けて、そのデータを内部データに変
換しく処理3a)、その後にアプリケーション4の転送
許可フラグがONかを参照しく処理3b)、転送許可フ
ラグがONの場合には従来と同様にアプリケーション4
へ転送するが(処理3c)、OFFの場合には第9図に
示した従来のようには終了せずに1本発明によりキーボ
ード・ドライバ3A内に設けたバッファ31に格納する
(処理3d)。
FIG. 2 is a flowchart of the keyboard driver 3A shown in FIG. In FIG. 2, a keyboard driver 3A according to the present invention is stored in the RAM 23 as a part of the operating system O8, as in the conventional case, and receives data regarding the position of an operated key from the keyboard controller 2. Process 3a) to convert the data to internal data, then check whether the transfer permission flag of application 4 is ON or not and process 3b). If the transfer permission flag is ON, apply 4 as before.
(Processing 3c), but in the case of OFF, the data is stored in the buffer 31 provided in the keyboard driver 3A according to the present invention without ending as in the conventional method shown in FIG. 9 (Processing 3d). .

第3図は第2図のバッファ31に格納する処理3dで格
納処理の後の詳細フローチャートである。
FIG. 3 is a detailed flowchart after the storage process in the process 3d of storing in the buffer 31 of FIG.

第3図において、バッファに格納する処理3dでバッフ
ァ31に格納されたキー入力データは、キーボード・コ
ントローラ2のキーボード割り込みまたはタイマー5の
タイマー割り込みが発生したタイミングで、アプリケー
ション4の転送許可フラグがONかを参照しく処理3e
)、OFFの場合には終了する。ONの場合にはバッフ
ァ31に転送データが有るかを参照しく処理3f)、転
送データがない場合には終了し、バッファ31に転送デ
ータがある場合にはそのデータをアプリケーション4へ
転送する(処理3g)、その後はキーボード・コントロ
ーラ2のキーボード割り込みのタイミングまたはタイマ
ー5のタイマー割り込みが例えば500m5ec毎に発
生するタイミングで同様の処理を繰り返す、なおこのバ
ッファ31はリングカウンタ構造になっていて、先入れ
先出し型とする。
In FIG. 3, the key input data stored in the buffer 31 in the buffer storage process 3d is set to the transfer permission flag of the application 4 at the timing when a keyboard interrupt of the keyboard controller 2 or a timer interrupt of the timer 5 occurs. Please refer to Process 3e
), the process ends if it is OFF. If it is ON, check whether there is transfer data in the buffer 31 (processing 3f), and if there is no transfer data, end, and if there is transfer data in the buffer 31, transfer the data to the application 4 (processing 3g), after that, the same process is repeated at the timing of the keyboard interrupt of the keyboard controller 2 or the timing of the timer interrupt of the timer 5, for example, every 500 m5ec.The buffer 31 has a ring counter structure and is a first-in, first-out type. shall be.

第1図のアプリケーション4の機能は第10回の従来の
アプリケーション4のフローチャートと同様である。イ
ベント駆動型アプリケーション4は転送許可フラグを持
ち、キーボード・ドライバ3Aよりバッファ31に蓄え
ずに直ちに転送されたキー・データおよびキーボード割
り込みまたはタイマー割り込みのタイミングでバッファ
31より転送されたキー・データを受は取り(処理4a
)、転送許可フラグをOFFにしたのち(処理4b)、
受は取ったキー・データに対する処理を行なう(処理4
c)、この処理終了後に転送許可フラグをONにする(
処理4d)。
The functions of the application 4 in FIG. 1 are similar to the flowchart of the conventional application 4 in the 10th issue. The event-driven application 4 has a transfer permission flag, and receives key data immediately transferred from the keyboard driver 3A without being stored in the buffer 31, and key data transferred from the buffer 31 at the timing of a keyboard interrupt or timer interrupt. Peeling (processing 4a
), and after turning off the transfer permission flag (processing 4b),
The receiver performs processing on the received key data (processing 4)
c), Turn on the transfer permission flag after this process is completed (
Process 4d).

第4図は第1図のキー入力装置の具体的な実行経過の説
明図である。第4図において、横軸に時間をとり、縦軸
に上から具体的なサンプル・データを使用した場合のア
プリケーション4の処理内容と、転送許可フラグの状態
と、キーボード・ドライバ3Aが転送するキー・データ
と、キー割り込みのタイミング(矢印)およびタイプさ
れたキーの内容と、タイマー割り込みのタイミング(矢
印)とが表の形式で図示される。またこの具体例では説
明の簡略化のため、第11図の従来例と同様にアプリケ
ーション4はキー入力データをそのまま表示するプログ
ラムで、キー入力はAキーとBキーとCキーとDキーと
を高速で行ったものとする。ここでAキーが入力された
際には転送許可フラグがONのため、第11図の従来例
と同様にキーボード・ドライバ3Aからアプリケーショ
ン4への転送は成功し、アプリケーション4は「A」と
表示するが、続いてBキーが入力された際にはアプリケ
ーション4はrAJと表示する処理中で転送許可フラグ
がOFFのため1本発明によりキーデータは一部バッフ
ァ31に格納され、っぎのCキーが入力された際のキー
割り込みで取り出されて、Bキーの転送は成功してrB
Jと表示される。またCキーと次のDキーも一部バッフ
731に格納されるが、このバッファに格納されたCキ
ーとDキーのキー・データはその後にタイマー割り込み
が発生するタイミングで、転送許可フラグがONの場合
にそれぞれアプリケーション4への転送に成功し、rB
Jと表示されて次にrDJと表示される。このようにキ
ー割り込みによるDキーの入力以後に当分のあいだキー
割り込みがなく、次のキー入力までの時間間隔が長い場
合に、タイマー割り込みが発生するタイミングでバッフ
ァ31に一旦格納したキー・データをアプリケーション
4へ転送できる。その結果でキー入力データが欠落する
ことなくアプリケーション4へ転送され、アプリケーシ
ョン4は「A」とrBJと「C」rDJとそれぞれ表示
する0以上のように本実施例によれば、イベント駆動型
キー入力においてキー入力データの欠落を減少できる。
FIG. 4 is an explanatory diagram of a specific execution progress of the key input device of FIG. 1. In FIG. 4, the horizontal axis shows time, and the vertical axis shows the processing content of application 4, the state of the transfer permission flag, and the keys transferred by keyboard driver 3A. - The data and the timing of key interrupts (arrows) and the contents of the keys typed and the timing of timer interrupts (arrows) are illustrated in the form of a table. Furthermore, in this specific example, for the sake of simplicity of explanation, application 4 is a program that displays key input data as is, similar to the conventional example shown in FIG. Assume that it was done at high speed. Here, when the A key is input, the transfer permission flag is ON, so the transfer from the keyboard driver 3A to the application 4 is successful, as in the conventional example shown in FIG. 11, and the application 4 displays "A". However, when the B key is subsequently input, the application 4 is in the process of displaying rAJ and the transfer permission flag is OFF. According to the present invention, part of the key data is stored in the buffer 31, and the C key of The B key was successfully transferred and rB was retrieved by the key interrupt when .
J is displayed. In addition, a part of the C key and the next D key are also stored in the buffer 731, but the key data of the C key and D key stored in this buffer is set to the transfer permission flag when the timer interrupt occurs. In each case, the transfer to application 4 is successful, and rB
J is displayed, and then rDJ is displayed. In this way, if there is no key interrupt for a while after the D key is input due to a key interrupt, and the time interval until the next key input is long, the key data temporarily stored in the buffer 31 is stored at the timing when the timer interrupt occurs. Can be transferred to application 4. As a result, the key input data is transferred to the application 4 without missing, and the application 4 displays the event-driven key input data as "A", "rBJ", and "C" rDJ, respectively. It is possible to reduce the loss of key input data during input.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、キー入力されたデータが間断なく変換
されて応答性が大きく高速なキー入力が可能で、かつイ
ベント駆動型のアプリケーションにおけるキー入力デー
タの欠落をなくすことができる効果がある。
According to the present invention, key input data is converted without interruption, enabling high-speed key input with high responsiveness, and eliminating the possibility of missing key input data in event-driven applications.

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

第1図は本発明によるキー入力装置の一実施例を示す機
能ブロック図、第2図は第1図のキーボード・ドライバ
のフローチャート、第3図は第2図のバッファ格納後の
詳細フローチャート、第4図は第1図のキー入力の実行
経過の説明図、第5図は第1図のパーソナル・コンピュ
ータのブロック図、第6図は第5図の外観図、第7図は
従来のキー入力装置を例示する機能ブロック図、第8図
は第7図のキーボード・コントローラのフローチャート
、第9図は第7図のキーボード・ドライバのフローチャ
ート、第10図は第7図のアプリケーションのフローチ
ャート、第11図は第7図のキー入力の実行経過の説明
図である。 1・・・キーボード、2・・・キーボード・コントロー
ラ、3A・・・キーボード・ドライバ(キー入力データ
処理部)、31・・・バッファ、4・・・アプリケーシ
ョン(キー入力データ変換処理部)、5・・・タイマー
20−・・処理装置、21・MPU、22・ROM。 23・・・RAM、30・・・表示装置。 第 凹 第 図 第 図 阜 図 寮 図 第 図
FIG. 1 is a functional block diagram showing an embodiment of the key input device according to the present invention, FIG. 2 is a flowchart of the keyboard driver shown in FIG. 1, and FIG. 3 is a detailed flowchart of the keyboard driver shown in FIG. Figure 4 is an explanatory diagram of the execution progress of the key input in Figure 1, Figure 5 is a block diagram of the personal computer in Figure 1, Figure 6 is an external view of Figure 5, and Figure 7 is the conventional key input. 8 is a flowchart of the keyboard controller of FIG. 7, FIG. 9 is a flowchart of the keyboard driver of FIG. 7, FIG. 10 is a flowchart of the application of FIG. 7, and FIG. 11 is a functional block diagram illustrating the device. The figure is an explanatory diagram of the execution progress of the key input in FIG. 7. DESCRIPTION OF SYMBOLS 1... Keyboard, 2... Keyboard controller, 3A... Keyboard driver (key input data processing section), 31... Buffer, 4... Application (key input data conversion processing section), 5 ...Timer 20--Processing device, 21.MPU, 22.ROM. 23...RAM, 30...Display device. Diagram: Diagram: Diagram: Diagram: Diagram: Fuzu: Dormitory diagram: Diagram: Diagram

Claims (1)

【特許請求の範囲】[Claims] 1、データ入力用のキーと、キー入力データを処理する
装置と、キー入力データおよび処理に必要なデータを記
憶する記憶装置と、キー入力データおよび処理結果を表
示する表示装置からなるキー入力装置において、キー入
力データを処理するキー入力データ処理部とキー入力デ
ータを変換処理するキー入力データ変換処理部の間にキ
ー入力データ変換処理部が処理中の場合にキー入力デー
タを一旦蓄えておくバッファを設けたことを特徴とする
キー入力装置。
1. A key input device consisting of a key for data input, a device for processing key input data, a storage device for storing key input data and data necessary for processing, and a display device for displaying key input data and processing results. The key input data is temporarily stored between the key input data processing unit that processes the key input data and the key input data conversion processing unit that converts the key input data when the key input data conversion processing unit is in process. A key input device characterized by being provided with a buffer.
JP63170926A 1988-07-11 1988-07-11 Key input device Pending JPH0221318A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63170926A JPH0221318A (en) 1988-07-11 1988-07-11 Key input device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63170926A JPH0221318A (en) 1988-07-11 1988-07-11 Key input device

Publications (1)

Publication Number Publication Date
JPH0221318A true JPH0221318A (en) 1990-01-24

Family

ID=15913922

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63170926A Pending JPH0221318A (en) 1988-07-11 1988-07-11 Key input device

Country Status (1)

Country Link
JP (1) JPH0221318A (en)

Similar Documents

Publication Publication Date Title
JPH0221318A (en) Key input device
JPH0358090A (en) Display device
JPS61259368A (en) Word processor
JPH0542749A (en) Printing suspension processing device
JPS59136852A (en) Preserving method of display and print mode in display and print device
JPS6033637A (en) Data processor
JP2555036B2 (en) Character string input device
JPH03186920A (en) Keyboard control system
JPS6136850A (en) Input and output interruption information system
JPH045207B2 (en)
JPH07160192A (en) Braille output device
JPH05224770A (en) Method and device for processing data
JPS63120330A (en) Screen control system
JPS6347815A (en) Electronic typewriter
JPH0675908A (en) On-line real time processing system
JPS6288053A (en) Character input device
JPH0217521A (en) Help processing system for information processor
JPH06187079A (en) Data input device
JPS62293432A (en) Information processor
JPH01195530A (en) Picture reserving system for conversation process computer system
JPS62166470A (en) Image storage system for interactive processing computer system
JPH0754519B2 (en) Text input device
JPH04522A (en) Information processor
JPS62222324A (en) Terminal equipment
JPH0546387A (en) Screen display method