JPH03113620A - Key input processor - Google Patents

Key input processor

Info

Publication number
JPH03113620A
JPH03113620A JP1253017A JP25301789A JPH03113620A JP H03113620 A JPH03113620 A JP H03113620A JP 1253017 A JP1253017 A JP 1253017A JP 25301789 A JP25301789 A JP 25301789A JP H03113620 A JPH03113620 A JP H03113620A
Authority
JP
Japan
Prior art keywords
key operation
key
timer
signal
processing device
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.)
Granted
Application number
JP1253017A
Other languages
Japanese (ja)
Other versions
JP2833794B2 (en
Inventor
Akira Uchida
章 内田
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.)
Furuno Electric Co Ltd
Original Assignee
Furuno 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 Furuno Electric Co Ltd filed Critical Furuno Electric Co Ltd
Priority to JP1253017A priority Critical patent/JP2833794B2/en
Publication of JPH03113620A publication Critical patent/JPH03113620A/en
Application granted granted Critical
Publication of JP2833794B2 publication Critical patent/JP2833794B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

PURPOSE:To prevent a competitive relation even if plural keys are simultaneous ly operated by starting a timer, controlling a key operation part selection means and setting only the key operation part where a key operation is detected while a timer counts for a prescribed time to be effective when the key operation in one of the key operation parts is detected. CONSTITUTION:A priority control means starts the timer when a key operation detection means 3 (4) detects the key operation, controls the key operation part selection means 7 and sets only the key operation part where the operation is detected to be effective while the timer 6 counts for a prescribed time. When the key operation part 1 is operated at first, the key operation detection means 3 detects it and the priority control means 5 controls the key operation part selection means 7 while the timer 6 counts for a prescribed time and preferentially gives the key signal of he key operation part 1 to a processor 8. Thus, competition is prevented even if the key operations are simultaneously executed in plural key operation parts 1 and 2, and an appropriate key input processing is executed.

Description

【発明の詳細な説明】 (al産業上の利用分野 この発明は複数のキー操作部からのキー信号を受けて各
キー操作に応じた処理を行うキー入力処理装置に関し、
特に複数のキー操作部が同時に操作されたときの競合を
防止した装置に関する。
DETAILED DESCRIPTION OF THE INVENTION (Al Industrial Field of Application) This invention relates to a key input processing device that receives key signals from a plurality of key operation sections and performs processing according to each key operation.
In particular, the present invention relates to a device that prevents conflicts when a plurality of key operation units are operated simultaneously.

(b)従来の技術 たとえば、CRTなどの表示器上に航跡を表示するよう
にした従来の航跡記録装置は、航法装置から送られてく
る位置データをメモリに蓄積し、そのメモリから記憶デ
ータを読み出して表示器上に表示するようにしている。
(b) Conventional technology For example, a conventional track recording device that displays a track on a display such as a CRT stores position data sent from a navigation device in a memory, and then retrieves the stored data from the memory. It is read out and displayed on the display.

このような航跡記録装置ではX−Yプロッタなどを使用
する場合に比較して縮小あるいは拡大が容易であり任意
の位置を表示画面上に表示できるため操船が極めて容易
になる利点がある。
Compared to the case where an X-Y plotter or the like is used, such a track recording device has the advantage that it can be easily reduced or enlarged, and any position can be displayed on the display screen, making ship maneuvering extremely easy.

このような航跡記録装置は、キー操作により表示範囲の
拡大や縮小あるいは移動などを指示するようにしている
In such a track recorder, instructions are given to enlarge, reduce, or move the display range by key operations.

(C)発明が解決しようとする課題 従来の航跡記録装置はキー操作部と表示部およびキー操
作内容に応じて処理を行い表示制御を行う制御部とが単
一の筐体に構成されていて、口Ω内の特定箇所に設置し
て使用されるものであったが、最近では利用目的に応じ
てキー操作部と表示部のみを一つのモニタとして機器本
体から分離し、一つの本体から複数のモニタを異なった
箇所に設置して利用するといった利用形態も考えられて
いる。この場合各モニタの表示部には同一内容が表示さ
れるが、いずれのモニタのキー操作部からでも航跡記録
内容などの確認を行うことができるようになる。
(C) Problems to be Solved by the Invention In conventional track recording devices, a key operation section, a display section, and a control section that performs processing and display control according to the contents of key operations are configured in a single housing. It used to be used by being installed at a specific location inside the mouth, but recently, depending on the purpose of use, only the key operation section and display section can be separated from the main body of the device as a single monitor, and multiple monitors can be connected from one main body. A usage pattern is also being considered in which monitors are installed in different locations. In this case, although the same content is displayed on the display section of each monitor, it becomes possible to check the track record content etc. from the key operation section of any monitor.

このような利用形態はいわゆるコンピュータシステムに
おけるコンピュータ本体と端末との関係に類似している
が、後者がマルチユーザーあるいはマルチタスクを前提
として、各端末がそれぞれ別個の情報処理に利用される
のに対し、前者は航跡データなど同一のデータが情報処
理の対象とされる点において異なる。したがって複数の
モニタのキー操作部が同時に操作された場合に競合関係
が生じる。たとえば複数のキー操作部から本体に対して
ワイヤードORのようにキー信号が重なって入力され、
キーコードが変化するといった問題が生じる。
This type of usage is similar to the relationship between a computer and a terminal in a so-called computer system, but the latter assumes multi-user or multitasking, and each terminal is used for separate information processing. , the former differs in that the same data such as track data is subject to information processing. Therefore, when the key operation units of a plurality of monitors are operated at the same time, a competitive relationship occurs. For example, key signals are input from multiple key operation units to the main unit in a wired OR manner,
The problem arises that the key code changes.

上述の問題は航跡記録装置におけるキー操作に限らず、
複数のキー操作部からのキー信号を受けて各キー操作に
応じて同一データを対象として処理を行うキー入力処理
装置一般に同様に生じる。
The above-mentioned problems are not limited to key operations in track recorders;
The same problem occurs in general key input processing devices that receive key signals from a plurality of key operation units and process the same data in response to each key operation.

この発明の目的は、複数のキー操作部が同時に操作され
る場合でも、いずれか一つのキー操作部からのキー操作
のみを有効にして競合関係を防止するようにしたキー入
力処理装置を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a key input processing device that prevents conflict by validating only key operations from one key operation section even when a plurality of key operation sections are operated simultaneously. There is a particular thing.

(d)課題を解決するための手段 請求項1に係る発明は、複数のキー操作部からのキー信
号を受けて各キー操作に応じた処理を行うキー入力処理
装置において、 各キー操作部の操作を検出するキー操作検出手段と、 一定時間を計時するタイマ手段と、 いずれか一つのキー操作部を選択的に有効化するキー操
作部選択手段と、 いずれかのキー操作部のキー操作が検出されたとき上記
タイマをスタートさせるとともに、上記キー操作部選択
手段を制御して上記タイマの一定時間の計時中、上記キ
ー操作の検出されたキー操゛作部のみ有効化する優先制
御手段とを設けたことを特徴とする。
(d) Means for Solving the Problem The invention according to claim 1 provides a key input processing device that receives key signals from a plurality of key operation sections and performs processing according to each key operation. key operation detection means for detecting an operation; timer means for counting a certain amount of time; key operation section selection means for selectively activating any one of the key operation sections; Priority control means starts the timer when the key operation is detected, and controls the key operation section selection means to enable only the key operation section for which the key operation is detected while the timer is counting a certain period of time. It is characterized by having the following.

また請求項2に係る発明は、複数のキー操作部からのキ
ー信号を受けて各キー操作に応した処理を行うキー入力
処理装置において、 キー操作部の使用開始および使用終了を表すキー操作を
検出するキー操作検出手段と、使用の開始されたキー操
作部を記憶するとともに、この使用開始されたキー操作
部の使用終了を表すキー操作が行われるまでその記憶状
態を保持する記憶手段と、 いずれか一つのキー操作部を選択的に有効化するキー操
作部選択手段と、 上記記憶手段の記憶内容に従い上記キー操作選択手段を
制御して使用中である単一のキー操作部のみ有効化する
優先制御手段とを設けたことを特徴とする。
Further, the invention according to claim 2 provides a key input processing device that receives key signals from a plurality of key operation sections and performs processing corresponding to each key operation. a key operation detecting means for detecting a key operation, a storage means for storing a key operation section whose use has started, and holding the stored state until a key operation indicating the end of use of the key operation section whose use has been started is performed; a key operation section selection means for selectively activating any one of the key operation sections; and controlling the key operation selection means according to the memory contents of the storage means to enable only the single key operation section that is in use. The invention is characterized in that it is provided with a priority control means for

(01作用 請求項1に係るキー入力処理装置の構成例を第1図に示
す。
(01 action An example of the configuration of a key input processing device according to claim 1 is shown in FIG. 1.

第1図の例では二つのキー操作部1および2があり、キ
ー操作検出手段3および4がキー操作部1および2のキ
ー操作をそれぞれ検出する。タイマ手段6は一定時間を
計時する。キー操作部選択手段7は1または2のいずれ
か一方のキー操作部を選択的に有効化して処理装置8ヘ
キ一信号を与える。優先制御手段5はキー操作検出手段
3または4がキー操作を検出したときタイマ6をスター
トさせるとともにキー操作部選択手段7を制御してタイ
マ6の一定時間の計時中キー操作の検出されたキー操作
部のみを有効化する。たとえば最初にキー操作部lが操
作されたなら、キー操作検出手段3がこれを検出し、優
先制御手段5はタイマ6による一定時間の計時中にキー
操作部選択手段7を制御してキー操作部1のキー信号を
優先的に処理装置8へ与える。したがってタイマ6の計
時中にキー操作部2から操作が行われても受は付けられ
ずに競合状態を防止することができる。タイマ6による
一定時間の経過後はキー操作部1および2双方の優先状
態がなくなり、先に操作した方のキー操作部が優先され
ることになる。
In the example shown in FIG. 1, there are two key operation sections 1 and 2, and key operation detection means 3 and 4 detect key operations on key operation sections 1 and 2, respectively. The timer means 6 measures a certain period of time. The key operation section selection means 7 selectively enables either one of the key operation sections 1 or 2 and provides a signal to the processing device 8. The priority control means 5 starts a timer 6 when the key operation detecting means 3 or 4 detects a key operation, and also controls the key operation section selection means 7 to select the key whose operation is detected while the timer 6 is counting a certain period of time. Enable only the control panel. For example, if the key operation section l is operated for the first time, the key operation detection means 3 detects this, and the priority control means 5 controls the key operation section selection means 7 while the timer 6 is counting a certain period of time to operate the key. The key signal of section 1 is given to processing device 8 preferentially. Therefore, even if an operation is performed from the key operation unit 2 while the timer 6 is counting time, the response will not be accepted, and a conflicting state can be prevented. After the predetermined time period determined by the timer 6 has elapsed, the priority status of both the key operating units 1 and 2 disappears, and priority is given to the key operating unit that was operated first.

請求項2に係るキー入力処理装置の構成例を第2図に示
す。
An example of the configuration of a key input processing device according to a second aspect of the present invention is shown in FIG.

第2図に示す例では二つのキー操作部1および2が設け
られている。キー操作検出手段14および16はキー操
作部1および2のキー操作の使用開始を表すキー操作を
検出する。キー操作検出手段15および17はキー操作
部1および2の使用終了を表すキー操作をそれぞれ検出
する。記憶手段18は使用開始されたキー操作部を記憶
するとともに、この使用開始されたキー操作部の使用終
了を表すキー操作が行われるまでの状態を記憶する。キ
ー操作部選択手段20はキー操作部1または2のいずれ
か一方のキー操作部を選択的に有効化して処理装置21
ヘキ一信号を与える。優先制御手段19は記憶手段18
の内容に従ってキー操作選択手段20を制御して使用中
である単一のキー操作部のみ有効化する。たとえばキー
操作部1のキー操作が開始されたなら、キー操作検出手
段14がこれを検出し、記憶手段18は使用を開始した
キー操作部が1であることを記憶する。これにより優先
制御手段19はキー操作部選択手段20を制御してキー
操作部1のみを選択的に有効化する。その後キー操作部
1の使用終了を表すキー操作すなわち同図の例では終了
キー1)が操作されたときキー操作検出手段15がこれ
を検出して記憶手段18はキー操作部1の使用が終了じ
たことを記憶する(キー操作部1の使用開始状態を解除
する)。このように、記憶手段18の状態は使用開始さ
れたキー操作部の使用終了を表すキー操作が行われるま
でその状態が保持されるため、最初に使用を開始したキ
ー操作部がまず優先され、その後優先されているキー操
作部の使用終了を表すキー操作が行われるまで、その優
先状態がw1続することになる。
In the example shown in FIG. 2, two key operation units 1 and 2 are provided. The key operation detection means 14 and 16 detect a key operation indicating the start of use of the key operations of the key operation units 1 and 2. Key operation detection means 15 and 17 detect key operations indicating the end of use of key operation units 1 and 2, respectively. The storage means 18 stores the key operation section that has started to be used, and also stores the state of the key operation section that has started to be used until a key operation indicating the end of use is performed. The key operation section selection means 20 selectively enables either one of the key operation sections 1 or 2 to
Give a signal. The priority control means 19 is the storage means 18
The key operation selection means 20 is controlled in accordance with the contents of the key operation selection means 20 to enable only the single key operation section currently in use. For example, when a key operation on the key operation section 1 is started, the key operation detection means 14 detects this, and the storage means 18 stores that the key operation section 1 has started to be used. As a result, the priority control means 19 controls the key operation section selection means 20 to selectively enable only the key operation section 1. Thereafter, when a key operation indicating the end of use of the key operation section 1 (ie, the end key 1) in the example shown in the figure is operated, the key operation detection means 15 detects this, and the storage means 18 indicates that the use of the key operation section 1 has ended. (Cancels the use start state of the key operation unit 1). In this way, the state of the storage means 18 is maintained until a key operation indicating the end of use of the key operation section that has started to be used is performed, so that the key operation section that has started to be used first is given priority. Thereafter, the priority state continues for w1 until a key operation indicating the end of use of the prioritized key operation section is performed.

(f)実施例 この発明の請求項1に係るキー入力処理装置の論理回路
による実施例を第3図に示す。
(f) Embodiment FIG. 3 shows an embodiment of a logic circuit of a key input processing device according to claim 1 of the present invention.

第3図において32および33は単安定回路であり、■
の入力が“H”レベルとなったとき一定時間■の出力を
“H”レベルにする。■は禁止入力であり、■入力が“
H”レベルであれば■の状態にかかわらず■出力は“L
ルベルとなる。信号検出回路30および31はキー信号
AおよびBとして何らかの信号があればその出力を“H
”レベルにする。
In Figure 3, 32 and 33 are monostable circuits, and ■
When the input of (2) becomes "H" level, the output of (2) becomes "H" level for a certain period of time. ■ is a prohibited input, and ■input is “
If the level is “H”, the ■output is “L” regardless of the state of ■.
Becomes Rubel. If there are any signals as key signals A and B, the signal detection circuits 30 and 31 output them as “H”.
“Level it up.

今、信号検出回路30および31双方がキー信号を検出
していなくて、単安定回路32および33双方の出力が
“L”レベルであるとき、キー信号Aが発生したなら、
信号検出回路30はこれを検出してその出力を“H“に
する。単安定回路33の出力は“L″レベルあり、イン
バータ38の出力は“H”レベルであるため、ANDゲ
ート36の出力が“H”レベルとなって単安定回路32
の出力は一定時間”H″レベルなる。したがってA N
 DゲーI・34からキー信号Aが出力され、ORゲー
ト40を介してキー信号が出力される。この状態でキー
信号Bが発生したとしても単安定回路32の出力が”H
”レベルである限りインバーク39の出力が“L”レベ
ルを保つためANDゲート37の出力および単安定回路
33の出力も“L”レベルのままとなる。その結果AN
Dゲート35の出力は“L”レベルのままとなってキー
信号Bは無効となる。その後、キー信号Aが単安定回路
32の単安定時間以内に再び発生しなければ単安定回路
32の出力は“L”レベルに復帰する。したがってこの
状態で初めの状態となり、キー信号Aおよびキー信号B
の内光に発生した力が優先され有効となる。
Now, if the key signal A is generated when both the signal detection circuits 30 and 31 are not detecting the key signal and the outputs of both the monostable circuits 32 and 33 are at "L" level, then
The signal detection circuit 30 detects this and sets its output to "H". Since the output of the monostable circuit 33 is "L" level and the output of the inverter 38 is "H" level, the output of the AND gate 36 is "H" level, and the monostable circuit 32
The output remains at "H" level for a certain period of time. Therefore A N
A key signal A is output from the D game I.34, and a key signal is output via the OR gate 40. Even if key signal B is generated in this state, the output of monostable circuit 32 will be “H”.
” level, the output of the inverter 39 remains at the “L” level, so the output of the AND gate 37 and the output of the monostable circuit 33 also remain at the “L” level.As a result, the AN
The output of the D gate 35 remains at the "L" level, and the key signal B becomes invalid. Thereafter, unless the key signal A is generated again within the monostable time of the monostable circuit 32, the output of the monostable circuit 32 returns to the "L" level. Therefore, this state becomes the initial state, and key signal A and key signal B
The power generated in the inner light takes priority and becomes effective.

なお、キー信号Aおよびキー信号Bが同時に発生した場
合、単安定回路32および33の双方にトリガが掛かろ
うとするが、単安定回路33の■入力が″H″レベルと
なって禁止状態となるため単安定回路32側の出力のみ
“H”レベルとなってキー信号Aが優先されることにな
る。
In addition, when key signal A and key signal B occur simultaneously, both monostable circuits 32 and 33 try to be triggered, but the ■ input of monostable circuit 33 becomes "H" level and becomes a prohibited state. Therefore, only the output from the monostable circuit 32 side becomes "H" level, and the key signal A is prioritized.

次に請求項1に係るキー入力処理装置のマイクロプロセ
ッサによる実施例を第4図および第5図(A)、  (
B)に示す。
Next, an embodiment of the key input processing device according to claim 1 using a microprocessor is shown in FIGS. 4 and 5 (A).
Shown in B).

第4図はその主要部のブロック図であり、I10ボート
44はキー信号AおよびBを入力し、I10ボート45
はANDゲート41および42にそれぞれ制御信号を出
力する。信号検出回路30はキー信号Aの発生を検出し
たときその出力を“H”レベルにし、信号検出回路31
はキー信号Bの発生を検出したときその出力を“H”レ
ベルにする。優先状態がまだ定まっていないときI10
ボート45の出力aおよびbは共に″″H″H″レベル
、キー信号へが発生したときには信号検出回路30の出
力およびANDゲート41の出力が“H”レベルになり
ORゲート43を介してCPUに割込信号が与えられる
。またキー信号Bが発生したときには信号検出回路31
およびANDゲート42の出力がI(”レベルとなって
ORゲート43を介してCPUに割込信号が与えられる
FIG. 4 is a block diagram of its main parts, in which the I10 boat 44 inputs key signals A and B, and the I10 boat 45 inputs key signals A and B.
outputs control signals to AND gates 41 and 42, respectively. When the signal detection circuit 30 detects the generation of the key signal A, it sets its output to "H" level, and the signal detection circuit 31
When it detects the generation of key signal B, it sets its output to "H" level. I10 when the priority status has not yet been determined
The outputs a and b of the board 45 are both at the "H" level, and when the key signal is generated, the output of the signal detection circuit 30 and the output of the AND gate 41 are at the "H" level, and the output is sent to the CPU via the OR gate 43. An interrupt signal is given to Further, when the key signal B is generated, the signal detection circuit 31
The output of the AND gate 42 becomes I('' level, and an interrupt signal is given to the CPU via the OR gate 43.

第5図(A)はキー信号Aまたはキー信号Bの発生によ
り生じるCPUの割込処理手順を示すフローチャートで
ある。まず一定時間後にタイマ割り込みがかかるように
タイマ割込時間のセットおよびスタートを行う(nl)
。続いてI10ポート44の内容を読み込み、キー信号
A、 Bのどちらの発生により割り込みがかかったかを
検出し、キー信号の発生した側を優先する。即ちたとえ
ばキー信号Aが発生したときには信号aが″H″レベル
となるよう、キー信号Bが発生したときには信号すがH
”レベルとなるようI10ポート45をセットする(n
2−=n3)。たとえばキー信号Aが最初に発生したな
ら信号aが“H”レベルとなって、以降はキー信号Aが
発生する毎に割り込みがかかり、キー信号Bが発生して
も無効となる。
FIG. 5(A) is a flowchart showing the CPU interrupt processing procedure caused by the generation of key signal A or key signal B. First, set and start the timer interrupt time so that the timer interrupt occurs after a certain period of time (nl)
. Next, the contents of the I10 port 44 are read, it is detected which of the key signals A and B caused the interrupt, and priority is given to the side where the key signal was generated. That is, for example, when key signal A is generated, signal a is set to "H" level, and when key signal B is generated, signal a is set to "H" level.
” Set I10 port 45 to level (n
2-=n3). For example, if key signal A is generated first, signal a becomes "H" level, and thereafter, an interrupt is generated every time key signal A is generated, and even if key signal B is generated, it is invalid.

第5図(B)は上記タイマ割込処理を示す図であり、キ
ー信号Aまたはキー信号Bが発生してから一定時間経過
したとき信号aおよびbの双方が“H″レベルなるよう
にI10ポート45をセットする(n4)。これにより
再びキー信号Aまたはキー信号Bのいずれが発生しても
割り込みがかかり、先に発生した方が優先状態となる。
FIG. 5(B) is a diagram showing the above-mentioned timer interrupt processing, in which the I10 is set such that both signals a and b go to the "H" level when a certain period of time has elapsed since the generation of the key signal A or the key signal B. Set port 45 (n4). As a result, an interrupt occurs even if either the key signal A or the key signal B occurs again, and the one that occurs first takes priority.

次にこの発明の請求項2に係るキー入力処理装置の論理
回路による実施例を第6図に示す。
Next, FIG. 6 shows an embodiment of a logic circuit of a key input processing device according to claim 2 of the present invention.

第6図において、検出回路50はキー信号Aがキー操作
部の使用終了を表すキー操作であるか否かの検出を行い
、使用終了を表すキー操作を検出したときには信号dを
”H”レベルとし、その他のキー操作を検出したときに
は信号Cを“H”レベルとする。同様に検出回路51は
キー信号Bからキー操作部の使用終了を表すキー操作を
検出したとき信号fを“H”レベルとし、その他のキー
操作を検出したときには信号eを“H”レベルとする。
In FIG. 6, the detection circuit 50 detects whether the key signal A is a key operation indicating the end of use of the key operation unit, and when detecting the key operation indicating the end of use, the signal d is set to "H" level. When another key operation is detected, the signal C is set to "H" level. Similarly, the detection circuit 51 sets the signal f to the "H" level when it detects a key operation indicating the end of use of the key operation section from the key signal B, and sets the signal e to the "H" level when detecting any other key operation. .

54および55はそれぞれフリップフロップであり、初
期状態では双方ともにリセット状態である。
54 and 55 are flip-flops, and both are in a reset state in the initial state.

いま、A側のキー操作部の使用が開始されたなら検出回
路50は信号Cを“H”レベルにする。
Now, when the use of the A-side key operation section is started, the detection circuit 50 sets the signal C to the "H" level.

フリップフロップ55のQ出力は“H”レベルであるた
めANDゲート52の出力は”H”レベルとなってフリ
ップフロップ54がセントされる。
Since the Q output of the flip-flop 55 is at the "H" level, the output of the AND gate 52 is at the "H" level and the flip-flop 54 is sent.

これによりキー信号AはANDゲート56およびORゲ
ート58を介して出力される。このときフリップフロッ
プ55のQ出力が“L”レベルであるためA N Dゲ
ート57の出力は常に“L”レベルとなってキー信号B
は無効となる。その後A側のキー操作部の使用終了を表
すキー操作が行われたなら、検出回路50は信号Cを“
L”レベル、信号dを“H”レベルとする。これにより
フリップフロップ54がリセットされ初期状態に戻る。
As a result, key signal A is outputted via AND gate 56 and OR gate 58. At this time, since the Q output of the flip-flop 55 is at the "L" level, the output of the A N D gate 57 is always at the "L" level and the key signal B
becomes invalid. After that, if a key operation indicating the end of use of the key operation section on the A side is performed, the detection circuit 50 outputs the signal C as "
The flip-flop 54 is reset to the initial state.

最後にこの発明の請求項2に係るキー入力処理装置のマ
イクロプロセッサ−による実施例を示す第7図はCPU
の割込処理手順を表すフローチャートである。なおブロ
ック構成は第4図に示したものと同様であるのでこれを
参照して説明する。まずI10ボート44の状態を読み
込み、操作されたキーがどちらのキー操作部であるかを
判定するとともに操作されたキーが使用終了を表すキー
操作であるか否か判定する(nlo−nil)。使用終
了を表すキー操作でなければ、キー操作の行われた側の
キー操作部に優先権を与える。すなわち例えばA側のキ
ー操作部が操作されたのであれば信号aが“H”レベル
となるように、B側のキー操作部が操作されたのなら信
号すが“H”レベルとなるようにI10ポート45をセ
ットする(n12)。したがって以降は優先されている
側のキー操作部の操作のみにより割り込みがかかること
になる。その後、使用終了を表すキー操作が行われたな
ら、信号aおよび信号すの双方が“zl”レベルとなる
ようにI10ボート45をセットする(n1)→n13
)。
Finally, FIG. 7 shows a microprocessor-based embodiment of the key input processing device according to claim 2 of the present invention.
3 is a flowchart showing the interrupt processing procedure of FIG. Note that the block configuration is the same as that shown in FIG. 4, so the explanation will be made with reference to this. First, the state of the I10 boat 44 is read, and it is determined which key operation section the operated key is, and it is also determined whether the operated key is a key operation indicating the end of use (nlo-nil). If the key operation does not indicate the end of use, priority is given to the key operation unit on the side where the key operation was performed. That is, for example, if the key operating section on the A side is operated, the signal a will be at the "H" level, and if the key operating section on the B side is operated, the signal a will be at the "H" level. Set I10 port 45 (n12). Therefore, from now on, an interrupt will be generated only by the operation of the key operation unit on the priority side. After that, when a key operation indicating the end of use is performed, the I10 port 45 is set so that both signal a and signal S are at the "zl" level (n1) → n13
).

(g)発明の効果 この発明によれば、複数のキー操作部からのキー信号を
受けて各キー操作に応じた処理を行う場合に、複数のキ
ー操作部から同時にキー操作が行われても競合すること
がなく、優先の与えられたキー操作部の操作によって適
正なキー入力処理が行われるようになる。
(g) Effects of the Invention According to this invention, when key signals from a plurality of key operation sections are received and processing is performed in accordance with each key operation, even if key operations are performed simultaneously from a plurality of key operation sections. There is no conflict, and proper key input processing can be performed by operating the key operation section to which priority is given.

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

第1図はこの発明の請求項1に係るキー入力処理装置の
構成例を示す図、第2図はこの発明の請求項2に係るキ
ー入力装置の構成例を示す図である。第3図は第1の実
施例に係るキー入力処理装置の論理回路図である。第4
図および第5図(A)、(B)は第2の実施例に係るキ
ー入力処理装置のブロック図および処理手順を表すフロ
ーチャートである。第6図は第3の実施例に係るキー入
力処理装置の論理回路図である。第7図は第4の実施例
に係るキー入力処理装置の処理手順を表すフローチャー
トである。
FIG. 1 is a diagram showing an example of the configuration of a key input processing device according to claim 1 of the present invention, and FIG. 2 is a diagram showing an example of the configuration of a key input device according to claim 2 of the invention. FIG. 3 is a logic circuit diagram of the key input processing device according to the first embodiment. Fourth
Figures 5(A) and 5(B) are a block diagram of a key input processing device according to the second embodiment and a flowchart showing a processing procedure. FIG. 6 is a logic circuit diagram of a key input processing device according to a third embodiment. FIG. 7 is a flowchart showing the processing procedure of the key input processing device according to the fourth embodiment.

Claims (2)

【特許請求の範囲】[Claims] (1)複数のキー操作部からのキー信号を受けて各キー
操作に応じた処理を行うキー入力処理装置において、 各キー操作部の操作を検出するキー操作検出手段と、 一定時間を計時するタイマ手段と、 いずれか一つのキー操作部を選択的に有効化するキー操
作部選択手段と、 いずれかのキー操作部のキー操作が検出されたとき上記
タイマをスタートさせるとともに、上記キー操作部選択
手段を制御して上記タイマの一定時間の計時中、上記キ
ー操作の検出されたキー操作部のみ有効化する優先制御
手段とを設けたことを特徴とするキー入力処理装置。
(1) In a key input processing device that receives key signals from a plurality of key operation units and performs processing according to each key operation, the key input processing device includes a key operation detection means that detects the operation of each key operation unit, and a key operation detection means that measures a certain period of time. timer means; key operation section selection means for selectively activating any one of the key operation sections; and starting the timer when a key operation on any of the key operation sections is detected; A key input processing device comprising: priority control means for controlling a selection means to enable only the key operation unit for which the key operation is detected while the timer is counting a certain period of time.
(2)複数のキー操作部からのキー信号を受けて各キー
操作に応じた処理を行うキー入力処理装置において、 キー操作部の使用開始および使用終了を表すキー操作を
検出するキー操作検出手段と、 使用の開始されたキー操作部を記憶するとともに、この
使用開始されたキー操作部の使用終了を表すキー操作が
行われるまでその記憶状態を保持する記憶手段と、 いずれか一つのキー操作部を選択的に有効化するキー操
作部選択手段と、 上記記憶手段の記憶内容に従い上記キー操作選択手段を
制御して使用中である単一のキー操作部のみ有効化する
優先制御手段とを設けたことを特徴とするキー入力処理
装置。
(2) In a key input processing device that receives key signals from a plurality of key operation sections and performs processing according to each key operation, a key operation detection means that detects key operations indicating the start and end of use of the key operation section. a storage means for storing the key operation unit whose use has started and retaining the memorized state until a key operation indicating the end of use of the key operation unit whose use has been started is performed; a key operation section selection means for selectively activating the key operation section; and a priority control means for controlling the key operation selection means according to the memory contents of the storage means to enable only the single key operation section in use. A key input processing device characterized in that:
JP1253017A 1989-09-28 1989-09-28 Key input processing device Expired - Lifetime JP2833794B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1253017A JP2833794B2 (en) 1989-09-28 1989-09-28 Key input processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1253017A JP2833794B2 (en) 1989-09-28 1989-09-28 Key input processing device

Publications (2)

Publication Number Publication Date
JPH03113620A true JPH03113620A (en) 1991-05-15
JP2833794B2 JP2833794B2 (en) 1998-12-09

Family

ID=17245328

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1253017A Expired - Lifetime JP2833794B2 (en) 1989-09-28 1989-09-28 Key input processing device

Country Status (1)

Country Link
JP (1) JP2833794B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012141949A (en) * 2010-12-31 2012-07-26 Giga-Byte Technology Co Ltd Input device with input switch and switching method thereof
CN115645000A (en) * 2022-10-09 2023-01-31 青岛百年康健医疗科技有限公司 Planing system and using method thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012141949A (en) * 2010-12-31 2012-07-26 Giga-Byte Technology Co Ltd Input device with input switch and switching method thereof
CN115645000A (en) * 2022-10-09 2023-01-31 青岛百年康健医疗科技有限公司 Planing system and using method thereof

Also Published As

Publication number Publication date
JP2833794B2 (en) 1998-12-09

Similar Documents

Publication Publication Date Title
KR900016863A (en) Method and apparatus for determining whether display is externally connected by using status data stored in register
JP2634130B2 (en) Method and computer system for controlling use of a bus
JPH03113620A (en) Key input processor
JP4044536B2 (en) Display control circuit
JPS6353568B2 (en)
JPH0365740A (en) Program starting frequency display circuit
JP2006175075A (en) Game machine
JPS6025482A (en) electronic stopwatch
JP2781843B2 (en) Video tape recorder
KR920008958B1 (en) Display control apparatus
JP2710483B2 (en) Semiconductor integrated circuit
JPH0415687A (en) Display device control circuit
JPH039438A (en) Diagnostic circuit
JPS6173198A (en) electronic musical instruments
JPH02210515A (en) System resetting system
JPH04345224A (en) Alarm signal detection circuit
JPS6326889B2 (en)
JPS61288717A (en) Settling system for digital protective relay
JPS6168645A (en) Control system for instruction retrial
JPH06175875A (en) In-circuit emulator
JPH0381832A (en) Interruption control circuit
JPH0545038B2 (en)
JPH07152477A (en) Contact operating device
JPH02242316A (en) Key scanning circuit
JPS5812034A (en) Information processor