JPH07152468A - Key matrix input device - Google Patents

Key matrix input device

Info

Publication number
JPH07152468A
JPH07152468A JP5298795A JP29879593A JPH07152468A JP H07152468 A JPH07152468 A JP H07152468A JP 5298795 A JP5298795 A JP 5298795A JP 29879593 A JP29879593 A JP 29879593A JP H07152468 A JPH07152468 A JP H07152468A
Authority
JP
Japan
Prior art keywords
input
key
key matrix
output port
signal line
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
JP5298795A
Other languages
Japanese (ja)
Inventor
Kazuo Miyata
一雄 宮田
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.)
NEC IC Microcomputer Systems Co Ltd
Original Assignee
NEC IC Microcomputer Systems 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 NEC IC Microcomputer Systems Co Ltd filed Critical NEC IC Microcomputer Systems Co Ltd
Priority to JP5298795A priority Critical patent/JPH07152468A/en
Publication of JPH07152468A publication Critical patent/JPH07152468A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE:To reduce the number of output ports at a microcomputer by providing a means for storing the potentials of key input signal lines at a key matrix. CONSTITUTION:Signal lines P101-P104 are the signal lines of respective ports at an input/output port 1, connected to the input side of a key matrix 3 and normally set at a ground potential by a pull-down resistor 2. A diode 6 is connected to the signal lines P101-P104, and a storage device 5 is composed of a flip-flop and controlled by a signal line P01. An output port 7 is composed of a single buffer and controls the storage device 5 by using the signal line P01. When the key of the key matrix 3 is pressed, the potential is stored in the storage device 5, and the output of the storage device 5 is connected to the signal lines P101-P104 by the diode 6 for preventing backward current. On the other hand, corresponding to the signal of the output port 7 connected to the control signal line P01, it is controlled whether stored contents are held or not.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はキーマトリクス入力装置
に関し、特にマイクロコンピュータで制御するキーマト
リクス装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a key matrix input device, and more particularly to a key matrix device controlled by a microcomputer.

【0002】[0002]

【従来の技術】従来のマイクロコンピュータ20のキー
マトリクス入力装置は、図4に示すように、キーマトリ
クス3に接続され、キースキャンを行う入出力ポート1
と、入出力ポート1内の各スキャン結果を読み取る入力
ポート8と、キーが押されていないとき前記入出力ポー
ト1をロウ・レベル(入力ポートが論理値で0と判断で
きる電圧)に固定するためのプルダウン抵抗2とを有し
ている。
2. Description of the Related Art A conventional key matrix input device for a microcomputer 20, as shown in FIG. 4, is connected to a key matrix 3 and an input / output port 1 for performing a key scan.
And an input port 8 for reading each scan result in the input / output port 1, and the input / output port 1 is fixed at a low level (a voltage at which the input port can be judged to be 0 as a logical value) when a key is not pressed. And a pull-down resistor 2 for

【0003】入出力ポート1は、互いの入力を出力とす
る二つのバッファからなる単位回路を複数備える。これ
らのバッファは入出力時に応じて、一方のバッファのみ
が動作するように制御される。入力ポート1は、一つの
バッファからなる単位回路を複数備える。キーマトリク
ス3は、4行4列のキーを備え、押すことにより、電気
的に接続される。
The input / output port 1 is provided with a plurality of unit circuits each including two buffers that output each other's inputs. These buffers are controlled so that only one buffer operates depending on the input / output. The input port 1 includes a plurality of unit circuits each including one buffer. The key matrix 3 is provided with keys of 4 rows and 4 columns, and is electrically connected by being pressed.

【0004】次に、この動作について、従来のキーマト
リクス入力装置のキースキャンと読み出しとのタイミン
グ図の図5も使って説明すると、信号線P101〜P1
04の波形は、入出力ポート1の各ポートの信号線波形
であり、信号線P11〜P14の波形は入力ポート8の
各ポートの信号線波形である。入出力ポート1によるキ
ースキャン方法は、同一タイミング(T1〜T4)にお
いて任意の一つの信号線をハイ・レベル(入力ポート1
が論理値で1と判断できる電圧)の出力、他の全てを入
力にそれぞれ設定し、出力に設定されるポートを順次切
り替えて繰り返すことにより行う。
Next, this operation will be described with reference to FIG. 5 which is a timing chart of key scanning and reading of a conventional key matrix input device. The signal lines P101 to P1 will be described below.
The waveform of 04 is a signal line waveform of each port of the input / output port 1, and the waveforms of the signal lines P11 to P14 are signal line waveforms of each port of the input port 8. The key scan method using the input / output port 1 is to set any one signal line to a high level (input port 1) at the same timing (T1 to T4).
Is set to be an output of a logic value of 1) and all the others are set as inputs, and the ports set as outputs are sequentially switched and repeated.

