JPH04293113A - Key scan method and keyboard device - Google Patents

Key scan method and keyboard device

Info

Publication number
JPH04293113A
JPH04293113A JP3081794A JP8179491A JPH04293113A JP H04293113 A JPH04293113 A JP H04293113A JP 3081794 A JP3081794 A JP 3081794A JP 8179491 A JP8179491 A JP 8179491A JP H04293113 A JPH04293113 A JP H04293113A
Authority
JP
Japan
Prior art keywords
scan
input
key
line
input device
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
JP3081794A
Other languages
Japanese (ja)
Inventor
Takeo Sasaki
威夫 佐々木
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP3081794A priority Critical patent/JPH04293113A/en
Publication of JPH04293113A publication Critical patent/JPH04293113A/en
Pending legal-status Critical Current

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

PURPOSE:To prevent the deterioration of a key scan function even in the case plural input devices are connected by detecting the input device by reading a scan input, and executing a scan at every line with regard to its input device. CONSTITUTION:With regard to plural input devices 1, 2,...(n)-1, and (n) for constituting a key matrix, all scan outputs become active successively at every input device by a keyboard control controller, and by reading a scan input in this case, the inputted input device is detected, and with regard to its input device, a scan is executed at every line. That is, before scanning at every line each deuce of the input devices 1, 2,...(n)-1, and (n) for constituting the key matrix, all the key outputs become an active state at every device, and by confirming a key input in such a state, whether the input exists or not is confirmed. Accordingly, since a key scan is executed with regard to a keyboard unit whose key is depressed, the key is detected quickly.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明はキースキャン方法および
キーボード装置に係り、詳細には、複数の入力装置から
のキー入力をスキャンする方法および装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a key scanning method and keyboard device, and more particularly to a method and device for scanning key inputs from a plurality of input devices.

【0002】0002

【従来の技術】コンピュータやワードプロセッサ等の情
報処理装置には、一般にキーボードやタッチパネル等の
入力装置が接続され、これをオペレータが操作すること
により入力が行われている。このような入力装置で、例
えばキーボードユニットのキー押下を検出する場合、キ
ーマトリクスを構成している一方のポート(キースキャ
ン出力ポート)の1ラインづつを順番に、アクティブ(
“L”)にし、他方のポート(キースキャン入力ポート
)をリードすることにより、もし、入力ポートのうちの
少なくとも1ラインがアクティブ(“L”)となってい
るかどうかを知ることによっている。
2. Description of the Related Art Input devices such as keyboards and touch panels are generally connected to information processing devices such as computers and word processors, and input is performed by operating these devices by an operator. For example, when detecting a key press on a keyboard unit with such an input device, one line of one port (key scan output port) making up the key matrix is activated (activated) in turn.
By setting the input port to "L" and reading the other port (key scan input port), it is possible to know whether at least one line of the input ports is active ("L").

【0003】図7にキースキャンの行われるキーマトリ
クスの一般的な接続例を示す。キースキャン出力ポート
は通常インアクティブ(“H”)である。この状態でキ
ースイッチが押下されても、キースキャン入力ポートは
インアクティブ(“H”)である。また、キースキャン
出力ポートの1ライン(例えばA0)のみアクティブ(
“L”)にし、このライン上(キースイッチ09、12
、08、10、11、14、15、13)のいずれかの
キースイッチを押下した場合に、キースキャン入力ポー
トをリードすると、そのキースイッチの位置のラインの
みアクティブ(“L”)となる。例えば、キースイッチ
08を押下するとB2のラインのみアクティブ(“L”
)で他の入力ポートはインアクティブ(“H”)である
。以上の動作はコントローラで行われ、順次繰り返しな
がら押下されたキーの位置が検知される。
FIG. 7 shows a typical connection example of a key matrix in which key scanning is performed. The key scan output port is normally inactive (“H”). Even if the key switch is pressed in this state, the key scan input port remains inactive (“H”). Also, only one line (for example, A0) of the key scan output port is active (
“L”) and on this line (key switch 09, 12
, 08, 10, 11, 14, 15, 13) and the key scan input port is read, only the line at the position of that key switch becomes active (“L”). For example, when key switch 08 is pressed, only line B2 becomes active (“L”).
) and other input ports are inactive (“H”). The above operations are performed by the controller, and the positions of the pressed keys are detected while being repeated in sequence.

