JP2653514B2 - Scan controller - Google Patents

Scan controller

Info

Publication number
JP2653514B2
JP2653514B2 JP1135196A JP13519689A JP2653514B2 JP 2653514 B2 JP2653514 B2 JP 2653514B2 JP 1135196 A JP1135196 A JP 1135196A JP 13519689 A JP13519689 A JP 13519689A JP 2653514 B2 JP2653514 B2 JP 2653514B2
Authority
JP
Japan
Prior art keywords
response
key
command
stored
scan
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
JP1135196A
Other languages
Japanese (ja)
Other versions
JPH031211A (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 JP1135196A priority Critical patent/JP2653514B2/en
Publication of JPH031211A publication Critical patent/JPH031211A/en
Application granted granted Critical
Publication of JP2653514B2 publication Critical patent/JP2653514B2/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 scan controller that generates a key code corresponding to a keystroke key by a key scan operation.
In particular, it relates to a method of transmitting a response signal from the scan controller to the host computer.

(従来の技術) 一般に、スキャンコントローラは、キーボードから入
力されるデータをホストCPUに通知するために、3つの
機能すなわちコマンドチェック機能、キースキャンチェ
ック機能、およびキーコードチェック機能を順次実行す
る。コマンドチェック機能は、ホストCPUからのデータ
をポーリングし、このポーリングによってコマンドを検
出した時にコマンド処理を実行するものである。このコ
マンド処理は、コマンド内容のチェック、各種コマンド
への分岐、コマンドストア、各コマンド処理の実行、レ
スポンス(例えばコマンド処理で生成されるデータ等)
の送信、およびそのストアしたコマンドのクリアの順番
で行なわれる。
(Prior Art) In general, a scan controller sequentially executes three functions, that is, a command check function, a key scan check function, and a key code check function, in order to notify data inputted from a keyboard to a host CPU. The command check function polls data from the host CPU and executes command processing when a command is detected by this polling. This command processing includes checking of command contents, branching to various commands, command storage, execution of each command processing, and response (for example, data generated by the command processing).
Is transmitted, and the stored command is cleared.

キースキャンチェック機能は、キーボードのキー配列
をリードして打鍵キーに応じたキーコードを生成するキ
ースキャン処理と、このキースキャンの実行タイミング
を制御するチェック処理により構成される。つまり、キ
ースキャンチェック機能は、一定時間(CPUのインター
バルタイマで決まる時間)ごとにキースキャン処理を起
動し、このキースキャン処理によってキーコードが生成
され、そしてそのキーコードがキーコードバッファにス
トアされる。
The key scan check function includes a key scan process for reading a key arrangement of a keyboard to generate a key code corresponding to a keystroke key, and a check process for controlling the execution timing of the key scan. In other words, the key scan check function activates the key scan process at regular intervals (time determined by the CPU's interval timer), generates a key code by this key scan process, and stores the key code in the key code buffer. You.

キーコードチェック機能は、キーコードバッファにキ
ーコードが格納されているか否かを検出するためにキー
コードをポーリングし、格納されている時にはホストCP
U11に対してキーコードを送信する。
The key code check function polls the key code to detect whether the key code is stored in the key code buffer.
Send the key code to U11.

このようなスキャンコントローラの一連の処理(コマ
ンドチェック機能、キースキャンチェック機能、および
キーコードチェック機能)は、前述のキースキャンの実
行タイミングの間隔よりも短い時間内で実行される。こ
れは、一回のキースキャン毎に前述の3つの機能が実行
されて、キーコードがホストCPUに送信されるためであ
る。
Such a series of processes (the command check function, the key scan check function, and the key code check function) of the scan controller are executed within a time shorter than the key scan execution timing described above. This is because the above-described three functions are executed each time one key scan is performed, and the key code is transmitted to the host CPU.

ところが、このスキャンコントローラのコマンド処理
におけるレスポンス送信においてエラーが発生した(デ
ータ送信不可状態でレスポンス送信を行なった)場合に
は、レスポンスの再送のためにコマンド処理に時間がか
かり、キースキャンの実行タイミングの間隔内で前述の
一連の処理が終了しないことがある。これは、スキャン
コントローラの全体の動作条件に障害をきたす原因とな
り、これによってレスポンスやキーボードから入力され
るデータを正常にホストCPUに通知できなくなる等の不
具合が生じる。
However, when an error occurs in response transmission in command processing of the scan controller (response transmission is performed in a data transmission disabled state), it takes time for command processing to retransmit the response, and the key scan execution timing The series of processes described above may not be completed within the interval. This causes a failure in the overall operation condition of the scan controller, and causes a problem that a response or data input from the keyboard cannot be normally notified to the host CPU.

(発明が解決しようとする課題) 従来のスキャンコントローラでは、コマンド処理のレ
スポンス送信においてエラーが発生すると、コマンド処
理に要する時間が長くなりスキャンコントローラの全体
の動作条件に障害がきたされる欠点があった。
(Problems to be Solved by the Invention) The conventional scan controller has a drawback that if an error occurs in the response transmission of the command processing, the time required for the command processing is lengthened and the entire operating condition of the scan controller is impaired. Was.

この発明はこのような点に鑑みなされたもので、コマ
ンド処理のレスポンス送信においてエラーが発生して
も、スキャンコトローラの全体の動作条件に影響を与え
ることなく、確実にレスポンスを送信できるスキャンコ
ントローラを提供することを目的とする。
The present invention has been made in view of such a point, and even if an error occurs in response to command processing, a scan controller that can reliably transmit a response without affecting the overall operation conditions of the scan controller. The purpose is to provide.

[発明の構成] (課題を解決するための手段) この発明は、打鍵キーに応じたキーコードをキースキ
ャン操作によって生成するスキャンコントローラにおい
て、ホストコンピュータからのコマンドに応じた処理を
実行すると共に、そのコマンド処理の過程で生成した応
答信号を発生するコマンド処理手段と、このコマンド処
理手段によって生成された応答信号が格納される格納手
段と、前記コマンド処理手段のコマンド処理が終了した
後に前記格納手段に応答信号が格納されているか否かを
検出し、格納されている時にその応答信号を前記ホスト
コンピュータへ送出する応答信号送出手段とを具備する
ことを特徴とする。
According to the present invention, a scan controller that generates a key code corresponding to a keystroke key by a key scan operation executes processing according to a command from a host computer. Command processing means for generating a response signal generated in the course of the command processing, storage means for storing the response signal generated by the command processing means, and storage means after the command processing of the command processing means is completed Response signal transmitting means for detecting whether a response signal is stored in the host computer, and transmitting the response signal to the host computer when the response signal is stored.

(作用) このスキャンコントローラにあっては、コマンド処理
によって生成された応答信号がホストCPUに直接送信さ
れるのではなく、一旦格納手段に格納される。そして、
そのコマンド処理終了後に格納手段に応答信号が格納さ
れているか否かが検出され、格納されている時にその応
答信号がホストコンピュータに送出される。このため、
コマンド処理中にデータを送信不可状態になっても、コ
マンド処理中に応答信号を再送する必要がなく単に格納
手段に格納するだけでよいので、スキャンコントローラ
の全体の動作条件に影響を与えることなく確実にレスポ
ンスを送信することが可能になる。
(Operation) In the scan controller, the response signal generated by the command processing is not directly transmitted to the host CPU but is temporarily stored in the storage unit. And
After completion of the command processing, it is detected whether or not a response signal is stored in the storage means. When the response signal is stored, the response signal is sent to the host computer. For this reason,
Even if the data cannot be transmitted during the command processing, the response signal does not need to be retransmitted during the command processing and can be simply stored in the storage means, without affecting the overall operating conditions of the scan controller. It is possible to transmit a response reliably.

(実施例) 以下、図面を参照してこの発明の実施例を説明する。(Example) Hereinafter, an example of the present invention will be described with reference to the drawings.

第1図にこの発明の一実施例に係わるスキャンコント
ローラを含むデータ処理システムの構成を示す。ホスト
CPU11はこのシステム全体の動作を司るためのものであ
り、キーボードコントローラ12およびスキャンコトロー
ラ13に対してはキーボード制御コマンド(KBC制御コマ
ンド)およびスキャンコントローラ制御コマンド(SCC
制御コマンド)をそれぞれ発行すると共に、それらコン
トローラ12,13からのレスポンスを受信する。
FIG. 1 shows a configuration of a data processing system including a scan controller according to an embodiment of the present invention. host
The CPU 11 controls the operation of the entire system. The keyboard controller 12 and the scan controller 13 are provided with a keyboard control command (KBC control command) and a scan controller control command (SCC control command).
Control commands), and receives responses from the controllers 12 and 13.

キーボードコントローラ12は、図示のようにCPU、RA
M、およびROMにより構成されており、ホストCPU11とス
キャンコントローラ13間のインターフェースを行なう。
つまり、キーボードコントローラ12は、ホストCPU11か
ら送出されるKBC制御コマンドおよびSCC制御コマンドの
受信、KBC制御コマンドの実行、SCC制御コマンドの送
信、スキャンコントローラ13からの応答信号(SCCレス
ポンス)の受信、KBSレスポンスおよびSCCレスポンスの
送信、キーコードの受信、およびキーコードの送信を行
なう。
The keyboard controller 12 includes a CPU and an RA
M and ROM, and interfaces between the host CPU 11 and the scan controller 13.
That is, the keyboard controller 12 receives the KBC control command and the SCC control command sent from the host CPU 11, executes the KBC control command, transmits the SCC control command, receives a response signal (SCC response) from the scan controller 13, Sends the response and SCC response, receives the key code, and sends the key code.

スキャンコントローラ13は、キーボード(図示せず)
の打鍵キーに応じたキーコードをキースキャン操作によ
って発生するためのものであり、図示のようにCPU13a、
RAM13b、およびROM13cにより構成されてる。このスキャ
ンコントローラ13は、SCC制御コマンドの受信、SCC制御
コマンドの実行、SCCレスポンスの送信、およびキーコ
ード送信を実行する。
The scan controller 13 has a keyboard (not shown)
The key code corresponding to the key-pressing key is generated by a key scan operation.
It is composed of a RAM 13b and a ROM 13c. The scan controller 13 receives an SCC control command, executes the SCC control command, transmits an SCC response, and transmits a key code.

第2図にスキャンコントローラ13のRAM13c内に格納さ
れる情報の内容を示す。このROM13cは、スタート機能を
実行するためのプログラム21、テーブル機能のためプロ
グラム22、SCC処理機能を実行するためのプログラム2
3、データ受信機能を実行するためのプログラム24、コ
マンド処理機能を実行するためのプログラム25、データ
送信機能を実行するためのプログラム26、およびキース
キャン処理機能を実行するためのプログラム27を有して
いる。
FIG. 2 shows the contents of information stored in the RAM 13c of the scan controller 13. The ROM 13c includes a program 21 for executing a start function, a program 22 for a table function, and a program 2 for executing an SCC processing function.
3, having a program 24 for executing a data receiving function, a program 25 for executing a command processing function, a program 26 for executing a data transmitting function, and a program 27 for executing a key scan processing function ing.

スタート機能のためのプログラム21は、通電時におけ
るプログラムの起動ポインタとして機能するものであ
り、これによってSCC処理機能のためのプログラム23が
起動される。テーブル機能のためのプログラム22は、キ
ースキャンにより得られる情報をキーコードに変換する
ためのパラメータ情報を含むキースキャンコードテーブ
ルと、コマンド分岐用テーブルと、ワーク用デフォルト
情報とを有している。
The program 21 for the start function functions as a program start pointer at the time of energization, and thereby the program 23 for the SCC processing function is started. The program 22 for the table function has a key scan code table including parameter information for converting information obtained by key scan into a key code, a command branch table, and work default information.

SCC処理機能のためのプログラム23は、プログラム全
体の動作制御を実行するためのものであり、その実行内
容としてはスキャンコントローラの主要機能つまり初期
化機能(通電時のみ)、コマンドチェック機能、レスポ
ンスチェック機能、キースキャンチェック機能、および
キーコードチェック機能がある。データ受信機能のため
のプログラム24は、SCC処理プログラム23のコマンドチ
ェックにおけるポーリングによってデータが送られてく
るのが検出された時、そのデータを1バイト受信してそ
れをデータ受信バッファにストアするためのプログラム
である。
The program 23 for the SCC processing function is for executing the operation control of the entire program, and includes the main functions of the scan controller, that is, the initialization function (only when power is supplied), the command check function, and the response check. There is a function, a key scan check function, and a key code check function. The program 24 for the data reception function is for receiving one byte of data and storing it in the data reception buffer when it is detected that data is sent by polling in the command check of the SCC processing program 23. Program.

コマンド処理機能のためのプログラム25は、データ受
信後にコマンドチェックによって受信データがコマンド
であると判定された時、対応するコマンド処理を実行す
るためのものであり、このコマンド処理の過程において
そのコマンドに対するレスポンスが生成される。
The program 25 for the command processing function is for executing the corresponding command processing when the received data is determined to be a command by the command check after data reception, and in the course of this command processing, A response is generated.

データ送信機能のためのプログラム26は、データ送信
可能状態の条件下において、データ送信バッファから送
信データを読出してデータを1バイト送信するためのプ
ログラムである。キースキャン処理機能のためのプログ
ラム27は、キーボードのキー配列を読み、打鍵キーに応
じたキーコードを生成し、それをキーコードバッファに
格納するためのものである。
The program 26 for the data transmission function is a program for reading transmission data from the data transmission buffer and transmitting one byte of data under the condition that the data transmission is possible. The program 27 for the key scan processing function reads a key arrangement of a keyboard, generates a key code corresponding to a keystroke key, and stores it in a key code buffer.

第3図にスキャンコントローラ13のRAM13b内に格納さ
れる情報の内容を示す。このRAM13bは、プットポインタ
として機能する領域32を含むレジスタ領域31、スタック
領域33、ワーク領域34、フラグ領域35を有している。
FIG. 3 shows the contents of information stored in the RAM 13b of the scan controller 13. The RAM 13b has a register area 31 including an area 32 functioning as a put pointer, a stack area 33, a work area 34, and a flag area 35.

レジスタ領域31は、CPU13aの制御動作に必要な各種レ
ジスタ情報が格納される領域である。プットポインタと
して機能する領域32はレジスタ領域32の一部であり、こ
の領域32はレスポンスを格納する際のバッファを指示す
るための情報が格納される。
The register area 31 is an area in which various register information necessary for the control operation of the CPU 13a is stored. An area 32 functioning as a put pointer is a part of the register area 32, and the area 32 stores information for instructing a buffer for storing a response.

スタック領域33は、CPU13aの制御動作に必要な各種ス
タック情報が格納される領域である。ワーク領域34は、
CPU13aの動作時に作業エリアとして使用される領域であ
り、このワーク領域内のバッファにレスポンスが格納さ
れる。フラグ領域35は、CPU13aの動作時に使用するフラ
グ情報の格納領域である。
The stack area 33 is an area in which various types of stack information necessary for the control operation of the CPU 13a are stored. The work area 34
This area is used as a work area when the CPU 13a operates, and a response is stored in a buffer in the work area. The flag area 35 is an area for storing flag information used when the CPU 13a operates.

第4図にワーク領域34の内容を示す。このワーク領域
34は、第1乃至第6のバッファ領域41〜47、およびゲー
トポインタとして機能する領域47を有している。
FIG. 4 shows the contents of the work area 34. This work area
34 has first to sixth buffer areas 41 to 47 and an area 47 functioning as a gate pointer.

第1のバッファ領域41は、レスポンスのストア時に最
初のレスポンスが格納されるレスポンス格納領域であ
る。同様に、第2乃至第6のバッファ領域42〜46は、第
2番目乃至第6番目のレスポンスがそれぞれ格納される
レスポンス格納領域である。これらバッファ領域41〜46
には、レスポンスが生成されなかった場合にクリアデー
タが格納される。
The first buffer area 41 is a response storage area in which the first response is stored when storing the response. Similarly, the second to sixth buffer areas 42 to 46 are response storage areas in which the second to sixth responses are respectively stored. These buffer areas 41 to 46
Stores clear data when no response is generated.

ゲットポインタとして機能する領域47には、どのバッ
ファからレスポンスを読出すかを指示する情報が格納さ
れる。
The area 47 functioning as a get pointer stores information indicating from which buffer a response is read.

次に、第5図のフローチャートを参照してスキャンコ
ントローラ13の動作を説明する。まず、通電時において
はROM13c内のスタート機能のためのプログラム21によっ
てSCC処理機能のためのプログラム22が起動され、最初
にRAM13bのワーク領域34およびフラグ領域35が初期化さ
れる(ステップA1)。この初期化が終了すると、コマン
ドチェック機能が起動される(ステップA2)。このコマ
ンドチェック機能は、キーボードコントローラ12を介し
てCPU11からデータが送出されて来ているか否かを検出
するためのものであり、データがある場合にはROM13cの
データ受信機能のためのプラグラムによってデータ受信
が実行される。受信データがコマンドあるいはコマンド
のパラメータで無い時は、何もせずにコマンドチェック
処理が終了されてレスポンスチェックの処理(ステップ
A3)に移行する。一方、受信データがコマンドあるいは
コマンドのパラメータの場合には、ROM13cのコマンド処
理機能のためのプログラム25が起動されて、対応するコ
マンド処理が実行される(ステップA4)。このコマンド
処理の過程においては、レスポンスが生成され、そのレ
スポンスが第4図に示したレスポンスバッファに格納さ
れる。
Next, the operation of the scan controller 13 will be described with reference to the flowchart of FIG. First, at the time of energization, the program 22 for the SCC processing function is started by the program 21 for the start function in the ROM 13c, and the work area 34 and the flag area 35 of the RAM 13b are first initialized (step A1). When the initialization is completed, a command check function is activated (step A2). This command check function is for detecting whether or not data is sent from the CPU 11 via the keyboard controller 12, and if there is data, the data is checked by a program for the data reception function of the ROM 13c. Reception is performed. If the received data is not a command or a command parameter, the command check process is terminated without any action and the response check process (step
Go to A3). On the other hand, when the received data is a command or a command parameter, the program 25 for the command processing function of the ROM 13c is started, and the corresponding command processing is executed (step A4). In the course of this command processing, a response is generated, and the response is stored in the response buffer shown in FIG.

ここで、ステップA4のコマンド処理の一例としてバー
ジョンナンバーの読出し処理のフローチャートを第6図
に示す。第6図において、コマンド処理が起動される
と。まず応答信号(ACK)すなわちレスポンスの格納が
行なわれる(ステップB1)。このレスポンスは、コマン
ドを受信したことに対する応答である。これは、最初の
レスポンスであるため、第4図の第1のバッファ領域41
に格納される。ステップB1の処理は、第7図に示すよう
な処理順序に従って実行される。すなわち、まずレスポ
ンスが準備され(ステップC1)、その準備されたレスポ
ンスがRAM13bのプットポインタにより指示されるバッフ
ァすなわち第1のバッファ41に格納される(ステップC
2)。次いで、プットポインタの内容が+1だけ更新さ
れ(ステップC3)、その更新されたプットポインタで指
定されるバッファつまり第2のバッファ42にクリアデー
タが書込まれる。これにより、第2のバッファ42は初期
化される。
Here, FIG. 6 shows a flowchart of the version number reading process as an example of the command process in step A4. In FIG. 6, when command processing is started. First, a response signal (ACK), that is, a response is stored (step B1). This response is a response to the reception of the command. Since this is the first response, the first buffer area 41 in FIG.
Is stored in The processing of step B1 is executed according to the processing order as shown in FIG. That is, first, a response is prepared (step C1), and the prepared response is stored in the buffer indicated by the put pointer of the RAM 13b, that is, the first buffer 41 (step C1).
2). Next, the content of the put pointer is updated by +1 (step C3), and the clear data is written to the buffer designated by the updated put pointer, that is, the second buffer 42. As a result, the second buffer 42 is initialized.

