JPH06314148A - Key scan circuit - Google Patents

Key scan circuit

Info

Publication number
JPH06314148A
JPH06314148A JP5102789A JP10278993A JPH06314148A JP H06314148 A JPH06314148 A JP H06314148A JP 5102789 A JP5102789 A JP 5102789A JP 10278993 A JP10278993 A JP 10278993A JP H06314148 A JPH06314148 A JP H06314148A
Authority
JP
Japan
Prior art keywords
key
circuit
scan
signal
scan pulse
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.)
Withdrawn
Application number
JP5102789A
Other languages
Japanese (ja)
Inventor
Hiroshi Enomoto
博 榎本
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP5102789A priority Critical patent/JPH06314148A/en
Publication of JPH06314148A publication Critical patent/JPH06314148A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

PURPOSE:To prevent the misoperation of an equipment by detecting the depression state of a key of a keyboard which becomes faulty at the time of power-ON operation and to reduce the harmonic disturbance which is generated during scanning operation. CONSTITUTION:The key scan circuit is provided with a key scan control circuit 40 which inputs a POR signal at the same time with the power-ON operation. This key scan control circuit 40 receives the POR signal and outputs a control signal S2 for starting key-scanning operation to a key scan pulse generating circuit 50. Further, this key scan control circuit 40 outputs a control signal S3 for stopping the scanning operation to the key scan pulse generating circuit 50 a set time later. The key scan circuit forcibly performs the scanning operation with those signals S2 and S2 right after the power source is turned ON to detect a fault of a key switch in a key matrix 10.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、キーボード装置等にお
けるキースキャン回路に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a key scan circuit in a keyboard device or the like.

【0002】[0002]

【従来の技術】従来、このような分野の技術としては、
例えば、次のような文献に記載されるものがあった。 文献;特開平1−260520号公報 キーマトリックスは、複数のキーに対応した複数のキー
スイッチを有している。キースキャン回路は、該回路内
で生成したスキャンパルスSSCによって、キーマトリ
ックス中のどのキーが押下されているかを検出するスキ
ャン動作を行う回路である。従来のキースキャン回路に
は、常にスキャン動作を行うキースキャン回路と、キー
マトリックス中のいずれかのキーの押下を検知してから
スキャン動作を開始するキースキャン回路とがある。
2. Description of the Related Art Conventionally, as a technique in such a field,
For example, some documents were described in the following documents. Reference: Japanese Patent Application Laid-Open No. 1-260520 The key matrix has a plurality of key switches corresponding to a plurality of keys. The key scan circuit is a circuit that performs a scan operation to detect which key in the key matrix is pressed by the scan pulse SSC generated in the circuit. The conventional key scan circuit includes a key scan circuit that always performs a scan operation and a key scan circuit that starts a scan operation after detecting depression of any key in the key matrix.

【0003】第1の従来例 図2は、従来のキースキャン回路の例を示す構成ブロッ
ク図である。このキースキャン回路は、常にスキャン動
作を行う回路である。図2のキースキャン回路は、n本
の第1の走査線及びその走査線と交差するm本の第2の
走査線を有し、そのn×m個の各交点にマトリックス状
に配置されたキースイッチと前記第1,第2の走査線と
でキーマトリックス10が構成されている。キースキャ
ン回路は、パルスを入力してn本の第1の走査線に順次
スキャンパルスSSCとして該パルスを出力するシフト
レジスタ11と、このシフトレジスタ11からのスキャ
ンパルスSSCを各キースイッチを介して第2の走査線
で入力する入力ラッチ回路12と、カウンタ13と、パ
ルスを生成してシフトレジスタ11、入力ラッチ回路1
2及びカウンタ13へパルスをそれぞれ供給するパルス
発生回路14と、該入力ラッチ回路12及びカウンタ1
3の出力信号をそれぞれ入力してスキャン動作結果の出
力データDoutを出力すると共に、キーが押下された
という信号S10を出力する判定回路15とで、構成さ
れている。以上のように構成された図2のキースキャン
回路の動作を説明する。
First Conventional Example FIG. 2 is a configuration block diagram showing an example of a conventional key scan circuit. The key scan circuit is a circuit that always performs a scan operation. The key scan circuit of FIG. 2 has n first scan lines and m second scan lines intersecting the scan lines, and is arranged in a matrix at each n × m intersections. The key switch 10 and the first and second scanning lines form a key matrix 10. The key scan circuit inputs a pulse and sequentially outputs the pulse as a scan pulse SSC to the n first scan lines, and a scan pulse SSC from the shift register 11 via each key switch. The input latch circuit 12 that inputs by the second scanning line, the counter 13, the shift register 11 that generates a pulse, and the input latch circuit 1
2 and a counter 13, and a pulse generation circuit 14 for supplying a pulse to each of the input latch circuit 12 and the counter 1.
3 to output the output data Dout of the scan operation result and to output the signal S10 indicating that the key has been pressed. The operation of the key scan circuit of FIG. 2 configured as above will be described.

【0004】このキーマトリックス10におけるスキャ
ン動作中のアクティブな信号の状態レベルを“L”、ノ
ンアクティブな状態を“H”とすると、スキャンパルス
SSCによってn本の第1の走査線のうち1本だけが
“L”、他のn−1本は、“H”となっている。この
“L”の走査線は、シフトレジスタ11によってパルス
発生回路14からのパルスの入力に伴い、シフトされて
第1の各走査線を順次移動する。この“L”の状態の第
1の走査線に接続されたm個のキースイッチの状態を、
m本の第2の走査線を介して入力ラッチ回路12がラッ
チする。同時に、カウンタ13も、パルス発生回路14
からの入力パルスに伴い、キーマトリックス10内の第
1の走査線の何本目が“L”であるかをカウントする。
入力ラッチ回路12の出力信号とカウンタ13の出力信
号は判定回路15に入力され、それらの出力信号によっ
て判定回路15が、キーマトリックス10中の押下状態
のキーを検出し、データDoutとして出力すると共
に、キー押下げ信号S10を出力する。
When the state level of the active signal during the scanning operation in the key matrix 10 is "L" and the non-active state is "H", one of the n first scanning lines is generated by the scan pulse SSC. Only "L" and the other n-1 lines are "H". This "L" scanning line is shifted by the shift register 11 in response to the input of a pulse from the pulse generating circuit 14, and is sequentially moved in each of the first scanning lines. The state of the m key switches connected to the first scanning line in the "L" state is
The input latch circuit 12 latches via the m second scanning lines. At the same time, the counter 13 also has a pulse generation circuit 14
The number of the first scanning line in the key matrix 10 being "L" is counted in accordance with the input pulse from.
The output signal of the input latch circuit 12 and the output signal of the counter 13 are input to the determination circuit 15, and the determination circuit 15 detects the pressed key in the key matrix 10 by these output signals and outputs it as the data Dout. , Key press signal S10 is output.

