JPS5857771B2 - keyboard encoder - Google Patents

keyboard encoder

Info

Publication number
JPS5857771B2
JPS5857771B2 JP54047473A JP4747379A JPS5857771B2 JP S5857771 B2 JPS5857771 B2 JP S5857771B2 JP 54047473 A JP54047473 A JP 54047473A JP 4747379 A JP4747379 A JP 4747379A JP S5857771 B2 JPS5857771 B2 JP S5857771B2
Authority
JP
Japan
Prior art keywords
output
key
scanning
scan
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.)
Expired
Application number
JP54047473A
Other languages
Japanese (ja)
Other versions
JPS55140929A (en
Inventor
文章 斎
善一 北尾
敏雄 四方
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.)
Omron Corp
Original Assignee
Omron Tateisi Electronics Co
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 Omron Tateisi Electronics Co filed Critical Omron Tateisi Electronics Co
Priority to JP54047473A priority Critical patent/JPS5857771B2/en
Publication of JPS55140929A publication Critical patent/JPS55140929A/en
Publication of JPS5857771B2 publication Critical patent/JPS5857771B2/en
Expired legal-status Critical Current

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)

Description

【発明の詳細な説明】 この発明はNキーロールオーバ機能を備え、しかも耐雑
音性の良好なダイナミック式キーボードエンコーダに関
する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a dynamic keyboard encoder having an N-key rollover function and having good noise resistance.

従来、ダイナミック式キーボードエンコーダにおいてN
キーロールオーバ機能、つまり前に押したキーが抑圧解
除される以前に次のキーを押すというように複数のキー
を順次重ねるように押した場合、押されたキーの順序で
対応するエンコード出力を順次重ることができる機能を
達成するためには、今回の走査時に押されているキーが
前回の走査時に押されていないことを判定し、その判定
結果に基づいてストローブ信号を出力する方式が採用さ
れている。
Conventionally, in dynamic keyboard encoders, N
Key rollover function, when pressing multiple keys one after the other, such as pressing the next key before the previous key is released, encodes the corresponding encoded output in the order of the keys pressed. In order to achieve a function that can be stacked sequentially, there is a method that determines whether the key being pressed during the current scan was not pressed during the previous scan, and outputs a strobe signal based on the determination result. It has been adopted.

しかし、この方式にあってはキーが押されたことに伴な
う出力信号の立上り又は立下りを検出するだけであって
、キーが押されている時間的な長さについては何の配慮
もなされていないため、稀にキーの出力ライン上にノイ
ズが拾われたままそのキーが走査されたような場合には
、そのノイズの立上り、又は立下りをキーが押されたも
のと誤認してストローブ信号が出力される虞れがある。
However, this method only detects the rise or fall of the output signal associated with the key press, and does not take into account the length of time the key is pressed. Because this is not done, in the rare case that a key is scanned while noise is picked up on the output line of a key, the rise or fall of the noise may be misinterpreted as a key press. There is a possibility that a strobe signal will be output.

ここに、本発明者はキーか押されたことに起因する出力
信号は少なくとも2走査周期以上に亘って連続する信号
であるのに対して、ノイズが拾われたことに起因する信
号が2走査周期に亘って連続的に検出されることは極め
て稀な例に過ぎないとの知見を得てこの発明を成すに至
ったものである。
Here, the inventor of the present invention found that the output signal caused by a key being pressed is a continuous signal over at least two scanning periods, whereas the signal caused by noise being picked up is a continuous signal over two scanning periods. This invention was made based on the knowledge that continuous detection over a period of time is extremely rare.

この発明は上記知見に基づいて正常なキーからの信号と
ノイズとを識別し、以ってNキーロールオーバ機能を備
え、しかも耐雑音性の良好なダイナミック式キーボード
エンコーダを提供することを目的とするものである。
The purpose of this invention is to provide a dynamic keyboard encoder that distinguishes between signals from normal keys and noise based on the above knowledge, has an N-key rollover function, and has good noise resistance. It is something to do.

