JP2971113B2 - Keyboard interface method - Google Patents

Keyboard interface method

Info

Publication number
JP2971113B2
JP2971113B2 JP2255185A JP25518590A JP2971113B2 JP 2971113 B2 JP2971113 B2 JP 2971113B2 JP 2255185 A JP2255185 A JP 2255185A JP 25518590 A JP25518590 A JP 25518590A JP 2971113 B2 JP2971113 B2 JP 2971113B2
Authority
JP
Japan
Prior art keywords
keyboard
adapter
line
reset
power
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2255185A
Other languages
Japanese (ja)
Other versions
JPH04134516A (en
Inventor
隆夫 甲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Toshiba Computer Engineering Corp
Original Assignee
Toshiba Corp
Toshiba Computer Engineering 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, Toshiba Computer Engineering Corp filed Critical Toshiba Corp
Priority to JP2255185A priority Critical patent/JP2971113B2/en
Publication of JPH04134516A publication Critical patent/JPH04134516A/en
Application granted granted Critical
Publication of JP2971113B2 publication Critical patent/JP2971113B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) この発明は、パーソナルコンピュータに接続して好適
なキーボードシステムのキーボードインターフェース方
式に関する。
The present invention relates to a keyboard interface system of a keyboard system suitable for connecting to a personal computer.

(従来の技術) キーボードアダプタは、キーボードユニットとCPU本
体(以下システムと呼ぶ)の間に挿入されて、キーボー
ドユニットが生成する業界標準のキーコードをシステム
が確認可能な特殊キーデータに変換するハードウェア、
ソフトウェアを総称していう。
(Prior art) A keyboard adapter is inserted between the keyboard unit and CPU (hereinafter referred to as the system) to convert the industry standard key code generated by the keyboard unit into special key data that can be recognized by the system. Wear,
Software is a generic term.

従来、キーボードユニットとシステムは、第5図に示
すように、キーボードアダプタ52を介して接続され、シ
ステム51とキーボードアダプタ52は、シリアルデータ転
送路551ならびにリセット信号ライン552を介して接続さ
れる。また、キーボードアダプタ52はシステム51とは別
の電源54にて駆動される。尚、55はシステム51とキーボ
ードアダプタ52を接続するためのジャックコネクタであ
り、このコネクタはキーボードアダプタ52の初期設定の
起動にも用いられる。
Conventionally, the keyboard unit and the system are connected via a keyboard adapter 52 as shown in FIG. 5, and the system 51 and the keyboard adapter 52 are connected via a serial data transfer path 551 and a reset signal line 552. The keyboard adapter 52 is driven by a power source 54 different from the system 51. Incidentally, reference numeral 55 denotes a jack connector for connecting the system 51 and the keyboard adapter 52, and this connector is also used for starting the initial setting of the keyboard adapter 52.

上記した構成の場合、ユーザの手によってコネクタ55
の抜き差しが行なわれることがあり得る。この際、コネ
クタ55の抜き差し毎に、キーボードユニット53の電源断
/投入(電源OFF/ON)が発生する。また、コネクタ55の
脱着時の電源断を避けるため、キーボードユニット53側
で電源を供給し、システム51との接続はキーコード伝送
路のみとした構成も考えられる。
In the case of the above configuration, the connector 55 is
Can be inserted and removed. At this time, every time the connector 55 is connected or disconnected, the power of the keyboard unit 53 is turned off / on (power OFF / ON). Further, in order to avoid a power interruption when the connector 55 is attached or detached, a configuration in which power is supplied on the keyboard unit 53 side and connection with the system 51 is made only by a key code transmission path is also conceivable.

(発明が解決しようとする課題) ここでキーボードアダプタ52とシステム51との接続ラ
インに電源ラインを含めた場合は、コネクタ55を接続し
た際に電源投入が行われることから、キーボードユニッ
ト53の自己診断、初期化等でキー入力が可能となるまで
に相当の長い時間を要する。また、キーボードユニット
53の電源をシステム外より供給したとしても、コネクタ
55を抜いた状態がそのまま保存されるため、コネクタ再
接続時に、キーボードユニット53とシステム51との状態
の不一致が発生し問題になることがあった。
(Problems to be Solved by the Invention) If the power line is included in the connection line between the keyboard adapter 52 and the system 51, the power is turned on when the connector 55 is connected. It takes a considerably long time before a key input becomes possible for diagnosis, initialization, and the like. Also a keyboard unit
Even if 53 power is supplied from outside the system, the connector
Since the state in which the keyboard 55 is removed is saved as it is, when the connector is reconnected, the state of the keyboard unit 53 and the system 51 may be inconsistent, which may cause a problem.

この発明は上記事情に鑑みてなされたものであり、通
電中のシステムに接続されるキーボードユニット等の外
部装置の脱着をシステムの動作に支障をきたさず可能に
するキーボードインタフェース方式を提供することを目
的とする。
The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a keyboard interface system which enables detachment of an external device such as a keyboard unit connected to an energized system without disturbing the operation of the system. Aim.