次に、第6図におけるバージョンナンバーセット(ス
テップB2)、およびキーボードタイプセット(ステップ
B3)の処理がステップB1と同様にして実行され、それぞ
れ準備されたレスポンスが所定のバッファに格納され
る。
Next, the version number set (step B2) and the keyboard type set (step
The processing of B3) is executed in the same manner as in step B1, and the prepared responses are stored in predetermined buffers.

このようにして、コマンド処理が終了すると第5図の
レスポンスチェック(ステップA3)が起動される。この
レスポンスチェックにおいては、第4図のバッファ41〜
46内にレスポンスが格納されているか否かがチェックさ
れ、格納されて無い場合には何もせずにキースキャンチ
ェック(A6)が実行される。一方、レスポンスが格納さ
れている場合には、レスポンスの送信が実行される(ス
テップA5)。
Thus, when the command processing is completed, the response check (step A3) shown in FIG. 5 is started. In this response check, the buffers 41 to 41 shown in FIG.
It is checked whether or not a response is stored in 46. If no response is stored, the key scan check (A6) is executed without doing anything. On the other hand, when the response is stored, the transmission of the response is executed (step A5).

ここで、レスポンスチェック(ステップA3)およびレ
スポンス送信(ステップA5)の処理を第8図および第9
図のフローチャートを参照して説明する。
Here, the processes of the response check (step A3) and the response transmission (step A5) are shown in FIGS.
This will be described with reference to the flowchart in FIG.