【0005】キーの判定は、入力ポート8の信号線P1
1〜P14のいずれかのポートがハイ・レベルを検出し
たとき、同一タイミングで出力している入出力ポートの
信号線P101〜P104の値で決定する。今、キー3
1が押されている場合のキースキャンと読み出しタイミ
ングは図5のようになる。即ち、タイミングT2のとき
に、信号線P11がハイ・レベルとなるから、キー31
が押されていると判定される。
The key is judged by the signal line P1 of the input port 8.
When any one of the ports 1 to P14 detects a high level, it is determined by the values of the signal lines P101 to P104 of the input / output ports which are outputting at the same timing. Now key 3
The key scan and read timings when 1 is pressed are as shown in FIG. That is, at the timing T2, the signal line P11 becomes high level, so the key 31
It is determined that is pressed.

【0006】また、図6に示すように、出力ポート7の
出力レベルによりキーマトリクスの入力ラインを切り替
えるセレクタ11を備えて、ポート数を削減したキーマ
トリクス入力装置もある。このセレクタ11は、PN
P,NPNトランジスタを1組として複数組からなる。
出力ポート7からの信号で、セレクタ11内の一方のト
ランジスタだけ「ON」とする。こうすると、信号線P
11,P12の2本だけで済み、図4の場合の半数にな
る。
As shown in FIG. 6, there is also a key matrix input device in which the number of ports is reduced by providing a selector 11 for switching the input line of the key matrix according to the output level of the output port 7. This selector 11 is PN
A plurality of P and NPN transistors are used as one set.
A signal from the output port 7 turns on only one transistor in the selector 11. By doing this, the signal line P
Only two of 11 and P12 are required, which is half of the case of FIG.

【0007】[0007]

【発明が解決しようとする課題】このような従来のキー
マトリクス入力装置は、いずれもキースキャン専用の入
出力ポート1とスキャン結果を読み取る専用の入力ポー
ト8が必要であり、多数のポートが必要となる欠点があ
る。
All such conventional key matrix input devices require an input / output port 1 dedicated to a key scan and an input port 8 dedicated to reading a scan result, and a large number of ports are required. There is a drawback that becomes.

【0008】[0008]

【課題を解決するための手段】本発明のキーマトリクス
入力装置は、入出力が切り替え可能な入出力ポートと、
前記入出力ポートに接続されたキー入力信号線とキー出
力信号線との各交点に置かれたスイッチを複数もつキー
マトリクスと、前記キーマトリクスのキー入力信号線の
電位を記憶する手段とを備えることを特徴とする。
A key matrix input device of the present invention comprises an input / output port whose input / output can be switched,
A key matrix having a plurality of switches placed at each intersection of the key input signal line and the key output signal line connected to the input / output port, and means for storing the potential of the key input signal line of the key matrix. It is characterized by

【0009】[0009]

【実施例】図1は本発明の第1の実施例のキーマトリク
ス入力装置を示す回路図、図2はこのキーマトリクス入
力装置のキースキャンと読み出しタイミングとを示すタ
イミング図である。
1 is a circuit diagram showing a key matrix input device according to a first embodiment of the present invention, and FIG. 2 is a timing diagram showing the key scan and read timing of this key matrix input device.

【0010】図1において、この実施例は、プルダウン
抵抗2,記憶装置5,ダイオード6を備え、出力ポート
7が一本であること以外は図4と共通するため、共通す
る部分については説明を省く。ダイオード6は各信号線
P101〜P104に接続され、記憶装置5は、複数の
フリップ・フロップからなり、信号線P01により制御
される。出力ポート7は、唯一つのバッファからなり、
唯一つの信号線P01により、記憶装置5内の各フリッ
プ・フロップを制御する。
In FIG. 1, this embodiment is the same as FIG. 4 except that it has a pull-down resistor 2, a storage device 5, and a diode 6 and that it has only one output port 7. Omit it. The diode 6 is connected to each of the signal lines P101 to P104, the storage device 5 is composed of a plurality of flip-flops, and is controlled by the signal line P01. Output port 7 consists of only one buffer,
Each flip-flop in the memory device 5 is controlled by only one signal line P01.

【0011】図2において、信号線P01,P101〜
P104の論理レベル,入出力関係について、各タイミ
ングT11〜T13,〜について示されている。
In FIG. 2, signal lines P01 and P101-
Regarding the logic level and the input / output relation of P104, it is shown for each timing T11 to T13.