【0005】第2の従来例 図3は、図2の改良例のキースキャン回路である。この
キースキャン回路は、キーマトリックス内のいずれかの
キーの押下を感知してから、スキャン動作を開始する構
成としている。そのため、スキャンパルスSSCの発生
は、キーが押下されている時間のみとされ、スキャンパ
ルスSSCの高調波による高調波妨害を低減している。
図3のキースキャン回路は、n本の第1の走査線及びそ
れらの走査線と交差するm本の第2の走査線を有し、図
2と同様に、そのn×m個の各交点にマトリックス状に
それぞれ配置されたキースイッチと前記第1,第2の走
査線とでキーマトリックス10が構成されている。キー
スキャン回路は、パルスを入力して順次スキャンパルス
SSCとしてそのパルスをn本の出力端子から出力する
シフトレジスタ21と、このシフトレジスタ21の出力
を制御してキーマトリックス10のn本の第1の走査線
にスキャンパルスSSCを出力するゲート22−1〜2
2−nと、そのゲート22−1〜22−nからのスキャ
ンパルスSSCを各キースイッチを介して第2の走査線
で入力する入力ラッチ回路23と、カウンタ24と、パ
ルスを生成して前記シフトレジスタ21、入力ラッチ回
路23及びカウンタ24へパルスをそれぞれ供給するパ
ルス発生回路25とを有している。また、このキースキ
ャン回路は、前記m本の第2の走査線に接続されてゲー
ト22−1〜22−nの開閉を制御すると共に、パルス
発生回路25の駆動を制御する押下げ判定回路26を備
えている。さらにキースキャン回路は、入力ラッチ回路
23、カウンタ24及び押下げ判定回路26の出力信号
をそれぞれ入力して押下状態のキーを検出して出力デー
タDoutを出力すると共に、キーが押されたという信
号S10を出力する判定回路27とで、構成されてい
る。
Second Conventional Example FIG. 3 shows a key scan circuit of an improved example of FIG. The key scan circuit is configured to start the scan operation after detecting the depression of any key in the key matrix. Therefore, the scan pulse SSC is generated only during the time when the key is pressed, and harmonic interference due to the harmonic of the scan pulse SSC is reduced.
The key scan circuit of FIG. 3 has n first scan lines and m second scan lines intersecting the scan lines, and each of the n × m intersections is the same as in FIG. A key matrix 10 is composed of the key switches arranged in a matrix and the first and second scanning lines. The key scan circuit inputs a pulse and sequentially outputs a pulse as a scan pulse SSC from the n output terminals of the shift register 21, and the output of the shift register 21 is controlled to control the first n of the key matrix 10. 22-1 and 22-2 for outputting the scan pulse SSC to the scan line of
2-n, the input latch circuit 23 for inputting the scan pulse SSC from the gates 22-1 to 22-n through the respective key switches on the second scan line, the counter 24, and generating the pulse. It has a shift register 21, an input latch circuit 23, and a pulse generation circuit 25 for supplying pulses to a counter 24, respectively. The key scan circuit is connected to the m second scan lines to control the opening / closing of the gates 22-1 to 22-n and also to control the drive of the pulse generating circuit 25. Is equipped with. Further, the key scan circuit inputs the output signals of the input latch circuit 23, the counter 24, and the press-down determination circuit 26, detects the pressed key, outputs the output data Dout, and outputs a signal indicating that the key is pressed. The determination circuit 27 outputs S10.

【0006】以上の様に構成されたキースキャン回路の
動作を以下に説明する。すべてのキースイッチが押下さ
れていないとき、即ち、すべてのキースイッチがオフの
とき、図3の押下げ判定回路26の出力信号は、ゲート
22−1〜22−nを制御してシフトレジスタ21の出
力に関係なくn本の第1の走査線の信号レベルを“L”
にする。その後、押下げ判定回路26は、m本の第2の
走査線の1本以上の信号レベルが“L”かどうかを判定
し、“L”でなければそのまま現状を維持する。即ち、
押下げ判定回路26の出力信号は、パルス発生回路25
にパルスを発生させずに、ゲート22−1〜22−nの
全出力を“L”にする。これと同時に、押下げ判定回路
26は、判定回路27にキーが押下されていないという
情報を伝える。ここで、m本の第2の走査線の1本或い
は複数本が、信号レベル“L”となっていれば、押下げ
判定回路26の出力信号は、パルス発生回路25にパル
スを発生させる。これと同時に、押下げ判定回路26の
出力信号は、ゲート22−1〜22−nを制御してシフ
トレジスタ21からのスキャンパルスSSCをそのまま
キーマトリックス10へ出力しスキャン動作が開始す
る。さらに、押下げ判定回路26は、判定回路27にキ
ースイッチが押下げられたという情報を伝える。その
後、どのキースイッチがオンになったかの判定は、第1
の従来例と同様の動作で行われる。
The operation of the key scan circuit configured as above will be described below. When all the key switches are not pressed, that is, when all the key switches are off, the output signal of the depression determination circuit 26 of FIG. 3 controls the gates 22-1 to 22-n to shift register 21. Signal level of n first scanning lines regardless of the output of
To After that, the push-down determination circuit 26 determines whether or not the signal level of at least one of the m second scanning lines is "L", and if not "L", the current state is maintained as it is. That is,
The output signal of the push-down determination circuit 26 is the pulse generation circuit 25.
All pulses of the gates 22-1 to 22-n are set to "L" without generating a pulse. At the same time, the depression determination circuit 26 informs the determination circuit 27 that the key is not pressed. Here, if one or more of the m second scanning lines is at the signal level “L”, the output signal of the push-down determination circuit 26 causes the pulse generation circuit 25 to generate a pulse. At the same time, the output signal of the push-down determination circuit 26 controls the gates 22-1 to 22-n to output the scan pulse SSC from the shift register 21 to the key matrix 10 as it is to start the scan operation. Further, the depression determination circuit 26 informs the determination circuit 27 that the key switch has been depressed. Then, determine which key switch is turned on by the first
The same operation as that of the conventional example is performed.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、従来キ
ースキャン回路においては、次のような課題があった。
例えば、ノーマルオフのキースイッチで、キーが故障し
て常にキーがオン状態の場合、第1の従来例では、常に
故障キーのスイッチが押下状態と判定回路15に判断さ
れ、機器の誤動作の原因となる。第2の従来例では第1
の従来例の不具合に加えて、常に故障キーのキースイッ
チがオン状態にあるので、押下げ判定回路26から、常
に第1の制御信号がパルス発生回路25に出力され、ス
キャン動作が連続して行われる。このことによって、第
2の従来例の利点は、発揮されず、スキャンパルスSS
Cの高調波による高調波妨害の低減が図れない。また、
第2の従来例において、故障キーのキースイッチを持っ
ていなくてもキースイッチを長時間押下し続けると、上
記と同様に、キースキャン動作が連続して行われ、第2
の従来例の利点は、発揮されず、スキャンパルスの高調
波による高調波妨害の低減が図れない。本発明は前記従
来技術が持っていた課題として、キー故障時における誤
検知、及びキー故障時と長時間キースイッチを押してい
る時に高調波妨害の低減が図れないという点について解
決をしたキースキャン回路を提供するものである。
However, the conventional key scan circuit has the following problems.
For example, in the case of a normally-off key switch, if the key is broken and the key is always in the on state, in the first conventional example, the judgment circuit 15 always judges that the switch of the broken key is in the depressed state, which causes the malfunction of the device. Becomes The first in the second conventional example
In addition to the disadvantage of the prior art example, since the key switch of the defective key is always in the ON state, the push-down determination circuit 26 always outputs the first control signal to the pulse generation circuit 25, and the scan operation is continuously performed. Done. As a result, the advantages of the second conventional example are not exerted, and the scan pulse SS
Harmonic interference due to the harmonics of C cannot be reduced. Also,
In the second conventional example, if the key switch is continuously pressed for a long time even if the key switch for the defective key is not held, the key scan operation is continuously performed as described above.
The advantage of the prior art example is not exerted, and the harmonic interference due to the harmonic of the scan pulse cannot be reduced. SUMMARY OF THE INVENTION The present invention solves, as problems that the above-mentioned conventional art has, a key scan circuit that solves the problem of erroneous detection when a key fails and that harmonic interference cannot be reduced when the key is pressed and the key switch is pressed for a long time. Is provided.