[発明の構成] (課題を解決するための手段) 本発明は、CPU本体とキーボードユニットを、CPU本体
とは独立して電源供給がなされるキーボードアダプタ介
して接続されたキーボードシステムであって、上記シス
テムとキーボードアダプタとの間を、キーコードの転送
とリセット信号を転送する唯一本のシリアル転送路なら
びにピンジャックを介して接続し、ピンジャックの活線
挿抜時、内蔵のリセット信号生成回路によってリセット
信号をアダプタへ供給し、このリセットがピンジャック
切断によるものか、もしくは通電によるものかを判断
し、それぞれに従う初期化処理を行うことを特徴とす
る。
[Configuration of the Invention] (Means for Solving the Problems) The present invention is a keyboard system in which a CPU main body and a keyboard unit are connected via a keyboard adapter that is supplied with power independently of the CPU main body. The above system and the keyboard adapter are connected via the only serial transfer path for transferring the key code and the reset signal and the pin jack, and when the pin jack is hot-swapped, the built-in reset signal generation circuit A reset signal is supplied to the adapter, and it is determined whether the reset is caused by the disconnection of the pin jack or the energization, and an initialization process is performed according to each of them.

(作 用) 本発明は、キーコードの伝送とリセット信号の伝送機
能を併せ持った1本の伝送路を介してリセット信号を取
り出し、キーボードアダプタに対してリセットをかける
とともに、キーボードアダプタのリセット及び通電によ
る起動処理中で、通電による起動か伝送路の切断による
起動であるかをフラグを参照して判断し、そのフラグの
内容によってそれぞれの初期化処理をプログラムを付加
することによって、通電中の接続コネクタの脱着をシス
テムの動作に何等影響無く可能とする。通電であるとフ
ラグより判断された場合はキーボードアダプタの初期化
及び自己診断を、また、リセット信号によって起動した
と判断された場合は、必要最低限の初期化処理を行うこ
とによって立ち上げ時間の短縮を実現する。
(Operation) The present invention takes out a reset signal through one transmission path having both a function of transmitting a key code and a function of transmitting a reset signal, resets the keyboard adapter, and resets and energizes the keyboard adapter. During the startup process, whether the startup is due to energization or disconnection of the transmission line is determined by referring to a flag, and a program for each initialization process is added according to the content of the flag, so that the connection during energization is performed. The connector can be attached and detached without affecting the operation of the system. If it is determined from the flag that the power is on, the keyboard adapter is initialized and self-diagnosis is performed.If it is determined that the keyboard adapter has been activated by the reset signal, the startup time is reduced by performing the minimum necessary initialization processing. Realize shortening.

(実施例) 以下、図面を使用して本発明実施例について詳細に説
明する。第1図は本発明の実施例を示すブロック図であ
る。図において、符号11はCPU本体が内蔵されるシステ
ムであり、キーデータの受信を行う。キーデータの受信
はピンジャックコネクタ15およびシリアル通信ライン15
1を介して行われる。システム11は一般的にコンピュー
タの本体を指すが、ここではキーデータの受信のみが関
係する。12はキーボードアダプタであり、キーボードユ
ニット13からのキーコード受信、キーコードのキーデー
タ変換、キーデータの送信等を行う。またピンジャック
コネクタ15の抜き差しによる初期設定の起動、キーボー
ドユニット13へのリセットコマンドの送信等を行う。キ
ーコードの受信は、ライン152,153、キーデータの送信
はライン151,コネクタ15、初期設定の起動はコネクタ15
(後述する)、リセットコマンドの送信はライン152,15
3を用いる。上記初期設定の起動はコネクタ15の抜き差
しをキーボードアダプタ12の内部に設けられたリセット
回路(第2図参照)で認識してリセット信号を発生する
ことによって起動する。
(Example) Hereinafter, an example of the present invention is described in detail using drawings. FIG. 1 is a block diagram showing an embodiment of the present invention. In the figure, reference numeral 11 denotes a system having a built-in CPU, which receives key data. Key data is received via the pin jack connector 15 and the serial communication line 15.
Done through one. System 11 generally refers to the body of a computer, but here only involves receiving key data. Reference numeral 12 denotes a keyboard adapter which receives a key code from the keyboard unit 13, converts key code key data, transmits key data, and the like. Further, it performs the initial setting by inserting and removing the pin jack connector 15, transmitting a reset command to the keyboard unit 13, and the like. Lines 152 and 153 for key code reception, line 151 and connector 15 for key data transmission, and connector 15 for initialization
(Described later), the transmission of the reset command is performed on lines 152 and 15
Use 3. The initialization is started by recognizing the connection and disconnection of the connector 15 by a reset circuit (see FIG. 2) provided inside the keyboard adapter 12 and generating a reset signal.

