Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0782410B2 - Data input device by keyboard - Google Patents
[go: Go Back, main page]

JPH0782410B2 - Data input device by keyboard - Google Patents

Data input device by keyboard

Info

Publication number
JPH0782410B2
JPH0782410B2 JP61037269A JP3726986A JPH0782410B2 JP H0782410 B2 JPH0782410 B2 JP H0782410B2 JP 61037269 A JP61037269 A JP 61037269A JP 3726986 A JP3726986 A JP 3726986A JP H0782410 B2 JPH0782410 B2 JP H0782410B2
Authority
JP
Japan
Prior art keywords
key
code
keyboard
time
input
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 - Fee Related
Application number
JP61037269A
Other languages
Japanese (ja)
Other versions
JPS62196718A (en
Inventor
康嗣 三原
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP61037269A priority Critical patent/JPH0782410B2/en
Publication of JPS62196718A publication Critical patent/JPS62196718A/en
Publication of JPH0782410B2 publication Critical patent/JPH0782410B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、計算機や各種情報機器にデータを入力するた
めのデータ入力装置に関わり、詳細には、キースイッチ
を操作してデータの入力を行うキーボードによるデータ
入力装置に関する。
Description: TECHNICAL FIELD The present invention relates to a data input device for inputting data to a computer or various information devices, and more specifically, operating a key switch to input data. The present invention relates to a keyboard-based data input device.

〔従来の技術〕[Conventional technology]

複数のキーを盤上に配置したキーボードは、手軽にデー
タの入力を行うことができ、広く用いられている。
A keyboard in which a plurality of keys are arranged on the board can easily input data and is widely used.

キーボード上に配置されたキーは、これを押すことによ
りキー入力が行われるが、これには、(i)キー操作が
行われるたびに1回ずつキー入力が行われるものと、
(ii)キーが連続的に押下されている場合には、その継
続時間に応じて複数回のキー入力が行われたものとして
処理するものとがある。
The key arranged on the keyboard is pressed by pressing the key, and the key input is performed once every time (i) key operation is performed.
(Ii) When a key is continuously pressed, it may be processed as if the key was input a plurality of times according to the duration.

キーボードでは、キーがオンとなったその変化点でキー
入力を検知するので、通常は1回のキー操作で1回のキ
ー入力が行われる。従って同一のキースイッチを用いて
複数回のキー入力を行う必要があるときには、その回数
だけキー操作を繰り返すことになる。しかしながら、カ
ーソルやその他連続入力を常態とする特殊なキーについ
ては、キーをある程度長時間押し続けている場合であれ
ばキー入力が連続的に行われたものとして処理した方が
好都合である。
In the keyboard, the key input is detected at the change point when the key is turned on, so normally one key input is performed by one key operation. Therefore, when it is necessary to perform key input a plurality of times using the same key switch, the key operation is repeated that number of times. However, with regard to a special key such as a cursor or other continuous input, if it is held down for a certain period of time, it is more convenient to process it as if the key input was performed continuously.

そこでキーボードによっては、連続入力を可能とするキ
ーを幾つか設定しており、これらのキーが押し続けられ
たときには、あたかもキーの短時間の押下が繰り返され
たかの如くデータの送出を行うようにしている。
Therefore, some keyboards are set with some keys that enable continuous input, and when these keys are held down, data is sent out as if the keys were pressed for a short time. There is.

第3図はこのようなキーボードにおけるデータの送出状
況を説明するためのものである。同図aに示すように時
刻t1にキーを押下し、これから所定時間経た後の時刻t2
までこの押下状態を保持したものとする。このとき、リ
ピート対象キーすなわちキー入力を連続して繰り返すこ
とができるように設定されたキーでは、同図bに示すよ
うに時刻t1にキースイッチについてのメークコードMを
生成し、これから時間T1だけ経た時点でなおもそのキー
スイッチが押下されている場合には、時間T2が経過する
たびにメークコードMの生成を行う。時間T1は、時間T2
よりも通常は長く設定される。これはオペレータの不注
意な操作でキー入力が連続的に行われるような事態を防
止させるためである。
FIG. 3 is for explaining a data transmission situation in such a keyboard. As shown in FIG. 6A, the key is pressed at time t1 and time t2 after a predetermined time has passed
It is assumed that this pressed state is held until. At this time, in the repeat target key, that is, the key set so that the key input can be continuously repeated, the make code M for the key switch is generated at time t1 as shown in FIG. If the key switch is still pressed after the elapse, the make code M is generated every time the time T2 elapses. Time T1 is time T2
Is usually set longer than. This is to prevent a situation where key input is continuously performed by an operator's careless operation.

ところで、従来から用いられているこのようなキーボー
ドでは、キーが1回押下されるたびにキー入力が行われ
ることが原則となっている。そこで、キースイッチが離
されたときに生成されるブレークコードBは擬似的に生
成されたメークコード(図で2番目および3番目のメー
クコード)Mの直後に生成される(同図cの1番目およ
び2番目のブレークコード)。そして時刻t2にキーが離
されたとき、本来のブレークコードBが生成されること
になる(同図cの3番目のブレークコード)。これら生
成されたメークコードMおよびブレークコードBは、同
図dに示すように送出データとして上位装置に送出され
る。
By the way, in such a conventionally used keyboard, it is a principle that key input is performed every time a key is pressed once. Therefore, the break code B generated when the key switch is released is generated immediately after the pseudo-generated make code (the second and third make codes in the figure) M (1 in FIG. 1C). Second and second break code). Then, when the key is released at time t2, the original break code B is generated (the third break code in FIG. 7C). The generated make code M and break code B are sent to the upper device as sending data as shown in FIG.