【0008】[0008]

【課題を解決するための手段】第1の発明は、前記課題
を解決するために、キースキャン回路に、交差する複数
の第1の走査線と複数の第2の走査線との各交差点に複
数のキースイッチがマトリックス状に配置されたキーマ
トリックスと、前記第1の走査線に順次スキャンパルス
を出力するキースキャンパルス発生回路と、前記キース
イッチを介して前記スキャンパルスを前記第2の走査線
から入力する入力ラッチ回路と、前記キースイッチ中の
各キースイッチのオン、オフ状態に基づいて前記キース
キャンパルス発生回路の出力を制御する第1の制御信号
を該キースキャンパルス発生回路へ出力するキー入力判
定回路とを備えている。そして、電源投入時に発生する
信号を入力し、スキャン動作開始用の第2の制御信号
と、所定の時間経過後に該スキャン動作停止用の第3の
制御信号とを、前記キースキャンパルス発生回路へ供給
するキースキャン制御回路を、キースキャン回路に設け
ている。
According to a first aspect of the present invention, in order to solve the above-mentioned problems, a key scan circuit is provided at each intersection of a plurality of intersecting first scanning lines and a plurality of second scanning lines. A key matrix in which a plurality of key switches are arranged in a matrix, a key scan pulse generation circuit that sequentially outputs a scan pulse to the first scan line, and a scan pulse for the second scan via the key switch. An input latch circuit for inputting from a line and a first control signal for controlling the output of the key scan pulse generation circuit based on the ON / OFF state of each key switch in the key switch is output to the key scan pulse generation circuit. And a key input determination circuit for Then, a signal generated when the power is turned on is input, and a second control signal for starting the scan operation and a third control signal for stopping the scan operation after a lapse of a predetermined time are sent to the key scan pulse generating circuit. The supplied key scan control circuit is provided in the key scan circuit.

【0009】第2の発明では、キースキャン回路に、交
差する複数の第1の走査線と複数の第2の走査線との各
交差点に複数のキースイッチがマトリックス状に配置さ
れたキーマトリックスと、前記第1の走査線に順次スキ
ャンパルスを出力するキースキャンパルス発生回路と、
前記キースイッチを介して前記スキャンパルスを前記第
2の走査線から入力する第1の入力ラッチ回路と、前記
キースイッチ中の各キースイッチのオンオフ状態に基づ
き、前記キースキャンパルス発生回路のを制御する第1
の制御信号を該キースキャンパルス発生回路へ与えるキ
ー入力判定回路とを備えている。そして、そのキー入力
判定回路を、所定のタイミングで前記第2の走査線の各
信号レベルをラッチする第1のラッチ回路と、前記第1
のラッチ回路とは異なるタイミングで前記第1のラッチ
回路の出力信号をラッチする第2のラッチ回路と、前記
第1,第2のラッチ回路の出力信号の一致または不一致
を検出して不一致のときには前記第1の制御信号を出力
する不一致回路とで構成している。
According to a second aspect of the invention, the key scan circuit includes a key matrix in which a plurality of key switches are arranged in a matrix at each intersection of a plurality of intersecting first scanning lines and a plurality of second scanning lines. A key scan pulse generation circuit for sequentially outputting scan pulses to the first scan line,
A first input latch circuit for inputting the scan pulse from the second scan line via the key switch, and control of the key scan pulse generation circuit based on an on / off state of each key switch in the key switch. First to do
And a key input determination circuit for applying the control signal of 1 to the key scan pulse generation circuit. The key input determination circuit includes a first latch circuit that latches each signal level of the second scanning line at a predetermined timing, and the first latch circuit.
The second latch circuit that latches the output signal of the first latch circuit at a timing different from that of the second latch circuit and the output signals of the first and second latch circuits are detected, and when they do not match, And a mismatch circuit that outputs the first control signal.

【0010】[0010]

【作用】第1の発明によれば、以上のようにキースキャ
ン回路を構成したので、電源投入時にキースキャン制御
回路が第2の制御信号をキースキャンパルス発生回路に
供給し、そのキースキャンパルス発生回路によって生成
されたパルスがキーマトリックスに出力される。第2の
走査線を介して入力ラッチ回路がそのスキャンパルスを
入力して各キースイッチのオン、オフ状態を検出するス
キャン動作が強制的に行われる。そして、所定の時間経
過後、キースキャン制御回路が第3の制御信号をキース
キャンパルス発生回路へ供給し、キースキャンパルス発
生回路は、パルス生成を停止する。そのため、スキャン
動作は、停止する。その後は、キー入力判定回路が、第
2の走査線を介してオン、オフ状態を検知して、第1の
制御信号をキースキャンパルス発生回路へ供給し、その
キースキャンパルス発生回路によって生成されたパルス
がキーマトリックスに出力される。第2の走査線を介し
て入力ラッチ回路がそのスキャンパルスを入力して各キ
ースイッチのオン、オフ状態を検出するスキャン動作が
行われる。
According to the first aspect of the invention, since the key scan circuit is constructed as described above, the key scan control circuit supplies the second control signal to the key scan pulse generating circuit when the power is turned on, and the key scan pulse is generated. The pulse generated by the generating circuit is output to the key matrix. The input latch circuit inputs the scan pulse via the second scan line to forcibly perform the scan operation for detecting the on / off state of each key switch. Then, after a lapse of a predetermined time, the key scan control circuit supplies the third control signal to the key scan pulse generating circuit, and the key scan pulse generating circuit stops the pulse generation. Therefore, the scan operation is stopped. After that, the key input determination circuit detects the on / off state via the second scan line, supplies the first control signal to the key scan pulse generation circuit, and is generated by the key scan pulse generation circuit. Pulse is output to the key matrix. The input latch circuit inputs the scan pulse through the second scan line to perform the scan operation of detecting the on / off state of each key switch.

【0011】第2の発明によれば、第1のラッチ回路と
第2のラッチ回路の出力が不一致のとき、すなわち、第
1のラッチ回路にラッチされた後に、各キースイッチの
状態が変化して第2のラッチ回路にラッチされたとき、
第1の制御信号がキースキャンパルス発生回路へ供給さ
れる。そのキースキャンパルス発生回路によって生成さ
れたスキャンパルスがキーマトリックスに出力され、ス
キャン動作が行われる。従って、前記課題を解決できる
のである。
According to the second invention, when the outputs of the first latch circuit and the second latch circuit do not match, that is, after being latched by the first latch circuit, the state of each key switch changes. Is latched by the second latch circuit,
The first control signal is supplied to the key scan pulse generation circuit. The scan pulse generated by the key scan pulse generation circuit is output to the key matrix, and the scan operation is performed. Therefore, the above problem can be solved.

【0012】[0012]