すなわち、この発明はキーコードを出力するカウンタと
、このカウンタの出力に応答して各キーの出力を順次走
査する走査回路と、前回の走査周期において上記走査回
路から出力された各キーの出力を今回の走査時に出力す
る第1記憶手段と、前々回の走査周期において上記走査
回路から出力された各キーの出力を今回の走査時に出力
する第2記憶手段と、毎走査周期ごとに上期走査回路の
出力を第1.第2記憶手段の出力と比較して、そのとき
ONしているキーが前回の走査時にもONであって、前
々回の走査時にはOFFであることを判定する論理回路
と、この論理回路の出力に応答して上記カウンタの出力
をラッチするラッチ回路とからなることを特徴とするキ
ーボードエンコーダである。
That is, the present invention includes a counter that outputs a key code, a scanning circuit that sequentially scans the output of each key in response to the output of this counter, and an output of each key that was output from the scanning circuit in the previous scanning cycle. a first storage means that outputs an output during the current scan; a second storage means that outputs the output of each key outputted from the scanning circuit in the scan period before the previous scan during the current scan; Set the output to 1st. A logic circuit that compares the output of the second storage means to determine that the key that is ON at that time was also ON during the previous scan and OFF during the scan before the previous one; The keyboard encoder is characterized by comprising a latch circuit that latches the output of the counter in response.

以下に、この発明の一実施例を添付図面に基づいて詳説
する。
An embodiment of the present invention will be described in detail below based on the accompanying drawings.

第1図において、行ラインY。In FIG. 1, row line Y.

−¥3と列ラインXo−X3によってキーマドIJクス
回路1が構成されており、その各交点にはキースイッチ
S。
-\3 and column line Xo-X3 constitute a keypad IJ circuit 1, and a key switch S is provided at each intersection.

0〜S33が接続されている。0 to S33 are connected.

各行ラインY。−Y3の一端には抵抗R7を介して電源
Vcが接続されており、他端はマルチプレクサ2の各入
力端子に接続されている。
Each row line Y. One end of -Y3 is connected to the power supply Vc via a resistor R7, and the other end is connected to each input terminal of the multiplexer 2.

他方、列ラインX。−X3は各々デコーダ3の各出力端
子「01〜「3」に接続されている。
On the other hand, column line X. -X3 are connected to each output terminal "01 to "3" of the decoder 3, respectively.

デコーダ3の入力端子A、Bにはクロックパルス発生器
5からの基本クロック(第2図参照)を計数するカウン
タ4の上位2ビツト出力Qc +QD(第2図参照)が
供給され、またマルチプレクサ2の入力端子A、Bには
カウンタ4の下位2ビツト出力QA 、 QB (第2
図参照)が供給されている。
The input terminals A and B of the decoder 3 are supplied with the upper 2 bits output Qc + QD (see FIG. 2) of a counter 4 that counts the basic clock from the clock pulse generator 5 (see FIG. 2), and the multiplexer 2 The input terminals A and B of the counter 4 have the lower two bits output QA, QB (second
(see figure) is supplied.

従って、マルチプレクサ2の出力側にはカウンタ3の出
力が切換るごとにキー5OO=833の出力が順次1個
づつ出力される。
Therefore, each time the output of the counter 3 is switched, the output of the key 5OO=833 is output one by one to the output side of the multiplexer 2.

このとき例えばキーS2゜が押されていると、第2図■
に示す如くマルチプレクサ2の出力はキー821の走査
期間中rHJとなる。
At this time, for example, if key S2° is pressed,
The output of multiplexer 2 becomes rHJ during the scanning period of key 821, as shown in FIG.

6は16ビツト容量を有するシフトレジスタ(以下、第
1シフトレジスタと言う。
6 is a shift register (hereinafter referred to as the first shift register) having a capacity of 16 bits.

)であり、この第1シフトレジスタ6はシフト入力端子
CPに供給される基本クロックの立下りに応答して、そ
のとき入力端子Aに供給されているマルチプレクサ2の
出力を読み込むとともに、全体を右へ1ビツトシフトす
るように構成されている。
), and this first shift register 6 responds to the fall of the basic clock supplied to the shift input terminal CP, reads the output of the multiplexer 2 supplied to the input terminal A at that time, and shifts the entire clock to the right. It is configured to shift 1 bit to .

