JPS6019233A - Keyboard input device - Google Patents

Keyboard input device

Info

Publication number
JPS6019233A
JPS6019233A JP58128333A JP12833383A JPS6019233A JP S6019233 A JPS6019233 A JP S6019233A JP 58128333 A JP58128333 A JP 58128333A JP 12833383 A JP12833383 A JP 12833383A JP S6019233 A JPS6019233 A JP S6019233A
Authority
JP
Japan
Prior art keywords
input
signal line
output
port
shift register
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.)
Pending
Application number
JP58128333A
Other languages
Japanese (ja)
Inventor
Masato Haraguchi
原口 正人
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP58128333A priority Critical patent/JPS6019233A/en
Publication of JPS6019233A publication Critical patent/JPS6019233A/en
Pending legal-status Critical Current

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

PURPOSE:To perform scan searching with a small number of input signal lines by carrying out the key matrix scan search by means of an output signal line of a shift register connected to an output port and an input signal line of an input port. CONSTITUTION:An input line 10 of an input port 9 is pulled up by means of a resistance group 11, and the data and clock signal lines 13 are connected to a shift register 14 from an output port 12. Thus a signal pattern containing only a piece of signal line set at a low level is delivered to an output signal line 15. One of lines 15 (C2j) is successively set at a low level within a range of 0<=j<=m, and the signal pattern supplied to the port 9 is checked at each time. Thus a pushed key can be discriminated.

Description

【発明の詳細な説明】 産業上の利用分野 本発明はキー・マトリックス・スキャン・サーチを行う
キーボード入力装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a keyboard input device that performs key matrix scan search.

従来例の構成とその問題点 従来、キー・71−リックヌ・スキャン・サーチによる
キーボード入力装置は第1図に示すように入力ポート1
と、それに接続項れる入力信号線2と、それをプルアッ
プするための抵抗3と、出、力ボート4と、その出力信
号線5とで構成されている。この装置においてにキーが
押されていない状態では入力ポート1の入力信号線2げ
プルアップされているので全てハイレベルである。そこ
で出カポ−1−から1本だけローレベルにした信号/<
ターンを出力線6Vc、出力する。例えばQlj(0≦
j≦m)のみローレベルであるような信号パターンがデ
コーダ4から出力すれば、そのとき入力ポート1に入力
する信号ハターン@調ヘル。
Conventional configuration and its problems Conventionally, a keyboard input device using keys 71-licune scan search has input port 1 as shown in Fig. 1.
, an input signal line 2 connected thereto, a resistor 3 for pulling up the input signal line, an output port 4, and an output signal line 5 thereof. In this device, when no key is pressed, the input signal line 2 of input port 1 is pulled up, so all signals are at high level. Therefore, only one signal from output capo-1- was set to low level/<
Output the turn to the output line 6Vc. For example, Qlj(0≦
If a signal pattern in which only j≦m) is at low level is output from the decoder 4, then the signal input to the input port 1 is the signal pattern.

4しRlj(o≦i≦n)がローレベルでらるような信
号パターンが入力しておれば、R1とCjが短絡されて
いる、つまりキー6が押されていることが判明する。G
1jtC≦i≦mにおいて順々に1本づつローレベルに
して、その都度入力ボートの入力信号パターンを調べる
ことを高速で繰り返すことによって、どのキーが押され
ているかが判明するO ところが、こうした構成の装置でに、出力ポートの数が
多くなるという問題が発生する。
If a signal pattern in which Rlj (o≦i≦n) is at a low level is input, it becomes clear that R1 and Cj are short-circuited, that is, that key 6 is pressed. G
However, with this configuration, it is possible to determine which key is being pressed by repeating at high speed the process of sequentially setting the low level one by one when C≦i≦m and checking the input signal pattern of the input board each time. A problem arises in which the number of output ports increases in the device.

また第2図は、デコーダ8を出力ポードアに接続し、出
力ボートの数を少なくした構成図を示してらる。しかし
、この構成の装置では、マイクロコンピュータの消費電
力を少なくするために、マイクロコンピユータラ停止シ
(パワーダウンモート)亀キーが押下されたときのみ、
キー・マトリックス” スキャン・サーチヲ行う場合に
不都合を生じる。
Further, FIG. 2 shows a configuration diagram in which the decoder 8 is connected to the output ports to reduce the number of output ports. However, in a device with this configuration, in order to reduce the power consumption of the microcomputer, only when the microcomputer shutdown switch (power down mode) key is pressed,
This causes inconvenience when performing a key matrix scan search.