符号13は外付キーボードユニットであり、キーコード
の生成、キーコードの送信、リセットコマンドの受信等
を行う。キーコードの送信とリセットコマンドの受信は
ライン152,153を用いる。
Reference numeral 13 denotes an external keyboard unit that generates a key code, transmits a key code, receives a reset command, and the like. The transmission of the key code and the reception of the reset command use the lines 152 and 153.

符号14はキーボードアダプタ12の電源であり、システ
ム11とは独立して動作する。キーボードアダプタ12への
電源供給はライン155を用いて行われる。ライン155はキ
ーボードアダプタ12への電源供給ラインであり、Vccラ
インとGNDラインからなる。符号15はピンジャックコネ
クタであり、システム11とキーボードアダプタ12を継ぐ
ためのコネクタである。このコネクタ15はアダプタの初
期設定の起動にも用いられる。ライン152はキーボード
アダプタ12と外付キーボードユニット13の通信ラインで
あり、シリアル通信のためのデータラインを示す。この
際、通信ライン152上のデータは、ライン153を転送され
るクロックの出力に合せて送信される。ライン153はキ
ーボードアダプタ12と外付キーボード13の通信のための
クロック転送ラインであり、シリアル通信のためのクロ
ックが転送される。通信のためのクロックは外付キーボ
ードユニット13が出力する。ライン154はキーボードア
ダプタ12から外付キーボードユニット13への電源供給ラ
インであり、キーボードアダプタ12が電源ONされた時、
外付キーボードユニット13へ電源を供給するラインで、
VccラインとGNDラインからなる。
Reference numeral 14 denotes a power supply for the keyboard adapter 12, which operates independently of the system 11. Power is supplied to the keyboard adapter 12 using the line 155. A line 155 is a power supply line to the keyboard adapter 12, and includes a Vcc line and a GND line. Reference numeral 15 denotes a pin jack connector, which is a connector for connecting the system 11 and the keyboard adapter 12. This connector 15 is also used for starting the initial setting of the adapter. A line 152 is a communication line between the keyboard adapter 12 and the external keyboard unit 13, and indicates a data line for serial communication. At this time, the data on the communication line 152 is transmitted according to the output of the clock transmitted on the line 153. A line 153 is a clock transfer line for communication between the keyboard adapter 12 and the external keyboard 13, and transfers a clock for serial communication. The external keyboard unit 13 outputs a clock for communication. Line 154 is a power supply line from the keyboard adapter 12 to the external keyboard unit 13, and when the keyboard adapter 12 is turned on,
A line that supplies power to the external keyboard unit 13,
It consists of Vcc line and GND line.

第2図は第1図に示すキーボードアダプタ12の内部構
成を示す図である。図において、符号21はキーボードア
ダプタ12のコントローラであり、キーコードの受信、キ
ーコードのキーデータ変換、キーデータの送信、及びリ
セットコマンドの発行処理を行う。リセットコマンドの
発行要因にはキーボードアダプタの電源ONによるリセッ
トとリセット回路22によるリセットとがある。符号22は
リセット回路であり、ピンジャックコネクタ15の抜き差
しをモニタして抜き差しが行われた時、このリセット回
路22に対してリセットをかける。符号23は第1図に示す
ライン155に相当する電源供給ラインである。符号24は
第1図に示すライン151に相当する、システムとキーボ
ードアダプタとの間の通信ラインである。符号25は第1
図に示すライン152に相当する、キーボードアダプタと
外付キーボードユニットとの間の通信ラインである。符
号26は第1図に示すライン153に相当する、キーボード
アダプタと外付キーボードユニットとの間の通信ライン
である。符号27は第1図に示すライン154に相当する、
キーボードアダプタから外付キーボードユニットへの電
源供給ラインである。
FIG. 2 is a diagram showing the internal configuration of the keyboard adapter 12 shown in FIG. In the figure, reference numeral 21 denotes a controller of the keyboard adapter 12, which performs processing for receiving a key code, converting key code key data, transmitting key data, and issuing a reset command. The reset command issuance factors include a reset by turning on the power of the keyboard adapter and a reset by the reset circuit 22. Reference numeral 22 denotes a reset circuit, which monitors the connection and disconnection of the pin jack connector 15 and resets the reset circuit 22 when the connection and disconnection are performed. Reference numeral 23 denotes a power supply line corresponding to the line 155 shown in FIG. Reference numeral 24 denotes a communication line between the system and the keyboard adapter, which corresponds to the line 151 shown in FIG. Symbol 25 is the first
It is a communication line between the keyboard adapter and the external keyboard unit corresponding to the line 152 shown in the figure. Reference numeral 26 denotes a communication line between the keyboard adapter and the external keyboard unit, which corresponds to the line 153 shown in FIG. Reference numeral 27 corresponds to the line 154 shown in FIG.
This is the power supply line from the keyboard adapter to the external keyboard unit.