【実施例】第1の実施例 図1は、本発明の第1の実施例のキースキャン回路の構
成ブロック図である。このキースキャン回路は、電源投
入時の所定の時間、どのキースイッチが押下された状態
にあるかを検出するために強制的にスキャン動作し、そ
の後は、キーマトリックス内のいずれかのキースイッチ
が押下されているときに、どのキースイッチが押下状態
かを検出するキースキャン回路である。図1のキースキ
ャン回路は、n本の第1の走査線及びその走査線と交差
するm本の第2の走査線と、その各交差点にn×m個の
キースイッチがマトリックス状にそれぞれ配置されて構
成されたキーマトリックス10と、その第2の走査線か
ら、キーマトリックス10中のキースイッチのいずれか
が押下状態であることを検知してスキャン開始用の第1
の制御信号S1を生成するキー入力判定回路30と、電
源投入時にパワーオンリセット(以下、PORという)
信号を入力して電源投入時にスキャン開始用の第2の制
御信号S2を出力すると共に、所定の時間経過後にスキ
ャン停止用の第3の制御信号S3を出力するキースキャ
ン制御回路40とを、有している。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS First Embodiment FIG. 1 is a block diagram showing the configuration of a key scan circuit according to the first embodiment of the present invention. This key scan circuit forcibly performs a scan operation to detect which key switch is in a pressed state for a predetermined time when the power is turned on, and then any key switch in the key matrix is A key scan circuit that detects which key switch is in the pressed state when the key is pressed. The key scan circuit of FIG. 1 has n first scan lines and m second scan lines intersecting the scan lines, and n × m key switches arranged in a matrix at each intersection. The key matrix 10 configured as described above and the second scan line thereof detect that one of the key switches in the key matrix 10 is in the depressed state, and detect the first scan start.
A key input determination circuit 30 for generating a control signal S1 of, and a power-on reset when the power is turned on (hereinafter referred to as POR)
A key scan control circuit 40 which inputs a signal and outputs a second control signal S2 for starting scanning when the power is turned on and outputs a third control signal S3 for stopping scanning after a predetermined time has elapsed. is doing.

【0013】また、キースキャン回路は、信号S1〜S
3に基づいてスキャンパルスSSCを生成してキーマト
リックス10のn本の第1の走査線に順次出力するキー
スキャンパルス発生回路50を備えている。このキース
キャンパルス発生回路50は、例えば、シフトレジスタ
と、カウンタと、信号S1,S2を受けてパルスを生成
するパルス発生回路とを有し、スキャンパルスSSC、
ラッチ用信号S4及びロード信号S5をそれぞれ出力す
る構成としている。。キースキャン回路には、さらに、
その第1の走査線にキースイッチを介して接続された第
2の走査線の状態を信号S4に同期してラッチするmビ
ット入力の入力ラッチ回路60と、入力ラッチ回路60
からの情報を前記信号S5によってn×mビット蓄積す
るシフトレジスタの出力レジスタ70とが、設けられて
いる。図4は、電源投入時の各信号POR,S2,S
3、キースキャンパルス発生回路50からのスキャンパ
ルスSSCの発生及び出力データのタイムチャートであ
る。
The key scan circuit also includes signals S1 to S.
A key scan pulse generation circuit 50 for generating a scan pulse SSC based on 3 and sequentially outputting the scan pulse SSC to the n first scan lines of the key matrix 10. The key scan pulse generation circuit 50 includes, for example, a shift register, a counter, and a pulse generation circuit that receives the signals S1 and S2 and generates a pulse.
The latch signal S4 and the load signal S5 are respectively output. . In addition to the key scan circuit,
An input latch circuit 60 having an m-bit input for latching the state of the second scanning line connected to the first scanning line via a key switch in synchronization with the signal S4, and an input latch circuit 60.
An output register 70 of a shift register for accumulating the information from (1) by n × m bits by the signal S5. FIG. 4 shows each signal POR, S2, S when the power is turned on.
3 is a time chart of generation and output data of a scan pulse SSC from the key scan pulse generation circuit 50.

【0014】図1及び図4を用いて、このキースキャン
回路の動作を説明する。POR信号を、例えば電源投入
時に“H”レベルで、一定時間経過後に“L”となる信
号とすると、電源投入時にキースキャン制御回路40
は、例えば“H”レベルの信号S2をキースキャンパル
ス発生回路50に出力する。キースキャンパルス発生回
路50は、信号S2を受けてPOR信号のレベルが
“L”となった時点で、アクティブな、例えば“L”の
スキャンパルスSSCを第1の走査線に順次出力し、ス
キャン動作が開始される。スキャン動作が開始される
と、キースキャン制御回路40の出力信号S2は、
“L”となる。また、スキャンが開始されると、キース
キャンパルス発生回路50は、入力ラッチ回路60へ信
号S4を、出力レジスタ70へ信号S5を、それぞれ出
力する。これらの信号により、スキャン動作によって検
出されたn×m個のキースイッチのデータが、入力ラッ
チ回路60を介して出力レジスタ70に蓄積され、スキ
ャン結果のデータDoutとして出力される。スキャン
動作が開始されて、所定の時間が経過すると、キースキ
ャン制御回路40からの信号S3のレベルは“H”とな
る。信号S3を受けてキースキャンパルス発生回路50
は、スキャンパルスSSCの生成を停止し、スキャン動
作が停止する。
The operation of the key scan circuit will be described with reference to FIGS. 1 and 4. When the POR signal is, for example, a signal that is at “H” level when the power is turned on and becomes “L” after a certain time has elapsed, the key scan control circuit 40 is turned on when the power is turned on.
Outputs a signal S2 of “H” level to the key scan pulse generation circuit 50, for example. The key scan pulse generation circuit 50 sequentially outputs an active scan pulse SSC of, for example, "L" to the first scan line when the level of the POR signal becomes "L" in response to the signal S2, and scans the first scan line. The operation is started. When the scan operation is started, the output signal S2 of the key scan control circuit 40 is
It becomes "L". When the scan is started, the key scan pulse generation circuit 50 outputs the signal S4 to the input latch circuit 60 and the signal S5 to the output register 70, respectively. With these signals, the data of the n × m key switches detected by the scan operation is accumulated in the output register 70 via the input latch circuit 60 and output as the scan result data Dout. When a predetermined time elapses after the scan operation is started, the level of the signal S3 from the key scan control circuit 40 becomes "H". Receiving signal S3, key scan pulse generating circuit 50
Stops the generation of the scan pulse SSC and stops the scan operation.

