JPH01118917A - Keyboard control system - Google Patents

Keyboard control system

Info

Publication number
JPH01118917A
JPH01118917A JP62276043A JP27604387A JPH01118917A JP H01118917 A JPH01118917 A JP H01118917A JP 62276043 A JP62276043 A JP 62276043A JP 27604387 A JP27604387 A JP 27604387A JP H01118917 A JPH01118917 A JP H01118917A
Authority
JP
Japan
Prior art keywords
key
keys
keyboard
key code
code
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
JP62276043A
Other languages
Japanese (ja)
Inventor
Katsumi Amano
天野 勝美
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP62276043A priority Critical patent/JPH01118917A/en
Publication of JPH01118917A publication Critical patent/JPH01118917A/en
Pending legal-status Critical Current

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 [発明の目的コ (産業上の利用分野) 本発明はパーソナルコンピュータに用いて好適なキーボ
ード制御方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention (Field of Industrial Application) The present invention relates to a keyboard control method suitable for use in a personal computer.

(従来の技術) /fンコン等に付属のキーボードの制#は、パソコン本
体のCPUとは別のキーボード専用のCPU(キーボー
ドコントローラと呼ぶ)によって行なうのが、一般的で
ある。このキーボード内蔵のCPUは、押下されたキー
を検知し、キーコードを本体のCPU K送りている。
(Prior Art) A keyboard attached to a personal computer or the like is generally controlled by a CPU dedicated to the keyboard (referred to as a keyboard controller), which is separate from the CPU of the personal computer. The built-in CPU of this keyboard detects the pressed key and sends the key code to the main body's CPU K.

ところで、キーボードが持つキー数にはキーボードに許
されるサイズ制限よシ限度があシ、キーコードの種類を
増やすのは容易ではなかった。この問題を解消するの〈
従来から’ 5HIFT”キーを押しながら−A”キー
も押下した場合ではキーコードが変わる” CTRL 
’キー、″ALT”キーについても同様である。
By the way, there is a limit to the number of keys that a keyboard can have, as well as the size limit allowed for the keyboard, so it was not easy to increase the number of key code types. To solve this problem〈
Conventionally, if you press the '5HIFT' key and the -A' key, the key code will change.' CTRL
The same applies to the ``key'' and the ``ALT'' key.

しかしながらこの方法だとキーボードコント覧−ラ内部
にキーコードの変換テーブルを持たなければならず、キ
ーコードコントローラの内部メモリ容量を考えると実現
は難しい、事実、パソコン”t’ハ@5HIFT ’キ
ー、@CTRL ’キー、’ALT’キー″″A″キー
等が押下された時点で本体側のメインCPUに送シ、本
体側のプログラムにてキーコードを変換する場合が多い
However, with this method, it is necessary to have a key code conversion table inside the keyboard controller, which is difficult to implement considering the internal memory capacity of the key code controller. @CTRL When a key such as ``key'', ``ALT'' key, or ``A'' key is pressed, the key code is often sent to the main CPU on the main body side and converted by a program on the main body side.

(発明が解決しようとする問題点) 最近パソコンにもデュアル/4−′ソナリフ4機能が要
求され、O8を切替えることによシ日本語モードと英語
モードの2つで動作するものが出現した。この場合、日
本語モードと、英語モードのそれぞれのモードによって
意味の異なるキーがある。8g4図にこのf!i[パソ
コンのキーボード配fit−示した。第4図中、Fn/
カナキーがこれKあたる。
(Problems to be Solved by the Invention) Recently, personal computers have been required to have a dual/4-'Sonaliff 4 function, and by switching the O8, computers have appeared that can operate in two modes: Japanese mode and English mode. In this case, there are keys that have different meanings depending on the Japanese mode and the English mode. This f on the 8g4 diagram! i [Computer keyboard layout shown. In Figure 4, Fn/
Kanaki hits K for this.

日本語モードでこのキーを押すと、′カナ1キーとして
働き、キーボードからカナが入力できる。
When you press this key in Japanese mode, it works as the 'Kana 1 key, allowing you to input kana characters from the keyboard.

英語モードでは@Fn”キーとして働き、これを押した
状態で、PgUp/Pr5v、PgDp/Nrevキー
を押下すると、CPUの処理速度を切替えることができ
る。
In the English mode, it functions as the @Fn'' key, and by pressing the PgUp/Pr5v and PgDp/Nrev keys while pressing this key, the processing speed of the CPU can be switched.

この処理は英語モードでのみ有効であ夛、従って日本語
モードでは使用できない。即ち、日本語モードで@ p
ln#Φ−の機能を利用するためには、@カナ1キーと
@Fnmキーを分離する必要があるが、上述した理由に
よシ新しくキーを追加するのけ翔しh・ 本発明は上記事情に鑑みてなされたものであシ、キー数
を増やすことなくキーコード数の増加を実現するキーボ
ード制御方式を提供することを目的とする。
This process is only valid in English mode, so it cannot be used in Japanese mode. In other words, @p in Japanese mode.
In order to use the ln#Φ- function, it is necessary to separate the @kana 1 key and the @Fnm key, but for the reasons mentioned above, it is not necessary to add a new key. This was done in view of the current situation, and the object is to provide a keyboard control method that realizes an increase in the number of key codes without increasing the number of keys.

[発明の構成コ (問題点を解決するための手段と作用)新しくキーを追
加することが難しいにもかかわらず、機能をふやしたい
というニーズが強かったことに鑑み、本発明は2つのキ
ーを同時に押下することによって、あらたなキーコード
を発生し、キー数の不足を補うキーボードコントローラ
を提供するものである。このために、キーボードコント
ローラを、キーマトリクスをスキャンし、そのキーコー
ドを格納するバッファと、キーマトリクス上の複数キー
の同時入力を確認するフラグと、適当時間カウントする
ことによ〕キーの押下間隔を調べ同時入力か否かを判定
するために使用されるタイマとで構成し、フラグ及びタ
イマにて複数キーの同時押下を検出し、新規のキーコー
ドを発生したりデュアル・千−ソナリティ機能を持つ内
部のモードを切替えるものである。
[Configuration of the Invention (Means and Effects for Solving Problems) In view of the fact that there was a strong need to increase functionality even though it was difficult to add new keys, the present invention has developed two keys. The present invention provides a keyboard controller that generates a new key code by pressing keys simultaneously to compensate for a lack of keys. To do this, the keyboard controller is equipped with a buffer that scans the key matrix, stores the key code, a flag that confirms simultaneous input of multiple keys on the key matrix, and a key press interval by counting an appropriate amount of time. It consists of a timer that is used to check and determine whether or not simultaneous input is being performed, and the flag and timer can detect simultaneous pressing of multiple keys and generate a new key code or perform dual/thousand sonality functions. It is used to switch the internal mode.

このことによシ、キー数を増やすことなくキーコードの
種類を増やすことが出来る。
This allows the types of key codes to be increased without increasing the number of keys.

(実施例) 以下、図面を使用して本発明実施例について詳細に説明
する。第1図は本発明の実施例を示すブロック図である
1図において、1ノはキーボード上のキーマトリクス1
2をスキャンし、押下されたキーを検知するキーボード
コントローラであシ、1チツプマイクロプロセツサを内
蔵する。
(Example) Hereinafter, an example of the present invention will be described in detail using the drawings. FIG. 1 is a block diagram showing an embodiment of the present invention. In FIG. 1, 1 is a key matrix 1 on the keyboard.
It is a keyboard controller that scans 2 and detects pressed keys, and has a built-in 1-chip microprocessor.

12はキーマトリクスであシ、この上にキーが配置され
る。13はパソコン等全般の制御を行なうメインCPU
である。14はメインCPU 13が持つパス(CPU
ハス)でアリ、キーボードコントローラ11から発せら
れるキーコードはこれを経由してメインCPU 13へ
取シ込まれる。尚、121はスキャンライン、122は
リターンラインである。
12 is a key matrix, on which keys are arranged. 13 is the main CPU that controls the entire computer, etc.
It is. 14 is the main CPU 13 has a path (CPU
The key code issued from the keyboard controller 11 is input to the main CPU 13 via this key code. Note that 121 is a scan line, and 122 is a return line.

第2図は第1図に示すキーボードコントローラの実施例
を示すブロック図であシキーボードコントローラの内部
の状態を示している。図中31がキーボードコントロー
ラ、32は押下されたキーのキーコードを一時保管する
キーバッファ、33は2つのキーが同時に押下されたか
否かを判定するためのフラグ情報が格納されるバッファ
(BuFと呼ぶ)である、34は同時押下か否か判別す
るために設けられるタイ!である・ 第3図は2つのキーが同時に押された場合に新たなキー
コードを発生するプロセスを示したフローチャートであ
る。この例では上述したデ、アルノ9−ソナリティ機能
を持つパソコンの日本語モードで漢字キーとカナ/Fn
キーが同時(1,秒以内)に押された場合に、あたかも
英語モードの@ pn#キーが押下されたように@ p
n#キーのキーコードを発生するプロセスを示している
FIG. 2 is a block diagram showing an embodiment of the keyboard controller shown in FIG. 1, and shows the internal state of the keyboard controller. In the figure, 31 is a keyboard controller, 32 is a key buffer that temporarily stores the key code of a pressed key, and 33 is a buffer (BuF) that stores flag information for determining whether two keys are pressed at the same time. 34 is a tie provided to determine whether or not they are pressed simultaneously! FIG. 3 is a flowchart showing the process of generating a new key code when two keys are pressed simultaneously. In this example, we will use the Kanji key and Kana/Fn key in the Japanese mode of a PC with the above-mentioned De, Arno 9-Sonality function.
If the keys are pressed at the same time (within 1 second), the @ p
It shows the process of generating the key code for the n# key.

以下、本発明実施例の動作について詳細に説明する。上
述した様にデ、アルノ譬−ソナリテイ機能を持つ/4’
ソコンのカナ/Fnキーは日本語モードの時“カナ1キ
ーとして動作し、英語モードのときは@Fn“キーとし
て動作する。即ち、キーボードコントローラは日本語モ
ードの時は鳴カナνキー、英語モードの時は@ Fl、
 #キーの処理を行なう。ここでは日本語モードで@ 
Fn#キーの処1ボを行うため釦、カナ/Fnキーの隣
シにある漢字キー1!:同時に押下する場合について説
明する。
Hereinafter, the operation of the embodiment of the present invention will be explained in detail. As mentioned above, it has a sonality function./4'
The Kana/Fn key on the personal computer operates as the "Kana 1" key in Japanese mode, and as the @Fn key in English mode. In other words, the keyboard controller is the Nakana ν key when in Japanese mode, @Fl when in English mode,
# Perform key processing. Here in Japanese mode @
To perform the 1 button for the Fn # key, press the Kana/Kanji key 1 next to the Fn key! : The case of pressing at the same time will be explained.

カナ/Fnキーと漢字キーを同時”に押下すると、それ
ぞれのキーがキーボードコントローラ(11731)に
よって検知される。キーボードコントローラ(11/3
1)はシークンシャル&l理を行なうので、ここではカ
ナ/ Fnキー、漢字キーの項で検知される場合金力え
る。また@漢字1キーコードを861(、′カナ“キー
コード全87I(、” pn#キーコード’に88I(
と仮定する( Hij Haxd@ci−maAの略)
通常日本語モードでは86H,87)Iが発生し、88
)(は発生しない。同様に英語モードでは88Hしか発
生しないものとする。(”カナ”#″″″漢字英語では
不要のため。)第3図に示したフローチャートをみれば
わかるように、カナ/Fnキーが検知されると、バッフ
ァ33Vc#iまだ1漢字”キーコード86)(が入っ
ていなhので、バッフ 7331c″″カナ1キーコー
ド87Hf:セーブする1次の処理で、漢字キーが検知
されると、バッファ33には1カナ”キーコード87H
が入るので@ pln#キーコード88Hに変換し、キ
ーボードバッファ32にセーブする。
When you press the Kana/Fn key and the Kanji key at the same time, each key is detected by the keyboard controller (11731).Keyboard controller (11/3
1) performs sequential &l logic, so here, if it is detected in the terms of kana/Fn keys and kanji keys, it will be ignored. Also, @ Kanji 1 key code is 861 (, 'Kana' key code is 87 I (, 'pn# key code' is 88 I (
Assume that (abbreviation for Hij Haxd@ci-maA)
In normal Japanese mode, 86H, 87)I occur, and 88
) (does not occur. Similarly, it is assumed that only 88H occurs in English mode. (Because "Kana"#""" is unnecessary in Kanji English.) When the /Fn key is detected, the buffer 33Vc#i does not contain ``1 kanji'' key code 86) (h, so the buffer 7331c'''' kana 1 key code 87Hf: Save In the first process, the kanji key is When detected, the buffer 33 contains a 1-kana key code 87H.
is entered, so convert it to @pln# key code 88H and save it to the keyboard buffer 32.

これによって、日本語モードでカナ/Fnキーと漢字キ
ーが、同時に押されると、′カナ”キーコード87H,
@漢字”キーコード86Hは無視され、@″Fn1Fn
1キーコード88Hなシ、あたかも独立したF、キーが
押されたように処理される。
As a result, when the kana/Fn key and the kanji key are pressed at the same time in Japanese mode, the 'kana' key code 87H,
@Kanji” key code 86H is ignored, @”Fn1Fn
A single key code of 88H is processed as if an independent F key had been pressed.

以上のような方法によって「2つのキーを同時に押下し
た場合に、新たな別のキーが押下されたようにキーコー
ドを発生する」ことが可能となる。
The method described above makes it possible to "generate a key code when two keys are pressed at the same time as if a new, different key was pressed".

第2図に示したt、タイマは上述したキーの同時押下を
判定するものであシ、20〜50 m5ec程度にセッ
トすることが望まし込、あまシ長くすると、カナ/ F
nキーと漢字キーを別々に短い間隔で打った場合にも@
Fn”キーコードが発生してしまうので注意を要する。
The timer shown in Fig. 2 is used to determine if the above-mentioned keys are pressed at the same time, and it is desirable to set it to about 20 to 50 m5ec.
Even if you press the n key and the kanji key separately at short intervals, @
Fn” key code will be generated, so be careful.

以上述べたのは「2つのキーが同時に押下された時に2
つのキーのキーコードとは別の新しいキーj−ドを発生
する」プロセスで6るが、r2つのキーが同時に押下さ
れた時にキーボードコントローラのモードを切シかえる
」というような処理にも応用できる。この場合にはキー
コードを発生する必要はない0例えば、前述の例でカナ
/rnキーと漢字キーが押下された時に″Fn″モード
となシ、新しい処理をすることもできる。この場合Ir
l”Fn−キーコードを発生する必要はない。
What I mentioned above is ``When two keys are pressed at the same time,
This is a process that generates a new key code that is different from the key code of one key, but it can also be applied to processes such as switching the mode of the keyboard controller when two keys are pressed at the same time. . In this case, there is no need to generate a key code.For example, in the above example, when the kana/rn key and the kanji key are pressed, the "Fn" mode is activated, and a new process can be performed. In this case Ir
There is no need to generate a l”Fn-key code.

[発明の効果コ 以上説明の様に本発明に従えば、キー数が限定されてb
る・ぐソコン等で、キーを増やさずにキーを増やしたの
と同じ機能を得ることができる。
[Effects of the Invention] According to the present invention as explained above, the number of keys is limited.
You can get the same functionality as if you had more keys without adding more keys on your computer.

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

第1図は本発明の実施例を示すブロック図、第2図は第
1図に示すキーボードコントローラの実施例を示すブロ
ック図、第3図は本発明実施例の動作を示すフローチャ
ート、第4図は本発明にて使用されるキーボードのキー
配tRを示す図である。 11.31・・・キーボードコントローラ、12・・・
今一マトリクス、32・・・キーボードバッファ、33
・・・バッファ、34・・・タイマ。 出願人代理人 弁理士 鈴 江 武 彦第2図
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a block diagram showing an embodiment of the keyboard controller shown in FIG. 1, FIG. 3 is a flowchart showing the operation of the embodiment of the present invention, and FIG. FIG. 2 is a diagram showing a key layout tR of a keyboard used in the present invention. 11.31...Keyboard controller, 12...
Imaichi matrix, 32...Keyboard buffer, 33
...Buffer, 34...Timer. Applicant's agent Patent attorney Takehiko Suzue Figure 2

Claims (1)

【特許請求の範囲】[Claims] デュアルパーソナリティ機能を持つパーソナルコンピュ
ータのマイコン内蔵のキーボードコントローラであって
、キーマトリクスをスキャンしそのキーコードを格納す
るキーバッファと、キーマトリクス上の複数キーの同時
入力を確認するフラグと、適当時間カウントすることに
よりキーの押下間隔を調べ同時入力か否かを判定するた
めに使用されるタイマを有し、上記マイコンはフラグ及
びタイマにて複数キーの同時押下を検出することにより
新規のキーコードを発生したり内部のモードを切替える
ことを特徴とするキーボード制御方式。
A keyboard controller with a built-in microcomputer for a personal computer with a dual personality function, which includes a key buffer that scans the key matrix and stores the key code, a flag that confirms simultaneous input of multiple keys on the key matrix, and an appropriate time count. The microcontroller has a timer that is used to check the interval between key presses and determine whether or not they are input simultaneously.The above microcontroller generates a new key code by detecting simultaneous presses of multiple keys using a flag and timer. Keyboard control method characterized by generating and switching internal modes.
JP62276043A 1987-10-31 1987-10-31 Keyboard control system Pending JPH01118917A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62276043A JPH01118917A (en) 1987-10-31 1987-10-31 Keyboard control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62276043A JPH01118917A (en) 1987-10-31 1987-10-31 Keyboard control system

Publications (1)

Publication Number Publication Date
JPH01118917A true JPH01118917A (en) 1989-05-11

Family

ID=17563991

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62276043A Pending JPH01118917A (en) 1987-10-31 1987-10-31 Keyboard control system

Country Status (1)

Country Link
JP (1) JPH01118917A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03268123A (en) * 1990-03-19 1991-11-28 Alpine Electron Inc Decoding method for key operation

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03268123A (en) * 1990-03-19 1991-11-28 Alpine Electron Inc Decoding method for key operation

Similar Documents

Publication Publication Date Title
US5241646A (en) Systems for changing hardware parameters using sub-CPU for sensing specialized key inputs and main CPU for changes
US4804278A (en) Key input apparatus provided with a key input buffer
JPS62257524A (en) Display character output controller
JPH01118917A (en) Keyboard control system
JPS6180325A (en) Information input system of pointing device
JPH04367924A (en) Keyboard controller
KR100292014B1 (en) Apparatus for input of personal computer
JP2616628B2 (en) Key input device
JPH04354012A (en) Keyboard device and information processor equipped with keyboard device
JP2615851B2 (en) Key input device
JPS6235933A (en) Input control system for cursor moving key
JPS63263515A (en) Cursor mobile key control system
KR890005994Y1 (en) I / O controller
JP2705402B2 (en) LCD touch panel keyboard system
JPH0229031A (en) Keyboard with character string storage device
JPH0350617A (en) Intelligent keyboard
JPH01196619A (en) Key input control device
KR19980016513A (en) How to recognize keyboard double click on computer system
JPS63121918A (en) Coordinate input device
JPS63175916A (en) Data input system
JPH05100785A (en) Key input detecting circuit and semiconductor device for keyboard control
JPH0241061B2 (en) TOKEIENZANKINOOSONAETAKOGATADENSHIKEISANKI
JPS62121638U (en)
JPH01111333U (en)
JPS63268023A (en) word processor