JPH0284821A - Key input circuit - Google Patents

Key input circuit

Info

Publication number
JPH0284821A
JPH0284821A JP63237005A JP23700588A JPH0284821A JP H0284821 A JPH0284821 A JP H0284821A JP 63237005 A JP63237005 A JP 63237005A JP 23700588 A JP23700588 A JP 23700588A JP H0284821 A JPH0284821 A JP H0284821A
Authority
JP
Japan
Prior art keywords
key
output
input
active
matrix
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP63237005A
Other languages
Japanese (ja)
Other versions
JPH0766307B2 (en
Inventor
Toshio 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.)
NEC Corp
Original Assignee
NEC Corp
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 Corp filed Critical NEC Corp
Priority to JP63237005A priority Critical patent/JPH0766307B2/en
Publication of JPH0284821A publication Critical patent/JPH0284821A/en
Publication of JPH0766307B2 publication Critical patent/JPH0766307B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M11/00Coding in connection with keyboards or like devices, i.e. coding of the position of operated keys
    • H03M11/20Dynamic coding, i.e. by key scanning

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Input From Keyboards Or The Like (AREA)

Abstract

PURPOSE:To attain discrimination at twice the key switching state by changing an output terminal state to three states of high, low level, and high impedance, and changing an input terminal state to a state of pull-up/down or high impedance. CONSTITUTION:The states of terminals (30-32) are read in by setting the output terminals (2-4) of an output mechanism 1 at H levels, and the input terminals (30-32) of an input mechanism 29 at the pulldown states. A key is detected assuming the key on a matrix 33 for active-high is depressed when at least either the terminals (30-32) is set at the H level, and an operation is shifted to the detection of a key matrix 34 for active-low when it is not set at the H level. Also, the state of the terminals (30-32) are read in by setting the terminals (2-4) at L levels. The key is detected assuming that the key on the matrix 34 ls depressed when at least either of the terminals (30-32) is set at the L level, and the operation is shifted to the detection of a matrix 33 when it is not. In such a way, it is possible to use a circuit by combining both matrices 33 and 34, and to discriminate at twice the key switching state.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は電子機器に関し、特にマイクロ・コンピュータ
を用いた機器の入力方式および入出力機構に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to electronic equipment, and particularly to an input method and an input/output mechanism for equipment using a microcomputer.

〔従来の技術〕[Conventional technology]

従来、この種のキー人力方式は第6図、第7図のように
KEYソースと呼ばれる出力端子とKEY入力と呼ばれ
る入力端子があり、マトリックス上のスイッチの状態は
一つのKEYソースをアクティブにし、その時のKEY
入力を読み込み、また別のKEYソースをアクティブに
してその時のKEY入力を読み込むということを順次く
り返すことにより読み取っていた。KEYマトリックス
は使用条件からマイクロ・コンピュータのハードあるい
はソフトによりアクティブ・ハイまたはアクティブ・ロ
ウのKEYマトリックスのどちらか一方を使用していた
Conventionally, this type of key manual system has an output terminal called a KEY source and an input terminal called a KEY input, as shown in Figs. 6 and 7, and the state of the switch on the matrix activates one KEY source. KEY at that time
Reading was performed by sequentially repeating the process of reading an input, activating another KEY source, and reading the current KEY input. Depending on the conditions of use, either an active high or an active low KEY matrix has been used depending on the hardware or software of the microcomputer.

この方式はKEYソースはハイ・レベルとロウ・レベル
の2状態を取り、KEY入力は7クティブ・ハイのKE
Yマトリックスならプル・ダウンされた入力機構、アク
ティブ・ロウならプル・アップされた入力機構が必要で
あった。
In this method, the KEY source has two states, high level and low level, and the KEY input has 7 active high KE states.
A Y matrix required a pulled-down input mechanism, and an active low required a pulled-up input mechanism.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来のKEY入力方式はm本のKEYソースと
n本のKEY入力がある場合、K’EYマトリックスの
交点がmXn個となるためmXn個のスイッチの状態し
か読み取ることができなかった。
In the above-mentioned conventional KEY input method, when there are m KEY sources and n KEY inputs, the K'EY matrix has mXn intersections, so it was only possible to read the states of mXn switches.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のKEY入力回路は、ハイ・レベル、ロウ・レベ
ルおよびハイ・インピーダンスの3つの出力状態をとる
出力機構と逆流防止ダイオードとKEYスイッチとプル
・アップおよびプル・ダウンの状態を切換えることので
きる入力機構を有している。
The KEY input circuit of the present invention has an output mechanism that takes three output states: high level, low level, and high impedance, a backflow prevention diode, a KEY switch, and a pull-up and pull-down state that can be switched. It has an input mechanism.

