JPH05257581A - Keyboard controller and its control system - Google Patents

Keyboard controller and its control system

Info

Publication number
JPH05257581A
JPH05257581A JP4086666A JP8666692A JPH05257581A JP H05257581 A JPH05257581 A JP H05257581A JP 4086666 A JP4086666 A JP 4086666A JP 8666692 A JP8666692 A JP 8666692A JP H05257581 A JPH05257581 A JP H05257581A
Authority
JP
Japan
Prior art keywords
keyboard
command
initialization
state
unconnected
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
JP4086666A
Other languages
Japanese (ja)
Inventor
Takeshi Saito
剛 斎藤
Kazuhiro Yokogawa
和弘 横川
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.)
Kokusai Electric Corp
Original Assignee
Kokusai Electric 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 Kokusai Electric Corp filed Critical Kokusai Electric Corp
Priority to JP4086666A priority Critical patent/JPH05257581A/en
Publication of JPH05257581A publication Critical patent/JPH05257581A/en
Pending legal-status Critical Current

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

PURPOSE:To speedily restore a keyboard without increasing the load on a master CPU even when a KB connector is connected or unconnected by permitting the keyboard controller to perform initializing and recovering processing functions instead of the master CPU. CONSTITUTION:When a state monitoring means 33 discriminates that an unconnected keyboard is 'connected', a KB command issuing means 34 issues a KB initializing KB command from a KB initializing KB command buffer 37 to initialize a keyboard 2. A KB command before the 'unconnected' state is issued from a KB command buffer 38 to restore the keyboard 2.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、マスタCPUとスレー
ブであるキーボード間のインタフェースを取り持つキー
ボード・コントローラに係り、特に自動初期化、復元化
機能を有するキーボード・コントローラ及びその制御方
式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a keyboard controller having an interface between a master CPU and a keyboard which is a slave, and more particularly to a keyboard controller having automatic initialization and restoration functions and its control system.

【0002】[0002]

【従来の技術】従来のマスタCPU1と、キーボード
(KB)2と、キーボード・コントローラ(KBC)3
の接続関係について、図5のシステム構成ブロック図を
使って説明する。マスタCPU1がキーボード2の制御
を全て行うようになっており、また、キーボード・コン
トローラ3はキーボード2とマスタCPU1との間を取
り持つインタフェースとなっていた。
2. Description of the Related Art A conventional master CPU 1, a keyboard (KB) 2, and a keyboard controller (KBC) 3
5 will be described with reference to the system configuration block diagram of FIG. The master CPU 1 controls all of the keyboard 2, and the keyboard controller 3 serves as an interface between the keyboard 2 and the master CPU 1.

【0003】次に、キーボード・コントローラ(KB
C)の機能について説明する。第1に、マスタCPU1
がKB2へ発信するパラレルのキーボードコマンド(K
Bコマンド)をKBC3で一旦受信し、シリアルデータ
に変換してKB2へ送信するものである。
Next, a keyboard controller (KB
The function C) will be described. First, the master CPU1
Parallel keyboard command (K
The B command) is once received by the KBC 3, converted into serial data, and transmitted to the KB 2.

【0004】第2に、KB2がマスタCPU1に発信す
るシリアルのKBコマンドをKBC3で一旦受信し、パ
ラレルデータに変換してマスタCPU1へ送信するもの
である。
Second, the serial KB command transmitted from the KB2 to the master CPU 1 is once received by the KBC 3, converted into parallel data and transmitted to the master CPU 1.

【0005】第3に、KBC3の動作環境、例えば、K
B2−KBC3間の送受信でNG(通信不可)となった
時のリトライ回数の設定、またはKBコネクタ4が未接
続と判定する時間の設定等をマスタCPU1からコマン
ドにより設定するものである。
Third, the operating environment of KBC3, for example, K
The master CPU 1 sets, by a command, the number of retries when NG (communication is not possible) during transmission / reception between the B2 and KBC3, the time for determining that the KB connector 4 is not connected, and the like.

【0006】従来の処理の流れは、図5に示すように、
まず、KBC3がKBコネクタ4の未接続を認識した
後、未接続情報をコマンドによりマスタCPU1へ知ら
せる(矢印(1))。そして、マスタCPU1はコマン
ド受信によりKB2の未接続をKBC3に対して認識す
る(矢印(2))。次に、マスタCPU1は、KBC3
を介してKB2へ接続関係の復元化のためのKBコマン
ドを逐次発行するようになっていた(矢印(3))。
The conventional processing flow is as shown in FIG.
First, after the KBC 3 recognizes that the KB connector 4 has not been connected, the unconnected information is notified to the master CPU 1 by a command (arrow (1)). Then, the master CPU 1 recognizes the non-connection of KB2 to KBC3 by receiving the command (arrow (2)). Next, the master CPU 1 sets the KBC 3
The KB command for restoring the connection relation is sequentially issued to the KB2 via the arrow (arrow (3)).