【0015】その後、第2の従来例と同様に、m本の第
2の走査線の1本或いは複数本が“L”となっていると
きのみ、キー入力判定回路30は、信号S1をキースキ
ャンパルス発生回路50へ出力する。キースキャンパル
ス発生回路50は、“L”のスキャンパルスSSCを第
1の走査線に順次出力し、キースキャン回路は、スキャ
ン動作を開始する。スキャン動作が開始されると、キー
スキャンパルス発生回路50は、入力ラッチ回路60へ
信号S4を、出力レジスタ70へ信号S5をそれぞれ出
力する。これらの信号により、スキャン動作によって検
出されたn×m個のキースイッチのデータが、入力ラッ
チ回路60を介して出力レジスタ70に蓄積され、出力
データDoutとして出力される。ここで、正常なノー
マルオフのキースイッチのみで構成されたキーマトリッ
クス10の場合、電源投入時にすべてのキースイッチ
は、押下されていない状態であるので、例えば、信号レ
ベル“L”が出力レジスタから出力される。キーの一部
が故障してキースイッチが押下されたままの状態である
場合には、電源投入時のスキャン動作の結果は、例えば
故障部に対応するキーデータ“H”が、出力レジスタを
通じて出力Doutとして出力される。図5は、図1中
のキースキャン制御回路40の構成例を示す回路図であ
り、図6は、図5のタイムチャートである。
Thereafter, as in the second conventional example, the key input determination circuit 30 outputs the signal S1 as a key only when one or more of the m second scanning lines are "L". Output to the scan pulse generation circuit 50. The key scan pulse generation circuit 50 sequentially outputs the scan pulse SSC of "L" to the first scan line, and the key scan circuit starts the scan operation. When the scan operation is started, the key scan pulse generation circuit 50 outputs the signal S4 to the input latch circuit 60 and the signal S5 to the output register 70, respectively. With these signals, the data of the n × m key switches detected by the scan operation is accumulated in the output register 70 via the input latch circuit 60 and output as the output data Dout. Here, in the case of the key matrix 10 configured by only normal normally-off key switches, all the key switches are in a non-depressed state when the power is turned on. Therefore, for example, the signal level “L” is output from the output register. Is output. If a part of the key fails and the key switch is still pressed, the result of the scan operation at power-on is that the key data “H” corresponding to the failed part is output through the output register. It is output as Dout. 5 is a circuit diagram showing a configuration example of the key scan control circuit 40 in FIG. 1, and FIG. 6 is a time chart of FIG.

【0016】図5及び図6を用いてキースキャン制御回
路40を説明する。このキースキャン制御回路40は、
電源投入時にPOR信号を入力して信号S2を出力する
RS(リセットセット)フリップフロップ(以下、RS
−FFという)41と、図1の信号S3を生成するキー
スキャンストップ回路42と、RS−FF41の出力信
号レベルを反転させるインバータ43とで、構成されて
いる。RS−FF41は、例えばキースキャンパルス発
生回路50のカウンタに接続され、そのカウンタからの
リセット用信号S6を入力する。キースキャンストップ
回路42は、電源電位Vddをデータ端子に、キースキ
ャンパルス発生回路50のカウンタからの信号S7をク
ロック端子にそれぞれ入力する遅延型フリップフロップ
(以下D−FFという)、及びNOR回路で構成されて
いる。電源投入時にPOR信号が、“H”となると、R
S−FF41の出力は、インバータ43を介して“H”
の信号S2とされてキースキャンパルス発生回路50中
のパルス発生回路へ出力される。この時、ノーマル状態
のレベルを、例えば“H”とされている信号S7によ
り、キースキャンストップ回路42の信号S3は“L”
となる。キースキャン回路の、例えば1周期のスキャン
が終了した時点で、キースキャンパルス発生回路50の
カウンタから“L”のパルスが信号S7としてキースキ
ャンストップ回路42へ入力されると、信号S3は、
“H”となる。“H”の信号S3によってスキャン動作
は停止する。また、キースキャンが開始されると信号S
6は、例えば、キースキャンパルス発生回路50中のカ
ウンタによって“H”とされ、この“H”の信号S6が
RS−FF41をリセットして出力信号S2を“L”と
する。
The key scan control circuit 40 will be described with reference to FIGS. The key scan control circuit 40 is
RS (reset set) flip-flop (hereinafter referred to as RS) that inputs the POR signal and outputs the signal S2 when the power is turned on.
-FF) 41, a key scan stop circuit 42 that generates the signal S3 in FIG. 1, and an inverter 43 that inverts the output signal level of the RS-FF 41. The RS-FF 41 is connected to, for example, a counter of the key scan pulse generation circuit 50, and receives the reset signal S6 from the counter. The key scan stop circuit 42 is a delay flip-flop (hereinafter referred to as D-FF) that inputs the power supply potential Vdd to the data terminal and the signal S7 from the counter of the key scan pulse generation circuit 50 to the clock terminal, and a NOR circuit. It is configured. When the POR signal becomes “H” when the power is turned on, R
The output of the S-FF 41 is “H” via the inverter 43.
Is output to the pulse generation circuit in the key scan pulse generation circuit 50. At this time, the signal S3 of the key scan stop circuit 42 is set to "L" by the signal S7 whose level in the normal state is set to "H", for example.
Becomes When a "L" pulse is input from the counter of the key scan pulse generation circuit 50 to the key scan stop circuit 42 as the signal S7 at the time when the scan of the key scan circuit is completed, for example, one cycle, the signal S3 becomes
It becomes "H". The scanning operation is stopped by the "H" signal S3. Further, when the key scan is started, the signal S
For example, 6 is set to "H" by a counter in the key scan pulse generation circuit 50, and the signal S6 of "H" resets the RS-FF 41 to set the output signal S2 to "L".

【0017】以上のように、本実施例では、電源投入後
に強制的にスキャン動作を行うので、この出力データを
チェックすれば、キーの故障を検知することが可能とな
る。このため、例えばその出力データをメモリ等に保存
し、以降にその故障キーの入力データを無効として処理
することによってキー故障に起因した機器の誤動作を防
止できる。また、キー故障によってスキャン動作が開始
された場合にも、電源投入時のキー故障データと比較す
ることによってキースキャンストップ信号を発生して連
続スキャン動作を防止でき、高調波妨害の低減が可能と
なる。
As described above, in the present embodiment, since the scan operation is forcibly performed after the power is turned on, it is possible to detect the key failure by checking the output data. Therefore, for example, by storing the output data in a memory or the like and processing the input data of the failure key as invalid thereafter, it is possible to prevent the malfunction of the device due to the key failure. In addition, even when the scan operation is started due to a key failure, a key scan stop signal can be generated to prevent continuous scan operation by comparing with the key failure data at power-on, and harmonic interference can be reduced. Become.

【0018】第2の実施例 図7は、本発明の第2の実施例のキースキャン回路の構
成ブロック図である。このキースキャン回路は、キーマ
トリックス内のいずれかのキースイッチがオンからオ
フ、またはオフからオンに状態が変化したとき、その変
化を検知しスキャン動作を開始する回路である。図7の
キースキャン回路は、n本の第1の走査線及びその走査
線と交差するm本の第2の走査線と、その各交差点にn
×m個のキースイッチがマトリックス状にそれぞれ配置
されて構成されたキーマトリックス10と、その第2の
走査線から、キーマトリックス10中のキースイッチの
いずれかの状態が変化したことを検知し、スキャン開始
用の第1の制御信号S1を生成するキー入力判定回路8
0とを、有している。また、キースキャン回路は、信号
S1に基づいてスキャンパルスSSCをキーマトリック
ス10のn本の第1の走査線に順次出力するキースキャ
ンパルス発生回路50を有し、このキースキャンパルス
発生回路50は、さらにラッチ用信号S4及びロード信
号S5をそれぞれ出力する。キースキャン回路は、その
第1の走査線にキースイッチを介して接続された第2の
走査線をの状態を信号S4に同期してラッチするmビッ
ト入力の入力ラッチ回路60と、入力ラッチ回路60か
らの情報を前記信号S5によってn×mビット蓄積する
シフトレジスタの出力レジスタ70とを、備えている。
Second Embodiment FIG. 7 is a block diagram showing the configuration of a key scan circuit according to the second embodiment of the present invention. This key scan circuit is a circuit that detects a change when any of the key switches in the key matrix changes from on to off or from off to on and starts a scan operation. The key scan circuit of FIG. 7 has n first scan lines, m second scan lines intersecting the scan lines, and n at each intersection.
A key matrix 10 formed by arranging xm key switches in a matrix and a second scanning line thereof detects that any one of the key switches in the key matrix 10 has changed, Key input determination circuit 8 for generating a first control signal S1 for starting scanning
0 and. The key scan circuit further includes a key scan pulse generation circuit 50 that sequentially outputs the scan pulse SSC to the n first scan lines of the key matrix 10 based on the signal S1. , And also outputs the latching signal S4 and the load signal S5. The key scan circuit includes an m-bit input latch circuit 60 for latching the state of the second scan line connected to the first scan line via a key switch in synchronization with the signal S4, and an input latch circuit. An output register 70 of a shift register for accumulating the information from 60 by n × m bits by the signal S5.