【0004】ところで、複数のキーボードユニット等が
組み合わされて1つの入力装置を構成し、これが情報処
理装置に接続される場合がある。このような構成の場合
、キースキャンは各々のキーボードユニットをある順番
にシーケンシャルに行っている。すなわち、1つの入力
装置について各ライン毎のキースキャン動作を1回終了
すると、次の入力装置のキースキャンを実行し、最後の
入力装置までスキャンした後、再び最初の入力装置にも
どってキースキャン動作を繰り返す。
[0004] Incidentally, there are cases in which a plurality of keyboard units and the like are combined to form one input device, which is connected to an information processing device. In such a configuration, key scanning is performed sequentially on each keyboard unit in a certain order. That is, when the key scan operation for each line for one input device is completed once, the key scan of the next input device is executed, and after scanning up to the last input device, it returns to the first input device and starts the key scan again. Repeat the action.

【0005】[0005]

【発明が解決しようとする課題】このように、複数入力
装置を接続した構成の場合、例えば1つの制御コントロ
ーラによって全てのキーボードユニットを制御すると、
その負荷の重さによっては、キーを押下してから検出す
るまでにタイムラグを生じる可能性がある。また、複数
のキーボードユニットがほどんど同時に押下された場合
、スキャンを終了した直後のキーを検知できない可能性
がある。そこで、本発明の目的は、複数の入力装置が接
続された場合でも、キースキャン機能の低下を防止でき
るキースキャン方法およびキーボード装置を提供するこ
とにある。
As described above, in the case of a configuration in which multiple input devices are connected, for example, if all the keyboard units are controlled by one controller,
Depending on the weight of the load, there may be a time lag between when a key is pressed and when it is detected. Furthermore, if multiple keyboard units are pressed almost simultaneously, the key immediately after scanning may not be detected. SUMMARY OF THE INVENTION Therefore, an object of the present invention is to provide a key scanning method and a keyboard device that can prevent the key scanning function from deteriorating even when a plurality of input devices are connected.

【0006】[0006]

【課題を解決するための手段】請求項1記載の発明では
、キーマトリクスを構成する複数の入力装置について、
各入力装置毎に順次スキャン出力の全てをアクティブに
し、このときのスキャン入力をリードすることにより入
力された入力装置を検出し、その入力装置について各ラ
イン毎にスキャンを行う。請求項2記載の発明ては、キ
ーマトリクスを構成しスキャン入力とスキャン出力を備
えた複数の入力装置と、これら複数の入力装置のそれぞ
れに対してスキャン出力をアクティブにしおよびライン
毎にアクティブにする出力アクティブ手段と、この出力
アクティブ手段でアクティブとなったスキャン出力に対
応するスキャン入力をリードするスキャン手段とをキー
ボード装置に具備させる。請求項3記載の発明では、キ
ーマトリクスを構成しスキャン入力とスキャン出力を備
えた複数の入力装置と、前記複数の入力装置の全てのス
キャン出力をアクティブにしおよびライン毎にアクティ
ブにする出力アクティブ手段と、この出力アクティブ手
段でアクティブとなったスキャン出力に対応するスキャ
ン入力をリードするスキャン手段と、前記出力アクティ
ブ手段により前記複数の入力装置の全てのスキャン出力
がアクティブな状態で入力のあった入力装置の順序を記
憶する入力順序記憶手段と、この入力順序記憶手段に記
憶された入力装置の順に前記スキャン手段でスキャン入
力をリードさせる制御手段とをキーボード装置に具備さ
せる。
[Means for Solving the Problem] In the invention as set forth in claim 1, regarding a plurality of input devices constituting a key matrix,
All the scan outputs are activated sequentially for each input device, and the input device is detected by reading the scan input at this time, and each line of the input device is scanned. The invention according to claim 2 provides a plurality of input devices that constitute a key matrix and are provided with scan input and scan output, and activate the scan output for each of the plurality of input devices and activate it for each line. A keyboard device is provided with an output active means and a scan means for reading a scan input corresponding to a scan output activated by the output active means. The invention according to claim 3 includes a plurality of input devices forming a key matrix and having scan inputs and scan outputs, and output activation means for activating all scan outputs of the plurality of input devices and activating them line by line. and scanning means for reading the scan input corresponding to the scan output activated by the output activation means, and an input that has been input while all the scan outputs of the plurality of input devices are activated by the output activation means. The keyboard device is provided with an input order storage means for storing the order of the devices, and a control means for causing the scanning means to read the scan input in the order of the input devices stored in the input order storage means.

