JPH0578047B2 - - Google Patents

Info

Publication number
JPH0578047B2
JPH0578047B2 JP58024213A JP2421383A JPH0578047B2 JP H0578047 B2 JPH0578047 B2 JP H0578047B2 JP 58024213 A JP58024213 A JP 58024213A JP 2421383 A JP2421383 A JP 2421383A JP H0578047 B2 JPH0578047 B2 JP H0578047B2
Authority
JP
Japan
Prior art keywords
key
counter
stored
initial setting
setting value
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 - Lifetime
Application number
JP58024213A
Other languages
Japanese (ja)
Other versions
JPS59149530A (en
Inventor
Katsumi Amano
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
Original Assignee
Tokyo Shibaura 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 Tokyo Shibaura Electric Co Ltd filed Critical Tokyo Shibaura Electric Co Ltd
Priority to JP58024213A priority Critical patent/JPS59149530A/en
Publication of JPS59149530A publication Critical patent/JPS59149530A/en
Publication of JPH0578047B2 publication Critical patent/JPH0578047B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/0227Cooperation and interconnection of the input arrangement with other functional units of a computer

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Input From Keyboards Or The Like (AREA)

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明はリピート可能なキーを有するキーボー
ドからのキー入力情報に対する入力処理に好適す
るリピート間隔制御方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a repeat interval control method suitable for input processing of key input information from a keyboard having repeatable keys.

〔発明の技術的背景とその問題点〕[Technical background of the invention and its problems]

一般に、リピート可能なキーのリピート間隔
は、キーの種別に無関係に同一であつた。このた
め、例えば第1図に示されるように縦25行、横80
カラムの横長の表示画面上で縦方向にカーソルを
リピートさせて移動させる場合と、横方向に移動
させる場合とでは、上述のようにリピート間隔が
同じ(例えば10キー/秒)だと横方向のカーソル
の動きが著しく遅く感じられることがあつた。
Generally, the repeat interval of repeatable keys has been the same regardless of the type of key. For this reason, for example, as shown in Figure 1, there are 25 lines in the vertical direction and 80 lines in the horizontal direction.
When moving the cursor by repeating it vertically on a horizontally long display screen of a column, and when moving it horizontally, if the repeat interval is the same (for example, 10 keys/second) as described above, the horizontal There were times when the cursor movement felt extremely slow.

〔発明の目的〕[Purpose of the invention]

本発明は上記事情に鑑みてなされたものでその
目的は、リピート可能なキーのリピート間隔を各
キー毎に変化させることができるリピート間隔制
御方式を提供することにある。
The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a repeat interval control method that can change the repeat interval of repeatable keys for each key.

〔発明の概要〕[Summary of the invention]

本発明は、キーバツフアへのストア時に当該キ
ーバツフアにストアすべきキー入力情報の個数を
指定する数値情報がリピート可能な各種キーのキ
ー入力情報にそれぞれ対応して登録されているテ
ーブルを用い、キーボードからのキー入力情報を
一定時間毎に読み取ることにより同一のキーに関
するリピート動作が必要であることが検出されて
いる場合に、上記読み取られたキー入力情報に対
応する上記テーブル内の上記数値情報で指定され
いる個数の当該キー入力情報を所定時間間隔でそ
の都度上記キーバツフアにストアすることによつ
て、結果的にリピート間隔が各キー毎に変えられ
るようにしたことを特徴とするものである。
The present invention uses a table in which numerical information specifying the number of key input information to be stored in the key buffer when stored in the key buffer is registered corresponding to the key input information of various repeatable keys. If it is detected that a repeat operation regarding the same key is required by reading the key input information at regular intervals, specify with the above numerical information in the table that corresponds to the read key input information. The present invention is characterized in that the number of pieces of key input information is stored in the key buffer at predetermined time intervals, thereby making it possible to change the repeat interval for each key.

〔発明の実施例〕[Embodiments of the invention]

以下、本発明の一実施例を図面を参照して説明
する。第2図は本発明が適用される端末装置の要
部構成を示すもので、21はリピート可能なキー
を含む各種キー(図示せず)を有するキーボー
ド、22はキーボードコントローラ(以下、
KBCと称する)である。23はKBC22で検出
されたキーのキーコード(キーデータ、キー入力
情報)が置数されるキーレジスタ(以下、KRG
と称する)、24はキーバツフア(以下、KBUF
と称する)である。KBUF24にはKRG23か
らのデータ(キーコード)がデイスプレイ装置
(図示せず)に表示されるまでの間格納される。
25はCPU、26はタイマである。CPU25は
タイマ26の間隔をタイマ26からの割込みで知
ることができる。27はリピート間隔を指定する
数値情報、例えばリピート間隔を決定するカウン
タ(図示せず)に対する初期設定値がリピート可
能な各種キーのキーコードにそれぞれ対応して登
録されているテーブルである。なお、テーブル2
7内に図示されているK1,K2,……Knはキー
コード、数値10,5,……10は初期設定値を示し
ている。
Hereinafter, one embodiment of the present invention will be described with reference to the drawings. FIG. 2 shows the main configuration of a terminal device to which the present invention is applied, in which 21 is a keyboard having various keys (not shown) including repeatable keys, and 22 is a keyboard controller (hereinafter referred to as
(referred to as KBC). 23 is a key register (hereinafter referred to as KRG) in which the key code (key data, key input information) of the key detected by KBC22 is stored.
24 is KBUF (hereinafter referred to as KBUF), 24 is KBUF
). The data (key code) from the KRG 23 is stored in the KBUF 24 until it is displayed on a display device (not shown).
25 is a CPU, and 26 is a timer. The CPU 25 can know the interval of the timer 26 by an interrupt from the timer 26. Reference numeral 27 denotes a table in which numerical information specifying the repeat interval, for example, an initial setting value for a counter (not shown) determining the repeat interval, is registered corresponding to the key code of each repeatable key. In addition, table 2
K1, K2, . . . Kn shown within 7 are key codes, and numerical values 10, 5, . . . 10 are initial setting values.

次に本発明の一実施例の動作を第3図のフロー
チヤートを参照して説明する。KBC22はキー
ボード21に対して所定時間間隔でキースキャン
を行ない、その検出キーのキーコードをKRG2
3に置数する。CPU25はタイマ26からの一
定時間毎の割込みのタイミングでKRG23の内
容を読み込む(ステツプS1)。CPU25はKRG
23からの読み込みデータが前回の読み込みデー
タと同じであるか否かの判定を行なう(ステツプ
S2)。ステツプS2での判定がNO判定の場合、
CPU25はリピート可能なキーからのデータで
あるか否かを判定する(ステツプS3)。ステツプ
S3での判定がYES判定の場合、CPU25はCPU
25内部の図示せぬカウンタにリピート開始まで
の間隔を指定する初期設定値(第1種初期設定
値)をセツトする(ステツプS4)。この設定値は
プログラムによつて自由に選択指定することがで
きる。次にCPU25はKRG23の内容をKBUF
24にストアし(ステツプS5)、他の処理ルーチ
ンに進む。
Next, the operation of one embodiment of the present invention will be explained with reference to the flowchart of FIG. The KBC22 performs a key scan on the keyboard 21 at predetermined time intervals, and converts the key code of the detected key to the KRG2.
Set the number to 3. The CPU 25 reads the contents of the KRG 23 at the interrupt timing from the timer 26 at regular intervals (step S1). CPU25 is KRG
23 is the same as the previous read data (step
S2). If the judgment in step S2 is NO,
The CPU 25 determines whether the data is from a repeatable key (step S3). step
If the judgment in S3 is YES, CPU25 is
An initial setting value (first type initial setting value) specifying an interval until the start of repeat is set in a counter (not shown) inside 25 (step S4). These setting values can be freely selected and designated by the program. Next, CPU25 reads the contents of KRG23 as KBUF.
24 (step S5) and proceed to other processing routines.

そして、タイマ26から再び割込みがあると
CPU25は上記ステツプS1,S2を順に実行する。
このとき、前回と同じキーコードがKRG23に
置数されていれば、ステツプS2での判定は
YES判定となり、CPU25はステツプS6を実行
する。このステツプS6は、上述したステツプS3
と同様に、リピート可能なキーからのデータであ
るか否かの判定ステツプである。ステツプS6で
の判定がYES判定の場合、CPU25はカウンタ
を1だけデクリメントする(ステツプS7)。次に
CPU25はカウンタの内容が0であるか否かの
判定を行ない(ステツプS8)、NO判定の場合に
は他の処理ルーチンに進む。そして、タイマ26
から次の割込みがあると、上記ステツプS1に戻
る。したがつて、前記ステツプS4でカウンタに
初期設定値(第1種初期設定値)がセツトされた
後も同一のリピート可能なキーからのキーコード
が検出れている限り当該カウンタは上記割込み
(タイマ割込み)の都度デクリメントされる。
Then, when there is another interrupt from timer 26,
The CPU 25 sequentially executes steps S1 and S2.
At this time, if the same key code as last time is set in KRG23, the judgment in step S2 is
The determination is YES, and the CPU 25 executes step S6. This step S6 is the step S3 described above.
Similarly, this is a step for determining whether the data is from a repeatable key. If the determination in step S6 is YES, the CPU 25 decrements the counter by 1 (step S7). next
The CPU 25 determines whether the contents of the counter are 0 or not (step S8), and if the determination is NO, the process proceeds to another processing routine. And timer 26
When the next interrupt occurs, the process returns to step S1. Therefore, even after the initial setting value (first type initial setting value) is set in the counter in step S4, as long as a key code from the same repeatable key is detected, the counter will not interrupt the interrupt (timer). (interrupt) is decremented each time.

しかして、カウンタの内容が0になると、上記
ステツプS8での判定がYES判定となり、CPU2
5は当該カウンタにリピート間隔を決定する初期
設定値(第2種初期設定値)をセツトする(ステ
ツプS9)。この初期設定値は、KRG23から読み
込んだキーコードをインデツクスデータとしてテ
ーブル27を索引することにより得られるもので
ある。次にCPU25は前記ステツプS5を実行し、
KRG23の内容をKBUF24にストアして他の
処理ルーチンに進む。そして、タイマ26から次
の割込みがあると、CPU25は上記ステツプS1
の実行に戻る。したがつて、ステツプS9でカウ
ンタに初期設定値(第2種初期設定値)がセツト
された後も同一のリピート可能なキーからのキー
コードが検出されている限り当該カウンタはタイ
マ割込みの都度デクリメントされる。このように
して、カウンタの内容が0になると、上述したよ
うに当該カウンタにテーブル27から得られる初
期設定値がセツトされ、しかる後KRG23の内
容がKBUF24にストアされる。明らかなよう
に、同一のキーコードがKBUF24にストアさ
れるその時間間隔、すなわちリピート間隔は、タ
イマ26からの割込みの間隔(タイマ割込み間
隔)×初期設定値(第2種初期設定値)となる。
例えばタイマ割込み間隔が10msecのときに、ス
テツプS9でカウンタに10がセツトされるならば、
リピート間隔は0.1秒となり、該当キーは10キ
ー/秒でリピートする。このリピート速度を倍に
したい場合には、カウンタに5をセツトすればよ
い。
When the contents of the counter become 0, the determination in step S8 becomes YES, and the CPU 2
Step 5 sets an initial setting value (second type initial setting value) for determining the repeat interval in the counter (step S9). This initial setting value is obtained by indexing the table 27 using the key code read from the KRG 23 as index data. Next, the CPU 25 executes step S5,
The contents of KRG23 are stored in KBUF24 and the process proceeds to other processing routines. Then, when the next interrupt is received from the timer 26, the CPU 25 executes the above step S1.
Return to execution. Therefore, even after the initial setting value (type 2 initial setting value) is set in the counter in step S9, as long as a key code from the same repeatable key is detected, the counter is decremented every time a timer interrupt occurs. be done. In this way, when the content of the counter becomes 0, the initial setting value obtained from the table 27 is set in the counter as described above, and then the content of the KRG 23 is stored in the KBUF 24. As is clear, the time interval at which the same key code is stored in the KBUF 24, that is, the repeat interval, is the interrupt interval from the timer 26 (timer interrupt interval) x the initial setting value (type 2 initial setting value). .
For example, if the timer interrupt interval is 10 msec and the counter is set to 10 in step S9, then
The repeat interval is 0.1 seconds, and the corresponding key is repeated at 10 keys/second. If you want to double this repeat speed, just set 5 in the counter.

なお、前記実施例では、テーブル27は、リピ
ート間隔を指定する数値情報(カウンタに対する
初期設定値)がリピート可能な各種キーのキーコ
ードにそれぞれ対応して登録されているテーブル
であるとして説明したが、KBUF24に1回の
ストアタイミングでストアすべきキーコードの個
数を示す数値情報が各種キーコードに対応して登
録されているテーブルであつてもよい。この場
合、CPU25の制御動作も前記実施例とは一部
異なつてくる。これについて、上述のように前記
実施例とは一部構成が異なるものの便宜的に第2
図のブロツク構成図を用い、かつ新たに第4図の
フローチヤートを用いて簡単に説明する。なお、
第4図において、第3図のフローチヤートで示さ
れている処理ステツプと、同一ステツプには同一
符号が付されている。CPU25の制御動作が前
記実施例と異なる点は、カウンタの内容が0にな
つたか否かの判定ステツプ(ステツプS8)で
YES判定となつた場合に、当該カウンタにキー
検出内容(キーコード)に無関係に共通の初期設
定値(第3種初期設定値)をセツトする(ステツ
プS9′)ことである。CPU25の制御動作の前記
実施例と更に異なる点は、カウンタの内容が0に
なつたことが検出され、当該カウンタに上述した
初期設定値がセツトされた後に行なわれる
KBUF24へのストア動作である。すなわち、
CPU25はステツプS9′でカウンタに初期設定値
(第3種初期設定値)をセツトした後に、KRG2
3の内容であるキーコードを、当該キーコードに
固有の個数だけKBUF24にストアする(ステ
ツプS5′)。この個数、すなわち1回のストアタイ
ミングでKBUF24にストアすべきキーコード
の個数は、KRG23から読み込んだキーコード
をインデツクスデータとしてテーブル27を索引
することにより得られるものである。
In the above embodiment, the table 27 was described as a table in which numerical information specifying the repeat interval (initial setting value for the counter) is registered corresponding to the key codes of various repeatable keys. , the KBUF 24 may be a table in which numerical information indicating the number of key codes to be stored at one store timing is registered corresponding to various key codes. In this case, the control operation of the CPU 25 will also be partially different from the above embodiment. Regarding this, although the configuration is partially different from the above embodiment as described above, the second embodiment is explained for convenience.
This will be briefly explained using the block diagram shown in the figure and the flowchart shown in FIG. In addition,
In FIG. 4, the same steps as those shown in the flowchart of FIG. 3 are given the same reference numerals. The control operation of the CPU 25 differs from the above embodiment in the step of determining whether or not the contents of the counter have reached 0 (step S8).
If the determination is YES, a common initial setting value (type 3 initial setting value) is set in the counter regardless of the key detection content (key code) (step S9'). A further difference in the control operation of the CPU 25 from the above embodiment is that the control operation is performed after it is detected that the content of the counter becomes 0 and the above-mentioned initial setting value is set in the counter.
This is a store operation to the KBUF24. That is,
After setting the initial setting value (type 3 initial setting value) in the counter in step S9', the CPU 25 sets the initial setting value (type 3 initial setting value) in the counter.
The number of key codes having the contents of 3 is stored in the KBUF 24 in the number unique to the key codes (step S5'). This number, that is, the number of key codes to be stored in the KBUF 24 at one store timing, can be obtained by indexing the table 27 using the key codes read from the KRG 23 as index data.

このように、KBUF24へのストアタイミン
グの時間間隔をキー毎に変えられるようにした前
記実施例では、1回のストアタイミングで
KBUF24にストアするキーコード数は1個
(固定)であつたのに対し、KBUF24へのスト
アタイミングの時間間隔が一定となる本実施例で
は、1回のストアタイミングでKBUF24にス
トアするキーコード数をキー毎に変えることがで
きる。したがつた、該当キーに関してテーブル2
7で指定されている数値情報(ストア個数)が例
えば2であれば、当該キーのキーコードは1回の
ストアタイミングでKBUF24に2個ストアさ
れる。この場合、1回のストアタイミングで1個
のキーコードがストアされるキーに比べ、ストア
タイミングの時間間隔が同じであつても実質的に
2倍のリピート速度が得られる。
In this way, in the above embodiment in which the time interval of the store timing to the KBUF 24 can be changed for each key, the time interval of the store timing to the KBUF24 can be changed for each key.
The number of key codes stored in the KBUF 24 was one (fixed), but in this embodiment, where the time interval between store timings to the KBUF 24 is constant, the number of key codes stored in the KBUF 24 at one store timing is reduced. can be changed for each key. Therefore, table 2 for the corresponding key
For example, if the numerical information (number of stored items) specified in 7 is 2, two key codes of the relevant key are stored in the KBUF 24 at one store timing. In this case, compared to a key in which one key code is stored at one store timing, a repeat speed substantially twice as high can be obtained even if the time interval of store timings is the same.

なお、これらの実施例では、カウンタがデクリ
メントされるものとして説明したが、インクリメ
ントする使い方も可能である。この場合には、初
期設定値を例えばレジスタにセツトし、しかる後
タイマ割込み毎にカウンタをインクリメントし、
当該カウンタの内容がレジスタの内容に一致する
か否かを判定すればよい。
Although these embodiments have been described assuming that the counter is decremented, it is also possible to increment the counter. In this case, the initial setting value is set in a register, for example, and then the counter is incremented at each timer interrupt.
It is only necessary to determine whether the contents of the counter match the contents of the register.

また本発明は端末装置に限らず、例えばパーソ
ナルコンピユータなど表示画面を目視しながらキ
ー入力が可能な情報処理機器全般に適用できる。
Further, the present invention is applicable not only to terminal devices but also to general information processing equipment, such as personal computers, in which key input can be performed while visually viewing a display screen.

〔発明の効果〕〔Effect of the invention〕

以上詳述したように本発明によれば、同一のリ
ピート可能なキーが操作されている場合におい
て、そのキーに対応した個数のキー入力情報を一
定時間間隔でキーバツフアにストアするようにし
たことにより、リピート可能なキーのリピート間
隔を各キー毎に変化させることができる。
As detailed above, according to the present invention, when the same repeatable key is operated, key input information corresponding to the number of keys is stored in the key buffer at fixed time intervals. , the repeat interval of repeatable keys can be changed for each key.

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

第1図は一般的な表示画面構成を示す図、第2
図は本発明の一実施例を示すブロツク構成図、第
3図は上記実施例の動作を説明するためのフロー
チヤート、第4図は本発明の他の実施例の動作を
説明するためのフローチヤートである。 21……キーボード、24……キーバツフア
(KBUF)、25……CPU、27……テーブル。
Figure 1 shows the general display screen configuration, Figure 2 shows the general display screen configuration.
The figure is a block diagram showing one embodiment of the present invention, FIG. 3 is a flowchart for explaining the operation of the above embodiment, and FIG. 4 is a flowchart for explaining the operation of another embodiment of the present invention. It's a chat. 21...keyboard, 24...key buffer (KBUF), 25...CPU, 27...table.

Claims (1)

【特許請求の範囲】[Claims] 1 キーボードと、このキーボードからのキー入
力情報が格納されるキーバツフアと、このキーバ
ツフアへの格納タイミングに格納すべき上記キー
入力情報の個数を指定する数値情報がリピート可
能な各種キーのキー入力情報にそれぞれ対応して
登録されているテーブルと、上記キーボードから
のキー入力情報を第1の一定時間毎に読み取り、
同一のリピート可能なキーが操作されているか否
かを検出する手段と、この手段によつて上記同一
のリピート可能なキーが操作されていることが検
出されている場合、上記読み取られたキー入力情
報に対応する上記テーブル内の上記数値情報で指
定されている個数の当該キー入力情報を第2の一
定時間毎に上記キーバツフアに格納する手段とを
具備することを特徴とするリピート間隔制御方
式。
1 A keyboard, a key buffer in which key input information from this keyboard is stored, and numerical information specifying the number of pieces of the above key input information to be stored at the timing of storage in this key buffer as key input information of various keys that can be repeated. Read the correspondingly registered tables and key input information from the keyboard at a first fixed time interval,
means for detecting whether the same repeatable key is being operated; and if the means detects that the same repeatable key is being operated, the read key input; A repeat interval control method comprising means for storing a number of key input information specified by the numerical information in the table corresponding to the information in the key buffer at second fixed time intervals.
JP58024213A 1983-02-16 1983-02-16 Control system for repeating interval Granted JPS59149530A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58024213A JPS59149530A (en) 1983-02-16 1983-02-16 Control system for repeating interval

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58024213A JPS59149530A (en) 1983-02-16 1983-02-16 Control system for repeating interval

Publications (2)

Publication Number Publication Date
JPS59149530A JPS59149530A (en) 1984-08-27
JPH0578047B2 true JPH0578047B2 (en) 1993-10-28

Family

ID=12132013

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58024213A Granted JPS59149530A (en) 1983-02-16 1983-02-16 Control system for repeating interval

Country Status (1)

Country Link
JP (1) JPS59149530A (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61189331U (en) * 1985-05-16 1986-11-26
JPS61282908A (en) * 1985-06-07 1986-12-13 Sanyo Electric Co Ltd Repeat control system
JPS63317804A (en) * 1987-06-20 1988-12-26 Hioki Denki Kk Device containing function giving repeat processing to switch input

Also Published As

Publication number Publication date
JPS59149530A (en) 1984-08-27

Similar Documents

Publication Publication Date Title
JPS56164405A (en) Conversation type numerical control method
JPH0578047B2 (en)
US5560034A (en) Shared command list
JPH0760361B2 (en) Repeat interval control method
JPS62115496A (en) Display speed decision system
JPS61220004A (en) Screen display system of numerical controller
JP3185209B2 (en) Display control device
JP2999666B2 (en) Pen input button judgment device
JP3666906B2 (en) Graphic processing apparatus and list display control method thereof
JPS63255764A (en) Table data inputting system
JPH0425553B2 (en)
JPH08160927A (en) Cursor value converting method
JP2564137Y2 (en) Graph creation device
JPS60214034A (en) Object selection system on display
JPH03204781A (en) Area designating system
JP2771535B2 (en) Key data playback method
JPH06139019A (en) Touch panel input device
JPH04265994A (en) Time chart compressed display system
JPH04215115A (en) Information processor
JPH025623A (en) Information processor
JPH02302812A (en) Touch panel control system
JPH1011262A (en) Picture displaying method for display device
JPH0642138B2 (en) Document processor
KR910005726A (en) How to modify cooking data in microwave
JPH03269714A (en) Man-machine interface device