レスポンスチェックが起動されると、まずゲットポイ
ンタ47の内容が読出され(ステップD1)、次いでそのゲ
ットポインタにより指定されるバッファに格納されてい
るデータが読出される。そして、レスポンスの有無が判
定される(ステップD3)。このレスポンスの有無の判定
は、バッファから読出したデータがクリアデータか否か
を検出することによって実行される。レスポンスが無い
場合すなわちバッファから読出したデータがクリアデー
タの場合には、何も実行せずに第5図のレスポンスチェ
ック(ステップA3)を終了する。一方、レスポンスが有
る場合すなわちバッファから読出したデータがクリアデ
ータと異なる場合には、レスポンス送信のためのゲット
ポインタリード(ステップD4)およびバッファリード
(ステップD6)を実行した後に、ROM13cのデータ送信プ
ログラム26を起動することによってそのレスポンスを送
信する(ステップD6)。
When the response check is started, first, the contents of the get pointer 47 are read (step D1), and then the data stored in the buffer specified by the get pointer is read. Then, the presence or absence of a response is determined (step D3). The determination of the presence or absence of the response is performed by detecting whether the data read from the buffer is clear data. If there is no response, that is, if the data read from the buffer is clear data, nothing is executed and the response check (step A3) in FIG. 5 ends. On the other hand, if there is a response, that is, if the data read from the buffer is different from the clear data, after performing a get pointer read (step D4) and a buffer read (step D6) for transmitting the response, the data transmission program of the ROM 13c is executed. The response is transmitted by activating 26 (step D6).