【0012】信号線P101〜P104は入出力ポート
1の各ポートの信号線であり、キーマトリクス3の入力
側に接続され、プルダウン抵抗2により通常はグラッド
電位となっている。前記キーマトリクス3のキーが押さ
れると出力側に接続されたラッチ回路で構成される記憶
装置5に電位が記憶される。通常はプルダウン抵抗4に
よりグランド電位となっている。前記記憶装置5の出力
は、逆電流防止用のダイオード6により各々信号線P1
01〜P104へ接続される。また制御信号線P01に
接続された出力ポート7の信号により、記憶内容を保持
するしないを制御する。
The signal lines P101 to P104 are signal lines for the respective ports of the input / output port 1, are connected to the input side of the key matrix 3, and are normally at the grad potential by the pull-down resistor 2. When a key of the key matrix 3 is pressed, the potential is stored in the storage device 5 composed of a latch circuit connected to the output side. Normally, the pull-down resistor 4 provides the ground potential. The output of the storage device 5 is supplied to the signal line P1 by the diode 6 for preventing reverse current.
01 to P104. Further, by the signal of the output port 7 connected to the control signal line P01, it is controlled whether or not the stored content is held.

【0013】次に本実施例の動作について図2を参照し
て説明する。図2において、入出力ポート1によるキー
スキャン方法は、タイミングTn1(T11,T21,
T31,T41)において任意の1つの信号線をハイ・
レベルの出力ポート、他の全てを入力ポートにそれぞれ
設定する。また、タイミングTn2(T12,T22,
T32,T42)で出力ポート7により記憶装置5に電
位を記憶する。キーの判定は、タイミングTn3(T1
3,T23,T33,T43)で入出力ポート1を全て
入力ポートとし、入力ポートのいずれかがハイ・レベル
を検出したとき行う。タイミングTn1〜Tn3の動作
をP101〜P104まで繰り返すことにより全てのキ
ーの検出ができる。キー31が押されている場合のキー
スキャンと読み出しタイミングは信号線P101のよう
になる。
Next, the operation of this embodiment will be described with reference to FIG. In FIG. 2, the key scan method by the input / output port 1 is based on the timing Tn1 (T11, T21,
In T31, T41), set any one signal line to high
Set the level output port and all other input ports. Further, the timing Tn2 (T12, T22,
At T32, T42), the output port 7 stores the potential in the memory device 5. The key is determined at timing Tn3 (T1
3, T23, T33, T43), all the input / output ports 1 are used as input ports, and when any one of the input ports detects a high level, it is performed. All the keys can be detected by repeating the operations at timings Tn1 to Tn3 from P101 to P104. The key scan and read timings when the key 31 is pressed are as shown by the signal line P101.

【0014】図3は本発明の第2の実施例の回路図であ
る。図3において、この実施例は、図1の出力ポート
7,記憶装置5がなく、コンデンサ10,ダイオード9
を設けた点以外図3と共通する。ここで、コンデンサ1
0は、信号線と接地との間にそれぞれ設けられる。また
ダイオード9は、各信号線P101〜P104に直列に
接続される。
FIG. 3 is a circuit diagram of the second embodiment of the present invention. 3, in this embodiment, the output port 7 and the storage device 5 of FIG.
3 is the same as that of FIG. Where capacitor 1
0 is provided between the signal line and the ground. The diode 9 is connected in series to each of the signal lines P101 to P104.

【0015】[0015]

【発明の効果】以上の通り、本発明のキーマトリクス入
力装置を使用すれば、マイクロコンピュータの出力ポー
ト数が削減できる効果がある。
As described above, by using the key matrix input device of the present invention, the number of output ports of the microcomputer can be reduced.

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

【図1】本発明の第1の実施例のブロック図である。FIG. 1 is a block diagram of a first embodiment of the present invention.

【図2】この実施例のキーマトリクス入力装置のキース
キャンと読み出しタイミングとの関係を示すタイミング
図である。
FIG. 2 is a timing chart showing the relationship between key scan and read timing of the key matrix input device of this embodiment.

【図3】本発明の第2の実施例のブロック図である。FIG. 3 is a block diagram of a second embodiment of the present invention.

【図4】従来のキーマトリクス入力装置の一例のブロッ
ク図である。
FIG. 4 is a block diagram of an example of a conventional key matrix input device.

【図5】従来のキーマトリクス入力装置のキースキャン
と読み出しタイミングとの関係を示すタイミング図であ
る。
FIG. 5 is a timing diagram showing a relationship between key scan and read timing of a conventional key matrix input device.

【図6】従来のキーマトリクス入力装置の他例のブロッ
ク図である。
FIG. 6 is a block diagram of another example of a conventional key matrix input device.

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