第3図は第2図に示すリセット回路22の内部構成を示
す図である。図において、符号31はリセット信号を発行
するハードウェアであり、ライン36を転送する信号のLO
Wレベルを認識した時、ライン37にリセット信号を出力
する。尚、このリセット信号はLOWレベルの信号であ
る。符号32はレベル変換を行うハードウェアであり、ラ
イン35を転送する信号をTTLレベルの信号に変換してラ
イン36へ供給する。ライン36を転送される信号がHIGHレ
ベルの時、ライン36上の信号レベルを保持する(ライン
35に回り込まない)方向性をもつ。符号33,34はそれぞ
れハードウェア31の入力を保護するハードウェアであ
り、符号33は、ライン36の信号がTTLレベルを越えない
ように入力信号レベルを抑制する制限抵抗、符号34はラ
イン36の信号レベルを保持するコンデンサである。この
コンデンサ34は、ライン36がHIGHレベルの時にライン36
の信号レベルを保持し、LOWレベルの時は保持した信号
レベルをライン36に供給する。ライン35は第1図に示す
ライン151に相当する、システムとアダプタとの間の通
信ラインである。この通信ライン35は、コネクタ15を抜
いた状態ではLOWレベルになる。ライン36はハードウェ
ア31、32、33、34を接続するためのラインであり、これ
ら各素子を接続する信号線である。符号37はリセット信
号を出力する通信ラインであり、リセット回路22よりリ
セットをかけるための信号線である。
FIG. 3 is a diagram showing an internal configuration of the reset circuit 22 shown in FIG. In the figure, reference numeral 31 denotes hardware for issuing a reset signal,
When the W level is recognized, a reset signal is output to a line 37. This reset signal is a LOW level signal. Reference numeral 32 denotes hardware for performing level conversion, which converts a signal transmitted on the line 35 into a TTL level signal and supplies the signal to the line 36. When the signal transmitted on line 36 is at a high level, the signal level on line 36 is maintained (line
(It does not go around 35). Symbols 33 and 34 are hardware for protecting the input of the hardware 31, respectively. Symbol 33 is a limiting resistor for suppressing the input signal level so that the signal on the line 36 does not exceed the TTL level. This is a capacitor that holds the signal level. This capacitor 34 is connected to line 36 when line 36 is at a high level.
The signal level is supplied to the line 36 when the signal level is low. Line 35 is a communication line between the system and the adapter, corresponding to line 151 shown in FIG. This communication line 35 is at the LOW level when the connector 15 is disconnected. The line 36 is a line for connecting the hardware 31, 32, 33, and 34, and is a signal line for connecting these elements. Reference numeral 37 denotes a communication line for outputting a reset signal, which is a signal line for resetting by the reset circuit 22.

第4図はキーボードアダプタのリセット処理を示すフ
ローチャートである。図中、符号4aはリセット発生時の
プログラムのエントリを行うステップであり、キーボー
トアダプタ12の電源ONによるリセットと、ピンジャック
コネクタ15の接続によるリセットがある。符号4bは電源
ONでプログラムがエントリされたか否かをチェックする
ステップであり、起動状態を示すフラグ(以下電源ONフ
ラグと呼ぶ)がセットされていない時、電源ONフラグの
セットとリセットコマンドの発行を行う。また電源ONフ
ラグがセットされている時、リセット処理を終了する。
電源ONフラグのデフォルト値はアダプタ12のハードウェ
アによって設定される。また電源ONフラグがセットされ
る条件はアダプタ12が電源ONで起動した場合のみで、電
源ONフラグのセット値はデフォルト値以外の値をとる。
符号4cは電源ONフラグをセットするステップであり、キ
ーボードアダプタ12のRAMエリアに電源ONフラグをセッ
トする。RAMエリアはCPUにリセットが発生してもクリア
されないため、電源ON時にセットした電源ONフラグは電
源がOFFされるまで保存される。符号4d)はリセットコ
マンドの発行を行うステップであり、外付キーボードユ
ニット13に対してリセットコマンドを実行する。
FIG. 4 is a flowchart showing the reset processing of the keyboard adapter. In the figure, reference numeral 4a denotes a step for entering a program when a reset occurs, and there are a reset by turning on the power of the keyboard adapter 12 and a reset by connecting the pin jack connector 15. Symbol 4b is power supply
This is a step of checking whether or not the program has been entered by turning ON. When a flag indicating a startup state (hereinafter referred to as a power ON flag) is not set, a power ON flag is set and a reset command is issued. When the power ON flag is set, the reset processing ends.
The default value of the power ON flag is set by the hardware of the adapter 12. The condition for setting the power ON flag is only when the adapter 12 is started with the power ON, and the set value of the power ON flag takes a value other than the default value.
Reference numeral 4c denotes a step of setting a power ON flag, which sets the power ON flag in the RAM area of the keyboard adapter 12. Since the RAM area is not cleared even when the CPU is reset, the power-on flag set when the power is turned on is saved until the power is turned off. Reference numeral 4d) is a step for issuing a reset command, and executes the reset command for the external keyboard unit 13.

