JPS6161405B2 - - Google Patents

Info

Publication number
JPS6161405B2
JPS6161405B2 JP56130537A JP13053781A JPS6161405B2 JP S6161405 B2 JPS6161405 B2 JP S6161405B2 JP 56130537 A JP56130537 A JP 56130537A JP 13053781 A JP13053781 A JP 13053781A JP S6161405 B2 JPS6161405 B2 JP S6161405B2
Authority
JP
Japan
Prior art keywords
key
keys
input
section
kbaiox
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.)
Expired
Application number
JP56130537A
Other languages
Japanese (ja)
Other versions
JPS5850033A (en
Inventor
Shigeji Sugimoto
Yasuko Koyama
Nobuhiro Naka
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP56130537A priority Critical patent/JPS5850033A/en
Publication of JPS5850033A publication Critical patent/JPS5850033A/en
Publication of JPS6161405B2 publication Critical patent/JPS6161405B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/0227Cooperation and interconnection of the input arrangement with other functional units of a computer

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Input From Keyboards Or The Like (AREA)

Description

【発明の詳細な説明】 本発明は入力システムにおけるマルチキーリー
ド(MULTI KEY READ)方式に係り、特にキ
ー入力装置から入力される多重キーコードの入力
タイミングと表示タイミングの時差を生じさせな
い方式に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a MULTI KEY READ method in an input system, and particularly to a method that does not create a time difference between the input timing and display timing of multiple key codes input from a key input device.

従来キー入力装置から入力されたキーコードに
対しては、1文字ずつキーロツクを行い、処理後
キーロツク解除を行なうという方式があつた。該
旧方式だと、キー入力と処理との同期を取り易い
が1個のキーに対する処理時間がキー入力速度と
なるため、高速で連続してキー入力された場合に
対処出来ないキーが発生するという欠点があつ
た。
Conventionally, there has been a system in which key codes input from a key input device are locked one character at a time, and the key lock is released after processing. With the old method, it is easy to synchronize key input and processing, but the processing time for one key is equal to the key input speed, so if keys are input continuously at high speed, some keys may not be able to be handled. There was a drawback.

本発明は前記欠点を解消して処理効率が高く、
信頼性の高いキー処理方式を提供することを目的
とする。
The present invention eliminates the above-mentioned drawbacks and has high processing efficiency.
The purpose is to provide a highly reliable key processing method.

この目的は、キー入力装置から種々のキーを読
み込み処理するシステムにおいて、入力されるキ
ーコードをレターキー(通常キー)と制御キー
(フアンクシヨンキー)の2種類に分け、前記キ
ー入力装置に発生したキーコードを一時バツフア
に蓄え、前記発生キーコードが制御キーである場
合は、前記キー入力装置に対してキーロツクを行
ない、キー入力を不可とする手段を設けるととも
に、前記一時バツフアに蓄積されたキーコードを
一括して読み出し、前記キーロツクを解除する手
段を設けたことを特徴とする入力装置におけるマ
ルチキーリード方式により達成される。
The purpose of this is to divide input key codes into two types, letter keys (normal keys) and control keys (function keys), in a system that reads and processes various keys from a key input device. A key code is stored in a temporary buffer, and when the generated key code is a control key, a means is provided to lock the key input device and disable key input, and the key code stored in the temporary buffer is This is achieved by a multi-key read method in an input device characterized by providing means for reading the codes all at once and releasing the key lock.

以下図面を用いて本発明を詳細に説明する。 The present invention will be explained in detail below using the drawings.

第1図は本発明の一実施例を示す機能ブロツク
図である。図において、11はキーボード、12
はIOX、13はタイマータスク、14はKBARSP
レスポンス部、15はKBAIOXコール部、16
はアプリケーシヨンプログラムである。
FIG. 1 is a functional block diagram showing one embodiment of the present invention. In the figure, 11 is the keyboard, 12
is IOX, 13 is timer task, 14 is KBARSP
Response part, 15 is KBAIOX call part, 16
is an application program.

第2図は本発明の一実施例を示すKBAIOXコ
ール部の処理手順を示す図である。
FIG. 2 is a diagram showing a processing procedure of a KBAIOX call section showing an embodiment of the present invention.

図において、21はキーボード装置のキーロツ
ク解除部、22はKBARSPのタイマー起動部、
23,24,25は入口点、26は次処理であ
る。
In the figure, 21 is a key lock release unit of the keyboard device, 22 is a timer activation unit of KBARSP,
23, 24, and 25 are entry points, and 26 is a next process.

第3図は本発明の一実施例を示すKBARSPレ
スポンス部の操作手順を示す図である。
FIG. 3 is a diagram showing the operating procedure of the KBARSP response section showing one embodiment of the present invention.

図において、31はスタート部、32は中間バ
ツフアチエツク部、33はキー入力部、34は
WRITE POINTERカウント部、35はフアンク
シヨンコードチエツク部、36はタイマーセツト
部、37はKBAIOXの実行チエツク部、38は
ストツプ部、39はKBAIOXの起動部、40,
41は入口点である。
In the figure, 31 is a start part, 32 is an intermediate buffer check part, 33 is a key input part, and 34 is a
WRITE POINTER count section, 35 is a function code check section, 36 is a timer set section, 37 is a KBAIOX execution check section, 38 is a stop section, 39 is a KBAIOX start section, 40,
41 is an entry point.

第1図においてIOX12のKBAIOXコール部1
5はデータバツフア(KBARSPレスポンス部1
4がコードをセツトする所)にデータが入つてい
ない時に自タスク(アプリケーシヨンプログラム
16)をWAITさせる。
In Figure 1, KBAIOX call part 1 of IOX12
5 is the data buffer (KBARSP response part 1
4 sets the code) When no data is entered, the invoking task (application program 16) is made to wait.

タイマ割込みが起るとタイマータスク13が
KBARSPレスポンス部14を起動し、該
KBARSPレスポンス部14ではキーボード部1
1から一文字キーコードを入力し、バツフアへデ
ータを転送する。入力したキーコードがフアンク
シヨンコードである時はキーボード11をロツク
し入力不可とする。レターキーである時は次のキ
ーを入力するためタイマータスクへ自タスク14
がある一定時間(キー打健時間:キーボードの種
類によつて異なる5mS〜200mS、タイプライ
タ形式のキーボードの場合は17.5mS前後)後再
び起動されるように依頼する。
When a timer interrupt occurs, timer task 13
Start the KBARSP response section 14 and
In the KBARSP response section 14, the keyboard section 1
Enter the one-character key code starting from 1 and transfer the data to the buffer. When the input key code is a function code, the keyboard 11 is locked and input is disabled. If it is a letter key, go to the timer task to input the next key.Task 14
After a certain period of time (key press time: 5mS to 200mS depending on the type of keyboard, around 17.5mS for typewriter-style keyboards), you will be asked to start up again.

次にKBARSPレスポンス部14はKBAIOXコ
ール部15がWAITしている場合のみKBAIOXコ
ール部15を起動(WAITを解除)させる。該
KBAIOXコール部15は入力したデータバツフ
アの内容をアプリケーシヨンプログラム16の用
意した領域へセツトする。
Next, the KBARSP response unit 14 activates the KBAIOX call unit 15 (cancels the WAIT) only when the KBAIOX call unit 15 is in WAIT. Applicable
The KBAIOX call unit 15 sets the contents of the input data buffer into an area prepared by the application program 16.

第2図によつてKBAIOXコール部の機能を詳
細に説明する。
The functions of the KBAIOX call section will be explained in detail with reference to FIG.

当該KBAIOXコール部はアプリケーシヨンプ
ログラム16から呼び出されると、まず割込マス
ク処理を行ない、中間バツフアにデータがあるか
どうかチエツクを行ない、キーコードがある場合
は割込みマスクを解除し、23へ行く。又ない場
合はKBAWATのフラグをONにし、割込みマス
クを解放するとともに自タスクをWAITさせる。
WAITは第3図のKBAIOX起動部39によつて解
除される。次に中間バツフアのデータ長(X)を
求めてから、依頼バツフアに全データのセツトが
可能かどうか、調べる。可能な場合は24へ行
き、可能でない場合は、(X)を依頼バツフア長
にして、依頼バツフアに長さ(X)分のデータを
中間バツフアより転送する、そして
READPOINTERを(X)分カウントアツプ
〔READPOINTER=(READPOINTER+(X)&
(中間バツフア長ではない)〕行ない、キーボード
装置がキーロツクされているかを調べ、キーロツ
クである場合はキーボードからの入力を可能とす
るためにキーロツクを解除する(キーロツク解除
部21)。次にKBARSPを起動するためにタイマ
ータスクへ依頼を行う(タイマー起動部22)。
そしてキーロツクされていない場合と同様に次処
理25へ行き、アプリケーシヨンプログラムへ戻
る。
When the KBAIOX call section is called by the application program 16, it first performs interrupt mask processing, checks whether there is data in the intermediate buffer, and if there is a key code, cancels the interrupt mask and goes to step 23. If there are no more, turn on the KBAWAT flag, release the interrupt mask, and make the invoking task WAIT.
WAIT is canceled by the KBAIOX activation unit 39 shown in FIG. Next, after determining the data length (X) of the intermediate buffer, it is checked whether all data can be set in the request buffer. If possible, go to 24; if not, set the request buffer length to (X), transfer data of length (X) to the request buffer from the intermediate buffer, and
Count up READPOINTER for (X) minutes [READPOINTER = (READPOINTER + (X) &
(not the intermediate buffer length)] and checks whether the keys of the keyboard device are locked. If the keys are locked, the key lock is released to enable input from the keyboard (key lock release unit 21). Next, a request is made to the timer task to start KBARSP (timer starting section 22).
Then, as in the case where the key is not locked, the process goes to the next process 25 and returns to the application program.

次にKBAIOXコール部15とともに本発明の
主要機能を果すKBARSPレスポンス部14を詳
細に説明する。
Next, the KBARSP response section 14, which performs the main functions of the present invention together with the KBAIOX call section 15, will be explained in detail.

スタート部31はタイマー割込みによるタスク
起動によつて行われる次に中間バツフアチエツク
部32は、キーコードが中間バツフアにセツト可
能かどうか調べて、不可能ならキーボード装置を
キーロツクして入口点40にJUMPする。可能な
ら、キー入力部33で、キーコードを読み込み
(キーボード装置のレジスタを読む)キーコード
がない場合は41へJUMPする。該キーコードを
中間バツフアにセツトし後前記レジスタをクリ
ア、WRITE POINTER COUNT部34で
WRITE POINTERを+1する。次にフアンクシ
ヨンコードチエツク部35は(キーコードとフア
ンクシヨンコードのコードの割当て範囲における
相等性をチエツクし、相等ならばキーボード11
をロツクし40に行く。キーコードがフアンクシ
ヨンコードでない場合は、次のキーコードを入力
するためにタイマーセツト部36でKBARSPの
タイマーを起動し、KBAIOXの実行チエツク部
37でKBAIOXが実行可能状態(KBAWATが
ONの時は、KBAIOXがWAIT待ち)を調べ、
WAIT待ちならKBAIOXの起動部39でKBAIOX
コール部15を起動し、実行中と同様にストツプ
部38で自タスクの実行権を放棄する。
The start section 31 is activated by a task activation by a timer interrupt. Next, the intermediate buffer check section 32 checks whether the key code can be set in the intermediate buffer, and if it is not possible, locks the key of the keyboard device and jumps it to the entry point 40. . If possible, read the key code using the key input unit 33 (read the register of the keyboard device), and if there is no key code, jump to 41. After setting the key code in the intermediate buffer, clear the register, and write in the WRITE POINTER COUNT section 34.
Add 1 to WRITE POINTER. Next, the function code check section 35 (checks the equality of the key code and the function code in the code assignment range, and if they are equivalent, the keyboard 11
Lock and go to 40. If the key code is not a function code, the timer set section 36 starts the KBARSP timer to input the next key code, and the KBAIOX execution check section 37 indicates that KBAIOX is in the executable state (KBAWAT is
When ON, check KBAIOX (Waiting for WAIT),
If you are waiting for WAIT, use KBAIOX in the startup section 39 of KBAIOX.
The calling unit 15 is activated, and the execution right of the current task is relinquished by the stop unit 38, as in the case of execution.

キーボード装置には、キーコードを入力する方
法としてハードスキヤンタイプとソフトスキヤン
タイプがある。ハードスキヤンタイプのキーボー
ド装置は、ハード自身でタイマーを使い、入力さ
れたキーを探すため、ある一定時間間隔でキーを
スキヤンニングし、入力キーコードを発見した時
点で、ソフトに対して割込み通知を発行する。ハ
ードスキヤンタイプの装置を採用した場合、ソフ
トでのタイマをセツトする処理し(タイマータス
ク13、KBARSPのタイマー起動22、タイマ
ーセツト36)は不要になる。本実施例は、ソフ
トスキヤンタイプのキーボード装置を対象に記述
されている。ソフトスキヤンタイプのキーボード
装置は、現在打鍵中のキーを示すだけで、ソフト
への割込み処理及び、スキヤンニングのためのタ
イマー処理もない。このためソフト例でスキヤン
ニングを行なうために、タイマー処理が必要とな
る。
Keyboard devices include hard scan types and soft scan types for inputting key codes. Hardware scan type keyboard devices use a timer on their own to scan the keys at a certain time interval in order to search for the input key, and when the input key code is discovered, an interrupt notification is sent to the software. Issue. If a hard scan type device is adopted, the software timer setting process (timer task 13, KBARSP timer activation 22, timer set 36) becomes unnecessary. This embodiment is described for a soft scan type keyboard device. A soft scan type keyboard device only indicates the key currently being pressed, and there is no interrupt processing to the software or timer processing for scanning. Therefore, timer processing is required to perform scanning using the software example.

以上説明したように、本発明によれば、多重キ
ー入力に対して効率のよい(処理出来ないキーが
ないこと等)処理ができる。
As described above, according to the present invention, multiple key inputs can be processed efficiently (eg, there are no keys that cannot be processed).

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

第1図は本発明の一実施例を示す機能ブロツク
図である。第2図は本発明の一実施例を示す
KBAIOXコール部の処理手順を示す図である。
第3図は本発明の一実施例を示すKBARSPレス
ポンス部の処理手順を示す図である。 記号の説明、11……キーボード、12……
IOX、13……タイマータスク、14……
KBARSPレスポンス部、15……KBAIOXコー
ル部、16……アプリケーシヨンプログラム。
FIG. 1 is a functional block diagram showing one embodiment of the present invention. FIG. 2 shows an embodiment of the present invention.
FIG. 3 is a diagram showing a processing procedure of a KBAIOX call unit.
FIG. 3 is a diagram showing a processing procedure of a KBARSP response section showing an embodiment of the present invention. Explanation of symbols, 11...Keyboard, 12...
IOX, 13... Timer task, 14...
KBARSP response section, 15...KBAIOX call section, 16...Application program.

Claims (1)

【特許請求の範囲】[Claims] 1 キー入力装置から種々のキーを読み込み処理
するシステムにおいて、入力されるキーをレター
キー(通常キー)と制御キー(フアンクシヨンキ
ー)の2種類に分け、前記キー入力装置に発生し
たキーコードを一時バツフアに蓄え、前記発生キ
ーコードが制御キーである場合は、前記キー入力
装置に対してキーロツクを行ない、キー入力を不
可とする手段を設けるとともに、前記一時バツフ
アに蓄積されたキーコードを一括して読み出し、
前記キーロツクを解除する手段を設けたことを特
徴とする入力装置におけるマルチキーリード方
式。
1. In a system that reads and processes various keys from a key input device, the input keys are divided into two types: letter keys (normal keys) and control keys (function keys), and the key codes generated in the key input device are temporarily stored. If the generated key code is a control key, a means is provided to lock the key input device and disable key input, and the key codes stored in the temporary buffer are stored in the temporary buffer. and read it out,
A multi-key read method in an input device, characterized in that a means for releasing the key lock is provided.
JP56130537A 1981-08-20 1981-08-20 Multikey read system Granted JPS5850033A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP56130537A JPS5850033A (en) 1981-08-20 1981-08-20 Multikey read system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP56130537A JPS5850033A (en) 1981-08-20 1981-08-20 Multikey read system

Publications (2)

Publication Number Publication Date
JPS5850033A JPS5850033A (en) 1983-03-24
JPS6161405B2 true JPS6161405B2 (en) 1986-12-25

Family

ID=15036653

Family Applications (1)

Application Number Title Priority Date Filing Date
JP56130537A Granted JPS5850033A (en) 1981-08-20 1981-08-20 Multikey read system

Country Status (1)

Country Link
JP (1) JPS5850033A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04244901A (en) * 1991-01-31 1992-09-01 Daikin Ind Ltd Target position correction device of mechanism with potentiometer

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58181137A (en) * 1982-04-14 1983-10-22 Mitsubishi Electric Corp Keyboard device
CN103576863B (en) * 2012-06-21 2017-02-15 深圳市金正方科技股份有限公司 Keyboard input method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04244901A (en) * 1991-01-31 1992-09-01 Daikin Ind Ltd Target position correction device of mechanism with potentiometer

Also Published As

Publication number Publication date
JPS5850033A (en) 1983-03-24

Similar Documents

Publication Publication Date Title
JPH042964B2 (en)
JPH03224036A (en) Exclusive control system for resources
JPS6161405B2 (en)
JPS605372A (en) Locking and unlocking system of terminal device
US5555361A (en) Multiprocess input system with suppressed amount of communication between processes
JP2616628B2 (en) Key input device
JP3078194B2 (en) Key scan circuit
JPH05216635A (en) System for managing program competition
JPH045207B2 (en)
JPS6126087B2 (en)
JPH0338690A (en) Data processor
JPH0362214A (en) Screen display control system
JP2872042B2 (en) Shared memory access method
JPH02173817A (en) Reinput mechanism for immediately preceding input command
JPS63236124A (en) Input device
JPH01200285A (en) Cursor movement controller
JPH02297131A (en) Japanese word processor device with column control processing mechanism
JPS60238946A (en) Processing system of snap shot dump
JPH0342761A (en) Data processor
JPH05342119A (en) Time activation control system
JPS6051908A (en) Numerical control device
JPH04268648A (en) Control system for synchronizing terminal printer output and commit
JPH04260970A (en) Method for inputting japanese language in application program
KR19990017724A (en) Interrupt Masking Method of Real-Time Operating System
JPS62125423A (en) Data deleting system