【0019】図8は、キー入力判定回路80の構成例を
示すブロック図である。このキー入力判定回路80は、
第2の走査線に接続されてその各走査線の信号レベルを
ラッチする第1のラッチ回路81と、第1のラッチ回路
81の出力信号を入力する第2のラッチ回路82と、第
1,第2のラッチ回路の出力信号の一致または不一致を
検出し、不一致であれば、キースキャンパルス発生回路
50へ信号S1を供給する不一致回路83を設けてい
る。
FIG. 8 is a block diagram showing a configuration example of the key input determination circuit 80. This key input determination circuit 80
A first latch circuit 81 connected to the second scanning line for latching the signal level of each scanning line; a second latch circuit 82 for receiving the output signal of the first latch circuit 81; A non-coincidence circuit 83 is provided which detects the coincidence or non-coincidence of the output signals of the second latch circuit and supplies the signal S1 to the key scan pulse generation circuit 50 if the two signals do not coincide.

【0020】図7及び図8を参照しつつこのキースキャ
ン回路の動作を説明する。電源投入直後、ラッチ回路8
1、82には、同一のデータがラッチされており、不一
致回路83の出力信号は、例えば“L”である。キー操
作によってキーマトリックス10中のキースイッチのい
ずれかのオン・オフ状態が変化すると、ある一定の周期
のラッチ信号L1により第2の走査線のデータがラッチ
回路81にラッチされる。このとき、ラッチ回路82
は、前記キー操作の前のデータがラッチされているた
め、不一致回路83の出力信号は、“H”となってキー
スキャンパルス発生回路50へ信号S1として出力され
る。“H”の信号S1を受けてキースキャンパルス発生
回路50は、スキャンパルスSSCを生成し、スキャン
動作が開始される。その後、例えばスキャン動作の1周
期が終了した時点で、ラッチ信号L2をラッチ回路82
に入力すると、ラッチ回路82は、ラッチ回路81のデ
ータをラッチする。そのため、ラッチ回路81,82の
出力信号が一致して不一致回路83の出力信号S1は、
“L”となる。そして、“L”の信号S1を受けてキー
スキャンパルス発生回路50は、スキャンパルスSSC
の生成を停止し、キースキャン回路がスキャン動作を停
止する。ラッチ回路81,82は、出力信号が一致した
状態で次のキー入力の変化に備える。
The operation of the key scan circuit will be described with reference to FIGS. 7 and 8. Immediately after turning on the power, the latch circuit 8
The same data is latched in Nos. 1 and 82, and the output signal of the mismatch circuit 83 is, for example, "L". When the on / off state of any of the key switches in the key matrix 10 is changed by the key operation, the data of the second scanning line is latched in the latch circuit 81 by the latch signal L1 having a certain fixed cycle. At this time, the latch circuit 82
Since the data before the key operation is latched, the output signal of the mismatch circuit 83 becomes "H" and is output to the key scan pulse generation circuit 50 as the signal S1. Upon receiving the signal S1 of "H", the key scan pulse generation circuit 50 generates the scan pulse SSC, and the scan operation is started. After that, for example, when one cycle of the scan operation is completed, the latch signal L2 is set to the latch circuit 82.
Then, the latch circuit 82 latches the data of the latch circuit 81. Therefore, the output signals of the latch circuits 81 and 82 match and the output signal S1 of the mismatch circuit 83 becomes
It becomes "L". Then, upon receiving the signal S1 of "L", the key scan pulse generation circuit 50 causes the scan pulse SSC
, And the key scan circuit stops the scan operation. The latch circuits 81 and 82 prepare for the next change of key input when the output signals match.

【0021】以上のように、本実施例では、キーマトリ
ックス内のいずれかのキースイッチがオンからオフ、ま
たはオフからオンに状態が変化したときに、スキャン動
作を開始し、ある設定された時間にスキャン動作を停止
する構成としているので、長時間キーを押し続けた場合
にも、スキャン動作が連続して行われることはなく、高
調波による高調波妨害の低減が可能となる。また、キー
スイッチの状態が変化したときに、スキャンするので、
キースイッチの押下状態のみを検知する従来のキースキ
ャン回路に比較し、例えばキースイッチの押されている
時間に意義を課したようなシステムに対しても、連続し
たスキャンを行うことがないので、高調波による高調波
妨害の低減が可能となる。
As described above, in the present embodiment, when one of the key switches in the key matrix changes its state from on to off or from off to on, the scan operation is started for a certain set time. Since the scanning operation is stopped, the scanning operation is not continuously performed even when the key is continuously pressed for a long time, and harmonic interference due to harmonics can be reduced. Also, when the state of the key switch changes, it scans, so
Compared to the conventional key scan circuit that detects only the pressed state of the key switch, continuous scanning is not performed even for a system that imposes significance on the time the key switch is pressed, for example. It is possible to reduce harmonic interference due to harmonics.

【0022】第3の実施例 第3の実施例のキースキャン回路は、第1の実施例にお
いて、キー入力判定回路30を第2の実施例中のキー入
力判定回路80に置き換えた構成である。
The key scan circuit of the third embodiment the third embodiment, in the first embodiment, in the configuration obtained by replacing the key input determination circuit 30 to the key input determination circuit 80 in the second embodiment .

【0023】図9は、キースキャン制御回路40とキー
入力判定回路80及びキースキャンパルス発生回路50
のブロック図である。キースキャンパルス発生回路50
にスキャンパルスSSCを出力させる信号S1,S2
は、キースキャンパルス発生回路50内に、例えばAN
D回路を介して入力し、、少なくとも信号S1,S2の
いずれか一方がアクティブな信号レベルであればスキャ
ン動作が行われる。そのため、このキースキャン回路
は、電源投入時の所定の時間、第1の実施例と同様に、
どのキースイッチが押された状態にあるかの強制的なス
キャン動作を実施し、その後は、第2の実施例と同様
に、キーマトリックス10内のいずれかのキースイッチ
が、オンからオフまたはオフからオンに状態が変化した
ときに、スキャン動作を開始し、ある設定された時間に
スキャンを停止するキースキャン回路である。
FIG. 9 shows a key scan control circuit 40, a key input determination circuit 80, and a key scan pulse generation circuit 50.
It is a block diagram of. Key scan pulse generation circuit 50
Signals S1 and S2 for outputting scan pulse SSC to
In the key scan pulse generation circuit 50, for example, AN
The scan operation is performed when the signal is input via the D circuit and at least one of the signals S1 and S2 is at an active signal level. Therefore, this key scan circuit, like the first embodiment, for a predetermined time when the power is turned on,
A forced scanning operation is performed to determine which key switch is in the pressed state, and thereafter, as in the second embodiment, any of the key switches in the key matrix 10 is switched from on to off or off. The key scan circuit starts a scan operation and stops the scan at a set time when the state changes from ON to ON.