【0007】[0007]

【発明が解決しようとする課題】しかしながら、上記従
来のキーボード・コントローラでは、マスタCPUの入
出力部のソフトが複雑化するとの問題点があり、また、
マスタCPUの負荷が大きい時に、キーボードの復元化
が速やかに行われず、迅速性に欠けるとの問題点があ
り、更に、キーボードコネクタ復元のための重大処理に
よりマスタCPUの負荷を大きく圧迫するとの問題点が
あった。
However, in the above-mentioned conventional keyboard controller, there is a problem that the software of the input / output unit of the master CPU becomes complicated, and
When the load of the master CPU is large, there is a problem that the keyboard is not restored promptly and lacks promptness. Furthermore, there is a problem that the load of the master CPU is greatly stressed by a serious process for restoring the keyboard connector. There was a point.

【0008】本発明は上記実情に鑑みて為されたもの
で、マスタCPUが行っていた初期化・復元化の処理機
能をキーボード・コントローラに行わせるようにし、キ
ーボードコネクタ未接続/接続による重大処理時でもマ
スタCPUの負荷は安定的で、キーボードの復帰が速や
かに行うことができるキーボード・コントローラ及びそ
の制御方式を提供することを目的とする。
The present invention has been made in view of the above-mentioned circumstances, and causes the keyboard controller to perform the initialization / restoration processing function that was performed by the master CPU, and performs a serious process by disconnecting / connecting the keyboard connector. It is an object of the present invention to provide a keyboard controller and a control method thereof, in which the load on the master CPU is stable even at any time and the keyboard can be quickly restored.

【0009】[0009]

【課題を解決するための手段】上記従来例の問題点を解
決するための請求項1記載の発明は、CPUとキーボー
ド間の接続制御を行うキーボード・コントローラにおい
て、前記CPUから送信されるキーボードコマンドを記
憶するKBコマンド記憶手段と、前記キーボードを初期
化する初期化キーボードコマンドを記憶する初期化KB
コマンド記憶手段と、前記キーボードとの接続状態を監
視する状態監視手段と、前記初期化キーボードコマンド
と前記キーボードコマンドを発行するKBコマンド発行
手段とを有することを特徴としている。
According to a first aspect of the present invention for solving the problems of the conventional example, a keyboard controller for controlling connection between a CPU and a keyboard is a keyboard command transmitted from the CPU. And an initialization KB for storing an initialization keyboard command for initializing the keyboard.
It is characterized by comprising a command storage means, a state monitoring means for monitoring the connection state with the keyboard, and a KB command issuing means for issuing the initialization keyboard command and the keyboard command.

【0010】上記従来例の問題点を解決するための請求
項2記載の発明は、請求項1記載のキーボード・コント
ローラの制御方式において、未接続状態のキーボードが
接続状態になったと状態監視手段が判断すると、初期化
KBコマンド記憶手段から初期化キーボードコマンドを
KBコマンド発行手段で前記キーボードに送信して前記
キーボードの初期化を行い、KBコマンド記憶手段から
キーボードコマンドをKBコマンド発行手段で送信して
前記キーボードを前記未接続状態前の状態に復元化する
ことを特徴としている。
According to a second aspect of the present invention for solving the above-mentioned problems of the conventional example, in the control system of the keyboard controller according to the first aspect, the state monitoring means indicates that the unconnected keyboard is in the connected state. When judged, the initialization keyboard command is transmitted from the initialization KB command storage means to the keyboard by the KB command issuing means to initialize the keyboard, and the keyboard command is transmitted from the KB command storage means by the KB command issuing means. It is characterized in that the keyboard is restored to the state before the unconnected state.

【0011】[0011]