つまり、マルチプレクサ2の出力側には基本クロックの
立下り毎に各キー5OO=833のON。
That is, on the output side of the multiplexer 2, each key 5OO=833 is turned ON every time the basic clock falls.

OFF状態信号が1つづつ出力されるわけであるが、例
えばある基本クロックの立下りに応答してマルチプレク
サ2の出力がS。
The OFF state signals are output one by one, and for example, in response to the falling edge of a certain basic clock, the output of the multiplexer 2 becomes S.

1からS。2に切換つたような場合には、その基本クロ
ックの立下りに応答して第1シフトレジスク6には切換
る前のキ801からの信号が読み込まれることになる。
1 to S. 2, the signal from the key 801 before switching is read into the first shift register 6 in response to the fall of the basic clock.

そして、第1シフトレジスクは16ビツト容量を有する
とともに、マルチプレクサ2の出力側には基本クロック
の16周期毎に同一キーに対応するON、OFF状態信
号が出力されるから、各キーの状態を繰り返し走査する
と、第1シフトレジスク6の出力側には第2図@に示す
如くそのときマルチプレクサ2から出力されているキー
の前回走査時の状態信号が出力されることになる。
The first shift register has a 16-bit capacity, and since the ON/OFF state signal corresponding to the same key is outputted to the output side of the multiplexer 2 every 16 cycles of the basic clock, the state of each key can be repeatedly scanned. Then, as shown in FIG. 2, the state signal from the previous scan of the key that is being output from the multiplexer 2 at that time is output to the output side of the first shift register 6.

7は16ビツト容量を有するシフトレジスタ(以下、第
2レジスタと言う。
7 is a shift register (hereinafter referred to as the second register) having a capacity of 16 bits.

)であり、この第2シフトレジスタ7はシフト入力端子
CPに供給される基本クロックの立下りに応答して、そ
のとき入力端子Aに供給されている第1シフトレジスク
6の出力を読み込むとともに、全体を右へ1ビツトシフ
トするように構成されている。
), this second shift register 7 responds to the fall of the basic clock supplied to the shift input terminal CP, reads the output of the first shift register 6 supplied to the input terminal A at that time, and is configured to shift 1 bit to the right.

つまり、第2シフトレジスタ7は16ビツト容量を有す
るとともに、第ルジスク6の出力側にはそのときマルチ
プレクサ2から出力されているキーの前回走査時の状態
信号が出力されているから、各キーの状態を繰り返し走
査すると第2シフトレジスク7の出力側には第2図Oに
示す如く、そのときマルチプレクサ2から出力されてい
るキーの前々回走査時の状態信号が出力されることにな
る。
In other words, the second shift register 7 has a 16-bit capacity, and the output side of the second shift register 6 outputs the state signal of the previous scan of the key that is output from the multiplexer 2 at that time. When the state is repeatedly scanned, the state signal from the previous scan of the key outputted from the multiplexer 2 at that time is outputted to the output side of the second shift register 7, as shown in FIG. 2O.

8はカウンタ4の出力をラッチするラッチ回路であり、
このラッチ回路8はクロック入力端子CKへ供給される
ANDゲート9の出力の立上りに応答してラッチ動作を
するように構成されており、又ANDゲート9の入力側
にはマルチプレクサ2、第1シフトレジスタ6及び第2
シフトレジスタ7の出力が並列に供給されている。
8 is a latch circuit that latches the output of counter 4;
The latch circuit 8 is configured to perform a latch operation in response to the rising edge of the output of the AND gate 9 supplied to the clock input terminal CK. Register 6 and 2nd
The outputs of the shift register 7 are supplied in parallel.