〔実施例〕〔Example〕

次に本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明の実施例である。1はその出力がハイ・
レベル、ロウ・レベル、ハイ・インピーダンスの3状態
をとる出力機構でそれぞれの出力端子を2〜4とする。
FIG. 1 shows an embodiment of the invention. 1 means its output is high.
The output mechanism has three states: level, low level, and high impedance, and each output terminal is numbered 2 to 4.

5〜10は逆流防止ダイオード、11〜28はKEYス
イッチ、29はその入力がプル・ダウンあるいはプル・
アップに切換えることのできる入力機構でそれぞれの端
子を30〜32とする。また33はアクティブ・ハイ用
KEYマトリックス、34はアクティブ・ロウ用KEY
マトリックスである。
5 to 10 are reverse current prevention diodes, 11 to 28 are KEY switches, and 29 is a pull-down or pull-down input.
The input mechanism can be switched up and has 30 to 32 terminals, respectively. Also, 33 is a KEY matrix for active high, and 34 is a key for active low.
It is a matrix.

KEYスイッチの取込みは次のように行なう。The KEY switch is imported as follows.

1、 アクティブ・ハイ用マトリックスの検出出力機構
1の出力端子2〜4をハイ・レベルにし入力機構29の
入力端子30〜32をプル・ダウン状態にして入力端子
30〜32の状態を読み込む。
1. Detection of active high matrix The output terminals 2 to 4 of the output mechanism 1 are set to high level, the input terminals 30 to 32 of the input mechanism 29 are pulled down, and the states of the input terminals 30 to 32 are read.

30〜32の入力端子の少なくとも1つがハイ・レベル
ならアクティブ・ハイ用マトリックス33上のKEYス
イッチが押されているとしてKEYスイッチの検出をし
、そうでなければアクティブ・ロウ用のKEYマトリッ
クスの検出にうつる。
If at least one of the input terminals 30 to 32 is at a high level, the KEY switch on the active high matrix 33 is detected as being pressed, and if not, the active low key matrix is detected. Transfer to.

2、 アクティブ・ハイ用KEYマルリックスの走査ア
クティブ・ハイ用のKEYマトリックス33のスイッチ
が押されていると判断した場合、どのスイッチが押され
ているかを走査する。
2. Scanning of KEY matrix 33 for active high When it is determined that a switch in the active high key matrix 33 is pressed, scan which switch is pressed.

出力機構1の出力端子2をハイ・レベルにし、出力端子
3,4をハイ・インピーダンス状態とする。入力機構2
90入力端子30〜32をプル・ダウン状態にしその端
子状態を入力する。
The output terminal 2 of the output mechanism 1 is set to a high level, and the output terminals 3 and 4 are set to a high impedance state. Input mechanism 2
90 input terminals 30 to 32 are pulled down and their terminal states are input.

これにより11,14.17のスイッチの状態を読み取
ることができる。
This allows the states of switches 11, 14, and 17 to be read.

次に入力端子はプル・ダウンしたままで出力機構1の出
力端子3をハイ・レベルにし、2゜4はハイ・インピー
ダンスにする0次に入力端子状態を読み込むと12.1
5,18のスイッチの状態を読み取ることができる。
Next, while keeping the input terminal pulled down, set output terminal 3 of output mechanism 1 to high level, and set 2°4 to high impedance.0 Next, read the input terminal state and get 12.1
The status of switches 5 and 18 can be read.

同様に入力はプル・ダウンしたままで出力端子4をハイ
・レベルにし、2,3をハイ・インピーダンスとする。
Similarly, while the input remains pulled down, output terminal 4 is set to high level, and terminals 2 and 3 are set to high impedance.

そして入力端子状態を読み込むと13.18.19のス
イッチの状態を読み取ることができる。
Then, by reading the input terminal state, the state of the switch on 13.18.19 can be read.

