JPS61282908A - Repeat control system - Google Patents

Repeat control system

Info

Publication number
JPS61282908A
JPS61282908A JP60124756A JP12475685A JPS61282908A JP S61282908 A JPS61282908 A JP S61282908A JP 60124756 A JP60124756 A JP 60124756A JP 12475685 A JP12475685 A JP 12475685A JP S61282908 A JPS61282908 A JP S61282908A
Authority
JP
Japan
Prior art keywords
key
repeat
information
key input
operated
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP60124756A
Other languages
Japanese (ja)
Inventor
Yutaka Kaneko
豊 金子
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric Co Ltd
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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP60124756A priority Critical patent/JPS61282908A/en
Publication of JPS61282908A publication Critical patent/JPS61282908A/en
Pending legal-status Critical Current

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

PURPOSE:To reduce the burden of a CPU in the computer body side by providing a keyboard with a keyboard controller which discriminates key input information from a key matrix circuit at intervals of a certain time and adds repeat information to key input information to send it. CONSTITUTION:A keyboard-side keyboard controller 2 discriminates key input information from a key matrix circuit 1 at intervals of a certain time to discriminate the presence/absence of key input and operation of the same key or not. While a key is operated, repeat information indicating whether the same key is operated or not is added to key input information of the operated key and is sent to the computer body side at intervals of a certain time. A CPU 4 is interrupted by key input from the keyboard controller and discriminates inputted repeat information in this interrupt processing and performs the repeat control on a basis of numerical information designating a repeat interval and an interval to the repeat start.

Description

【発明の詳細な説明】 (イ)産業上の利用分野 本発明は、キーボードにおけるキーのリピート制御方式
に係り、特に、リピート間隔が可変な同方式に関する。
DETAILED DESCRIPTION OF THE INVENTION (A) Field of Industrial Application The present invention relates to a key repeat control method in a keyboard, and particularly to the same method in which the repeat interval is variable.

(4従来の技術 特開昭59−149530号公報には、リピート間隔を
指定する数値情報が、リピート可能な各種キーのキー入
力情報にそれぞれ対応して登録されているテーブルを用
い、リピート間隔を各キー毎に変化させる技術が開示さ
れている。
(4) Conventional technology Japanese Unexamined Patent Publication No. 149530/1983 uses a table in which numerical information specifying the repeat interval is registered corresponding to key input information for various keys that can be repeated. A technique for changing each key is disclosed.

この従来技術においては、キーボードコントローラが所
定時間間隔でキースキャンを行ない、その検出キーのキ
ーコードをキーレジスタに倉敷する。そして、中央処理
装置(以下、CPUと呼ぶ)が、タイマからの一定時間
毎の割込入タイミングで、キーレジスタの内容を読入込
む。この読み込みにより、同一のキーに関するリピート
動作が必要であることが検出された場合、読み取られた
キー入力情報に対応する上記テーブル内の上記数値情報
に相当する時間間隔で、当該キー入力情報をキーバッフ
ァにストアする。
In this prior art, a keyboard controller performs key scanning at predetermined time intervals and stores the key code of the detected key in a key register. Then, the central processing unit (hereinafter referred to as CPU) reads the contents of the key register at predetermined interrupt timing from the timer. If it is detected through this reading that a repeat operation regarding the same key is required, the key input information is displayed on the key at a time interval corresponding to the above numerical information in the above table corresponding to the read key input information. Store in buffer.

(ハ)発明が解決しようとする問題点 通常、キーボードコントローラはキーボード側に存在し
CPUはコンピュータ本体側に存在し、このCPUはキ
ーボード関連の処理の他に、表示やメモリ制御等積々の
処理を行なわなくてはならない。ところが、上記した従
来技術では、キーボードからのキー入力の有無にかかわ
らず、コンピュータ本体側のCPUがキーレジスタの内
容を、l0m5等の一定時間毎に逐次読入込まなくては
ならず、このため、CPUの負担が太き(なるという問
題があった。
(c) Problems to be solved by the invention Normally, the keyboard controller is located on the keyboard side, and the CPU is located on the computer main body side.In addition to keyboard-related processing, this CPU also performs a variety of processing such as display and memory control. must be carried out. However, in the above-mentioned conventional technology, the CPU on the computer main body side must read the contents of the key register sequentially at fixed time intervals such as 10m5, regardless of whether there is a key input from the keyboard. , there was a problem that the load on the CPU was heavy.

に)問題点を解決するための手段 本発明は、キーボード側に、キーマトリクス回路と、該
キーマトリクス回路からのキー入力情報を一定時間毎に
判定し、同一キーが操作されているか否かを示すリピー
ト情報を、キー入力情報に付加して送出するキーボード
コントローラトラ有し、コンピュータ本体側に、リピー
ト間隔及びリピート開始までの間隔を指定する数値情報
を記憶するメモリと、中央処理装置とを有し、該中央処
理装置は、前記キーボードコントローラからのキー入力
により割込みがかけられ、該割込み処理において、前記
リピート情報を判定し、前記数値情報に基づくリピート
制御を行なうようにしたものである。
B) Means for Solving the Problems The present invention includes a key matrix circuit on the keyboard side, and a system that determines key input information from the key matrix circuit at regular intervals to determine whether or not the same key is being operated. The computer has a keyboard controller that sends out repeat information that is added to the key input information, and has a central processing unit and a memory that stores numerical information that specifies the repeat interval and the interval until the start of the repeat on the computer main body side. The central processing unit is interrupted by a key input from the keyboard controller, and in the interrupt processing, determines the repeat information and performs repeat control based on the numerical information.

(ホ)作用 本発明では、キーボード側のキーボードコントローラが
、キーマトリクス回路からのキー入力情報を一定時間毎
に判定し、キー入力の有無及び同一キーが操作されてい
るか否かを判断する。そして、キーの操作中は、同一キ
ーが操作されているか否かを示すリピート情報を、操作
キーのキー入力情報に付加して一定時間間隔でコンビエ
ータ本体側へ送出する。キーが操作されていないときは
、キー入力情報の送出は行なわれない。
(E) Function In the present invention, the keyboard controller on the keyboard side determines key input information from the key matrix circuit at regular intervals, and determines whether there is a key input or not and whether the same key is being operated. While a key is being operated, repeat information indicating whether the same key is being operated is added to the key input information of the operating key and sent to the combiator main body at regular time intervals. When no key is operated, key input information is not sent.

コンビエータ本体側のCPUは、キーボードコントロー
ラからのキー入力により割込入がかけられ、この割込み
処理において、入力されたリヒート情報を判定し、リピ
ート間隔及びリピート開始までの間隔を指定する数値情
報に基づいて、リピート制御を行なう。従って、CPU
のリピート制御処理は、キーが操作されている間のみ行
なわれ、キーが操作されていない間は、他の処理を実行
できる。
The CPU on the Combiator main body side is interrupted by a key input from the keyboard controller, and in this interrupt processing, the CPU judges the input reheat information and based on the numerical information specifying the repeat interval and the interval until the start of the repeat. to perform repeat control. Therefore, the CPU
The repeat control process is performed only while the key is being operated, and other processes can be executed while the key is not being operated.

(へ)実施例 第1図は、本発明の一実施例の構成を示すブロック図で
あり、キーボード側に、キーマトリクス回路(1)、キ
ーボードコントローラ(2)、タイマー(3)を備え、
コンビエータ本体側に、CPU(4)、入力されたキー
アドレスを対応するキャラクタコード等のキーデータに
変換するための変換テーブル(5)、変換されたキーデ
ータを格納するキーバッファ(6)、キーマトリクス回
路(1)の全てのキーに対し、各々、リピート開始まで
の間隔及びリピート間隔を指定する第1初期値及び第2
初期値を記憶するリピートテーブル(力を備えている。
(F) Embodiment FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, which includes a key matrix circuit (1), a keyboard controller (2), and a timer (3) on the keyboard side.
The main body of the combiator includes a CPU (4), a conversion table (5) for converting an input key address into key data such as a corresponding character code, a key buffer (6) for storing the converted key data, and a key For all keys of the matrix circuit (1), a first initial value and a second value specifying the interval until the start of repeat and the repeat interval, respectively.
A repeat table that stores initial values (with power).

キーボードコントローラ(2)からCPU(41に送出
されるキーコードは、第2図に示すように、7ビツトの
キーアドレスと1ピツトのリピートフラグから成り、こ
のキーコードはシリアルに転送される。又、リピートテ
ーブル(7)ハ、RAM等の書き換え可能なメモリで構
成されている。
As shown in FIG. 2, the key code sent from the keyboard controller (2) to the CPU (41) consists of a 7-bit key address and a 1-bit repeat flag, and this key code is transferred serially. , repeat table (7) C, is composed of a rewritable memory such as RAM.

次に、本実施例の動作を説明する。Next, the operation of this embodiment will be explained.

キーボードコントローラ(2)ヲ工、タイマー(3)に
より一定時間、例えば10ffls毎に割込みがかけら
れ、割込入ルーチンにおいて、第3図のフローチャート
で示す処理を行なう。
An interrupt is generated by the keyboard controller (2) and the timer (3) at fixed time intervals, for example, every 10 ffls, and in the interrupt routine, the processing shown in the flowchart of FIG. 3 is performed.

即ち、キーマトリクス回路11)をスキャンし、先ず、
キー入力の有無、つまり、いずれかのキーが操作されて
いるか判定する。キー入力が有るときは、入力されたキ
ーアドレスがキーレジスタ(8)の内容と同一か否かを
判定することにより、同一キーが操作されているか否か
判断する。そして、同一キーでない場合は、そのキーア
ドレスをキーレジスタ(8)にセットした後、リピート
フラグをオフとし、このリピートフラグをキーアドレス
に付加して、コンビエータ本体側へ送出する。同一キー
である場合は、リピートフラグをオンとし、同様ニキー
コードを送出する。キースキャンの際、キー入力が無け
れば、キーコードの送出は行なわなこのように、キーボ
ードコントローラ(2)is、キ−が操作されている間
の入、一定時間間隔でキーコードを送出する。
That is, the key matrix circuit 11) is scanned, and first,
Determine whether there is a key input, that is, whether any key is being operated. When there is a key input, it is determined whether the input key address is the same as the contents of the key register (8), thereby determining whether the same key is being operated. If the keys are not the same, the key address is set in the key register (8), the repeat flag is turned off, the repeat flag is added to the key address, and the key address is sent to the combiator main body. If it is the same key, the repeat flag is turned on and the same key code is sent out. During key scanning, if there is no key input, the key code is not sent out.In this way, the keyboard controller (2) is turned on while the keys are being operated, and the key code is sent out at fixed time intervals.

コンピュータ本体側のCP U (4141、キーコー
ドの入力KJ:り割込みがかけられるよう構成されてお
り、この割込入ルーチンで、第4図のフローチャートで
示す処理を行なう。
The CPU (4141, key code input KJ) on the computer main body side is configured to be interrupted, and this interrupt routine performs the processing shown in the flowchart of FIG.

即ち、シリアル転送されたリピートフラグの状態を判定
し、オンであれば、リピートテーブル(7)を参照して
、入力キーアドレスに対応する第1初期値をロードし、
CPU(4)の内部のリピートカウンタ(9)ヘセット
する。そして、キーアドレスを変換テープlL/(5)
を用いてキーデータに変換し、キーバッファ(6)へ格
納する。
That is, the state of the serially transferred repeat flag is determined, and if it is on, the first initial value corresponding to the input key address is loaded with reference to the repeat table (7);
Set the repeat counter (9) inside the CPU (4). Then convert the key address to the tape LL/(5)
is used to convert it into key data and store it in the key buffer (6).

一方、リピートフラグがオフであれば、先ず、リピート
カウンタ(9)の内容が「0」か否か判定し、「0」の
ときはリピートカウンタ(9)をディクリメントする。
On the other hand, if the repeat flag is off, first it is determined whether the content of the repeat counter (9) is "0" or not, and if it is "0", the repeat counter (9) is decremented.

「0」でないときは、リピートテーブル(力を参照して
、入力キーアドレスに対応する第2初期値をロードし、
リピートカウンタ(9)ヘセットシ、同様に、キーアド
レスをキーデータに変換し、キーバッファ(6)へ格納
する。
If it is not "0", load the second initial value corresponding to the input key address by referring to the repeat table (force),
Similarly, the repeat counter (9) converts the key address into key data and stores it in the key buffer (6).

以上の処理により、第1及び第2初期値に相当する時間
間隔でのリピート制御が為される。
Through the above processing, repeat control is performed at time intervals corresponding to the first and second initial values.

リピートさせたくないキーについては、第2初期値とし
て「0」を登録しておけば、第4図の70−チャートで
示すように、CPU(41は、ロードされた第2初期値
が「0」であるか否か判定し、「0」のときはキーデー
タをキーバッファ(6)へ格納しないので、リピートは
行なわれない。
For keys that you do not want to repeat, if you register "0" as the second initial value, as shown in the 70-chart in FIG. ”, and if it is “0”, the key data is not stored in the key buffer (6), so no repeat is performed.

以上、説明したように、コンビーータ本体側のCPU(
4)は、キーコードが入力されたときだけ、即ち、キー
が操作されている間の入、リピート制御を行ない、キー
が操作され工いないときは、リピートに関する処理は一
切行なわない。
As explained above, the CPU (
4) performs input and repeat control only when a key code is input, that is, while a key is being operated, and does not perform any repeat-related processing when no key is operated.

ところで、リピートテーブル(7)への第1及び第2初
期値の登録は、プログラムを記憶したディスクQ1をデ
ィスクドライブ装置αυに装着し、このプログラムによ
り、CP U(4)を介して行なえばよい。
By the way, the first and second initial values can be registered in the repeat table (7) by inserting the disk Q1 storing the program into the disk drive device αυ and using this program via the CPU (4). .

上述の実施例において、第1初期値を各キーに対して各
々記憶したが、各キー共通で良ければ、唯一つ記憶する
だけでもよい。又、各キー全てについて、各々、初期値
を登録する必要はなく、カーソルキー等特定のキーにつ
いての入初期値を各々登録し、他のキーについては共通
の初期値を用いてもよい。
In the above-described embodiment, the first initial value is stored for each key, but if the first initial value is common to each key, only one value may be stored. Further, it is not necessary to register initial values for all keys, but it is also possible to register input initial values for specific keys such as cursor keys, and use a common initial value for other keys.

更には、キー毎にリピート間隔を変化させる必要がなく
、プログラム毎あるいは使用するキーマトリクス毎に変
化させるだけで十分なときは、リピートテーブル(7)
には、各キー共通の初期値とし℃、第1及び第2の初期
値を各々一つづつ登録するだけでよい。例えば、ワード
プロセッサ用プログラムにおいては、第1及び第2初期
値として「60」及び「6」を、グラフィック処理用プ
ログラムにおいては、第1及び第2初期値として同一の
「6」を、というように、実行させるプログラムによっ
て異なる初期値の登録を行なえば良い。
Furthermore, if it is not necessary to change the repeat interval for each key, but it is sufficient to change it for each program or key matrix used, use the repeat table (7).
To do so, it is only necessary to register one initial value each of °C, first and second initial values as common initial values for each key. For example, in a word processor program, "60" and "6" are set as the first and second initial values, and in a graphics processing program, the same "6" is set as the first and second initial values. , it is sufficient to register different initial values depending on the program to be executed.

又、使用するキーマトリクス毎に異なる初期値の登録を
行なえば良い。
Also, different initial values may be registered for each key matrix used.

(ト)発明の効果 本発明に依れば、リピート間隔を可変とし、且つ、コン
ビーータ本体側のCPUの負担を軽減できる。
(G) Effects of the Invention According to the present invention, the repeat interval can be made variable and the load on the CPU on the combiner main body side can be reduced.

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

第1図は本発明の一実施例の構成を示すブロツ内容を示
すフローチャートである。 主な図番の説明 (1)・・・キーマトリクス回路、(2)・・・キーボ
ードコントローラ、  (4)・・・CP U、+61
・・・キーバッファ、(7)・・・リピートテーブル、
(9)・・・リピートカウンタ。 出願人 三洋電機株式会社 外1名 代理人 弁理士  佐 野 靜 夫 第3図 第2図 44図
FIG. 1 is a flowchart showing the contents of a blog showing the configuration of an embodiment of the present invention. Explanation of main drawing numbers (1)...Key matrix circuit, (2)...Keyboard controller, (4)...CPU, +61
...Key buffer, (7)...Repeat table,
(9)...Repeat counter. Applicant Sanyo Electric Co., Ltd. and 1 other representative Patent attorney Masao Sano Figure 3 Figure 2 Figure 44

Claims (1)

【特許請求の範囲】[Claims] (1)キーボード側に、キーマトリクス回路と、該キー
マトリクス回路からのキー入力情報を一定時間毎に判定
し、同一キーが操作されているか否かを示すリピート情
報を、キー入力情報に付加して送出するキーボードコン
トローラとを有し、コンピュータ本体側に、リピート間
隔及びリピート開始までの間隔を指定する数値情報を記
憶するメモリと、中央処理装置とを有し、該中央処理装
置は、前記キーボードコントローラからのキー入力によ
り割込みがかけられ、該割込み処理において、前記リピ
ート情報を判定し、前記数値情報に基づくリピート制御
を行なうようにしたことを特徴とするリピート制御方式
(1) On the keyboard side, a key matrix circuit judges the key input information from the key matrix circuit at regular intervals and adds repeat information to the key input information indicating whether or not the same key is being operated. The computer main body side includes a memory that stores numerical information specifying a repeat interval and an interval until the start of repeat, and a central processing unit, and the central processing unit A repeat control method characterized in that an interrupt is generated by a key input from a controller, the repeat information is determined in the interrupt processing, and repeat control is performed based on the numerical information.
JP60124756A 1985-06-07 1985-06-07 Repeat control system Pending JPS61282908A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60124756A JPS61282908A (en) 1985-06-07 1985-06-07 Repeat control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60124756A JPS61282908A (en) 1985-06-07 1985-06-07 Repeat control system

Publications (1)

Publication Number Publication Date
JPS61282908A true JPS61282908A (en) 1986-12-13

Family

ID=14893336

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60124756A Pending JPS61282908A (en) 1985-06-07 1985-06-07 Repeat control system

Country Status (1)

Country Link
JP (1) JPS61282908A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5789132A (en) * 1980-11-20 1982-06-03 Ibm Keyboard-access device
JPS58192130A (en) * 1982-05-04 1983-11-09 Sanyo Electric Co Ltd Key input device
JPS59149530A (en) * 1983-02-16 1984-08-27 Toshiba Corp Control system for repeating interval

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5789132A (en) * 1980-11-20 1982-06-03 Ibm Keyboard-access device
JPS58192130A (en) * 1982-05-04 1983-11-09 Sanyo Electric Co Ltd Key input device
JPS59149530A (en) * 1983-02-16 1984-08-27 Toshiba Corp Control system for repeating interval

Similar Documents

Publication Publication Date Title
JPS61282908A (en) Repeat control system
US4831572A (en) Polynomial vector arithmetic operation control system
JPS5981726A (en) Word processor
JP3630170B2 (en) Robot controller
JPH063459Y2 (en) Keyboard device
JP3254402B2 (en) Data merge transfer device
JP2786099B2 (en) Input device of information processing device
JPS61177526A (en) Converting method of key code
JPH064331A (en) Decimal check circuit
JP3241715B2 (en) Document processing device
JPS62293432A (en) Information processor
KR950006824B1 (en) Back tap control method in electronic typewriter
JPH05289846A (en) Code converter
JPS6224806B2 (en)
JPH03105504A (en) Programmable controller
JPS63722A (en) Keyboard
JPS63253429A (en) Keyboard device
JPH01129317A (en) Key control system
JPH01113806A (en) Sequence controller
JPH01196619A (en) Key input control device
JPS5999484A (en) Character input display system
JPH01147615A (en) Console control system
JPH01129318A (en) Information processor
JPS6235934A (en) Automatic scan type keyboard input control system
JPS63268026A (en) Display device