次いで、このレスポンスの送信においてエラーが発生
したか否かが判断され(ステップD7)、エラーの場合に
は何もせずにそのレスポンス送信を終了する。この場
合、エラーが発生してもバッファにはそのレスポンスが
格納されているので、次のレスポンス送信時にそのレス
ポンスを送信することができる。
Next, it is determined whether or not an error has occurred in the transmission of this response (step D7). If an error has occurred, the response transmission is terminated without doing anything. In this case, even if an error occurs, the response is stored in the buffer, so that the response can be transmitted when the next response is transmitted.

レスポンス送信が正常に終了した場合には、第9図の
ステップD8〜D11の処理が実行される。すなわち、ゲッ
トポインタ47の内容がレジスタ31に読出され(ステップ
D8)、そのゲットポインタ47によって指定されるバッフ
ァがクリアされる(ステップD9)。次いで、レジスタ31
の内容が+1だけ更新された(ステップD10)後、その
更新されたレジスタ31の内容がゲットポインタ47に格納
される(ステップD11)。
When the response transmission is completed normally, the processing of steps D8 to D11 in FIG. 9 is executed. That is, the contents of the get pointer 47 are read out to the register 31 (step
D8), the buffer specified by the get pointer 47 is cleared (step D9). Then register 31
Is updated by +1 (step D10), the updated contents of the register 31 are stored in the get pointer 47 (step D11).