【0024】以上のように、本実施例では、電源投入後
に強制的にキースキャンを行うので、キーの故障を検知
することが可能となり、以降にその故障キーの入力デー
タを無効として処理することによってキー故障に起因し
た誤動作を防止できる。また、その後、キーマトリック
ス内のいずれかのキースイッチがオンからオフまたはオ
フからオンに状態が変化したときに、スキャンを開始
し、例えば1周期のスキャン動作の後にスキャンを停止
する構成としているので、長時間キーを押し続けた場合
にも、スキャン動作が連続して行われることはなく、高
調波による高調波妨害の低減が可能となる。キースイッ
チの状態が変化したときに、スキャン動作するので、キ
ースイッチの押下げのみを検知する従来のキースキャン
回路に比較し、例えばキースイッチの押されている時間
に意義を課したようなシステムに対しても、連続したス
キャンを行うことがないので、高調波による高調波妨害
の低減を可能とする。
As described above, in the present embodiment, since the key scan is forcibly performed after the power is turned on, it becomes possible to detect the key failure, and thereafter, the input data of the failure key is treated as invalid. This can prevent malfunction due to key failure. Further, after that, when one of the key switches in the key matrix changes its state from on to off or from off to on, scanning is started, and for example, scanning is stopped after one cycle of scanning operation. Even when the key is pressed for a long time, the scanning operation is not continuously performed, and the harmonic interference due to the harmonic can be reduced. Since the scanning operation is performed when the state of the key switch changes, compared to a conventional key scan circuit that detects only the pressing of the key switch, for example, a system that imposes a significance on the time when the key switch is pressed. Also, since continuous scanning is not performed, it is possible to reduce harmonic interference due to harmonics.

【0025】なお、第1〜第3の実施例は、上記実施例
に限定されず種々の変形が可能である。その変形例とし
ては、例えば次のようなものがある。 (1)第1〜第3の実施例では、キーマトリックス10
中にノーマルオフのキースイッチを用いたが、ノーマル
オン或いはノーマルオン/オフ混在したキースイッチを
用いても効果は同じてある。 (2)第1〜第3の実施例では、キーマトリックス10
のスキャン動作中の信号レベルについて、アクティブな
状態を“L”としたが、“H”としても、各論理回路が
変わるだけで動作及び効果は、同等である (3)第2,第3実施例では、信号S1により開始され
るスキャン動作は、1周期の間だけ行われているが、目
的に応じて変化させてもよい。
The first to third embodiments are not limited to the above embodiment, and various modifications can be made. The following are examples of such modifications. (1) In the first to third embodiments, the key matrix 10
Although the normally-off key switch is used therein, the same effect can be obtained by using the normally-on key switch or the normally-on / off mixed key switch. (2) In the first to third embodiments, the key matrix 10
Regarding the signal level during the scanning operation of, the active state is set to "L", but the operation and the effect are the same even if "H" is set only by changing each logic circuit. (3) Second and third embodiments In the example, the scanning operation started by the signal S1 is performed only for one cycle, but it may be changed depending on the purpose.

【0026】[0026]

【発明の効果】以上詳細に説明したように、第1の発明
によれば、電源投入直後に、第2の制御信号によって強
制的にキーマトリックス中のキースイッチのスキャンを
実施する。このスキャンによって故障のキースイッチ
が、電源投入直後に検出され、例えばその検出結果をメ
モリ等に保存して以降の故障キーのデータを無効とする
ことができる。また、例えば、スイッチ機能の表示をデ
イスプレー等で行う場合には、故障箇所を無効としてキ
ーに対する再割付けを行い、各スイッチの機能表示を変
更することによってシステムを通常通り動作させること
が可能となる。そのため、キースイッチの故障に起因す
る機器の誤動作等を減少できる。第2の発明によれば、
キーマトリックス内のいずれかのキースイッチが、オン
からオフまたはオフからオンに状態が変化したときに、
スキャン動作を開始し、ある設定された時間にスキャン
動作を停止する構成としているので、長時間キーを押し
続けた場合にも、スキャン動作が連続して行われること
はなく、高調波による高調波妨害を低減できる。さら
に、キースイッチの状態が変化したときに、スキャンを
開始するので、キースイッチの押下げのみを検知する従
来のキースキャン回路に比較し、例えばキースイッチの
押されている時間に意義を課したようなシステムに用い
られても、スイッチを押している間に連続したスキャン
を行うことがないので、高調波による高調波妨害の低減
が可能となる。
As described in detail above, according to the first aspect of the invention, immediately after the power is turned on, the scan of the key switches in the key matrix is forcibly performed by the second control signal. By this scan, the defective key switch is detected immediately after the power is turned on. For example, the detection result can be stored in a memory or the like to invalidate the data of the subsequent defective key. In addition, for example, when displaying the switch function on a display, etc., it is possible to operate the system normally by invalidating the faulty part and reassigning to the key and changing the function display of each switch. Become. Therefore, malfunctions of the device due to the failure of the key switch can be reduced. According to the second invention,
When any key switch in the key matrix changes state from on to off or from off to on,
Since the scan operation is started and stopped at a certain set time, even if the key is held down for a long time, the scan operation does not continue and the harmonic Interference can be reduced. Furthermore, since scanning is started when the state of the key switch changes, compared to the conventional key scan circuit that detects only the pressing of the key switch, for example, the time during which the key switch is pressed imposes significance. Even when used in such a system, since continuous scanning is not performed while the switch is being pressed, it is possible to reduce harmonic interference due to harmonics.

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

【図1】第1の実施例のキースキャン回路の構成例を示
すブロック図である。
FIG. 1 is a block diagram showing a configuration example of a key scan circuit of a first embodiment.

【図2】第1の従来例のキースキャン回路を示すブロッ
ク図である。
FIG. 2 is a block diagram showing a key scan circuit of a first conventional example.

【図3】第2の従来例のキースキャン回路を示すブロッ
ク図である。
FIG. 3 is a block diagram showing a key scan circuit of a second conventional example.

【図4】図1の制御信号のタイムチャートである。FIG. 4 is a time chart of the control signal of FIG.

【図5】図1中のキースキャン制御回路の構成例を示す
回路図である。
5 is a circuit diagram showing a configuration example of a key scan control circuit in FIG.

【図6】図5の制御信号のタイムチャートである。FIG. 6 is a time chart of control signals in FIG.

【図7】第2の実施例のキースキャン回路の構成例を示
すブロック図である。
FIG. 7 is a block diagram showing a configuration example of a key scan circuit of a second embodiment.

【図8】図7中のキー入力判定回路を示すブロック図で
ある。
FIG. 8 is a block diagram showing a key input determination circuit in FIG.

【図9】第3の実施例のキースキャン回路の構成例を示
すブロック図である。
FIG. 9 is a block diagram showing a configuration example of a key scan circuit of a third embodiment.

【符号の説明】[Explanation of symbols]