これに対して、リピート対象となっていない通常のキー
の場合には、同図eに示すように時刻t1にメークコード
Mが生成され、同図fに示すように時刻t2にブレークコ
ードBが生成される。同一のキーがどんなに長く押され
ていても、これらの中間の時間帯に他のメークコードあ
るいはブレークコードが生成されることはない。従っ
て、この場合の送出データは、同図gに示すように1組
のメークコードMおよびブレークコードBということに
なる。
On the other hand, in the case of an ordinary key that is not a repeat target, a make code M is generated at time t1 as shown in FIG. 6E, and a break code B is generated at time t2 as shown in FIG. Is generated. No other make code or break code is generated during these intermediate times, no matter how long the same key is pressed. Therefore, the transmission data in this case is a set of make code M and break code B as shown in FIG.

以上、それぞれのキーを固定的にリピート対象のキーと
それ以外のキーに割り振ったキーボードについて説明し
たが、こ他にリピートキーと呼ばれるキーを用意したキ
ーボードも存在する。この後者のキーボードでは、リピ
ートキーを押しながら目的のキーを押下すると、その押
下されている時間だけキーの押下があたかも繰り返し押
されたようにデータの送出が行われる。
The above description has been given of the keyboard in which each key is fixedly assigned to the repeat target key and the other keys, but there are other keyboards in which other keys called repeat keys are prepared. In this latter keyboard, when the target key is pressed while the repeat key is being pressed, the data is transmitted as if the key was pressed repeatedly for the length of time the key was pressed.

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

従来用いられた以上説明したように2種類のキーボード
では、1回のキー操作で繰り返しキー入力を行うことが
できるキーがそのキーボード自身の仕様によって既に決
定されていた。従って、このようなリピート機能をもっ
たキーを増減させたり、その種類の変更を行うことはで
きず、これを可能とさせようとするとそのような条件に
合ったキーボードを探し出し、それに交換する必要があ
った。ところがこれはその実現が困難であり、またリピ
ート機能をもったキーの範囲を入力するデータの形態に
応じて自在に変更することは、キーボードの交換という
問題が付きまとうため現実に不可能であった。
As described above, in the two types of conventional keyboards, the keys that can be repeatedly input by one key operation have already been determined by the specifications of the keyboard itself. Therefore, it is not possible to increase or decrease the number of keys with such a repeat function or change the type of keys, and in order to enable this, it is necessary to find a keyboard that meets such conditions and replace it. was there. However, this is difficult to realize, and it is actually impossible to freely change the range of keys with a repeat function according to the form of input data because of the problem of keyboard replacement. .