尚、10はANDゲート9の出力を反転してストローブ
信号を得るためのNOTゲートであり、また11は第2
レジスタの出力を反転してANDゲート9に禁止をかけ
、これによりNキーロールオーバ機能を達成するNOT
ゲートである。
Note that 10 is a NOT gate for inverting the output of AND gate 9 to obtain a strobe signal, and 11 is a second gate.
NOT to invert the output of the register and inhibit AND gate 9, thereby achieving the N-key rollover function.
It is a gate.

以上の構成において、今あるキー(例えば521)が押
されたことにともないある走査周期(以下、第1走査周
期と言う。
In the above configuration, when a certain key (for example, 521) is pressed, a certain scanning period (hereinafter referred to as a first scanning period) is generated.

)におけるそのキーの走査タイミングでマルチプレクサ
2の出力が初めてrHJになったとする。
), it is assumed that the output of the multiplexer 2 becomes rHJ for the first time at the scanning timing of that key.

このとき、第1シフトレジスタロからは第2図@に示す
如く前回走査時におけるキーS21の出力r L Jが
出力されるから、この「L」によってANDゲ゛−ト9
は第2図○に示す如く出力が禁止され、ストローブ信号
は出力されない。
At this time, the output rLJ of the key S21 during the previous scan is output from the first shift register L as shown in FIG.
As shown in FIG. 2, the output is prohibited, and no strobe signal is output.

また、このようにキーが正常に押された場合、少なくと
も2走査周期以上に亘ってマルチプレクサ2の出力はそ
のキーの走査タイミングでrHJとなることが経験的に
確認されている。
Furthermore, it has been empirically confirmed that when a key is pressed normally in this manner, the output of the multiplexer 2 becomes rHJ at the scanning timing of the key for at least two scanning periods or more.

従って、次の走査周期(以下、第2走査周期と言う。Therefore, the next scanning period (hereinafter referred to as the second scanning period).

)におけるキー821の走査タイミングにおいては、マ
ルチプレクサ2の出力及び第1シフトレジスク6の出力
はともにrHJとなり、またこのとき第2シフトレジス
タ7の出力の反転値は第2図Oに示す如く未だrHJで
あることからANDゲート9の各入力は全て1−HJと
なり、ANDゲート9の出力は第2図Gに示す如くここ
に初めてrHJとなる。
), the output of the multiplexer 2 and the output of the first shift register 6 are both rHJ, and at this time, the inverted value of the output of the second shift register 7 is still rHJ as shown in FIG. For this reason, all inputs of the AND gate 9 become 1-HJ, and the output of the AND gate 9 becomes rHJ for the first time as shown in FIG. 2G.

そして、このANDゲ゛−ト9の出力rHJの立上りで
ラッチ回路8にはキーS21のキーコードがラッチされ
るとともに、上記ANDゲ゛−19の出力はNOTゲ゛
−110によって反転されストローブ信号として出力さ
れる。
Then, at the rise of the output rHJ of the AND gate 9, the key code of the key S21 is latched in the latch circuit 8, and the output of the AND gate 19 is inverted by the NOT gate 110 and becomes the strobe signal. is output as

一方、第3走査周期以降の各走査周期においては、キー
S21の走査タイミングにおける第2シフトレジスタ7
の出力の反転値は第2図Oに示す如く全てrLJとなる
On the other hand, in each scan period after the third scan period, the second shift register 7 at the scan timing of the key S21
The inverted values of the outputs are all rLJ as shown in FIG. 2 O.

従って、このrLJによってANDゲート9は出力か禁
止されそれ以降の走査周期におけるストローブ信号は全
て禁止されることになり、ここにNキーロールオーバ機
能が達成されることになる。
Therefore, the output of the AND gate 9 is inhibited by this rLJ, and all strobe signals in subsequent scanning cycles are inhibited, thereby achieving the N-key rollover function.

次に、第2走査周期におけるキーSO2の走査タイミン
グにおいてノイズが拾われ、第2図■に示す如くマルチ
プレクサ2の出力が「H」になったとする。
Next, suppose that noise is picked up at the scanning timing of the key SO2 in the second scanning period, and the output of the multiplexer 2 becomes "H" as shown in FIG.