【0007】[0007]

【作用】本発明では、キーマトリクスを構成した入力装
置の各装置をライン毎にスキャンする前に、各装置毎に
全てのキー出力をアクティブな状態にし、この状態での
キー入力を確認することによって入力があるか否か確認
する。
[Operation] In the present invention, before scanning each line of the input devices forming the key matrix, all key outputs are activated for each device, and key inputs in this state are confirmed. Check to see if there is any input.

【0008】[0008]

【実施例】以下、本発明の一実施例を図1ないし図6を
参照して詳細に説明する。図1はキーボード装置の構成
を表したものである。キーボード装置は、複数のキーボ
ードユニットやタッチパネルからなる入力装置1、2…
、nを備えている。これらの各入力装置はキースキャン
を制御するキーボード制御コントローラ6を介して図示
しないコンピュータ等のCPU(中央処理装置)のバス
ライン7と接続されている。図2は、本実施例で使用さ
れるキーボードユニットの一例における外観を表したも
のである。このキーボードユニットは、LCD(液晶デ
ィスプレイ)等の表示ユニット面上にタッチパネルを配
した項目キー部8、項目キーページ切替キー9、ファン
クションキー10、コントロールキー11、A/Nキー
ボード部を備えている。図3はキーマトリクスの構成を
表し、図4はキーボードのキー配置を表したものである
。図3のキーマトリクスに付した番号は、それぞれキー
ボードに配置されたキーの番号に対応している。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described in detail below with reference to FIGS. 1 to 6. FIG. 1 shows the configuration of a keyboard device. The keyboard device includes input devices 1, 2, which are composed of a plurality of keyboard units and touch panels...
, n. Each of these input devices is connected to a bus line 7 of a CPU (central processing unit) of a computer (not shown) via a keyboard controller 6 that controls key scanning. FIG. 2 shows the appearance of an example of the keyboard unit used in this embodiment. This keyboard unit includes an item key section 8 with a touch panel arranged on the surface of a display unit such as an LCD (liquid crystal display), an item key page switching key 9, a function key 10, a control key 11, and an A/N keyboard section. . FIG. 3 shows the structure of the key matrix, and FIG. 4 shows the key arrangement of the keyboard. The numbers assigned to the key matrix in FIG. 3 correspond to the numbers of the keys arranged on the keyboard, respectively.

【0009】次に、このように構成されたキーボード装
置によるキースキャン動作について図5により説明する
。いま、キーボード制御コントローラにはn個の入力装
置1〜nが接続されているものとする。キースキャンを
行う場合、入力装置番号Iを1に設定し(ステップ1)
、設定した入力装置Iに接続されたキースキャン出力ポ
ートについて全てのライン(A0〜A11)を同時にア
クティブ(“L”)とする(ステップ2)。このとき、
入力装置Iのキースキャン入力ポートをリードし(ステ
ップ3)、全てが“H”か否かを判断する(ステップ4
)。
Next, a key scanning operation by the keyboard device configured as described above will be explained with reference to FIG. It is now assumed that n input devices 1 to n are connected to the keyboard controller. When performing a key scan, set the input device number I to 1 (step 1)
, all lines (A0 to A11) of the key scan output port connected to the set input device I are made active (“L”) at the same time (step 2). At this time,
Reads the key scan input port of input device I (step 3) and determines whether all are “H” (step 4)
).

【0010】リードしたキースキャン入力ポートのいず
れかがアクティブ(“L”)である場合(ステップ4;
N)、すなわち、入力装置I内でいずれかのキースイッ
チが押下されている場合には、入力装置Iのキースキャ
ン出力ポートを1ラインづつアクティブ(“L”)する
ことによりキースキャンを行う(ステップ5)。入力装
置Iのキースキャン終了後、またはステップ4で全てが
インアクティブ(“H”)である場合(N)、Iがnで
あるか否か判断する(ステップ6)。
If any of the read key scan input ports is active (“L”) (step 4;
N), that is, if any key switch in the input device I is pressed, key scan is performed by activating (“L”) the key scan output port of the input device I one line at a time ( Step 5). After the key scan of the input device I is completed, or if all keys are inactive (“H”) in step 4 (N), it is determined whether I is n (step 6).