3、 アクティブ・ロウ用KEYマトリックスの入力出
力機構1の出力端子2〜4をロウ・レベルにし、入力機
構29の入力端子30〜32をプル・アップ状態にして
入力端子30〜32の状態を読み込む。
3. Set the output terminals 2 to 4 of the input/output mechanism 1 of the active low KEY matrix to low level, pull up the input terminals 30 to 32 of the input mechanism 29, and read the states of the input terminals 30 to 32. .

30〜32の入力端子の少なくとも1つがロウ・レベル
ならアクデイプ・ロウ用KEYマトリックス34上のK
EYスイッチが押さてれいるとしてKEYスイッチの検
出をし、そうでなければアクティブ・ハイ用のKEYマ
トリックスの検出にうつる。
If at least one of the input terminals 30 to 32 is at low level, K on the acute low key matrix 34
If the EY switch is pressed, the KEY switch is detected, and if not, the process proceeds to detecting the KEY matrix for active high.

4、 アクティブ・ロウ用KEYマトリックスの走査ア
クティブ・ロウ用KEYマトリックス34のスイッチが
押されていると判断した場合、どのスイッチが押されて
いるかを走査する。
4. Scanning the active row KEY matrix If it is determined that a switch in the active row key matrix 34 is pressed, scan which switch is pressed.

出力機構1の出力端子2をロウ・レベルにし、出力端子
3,4をハイ・インピーダンス状態とする。入力機構2
9の入力端子30〜32をプル・アップ状態にしその端
子状態を入力する。
The output terminal 2 of the output mechanism 1 is set to a low level, and the output terminals 3 and 4 are set to a high impedance state. Input mechanism 2
The input terminals 30 to 32 of 9 are pulled up and the terminal states are input.

これにより20,23.26のスイッチの状態を読み取
ることができる。
This allows the states of switches 20, 23, and 26 to be read.

次に入力端子はプル・アップしたままで、出力機構1の
出力端子3をロウ・レベルにし、2.4はハイ・インピ
ーダンスにする。次に入力端子状態を読み込むと、21
,24.29のスイッチの状態を読み取ることができる
Next, while the input terminal remains pulled up, the output terminal 3 of the output mechanism 1 is set to a low level, and 2.4 is set to high impedance. Next, when reading the input terminal status, 21
, 24.29 can be read.

同様に入力はプル・アップしたままで出力端子4をロウ
・レベルにし、2,3をハイ・インピーダンスとする。
Similarly, while the input remains pulled up, output terminal 4 is set to low level, and terminals 2 and 3 are set to high impedance.

次に入力端子状態を読み込むと22.25゜28のスイ
ッチの状態を読み取ることができる。
Next, by reading the input terminal state, the state of the switch at 22.25°28 can be read.

以上の動作をフローチャートを第2図に示す。A flow chart of the above operation is shown in FIG.

〔実施例2〕 第3図は本発明の実施例2である。35はアクティブ・
ハイ用出力ラッチ、36はアクティブ・ロウ用出力ラッ
チ、37はKEYデータ・セレクタ、38は出力ロジッ
ク回路、39は逆流防止ダイオード、40はKEYスイ
ッチ、41は入力ロジック回路、42は入力ラッチ、4
3はアクティブ・メモリ・ラッチである。
[Example 2] FIG. 3 shows Example 2 of the present invention. 35 is active
Output latch for high, 36 output latch for active/low, 37 KEY data selector, 38 output logic circuit, 39 backflow prevention diode, 40 KEY switch, 41 input logic circuit, 42 input latch, 4
3 is an active memory latch.

アクティブ・メモリ・ラッチ43に“1″を入れ、アク
ティブ・ハイ用う、チに“1111”を入れると出力端
子44〜47はハイ・レベルになり入力端子49〜51
はプル・ダウンされる。このときの入力端子の状態をラ
ッチ42に読込む。
When "1" is put into the active memory latch 43 and "1111" is put into the active memory latch 43, the output terminals 44 to 47 become high level and the input terminals 49 to 51
is pulled down. The state of the input terminal at this time is read into the latch 42.

読込んだデータよりKEY入力ありと判断した場合、ア
クティブ・ハイ用゛出力うッ″チに“1000”のデー
タを設定する。これにより出力端子44はハイ・レベル
となり、45,46.47はハイ・インピーダンスとな
る。このときの入力端子の状態を入力ラッチ42にラッ
チし、読み取る。
If it is determined that there is a KEY input based on the read data, data of "1000" is set in the "output switch" for active high.As a result, the output terminal 44 becomes high level, and 45, 46, and 47 become high level. It becomes high impedance.The state of the input terminal at this time is latched into the input latch 42 and read.

出力ラッチに“0100”、”0010”“0001”
のデータを順次出力し同様にするとアクティブ・ハイ用
のKEYの走査が行なえる。
“0100”, “0010”, “0001” in the output latch
By sequentially outputting the data and doing the same, scanning of the KEY for active high can be performed.

次にアクティブ・メモリ・ラッチに“0”を入れ、アク
ティブ・ロウ用出力ラッチに“1111”のデータを設
定すると、出力ロッジク回路により出力端子44〜47
にロウ・レベルが出力される。
Next, when "0" is put into the active memory latch and data "1111" is set into the active low output latch, the output terminals 44 to 47 are set by the output logic circuit.
A low level is output.

このとき入力はプル・アップされ、入力ラッチにはKE
Yスイッチが押されていると入力ロジック回路により入
力ラッチには1がラッチされる。
At this time, the input is pulled up and the input latch has KE.
When the Y switch is pressed, 1 is latched into the input latch by the input logic circuit.

つまりKEYマトリックスがアクティブ・ハイ用でもア
クティブ・ロウ用でもモメンタリ・スイッチが押されて
いれば“1”が読み取れるようになる。
In other words, whether the KEY matrix is for active high or active low, if the momentary switch is pressed, "1" can be read.

アクティブ・ロウのときもアクティブ・ハイと同様にし
てデータを設定し、入力することにより、アクティブ・
ロウ用KEYマトリックスを走査することができる。
When active low, set and input data in the same way as when active high.
The row KEY matrix can be scanned.

実施例2は入出力回路の制御を一部ハードウェア化する
ことによりプログラムの負担を減らした例である。
Embodiment 2 is an example in which the control of the input/output circuit is partially implemented in hardware to reduce the burden on the program.

〔実施例3〕 実施例3はLCD表示のセグメント信号をKEYソース
信号として使用する方式に本発明を適用したものである
[Embodiment 3] In Embodiment 3, the present invention is applied to a system in which a segment signal of an LCD display is used as a KEY source signal.

第4図で52は表示用セグメント・ラッチ、53はアク
ティブ・ハイ用出力う、チ、64はアクティブ・ロウ用
出力ラッチ、55はKEYデータ・セレクタ、56は出
力データ・セレクタ、57は出力ロジック回路、58は
表示用コモン・ラッチ、59はLCDデイスプレィ、6
0はアクティブ・ハイおよびアクティブ・ロウ用KEY
マトリックス、61は入力ロジック回路、62は入力ラ
ッチ、63はアクティブ・メモリ・ラッチ、64は出力
データ選択ラッチである。
In Fig. 4, 52 is a display segment latch, 53 is an active high output, 64 is an active low output latch, 55 is a KEY data selector, 56 is an output data selector, and 57 is an output logic. circuit, 58 is a display common latch, 59 is an LCD display, 6
0 is KEY for active high and active low
61 is an input logic circuit, 62 is an input latch, 63 is an active memory latch, and 64 is an output data selection latch.

また第5図に実施例3“のタイミング・チャートを示す
。図中、COMI、C0M2は表示用コモン・ラッチ5
8からの出力信号で、81.S2・・・は出力ロジック
回路57からの出力信号である。
In addition, FIG. 5 shows a timing chart of Embodiment 3. In the figure, COMI and C0M2 are display common latches 5.
With the output signal from 8, 81. S2... are output signals from the output logic circuit 57.

またに1は入力ロジック回路61の入力をオープンにし
た時の状態図である。したがってKEYスイッチが押さ
れるとに1のレベルは変化する。
1 is a state diagram when the input of the input logic circuit 61 is opened. Therefore, when the KEY switch is pressed, the level of 1 changes.

第5図で65の期間は表示期間で、52の表示用セグメ
ント・ラッチのデータが56の出力データ・セレクタを
通り、57の出力ロジック回路を通って出力されている
。この信号と58の表示用コモン・ラッチの出力により
LCD表示が0N10FFする。また65の表示期間中
は、入力がハイ・インピーダンスとなるのでKEYスイ
ッチが押されても表示に影響しない。
In FIG. 5, a period 65 is a display period, during which data in the display segment latch 52 passes through an output data selector 56 and is output through an output logic circuit 57. This signal and the output of the display common latch 58 cause the LCD display to turn 0N10FF. Further, during the display period of 65, the input becomes high impedance, so even if the KEY switch is pressed, the display is not affected.

66の期間はアクティブ・ハイ用KEYマトリックスの
KEY  ON検出期間で53のアクティブ・ハイ用出
力ラッチのデータが55のKEYデータ・セレクタを通
り、56の出力データ・セレクタを通って57の出力ロ
ジック回路から出力される。このとき58の表示用コモ
ン・ラッチからの出力は中間電位であり、表示はOFF
となる。
The period 66 is the KEY ON detection period of the active high KEY matrix, and the data of the active high output latch 53 passes through the KEY data selector 55, the output data selector 56, and the output logic circuit 57. is output from. At this time, the output from the display common latch 58 is at an intermediate potential, and the display is OFF.
becomes.

また入力端子は610入力ロジツク回路の働きによりプ
ルダウンされるため、KEYスイッチが押されていなけ
れば入力端子はロウ・レベル、押されていればハイ・レ
ベルとなる。
Further, since the input terminal is pulled down by the action of the 610 input logic circuit, the input terminal becomes low level if the KEY switch is not pressed, and becomes high level if it is pressed.

670期間はアクティブ・ロウ用KEYマトリックスの
KEY  ON検出期間で54のアクティブ・ロウ用出
力ラッチのデータが55のKEYデータ・セレクタを通
り、56の出力データ・セレクタ、を通って57の出力
ロジッ、り回路から出力される。このとき58の表示用
コモン・ラッチからの出力は中間電位であり表示はOF
Fとなる。
The 670 period is the KEY ON detection period of the active low KEY matrix, and the data of the active low output latches 54 passes through the KEY data selector 55, the output data selector 56, and the output logic 57. output from the circuit. At this time, the output from the display common latch 58 is at an intermediate potential, and the display is OF.
It becomes F.

また入力端子は610入力ロジツク回路の働きによりプ
ル・アップされるため、KEYスイッチが押されていな
ければハイ・レベル、押されていれハロウ・レベルとな
る。
Furthermore, since the input terminal is pulled up by the action of the 610 input logic circuit, it is at a high level if the KEY switch is not pressed, and is at a low level if it is not pressed.

また680期間はアクティブ・ハイ用KEYマトリック
スのKEY走査期間で、66の期間と比ベセグメント出
力の1つだけがハイ・レベルで他はハイ・インピーダン
スとなることをのぞき同様の動作を行っている。
Also, the 680 period is the KEY scanning period of the active high KEY matrix, which performs the same operation as the 66 period except that only one of the segment outputs is at high level and the others are at high impedance. .

また69はアクティブ・ロウ用KEYマトリックスのK
EY走査期間で67の期間と比ベセグメント出力の1つ
だけがロウ・レベルで他はハイ・インピーダンスとなる
ことを除き、同様の動作を行っている。
Also, 69 is K of the active low KEY matrix.
The same operation is performed except that only one of the comparison segment outputs is at a low level and the others are at high impedance during a period of 67 in the EY scanning period.

実施例3はLCDの表示出力をKEYソースとして使用
する例に適用したもので従来にも増してさらにICの端
子効率を上げられる。
Embodiment 3 is applied to an example in which the display output of an LCD is used as a KEY source, and the terminal efficiency of the IC can be further increased than before.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明は、出力端子の状態なハイ・
レベル、ロウ・レベル、ハイ・インピーダンスの3状態
に変化させ、入力端子の状態なプル・アップ、プル・ダ
ウンもしくはこれに加えてハイ・インピーダンスの状態
に変化させることにより、アクティブ・ハイ用KEYマ
トリックスとアクティブ・ロウ用KEYマトリックスを
組合せて使用することが可能となり従来と同じ端子数(
m+n)で従来の2倍のKEYスイッチ(2XmXn)
の状態を判別することができるという効果がある。
As explained above, the present invention provides a high
The KEY matrix for active high can be changed to three states: level, low level, and high impedance, and by changing the state of the input terminal to pull up, pull down, or in addition to the high impedance state. It is now possible to use the KEY matrix for active rows in combination with the same number of terminals as before (
m+n) and twice the conventional key switch (2XmXn)
This has the effect of being able to determine the state of

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

第1図は本発明の実施例の1つを示す図、l・・・・・
・3値出力機構、2〜4・・・・・・出力端子、5〜l
O・・・・・・逆流防止ダイオード、11〜28・・・
・・・KEYスイッチ、29・・・・・・入力機構、3
0〜32・・・・・・入力端子、33・・・・・・アク
ティブ・ハイ用KEYマトリックス、34・・・・・・
アクティブ・ロウ用KEYマトリックス。 第2図は本発明のフローチャートを示す図である。 第3図は本発明の他の実施例を示す図、35・・・・・
・アクティブ・ハイ用出力ラッチ、36・・・・・・ア
クティブ・ロウ用出力ラッチ、37・・・・・・KEY
データ・セレクタ、38・・・・・・出力ロジック回路
、39・・・・・・逆流防止ダイオード、40・・・・
・・KEYスイッチ、41・・・・・・入カロジ、り回
路、42・・・・・・入力ラッチ、43・・・・・・ア
クティブ・メモリ・ラッチ、44〜4゛7・・・・・・
出力端子、48〜51・・・・・・入力端子。 第4図は本発明の他の実施例を示す図、52・・・・・
・表示用セグメント・ラッチ、53・・・・・・アクテ
ィブ・ハイ用出力ラッチ、54・・団・アクティブ・ロ
ウ用出力ラッチ、55・・・・・・KEYデータ・セレ
クタ、56・・・・・・出力データ・セレクタ、57・
・・・・・出力ロジック回路、58・・・・・・表示用
コモン・ラッチ、59・・・・・・LCDデイスプレィ
、60・・・・・・アクティブ・ハイおよびアクティブ
・ロウ用KEYマトリックス、61・・・・・・入力ロ
ジック回路、62・・・・・・入力ラッチ、63・・・
・・・アクティブ・メモリ・ラッチ、64・・・・・・
出力データ選択ラッチ。 第5図は実施例3のタイミングチャートを示す図、 65・・・・・・表示期間、66・・・・・・アクティ
ブ・ハイ用KEYマトリックスのKEY  ON検出期
間、67・・・・・・アクティブ・ロウ用KEYマトリ
ックスのKEY  ON検出期間、68・・・・・・ア
クティブ・ハイ用KEYマトリックスの走査期間、69
・・・・・・アクティブ・ロウ用KEYマトリックスの
走査期間。 第6図は従来のKEY入力回路でアクティブ・ハイ用K
EYマトリックスの例を示す図、70・・・・・・出力
アンプ、71・・・・・・逆流防止ダイオード、72・
・・・・・KEYスイッチ、73・・団・プル・ダウン
抵抗、74・・・・・・入力アンプ。 第7図は従来のKEY入力回路でアクティブ・ロウ用K
EYマトリックスの例を示す図である。 75・・・・・・出力アンプ、76・・・・・・逆流防
止ダイオード、77・・・・・・KEYスイッチ、78
・・・・・・プル・アップ抵抗、79・・・・・・入力
アンプ。 代理人 弁理士  内 原   音 尤 口 万5面 万 乙 図 第 図
FIG. 1 is a diagram showing one embodiment of the present invention, l...
・Three-value output mechanism, 2 to 4...Output terminal, 5 to l
O...Reverse current prevention diode, 11-28...
...KEY switch, 29...Input mechanism, 3
0 to 32...Input terminal, 33...KEY matrix for active high, 34...
KEY matrix for active row. FIG. 2 is a diagram showing a flowchart of the present invention. FIG. 3 is a diagram showing another embodiment of the present invention, 35...
・Output latch for active high, 36...Output latch for active low, 37...KEY
Data selector, 38...Output logic circuit, 39...Reverse current prevention diode, 40...
...KEY switch, 41...Input logic circuit, 42...Input latch, 43...Active memory latch, 44-4゛7...・・・
Output terminal, 48-51... Input terminal. FIG. 4 is a diagram showing another embodiment of the present invention, 52...
- Display segment latch, 53... Output latch for active high, 54... Output latch for group active low, 55... KEY data selector, 56...・Output data selector, 57・
... Output logic circuit, 58 ... Common latch for display, 59 ... LCD display, 60 ... KEY matrix for active high and active low, 61... Input logic circuit, 62... Input latch, 63...
...Active memory latch, 64...
Output data selection latch. FIG. 5 is a diagram showing a timing chart of the third embodiment, 65...Display period, 66...KEY ON detection period of active high KEY matrix, 67... KEY ON detection period of KEY matrix for active low, 68...Scanning period of KEY matrix for active high, 69
....Scanning period of active low KEY matrix. Figure 6 shows a conventional KEY input circuit with K for active high.
A diagram showing an example of an EY matrix, 70... Output amplifier, 71... Backflow prevention diode, 72...
...KEY switch, 73...Group pull-down resistor, 74...Input amplifier. Figure 7 shows the conventional KEY input circuit for active low K.
FIG. 3 is a diagram showing an example of an EY matrix. 75...Output amplifier, 76...Reverse current prevention diode, 77...KEY switch, 78
...Pull-up resistor, 79...Input amplifier. Agent Patent Attorney Hara Uchi