このとき、第1シフトレジスタ6の出力は第2図@に示
す如く「L」であるからストローブ信号は出力されない
At this time, since the output of the first shift register 6 is "L" as shown in FIG. 2, no strobe signal is output.

ここで、このようにノイズに起因してマルチプレクサ2
の出力が「H」になる場合、相連続する走査周期におい
て同一走査タイミングでrHJ信号が出力されることは
極めて稀な例であることが経験的に確認されている。
Here, due to noise, multiplexer 2
It has been empirically confirmed that it is extremely rare for the rHJ signal to be output at the same scan timing in successive scan periods when the output of the rHJ signal becomes "H".

従って、第3走査周期においてキーS。Therefore, the key S in the third scanning period.

2の走査タイミングになると第1シフトレジスタ6の出
力はrHJとなるが、マルチプレクサ2の出力について
は「L」となるため、このrLJ信号によってANDゲ
′−ト9は出力が禁止され、ストローブ信号が出力され
ることはない。
At the scanning timing of 2, the output of the first shift register 6 becomes rHJ, but the output of the multiplexer 2 becomes "L", so the output of the AND gate 9 is prohibited by this rLJ signal, and the strobe signal is is never output.

つまり、ノイズが拾われたことに起因するマルチプレク
サ出力rHJによっては決つしてストローブ信号は出力
されないことになる。
In other words, the strobe signal will never be output depending on the multiplexer output rHJ due to noise being picked up.

尚、この実施例においては、第1゜第2記憶手段として
シフトレジスタを使用したが、これらをRAMに変え得
ることは勿論である。
Although shift registers are used as the first and second storage means in this embodiment, it is of course possible to replace these with RAM.

以上の説明で明らかなように、この発明は、キーコード
を出力するカウンタと、このカウンタの出力に応答して
各キーの出力を順次走査する走査回路と、前回の走査周
期において上記走査回路から出力された各キーの出力を
今回の走査時に出力する第1記憶手段と、前々回の走査
周期において上記走査回路から出力された各キーの出力
を今回の走査時に出力する第2記憶手段と、毎走査周期
ごとに上記走査回路の出力を第1.第2記憶手段の出力
と比較して、そのときONしているキーが前回の走査時
にもONであって、前々回の走査時にはOFFであるこ
とを判定する論理回路と、この論理回路の出力に応答し
て上記カウンタの出力をラッチするラッチ回路とからな
るために、キーからの正常な信号とノイズとを確実に識
別することができ、以ってNキーロールオーバ機能を備
え、しかも耐雑音性の良好なダイナミック式キーボード
エンコーダを提供することができるわけである。
As is clear from the above description, the present invention includes a counter that outputs a key code, a scanning circuit that sequentially scans the output of each key in response to the output of this counter, and a counter that outputs a key code. a first storage means for outputting the output of each key during the current scan; a second storage means for outputting the output of each key output from the scanning circuit in the scan period before the previous scan; The output of the above-mentioned scanning circuit is sent to the first . A logic circuit that compares the output of the second storage means to determine that the key that is ON at that time was also ON during the previous scan and OFF during the scan before the previous one; Since it consists of a latch circuit that latches the output of the counter in response, it is possible to reliably distinguish between a normal signal from a key and noise, and thus it has an N-key rollover function and is noise resistant. Therefore, it is possible to provide a dynamic keyboard encoder with good performance.

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

第1図は、この発明の一実施例であるキーボードエンコ
ーダの電気的構成を示す回路図、第2図は、同回路図上
の各部の波形を示す図である。 2.3・・・・・・走査回路、4・・・・・・カウンタ
、6・・・・・・第1記憶手段、γ・・・・・・第2記
憶手段、8・・・・・・ラッチ回路、9,11・・・・
・・論理回路、5OO−83,1・・・・・・キー。
FIG. 1 is a circuit diagram showing the electrical configuration of a keyboard encoder that is an embodiment of the present invention, and FIG. 2 is a diagram showing waveforms at various parts on the circuit diagram. 2.3... Scanning circuit, 4... Counter, 6... First storage means, γ... Second storage means, 8... ...Latch circuit, 9, 11...
...Logic circuit, 5OO-83, 1... key.