このパワーダウンモードを利用するために、げ、キー;
6BITI下されたとき、マイクロコンピュータハパワ
ーダウンモードから復帰音うながす情報を必要とし、こ
の情報を得るためには、キードライブ側の信号線、すな
わちデコーダ8の出方信号線のすべてをローレベルにし
て、キーが押下されると、プルアップされた入力信号線
と出力信号線が短絡され、入力信号線のいずれかがロー
レベルになる必要がある。これにより、ゲートを通して
外部のフリップフロップをセットし、マイクロコンピュ
ータに割り込みをかける。そしてキー・マトリックス・
スキャン・サーチヲ行つ。
To use this power-down mode, press the key;
When 6BITI is down, the microcomputer needs information to prompt the return sound from power down mode, and in order to obtain this information, all signal lines on the key drive side, that is, all output signal lines of decoder 8, must be set to low level. When a key is pressed, the pulled-up input signal line and output signal line are short-circuited, and one of the input signal lines must become low level. This sets an external flip-flop through the gate and interrupts the microcomputer. and key matrix
Perform a scan search.

しかし、デコーダ8の出力信号のパターンには、全ての
信号線がローレベルであるようなパターンニナく、この
パワーダウンモードを使用する場合にも不都合を生じる
However, the pattern of the output signal from the decoder 8 is such that all the signal lines are at low level, which causes problems even when using this power down mode.

発明の目的 本発明はこのような従来の欠点全除去し、少ないポー1
−数でキー・マトリックス・スキャン・サーチを行える
ようにしたキーボード入力装置を提供することを目的と
する。
OBJECTS OF THE INVENTION The present invention eliminates all of these conventional drawbacks and reduces ports.
- It is an object of the present invention to provide a keyboard input device that allows key matrix scanning searches using numbers.

発明の構成 本発明のキーボード入力装置げ入力ポートと出力ボート
を有するマイクロコンピュータと、前記入力ポートに接
続される信号線と、この信号線に接続されるキー押下検
出回路と、この信号線をプルアップするために用いられ
る抵抗と、前記出力ボートニ接続されるシフ1゛レジス
ヌと、このシフトレジスタに接続される出力信号線から
(構成することにより」二記目的を達成するもので8る
Structure of the Invention The keyboard input device of the present invention includes a microcomputer having an input port and an output port, a signal line connected to the input port, a key press detection circuit connected to the signal line, and a pull-out signal line. The two objects are achieved by configuring (by configuring) a resistor used to increase the shift register, a shift register connected to the output port, and an output signal line connected to this shift register.

実施例の説明 以下にその実施例について説明する。第3図において、
9げ入力ボートで、その人力信号線1゜は抵抗群11を
用いてプルアップされている。
DESCRIPTION OF EMBODIMENTS The embodiments will be described below. In Figure 3,
In the input port 9, the human input signal line 1° is pulled up using a resistor group 11.

12は出カポ−)、13[その出方信号線である。12 is the output signal line), 13 is the output signal line.

14に出力信号線16を有するシフトレジスタ16はい
ずれかのキーが操作されたことを検出するNORゲート
、17はそ)N OR’y’ ” ) 16 ノ出力に
駆動され、マイクロコンピュータに割込みをかけてキー
°マトリックス・スキャン・サーチを行なうためのフリ
ップフロップでろる。
The shift register 16, which has an output signal line 16 at 14, is a NOR gate that detects when any key has been operated, and 17 is driven by the output of 16 to send an interrupt to the microcomputer. A flip-flop is used to perform a key matrix scan search.

次にこの実施例の動作について説明する・入力信号線1
0は前述したようにプルアップされている・また出力ボ
ート12がらげ出力信号線13を使用して、シフトレジ
スタ14に信り°を送る。これにより出方信号線16に
1木だけローレベルであるよ′)な信号パターンを出方
させる。
Next, the operation of this embodiment will be explained.・Input signal line 1
0 is pulled up as described above. Also, a signal is sent to the shift register 14 using the output signal line 13 from the output port 12. This causes the output signal line 16 to output a signal pattern in which only one signal is at a low level.