以下、本発明実施例の動作について詳細に説明する。
まず、キーボードアダプタ12の起動は、電源14からライ
ン155を通じて電源供給がなされることによって行われ
る。また、電源を供給されて起動されたキーボードアダ
プタ12はライン154を通じて外付キーボードユニット13
に電源を供給する。電源ONによる起動かコネクタ15の抜
き差しによるリセットの直後、アダプタ12は第4図に示
すフローチャートのステップ4aから処理を開始する。ス
タート直後、電源ONによる起動かコネクタ15の抜き差し
によるリセットかを判断するために、アダプタ12のRAM
エリアの起動状態を示すフラグをチェックする。このフ
ラグの状態によって電源ONによる起動とコネクタ15の抜
き差しによるリセットを区別しアダプタの初期化を行
う。
Hereinafter, the operation of the embodiment of the present invention will be described in detail.
First, the keyboard adapter 12 is activated when power is supplied from the power supply 14 via the line 155. In addition, the keyboard adapter 12 that is powered on and activated is connected to the external keyboard unit 13 through a line 154.
Supply power to Immediately after activation by turning on the power or resetting by disconnecting / connecting the connector 15, the adapter 12 starts processing from step 4a of the flowchart shown in FIG. Immediately after the start, the RAM of the adapter 12
Check the flag indicating the activation status of the area. The initialization of the adapter is performed by distinguishing between activation by turning on the power supply and resetting by disconnecting / connecting the connector 15 depending on the state of this flag.

電源ONの時、アダプタ12のハードウェアによってRAM
エリアはクリアされているため、電源ONによる起動を示
すフラグはセットされていない。従って電源ONによるエ
ントリがなかったと判断されて、ステップ4cの電源ONで
起動した場合の処理を行う。ステップ4cで電源ONによる
起動を示すフラグをセットした後、ステップ4dで外付キ
ーボードユニット13に対してリセットコマンドの発行を
行う。以上の処理によってキーボードアダプタ12、外付
キーボードユニット13は電源ONによる起動を終了する。
When power is turned on, RAM is determined by the hardware of adapter 12.
Since the area has been cleared, the flag indicating activation by power ON has not been set. Therefore, it is determined that there is no entry due to the power ON, and the processing in step 4c when the power is turned ON is performed. After setting a flag indicating activation by power ON in step 4c, a reset command is issued to the external keyboard unit 13 in step 4d. With the above processing, the keyboard adapter 12 and the external keyboard unit 13 finish the activation by turning on the power.

次に、キーボードユニット13からアダプタ12を通じて
システム11へキーコードが送信された場合の動作を説明
する。システム11、キーボードアダプタ12、外付キーボ
ードユニット13が電源ONで起動した後、キーボードアダ
プタ12は外付キーボードユニット13をポーリングする。
外付キーボードユニット13を介してキー入力があった場
合、外付キーボードユニット13からキーコードが送出さ
れる。外付キーボードユニット13をポーリングしていた
キーボードアダプタ12はライン152、153を通じてキーコ
ードを受信する。キーコードを受信したキーボードアダ
プタ12はキーボードのキーデータ変換を行った後、シス
テム11からのキーデータ要求を持つ。システム11からの
キーデータ要求がコネクタ15、ライン151を通じてあっ
た場合、キーボードアダプタ12はキーデータをコネクタ
15、ライン151を通じてシステム11へ送信する。以上の
ようにして外付キーボード13で生成されるキーコードが
システム11へキーコードとして送信される。
Next, an operation when a key code is transmitted from the keyboard unit 13 to the system 11 through the adapter 12 will be described. After the system 11, the keyboard adapter 12, and the external keyboard unit 13 are activated by turning on the power, the keyboard adapter 12 polls the external keyboard unit 13.
When a key is input via the external keyboard unit 13, a key code is sent from the external keyboard unit 13. The keyboard adapter 12 that has polled the external keyboard unit 13 receives the key code through lines 152 and 153. After receiving the key code, the keyboard adapter 12 converts the key data of the keyboard, and then has a key data request from the system 11. When a key data request from the system 11 is made through the connector 15 and the line 151, the keyboard adapter 12 transmits the key data to the connector 15.
15. Transmit to system 11 via line 151. As described above, the key code generated by the external keyboard 13 is transmitted to the system 11 as a key code.