SSC スキャンパルス S1〜S3 第1〜第3の制御信号 10 キーマトリックス 30,80 キー入力判定回路 40 キースキャン制御回路 50 キースキャンパルス発生回路遅延
回路 60 入力ラッチ回路 Dout 出力データ
SSC scan pulse S1 to S3 first to third control signals 10 key matrix 30,80 key input determination circuit 40 key scan control circuit 50 key scan pulse generation circuit delay circuit 60 input latch circuit Dout output data

フロントページの続き (51)Int.Cl.5 識別記号 庁内整理番号 FI 技術表示箇所 G06F 11/22 370 A 7737−5B Continuation of front page (51) Int.Cl. 5 Identification number Office reference number FI technical display location G06F 11/22 370 A 7737-5B

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 交差する複数の第1の走査線と複数の第
2の走査線との各交差点に複数のキースイッチがマトリ
ックス状に配置されたキーマトリックスと、 前記第1の走査線に順次スキャンパルスを出力するキー
スキャンパルス発生回路と、 前記キースイッチを介して前記スキャンパルスを前記第
2の走査線から入力する入力ラッチ回路と、 前記複数のキースイッチ中の各キースイッチのオン、オ
フ状態に基づいて前記キースキャンパルス発生回路の出
力を制御する第1の制御信号を該キースキャンパルス発
生回路へ与えるキー入力判定回路とを備え、 前記キースイッチのオン、オフ状態を検出するためのス
キャン動作を行うキースキャン回路において、 電源投入時に発生する信号に基づき、スキャン動作開始
用の第2の制御信号と、所定の時間経過後に該スキャン
動作停止用の第3の制御信号とを、前記キースキャンパ
ルス発生回路へ供給するキースキャン制御回路を設けた
ことを特徴とするキースキャン回路。
1. A key matrix in which a plurality of key switches are arranged in a matrix at each intersection of a plurality of intersecting first scanning lines and a plurality of second scanning lines, and the first scanning lines are sequentially arranged. A key scan pulse generation circuit that outputs a scan pulse; an input latch circuit that inputs the scan pulse from the second scan line via the key switch; and an on / off state of each key switch in the plurality of key switches. A key input determination circuit for giving a first control signal for controlling the output of the key scan pulse generation circuit based on the state to the key scan pulse generation circuit, and for detecting an on / off state of the key switch. In a key scan circuit that performs a scan operation, a second control signal for starting a scan operation and a predetermined control signal are generated based on a signal generated when power is turned on. The third control signal and a key scan circuit, characterized in that a key scan control circuit for supplying to said key scan pulse generation circuit for the scanning operation is stopped after a time lapse.
【請求項2】 交差する複数の第1の走査線と複数の第
2の走査線との各交差点に複数のキースイッチがマトリ
ックス状に配置されたキーマトリックスと、 前記第1の走査線に順次スキャンパルスを出力するキー
スキャンパルス発生回路と、 前記キースイッチを介して前記スキャンパルスを前記第
2の走査線から入力する第1の入力ラッチ回路と、 前記複数のキースイッチ中の各キースイッチのオン、オ
フ状態に基づき、前記キースキャンパルス発生回路の出
力を制御する第1の制御信号を該キースキャンパルス発
生回路へ与えるキー入力判定回路とを備え、 前記キースイッチのオン、オフ状態を検出するためのス
キャン動作を行うキースキャン回路において、 前記キー入力判定回路は、 所定のタイミングで前記第2の走査線の各信号レベルを
ラッチする第1のラッチ回路と、 前記第1のラッチ回路とは異なるタイミングで前記第1
のラッチ回路の出力信号をラッチする第2のラッチ回路
と、 前記第1,第2のラッチ回路の出力信号の一致または不
一致を検出し、不一致のときには前記第1の制御信号を
出力する不一致回路とで、 構成したことを特徴とするキースキャン回路。
2. A key matrix in which a plurality of key switches are arranged in a matrix at each intersection of a plurality of intersecting first scanning lines and a plurality of second scanning lines, and the first scanning lines are sequentially arranged. A key scan pulse generation circuit that outputs a scan pulse; a first input latch circuit that inputs the scan pulse from the second scan line via the key switch; and a key switch of each of the plurality of key switches. A key input determination circuit for giving a first control signal for controlling the output of the key scan pulse generation circuit to the key scan pulse generation circuit based on the on / off state, and detecting the on / off state of the key switch. In the key scan circuit for performing the scanning operation for performing the scanning operation, the key input determination circuit is configured to set each signal level of the second scanning line at a predetermined timing. A first latch circuit that latches the first latch circuit and the first latch circuit at a timing different from that of the first latch circuit.
Second latch circuit for latching the output signal of the latch circuit, and a non-coincidence circuit for detecting the coincidence or non-coincidence of the output signals of the first and second latch circuits and outputting the first control signal when they do not coincide. A key scan circuit characterized by being configured with.
JP5102789A 1993-04-28 1993-04-28 Key scan circuit Withdrawn JPH06314148A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5102789A JPH06314148A (en) 1993-04-28 1993-04-28 Key scan circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5102789A JPH06314148A (en) 1993-04-28 1993-04-28 Key scan circuit

Publications (1)

Publication Number Publication Date
JPH06314148A true JPH06314148A (en) 1994-11-08

Family

ID=14336893

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5102789A Withdrawn JPH06314148A (en) 1993-04-28 1993-04-28 Key scan circuit

Country Status (1)

Country Link
JP (1) JPH06314148A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010134306A (en) * 2008-12-08 2010-06-17 Fuji Xerox Co Ltd Operation device and image forming apparatus
CN115480652A (en) * 2021-05-31 2022-12-16 群光电子股份有限公司 Keyboard and self-adapting method thereof, electronic computing device readable medium and program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010134306A (en) * 2008-12-08 2010-06-17 Fuji Xerox Co Ltd Operation device and image forming apparatus
CN115480652A (en) * 2021-05-31 2022-12-16 群光电子股份有限公司 Keyboard and self-adapting method thereof, electronic computing device readable medium and program

Similar Documents

Publication Publication Date Title
JPS5922578Y2 (en) keyboard device
US3921149A (en) Computer comprising three data processors
US5375246A (en) Back-up power supply apparatus for protection of stored data
US5386584A (en) Interrupt-generating keyboard scanner using an image RAM
US4888600A (en) Keyboard arrangement with ghost key condition detection
JPH06314148A (en) Key scan circuit
JPH1074125A (en) Keypad handling circuit
JP2999897B2 (en) Key input circuit
JP2669360B2 (en) Clock generator
JPH05151017A (en) Microcomputer
JPH02192321A (en) Key reader
JPH06232739A (en) Clock redundancy method
KR100487242B1 (en) Redundant Implement Device
JPS6138500B2 (en)
JP2954040B2 (en) Interrupt monitoring device
KR960004061B1 (en) Non-stop Self Diagnosis Device
JP2544494B2 (en) Logical scale expansion configuration of programmable logic array
JPS63156465A (en) Data storage area monitoring system for time switch circuit
JP2847741B2 (en) Microcomputer
JPH0667782A (en) Key input device
JPH0542499Y2 (en)
JPS639691B2 (en)
JPH0764824A (en) Programmable controller
JPH11184723A (en) System for detecting failure
JPH0573432A (en) Information processor

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20000704