そこで本発明の目的は、個々のアプリケーションにおい
てリピート入力のできるキーをキーボードに自由に設定
させることのできるデータ入力装置を提供することにあ
る。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a data input device capable of freely setting keys for repeat input in a keyboard on a keyboard.

〔問題点を解決するための手段〕[Means for solving problems]

本発明のデータ入力装置は、キーボードと上位装置から
なる。キーボードは、キーマトリックスと、このキーマ
トリックスにおける各キースイッチのオン・オフ状態を
逐次検出する検出回路と、その検出回路がオン状態の開
始を検出した時点で発生しメイクを示すコードとキーの
種類を示すコードとから成る第1のコードと、キーがオ
ン状態のときに第1のコードが発生した時点から所定時
間後に一定時間間隔で発生しブレイクを示すコードとキ
ーの種類を表すコードからなる第2のコードとを発生す
るエンコーダと、エンコーダからの第1及び第2のコー
ドを送出するインターフェースとを有する。また、上記
装置は、キーボードのインターフェースに接続され、第
1及び第2のコードのキーの種類を示すコードを解析し
そのキーがリピート対象のキーか否かを判定し、リピー
ト対象のキーの場合に第1及び第2のコードをキー入力
があったものとして処理し、リピート対象のキーでない
場合に第1のコードをキー入力があったものとして処理
する。
The data input device of the present invention comprises a keyboard and a host device. A keyboard consists of a key matrix, a detection circuit that sequentially detects the on / off state of each key switch in this key matrix, a code that indicates the make-up that occurs when the detection circuit detects the start of the on state, and the type of key. And a code indicating the break and a code indicating the type of the key, which occurs at a fixed time interval after a predetermined time has elapsed from the time when the first code occurred when the key was in the ON state. It has an encoder for generating a second code and an interface for transmitting the first and second codes from the encoder. Also, the above device is connected to a keyboard interface, analyzes a code indicating the type of the key of the first and second codes, determines whether the key is a repeat target key, and in the case of a repeat target key First, the first and second codes are processed as if there was a key input, and if the key is not a repeat target key, the first code is processed as if there was a key input.

〔実施例〕〔Example〕

以下実施例につき本発明を詳細に説明する。 The present invention will be described in detail below with reference to examples.

第1図は本発明の一実施例におけるキーボードの概略構
成を表わしたものである。このキーボードのキーマトリ
ックス1上の各種キーの押下状況は、センス回路によっ
て検知されるようになっている。エンコーダ3はこのセ
ンス回路2から供給される検知情報4を基にして、押下
されたキーについて2種類のコードを生成する。このう
ち第1のコードはメークコードである。メークコード
は、キーが押された時点で作成されるコードである。第
2のコードはブレークコードである。ブレークコードは
オペレータが該当するキーを離したとき生成される。ま
たメークコードが生成されてからそのキーが続けて押さ
れている場合、その間、エンコーダ3は所定の間隔でこ
のブレークコードを生成する。
FIG. 1 shows a schematic configuration of a keyboard according to an embodiment of the present invention. The pressing state of various keys on the key matrix 1 of the keyboard is detected by the sense circuit. The encoder 3 generates two types of codes for the pressed key based on the detection information 4 supplied from the sense circuit 2. Of these, the first code is a make code. The make code is a code created when a key is pressed. The second code is the break code. Break code is generated when the operator releases the appropriate key. When the make code is generated and the key is continuously pressed, the encoder 3 generates the break code at predetermined intervals during that time.