ここで、キーボードアダプタ12が動作中にピンジャッ
ク15の抜き差しがあった場合のキーボードアダプタ12の
動作を説明する。ピンジャックコネクタ15が抜き差しさ
れた場合、キーボードアダプタ12はリセット回路22によ
ってリセットがかかり、外付キーボードユニット13が初
期化される。
Here, the operation of the keyboard adapter 12 when the pin jack 15 is disconnected and inserted while the keyboard adapter 12 is operating will be described. When the pin jack connector 15 is disconnected and inserted, the keyboard adapter 12 is reset by the reset circuit 22, and the external keyboard unit 13 is initialized.

次にリセット回路22の動作と第3図に示すハードウェ
ア構成ならびにその動作について説明する。リセット回
路22はキーボードアダプタ12とキーボードシステム11の
間の通信ラインのレベルによって、アダプタコントロー
ラ21にリセットをかけるハードウェアである。ピンジャ
ックコネクタ15が差されていて、システム11とキーボー
ドアダプタ12との間でデータを送信していない時、ライ
ン35のレベルは“HIGH"である。この時、ライン37を通
じてライン36は“HIGH"レベルに設定される。また、ラ
イン36のレベルはコンデンサ34に保持される。ライン36
が“HIGH"の時、ハードウェア31はライン37にリセット
信号を出力しない。次に、ピンジャックコネクタ15が差
されていて、システム11とアダプタ12がキーデータを送
信している時、ライン35のレベルは“HIGH"と“LOW"の
両方をとる。この時、ハードウェア32を通じてライン36
は“HIGH"に保たれ、コンデンサ34によって保持され
る。ライン35のレベルは“HIGH"の方が"LOW"より4倍以
上長いため、ライン36は常に“HIGH"となる。ライン36
が“HIGH"の時、ハードウェア31はライン37にリセット
信号を出力しない。次にピンジャックコネクタ15が抜か
れた時、ライン35のレベルは“LOW"に設定される。この
時、ライン36のレベルはハードウェア33によって“LOW"
レベルになる。ライン36が“LOW"の時、ハードウェア31
はライン37に対しリセット信号を出力する。ライン37に
出力されたリセット信号はアダプタコントローラ21に伝
えられ、アダプタコントローラ21にリセットがかかる。
このようにキーボードアダプタ12が動作中にコネクタ15
を抜き差しすると、キーボードアダプタ12にリセットが
かかり、キーボードアダプタ12が初期化される。
Next, the operation of the reset circuit 22, the hardware configuration shown in FIG. 3, and the operation thereof will be described. The reset circuit 22 is hardware that resets the adapter controller 21 according to the level of a communication line between the keyboard adapter 12 and the keyboard system 11. When the pin jack connector 15 is plugged in and no data is being transmitted between the system 11 and the keyboard adapter 12, the level on line 35 is "HIGH". At this time, the line 36 is set to the "HIGH" level through the line 37. The level of the line 36 is held by the capacitor 34. Line 36
Is high, hardware 31 does not output a reset signal on line 37. Next, when the pin jack connector 15 is plugged in and the system 11 and the adapter 12 are transmitting key data, the level of the line 35 takes both "HIGH" and "LOW". At this time, line 36 through hardware 32
Is held "HIGH" and is held by the capacitor 34. Since the level of the line 35 is at least four times longer at "HIGH" than at "LOW", the line 36 is always at "HIGH". Line 36
Is high, hardware 31 does not output a reset signal on line 37. Next, when the pin jack connector 15 is disconnected, the level of the line 35 is set to “LOW”. At this time, the level of the line 36 is set to “LOW” by the hardware 33.
Become a level. When line 36 is “LOW”, hardware 31
Outputs a reset signal to line 37. The reset signal output to the line 37 is transmitted to the adapter controller 21, and the adapter controller 21 is reset.
Thus, when the keyboard adapter 12 is in operation, the connector 15
Is disconnected, the keyboard adapter 12 is reset, and the keyboard adapter 12 is initialized.