【作用】請求項1記載の発明によれば、初期化KBコマ
ンド記憶手段でキーボードを初期化する初期化キーボー
ドコマンドを記憶し、KBコマンド記憶手段でCPUか
ら送信されるキーボードコマンドを記憶し、状態監視手
段でキーボードとの接続状態を監視し、KBコマンド発
行手段で初期化キーボードコマンドとキーボードコマン
ドとを発行するキーボード・コントローラとしているの
で、キーボードが未接続状態から接続状態になったと状
態監視手段が判断すると、KBコマンド発行手段から初
期化キーボードコマンドが発行され、更に未接続状態前
のキーボードコマンドが発行されるめ、キーボードの初
期化・復元化がキーボード・コントローラで行うことが
でき、CPUの負荷を低減できる。
According to the first aspect of the present invention, the initialization KB command storage means stores the initialization keyboard command for initializing the keyboard, and the KB command storage means stores the keyboard command transmitted from the CPU. Since the monitoring means monitors the connection state with the keyboard and the KB command issuing means issues the initialization keyboard command and the keyboard command, the state monitoring means indicates that the keyboard has changed from the unconnected state to the connected state. If judged, the KB command issuing means issues the initialization keyboard command, and further the keyboard command before the unconnected state is issued. Therefore, the keyboard initialization can be performed by the keyboard controller, and the CPU load Can be reduced.

【0012】請求項2記載の発明によれば、状態監視手
段で未接続状態のキーボードが接続状態になったと判断
されると、KBコマンド発行手段で初期化キーボードコ
マンドが発行されてキーボードの初期化を行い、更にK
Bコマンド発行手段で未接続状態前のキーボードコマン
ドを発行してキーボードの復元化を行う請求項1記載の
キーボード・コントローラの制御方式としているので、
キーボードの初期化・復元化がキーボード・コントロー
ラで行うことができ、CPUの負荷を低減できる。
According to the second aspect of the present invention, when the state monitoring means determines that the unconnected keyboard is in the connected state, the KB command issuing means issues an initialization keyboard command to initialize the keyboard. And then K
The control method of the keyboard controller according to claim 1, wherein the B command issuing means issues the keyboard command before the unconnected state to restore the keyboard.
The keyboard controller can initialize and restore the keyboard, and the load on the CPU can be reduced.

【0013】[0013]

【実施例】本発明の一実施例について図面を参照しなが
ら説明する。図1は、本発明の一実施例に係るキーボー
ド・コントローラを含むシステムの構成ブロック図であ
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a configuration block diagram of a system including a keyboard controller according to an embodiment of the present invention.

【0014】本実施例のキーボード・コントローラ(K
BC)3は、図1に示すように、コンピュータ本体5に
内蔵されており、コンピュータ本体5内のマスタCPU
1とパラレル・データ線により接続し、コンピュータ本
体5外部のキーボード(KB)2とシリアル・データ線
により接続している。シリアル・データ線にはキーボー
ド・コネクタ4が設けられ、キーボード2にはマウス等
の拡張デバイス6,7が接続されている。尚、マスタC
PU1からシリアル・データ線にキーボード・クロック
線が接続されるようになっている。
The keyboard controller (K
BC) 3 is built in the computer main body 5 as shown in FIG. 1 and is a master CPU in the computer main body 5.
1 and a parallel data line, and a keyboard (KB) 2 external to the computer main body 5 and a serial data line. A keyboard connector 4 is provided on the serial data line, and expansion devices 6 and 7 such as a mouse are connected to the keyboard 2. The master C
A keyboard clock line is connected to the serial data line from PU1.

【0015】尚、本実施例のKBC3に対応するKB2
は、多種のKBコマンドの入出力により動作、制御され
るキーボードを言う。すなわち、キーボードの作用は、
KBのキーの押下にかかわらず一定周期、或いはその周
期以内の間隔でKBコマンドの入出力を1本のデータ線
でシリアルに行い、またKBの状態設定(キークリック
やキャプスロックLED等)はKBコマンドの入力によ
り行い、更にKBの情報(KB種別番号、マウス等の拡
張デバイスの有無等)はKBコマンドの入力により、応
答としてKBコマンドが出力されるものでる。従って、
キーボードを正常に動作させるには数種のKBコマンド
をキーボードへ逐次入力するKB初期化手順が必要とな
る。
Note that KB2 corresponding to KBC3 of this embodiment.
Is a keyboard operated and controlled by inputting / outputting various KB commands. That is, the action of the keyboard is
Regardless of pressing the KB key, input / output of the KB command is performed serially with a single data line at a constant cycle or at intervals within that cycle, and the KB status setting (key click, caps lock LED, etc.) is KB. The command is input, and further, the KB information (KB type number, presence / absence of an expansion device such as a mouse, etc.) is output in response to the input of the KB command. Therefore,
In order to operate the keyboard normally, a KB initialization procedure for sequentially inputting several kinds of KB commands to the keyboard is required.