出力信号線15のうちの1本、c2j’to≦コ≦mに
おいて順々にローレベ/l/にして、その都度、入力ボ
ート9に入力する信号パターンを調べることにより、ど
のキーが押されているがを識別することができる。
One of the output signal lines 15, c2j'to≦ko≦m, is set to low level /l/ in order, and by checking the signal pattern input to the input board 9 each time, it is possible to determine which key is being pressed. It is possible to identify.

ここで02jf 0616mにおいて順々に1本づツロ
ーレヘlvにする方法を説明する。出方ボート12から
はデータとクロックのための2本の信号線をシフトレジ
スタ14に接続する。キーが押されていない状態では、
ローレベルのデータを必要な回数だけシフトレジスタ1
4に入力して、そのシフトレジスタ14の出方信号線1
6の必要なキーの位置に対応しただけのローレベ717
 f有する出カバターンを出力して、パワーダウンモー
ド[入る。キーが押されるとゲート16とフリップフロ
ップ17からなるキー押下検出回路によりマイク西コン
ピュータに割り込みかがけられて、パワーダウンモード
を抜は出す。そして最初、ハイレベルのデータをn回、
シフトレジスタ14に送信し、その後ローレベルのデー
タを1回送信して、シフ) レジスタ14の初期出方パ
ターンを出させる。
Here, we will explain how to change the level to 02jf 0616m one by one. Two signal lines for data and clock are connected from the output port 12 to a shift register 14. When no key is pressed,
Shift register 1 to shift low level data as many times as necessary
4 and the output signal line 1 of the shift register 14.
Low level 717 that only corresponds to the required key position of 6.
Outputs an output signal with f and enters power down mode. When a key is pressed, a key press detection circuit consisting of a gate 16 and a flip-flop 17 interrupts the microphone computer to exit the power down mode. First, high-level data is processed n times.
The data is sent to the shift register 14, and then low level data is sent once to cause the initial output pattern of the shift register 14 to be output.

その後は入力ポート12の信号パターンを調べるごとに
、シフ1゛レジスヌ14にハイレベルのデータを入力し
て、シフトレジスタ14の出方をシフトさせて行く。こ
のようにして、CZjを順々にローレベ/I/にするこ
とができる。
Thereafter, each time the signal pattern of the input port 12 is checked, high level data is input to the shift register 14 to shift the output of the shift register 14. In this way, CZj can be set to low level /I/ one after another.