このようにして、レスポンスチェック(ステップA3)
およびレスポンス送信(ステップA5)の処理が終了する
と、キースキャンチェック(ステップA6)が起動され
る。
In this way, the response check (Step A3)
When the process of transmitting the response (Step A5) is completed, a key scan check (Step A6) is started.

このキースキャンチェックはCPU13aの内部タイマで決
まるタイミングを検出し、そのタイミングの時にキース
キャン処理(ステップA8)を実行させる。また、キース
キャンのタイミングで無い時は、キーコードチェック
(ステップA7)を実行させる。
This key scan check detects a timing determined by an internal timer of the CPU 13a, and executes a key scan process (step A8) at that timing. If it is not the key scan timing, a key code check (step A7) is executed.

キースキャン処理(ステップA8)では、キーボードの
キー配列がリードされ、その打鍵キーに応じたキーコー
ドが生成される。そして、そのキーコードは、ワーク領
域34に格納される。キーコードチェック(ステップA7)
では、キーコードの有無が判断され、キーコードがワー
ク領域34に格納されて無い場合にはステップA2の処理に
戻り、格納されている場合にはキーコードの送信処理
(ステップA9)が実行される。
In the key scanning process (step A8), the key arrangement of the keyboard is read, and a key code corresponding to the keystroke key is generated. Then, the key code is stored in the work area 34. Key code check (Step A7)
Then, the presence / absence of a key code is determined. If the key code is not stored in the work area 34, the process returns to step A2. If the key code is stored, the key code transmission process (step A9) is executed. You.