【0016】そして、本実施例のキーボード・コントロ
ーラ3は、具体的には図2に示すように、マスタCPU
1とのインタフェースを行うCPUインタフェース部3
1と、キーボード2とのインタフェースを行うKBイン
タフェース部32と、接続状態又はKBコマンドを監視
する状態監視手段33と、必要なKBコマンドを発行す
るKBコマンド発行手段34と、KBC3における初期
化・復元化実現するためのKBイニシャルカウンタバッ
ファ35と、初期化KBコマンド総数バッファ36と、
KB初期化KBコマンドバッファ37と、KBのステー
タス情報を記憶するKBコマンドバッファ38とから構
成されている。
The keyboard controller 3 of the present embodiment is specifically a master CPU as shown in FIG.
CPU interface section 3 for interfacing with 1
1, a KB interface section 32 for interfacing with the keyboard 2, a status monitoring means 33 for monitoring a connection status or a KB command, a KB command issuing means 34 for issuing a necessary KB command, and an initialization / restoration in the KBC 3. A KB initial counter buffer 35 for implementing the initialization, an initialization KB command total number buffer 36,
It is composed of a KB initialization KB command buffer 37 and a KB command buffer 38 for storing KB status information.

【0017】各構成部分を具体的に説明すると、状態監
視手段33は、KBコマンドバッファ38に保持された
キーボードのLED等のステータス情報に関するKBコ
マンドを監視し、また、KBコネクタ4の未接続/接続
をデータ線の一定時間内での変化の有無で認識して接続
状態を監視するものである。
Explaining each component in detail, the state monitoring means 33 monitors the KB command relating to the status information of the LED of the keyboard and the like held in the KB command buffer 38, and the KB connector 4 is not connected / not connected. The connection status is monitored by recognizing the connection based on whether or not the data line has changed within a certain time.

【0018】すなわち、一定時間、データ線をKBクロ
ックの半周期以内毎に監視し、変化がない場合は未接続
とし、変化がある場合は接続状態とする。このようにし
たのは、KBコマンドの入出力が行われている場合は、
データの先頭(スタートビットと呼ぶ)で必ずデータの
変化があるからである。状態監視手段33は、このスタ
ートビットをKBクロックの半周期以内毎に監視するも
のである。つまり、KBコネクタ4が未接続となった
時、接続されるまで(スタートビットが検出されるま
で)データ線を監視するようになっている。
That is, the data line is monitored every half cycle of the KB clock for a certain period of time, and when there is no change, it is unconnected, and when there is change, it is connected. This is because when the KB command is being input / output,
This is because there is always a change in the data at the beginning of the data (called the start bit). The state monitoring means 33 monitors the start bit every half cycle of the KB clock. That is, when the KB connector 4 is unconnected, the data line is monitored until it is connected (until the start bit is detected).

【0019】また、マスタCPU1からのコマンドによ
りこの監視を停止することもできるようになっている。
更に、本実施例のKBC3は、KBコネクタ4の未接続
と認識するための時間設定をいつでもマスタCPU1か
らのコマンドにより設定時間を変更できるようになって
いる。
The monitoring can be stopped by a command from the master CPU 1.
Further, the KBC 3 of the present embodiment can change the time setting for recognizing that the KB connector 4 is not connected at any time by a command from the master CPU 1.

【0020】KBコマンド発行手段34は、マスタCP
U1又はキーボード2に対して必要なKBコマンドを発
行する手段である。具体的には、KBコネクタ4が接続
から未接続になった時に、或いは未接続から接続になっ
た時に、その情報をKBコマンドによりマスタCPU1
へ知らせるものである。
The KB command issuing means 34 is a master CP.
It is means for issuing a necessary KB command to the U1 or the keyboard 2. Specifically, when the KB connector 4 changes from a connection to a non-connection, or when it changes from a non-connection to a connection, the information is transmitted to the master CPU 1 by a KB command.
To inform.

【0021】また、KBコマンド発行手段34は、KB
コネクタ4が未接続から接続に復帰した時、KBC3内
のKB初期化KBコマンドバッファ38に記憶されてい
るKB初期化のためのKBコマンドを順次発行するもの
である。更に、KBC3がキーボード2を初期化した後
に、KBを未接続前の状態に戻すために、KBC3のK
Bコマンドバッファ38に保持された状態(ステータ
ス)に関するKBコマンドを順次発行する。
Further, the KB command issuing means 34 uses the KB
When the connector 4 returns from unconnected to connected, KB commands for KB initialization stored in the KB initialization KB command buffer 38 in the KBC 3 are sequentially issued. Furthermore, after the KBC3 initializes the keyboard 2, the KB of the KBC3 is reset to return the KB to the state before being unconnected.
KB commands relating to the state held in the B command buffer 38 are sequentially issued.