【0011】Iがnと等しくない場合(ステップ6;N
)、すなわち、最後の入力装置nまでキースキャンが終
了していない場合には、次の入力装置についてのキース
キャンを行うために、入力装置番号IをI+1に置き換
え(ステップ7)、ステップ2からステップ6を繰り返
す。一方、Iがnと等しい場合(ステップ6;Y)、す
なわち最後の入力装置nまでキースキャンが行われた場
合、終了キー等の押下によりキースキャンの終了が指示
されていなければ(ステップ8;N)、ステップ1に戻
り、最初の入力装置1からキースキャンを繰り返す。 終了が指示されていれば(ステップ8;Y)処理を終了
する。
If I is not equal to n (step 6; N
), that is, if the key scan has not been completed up to the last input device n, in order to perform the key scan for the next input device, replace the input device number I with I+1 (step 7), and proceed from step 2. Repeat step 6. On the other hand, if I is equal to n (Step 6; Y), that is, if the key scan has been performed up to the last input device n, if the end of the key scan is not instructed by pressing the end key, etc. (Step 8; N) Return to step 1 and repeat the key scan from the first input device 1. If termination is instructed (step 8; Y), the process is terminated.

【0012】次に第2の実施例について図6に基づき説
明する。なお、説明の簡単のため、キーマトリクス1〜
nについては簡略したものを図示している。この実施例
では、各キーボードユニットのキースキャン入力ポート
信号のそれぞれを反転させて多入力ORゲート21−1
、…、21−nに入力させる。各多入力ORゲート21
−1、…、21−nの出力は、再び反転されてそれぞれ
割り込み順序を判定する割込み順序判定回路22に入力
する。これにより、キーが押下された入力装置の順序を
正確に判断される。そして、各キーボードユニットのう
ちのどこが押下されたかを早く検出するために、先ず、
スキャン出力の全てをアクティブにして、スキャン入力
をリードする。
Next, a second embodiment will be explained based on FIG. 6. For ease of explanation, key matrix 1~
Regarding n, a simplified version is shown. In this embodiment, each of the key scan input port signals of each keyboard unit is inverted and the multi-input OR gate 21-1
, ..., 21-n. Each multi-input OR gate 21
The outputs of -1, . . . , 21-n are inverted again and input to an interrupt order determining circuit 22 that determines the interrupt order. This allows the order of the input devices in which the keys were pressed to be accurately determined. In order to quickly detect which part of each keyboard unit is pressed, first,
Activate all scan outputs and read scan inputs.

【0013】[0013]

【発明の効果】請求項1および請求項2記載の発明によ
れば、キーが押下されたキーボードユニットについて、
キースキャンを実行するために、キーの検知が早くなる
。いう効果がある。請求項3記載の発明によれば、キー
の押下された順番が検出されるので、同一の入力装置に
ついてキーが連打された場合でも押下を検知することが
できる。
According to the invention as claimed in claims 1 and 2, regarding the keyboard unit in which a key is pressed,
Because the key scan is performed, keys are detected faster. There is an effect. According to the third aspect of the present invention, since the order in which the keys are pressed is detected, it is possible to detect the presses even if keys are repeatedly pressed on the same input device.

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

【図1】本発明のキーボード装置における一実施例の構
成を示すブロック図である。
FIG. 1 is a block diagram showing the configuration of an embodiment of a keyboard device of the present invention.

【図2】実施例で使用される入力装置の外観図である。FIG. 2 is an external view of an input device used in the embodiment.

【図3】実施例で使用される入力装置のキーマトリクス
の構成図である。
FIG. 3 is a configuration diagram of a key matrix of an input device used in the embodiment.

【図4】実施例で使用されるキーボードのキー配置を表
した図である。
FIG. 4 is a diagram showing the key arrangement of a keyboard used in the embodiment.

【図5】実施例によるキースキャンの動作を示す流れ図
である。
FIG. 5 is a flowchart illustrating key scanning operations according to an embodiment.

【図6】他の実施例の構成を示す概略構成図である。FIG. 6 is a schematic configuration diagram showing the configuration of another embodiment.

【図7】キーマトリクスの接続状態を説明する説明図で
ある。
FIG. 7 is an explanatory diagram illustrating a connection state of a key matrix.

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