ピンジャックコネクタ15の抜き差しによるリセット信
号の発生によりキーボードアダプタ12に初期化要求が発
生した時のキーボードアダプタ12の初期化動作を第4図
を用いて説明する。キーボードアダプタ12にリセットが
かかると、電源ONによる初期化と同様に、アダプタ12の
RAMエリアの電源ONによる起動を示すフラグを確認す
る。コネクタ15の抜き差しによるリセットの場合、アダ
プタ12のRAMエリアには電源ONによる初期化によって、
電源ONによる起動を示すフラグがセットされているた
め、電源ONによるエントリがあったと判断されて、ステ
ップ4c,4dの処理をパスする。従ってコネクタ15の抜き
差しによるリセットの場合はキーボードユニット13に対
してリセットコマンドの発行を行わない。また、キーボ
ードアダプタ12の電源ONによるリセットが行われた後、
コネクタ15の抜き差しによるリセットが起こるため、コ
ネクタ15の抜き差しによるリセットの場合、キーボード
ユニット13は初期化されずに、キーボードアダプタ12と
の通信フェーズが取れる。従ってコネクタ15の抜き差し
によるリセットの場合、キーボードユニット13の初期化
を行わないためキーボードアダプタ12の初期化が、キー
ボードユニット13の初期化にかかる期間だけ早く終了す
る。また、キーボードユニット13の初期化によるキー入
力不可期間がなくなるため、コネクタ15の抜き差し後、
すぐにキーボードユニット13によるキー入力が可能とな
る。コネクタ15の抜き差し後、キーボードアダプタ12の
初期化が終了すると、キーボードアダプタ12はキーボー
ドユニット13をポーリングして、キーコードをシステム
11に送信する動作に移る。
The initialization operation of the keyboard adapter 12 when an initialization request is issued to the keyboard adapter 12 due to the generation of a reset signal due to the insertion and removal of the pin jack connector 15 will be described with reference to FIG. When the keyboard adapter 12 is reset, the adapter 12
Check the flag that indicates startup in the RAM area when the power is turned on. In the case of a reset due to connection / disconnection of the connector 15, the RAM area of the adapter 12 is initialized by turning on the power,
Since the flag indicating activation by power-on is set, it is determined that there is an entry by power-on, and the processing of steps 4c and 4d is passed. Therefore, in the case of resetting due to connection / disconnection of the connector 15, the reset command is not issued to the keyboard unit 13. Also, after the keyboard adapter 12 is reset by turning on the power,
Since the reset occurs due to the connection / disconnection of the connector 15, the keyboard unit 13 is not initialized and the communication phase with the keyboard adapter 12 can be taken in the case of the reset due to the connection / disconnection of the connector 15. Therefore, in the case of a reset due to the connection / disconnection of the connector 15, the keyboard unit 13 is not initialized, and thus the initialization of the keyboard adapter 12 is completed as early as the period required for the initialization of the keyboard unit 13. In addition, since there is no key input disabled period due to the initialization of the keyboard unit 13, after the connector 15 is connected and disconnected,
Key input by the keyboard unit 13 becomes possible immediately. After the connection and disconnection of the connector 15 and the initialization of the keyboard adapter 12 is completed, the keyboard adapter 12 polls the keyboard unit 13 and transmits the key code to the system.
Move to the operation of transmitting to 11.

従来のアダプタのピンジャックの抜き差しによるリセ
ットの場合は、常にキーボードユニット13へリセットコ
マンドを発行するため、キーボードユニット13は初期化
され、キーボードユニット13の初期化によるキー入力不
可期間が、ピンジャックコネクタ15の抜き差しによるリ
セットのオーバーヘッドとなる。これはピンジャックコ
ネクタ15の抜き差し時のキーボードユニット13の使い勝
手に悪影響を及ぼす。一方、ピンジャックコネクタ15の
抜き差しによるリセットの場合のキーボードユニット13
へのリセットコマンドの未発行は、キーボードユニット
13の使い勝手の良さにつながる。また、キーボードアダ
プタ12の通信ラインとリセット認識ラインの共通化によ
って、キーボードアダプタのハードウェアのコストパフ
ォーマンスも良くなる。
In the case of a reset due to the insertion and removal of the pin jack of the conventional adapter, a reset command is always issued to the keyboard unit 13, so the keyboard unit 13 is initialized. The overhead of resetting by inserting and removing 15 points. This adversely affects the usability of the keyboard unit 13 when the pin jack connector 15 is connected and disconnected. On the other hand, the keyboard unit 13 in the case of resetting by removing and inserting the pin jack connector 15
Not issued reset command to keyboard unit
13 of usability. In addition, the common use of the communication line and the reset recognition line of the keyboard adapter 12 improves the cost performance of the hardware of the keyboard adapter.

[発明の効果] 以上説明のように本発明によれば以下に列挙する効果
が得られる。
[Effects of the Invention] As described above, according to the present invention, the following effects can be obtained.

1).伝送路にキーコード情報とリセット信号が重畳し
ており、脱着時の同期ズレが発生しないため、誤動作が
なくなる。
1). Since the key code information and the reset signal are superimposed on the transmission line, and no synchronization shift occurs during attachment / detachment, malfunction does not occur.

2).コネクタ脱着と通電を判別できるため、コネクタ
装着直後の立ちあげ時間が短縮される。
2). Since the connection and disconnection of the connector and the energization can be determined, the startup time immediately after mounting the connector is reduced.

3).伝送路は、キーコード情報とリセット信号が重畳
しているため伝送路及びコネクタ部分のコストが低減す
る。
3). In the transmission line, since the key code information and the reset signal are superimposed, the cost of the transmission line and the connector is reduced.

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