【0022】更に、本実施例のKBコマンド発行手段3
4は、KBコネクタ4に種別の違うキーボード(例え
ば、違うキー配置、ドイツ語やフランス語等の多国籍K
B)に差し替えられた場合に、KBC3自身でKBコマ
ンドの入出力により、KB種別を判定し、マスタCPU
1に通知するようになっている。
Furthermore, the KB command issuing means 3 of this embodiment
4 is a keyboard of different type on the KB connector 4 (for example, different key arrangement, multinational K such as German or French)
When it is replaced with B), the KB type is determined by the KBC3 itself by inputting and outputting the KB command, and the master CPU
1 is notified.

【0023】KBイニシャルカウンタバッファ35は、
キーボード2を初期化するためのKBコマンドの残り数
がセットされるようになっている。従って、KB初期化
が終了済の場合は零である。KBコネクタ4が未接続か
ら接続になった時等の初期化が必要な時に、状態監視手
段33からの知らせによりKBイニシャルカウンタバッ
ファ35に初期化のためのKBコマンド総数がセットさ
れる。初期化KBコマンドを1つ送出する毎に、本カウ
ンタはデクレメントされるものである。
The KB initial counter buffer 35 is
The remaining number of KB commands for initializing the keyboard 2 is set. Therefore, it is zero when the KB initialization is completed. When initialization is required when the KB connector 4 is changed from unconnected to connected, the total number of KB commands for initialization is set in the KB initial counter buffer 35 by the notification from the state monitoring means 33. This counter is decremented each time one initialization KB command is sent.

【0024】初期化KBコマンド総数バッファ36は、
KB初期化のためのKBコマンドの総数が保持されてい
る。マスタCPU1からの要求により、キーボード2の
初期化のためのKBコマンドの設定処理時に、初期化K
Bコマンド総数バッファ36がセットされる。KBコネ
クタが未接続から接続になった時等の初期化が必要な時
に本バッファ36が参照され、KBイニシャルカウンタ
バッファ35にコマンド総数がセットされる。
The initialization KB command total number buffer 36 is
The total number of KB commands for initializing the KB is held. When the KB command for initializing the keyboard 2 is set by the request from the master CPU 1, the initialization K
The B command total number buffer 36 is set. The buffer 36 is referred to when initialization is required when the KB connector is changed from unconnected to connected, and the total number of commands is set in the KB initial counter buffer 35.

【0025】KB初期化KBコマンドバッファ37は、
マスタCPU1からの要求によりKB初期化KBコマン
ドの設定処理時にセットされる。つまり、KB初期化K
Bコマンドバッファ37には、KB初期化に必要なKB
コマンドがマスタCPU1から受け取ってバッファ内に
受け取った順に記憶するようになっており、KB初期化
コマンド送出時に参照されるようになっている。KB初
期化KBコマンドバッファ37の構成と参照部分の関係
は、図3の関係図に示すようになっている。
The KB initialization KB command buffer 37 is
It is set at the time of the setting process of the KB initialization KB command in response to a request from the master CPU 1. That is, KB initialization K
The B command buffer 37 has a KB required for KB initialization.
The commands are received from the master CPU 1 and stored in the buffer in the order in which they are received, and are referred to when the KB initialization command is sent. The relationship between the configuration of the KB initialization KB command buffer 37 and the reference portion is as shown in the relationship diagram of FIG.

【0026】KBコマンドバッファ38は、KB2のキ
ークリック又はキャップスクロックのLEDの状態(ス
テータス)等のKB動作中にその状態が変わる情報(ス
テータス情報)を一時的に保持記憶するバッファであ
る。KBコネクタ4が未接続から接続になった後に、K
B2を未接続前の状態に復元化するために、KBコマン
ドバッファ38からKBコマンド発行手段34によりK
BコマンドがKB2へ送出されるようになっている。
The KB command buffer 38 is a buffer for temporarily holding and storing information (status information) such as the key click of the KB2 or the status (status) of the LED of the caps clock that changes the status during the KB operation. After the KB connector 4 has changed from unconnected to K,
In order to restore B2 to the state before the unconnection, the KB command buffer 38 outputs the K command from the KB command buffer 38.
The B command is sent to KB2.