エンコーダは、押下されたキーの種別を表わした情報と
併せてこれらの符号化を行い、コード情報5としてイン
ターフェイス6に出力する。コード情報が例えば8ビッ
ト構成であれば、最上位ビットが“0"のときをメークコ
ードとし、“1"のときをブレークコードとすると、その
処理が簡単となる。インターフェイス6では送られてき
たコード情報を、上位装置としての情報処理装置に送出
する。制御回路7は以上説明した各部の制御を行うこと
になる。
The encoder encodes these together with the information indicating the type of the pressed key, and outputs the code information 5 to the interface 6. If the code information has, for example, an 8-bit structure, the process is simplified if the most significant bit is "0" and the make code is "1". The code information sent from the interface 6 is sent to the information processing device as a host device. The control circuit 7 controls each part described above.

以上のような構成のキーボードについて送出データの成
形される様子を次に説明する。
The manner in which the send data is shaped for the keyboard having the above-described configuration will be described below.

第2図は第3図に対応したものである。第2図aに示す
ようにオペレータが時刻t1にキーの押下を開始し、時刻
t2までこれを継続したものとする。本実施例でも、エン
コーダ3は同図bに示すように時刻t1にメークコードM
を生成する。例えばオペレータが数字キー「1」を押下
したとし、このコードが16進数で“31"で表現されるも
のであるとすると、このコード“31"(8ビット構成で
最上位が“0"となったビット列“00110001"が生成され
ることになる。
FIG. 2 corresponds to FIG. As shown in Fig. 2a, the operator starts pressing the key at time t1,
This is continued until t2. Also in this embodiment, the encoder 3 makes the make code M at time t1 as shown in FIG.
To generate. For example, if the operator presses the numeric key "1" and this code is represented by a hexadecimal number "31", this code "31" (the highest bit in 8-bit configuration is "0" The bit string "00110001" is generated.

キーボードはこの時刻t1から図示しない時計機構を働か
せ、時間T1が経過した時点でまだそのキーが押下されて
いる場合には、その時刻に第1番目のブレークコードを
生成する(同図c)。このブレークコードBは、最上位
ビットを“1"としたコード“B1"(8ビット構成で“101
10001")となる。この後は、そのキーが押下されている
限り、同図に示すように時間T2が経過するたびにブレー
クコード“B1"の生成が行われる。またエコーダ3は、
時刻t2においてオペレータがキーを離した時点で、同じ
く同図cに示すように本来的なブレークコードの生成を
行う。コのコードも、数字キー「1」のブレークコード
としてのコード“B1"となる。
The keyboard activates a clock mechanism (not shown) from this time t1, and if the key is still pressed when the time T1 elapses, the first break code is generated at that time (FIG. 11C). This break code B is a code "B1" (8-bit configuration "101" with the most significant bit "1").
After that, as long as the key is pressed, the break code "B1" is generated every time the time T2 elapses, as shown in the figure.
When the operator releases the key at time t2, the original break code is generated as shown in FIG. The code of U is also the code "B1" as the break code of the numeric key "1".

以上のようにして生成されたメークコードMとブレーク
コードBは、インターフェイス6を介して送出データ
(同図d)として上位装置に供給されることになる。こ
のときの数字キー「1」に関する送出コードは同図eに
示すようなものとなる。
The make code M and the break code B generated as described above are supplied as transmission data (d in the figure) via the interface 6 to the host device. The sending code for the numeric key "1" at this time is as shown in FIG.

すなわち本実施例の場合には、リピート対象となるキー
を特定することなく、送出コードの最上位ビットを変化
させた形でキー情報の送出が行われることになる。
That is, in the case of this embodiment, the key information is transmitted in a form in which the most significant bit of the transmission code is changed without specifying the key to be repeated.

さて、送出コードの供給を受けた上位装置では、最上位
ビットを“0"にした状態で各コードを解読し、押下され
たキーがリピート対象のキーであるかどうかを上位装置
独自の観点から判別する。そしてリピート対象のキーで
あると判別された場合には、最上位ビットが“0"のビッ
ト構成のコードも“1"のビット構成のコードも共にキー
入力があったものとして処理する。すなわち、この例の
場合には、数字キー「1」が3回押下されたものとして
処理することになる(第2図f)。
Now, in the host device that receives the supply of the sending code, it decodes each code with the most significant bit set to "0", and determines whether the pressed key is the key to be repeated from the host device's own viewpoint. Determine. When it is determined that the key is a repeat target key, both the code having the bit configuration with the most significant bit being “0” and the code having the bit configuration having the most significant bit are processed as if there was a key input. That is, in the case of this example, it is processed as if the numeric key "1" was pressed three times (FIG. 2f).

これに対して、上位装置がリピート対象のキーでないも
のと判別した場合には、最上位ビットが“1"となったコ
ードの入力は無視され、“0"となっているものについて
のみキー入力があったものとして処理が行われる。この
例を場合には、数字キー「1」が1回押下されたものと
して処理されることになる(第2図g)。尚、上位装置
はキーイン(第2図a)によりt2時点でのブレイクの第
2のコードを無視するものとする。
On the other hand, when the host device determines that the key is not the repeat target key, the input of the code with the most significant bit being "1" is ignored, and only the key having "0" is keyed. Processing is performed as if there was. In this case, the numeric key "1" is processed as if it was pressed once (FIG. 2g). It is assumed that the host device ignores the second code of the break at time t2 by key-in (Fig. 2a).

このように、送出コードを受け取った上位装置が独自に
リピート対象のキーであるかを判別し、それに合った処
理が行われることになる。
In this way, the host device that received the transmission code uniquely determines whether or not the key is a repeat target key, and the processing suitable for it is performed.

〔発明の効果〕〔The invention's effect〕

以上説明したように、本発明によればアプリケーション
側でリピートキーを選択することができるので、アプリ
ケーションに応じたキーの使い方ができるという効果が
ある。
As described above, according to the present invention, the repeat key can be selected on the application side, so that there is an effect that the key can be used according to the application.

また本発明によれば、キーを押し下げ時に押下げコード
がエンコーダから送出され、キーを離したときに開放コ
ードがエンコーダから送出され、シリアルデータ伝送を
することができるから、データラインの本数を少なくす
ることができる。
Further, according to the present invention, when the key is pressed down, the push-down code is transmitted from the encoder, and when the key is released, the release code is transmitted from the encoder, and serial data transmission can be performed, so that the number of data lines can be reduced. can do.

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

第1図は本発明の一実施例におけるキーボードのブロッ
ク図、第2図はこのキーボードと上位装置の動作を説明
するためのタイミング図、第3図は従来用いられたキー
ボードの動作を説明するためのタイミング図である。 1……キーマトリックス、2……センス回路、 3……エンコーダ、6……インターフェイス、 B……ブレークコード、M……メークコード。
FIG. 1 is a block diagram of a keyboard according to an embodiment of the present invention, FIG. 2 is a timing diagram for explaining the operation of this keyboard and a host device, and FIG. 3 is for explaining the operation of a conventional keyboard. FIG. 1 ... key matrix, 2 ... sense circuit, 3 ... encoder, 6 ... interface, B ... break code, M ... make code.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】キーマトリックスと、このキーマトリック
スにおける各キースイッチのオン・オフ状態を逐次検出
する検出回路と、前記検出回路がオン状態の開始を検出
した時点で発生しメイクを示すコードとキーの種類を示
すコードとから成る第1のコードと、キーがオン状態の
ときに前記第1のコードが発生した時点から所定時間後
に一定時間間隔で発生しブレイクを示すコードとキーの
種類を表すコードからなる第2のコードとを発生するエ
ンコーダと、前記エンコーダからの前記第1及び第2の
コードを送出するインターフェースとを有するキーボー
ドと、 前記インターフェースに接続され、前記第1及び第2の
コードの前記キーの種類を示すコードを解析しそのキー
がリピート対象のキーか否かを判定し、リピート対象の
キーの場合に前記第1及び第2のコードをキー入力があ
ったものとして処理し、リピート対象のキーでない場合
に前記第1のコードをキー入力があったものとして処理
する上位装置とを有するデータ入力装置
1. A key matrix, a detection circuit for sequentially detecting the on / off state of each key switch in the key matrix, a code and a key indicating a make generated when the detection circuit detects the start of the on state. And a code indicating a break that occurs at a fixed time interval after a predetermined time has elapsed from the time when the first code occurs when the key is in the ON state, and indicates the type of the key. A keyboard having an encoder for generating a second code consisting of a code, an interface for transmitting the first and second codes from the encoder, and the first and second codes connected to the interface If the key is a repeat target key, it is determined whether the key is a repeat target key by analyzing the code indicating the type of the key A data input device that processes the first and second codes as if there was a key input, and if the key is not a repeat target key, processes the first code as if there was a key input.
JP61037269A 1986-02-24 1986-02-24 Data input device by keyboard Expired - Fee Related JPH0782410B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61037269A JPH0782410B2 (en) 1986-02-24 1986-02-24 Data input device by keyboard

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61037269A JPH0782410B2 (en) 1986-02-24 1986-02-24 Data input device by keyboard

Publications (2)

Publication Number Publication Date
JPS62196718A JPS62196718A (en) 1987-08-31
JPH0782410B2 true JPH0782410B2 (en) 1995-09-06

Family

ID=12492952

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61037269A Expired - Fee Related JPH0782410B2 (en) 1986-02-24 1986-02-24 Data input device by keyboard

Country Status (1)

Country Link
JP (1) JPH0782410B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4706526B2 (en) * 2006-03-22 2011-06-22 富士電機システムズ株式会社 Input device and input method using keyboard

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58221429A (en) * 1982-06-16 1983-12-23 Toshiba Corp Method for controlling repeat in keyboard
JPS60146318A (en) * 1984-01-10 1985-08-02 Nec Corp Keyboard encoding system
JPH0646375B2 (en) * 1984-02-29 1994-06-15 株式会社ピ−エフユ− Keyboard controller

Also Published As

Publication number Publication date
JPS62196718A (en) 1987-08-31

Similar Documents

Publication Publication Date Title
US4628541A (en) Infra-red data communications system for coupling a battery powered data entry device to a microcomputer
KR100459742B1 (en) Method of sending key operation information, sending device and sending / receiving system
JP2001251333A (en) Communication system for wireless input device for computer provided with universal serial bus and its method
JPH0782410B2 (en) Data input device by keyboard
EP0286906B1 (en) Method for character code generation
JPS6180325A (en) Information input system of pointing device
EP0133474A2 (en) A data processing system including an infra-red coupled remote data entry device
US5412761A (en) Architecture and method for supporting enable/disable of printer panel switching by a host computer
US20080284727A1 (en) Input apparatus and information processing apparatus
WO2001098864A2 (en) Method and apparatus for enhancing printer to computer interface
JP3321955B2 (en) Keyboard device
JPH10124219A (en) Keyboard
JPH0258645B2 (en)
JP2002055764A (en) Wireless keyboard and infrared transmission code for pc remote controller
JPS6043525B2 (en) keyboard device
JP2568544B2 (en) Key input processing device
JPH04290111A (en) Keyboard
JPS6380315A (en) Terminal equipment
JPS6051725B2 (en) Keyboard with foot switch for shift key
JPH11316648A (en) Keyboard and computer system
JPS63147216A (en) Input device
JPH022734A (en) Hidden character string input control system
KR20000015017A (en) Apparatus and method of a special function operating for a keyboard
JPS6168625A (en) Keyboard device
JPH1153092A (en) Key input device and its input method, and recording medium where program allowing computer to implement same input method is recorded

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees