JPH0546300A - Multiple input device connection controller - Google Patents
Multiple input device connection controllerInfo
- Publication number
- JPH0546300A JPH0546300A JP3201015A JP20101591A JPH0546300A JP H0546300 A JPH0546300 A JP H0546300A JP 3201015 A JP3201015 A JP 3201015A JP 20101591 A JP20101591 A JP 20101591A JP H0546300 A JPH0546300 A JP H0546300A
- Authority
- JP
- Japan
- Prior art keywords
- data
- scc
- skbc
- keyboard
- key
- 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
Links
Landscapes
- Input From Keyboards Or The Like (AREA)
Abstract
(57)【要約】
【目的】 本発明は、単一のKBCに従来の機能に加
え、テンキーパットと内部SCCの2つの機能を付加
し、複数のデータ入力デバイスを接続可能とする。
【構成】 電源投入時、どの入力デバイスを制御するか
を示す情報を供給する手段1と、前記供給された制御情
報を格納する手段3と、前記格納された制御情報に基づ
き、前記複数の入力デバイス9,5,11,17,13
を順次選択的に制御し、入力されたデータを処理する手
段3とを具備し、前記複数の入力デバイスを単一の制御
装置で接続制御する。
(57) [Summary] [Object] The present invention adds two functions of a numeric keypad and an internal SCC to a single KBC in addition to the conventional functions, and makes it possible to connect a plurality of data input devices. Constitution: means 1 for supplying information indicating which input device is controlled when the power is turned on, means 3 for storing the supplied control information, and the plurality of inputs based on the stored control information Devices 9, 5, 11, 17, 13
Means for sequentially and selectively controlling the input data and processing the input data, and connecting and controlling the plurality of input devices by a single control device.
Description
[発明の目的] [Object of the Invention]
【0001】[0001]
【産業上の利用分野】この発明は、複数の入力デバイス
をポータブルコンピュータにサポートするための接続制
御装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a connection control device for supporting a plurality of input devices in a portable computer.
【0002】[0002]
【従来の技術】従来、ラップトップ型やブック型等のポ
ータブルコンピュータの入力デバイスの標準システムの
構成は、キーボードを制御する2つのキーボードコント
ローラ(以下、KBCと称す)とキーコードを生成する
スキャンコントローラ(以下、SCCと称す)の2つで
ある。この種の装置としては例えば特開昭63−745
38号公報が知られている。この装置は図3に示すよう
に、符号1はシステムI/Fであり、ホストCPU、R
OMやRAM(図示省略)とインターフェースする。符
号19a,19b はKBCであり、SCCを制御する機能とシ
ステムとの通信を行う。KBCはシステム1から送られ
たコマンドに基づき、SCC7,21との通信を制御する。
符号7,21は内蔵/外部SCCであり、キートップ5,9 を
リードしキー入力に対応するキーコードをKBC19a,19
b に送信する。符号23は選択回路であり、システム1に
接続されるKBC19a,19b のうちいずれか一方を有効と
する。次に、図3を用いて外部/内部キーボードを選択
制御する従来の動作説明を行う。2. Description of the Related Art Conventionally, a standard system configuration of an input device of a portable computer such as a laptop type or a book type has two keyboard controllers (hereinafter referred to as KBC) for controlling a keyboard and a scan controller for generating a key code. (Hereinafter referred to as SCC). An apparatus of this type is, for example, Japanese Patent Laid-Open No. 63-745.
No. 38 publication is known. As shown in FIG. 3, this device has a system I / F 1 and a host CPU, R
It interfaces with OM and RAM (not shown). Reference numerals 19a and 19b denote KBCs, which perform a function of controlling the SCC and communication with the system. The KBC controls communication with the SCC 7, 21 based on the command sent from the system 1.
Reference numerals 7 and 21 are built-in / external SCCs. Key tops 5 and 9 are read and the key code corresponding to the key input is KBC19a and 19
send to b. Reference numeral 23 is a selection circuit that activates one of the KBCs 19a and 19b connected to the system 1. Next, a conventional operation for controlling the selection of the external / internal keyboard will be described with reference to FIG.
【0003】ポータブルコンピュータの電源投入時、C
PUはROMに格納された初期化プログラムを実行す
る。初期化プログラム実行後パーソナルコンピュータの
ハードウェアを順次初期化する。CPUはKBCの診断
及び初期設定やキーボード選択処理を実行する。まず、
選択回路23に対し外部SCC7を制御するKBC19b を
選択する。そして、KBC19b は外部SCC7から1つ
以上の送信データを待つ。ここで送信データが有れば外
部SCC7が接続されていると判断する。また、受信デ
ータが無い場合、選択回路23に対し内蔵SCC21を
制御するKBC19a を選択する。When the power of the portable computer is turned on, C
The PU executes the initialization program stored in the ROM. After executing the initialization program, the hardware of the personal computer is sequentially initialized. The CPU executes KBC diagnosis, initial setting, and keyboard selection processing. First,
The KBC 19b for controlling the external SCC 7 is selected for the selection circuit 23. Then, the KBC 19b waits for one or more transmission data from the external SCC 7. If there is transmission data here, it is determined that the external SCC 7 is connected. When there is no received data, the selection circuit 23 selects KBC19a for controlling the built-in SCC21.
【0004】この様な構成にした場合、KBCは単一の
SCCとの通信を行う機能しか持たなかった。その為、
標準装備している内部キーボードとオプションの外部キ
ーボードをサポートするためには2個のKBCを持つ必
要があった。その結果、システムを構成するハードウェ
アの部品数の増加に伴う、実装面積の増大やコストアッ
プを引き起こした。With such a structure, the KBC has only the function of communicating with a single SCC. For that reason,
It needed to have two KBCs to support the standard internal keyboard and an optional external keyboard. As a result, the mounting area and cost have increased as the number of hardware components constituting the system has increased.
【0005】[0005]
【発明が解決しようとする課題】本発明は、上記のよう
な従来技術の欠点を除去し、単一のKBCに従来の機能
に加え、テンキーパットと内部SCCの2つの機能を付
加することによって、複数のデータ入力デバイスを接続
可能とする複数の入力デバイス接続制御装置を提供する
ことを目的とする。 [発明の構成]SUMMARY OF THE INVENTION The present invention eliminates the above-mentioned drawbacks of the prior art and adds two functions, a numeric keypad and an internal SCC, to a single KBC in addition to the conventional functions. An object of the present invention is to provide a plurality of input device connection control devices capable of connecting a plurality of data input devices. [Constitution of Invention]
【0006】[0006]
【課題を解決するための手段】上記目的を達成するため
に、本発明においては、電源投入時複数の入力デバイス
を制御するための情報を供給する手段と、前記供給され
た制御情報を格納する手段と、前記格納された制御情報
に基づき、前記複数の入力デバイスを選択的に制御する
手段とを具備し、前記複数の入力デバイスを単一の制御
装置で接続制御した事を特徴とする複数の入力デバイス
接続制御装置を提供する。In order to achieve the above object, in the present invention, means for supplying information for controlling a plurality of input devices at the time of power-on, and storing the supplied control information. And a means for selectively controlling the plurality of input devices based on the stored control information, wherein the plurality of input devices are connected and controlled by a single controller. And an input device connection control device for the same.
【0007】[0007]
【作用】このように構成されたものに於いては、電源投
入時複数の入力デバイスを制御するための情報を供給さ
れる。供給された制御情報を格納しその制御情報に基づ
き入力デバイスを選択的に制御する。その結果、複数の
入力デバイスをサポートできる。With the above arrangement, information for controlling the plurality of input devices is supplied when the power is turned on. The supplied control information is stored and the input device is selectively controlled based on the control information. As a result, multiple input devices can be supported.
【0008】[0008]
【実施例】以下、図面を参照して本発明の実施例につい
て説明する。従来の技術で説明した符号と本実施例の同
一の符号の説明は省略する。図1は、本発明の一実施例
のシステム構成を示すブロック図である。Embodiments of the present invention will be described below with reference to the drawings. Descriptions of the same reference numerals as those of the conventional technique and those of the present embodiment will be omitted. FIG. 1 is a block diagram showing the system configuration of an embodiment of the present invention.
【0009】図において、符号3はシングルチップキー
ボードコントローラ(以下、SKBCと称す)であり、
従来の2個のマイコン(KBC、SCC)で処理してい
たキーボード制御を1個のマイコンで処理する。SKB
C3はシステム1からのコマンドを受信しコマンド処理
を実行する。また、外部SCC7から送られてくるキー
コード、或いは、マウス(以下、MOUと称す)13か
ら送られてくるマウスデータを受信しシステム1に送信
する。さらに、SKBC3は内部101キートップ5か
らキーステータスをリードしキーコードを生成する。S
KBC3は、例えば、三菱社製のシングルチップ8ビッ
トマイコン「M37452」である。SKBC3の機能
ブロックは、KBC基本部3a、SCC部13b、テンキー
入力部3c、SCC部23dとスイッチング部3eから構成さ
れる。SCC部13bは、英語モードの内部101キート
ップ5をサポートする。SCC部23dは、日本語モード
の84/101キートップ17をサポートする。SKBC
3の初期化時、システム1からの選択情報に基づき、キ
ーボード5、又は、キーボード17を使用するか否かを決
定する。日本語キーボード使用時、84/101キーの
切替えはコマンド入力により行われる。符号3eはSKB
C3内のスイッチング部であり、SKBC3の初期化時
選択情報に基づき、内部SCC部3b,d、又は、外部SC
C7を選択する。符号11は着脱可能なテンキーパットで
あり、SKBC3は常時テンキーパットの接続を監視し
接続時にはデータ送信要求を行いデータを受取る。符号
13はMOUであり、それ自体の状態変化、即ち、マウス
ボタンを押す、マウスを移動する等に対応するマウスデ
ータをKBC基本部3aに送信する。符号15は発光ダイオ
ード(以下、LEDと称す)であり、SKBC3にダイ
レクトに接続される。内部キーボード、又は、外部キー
ボードが選択されても同一のLED点灯表示を実行す
る。符号25は双方向バスラインであり、システム1とS
KBC3との通信のためのパラレル信号線である。符号
27a,27b は外部SCC、マウスのシリアルラインであ
り、SKBC3との通信のためのシリアル信号線であ
る。SKBC3の主な機能は以下の通りである。In the figure, reference numeral 3 is a single-chip keyboard controller (hereinafter referred to as SKBC),
Keyboard control that was conventionally performed by two microcomputers (KBC, SCC) is processed by one microcomputer. SKB
C3 receives the command from the system 1 and executes command processing. It also receives the key code sent from the external SCC 7 or the mouse data sent from the mouse (hereinafter referred to as MOU) 13 and sends it to the system 1. Further, the SKBC 3 reads the key status from the internal 101 key top 5 and generates a key code. S
The KBC3 is, for example, a single-chip 8-bit microcomputer "M37452" manufactured by Mitsubishi. The functional block of the SKBC 3 is composed of a KBC basic unit 3a, an SCC unit 13b, a ten-key input unit 3c, an SCC unit 23d and a switching unit 3e. The SCC unit 13b supports the internal 101 key top 5 in English mode. The SCC unit 23d supports the Japanese mode 84/101 key top 17. SKBC
3 is initialized, it is determined whether to use the keyboard 5 or the keyboard 17 based on the selection information from the system 1. When using a Japanese keyboard, the 84/101 key is switched by command input. Code 3e is SKB
It is a switching unit in C3, and based on the selection information at the time of initialization of SKBC3, internal SCC unit 3b, d or external SC
Select C7. Reference numeral 11 denotes a removable ten-key pad, and the SKBC 3 constantly monitors the connection of the ten-key pad and requests data transmission at the time of connection and receives data. Sign
Reference numeral 13 denotes a MOU, which transmits mouse data corresponding to a change in the state itself, that is, a mouse button being pressed, a mouse being moved, etc., to the KBC basic unit 3a. Reference numeral 15 is a light emitting diode (hereinafter referred to as LED), which is directly connected to the SKBC 3. Even if the internal keyboard or the external keyboard is selected, the same LED lighting display is executed. Reference numeral 25 is a bidirectional bus line, which is used for system 1 and S
It is a parallel signal line for communication with the KBC 3. Sign
27a and 27b are external SCC and mouse serial lines, and are serial signal lines for communication with the SKBC3. The main functions of SKBC3 are as follows.
【0010】(1) スキャンコード作成機能。キーが押圧
された時メイクコードを発生し、キーが離された時ブレ
イクコードを作成する。これら2つのスキャンコードを
キーコードバッファ(図示省略)に保存する。(1) Scan code creation function. A make code is generated when the key is pressed, and a break code is generated when the key is released. These two scan codes are stored in a key code buffer (not shown).
【0011】(2) テンキーパット制御機能。テンキーパ
ット11から送信されるスキャンコードを内部キーボード
5と同様にキーコードバッファに順次バッファリングす
る。テンキーパット11とのデータ通信方式は2線式の非
同期シリアル通信である。前記通信線29はグランド線
と、データ信号と電源供給とを多重化した線2本で構成
される。テンキーパット11との通信は、SKBC3側か
らのリクエスト信号によって開始される。SKBC3側
からはリクエスト信号しか送信できず、テンキーデータ
はテンキーパット11側から送信される。転送されるデー
タのフォーマットは、SKBC3からの1ビットのリク
エスト信号に対しテンキーパット11からデータがない場
合、1ビットデータ、又は、データがある場合10ビット
データを返信する。前記10ビットデータのフォーマット
は、キーデータの有無を示す第1ビット、8ビットのキ
ーコードデータを示す第2〜第9ビットデータと送信デ
ータの転送順序を示す第10ビットで構成される。各デ
ータには、スタートビットとストップビットが付加され
る。SCC部3b,dは内部101キートップ5のキーマト
リックスを一通りスキャンする毎にテンキーパットが接
続されているかを検査する。テンキーパットが接続され
ているかどうかは、リクエスト信号に対するテンキーパ
ット側からの第1ビットデータが返信するか否かで判定
する。即ち、SKBC3側のリクエスト信号に対する返
答が所定時間内にない場合、SKBC3はテンキーパッ
ト11が接続されていないと判断する。(2) Numeric keypad control function. Similarly to the internal keyboard 5, the scan codes transmitted from the ten-key pad 11 are sequentially buffered in the key code buffer. The data communication method with the numeric keypad 11 is 2-wire asynchronous serial communication. The communication line 29 is composed of a ground line and two lines in which a data signal and a power supply are multiplexed. Communication with the numeric keypad 11 is started by a request signal from the SKBC 3 side. Only the request signal can be transmitted from the SKBC 3 side, and the numeric keypad data is transmitted from the numeric keypad 11 side. Regarding the format of the data to be transferred, 1-bit data is returned from the numeric keypad 11 in response to a 1-bit request signal from the SKBC 3, or 10-bit data is returned if there is data. The 10-bit data format is composed of a first bit indicating the presence or absence of key data, second to ninth bit data indicating 8-bit key code data, and a tenth bit indicating the transfer order of transmission data. A start bit and a stop bit are added to each data. The SCC sections 3b and 3d inspect the key pad of the internal 101-key top 5 every time the key matrix is scanned, whether the ten-key pad is connected or not. Whether or not the ten-key pad is connected is determined by whether or not the first bit data from the ten-key pad side in response to the request signal is returned. That is, when the response to the request signal from the SKBC 3 side is not received within the predetermined time, the SKBC 3 determines that the numeric keypad 11 is not connected.
【0012】(3) コマンド制御機能。システム1より転
送されたKBC及びSCC制御コマンドの制御を行う。
内部キーボード使用時は、KBC基本部3aにてSCC制
御コマンドを処理する。コマンド制御は他の処理より最
優先で実行する。コマンドは、ホストシステムポート64
h 又は60h を通してホストよりSKBC3の入力バッフ
ァ(図示省略)に転送される。SKBC3の入力バッフ
ァに格納されたデータがホストシステムポートを介して
転送されたものかはSKBCステータスバッファ内の所
定フラッグの内容で判別する。フラッグ内容が論理レベ
ル1の場合システムポート64h への書込みを意味する。
ホストポート64h に転送された最初のデータを「KBC
制御コマンド」、又、ホストポート60h に転送された最
初のデータを「SCC制御コマンド」と呼ぶ。パラメー
タは制御コマンドに続いてホストポート60h に転送され
る。(3) Command control function. It controls the KBC and SCC control commands transferred from the system 1.
When using the internal keyboard, the KBC basic unit 3a processes SCC control commands. Command control is executed with the highest priority over other processes. Command the host system port 64
The data is transferred from the host to the input buffer (not shown) of SKBC3 through h or 60h. Whether or not the data stored in the input buffer of SKBC3 is transferred through the host system port is determined by the content of a predetermined flag in the SKBC status buffer. When the content of the flag is logic level 1, it means writing to the system port 64h.
The first data transferred to the host port 64h is “KBC
The control command "and the first data transferred to the host port 60h are called" SCC control command ". The parameters are transferred to host port 60h following the control command.
【0013】(4) スキャンコード転送機能。SCC部1
3b、又は、SCC部23dでバッファリングされたスキャ
ンコードをシステム1へ転送する。外部キーボード7使
用時は、外部キーボード7から送信されたスキャンコー
ドをシステム1へ転送する。前記スキャンコードは必要
に応じてアスキーコードにコード変換される。(4) Scan code transfer function. SCC section 1
3b or the scan code buffered by the SCC unit 23d is transferred to the system 1. When using the external keyboard 7, the scan code transmitted from the external keyboard 7 is transferred to the system 1. The scan code is converted into an ASCII code if necessary.
【0014】(5) 特殊コマンド制御機能。SCC部13
b、若しくは、SCC部23d、又は、外部SCC7は、
ある特定のキー操作を特別なスキャンコードに変換す
る。KBC基本部3aは、スキャンコードの種類を調べ特
殊コマンドの場合は該当する処理を実行する。例えば、
ファンクションキーによるホストCPUスピードの切替
え、表示デバイスの内部LCD又は外部CRTへの変更
や画面ストレッチ制御である。前記特殊コマンドはシス
テム1へは転送されない。(5) Special command control function. SCC part 13
b, or the SCC unit 23d or the external SCC 7 is
Converts certain keystrokes into special scan codes. The KBC basic unit 3a checks the type of scan code and executes the corresponding process in the case of a special command. For example,
The host CPU speed is switched by the function keys, the display device is changed to the internal LCD or the external CRT, and the screen stretch control is performed. The special command is not transferred to the system 1.
【0015】(6) マウス制御機能。SKBC3とマウス
13は、クロックラインとデータラインの2本の線27b を
用いて双方向クロック同期式シリアル通信を行う。SK
BC3がマウス13からのデータを受信可能な状態の場
合、クロックラインとデータラインを論理レベル“1”
にセットする。SKBC3側の入出力端子とマウス側13
の入出力端子は、オープンコレクタ出力で構成される。
その結果、SKBC3側及びマウス13側の両方から前記
ライン線を論理レベル“0”にセットできる。SKBC
3がマウス13と通信を行う時、マウス13側からデータク
ロックが供給される。SKBC3がマウス13と通信を行
わない時、クロックラインとデータラインが共に論理レ
ベル“1”の場合SKBC3は受信可能状態である。ま
た、クロックラインが論理レベル“0”でデータライン
が論理レベル“1”の場合SKBC3は受信不可能であ
る。また、さらに、クロックラインが論理レベル“1”
でデータラインが論理レベル“0”の場合SKBC3は
送信可能である。前記クロックラインとデータラインの
論理レベルの条件をポーリング条件と呼ぶ。マウスとの
送信データ形式は、内部/外部SCCとのデータ形式と
同様の11ビット構成である。データフォーマットは、
1ビットのスタートビット、8ビットのデータビット、
1ビットのパリテイビット、1ビットのストップビット
である。SKBC3からマウス13へデータを送信する場
合、SKBC3はデータラインを論理レベル“0”にセ
ットしクロックラインを所定時間論理レベル“0”にセ
ットする。SKBC3はクロックラインを所定時間論理
レベル“0”にセットした後、クロックラインのみ論理
レベル“1”にセットしマウス13から送られてくるクロ
ックを待つ。SKBC3はマウス13から送信されたクロ
ック信号に同期してデータを送出する。マウス13がスト
ップビットを送出した直後にデータラインの論理レベル
を“0”にセットしたならば、SKBC3はデータ送信
が正常に終了したと判断する。逆に、SKBC3がマウ
ス13からのデータを受信する場合、マウス13はデータを
データラインとクロックラインが共に論理レベル“1”
である時送信する。SKBC3はスタートビットを検出
し引き続き送られてくるデータをクロックと同期しなが
ら取込む。SKBC3はデータを受信後クロックライン
の論理レベルを“0”、データラインの論理レベルを
“1”にセットし受信したデータ処理を行う。図2と図
3は、本発明の複数の入力デバイスを制御する手順を示
したフローチャートである。以下、図1、図2と図3を
用いて本発明の動作手順を説明する。(6) Mouse control function. SKBC3 and mouse
The line 13 performs bidirectional clock synchronous serial communication using the two lines 27b of the clock line and the data line. SK
When the BC3 is ready to receive the data from the mouse 13, the clock line and the data line are set to the logic level "1".
Set to. Input / output terminals of SKBC3 side and mouse side 13
The input and output terminals of are configured with open collector outputs.
As a result, the line line can be set to the logic level "0" from both the SKBC3 side and the mouse 13 side. SKBC
When 3 communicates with the mouse 13, a data clock is supplied from the mouse 13 side. When the SKBC 3 is not communicating with the mouse 13, both the clock line and the data line are at the logic level "1", the SKBC 3 is in the receivable state. If the clock line is at the logic level "0" and the data line is at the logic level "1", the SKBC3 cannot receive. In addition, the clock line has a logic level "1".
When the data line is at the logic level "0", the SKBC3 can transmit. The condition of the logic level of the clock line and the data line is called a polling condition. The transmission data format with the mouse has the same 11-bit configuration as the data format with the internal / external SCC. The data format is
1 start bit, 8 data bits,
It is a parity bit of 1 bit and a stop bit of 1 bit. When transmitting data from SKBC3 to mouse 13, SKBC3 sets the data line to the logic level "0" and the clock line to the logic level "0" for a predetermined time. The SKBC 3 sets the clock line to the logic level "0" for a predetermined time, sets only the clock line to the logic level "1", and waits for the clock sent from the mouse 13. The SKBC 3 sends out data in synchronization with the clock signal sent from the mouse 13. If the logic level of the data line is set to "0" immediately after the mouse 13 sends out the stop bit, the SKBC 3 judges that the data transmission is normally completed. On the contrary, when the SKBC 3 receives the data from the mouse 13, the mouse 13 sends the data to both the data line and the clock line at the logic level "1".
Send when The SKBC 3 detects the start bit and takes in the data that is continuously sent in synchronization with the clock. After receiving the data, the SKBC 3 sets the logic level of the clock line to "0" and the logic level of the data line to "1" to process the received data. 2 and 3 are flowcharts showing a procedure for controlling a plurality of input devices according to the present invention. The operation procedure of the present invention will be described below with reference to FIGS. 1, 2 and 3.
【0016】ポータブルコンピュータの電源投入時、ホ
ストCPUはSKBC3に対して初期化コマンド“AA
h”を発行する。SKBC3はコマンド“AAh”を受
信すると順次KBC基本部3aの初期化を実行する。初期
化の内容は次の通りである。LEDの全て1回点滅させ
る。ホストCPUからのキーボード割込みを禁止する。
キーボード及びマウスとのシリアル通信を禁止する。ホ
ストCPUへの割込みを禁止する。初期化が正常に終了
後SKBC3はホストCPUに対し終了コード“55
h”を送信する。次に、KBC基本部3a初期化処理終了
後、ホストCPUはSKBC3に対し外部キーボード自
動認識機能を許可するコマンドを発行する。そして、ホ
ストCPUはSKBC3に対してSCC初期化コマンド
“FFh”を発行する。SKBC3は前記SCC初期化
コマンドを受信すると外部SCC7へコマンド“FF
h”を送信する。SKBC3からのコマンド送信要求に
対して外部SCC7から所定時間内にクロックが返って
来た場合SKBC3は外部キーボード有りと判断する。
前記所定時間内にクロックが返って来なかった場合SK
BC3は外部キーボード無しと判断する。本実施例で
は、外部キーボードが接続されていない場合を考える。
次に、ホストCPUはSKBC3に対しSCC部1を選
択制御するためのコマンドを発行する。SKBC3は前
記コマンドを受信するとスイッチング部3eを制御しKB
C3aとSCC部3b,dとを接続する。同様に、SKBC3
は内部SCCに対しSCC初期化コマンド“FFh”を
発行する。SCC初期化の内容は、キーコードバッファ
のクリア、リピートパラメータの初期化、キーコードモ
ードの設定である。初期化が正常に終了後SKBC3は
ホストCPUに対し終了コマンド“AAh”を送信する
(ステップ100)。When the power of the portable computer is turned on, the host CPU sends an initialization command "AA" to the SKBC3.
When the command "AAh" is received, the SKBC 3 sequentially initializes the KBC basic unit 3a. The contents of the initialization are as follows: All LEDs are blinked once. Disable keyboard interrupts.
Prohibits serial communication with keyboard and mouse. Disable interrupts to the host CPU. After the initialization is completed normally, SKBC3 sends the end code "55" to the host CPU.
Then, the host CPU issues a command to the SKBC3 to allow the external keyboard automatic recognition function after the initialization of the KBC basic unit 3a. Then, the host CPU initializes the SKBC3 to the SCC. When the SKBC 3 receives the SCC initialization command, it issues a command “FFh” to the external SCC 7.
h ”is transmitted. When the clock is returned from the external SCC 7 within a predetermined time in response to the command transmission request from the SKBC 3, the SKBC 3 determines that an external keyboard is present.
If the clock does not return within the specified time SK
BC3 determines that there is no external keyboard. In this embodiment, consider a case where an external keyboard is not connected.
Next, the host CPU issues a command to the SKBC 3 to selectively control the SCC unit 1. When the SKBC 3 receives the command, it controls the switching unit 3e to control the KB.
The C3a and the SCC section 3b, d are connected. Similarly, SKBC3
Issues an SCC initialization command "FFh" to the internal SCC. The contents of SCC initialization include clearing the key code buffer, initializing repeat parameters, and setting the key code mode. After the initialization is normally completed, the SKBC 3 sends an end command "AAh" to the host CPU (step 100).
【0017】SKBC3の初期設定終了後、SKBC3
はキーボード制御可能状態になる。SKBC3はリピー
トカウンタ値がゼロになったか判断する(ステップ11
0)。前記ステップ110でリピートタイミングである
と判断されるならば、SCC部1は押圧されたキーのメ
イクコードを指定リピート間隔置きに繰返し作成する。
また、前記キーを離した時SCC部1はブレイクコード
を作成する(ステップ120)。前記ステップ110で
リピートカウンタの値がゼロでないと判断されるなら
ば、本プロセスルーチンはステップ130へジャンプす
る。After the initial setting of SKBC3 is completed, SKBC3
Becomes the keyboard controllable state. SKBC3 determines whether the repeat counter value has become zero (step 11).
0). If it is determined in step 110 that it is the repeat timing, the SCC unit 1 repeatedly creates the make code of the pressed key at specified repeat intervals.
When the key is released, the SCC section 1 creates a break code (step 120). If it is determined in step 110 that the repeat counter value is not zero, the process routine jumps to step 130.
【0018】SKBC3は16ビットタイマー(図示省
略)を3つ内蔵する。このタイマーの内1つを内部スキ
ャンタイミングのためのタイマーカウンタ1として割付
ける。前記タイマーカウンタ1が所定時間をカウント後
SCC1は内部キートップ5のキーボードマトリックス
をスキャンする。所定のキーが押圧されているならばS
CC1はスキャンコード(メイクコード及びブレイクコ
ード)を発生する。スキャンコード発生時、キーボード
のチャタリングを考慮しリターンラインの2度読み込み
を行う。SCC1は押圧されたキーのスキャンコードデ
ータを確実にシステム1に送付するために出力データの
バッファリングを行う。キーコードのためのバッファ
は、32バイトのFirst-In-First-Out(FIFO)バッファであ
る(ステップ140〜150)。ステップ130で内部
スキャンタイミングでないと判断されるならば、本プロ
セスルーチンはステップ160へジャンプする。The SKBC 3 incorporates three 16-bit timers (not shown). One of the timers is assigned as the timer counter 1 for the internal scan timing. After the timer counter 1 counts a predetermined time, the SCC 1 scans the keyboard matrix of the internal key tops 5. S if the specified key is pressed
CC1 generates a scan code (make code and break code). When the scan code occurs, the return line is read twice considering the chattering of the keyboard. The SCC 1 buffers the output data in order to reliably send the scan code data of the pressed key to the system 1. The buffer for the key code is a 32-byte First-In-First-Out (FIFO) buffer (steps 140-150). If step 130 determines that it is not the internal scan timing, the process routine jumps to step 160.
【0019】ステップ160ではSKBC3からテンキ
ーパット11へリクエスト信号を送信しテンキーパット11
からの入力データかあるか判断される。前記ステップ1
60でテンキーパットからのキー入力データがあると判
断される場合前記キー入力データを前記バッファにバッ
ファリングする(ステップ170)。At step 160, a request signal is transmitted from the SKBC 3 to the ten-key pad 11 and the ten-key pad 11 is sent.
It is determined whether there is input data from. Step 1
If it is determined at 60 that there is key input data from the numeric keypad, the key input data is buffered in the buffer (step 170).
【0020】ステップ180ではホストCPUからの入
力が有るか、即ち、KBC基本部3aのインプットバッフ
ァ(IBF=1 ?)にデータがあるか判断される。即、前記
ステップ180ではSCC部1との通信を禁止し、SK
BC3ステータスバッファのF1フラッグ状態でコマン
ド入力か判断する。F1=1ならばコマンドが入力され
たと判断し、SKBC3はコマンドを読込む。そして、
読込まれたコマンドに基づき各々の処理が開始される。
前記ステップ180での入力がパラメータ又は送信デー
タならば、本プロセスルーチンはステップ200へ進
む。そして、ホストCPUより転送されたパラメータに
従ってKBC基本部3aの制御およびKBC基本部の制御
バッファの更新やホストからのデータをSCC部3bへの
送信データとして処理を行う(ステップ200)。In step 180, it is determined whether there is an input from the host CPU, that is, whether there is data in the input buffer (IBF = 1?) Of the KBC basic unit 3a. Immediately, in step 180, communication with the SCC unit 1 is prohibited, and SK
It is determined whether a command is input in the F1 flag state of the BC3 status buffer. If F1 = 1, it is determined that a command has been input, and SKBC3 reads the command. And
Each processing is started based on the read command.
If the input at step 180 is a parameter or transmission data, the process routine proceeds to step 200. Then, according to the parameters transferred from the host CPU, the control of the KBC basic unit 3a, the update of the control buffer of the KBC basic unit, and the data from the host are processed as the transmission data to the SCC unit 3b (step 200).
【0021】ステップ210でSKBC3はMOU13か
らのデータが有りかマウスクロックとマウスデータ通信
線のポーリング条件で判断する。SKBC3はマウスク
ロック線の論理レベルが“1”でマウスデータ線の論理
レベルが“0”の場合MOU13からのデータ送信要求と
判断しマウスデータ処理を行う。マウスクロック線とマ
ウスデータ線の論理レベルが共に“1”の場合MOU13
はマウス線と同期をとりながらデータをSKBC3へ送
信する(ステップ220)。At step 210, the SKBC 3 determines whether there is data from the MOU 13 based on the mouse clock and the polling condition of the mouse data communication line. When the logic level of the mouse clock line is "1" and the logic level of the mouse data line is "0", the SKBC3 determines that it is a data transmission request from the MOU 13 and performs mouse data processing. When the logic levels of the mouse clock line and mouse data line are both "1" MOU13
Transmits data to SKBC3 in synchronization with the mouse line (step 220).
【0022】次に、SKBC3はキーボードバッファに
データが有るか判断する。キーボードバッファにデータ
有りと判断されるならば、SKBC3はSCC部3bのキ
ーコードバッファからキーコードセット(スキャンコー
ド)を読出す。そして、SKBC3はKBC基本部3aの
制御バッファーの所定ビットに設定されたデータ変換モ
ード条件に基づき、キーコードセットをキーコードモー
ドにアスキー変換する。変換後KBC基本部3aはSKB
C出力バッファに前記キーコードモードを書込む。SK
BC3が出力バッファに前記キーコードモードを書込む
とSKBCステータスバッファのOBF ビットを論理レベ
ル“1”にセットする。前記出力バッファに書込まれた
データがMOU13からのデータならば、SKBC3はS
KBCステータスバッファのMOBFビットに論理レベル
“1”をする。そして、SKBC3は前記SKBCステ
ータスバッファのMOBFビットの論理レベルの状態に基づ
き、ホストCPUに対し割込みを行う。即ち、前記MOBF
ビットが論理レベル“0”の場合SKBC3はキーボー
ド割込みを実行する。また、前記MOBFビットが論理レベ
ル“1”の場合SKBC3はマウス割込みを実行する。
割込み実行後ホストCPUは前記SKBC出力バッファ
に書込まれたデータを読込む。SKBC出力バッファが
空になるとSKBCステータスバッファのOBF とMOBFビ
ットの値をゼロクリアする(ステップ230〜24
0)。前記ステップ240終了後、本プロセスルーチン
はステップ110へジャンプする。Next, the SKBC 3 determines whether or not there is data in the keyboard buffer. If it is determined that there is data in the keyboard buffer, the SKBC 3 reads the key code set (scan code) from the key code buffer of the SCC section 3b. Then, the SKBC 3 performs ASCII conversion of the key code set into the key code mode based on the data conversion mode condition set in the predetermined bit of the control buffer of the KBC basic unit 3a. After conversion KBC basic part 3a is SKB
Write the key code mode into the C output buffer. SK
When BC3 writes the key code mode to the output buffer, it sets the OBF bit of the SKBC status buffer to the logic level "1". If the data written in the output buffer is the data from MOU13, SKBC3 outputs S
A logical level "1" is set to the MOBF bit of the KBC status buffer. Then, the SKBC 3 makes an interrupt to the host CPU based on the logical level state of the MOBF bit of the SKBC status buffer. That is, the MOBF
When the bit is at logic level "0", SKBC3 executes a keyboard interrupt. If the MOBF bit is at logic level "1", SKBC3 executes a mouse interrupt.
After executing the interrupt, the host CPU reads the data written in the SKBC output buffer. When the SKBC output buffer becomes empty, the values of the OBF and MOBF bits of the SKBC status buffer are cleared to zero (steps 230 to 24).
0). After completion of step 240, the process routine jumps to step 110.
【0023】本願発明の実施例では、内部キーボードの
制御方法を説明したがSKBC3の初期化処理に於いて
外部キーボード接続有りと判断する場合、SKBC3は
内部キーボードと外部キーボードを同時動作可能とす
る。この場合の制御方法はホストCPUはSKBC3に
対して内部キーボードと外部キーボードを同時動作可能
とするための所定コマンドを初期化処理時発行する。次
に、SKBC3はステップ250実行終了後KBC基本
部3aの制御をSCC部13bから外部SCC7へ変更す
る。SKBC3は外部SCC7の外部クロック線と外部
データ線の論理レベルを“1”にセットしSKBC3を
データ受信状態にする。SKBC3はポーリング条件に
基づき外部SCC7からのデータ送信要求の場合SCC
7のキーコードバッファに格納されたキーコードセット
を順次SKBC3に転送する。そして、SKBC3は内
部キーボードで処理していた同様な処理手順を実行す
る。外部キーボード制御終了後SKBC3は外部キーボ
ード制御から内部キーボード制御に変更する。この様な
方法にした場合、複数の入力デバイスを同時に動作可能
となり、データ入力を高速及び効率的に実行できる。In the embodiment of the present invention, the method of controlling the internal keyboard has been described. However, when it is determined that the external keyboard is connected in the initialization process of SKBC3, SKBC3 enables the internal keyboard and the external keyboard to operate simultaneously. In the control method in this case, the host CPU issues a predetermined command to the SKBC 3 at the time of initialization processing to enable simultaneous operation of the internal keyboard and the external keyboard. Next, the SKBC 3 changes the control of the KBC basic unit 3a from the SCC unit 13b to the external SCC 7 after the execution of step 250. The SKBC3 sets the logic levels of the external clock line and the external data line of the external SCC7 to "1" to bring the SKBC3 into the data receiving state. SKBC3 is SCC in case of data transmission request from external SCC7 based on polling condition
The key code set stored in the key code buffer 7 is sequentially transferred to SKBC3. Then, the SKBC 3 executes the same processing procedure that was being processed by the internal keyboard. After the external keyboard control is completed, the SKBC 3 changes from the external keyboard control to the internal keyboard control. With such a method, a plurality of input devices can be simultaneously operated, and data input can be executed at high speed and efficiently.
【0024】[0024]
【発明の効果】以上述べてきたように、本願発明によれ
ば、複数のデータ入力デバイスを接続可能とするため使
い勝ってが向上する。As described above, according to the present invention, since a plurality of data input devices can be connected, usability is improved.
【図1】図1は、本発明の一実施例のシステム構成を示
すブロック図である。FIG. 1 is a block diagram showing a system configuration of an embodiment of the present invention.
【図2】図2は、本発明の複数の入力デバイスを制御す
る手順を示すフローチャートである。FIG. 2 is a flowchart showing a procedure for controlling a plurality of input devices of the present invention.
【図3】図3は、本発明の複数の入力デバイスを制御す
る手順を示すフローチャートであFIG. 3 is a flowchart showing a procedure for controlling a plurality of input devices according to the present invention.
【図4】図4は、従来の入力デバイスのシステム構成を
示したブロック図である。FIG. 4 is a block diagram showing a system configuration of a conventional input device.
1…システムI/F、3…SKBC、5…内部101 キー
トップ、7…外部SCC、9…外部101 キートップ、11
…テンキーパット、13…マウス1 ... System I / F, 3 ... SKBC, 5 ... Internal 101 key top, 7 ... External SCC, 9 ... External 101 key top, 11
… Numeric pad, 13… Mouse
Claims (1)
るかを示す情報を供給する手段と、前記供給された制御
情報を格納する手段と、前記格納された制御情報に基づ
き、前記複数の入力デバイスを順次選択的に制御し、入
力されたデータを処理する手段とを具備し、前記複数の
入力デバイスを単一の制御装置で接続制御した事を特徴
とする複数の入力デバイス接続制御装置。1. A means for supplying information indicating which input device is controlled when the power is turned on, a means for storing the supplied control information, and the plurality of inputs based on the stored control information. A plurality of input device connection control devices comprising means for selectively controlling devices sequentially and processing input data, wherein the plurality of input devices are connected and controlled by a single control device.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3201015A JPH0546300A (en) | 1991-08-12 | 1991-08-12 | Multiple input device connection controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3201015A JPH0546300A (en) | 1991-08-12 | 1991-08-12 | Multiple input device connection controller |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0546300A true JPH0546300A (en) | 1993-02-26 |
Family
ID=16434066
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP3201015A Pending JPH0546300A (en) | 1991-08-12 | 1991-08-12 | Multiple input device connection controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0546300A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0713669A (en) * | 1993-06-28 | 1995-01-17 | Nec Corp | Plural state inputting method and device therefor |
| JPH09258869A (en) * | 1996-03-25 | 1997-10-03 | Nec Corp | Keyboard device |
-
1991
- 1991-08-12 JP JP3201015A patent/JPH0546300A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0713669A (en) * | 1993-06-28 | 1995-01-17 | Nec Corp | Plural state inputting method and device therefor |
| JPH09258869A (en) * | 1996-03-25 | 1997-10-03 | Nec Corp | Keyboard device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20030188049A1 (en) | Interfacing devices | |
| US6678830B1 (en) | Method and apparatus for an ACPI compliant keyboard sleep key | |
| US5341316A (en) | Personal computer system allowing selective use of built-in and external keyboards by means of selector | |
| JP2009252172A (en) | Remote operation system | |
| KR100633983B1 (en) | Peripherals, systems, and methods for establishing wireless connections with intelligent devices | |
| JP2004078878A (en) | Keypad instruction mode input method | |
| JP2000148316A (en) | Portable terminal device, portable terminal device interface switching method, and recording medium | |
| JPH0546300A (en) | Multiple input device connection controller | |
| US5146584A (en) | Keyboard interface system allowing a synchronous keyboard to communicate with a host processor asynchronously by manipulating the keyboard clock's state | |
| TWI675317B (en) | Switching method and related electronic system | |
| KR100282938B1 (en) | Host data transmission method and MFP data reception method | |
| KR100243869B1 (en) | Can control card for computer and method for controlling the same | |
| US5797040A (en) | Computer system having system bus which couples adapter and processing units and requires acquisition for data transmission thereover | |
| EP0326102A2 (en) | Method and apparatus for selecting a keyboard on a computer system | |
| JP2002187327A (en) | Method for setting printer | |
| JPH11119903A (en) | Method for control between pointing device and computer, and the pointing device and the computer | |
| JPH08263188A (en) | Keyboard control system | |
| JPH1055235A (en) | Function keyboard | |
| JPH03158924A (en) | Printer controller | |
| JPH1083273A (en) | Multi-window control device | |
| JPH06149499A (en) | Printing device and printing method | |
| JPH10320352A (en) | Bus master transfer system | |
| JPH07191815A (en) | Printer | |
| JPH04329171A (en) | Printing device | |
| JP2000099447A (en) | Interface device for computer system |