【0027】次に、本実施例のキーボード・コントロー
ラにおける接続/未接続処理について、図4のフローチ
ャート図を使って説明する。まず、マスタCPU1から
コマンドによりKBC3自体の初期化動作環境を設定す
る処理が為される(101)。そして、接続状態におい
て監視時間をクリア(102)し、KBコマンドのもれ
が生じないようKBクロックの半周期未満毎にKBコマ
ンドスタートビットをチェック(103)し、KBコマ
ンドのスタートビットであれば、KBコマンド受信処理
(104)へ移行し、KBコマンドのスタートビットで
なければ、マスタCPU1とKBC3との間の送受信処
理(108)へ移行する。
Next, the connection / non-connection processing in the keyboard controller of this embodiment will be described with reference to the flow chart of FIG. First, a process for setting the initialization operating environment of the KBC 3 itself is performed by a command from the master CPU 1 (101). Then, the monitoring time is cleared in the connected state (102), the KB command start bit is checked (103) every less than half a cycle of the KB clock so that the KB command is not leaked, and if it is the KB command start bit. , KB command reception processing (104), and if it is not the start bit of the KB command, it proceeds to transmission / reception processing (108) between the master CPU 1 and the KBC 3.

【0028】KB2からのKBコマンドをKBC3が受
信する受信処理(104)が為されると、KB2を初期
化するためのKBコマンドの残り数がセットされるKB
イニシャルカウンタバッファ35のカウンタの値を読み
(105)、カウンタ値が0であればKBコマンド送信
処理(106)へ、カウンタ値が0以外であればKBイ
ニシャルコマンド送信処理(カウンタデクリメント)
(107)へ移行する。そして、両処理が終了すると、
監視時間クリア処理(102)の前に戻る。
When the receiving process (104) in which the KBC3 receives the KB command from KB2 is performed, the remaining number of KB commands for initializing KB2 is set to KB.
The value of the counter of the initial counter buffer 35 is read (105). If the counter value is 0, the process goes to the KB command transmission process (106). If the counter value is not 0, the KB initial command transmission process (counter decrement).
Shift to (107). And when both processes are completed,
The procedure returns to before the monitoring time clearing process (102).

【0029】マスタCPU1とKBC3との間の送受信
処理(108)が為されると、監視時間がオーバしてい
るか判定(109)し、オーバしていなければ、KBコ
マンドスタービット判定(103)の前に戻り、オーバ
していれば未接続処理(110)を行う。これにより、
KB2とKBC3とは未接続状態となる。
When the transmission / reception processing (108) between the master CPU 1 and the KBC 3 is performed, it is determined whether the monitoring time is over (109). If not, the KB command star bit determination (103) is performed. Returning to the previous step, if it is over, unconnection processing (110) is performed. This allows
KB2 and KBC3 are not connected.

【0030】未接続処理(110)が為されると、KB
コマンドスタートビットを判定(111)し、スタート
ビットでなければその判定を繰り返し、スタートビット
であれば接続処理(112)を行い、KB2とKBC3
とを接続状態とする。そして、接続処理(112)が終
了すると、監視時間クリア(102)の前に戻るように
なる。
When the unconnection process (110) is performed, KB
The command start bit is determined (111), and if it is not the start bit, the determination is repeated. If it is the start bit, connection processing (112) is performed, and KB2 and KBC3
And are connected. Then, when the connection process (112) ends, the process returns to before the monitoring time clear (102).

【0031】このように、本実施例のキーボード・コン
トローラは、従来からのインタフェースとしての基本機
能の他に、KB2とKBC3との間に存在するKBコネ
クタ4の接続、未接続を監視することにより、KBコネ
クタ4が未接続から接続状態に戻った時、KB2の初期
化をKBC3自身で速やかに実施し、更に未接続前の元
の状態に復元化することができ、マスタCPU1の処理
をKBC3で実現させることにより、マスタCPU1の
負荷を低減できる効果がある。
As described above, the keyboard controller of the present embodiment monitors the connection / non-connection of the KB connector 4 existing between the KB2 and the KBC3 in addition to the basic function as the conventional interface. , When the KB connector 4 returns from the unconnected state to the connected state, the initialization of the KB2 can be promptly performed by the KBC3 itself, and the original state before the unconnected state can be restored, and the processing of the master CPU1 can be performed by the KBC3. The effect of reducing the load on the master CPU 1 is realized by implementing the above.

