JPH03210620A - Key input device - Google Patents
Key input deviceInfo
- Publication number
- JPH03210620A JPH03210620A JP2004437A JP443790A JPH03210620A JP H03210620 A JPH03210620 A JP H03210620A JP 2004437 A JP2004437 A JP 2004437A JP 443790 A JP443790 A JP 443790A JP H03210620 A JPH03210620 A JP H03210620A
- Authority
- JP
- Japan
- Prior art keywords
- key
- signal
- output
- code
- circuit
- 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
Links
- 238000001514 detection method Methods 0.000 claims description 50
- 230000003068 static effect Effects 0.000 abstract description 3
- 230000006866 deterioration Effects 0.000 abstract 1
- 230000002542 deteriorative effect Effects 0.000 abstract 1
- 230000005855 radiation Effects 0.000 description 10
- 230000007274 generation of a signal involved in cell-cell signaling Effects 0.000 description 9
- 238000005259 measurement Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 6
- 230000000694 effects Effects 0.000 description 5
- 230000002411 adverse Effects 0.000 description 2
- 230000000593 degrading effect Effects 0.000 description 2
- 238000000034 method Methods 0.000 description 2
- 239000003990 capacitor Substances 0.000 description 1
- 244000145845 chattering Species 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 238000004768 lowest unoccupied molecular orbital Methods 0.000 description 1
- 230000007257 malfunction Effects 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
Landscapes
- Testing Or Calibration Of Command Recording Devices (AREA)
- Input From Keyboards Or The Like (AREA)
Abstract
Description
【発明の詳細な説明】
[産業上の利用分野]
本発明は例えば操作パネルに配設された各キーのキーコ
ードをマイクロプロセッサで読取るキー入力装置に係わ
り、特に、キー操作された時点で該当キーのキーコード
を静的に読取れることから、内外の放射雑音が性能に影
響を受ける測定装置において、有益なキー入力装置に関
する。[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a key input device in which a microprocessor reads the key code of each key arranged on an operation panel, and in particular, the present invention relates to a key input device in which a microprocessor reads the key code of each key arranged on an operation panel. The present invention relates to a key input device that is useful in measurement devices whose performance is affected by internal and external radiation noise because the key code of the key can be read statically.
[従来の技術]
多数のキーが配設されたキーボードからキー操作された
キーのキーコードを読取るキー入力装置は例えば第4図
に示すように構成されている。マトリックス状に配列さ
れた各キーに対して信号線を縦横に配線して、各信号線
の交点にキー操作に応動する接点を介在させている。そ
して、キーボード制御回路1からデコーダ回路2を介し
て例えば横方向の各信号線3に予め設定された時間間隔
で走査信号ROI〜ROV7を出力する。それと同時に
縦方向の各信号線4の検出信号COLUMO〜COLU
M7をデコードして、キー操作されたキーを特定する。[Prior Art] A key input device for reading the key code of an operated key from a keyboard having a large number of keys is configured as shown in FIG. 4, for example. Signal lines are wired vertically and horizontally for each key arranged in a matrix, and contacts that respond to key operations are interposed at the intersections of each signal line. Then, scanning signals ROI to ROV7 are outputted from the keyboard control circuit 1 via the decoder circuit 2 to, for example, each horizontal signal line 3 at preset time intervals. At the same time, the detection signals COLUMO to COLU of each signal line 4 in the vertical direction are
Decode M7 to identify the operated key.
そして、キー操作されたキーが特定されると、キーボー
ド制御回路1はMPU (マイクロプロセッサ)5に対
して割込信号IRQを送出する。When the operated key is specified, the keyboard control circuit 1 sends an interrupt signal IRQ to the MPU (microprocessor) 5.
MPU5は割込信号IRQを受領すると、キーボード制
御回路1にラッチされているキーコードを読取る。Upon receiving the interrupt signal IRQ, the MPU 5 reads the key code latched in the keyboard control circuit 1.
[発明が解決しようとする課題]
しかしながら第4図に示したキー入力装置においてもま
だ解決すべき次のような問題があった。[Problems to be Solved by the Invention] However, the key input device shown in FIG. 4 still has the following problems to be solved.
すなわち、キー操作の応答性能を向上させるためにはキ
ーボード制御回路1から出力される走査信号ROVO〜
ROW7の時間間隔を短縮する必要がある。That is, in order to improve the response performance of key operations, the scanning signal ROVO~ output from the keyboard control circuit 1 is
It is necessary to shorten the time interval of ROW7.
通常のパーソナルコンピュータにおいては、この時間間
隔は約数aSである。このように、キーボード上におい
て、操作者がキーを押したか又は離したかにかかわらず
、常時前述した時間間隔でTTLレベルの走査信号RO
VO〜ROV7を出力している。したがって、この走査
信号ROWO−ROV7および検出信号COLLIMO
〜COLUM7が放射雑音として周囲に常時電磁放射さ
れている。In a typical personal computer, this time interval is on the order of a few aS. In this way, regardless of whether the operator presses or releases a key, the TTL level scanning signal RO is always sent at the above-mentioned time interval on the keyboard.
Outputs VO to ROV7. Therefore, this scanning signal ROWO-ROV7 and the detection signal COLLIMO
~COLUM7 is constantly being electromagnetically radiated to the surroundings as radiation noise.
一方、空気中の微弱電波を検出する測定装置においても
、各種71−1定条件を設定したり、測定操作を実行す
るために操作パネル上に多数のキーが配設されている。On the other hand, also in a measuring device for detecting weak radio waves in the air, a large number of keys are provided on the operation panel in order to set various 71-1 fixed conditions and execute measurement operations.
したがって、この操作パネルに配設された各キーのキー
操作状態を監視するために前述した第4図に示したキー
入力装置をこの測定装置内に組込むと、検出された微弱
電波に走査信号ROvO〜ROw7および検出信号CO
LUMO〜COLUM71:よる放射雑音が混入して、
測定装置全体の測定精度が低下する問題が生じる。Therefore, when the key input device shown in FIG. 4 described above is incorporated into this measurement device in order to monitor the key operation status of each key arranged on this operation panel, the scanning signal ROvO ~ROw7 and detection signal CO
LUMO~COLUM71: Due to radiation noise mixed in,
A problem arises in which the measurement accuracy of the entire measuring device is reduced.
また、放射雑音が他の測定機に悪影響を及ぼす懸念があ
る。Additionally, there is a concern that the radiation noise will have a negative effect on other measuring instruments.
本発明はこのような事情に鑑みてなされたものであり、
各キー毎にキー操作時のみレベル変化するキー信号を取
出し、このキー信号を優先順位付けてキーコード化する
ことによって、キー操作の応答性能を低下させることな
く、外部に高周波の放射雑音が出力されるのを防止でき
るキー入力装置を提供することを目的とする。The present invention was made in view of these circumstances, and
By extracting a key signal whose level changes only when the key is pressed for each key, prioritizing this key signal, and converting it into a key code, high-frequency radiation noise is output to the outside without degrading the response performance of key operations. It is an object of the present invention to provide a key input device that can prevent users from being
[課題を解決するための手段]
上記課題を解消するために本発明のキー入力装置は、複
数のキーと、この各キー毎に専用の出力線を有し、各キ
ーのオン・オフ動作に応動してレベル変化する各キー信
号を出力するキー信号発生部と、このキー信号発生部か
ら出力されたキー信号をキーコード化して出力すると共
に、複数のキー信号がレベル変化をしたときには予め設
定された優先順位が高いキーのキーコードを優先出力し
、かつ優先順位が最下位のキー信号の入力を楚止したコ
ード発生部と、このコード発生部からのキーコード出力
に応動してラッチ信号および割込信号を出力するキー動
作検出回路と、このキー動作検出回路から出力されるラ
ッチ信号に応動して、コード発生部から出力されるキー
コードをラッチするラッチ回路と、キー動作検出回路か
ら出力された割込信号に応動して、ラッチ回路にラッチ
されたキーコードを読取るマイクロプロセッサとを備え
たものである。[Means for Solving the Problems] In order to solve the above problems, the key input device of the present invention has a plurality of keys and a dedicated output line for each key, and a key input device for on/off operation of each key. A key signal generating section outputs each key signal whose level changes in response, and the key signal output from this key signal generating section is converted into a key code and outputted, and when multiple key signals change in level, it is set in advance. A code generation section that outputs the key code of the key with the highest priority priority and prevents the input of the key signal with the lowest priority order, and a latch signal in response to the key code output from this code generation section. and a key operation detection circuit that outputs an interrupt signal, a latch circuit that latches the key code output from the code generator in response to the latch signal output from the key operation detection circuit, and a key operation detection circuit that outputs an interrupt signal. The apparatus includes a microprocessor that reads a key code latched in a latch circuit in response to an output interrupt signal.
[作用]
このように構成されたキー入力装置によれば、キーがキ
ー操作されると、コード発生部から該当キーに対応する
キーコードが出力され、ラッチ回路へ印加される。そし
て、コード発生部からキーコードが出力されるとキー動
作検出回路が作動して、ラッチ回路へラッチ信号を送出
すると共にマイクロプロセッサへ割込信号を送出する。[Operation] According to the key input device configured in this way, when a key is operated, a key code corresponding to the key is outputted from the code generating section and applied to the latch circuit. When the key code is output from the code generator, the key operation detection circuit is activated and sends a latch signal to the latch circuit and an interrupt signal to the microprocessor.
よって、ラッチ回路は印加されたキーコードをラッチし
、マイクロプロセッサはラッチ回路にラッチされたキー
コードを読取る。Therefore, the latch circuit latches the applied key code, and the microprocessor reads the key code latched by the latch circuit.
逆に、キー操作されない限り、キー信号発生回路、コー
ド発生部等は静的状態を維持しているので、外部に放射
雑音を出力することはない。Conversely, unless a key is operated, the key signal generating circuit, code generating section, etc. maintain a static state, so they do not output radiation noise to the outside.
また、同時に複数のキーをキー操作した場合は、優先順
位の高いキーに対応するキーコードが優先出力されるの
で、重要なキー操作ミスを未然に防止できる。Furthermore, when multiple keys are operated at the same time, the key code corresponding to the key with a higher priority is output preferentially, thereby preventing important key operation errors.
[実施例] 以下本発明の一実施例を図面を用いて説明する。[Example] An embodiment of the present invention will be described below with reference to the drawings.
第1図は実施例のキー入力装置を示す概略構成図である
。例えば63個のキー1が配設された操作パネルに組込
まれたキー信号発生回路2がら各キー1のオン・オフ動
作に応動してレベル変化する63本のキー信号が優先順
位エンコーダ3.ビット検出回路4および桁検出回路5
からなるコード発生部6へ入力される。コード発生部6
がら出力された操作キーに対応する6ビツト(ビット検
出回路4の3ビツトと桁検出回路の3ビツト)からなる
1個のキーコードはラッチ回路7へ印加される。また、
コード発生部6から出力された6ビツトのキーコードは
キー動作検出回路8へ入力される。FIG. 1 is a schematic configuration diagram showing a key input device according to an embodiment. For example, 63 key signals whose level changes in response to the on/off operation of each key 1 are generated by a priority encoder 3. from a key signal generation circuit 2 built into an operation panel on which 63 keys 1 are arranged. Bit detection circuit 4 and digit detection circuit 5
The code is inputted to a code generation section 6 consisting of. Code generation section 6
One key code consisting of 6 bits (3 bits from the bit detection circuit 4 and 3 bits from the digit detection circuit) corresponding to the operation key outputted from the latch circuit 7 is applied to the latch circuit 7. Also,
The 6-bit key code output from the code generator 6 is input to the key operation detection circuit 8.
キー動作検出回路8へ入力された6ビツトのキーコード
はデコーダ回路9で3ビツトにデコードされて、各レベ
ル変化検出回路14).11.12へ入力される。いず
れか一つのレベル変化検出回路14),11.12から
出力されたレベル変化検出信号は割込信号発生回路13
にて1ビツトの割込信号iに変換されてMPU (マイ
クロプロセッサ)14の割込端子INTへ印加されると
共に、ラッチ回路7ヘラツチ信号りとして送出される。The 6-bit key code inputted to the key operation detection circuit 8 is decoded into 3 bits by the decoder circuit 9, and the 6-bit key code is input to each level change detection circuit 14). 11. Input to 12. The level change detection signal output from any one of the level change detection circuits 14) and 11.12 is transmitted to the interrupt signal generation circuit 13.
It is converted into a 1-bit interrupt signal i and applied to the interrupt terminal INT of the MPU (microprocessor) 14, and is also sent out as a latch signal to the latch circuit 7.
ラッチ信号りが入力されたラッチ回路7はコード発生部
6から印加されているキーコードをラッチする。また、
割込信号iが入力されたMPU14はラッチ回路7にラ
ッチされたキーコードを読取る。そして、読取ったキー
コードに対応する例えば測定条件を測定部15へ設定す
るとともに記憶部16へ記憶する。The latch circuit 7 to which the latch signal is input latches the key code applied from the code generator 6. Also,
The MPU 14 to which the interrupt signal i has been input reads the key code latched by the latch circuit 7. Then, for example, measurement conditions corresponding to the read key code are set in the measurement unit 15 and stored in the storage unit 16.
第2図(a)はキー信号発生部2およびコード発生部6
の詳細回路図である。キー信号発生回路2内においては
、63個の各キー1の押下げ動作で閉成される63個の
各接点2aの一端にそれぞれに抵抗2bを介して電圧5
vが印加され、他端は接地されている。したがって、一
つのキー1を押下げると該当キーのキー信号がLレベル
となり、このキー1を離すとHレベルへ戻る。FIG. 2(a) shows the key signal generating section 2 and the code generating section 6.
FIG. In the key signal generation circuit 2, a voltage of 5 is applied to one end of each of the 63 contacts 2a, which are closed by the pressing operation of each of the 63 keys 1, through a resistor 2b.
v is applied, and the other end is grounded. Therefore, when one key 1 is pressed down, the key signal of the corresponding key becomes L level, and when this key 1 is released, it returns to H level.
キー信号発生回路2から出力された63個のキー信号は
8群に分割されてそれぞれコード発生部6の優先順位エ
ンコーダ3を構成する直列接続された8個のプライオリ
ティエンコーダ(IC素子番号7411C14g)3
a〜3hのそれぞれの入力端子DO〜p7へ入力される
。各エンコーダ3a〜3hは同一構成であり、入力端子
DO〜D7に入力された8ビツトのデータを3ビツトの
データに変換して出力端子AO〜A2から出力する。す
なわち、一つのキー信号がLレベルになると、そのキー
信号を3ビツトのデータで特定することができる。なお
、このエンコーダ38〜3hにおいては、複数のキー信
号が同時にLレベルに変化した場合は、入力端子DO〜
D7の番号の大きい方の入力端子のキー信号のみがLレ
ベルに変化したと見なして、このキー信号を3ビツトの
データとして出力端子AO〜A2から出力する。また、
出力端子AO−A2からキー操作されたキー信号のビッ
トデータが出力されると、出力端子EOからHレベル信
号が出力されるとともに、信号検出端子SGからLレベ
ル信号が出力される。The 63 key signals output from the key signal generation circuit 2 are divided into 8 groups, each of which is connected to 8 priority encoders (IC element number 7411C14g) 3 in series, which constitute the priority encoder 3 of the code generation section 6.
It is input to the respective input terminals DO to p7 of a to 3h. Each encoder 3a-3h has the same configuration, converts 8-bit data inputted to input terminals DO-D7 into 3-bit data, and outputs it from output terminals AO-A2. That is, when one key signal goes to L level, that key signal can be specified by 3-bit data. In addition, in the encoders 38 to 3h, when a plurality of key signals change to L level at the same time, the input terminals DO to
It is assumed that only the key signal of the input terminal with the larger number D7 has changed to the L level, and this key signal is outputted as 3-bit data from the output terminals AO to A2. Also,
When the bit data of the key-operated key signal is output from the output terminal AO-A2, an H level signal is output from the output terminal EO, and an L level signal is output from the signal detection terminal SG.
また、エンコーダ38〜3hの各出力端子EOから出力
されたHレベル信号は左側に位置する優先順位の低いキ
ーのキー信号が入力されるエンコーダ3a〜3hの入力
端子E1ヘイネーブル信号として入力される。よって、
右方のエンコーダの優先順位が左方のエンコーダの優先
順位より高くなる。したがって、同時にキー操作された
場合のキーの優先順位はキ一番号が高いほうが優先順位
が高くなる。よって、例えば63番目のキー信号が最も
優先順位が高く、1番目のキー信号が最も優先順位が低
くなる。Further, the H level signal outputted from each output terminal EO of the encoders 38 to 3h is inputted as a Hay enable signal to the input terminal E1 of the encoders 3a to 3h, into which the key signal of the key with the lower priority located on the left side is inputted. . Therefore,
The right encoder has a higher priority than the left encoder. Therefore, when keys are operated at the same time, the higher the key number, the higher the priority. Therefore, for example, the 63rd key signal has the highest priority, and the 1st key signal has the lowest priority.
さらに、最下位優先順位のエンコーダ3aの最下位入力
端子DOは+5■の電源に接続され、キー信号入力が禁
止されている。Further, the lowest input terminal DO of the encoder 3a having the lowest priority is connected to the +5■ power supply, and key signal input is prohibited.
各エンコーダ38〜3hの各出力端子AOのロー(L)
アクティブの出力信号はビット検出回路4を構成する8
入力端子を有したオアゲー)4aへ入力され、同じく、
各エンコーダ38〜3hの各出力端子A1の出力信号は
ビット検出回路4のオアゲート4bへ入力され、さらに
、各エンコーダ3a〜3hの各出力端子A2の出力信号
はビット検出回路4のオアゲート4Cへ入力される。前
述したように1番から63番までの各キー信号は優先順
位が付されているので、各オアゲート48〜4cへ入力
される8本の出力信号が同時にLレベルになることはな
い。すなわち、このビット検出回路4は、各エンコーダ
38〜3hの各入力端子AO〜A7へ入力される8個の
キー信号のうちいずれのキー信号がLレベルに変化した
かを示す3ビツトのビット信号を出力する。Low (L) of each output terminal AO of each encoder 38 to 3h
The active output signal constitutes the bit detection circuit 4.
It is input to (or game) 4a which has an input terminal, and similarly,
The output signal of each output terminal A1 of each encoder 38 to 3h is input to the OR gate 4b of the bit detection circuit 4, and the output signal of each output terminal A2 of each encoder 3a to 3h is input to the OR gate 4C of the bit detection circuit 4. be done. As mentioned above, each key signal from No. 1 to No. 63 is prioritized, so the eight output signals input to each OR gate 48 to 4c do not go to L level at the same time. That is, this bit detection circuit 4 detects a 3-bit bit signal indicating which key signal among the eight key signals inputted to each input terminal AO to A7 of each encoder 38 to 3h has changed to L level. Output.
また、各エンコーダ3a〜3hの信号検出端子SGから
出力される信号は前記各エンコーダ3a〜3hと同一構
成の桁検出回路5の各入力端子DO−D7へ入力される
。この場合、複数のエンコーダ3a〜3hの信号検出端
子SGから同時にLレベル信号が出力されることはない
ので、いずれのエンコーダ38〜3hからLレベル信号
が送出されたかを示す3ビツトの桁信号が出力端子AO
,AI、A2から出力される。さらに、桁検出回路5の
信号検出端子SGの出力信号はインバータ5aでレベル
反転されて、前記ラッチ回路7へ送出される。Further, the signals output from the signal detection terminals SG of each of the encoders 3a to 3h are inputted to each input terminal DO-D7 of a digit detection circuit 5 having the same configuration as each of the encoders 3a to 3h. In this case, since L level signals are not output simultaneously from the signal detection terminals SG of the plurality of encoders 3a to 3h, the 3-bit digit signal indicating which encoder 38 to 3h has sent out the L level signal is Output terminal AO
, AI, and A2. Further, the output signal of the signal detection terminal SG of the digit detection circuit 5 is inverted in level by the inverter 5a and sent to the latch circuit 7.
ビット検出回路4から出力された3ビツトのビット信号
および桁検出回路5から出力された3ビツトの桁信号は
、ラッチ回路7の各入力端子AO〜A2.A3〜A5へ
印加される。すなわち、ビット信号と桁信号との合計6
ビツトで1番から63番までのキーlのキー信号を特定
できる。よって、この6ビツトの信号でもって各キー1
に与えられたキーコードを特定できる。また、この6ビ
ツトの信号はキー動作検出回路8内のデコーダ回路9へ
入力される。The 3-bit bit signal output from the bit detection circuit 4 and the 3-bit digit signal output from the digit detection circuit 5 are input to each input terminal AO to A2 . Applied to A3 to A5. In other words, the total of the bit signal and digit signal is 6.
Key signals of keys 1 to 63 can be specified using bits. Therefore, with this 6-bit signal, each key 1
can identify the key code given to it. Further, this 6-bit signal is input to a decoder circuit 9 within the key operation detection circuit 8.
第2図(b)は、キー動作検出回路8およびMPU14
を示す詳細回路図であり、第3図はキー動作検出回路8
およびMPU14の動作を示すタイムチャートである。FIG. 2(b) shows the key operation detection circuit 8 and the MPU 14.
FIG. 3 is a detailed circuit diagram showing the key operation detection circuit 8.
and a time chart showing the operation of the MPU 14.
デコーダ回路9は入力端子D1〜D6へ入力された6ビ
ツトの信号を3ビツトの信号に圧縮して出力端子AO,
AI、A2から出力する。各出力端子AO,AI、A2
から出力された各出力信号はそれ゛ぞれレベル変化検出
回路12.11.14)へ入力される。The decoder circuit 9 compresses the 6-bit signal input to the input terminals D1 to D6 into a 3-bit signal and outputs the compressed signal to the output terminals AO,
Output from AI and A2. Each output terminal AO, AI, A2
Each output signal outputted from the circuit is input to a level change detection circuit 12.11.14).
各レベル変化検出回路12,11.14)はそれぞれ入
力信号の信号レベルが変化することを検出する回路であ
り、例えばレベル変化検出回路12においては、インバ
ータ12a、排他的論理軸ゲー)12b、D型フリップ
フロップ12Cとで構成されている。すなわち、第3図
に示すように、デコーダ9の出力端子AOの出力信号a
が例えば時刻t。でLレベルへ変化した場合には、イン
バータ12aの出力信号すの変化時刻は応答特性等によ
って時刻t。より若干遅れる。したがって、遅れ時間に
相当する時間幅を有したパルス信号Cが排他的論理軸ゲ
ート12bからフリップフロップ12cのクロック端子
へ印加される。その結果、フリップフロップ12cから
Lレベルのレベル変化検出信号dが割込信号発生回路1
3内のオーアゲ−)13bへ送出される。他のレベル変
化検出回路11.14)も同じ動作を実行する。Each level change detection circuit 12, 11.14) is a circuit that detects a change in the signal level of an input signal. For example, in the level change detection circuit 12, an inverter 12a, an exclusive logic axis gate) 12b, D type flip-flop 12C. That is, as shown in FIG. 3, the output signal a of the output terminal AO of the decoder 9
For example, at time t. When the output signal of the inverter 12a changes to L level, the time of change of the output signal of the inverter 12a is at the time t depending on the response characteristics and the like. slightly later than that. Therefore, a pulse signal C having a time width corresponding to the delay time is applied from the exclusive logic axis gate 12b to the clock terminal of the flip-flop 12c. As a result, the level change detection signal d of L level is output from the flip-flop 12c to the interrupt signal generation circuit 1.
3) is sent to 13b. Other level change detection circuits 11.14) perform the same operation.
オアゲート13aから出力されたレベル変化検出信号e
は単安定回路13bへ入力される。単安定回路13bは
レベル変化検出信号eが入力すると、その入力時刻から
抵抗とコンデンサとの時定数回路で定まる規定時間Ts
(=lO霞S)だけLレベルとなる信号fを次のフ
リップフロップ13cのクロック端子へ送出する。フリ
ップフロップ13cは単室回路13bにて規定時間T、
だけ遅延されたレベル変化検出信号gを割込信号iとし
てMPU14の割込端子INTへ印加すると同時に、オ
アゲート13dを介してラッチ回路7のラッチ端子LE
へラッチ信号りとして印加する。Level change detection signal e output from OR gate 13a
is input to the monostable circuit 13b. When the level change detection signal e is input to the monostable circuit 13b, a specified time Ts determined by a time constant circuit of a resistor and a capacitor starts from the input time.
The signal f which becomes L level by (=lO Kasumi S) is sent to the clock terminal of the next flip-flop 13c. The flip-flop 13c is connected to the single-chamber circuit 13b for a specified time T,
The level change detection signal g delayed by
Apply as a latch signal.
なお、前記単安定回路13bにて設定される規定時間T
sはキー操作時に発生するチャタリングによる信号レベ
ル変化を次のキー操作による信号レベル変化と区別して
、誤動作を防止するために設けている。Note that the specified time T set in the monostable circuit 13b
s is provided to prevent a malfunction by distinguishing a signal level change due to chattering that occurs when a key is operated from a signal level change caused by the next key operation.
しかして、オアゲート13a、単安定回路13b、フリ
ップフロップ13C1およびオアゲート13dは、レベ
ル変化検出回路14),11゜12から出力されたレベ
ル検出信号に応動してラッチ信号りおよび割込信号iを
出力する割込信号発生回路13を構成する。Thus, the OR gate 13a, the monostable circuit 13b, the flip-flop 13C1, and the OR gate 13d output a latch signal and an interrupt signal i in response to the level detection signal output from the level change detection circuit 14), 11°12. An interrupt signal generation circuit 13 is configured.
ラッチ回路7は、ラッチ端子LEにラッチ信号りが入力
されると、入力端子AO−A5に印加されているビット
信号と桁信号とからなる6ビツト信号をキーコードとし
てラッチする。When a latch signal is input to the latch terminal LE, the latch circuit 7 latches the 6-bit signal consisting of the bit signal and digit signal applied to the input terminals AO-A5 as a key code.
割込信号1入力に応動してMPU14の読出/書込(R
/W)端子から出力されたHレベルの読出信号jはイン
バータ15aにてレベル反転され、アンドゲート15b
へ入力される。アンドゲート15bの他方の入力端子に
はMPU14がら出力される操作パネルを選択するパネ
ル選択信号(PEL)kが入力される。したがって、パ
ネル選択信号(PEL)kがLレベルへ変化した時刻t
2にてラッチ回路7の選択端子OEがLレベルとなる。Read/write (R) of MPU 14 in response to interrupt signal 1 input
The H level read signal j outputted from the /W) terminal is inverted in level by the inverter 15a, and then outputted from the AND gate 15b.
is input to. A panel selection signal (PEL) k for selecting an operation panel output from the MPU 14 is input to the other input terminal of the AND gate 15b. Therefore, the time t when the panel selection signal (PEL) k changes to L level
At step 2, the selection terminal OE of the latch circuit 7 becomes L level.
しかして、MPU14はデータバスを介してラッチ回路
7にラッチされているキーコードを読取る。The MPU 14 then reads the key code latched by the latch circuit 7 via the data bus.
ラッチ回路7の選択端子OEへ読出信号jが印加される
と同時に、この読出信号はキー動作検出回路8の各フリ
ップフロップ14)c、llc。At the same time that the read signal j is applied to the selection terminal OE of the latch circuit 7, this read signal is applied to each flip-flop 14)c, llc of the key operation detection circuit 8.
12c、13cのセット状態をクリアする。そして、割
込信号iを元のHレベルへ戻す。Clear the set status of 12c and 13c. Then, the interrupt signal i is returned to the original H level.
MPU14によるキーコードの読取処理が終了した後、
時刻t3にてパネル選択信号(P E L)kがHレベ
ルへ戻ると、ラッチ信号りも元のHレベルへ戻る。After the key code reading process by the MPU 14 is completed,
When the panel selection signal (PEL) k returns to the H level at time t3, the latch signal also returns to the original H level.
そして、時刻t4にて押し下げたキーが離されると、デ
コーダ回路9から出力されている該当キーに対応する出
力信号aがLレベルからHレベルへ立上がる。そして、
レベル検出回路12でその立上時の信号レベル変化を検
出する。したがって、それ以降の割込信号発生回路13
の各回路13a。When the pressed key is released at time t4, the output signal a corresponding to the corresponding key output from the decoder circuit 9 rises from the L level to the H level. and,
A level detection circuit 12 detects a signal level change at the time of rise. Therefore, the subsequent interrupt signal generation circuit 13
Each circuit 13a.
13b、13c、13dの動作は前記出力出力信号aが
時刻t。で立下った場合と同様の手順で、該当キーのキ
ーコードがMPU14に読取られる。The operations of 13b, 13c, and 13d are performed when the output signal a is at time t. The key code of the corresponding key is read by the MPU 14 in the same procedure as when the key is turned off.
このように構成されたキー入力装置において、操作パネ
ルに配列された任意のキー1を押下げると、該当キー1
のキーコードがMPU14に読取られる。また、該当キ
ー1の押下げ状態を解除すると、解除された時点で、解
除された該当キーのキーコードがMPU14にて読取ら
れる。In the key input device configured in this way, when any key 1 arranged on the operation panel is pressed, the corresponding key 1
The key code is read by the MPU 14. Further, when the pressed state of the corresponding key 1 is released, the key code of the released corresponding key is read by the MPU 14 at the time of release.
すなわち、コード発生部6.キー動作検出回路8、ラッ
チ回路7等のキー入力装置を構成する各構成部材は、キ
ー1がキー操作された時のみ動作し、操作者がキー操作
を実行していない期間は同等動作を行っていなくて、全
く静的状態を維持している。したがって、第4図に示す
ような一定時間間隔で走査信号を常時出力していないの
で、外部に放射雑音が放出されることはない。よって、
たとえこのキー入力装置を微弱電波を測定する測定機に
組込んだとしても71−1定結果に雑音が混入すること
はないので、測定精度を大幅に向上できる。That is, the code generation section 6. Each component that makes up the key input device, such as the key operation detection circuit 8 and the latch circuit 7, operates only when the key 1 is operated, and performs the same operation while the operator is not performing any key operation. It remains completely static. Therefore, since the scanning signal is not constantly outputted at fixed time intervals as shown in FIG. 4, no radiation noise is emitted to the outside. Therefore,
Even if this key input device is incorporated into a measuring device that measures weak radio waves, no noise will be mixed into the 71-1 constant results, so the measurement accuracy can be greatly improved.
また、放射雑音電波が出力されないので、他の測定機に
悪影響を与えることを未然に防止できる。Furthermore, since no radiated noise radio waves are output, it is possible to prevent adverse effects on other measuring instruments.
また、コード発生部6として優先順位エンコーダ3を採
用しているので、操作パネルに配列する各種のキーに優
先順位を付け、例えば重要なキーとさほど重要でないキ
ーとを同時に押した場合には、重要なキーのみが優先し
て受付けられるようにしている。したがって、重要なキ
ー操作ミスを未然に防止できる。In addition, since the priority encoder 3 is adopted as the code generation unit 6, the various keys arranged on the operation panel are prioritized, and for example, when an important key and a less important key are pressed at the same time, Only important keys are accepted with priority. Therefore, important key operation mistakes can be prevented.
さらに、優先順位エンコーダ3を構成する最下位順位の
エンコーダ3a内のさらに最下位順位の入力端子DOに
+5vの電圧を印加して、強制的にHレベルに設定して
、キー信号入力を禁止している。すなわち、最下位順位
を含めて全部のキーのキー信号が優先順位エンコーダ3
の各入力端子に接続されていた場合、第3図に示すよう
にキーが押されても離されてもMPU14に割込信号l
が印加される。割込信号iが入力されると、MPU14
は無条件にラッチ回路7にラッチされているキーコード
を読取る。しかし、キーが押されていないというのは、
仮に番号0番のキーか存在して、その0番のキーをキー
スイッチとして使用した場合には、押されていないキー
コードとキーが押されている状態とが同一キーコードに
なる。Furthermore, a voltage of +5V is applied to the input terminal DO at the lowest rank in the encoder 3a at the lowest rank constituting the priority encoder 3, and the input terminal DO is forcibly set to H level, thereby prohibiting key signal input. ing. In other words, the key signals of all keys including the lowest order are sent to the priority encoder 3.
If the key is connected to each input terminal of
is applied. When the interrupt signal i is input, the MPU 14
reads the key code latched in the latch circuit 7 unconditionally. However, if the key is not pressed,
If a key with number 0 exists and the key with number 0 is used as a key switch, the key code that is not pressed and the state where the key is pressed will be the same key code.
よって、キーが押されていないという状態を判別できな
い。したがって、0番のキーに相当するエンコーダ3a
の入力端子DOを使用禁止にして、0番のキーに相当す
るキーコードが読まれた時はキーが押されていないと判
断するようにしている。Therefore, it is not possible to determine whether the key is not pressed. Therefore, encoder 3a corresponding to key number 0
The input terminal DO is disabled, and when the key code corresponding to key number 0 is read, it is determined that the key is not pressed.
[発明の効果]
以上説明したような本発明のキー入力装置によれば、各
キー毎にキー操作時のみレベル食代する各キー信号を取
出し、この各キー信号を優先順位を付けてコード化する
ことによって、キー操作の応答性能を低下させることな
く、外部に高周波の放射雑音が出力されるのを未然に防
止でき、このキー入力装置が組込まれた各種機器や他の
機器に対して該当機器が実行しようとする機能に対して
悪影響を与えることを防止できる。特に、放射雑音の影
響を受けやすい測定装置にはH効である。[Effects of the Invention] According to the key input device of the present invention as described above, each key signal that is leveled only when the key is operated is extracted for each key, and each key signal is prioritized and coded. By doing so, it is possible to prevent high-frequency radiation noise from being output to the outside without degrading the response performance of key operations, and it is possible to prevent high-frequency radiation noise from being output to the outside. It is possible to prevent an adverse effect on the functions that the device is trying to perform. In particular, this is an H effect for measurement devices that are susceptible to radiation noise.
第1図は本発明の一実施例に係わるキー入力装置の概略
構成を示すブロック図、第2図(a)(b)は同実施例
装置の詳細回路図、第3図は同実施装置の動作を示すタ
イムチャート、第4図は従来のキー入力装置を示すブロ
ック図である。
1・・・キー 2・・・キー信号発生回路、3・・・優
先順位エンコーダ、4・・・ビット検出回路、5・・・
桁検出回路、6・・・コード発生部、7・・・ラッチ回
路、・・・キー動作検出回路、
9・・・デコーダ回路、
14)゜
2・・・レベル変化検出回路、
3・・・
割込信号発生回路、
14・・・MPU。FIG. 1 is a block diagram showing a schematic configuration of a key input device according to an embodiment of the present invention, FIGS. 2(a) and 2(b) are detailed circuit diagrams of the same embodiment, and FIG. 3 is a detailed circuit diagram of the same embodiment. A time chart showing the operation, and FIG. 4 is a block diagram showing a conventional key input device. 1...Key 2...Key signal generation circuit, 3...Priority encoder, 4...Bit detection circuit, 5...
Digit detection circuit, 6... Code generation section, 7... Latch circuit,... Key operation detection circuit, 9... Decoder circuit, 14)゜2... Level change detection circuit, 3... Interrupt signal generation circuit, 14...MPU.
Claims (1)
有し、各キーのオン・オフ動作に応動してレベル変化す
る各キー信号を出力するキー信号発生部(2)と、この
キー信号発生部から出力されたキー信号をキーコード化
して出力すると共に、複数のキー信号がレベル変化をし
たときには予め設定された優先順位が高いキーのキーコ
ードを優先出力し、かつ優先順位が最下位のキー信号の
入力を禁止したコード発生部(6)と、このコード発生
部からのキーコード出力に応動してラッチ信号および割
込信号を出力するキー動作検出回路(8)と、このキー
動作検出回路から出力されるラッチ信号に応動して、前
記コード発生部から出力されるキーコードをラッチする
ラッチ回路(7)と、前記キー動作検出回路から出力さ
れた割込信号に応動して、前記ラッチ回路にラッチされ
たキーコードを読取るマイクロプロセッサ(14)とを
備えたキー入力装置。a plurality of keys (1), a key signal generator (2) having a dedicated output line for each key and outputting each key signal whose level changes in response to the on/off operation of each key; The key signal output from this key signal generating section is converted into a key code and outputted, and when the level of multiple key signals changes, the key code of the key with the higher priority set in advance is output preferentially, and the priority a code generation section (6) which prohibits input of the lowest key signal; and a key operation detection circuit (8) which outputs a latch signal and an interrupt signal in response to the key code output from the code generation section. A latch circuit (7) that latches the key code output from the code generation section in response to the latch signal output from the key operation detection circuit; and a microprocessor (14) for reading the key code latched in the latch circuit.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2004437A JP2510016B2 (en) | 1990-01-16 | 1990-01-16 | Key input device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2004437A JP2510016B2 (en) | 1990-01-16 | 1990-01-16 | Key input device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH03210620A true JPH03210620A (en) | 1991-09-13 |
| JP2510016B2 JP2510016B2 (en) | 1996-06-26 |
Family
ID=11584205
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2004437A Expired - Lifetime JP2510016B2 (en) | 1990-01-16 | 1990-01-16 | Key input device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2510016B2 (en) |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0196029U (en) * | 1987-12-18 | 1989-06-26 |
-
1990
- 1990-01-16 JP JP2004437A patent/JP2510016B2/en not_active Expired - Lifetime
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0196029U (en) * | 1987-12-18 | 1989-06-26 |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2510016B2 (en) | 1996-06-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CA1073554A (en) | Keyboard circuit | |
| KR900007405B1 (en) | Keyboard control method | |
| US4470038A (en) | Shift control system for keyboards | |
| JPH03210620A (en) | Key input device | |
| KR930005771B1 (en) | Interrupt control circuit | |
| JPH02195599A (en) | information processing equipment | |
| KR950025340A (en) | Microwave encoder key input device and interrupt processing method using the device | |
| JPH0554667A (en) | Memory device with serial data / parallel data mutual conversion function | |
| US6650579B1 (en) | Semiconductor device having test and read modes and protection such that ROM data reading is prevented in the test mode | |
| KR200142931Y1 (en) | Base address automatic setting device | |
| JPS59188718A (en) | Microcomputer of key scan inputting system | |
| KR100202611B1 (en) | Keyboard scanning device | |
| KR100295647B1 (en) | Memory data protection circuit | |
| JPH05122537A (en) | Two-dimensional encoder | |
| JPS6220020Y2 (en) | ||
| KR900007057B1 (en) | Circuit Repeated Code Signaling Detection Circuit and Method of Exchange | |
| JPS58200345A (en) | One-chip microcomputer | |
| JPH08147262A (en) | Microprocessor | |
| JPH0427754B2 (en) | ||
| KR900000604B1 (en) | Key input data processing circuit | |
| JPH0583129A (en) | A/d converter circuit | |
| JPS6019233A (en) | Keyboard input device | |
| JPH01237719A (en) | Data logical sum compressing circuit | |
| JPH06350449A (en) | Electronic volume device | |
| JPS63184816A (en) | Key depression detecting circuit |