以上のようにして、コマンドチェック、レスポンスチ
ェック、キースキャンチェック、およびキーコードチェ
ックが繰返し起動されることによって、スキャンコント
ローラの動作が実行される。
As described above, the operation of the scan controller is executed by repeatedly starting the command check, the response check, the key scan check, and the key code check.

このスキャンコントローラ13においては、コマンド処
理によって生成された応答信号(レスポンス)がホスト
CPU11に直接送信されるのではなく、一旦格納手段に格
納される。そして、そのコマンド処理終了後に格納手段
に応答信号が格納されているか否かが検出され、格納さ
れている時にその応答信号がホストコンピュータに送出
される。このため、コマンド処理中にデータ送信不可状
態になっても、コマンド処理中に応答信号を再送する必
要がなく単に格納手段に格納するだけでよいので、スキ
ャンコントローラの全体の動作条件に影響を与えること
なく確実にレスポンスを送信することが可能になる。
In the scan controller 13, a response signal (response) generated by command processing is
The data is not directly transmitted to the CPU 11 but is temporarily stored in the storage unit. After completion of the command processing, it is detected whether or not a response signal is stored in the storage means. When the response signal is stored, the response signal is sent to the host computer. For this reason, even if the data transmission is disabled during the command processing, it is not necessary to retransmit the response signal during the command processing, and it is sufficient to simply store the response signal in the storage means, which affects the overall operation conditions of the scan controller. It is possible to send a response without any problem.