【0032】本実施例のキーボード・コントローラ及び
その制御方式によれば、マスタCPU1の負荷の低減
し、マスタCPU1の負荷に全く依存せず、速やかにキ
ーボードが初期化、復元化し、マスタCPU1上のソフ
トウェアの単純化でき、更にタイプの違うキーボードを
いつでも差し替え可能等の効果がある。
According to the keyboard controller and its control method of the present embodiment, the load on the master CPU 1 is reduced, the keyboard is promptly initialized and restored without depending on the load on the master CPU 1, and the master CPU 1 The software can be simplified, and the keyboards of different types can be replaced at any time.

【0033】[0033]

【発明の効果】請求項1記載の発明によれば、初期化K
Bコマンド記憶手段でキーボードを初期化する初期化キ
ーボードコマンドを記憶し、KBコマンド記憶手段でC
PUから送信されるキーボードコマンドを記憶し、状態
監視手段でキーボードとの接続状態を監視し、KBコマ
ンド発行手段で初期化キーボードコマンドとキーボード
コマンドとを発行するキーボード・コントローラとして
いるので、キーボードが未接続状態から接続状態になっ
たと状態監視手段が判断すると、KBコマンド発行手段
から初期化キーボードコマンドが発行され、更に未接続
状態前のキーボードコマンドが発行されるめ、キーボー
ドの初期化・復元化がキーボード・コントローラで行う
ことができ、CPUの負荷を低減できる効果がある。
According to the invention of claim 1, the initialization K
The B command storage means stores an initialization keyboard command for initializing the keyboard, and the KB command storage means C
Since the keyboard command transmitted from the PU is stored, the connection state with the keyboard is monitored by the state monitoring means, and the initialization keyboard command and the keyboard command are issued by the KB command issuing means, the keyboard controller is not used. When the state monitoring means determines that the connected state has changed to the connected state, the KB command issuing means issues an initialization keyboard command and further issues a keyboard command before the unconnected state, so that the keyboard is initialized and restored. This can be performed by the keyboard controller, which has the effect of reducing the load on the CPU.

【0034】請求項2記載の発明によれば、状態監視手
段で未接続状態のキーボードが接続状態になったと判断
されると、KBコマンド発行手段で初期化キーボードコ
マンドが発行されてキーボードの初期化を行い、更にK
Bコマンド発行手段で未接続状態前のキーボードコマン
ドを発行してキーボードの復元化を行う請求項1記載の
キーボード・コントローラの制御方式としているので、
キーボードの初期化・復元化がキーボード・コントロー
ラで行うことができ、CPUの負荷を低減できる効果が
ある。
According to the second aspect of the invention, when the status monitoring means determines that the unconnected keyboard is in the connected status, the KB command issuing means issues an initialization keyboard command to initialize the keyboard. And then K
The control method of the keyboard controller according to claim 1, wherein the B command issuing means issues the keyboard command before the unconnected state to restore the keyboard.
The keyboard controller can be used to initialize and restore the keyboard, which has the effect of reducing the load on the CPU.

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

【図1】本発明の一実施例に係るキーボード・コントロ
ーラを含むシステムの構成ブロック図である。
FIG. 1 is a configuration block diagram of a system including a keyboard controller according to an embodiment of the present invention.

【図2】本実施例のキーボード・コントローラの構成ブ
ロック図である。
FIG. 2 is a configuration block diagram of a keyboard controller according to the present embodiment.

【図3】KB初期化KBコマンドバッファの構成と参照
部分の関係図である。
FIG. 3 is a diagram showing a relationship between a KB initialization KB command buffer configuration and a reference portion.

【図4】キーボード・コントローラにおける接続/未接
続処理のフローチャート図である。
FIG. 4 is a flowchart of a connection / non-connection process in the keyboard controller.

【図5】従来のキーボード・コントローラを含むシステ
ムの構成ブロック図である。
FIG. 5 is a configuration block diagram of a system including a conventional keyboard controller.

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