第4図[、’m=n=8の場合において実現したキーボ
ード入力装置の回路図を示すものでらる。
FIG. 4 shows a circuit diagram of a keyboard input device realized in the case where m=n=8.

この場合、出力ポート18からデータとクロックのため
の信号線19がシフトレジスタ2Qに接続てれ、シフト
レジスタを使用せず直接、出力ポートに出力信号線を接
続した場合に比べ、出力ポートの数が、8個から2個へ
減少させることができる。またデコーダを利用したキー
ボード入力装置と比べ、パワーダウンモードが容易に利
用できる利点を持っている。
In this case, the signal line 19 for data and clock from the output port 18 is connected to the shift register 2Q, which increases the number of output ports compared to the case where the output signal line is directly connected to the output port without using a shift register. can be reduced from 8 to 2. Also, compared to keyboard input devices that use decoders, it has the advantage that a power-down mode can be easily used.

また第6図に、同様にm=n=6におけるキーボード入
力装置の他の例を示すもので、出力ポート21からの出
力信号線22としてデータ線とクロック信号線とり七ソ
1−信号線を用いて実現したものでaる。この場合、パ
ワーダウンモードを利用する時に全ての信号線全ローレ
ベ/L/ICするために、リセット信号を用いて実現で
きるようになっている。
FIG. 6 shows another example of a keyboard input device in which m=n=6, in which a data line and a clock signal line are used as the output signal line 22 from the output port 21. This was realized using a. In this case, when using the power down mode, all signal lines can be set to low level/L/IC using a reset signal.

発明の効果 上記実施例より明らかなように本発明はキー・マトリッ
クス・スキャン・サーチを行うキーボード入力装置にお
いて、シフトレジスタ全キードライブ側に使用したこと
により、ボート数を減少させることができ、またエンコ
ーダを利用したキーボード入力装置が利用困難ナパワー
ダウンモードを用いたものにも適応略せることができる
Effects of the Invention As is clear from the above embodiments, the present invention can reduce the number of votes by using the shift register on all key drive sides in a keyboard input device that performs key matrix scan search. It can also be applied to a keyboard input device using an encoder that uses a power down mode that is difficult to use.

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

第1図および第2図はそれぞれ従来のキーボード入力装
置の(14成図、第3図に本発明の一実施例によるキー
ボード入力装置の(構成図、第4図および第6図はそれ
ぞれより具体的な実施例の構成図である。 9・・・・・・入力ボート、10・・・・・・入力信号
線、11・・・・・・抵抗群、12・・・・・・出力ポ
ート、14・・・・・・シフ1−レジスタ、16・・−
・・・NARDゲート、17・・・・・・フリップフロ
ップ。 代理人の氏名 弁理士 中 尾 敏 男 ほか1名第2
図 第3図
FIGS. 1 and 2 are respectively diagrams of a conventional keyboard input device, FIG. 3 is a diagram of a keyboard input device according to an embodiment of the present invention, and FIGS. 4 and 6 are more detailed diagrams, respectively. 9 is a configuration diagram of an embodiment. 9...Input boat, 10...Input signal line, 11...Resistor group, 12...Output port , 14... shift 1-register, 16...-
...NARD gate, 17...Flip-flop. Name of agent: Patent attorney Toshio Nakao and 1 other person 2nd
Figure 3

Claims (1)

【特許請求の範囲】[Claims] 入力ポートと出力ポートを有するマイクロコンピュータ
と、前記入力ポートに接続される入力信号線と、この入
力信号線をプルアップするための抵抗群と、前記入力ポ
ートに接続されキーの押下を検出する検出回路と、前記
出力ポートに接続されたシフトレジスタと′ff:備え
、前記シフトレジスタの出力信号線と前記入力ポートの
入力信号線を用いて、キー・マトリックス・スキャン・
サーチを行うことを特徴とした。キーボード入力装置。
A microcomputer having an input port and an output port, an input signal line connected to the input port, a resistor group for pulling up the input signal line, and a detector connected to the input port for detecting key presses. a shift register connected to the output port;
The feature is that it performs a search. Keyboard input device.
JP58128333A 1983-07-13 1983-07-13 Keyboard input device Pending JPS6019233A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58128333A JPS6019233A (en) 1983-07-13 1983-07-13 Keyboard input device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58128333A JPS6019233A (en) 1983-07-13 1983-07-13 Keyboard input device

Publications (1)

Publication Number Publication Date
JPS6019233A true JPS6019233A (en) 1985-01-31

Family

ID=14982195

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58128333A Pending JPS6019233A (en) 1983-07-13 1983-07-13 Keyboard input device

Country Status (1)

Country Link
JP (1) JPS6019233A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5860467A (en) * 1996-12-03 1999-01-19 The University Of North Carolina At Chapel Hill Use of CO2 -soluble materials in making molds

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5860467A (en) * 1996-12-03 1999-01-19 The University Of North Carolina At Chapel Hill Use of CO2 -soluble materials in making molds

Similar Documents

Publication Publication Date Title
JPS56123002A (en) Electronic apparatus
JPS6019233A (en) Keyboard input device
JPS55116164A (en) Information retrieval unit
JPS60193678A (en) Electronic instrument
JP2616628B2 (en) Key input device
JPS52155945A (en) Electronic cash register
JPS6243218B2 (en)
JPH0136634B2 (en)
JPS594332Y2 (en) character input device
JPS54107629A (en) Key input unit
JPH0784940A (en) Microcontroller
JPS5858711B2 (en) density cache register
JPS58183544U (en) portable small electronic devices
JPS6356499A (en) Portable medium
JPH0736665A (en) Arithmetic unit
JPH01113876A (en) Image input device
JPH01245493A (en) Associated memory device
JPS55153059A (en) Electronic computer
JPS55108024A (en) Data processor
KR950013953A (en) How to register / cancel an elevator call
JPS58211240A (en) Keyboard encoder
JPS5667428A (en) Input and output interface
JPS5793427A (en) Keyboard input controlling system
JPS59119436A (en) Initial setting method of keyboard
JPH03210620A (en) Key input device