Claims (1)

【特許請求の範囲】[Claims] 1 キーコードを出力するカウンタと、このカウンタの
出力に応答して各キーの出力を順次走査する走査回路と
、前回の走査周期において上記走査回路から出力された
各キーの出力を今回の走査時に出力する第1記憶手段と
、前々回の走査周期において上記走査回路から出力され
た各キーの出力を今回の走査時に出力する第2記憶手段
と、毎走査周期ごとに上記走査回路の出力を第1.第2
記憶手段の出力と比較して、そのと!ONしているキー
が前回の走査時にもONであって、前々回の走査時には
OFFであることを判定する論理回路と、この論理回路
の出力に応答して上記カウンタの出力をラッチするラッ
チ回路とからなることを特徴とするキーボードエンコー
ダ。
1. A counter that outputs a key code, a scanning circuit that sequentially scans the output of each key in response to the output of this counter, and a scanning circuit that sequentially scans the output of each key in response to the output of this counter, and a scan circuit that scans the output of each key output from the scanning circuit in the previous scan period during the current scan. a first storage means for outputting an output, a second storage means for outputting the output of each key outputted from the scanning circuit in the scanning cycle before the previous time during the current scanning, and a second storage means for outputting the output of the scanning circuit for each scanning cycle, .. Second
Compared to the output of the storage means, that! A logic circuit that determines that the key that is ON was ON during the previous scan and OFF during the scan before the previous one, and a latch circuit that latches the output of the counter in response to the output of this logic circuit. A keyboard encoder comprising:
JP54047473A 1979-04-18 1979-04-18 keyboard encoder Expired JPS5857771B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP54047473A JPS5857771B2 (en) 1979-04-18 1979-04-18 keyboard encoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP54047473A JPS5857771B2 (en) 1979-04-18 1979-04-18 keyboard encoder

Publications (2)

Publication Number Publication Date
JPS55140929A JPS55140929A (en) 1980-11-04
JPS5857771B2 true JPS5857771B2 (en) 1983-12-21

Family

ID=12776105

Family Applications (1)

Application Number Title Priority Date Filing Date
JP54047473A Expired JPS5857771B2 (en) 1979-04-18 1979-04-18 keyboard encoder

Country Status (1)

Country Link
JP (1) JPS5857771B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6010325A (en) * 1983-06-30 1985-01-19 Fujitsu Ltd Key scanning system

Also Published As

Publication number Publication date
JPS55140929A (en) 1980-11-04

Similar Documents

Publication Publication Date Title
CA1291822C (en) Method and apparatus for processing an image signal
JPS5857771B2 (en) keyboard encoder
EP0393716B1 (en) Delay circuit
CA1234222A (en) Method and apparatus for error correction
US6259383B1 (en) Logic circuit and signal transmission method
KR100192636B1 (en) Apparatus for collecting alarm and state signal of digital-analog system
JPS6242290B2 (en)
JP2540459B2 (en) Continuous data detection circuit
JP2689735B2 (en) Serial signal switching control circuit
KR940005435B1 (en) Protecting method of phantom state in keyboard
JPH0426129B2 (en)
JPS63188217A (en) Key scanning circuit
KR0177089B1 (en) Key detection method of radiation noise reduction
JPH03134842A (en) Silent state detecting circuit
KR960010380Y1 (en) Block start signal generating circuit
JPH0284821A (en) Key input circuit
JPS60175135A (en) Key scanning circuit
JP2804406B2 (en) Pulse measuring device
JPS5896335A (en) Scanning method of keyboard device
SU943693A1 (en) Data input device
JPS5824816B2 (en) keyboard encoder
JPH06325196A (en) Bar code reader
JPS5816489B2 (en) keyboard encoder
JPH11353095A (en) Key input device
JPS6135567B2 (en)