1 入出力ポート 2,4 プルダウン抵抗 3 キーマトリクス 5 記憶装置 6,9 ダイオード 7 出力ポート 8 入力ポート 10 コンデンサ 11 セレクタ 20 マイクロコンピュータ 31 キー 1 Input / output port 2,4 Pull-down resistance 3 Key matrix 5 Storage device 6,9 Diode 7 Output port 8 Input port 10 Capacitor 11 Selector 20 Microcomputer 31 key

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 入出力が切り替え可能な入出力ポート
と、前記入出力ポートに接続されたキー入力信号線とキ
ー出力信号線との各交点に置かれたスイッチを複数もつ
キーマトリクスと、前記キーマトリクスのキー入力信号
線の電位を記憶する手段とを備えることを特徴とするキ
ーマトリクス入力装置。
1. A key matrix having an input / output port whose input / output can be switched, and a plurality of switches placed at respective intersections of a key input signal line and a key output signal line connected to the input / output port; And a means for storing the potential of the key input signal line of the key matrix.
JP5298795A 1993-11-30 1993-11-30 Key matrix input device Withdrawn JPH07152468A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5298795A JPH07152468A (en) 1993-11-30 1993-11-30 Key matrix input device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5298795A JPH07152468A (en) 1993-11-30 1993-11-30 Key matrix input device

Publications (1)

Publication Number Publication Date
JPH07152468A true JPH07152468A (en) 1995-06-16

Family

ID=17864323

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5298795A Withdrawn JPH07152468A (en) 1993-11-30 1993-11-30 Key matrix input device

Country Status (1)

Country Link
JP (1) JPH07152468A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1028532A1 (en) * 1999-02-11 2000-08-16 Alcatel Keyboard processing device
CN102111159A (en) * 2010-12-27 2011-06-29 青岛文达通科技发展有限公司 Keyboard scanning circuit and scanning method thereof
JP2011164728A (en) * 2010-02-05 2011-08-25 Yokogawa Electric Corp Touch panel device
US8031179B2 (en) 2006-06-30 2011-10-04 Canon Kabushiki Kaisha Control apparatus for operation panel and electronic apparatus
WO2011120553A1 (en) * 2010-03-29 2011-10-06 Greenpeak Technologies N.V. Keyboard scanner

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1028532A1 (en) * 1999-02-11 2000-08-16 Alcatel Keyboard processing device
FR2789772A1 (en) * 1999-02-11 2000-08-18 Cit Alcatel DEVICE FOR MANAGING A KEYBOARD KEYBOARD
US8031179B2 (en) 2006-06-30 2011-10-04 Canon Kabushiki Kaisha Control apparatus for operation panel and electronic apparatus
JP2011164728A (en) * 2010-02-05 2011-08-25 Yokogawa Electric Corp Touch panel device
WO2011120553A1 (en) * 2010-03-29 2011-10-06 Greenpeak Technologies N.V. Keyboard scanner
CN102111159A (en) * 2010-12-27 2011-06-29 青岛文达通科技发展有限公司 Keyboard scanning circuit and scanning method thereof

Similar Documents

Publication Publication Date Title
JPH0896592A (en) Integrated circuit memory device
US4692901A (en) Semiconductor memory
US3027464A (en) Three state circuit
KR900000051B1 (en) The semiconductor memory device
US3953746A (en) Selector latch gate
JPH07152468A (en) Key matrix input device
US5206834A (en) Semiconductor memory device performing last in-first out operation and the method for controlling the same
KR940006230A (en) Semiconductor integrated circuit device and its functional test method
EP0147103B1 (en) Mos implementation of shift register latch
EP0083230B1 (en) Method for controlling read-out or write in of semiconductor memory device and apparatus for the same
JPH02140676A (en) Multilevel driving circuit
KR870003505A (en) Semiconductor memory
US3473149A (en) Memory drive circuitry
US4829461A (en) Apparatus for detecting sequential data string
US3284640A (en) Memory addressing register comprising bistable circuit with current steering means having disabling means
JPH0421883B2 (en)
JP2666704B2 (en) Data selection circuit
JP2545502B2 (en) Storage device
JP2821186B2 (en) Semiconductor device and semiconductor memory
US3333256A (en) Driving arrangement for magnetic devices
US3140467A (en) Magnetic switching devices
JP3031223B2 (en) Semiconductor integrated circuit
US20030052706A1 (en) Bus signal hold cell, bus system, and method
US3189878A (en) Negative resistance memory circuit
JPS588625B2 (en) Denshisousasouchi

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: 20010130