第1図は本発明の実施例を示すブロック図、第2図は第
1図に示すキーボードアダプタの内部構成を示す図、第
3図は第2図に示すリセット回路の内部構成を示す図、
第4図は上記実施例に於けるキーボードアダプタのリセ
ット処理を示すフローチャート、第5図は従来のキーボ
ードシステムの構成例を示すブロック図である。 11……システム、12……キーボードアダプタ、13……外
付キーボードユニット、14……電源、15……ピンジャッ
クコネクタ、21……アダプタコントローラ、22……リセ
ット回路。
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a diagram showing an internal configuration of the keyboard adapter shown in FIG. 1, FIG. 3 is a diagram showing an internal configuration of a reset circuit shown in FIG.
FIG. 4 is a flowchart showing a keyboard adapter resetting process in the above embodiment, and FIG. 5 is a block diagram showing a configuration example of a conventional keyboard system. 11 ... system, 12 ... keyboard adapter, 13 ... external keyboard unit, 14 ... power supply, 15 ... pin jack connector, 21 ... adapter controller, 22 ... reset circuit.

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.6,DB名) G06F 3/02 390 G06F 3/02 380 ──────────────────────────────────────────────────続 き Continued on front page (58) Field surveyed (Int.Cl. 6 , DB name) G06F 3/02 390 G06F 3/02 380

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】CPU本体とキーボードユニットとの間を、C
PU本体とは独立して電源供給がなされるキーボードアダ
プタを介して接続するキーボードシステムであって、上
記CPU本体とキーボードアダプタとの間をキーデータを
及びリセット信号を転送する唯一本のシリアル転送路及
びピンジャックを介して接続し、上記キーボードアダプ
タには、上記ピンジャックの活線挿抜時にリセット信号
を生成するリセット信号生成回路と、リセット信号がピ
ンジャック切断によるものか通電によるものかを判断
し、その判断に従う初期化処理を実行する手段とを具備
してなることを特徴とするキーボードインタフェース方
式。
(1) A connection between a CPU main body and a keyboard unit is
A keyboard system connected via a keyboard adapter supplied with power independently of the PU main body, wherein the only serial transfer path for transferring key data and a reset signal between the CPU main body and the keyboard adapter. And the keyboard adapter is connected to the keyboard adapter. The keyboard adapter includes a reset signal generation circuit that generates a reset signal when the pin jack is hot-plugged and unplugged, and determines whether the reset signal is caused by disconnection of the pin jack or energization. A means for executing an initialization process according to the determination.
JP2255185A 1990-09-27 1990-09-27 Keyboard interface method Expired - Fee Related JP2971113B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2255185A JP2971113B2 (en) 1990-09-27 1990-09-27 Keyboard interface method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2255185A JP2971113B2 (en) 1990-09-27 1990-09-27 Keyboard interface method

Publications (2)

Publication Number Publication Date
JPH04134516A JPH04134516A (en) 1992-05-08
JP2971113B2 true JP2971113B2 (en) 1999-11-02

Family

ID=17275217

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2255185A Expired - Fee Related JP2971113B2 (en) 1990-09-27 1990-09-27 Keyboard interface method

Country Status (1)

Country Link
JP (1) JP2971113B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3970512B2 (en) * 1999-12-14 2007-09-05 アルプス電気株式会社 In-vehicle device controller

Also Published As

Publication number Publication date
JPH04134516A (en) 1992-05-08

Similar Documents

Publication Publication Date Title
US6816931B2 (en) Upstream peripheral device serving as a USB host
WO1998000783A1 (en) Method and apparatus for power management of distributed direct memory access (ddma) devices
EP2254051A1 (en) Computer system with damaged bios data recovering function and recovering method thereof
JP2001512870A (en) Universal serial bus device controller
JPH086099A (en) Camera system and communicating method
JPH08115281A (en) Information processing system and communication service board
US7984201B2 (en) Communication apparatus and control method for the communication apparatus
US6753903B1 (en) Adaptor for direct connection between USB digital still camera and use color printer
US20030088318A1 (en) Device control system
JPH06214762A (en) Hot-plug support for computer input device
JP2001067156A5 (en) Computer peripherals and their control methods, imaging devices and their control methods, and computer-readable storage media
JP2001067156A (en) Peripheral equimenht of computer, control method therefor, image pickup device, and storage medium
JP2971113B2 (en) Keyboard interface method
JP2001306413A (en) Usb communication device
CN116566761A (en) SPI dual-host sharing arbitration system and method
US20070245359A1 (en) Communication control apparatus, communication control program, and communication driver registration method
JP2004164673A (en) Switching device
KR100216030B1 (en) Printer control method using universal serial bus
JP4277497B2 (en) Compound equipment
CN210006000U (en) embedded system hardware reset circuit
JP2703143B2 (en) Active insertion / removal method of input / output device
KR100721011B1 (en) Dockable computer system and control method for power supply in accidental docking event of the same
JP2005165589A (en) Usb device recognition method and system
JP4485113B2 (en) PC adapter for small cards
JPH08244316A (en) Image forming apparatus

Legal Events

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