[発明の効果] 以上のように、この発明によれば、コマンド処理のレ
スポンス送信においてエラーが発生しても、スキャンコ
ントローラの全体の動作条件に影響を与えることなく、
確実にレスポンスを送信することができる。
[Effects of the Invention] As described above, according to the present invention, even if an error occurs in the transmission of a command processing response, the overall operation conditions of the scan controller are not affected.
The response can be transmitted reliably.

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

第1図はこの発明の一実施例に係わるスキャンコントロ
ーラを含むシステム構成を示すブロック図、第2図は第
1図に示したスキャンコントローラに設けられているRO
Mに記憶される内容を示す図、第3図は第1図に示した
スキャンコントローラに設けられているRAMに記憶され
る内容を示す図、第4図は第3図に示したRAM内のワー
ク領域を説明するための図、第5図乃至第9図はそれぞ
れ第1図に示したスキャンコントローラの動作を説明す
るフローチャートである。 11……ホストCPU、12……キーボードコントローラ、13
……キースキャンコントローラ、13a……CPU、13b……R
AM、13c……ROM。
FIG. 1 is a block diagram showing a system configuration including a scan controller according to an embodiment of the present invention. FIG. 2 is a block diagram showing an RO provided in the scan controller shown in FIG.
FIG. 3 is a diagram showing the contents stored in M, FIG. 3 is a diagram showing the contents stored in the RAM provided in the scan controller shown in FIG. 1, and FIG. 4 is a diagram showing the contents stored in the RAM shown in FIG. FIGS. 5 to 9 are diagrams for explaining the operation of the scan controller shown in FIG. 1, respectively. 11: Host CPU, 12: Keyboard controller, 13
…… Key scan controller, 13a …… CPU, 13b …… R
AM, 13c …… ROM.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】打鍵キーに応じたキーコードをキースキャ
ン操作によって生成するスキャンコントローラにおい
て、 ホストコンピュータからのコマンドに応じた処理を実行
すると共に、そのコマンド処理の過程で生成した応答信
号を発生するコマンド処理手段と、このコマンド処理手
段によって生成された応答信号が格納される格納手段
と、前記コマンド処理手段のコマンド処理が終了した後
に前記格納手段に応答信号が格納されているか否かを検
出し、格納されている時にその応答信号を前記ホストコ
ンピュータへ送出する応答信号送出手段とを具備するこ
とを特徴とするスキャンコントローラ。
1. A scan controller for generating a key code corresponding to a keystroke key by a key scan operation, executes a process corresponding to a command from a host computer, and generates a response signal generated in the process of the command processing. Command processing means, storage means for storing a response signal generated by the command processing means, and detecting whether a response signal is stored in the storage means after the command processing of the command processing means is completed. And a response signal transmitting means for transmitting a response signal to the host computer when the response signal is stored.
JP1135196A 1989-05-29 1989-05-29 Scan controller Expired - Fee Related JP2653514B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1135196A JP2653514B2 (en) 1989-05-29 1989-05-29 Scan controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1135196A JP2653514B2 (en) 1989-05-29 1989-05-29 Scan controller