1、2、n−1、n…入力装置 6…キーボード制御コントローラ 7…バスライン 21−1、21−n…多入力ORゲート22…割込み順
序判定回路
1, 2, n-1, n...Input device 6...Keyboard control controller 7...Bus lines 21-1, 21-n...Multi-input OR gate 22...Interrupt order determination circuit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】  キーマトリクスを構成する複数の入力
装置について、各入力装置毎に順次スキャン出力の全て
をアクティブにし、このときのスキャン入力をリードす
ることにより入力された入力装置を検出し、その入力装
置について各ライン毎にスキャンを行うことを特徴とす
るキースキャン方法。
Claim 1: For a plurality of input devices constituting a key matrix, sequentially activate all scan outputs for each input device, read the scan input at this time to detect the input device, and detect the input device. A key scanning method characterized by scanning each line of an input device.
【請求項2】  キーマトリクスを構成しスキャン入力
とスキャン出力を備えた複数の入力装置と、これら複数
の入力装置のそれぞれに対してスキャン出力をアクティ
ブにしおよびライン毎にアクティブにする出力アクティ
ブ手段と、この出力アクティブ手段でアクティブとなっ
たスキャン出力に対応するスキャン入力をリードするス
キャン手段とを具備することを特徴とするキーボード装
置。
2. A plurality of input devices forming a key matrix and having scan inputs and scan outputs, and output activation means for activating scan output for each of the plurality of input devices and activating it line by line. , and scanning means for reading the scan input corresponding to the scan output activated by the output activation means.
【請求項3】  キーマトリクスを構成しスキャン入力
とスキャン出力を備えた複数の入力装置と、前記複数の
入力装置の全てのスキャン出力をアクティブにしおよび
ライン毎にアクティブにする出力アクティブ手段と、こ
の出力アクティブ手段でアクティブとなったスキャン出
力に対応するスキャン入力をリードするスキャン手段と
、前記出力アクティブ手段により前記複数の入力装置の
全てのスキャン出力がアクティブな状態で入力のあった
入力装置の順序を記憶する入力順序記憶手段と、この入
力順序記憶手段に記憶された入力装置の順に前記スキャ
ン手段でスキャン入力をリードさせる制御手段とを具備
することを特徴とするキーボード装置。
3. A plurality of input devices forming a key matrix and having scan inputs and scan outputs; output activation means for activating all scan outputs of the plurality of input devices and activating them line by line; a scanning means for reading scan inputs corresponding to scan outputs activated by the output activating means; and an order of input devices to which inputs have been made while all scan outputs of the plurality of input devices are active by the output activating means. 1. A keyboard device comprising: input order storage means for storing input order storage means; and control means for causing said scan means to lead scan inputs in the order of input devices stored in said input order storage means.
JP3081794A 1991-03-20 1991-03-20 Key scan method and keyboard device Pending JPH04293113A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3081794A JPH04293113A (en) 1991-03-20 1991-03-20 Key scan method and keyboard device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3081794A JPH04293113A (en) 1991-03-20 1991-03-20 Key scan method and keyboard device

Publications (1)

Publication Number Publication Date
JPH04293113A true JPH04293113A (en) 1992-10-16

Family

ID=13756399

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3081794A Pending JPH04293113A (en) 1991-03-20 1991-03-20 Key scan method and keyboard device

Country Status (1)

Country Link
JP (1) JPH04293113A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011095949A (en) * 2009-10-29 2011-05-12 Sanyo Electric Co Ltd Input device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011095949A (en) * 2009-10-29 2011-05-12 Sanyo Electric Co Ltd Input device

Similar Documents

Publication Publication Date Title
JP3243365B2 (en) Key input device
JPH06214699A (en) Keyboard device
JPS5932035A (en) Display and input device
US20030011572A1 (en) Key input device having braille input function
JPH04293113A (en) Key scan method and keyboard device
JPH04127310A (en) Character input system
JP2758617B2 (en) Keyboard for character string input
JPS63317817A (en) Keyboard control system
JPS6235933A (en) Input control system for cursor moving key
JPH08329338A (en) Cash register device
JPH0585927B2 (en)
US6452513B1 (en) Nodal point arrangement for keys on a keyboard
KR900002790B1 (en) Key's place changeable control method for keyboard
KR950012358B1 (en) Apparatus for the control of couplel another computer
JP2543256B2 (en) Input panel surface switching processing method
JPS63263515A (en) Cursor mobile key control system
JPH04342008A (en) Touch panel
JPH04349526A (en) Information terminal machine
JP2800145B2 (en) Item selection controller
JPH0346825B2 (en)
JPH0350617A (en) Intelligent keyboard
JPH05313802A (en) Input device
JPS6336328A (en) Testing system for keyboard
JPS63288311A (en) Data input method
JPH0713673A (en) Keyboard device