1…マスタCPU、 2…キーボード、 3…キーボー
ド・コントローラ、4…KBコネクタ、 5…コンピュ
ータ本体、 6,7…拡張デバイス、 31…CPUイ
ンタフェース部、 32…KBインタフェース部、 3
3…状態監視手段、 34…KBコマンド発行手段、
35…KBイニシャルカウンタバッファ、 36…初期
化KBコマンド総数バッファ、 37…KB初期化KB
コマンドバッファ、 38…KBコマンドバッファ
DESCRIPTION OF SYMBOLS 1 ... Master CPU, 2 ... Keyboard, 3 ... Keyboard controller, 4 ... KB connector, 5 ... Computer main body, 6, 7 ... Expansion device, 31 ... CPU interface part, 32 ... KB interface part, 3
3 ... Status monitoring means, 34 ... KB command issuing means,
35 ... KB initial counter buffer, 36 ... Initialization KB command total number buffer, 37 ... KB initialization KB
Command buffer, 38 ... KB command buffer

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 CPUとキーボード間の接続制御を行う
キーボード・コントローラにおいて、前記CPUから送
信されるキーボードコマンドを記憶するKBコマンド記
憶手段と、前記キーボードを初期化する初期化キーボー
ドコマンドを記憶する初期化KBコマンド記憶手段と、
前記キーボードとの接続状態を監視する状態監視手段
と、前記初期化キーボードコマンドと前記キーボードコ
マンドを発行するKBコマンド発行手段とを有すること
を特徴とするキーボード・コントローラ。
1. A keyboard controller for controlling connection between a CPU and a keyboard, a KB command storing means for storing a keyboard command transmitted from the CPU, and an initial stage for storing an initialization keyboard command for initializing the keyboard. KB command storage means,
A keyboard controller comprising state monitoring means for monitoring the connection state with the keyboard, and KB command issuing means for issuing the initialization keyboard command and the keyboard command.
【請求項2】 未接続状態のキーボードが接続状態にな
ったと状態監視手段が判断すると、初期化KBコマンド
記憶手段から初期化キーボードコマンドをKBコマンド
発行手段で前記キーボードに送信して前記キーボードの
初期化を行い、KBコマンド記憶手段からキーボードコ
マンドをKBコマンド発行手段で送信して前記キーボー
ドを前記未接続状態前の状態に復元化することを特徴と
する請求項1記載のキーボード・コントローラの制御方
式。
2. When the status monitoring means determines that the unconnected keyboard is in the connected status, an initialization keyboard command is sent from the initialization KB command storage means to the keyboard by the KB command issuing means to initialize the keyboard. 2. The control method of the keyboard controller according to claim 1, wherein the keyboard command is converted into a state in which the keyboard command is transmitted from the KB command storage means by the KB command issuing means to restore the keyboard to the state before the unconnected state. ..
JP4086666A 1992-03-11 1992-03-11 Keyboard controller and its control system Pending JPH05257581A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4086666A JPH05257581A (en) 1992-03-11 1992-03-11 Keyboard controller and its control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4086666A JPH05257581A (en) 1992-03-11 1992-03-11 Keyboard controller and its control system

Publications (1)

Publication Number Publication Date
JPH05257581A true JPH05257581A (en) 1993-10-08

Family

ID=13893363

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4086666A Pending JPH05257581A (en) 1992-03-11 1992-03-11 Keyboard controller and its control system

Country Status (1)

Country Link
JP (1) JPH05257581A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE4208080A1 (en) * 1992-03-13 1993-09-16 Vulkan Harex Stahlfasertech METHOD AND CUTTING TOOL FOR PRODUCING STEEL SHEET FIBERS

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE4208080A1 (en) * 1992-03-13 1993-09-16 Vulkan Harex Stahlfasertech METHOD AND CUTTING TOOL FOR PRODUCING STEEL SHEET FIBERS

Similar Documents

Publication Publication Date Title
US6327653B1 (en) Technique for easily changing operating systems of a digital computer system using at least two pushbuttons
CN106557446B (en) Bus system
JP3814535B2 (en) Input device
US6173339B1 (en) System for monitoring execution of commands from a host for shared I/O devices by setting a time-out period based on control parameters sent by the host
KR920018567A (en) Data processing systems
JPH0682319B2 (en) Screen control device and method in computer system
JPH0792782B2 (en) Processing execution system
JP2963426B2 (en) Bus bridge device and transaction forward method
US5241646A (en) Systems for changing hardware parameters using sub-CPU for sensing specialized key inputs and main CPU for changes
JPH05257581A (en) Keyboard controller and its control system
US6308167B1 (en) Computer system using a queuing system and method for managing a queue and heterogeneous data structures
JP2856617B2 (en) Programmable controller
JP2848172B2 (en) I / O controller
JPH0248757A (en) Data communication system
JP3052595B2 (en) Computer redundancy control method
KR20020049096A (en) data restoring control device of the flash ROM in the information processing system
JP3236275B2 (en) Keyboard and mouse hot plug device
JPH07168740A (en) Watchdog method
KR100323988B1 (en) Keyboard controller and keyboard control system of personal computer for multi-user
KR100205110B1 (en) Keyboard control system
JP3014059B2 (en) Programmable controller
JPH0744276A (en) Information processor
JPH0473900B2 (en)
EP0335373A2 (en) Hardware status switching input control system
JP2924232B2 (en) Command check device