Publications (2)

Publication Number Publication Date
JPH031211A JPH031211A (en) 1991-01-07
JP2653514B2 true JP2653514B2 (en) 1997-09-17

Family

ID=15146094

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1135196A Expired - Fee Related JP2653514B2 (en) 1989-05-29 1989-05-29 Scan controller

Country Status (1)

Country Link
JP (1) JP2653514B2 (en)

Also Published As

Publication number Publication date
JPH031211A (en) 1991-01-07

Similar Documents

Publication Publication Date Title
JPS5930353B2 (en) Information transmitting and receiving device
JP2653514B2 (en) Scan controller
US5146584A (en) Keyboard interface system allowing a synchronous keyboard to communicate with a host processor asynchronously by manipulating the keyboard clock's state
JPH0374946A (en) Error control system in data communication
JP3293143B2 (en) Data transmission system
JP3110124B2 (en) Failure detection method in multi-computer system
JPS6253046A (en) Communication equipment for data of industrial robot
JP2644571B2 (en) Remote IPL control method
JPS59173819A (en) Input device
JP2982811B2 (en) Access control device
JPS61201339A (en) Interrupt control method and apparatus
JPH1023562A (en) Radio transmission system and remote operating method
JPH0962531A (en) Tested result collating method
JPH0417454B2 (en)
JPH02116933A (en) Control system for maneuvering apparatus
JP2005165401A (en) Electronic device and method for obtaining code
JPH10240414A (en) Keyboard log information output device
JPH01211112A (en) Keyboard input device
JPS5886632A (en) Data processor
JPH08149153A (en) Virtual buffer control system in relay computer
JPH03154951A (en) Data processor
JPS5942335B2 (en) Interrupt method for character processing
JPH09114618A (en) Output data management system
JPS5983431A (en) Method for controlling data transmission
JPS60114050A (en) Monitor device of data reception

Legal Events

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