Claims (1)

【特許請求の範囲】[Claims] 出力端子の信号を走査し、入力端子から読み込むことに
よりマトリックス上のスイッチの状態を読み取るキーマ
トリックス入力回路において出力端子の出力状態がハイ
・レベル、ロウ・レベル、ハイ・インピーダンスの3状
態になるような機構を有し、入力端子がプル・アップ、
プル・ダウンとなる機構を有し、逆流防止ダイオードを
有することによってアクティブ・ハイで動作するキーマ
トリックスとアクティブ・ロウで動作するキーマトリッ
クスの2つのキーマトリックスを切換えることにより、
マトリックス上のスイッチの数を増すことができるマイ
クロ・コンピュータのキー入力回路。
In a key matrix input circuit that scans the output terminal signal and reads it from the input terminal to read the state of the switch on the matrix, the output state of the output terminal is set to three states: high level, low level, and high impedance. It has a mechanism that allows the input terminal to pull up,
By having a pull-down mechanism and a backflow prevention diode, it is possible to switch between two key matrices: one that operates at active high and the other that operates at active low.
A microcomputer key-in circuit that can increase the number of switches on a matrix.
JP63237005A 1988-09-20 1988-09-20 Key input circuit Expired - Lifetime JPH0766307B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63237005A JPH0766307B2 (en) 1988-09-20 1988-09-20 Key input circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63237005A JPH0766307B2 (en) 1988-09-20 1988-09-20 Key input circuit

Publications (2)

Publication Number Publication Date
JPH0284821A true JPH0284821A (en) 1990-03-26
JPH0766307B2 JPH0766307B2 (en) 1995-07-19

Family

ID=17008975

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63237005A Expired - Lifetime JPH0766307B2 (en) 1988-09-20 1988-09-20 Key input circuit

Country Status (1)

Country Link
JP (1) JPH0766307B2 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6137531U (en) * 1984-08-02 1986-03-08 シャープ株式会社 key input circuit

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6137531U (en) * 1984-08-02 1986-03-08 シャープ株式会社 key input circuit

Also Published As

Publication number Publication date
JPH0766307B2 (en) 1995-07-19

Similar Documents

Publication Publication Date Title
US5305284A (en) Semiconductor memory device
US4961169A (en) Method of and apparatus for generating variable time delay
NL8202579A (en) MICRO COMPUTER.
KR900012435A (en) Logic Circuit with Flip-Flop
EP0083230B1 (en) Method for controlling read-out or write in of semiconductor memory device and apparatus for the same
JPH0284821A (en) Key input circuit
US5062110A (en) Logic circuit testing apparatus
US6202185B1 (en) Methods and apparatus for facilitating scan testing of circuitry
JP3111431B2 (en) Input interface circuit
US5402381A (en) Semiconductor memory circuit having bit clear and/or register initialize function
US4771405A (en) Hidden control bits in a control register
JPH07152468A (en) Key matrix input device
US3860832A (en) Bionic logic device
US5574940A (en) Data processor with quicker latch input timing of valid data
US4747106A (en) Parity checker circuit
JPH0334617A (en) Flip-flop circuit
KR100234695B1 (en) Mask ROM data output circuit
JPH0969286A (en) Semiconductor memory device
KR0168789B1 (en) Key scan circuit and its control method
US5479165A (en) Two-dimensional coding apparatus
JP2810584B2 (en) Serial data transfer circuit
JPS61146017A (en) counting circuit
JPH0235700A (en) Memory circuit
JPS5857771B2 (en) keyboard encoder
KR960007955Y1 (en) Interrupt input apparatus of plc