JPS6010325A - Key scanning system - Google Patents

Key scanning system

Info

Publication number
JPS6010325A
JPS6010325A JP58118895A JP11889583A JPS6010325A JP S6010325 A JPS6010325 A JP S6010325A JP 58118895 A JP58118895 A JP 58118895A JP 11889583 A JP11889583 A JP 11889583A JP S6010325 A JPS6010325 A JP S6010325A
Authority
JP
Japan
Prior art keywords
key
logical
input
key input
powered
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
JP58118895A
Other languages
Japanese (ja)
Inventor
Yasuhiro Kunimoto
国本 康弘
Kenji Mizui
水井 賢司
Hideyuki Motoyama
英幸 元山
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP58118895A priority Critical patent/JPS6010325A/en
Publication of JPS6010325A publication Critical patent/JPS6010325A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve the reliability by discriminating it as the presence of key input when the key input is detected as absence, presence, and presence. CONSTITUTION:Presence/absence information of key switch depression is inputted to a shift register SR (0) at each prescribed time, and the shift register is shifted from (0) to (2) in order. Thus, the oldest information is stored in the (2) and the newest information is stored in the (0). Since the shift registers SR (0) and (1) are connected to inputs of an AND logic circuit LG1, when they are both logical 1, an exclusive OR circuit LG2 goes to logical 1. Since other input of an exclusive OR LG2 is connected to the shift register SR (2), when this input is logical 0, logical 1 is outputted to an output OUT. Thus, when the key input is present, the key input just before is present and further, the preceding key input is absent, then the output terminal OUT goes to logical 1.

Description

【発明の詳細な説明】 (1)発明の技術分野 本発明はキーボードに設けたキースイッチの操作に当た
り、キー人力の有無を確実に判定するキースキャン方式
に関する。
DETAILED DESCRIPTION OF THE INVENTION (1) Technical Field of the Invention The present invention relates to a key scan method that reliably determines whether or not there is any human power on a key when operating a key switch provided on a keyboard.

(2)従来技術と問題点 中央処理装置CPUと接続され、テンキーと呼ばれる1
0個のキーにより数字を入力するキーボード、或いは1
0個以上のキーにより数字を入力するキーボードは公知
である。これは第1図に示すように、中央処理装置から
のバスにディジタル出力部DOとディジタル入力部DI
とが接続され、それぞれ4本の出力線DO〜D3、入力
線po−p3が設けられている。またDO〜D3とPO
〜P3は互いに直交し、その交点にキースイッチが接続
されて、Of、02−のように符号付けがされ、且つD
O〜D3はプルアンプ抵抗を介して正電源と接続されて
いる。D3.D2.DI、DOの各線にそれぞれ“11
10″のパルスを印加し、PO〜P3の出力を調べる。
(2) Prior art and problems The one connected to the central processing unit CPU and called the numeric keypad
A keyboard that inputs numbers using 0 keys, or 1
Keyboards for inputting numbers using zero or more keys are well known. As shown in Figure 1, this means that the bus from the central processing unit is connected to the digital output DO and digital input
are connected to each other, and are provided with four output lines DO to D3 and input lines po to p3, respectively. Also DO~D3 and PO
~P3 are orthogonal to each other, a key switch is connected to the intersection point, and they are labeled as Of, 02-, and D
O to D3 are connected to a positive power supply via a pull amplifier resistor. D3. D2. “11” on each line of DI and DO
Apply a 10'' pulse and check the outputs of PO to P3.

DO綿線上キースイッチが1つも押下されていないとき
は、PO−P3の出力はすべて”1111”となる。押
下キーがあるとその位置の出力が“O″となる。次のタ
イミングで“1101”を印加し、D1線上のキー押下
有無を調べる。更に“1011″、”0111”を順次
送出し、1巡中にPO−P3の“O”1”を見て、押下
キーの位置を知り予め付されている°コードのキーをめ
る。キーのチャタリングは3ミリ秒程度あるため、それ
を防止するため、或いはノイズの混入による誤動作を防
止するため、フィルタを使用することがある。しかしチ
ャタリングの特性、オペレータのくせ等のため使用する
フィルタの大きさ、値段の割に効果が十分でない欠点が
あった。
When no key switch on the DO line is pressed, all outputs of PO-P3 become "1111". When there is a pressed key, the output at that position becomes "O". At the next timing, "1101" is applied to check whether or not a key on the D1 line has been pressed. Furthermore, it sequentially sends "1011" and "0111", and during the first round, it sees "O"1" of PO-P3, knows the position of the key to be pressed, and presses the key with the ° code assigned in advance. Key The chattering lasts about 3 milliseconds, so a filter may be used to prevent this or to prevent malfunctions due to noise.However, due to the characteristics of chattering and the habits of the operator, the filter used may be It had the drawback of not being sufficiently effective considering its size and price.

(3)発明の目的 本発明の目的は前述の欠点を改善し、所定時間毎にキー
スキャンを繰り返し、キー人力の有無を確実に判定する
キースキャン方式を提供することにある。
(3) Object of the Invention An object of the present invention is to improve the above-mentioned drawbacks and to provide a key scanning method that repeats key scanning at predetermined time intervals and reliably determines whether or not the key is operated manually.

(4)発明の構成 前述の目的を達成するための本発明の構成は、キーボー
ドのキースイッチに対し所定時間毎にパルスを送出する
中央処理装置が受取ったパルスの変化によりキー人力の
有無を判定するキースキャン方式において、成る時にキ
ー人力有りと判定したときはそれ以前の2回の状態を参
照し、以前の状態からキー人力無、キー人力有り、キー
人力有りとなっていたとき、前記キー人力有りを最終的
に判定することである。
(4) Structure of the Invention The structure of the present invention to achieve the above-mentioned object is to determine whether or not a key is pressed based on changes in the pulses received by the central processing unit, which sends pulses to the key switches of the keyboard at predetermined time intervals. In the key scan method, when it is determined that the key is powered at the time, the previous two states are referred to, and if the previous state is that the key is not powered, the key is powered, or the key is powered, the key The final decision is whether human labor is required.

(5)発明の実施例 第2図は本発明の一実施例の構成を示す図で、第1図の
ディジタル入力部DIと中央処理装置CPUとの間に挿
入する。SRはシフトレジスタで所定時間(例えば10
ミリ秒)毎にキースイッチ押下の有無情報を格納し、順
次矢印の方向にシフトさせる。そのため(2)にはスキ
ャン時間2回前の状態が、(1)には前回の、(0)に
は今の状態が格納される。シフトレジスタ(0)におい
てキースイッチ入力有り即ちスイッチ押下状態のときは
、第2論理演算回路LG2の出力の有無を調べる。それ
は(0)(1)共に入力有りのとき第1論理演算回路L
GIの出力が“1”となり、(2)には入力兼のとき第
2論理演算回路LG2(排他的論理和回路)の出力OU
Tが1”となる。したがってLG2の出力OUTが“1
”のときは 現在スイッチ入力有りで、 直前はスイッチ入力有り、 その前はスイッチ入力無、 ということである。そのときは論理回路LG2の出力を
利用して現在のスイッチ入力を中央処理装置cpuに取
込む。
(5) Embodiment of the Invention FIG. 2 is a diagram showing the configuration of an embodiment of the invention, which is inserted between the digital input section DI of FIG. 1 and the central processing unit CPU. SR is stored in a shift register for a predetermined time (for example, 10
Information on whether or not the key switch is pressed is stored every millisecond (milliseconds), and shifted sequentially in the direction of the arrow. Therefore, (2) stores the state two scan times ago, (1) stores the previous state, and (0) stores the current state. When there is a key switch input in the shift register (0), that is, when the switch is pressed, the presence or absence of an output from the second logic operation circuit LG2 is checked. It is the first logic operation circuit L when both (0) and (1) have input.
The output of GI becomes "1", and (2) shows the output OU of the second logic operation circuit LG2 (exclusive OR circuit) when it also serves as an input.
T becomes "1". Therefore, the output OUT of LG2 becomes "1".
”, there is currently a switch input, the previous time there was a switch input, and the previous time there was no switch input.In that case, the output of the logic circuit LG2 is used to send the current switch input to the central processing unit CPU. Take in.

第3図は本発明の他の実施例として、前記動作をソフト
ウェアにより実行する場合のフローチャートを示す。キ
ー押下が無と判断したときキー信号はFFと、有りのと
きはキー信号はその番号とする。最新スキャンのキー信
号をキー(0)、1サイクル前(スキャン1回前)のキ
ー信号をキー(1)、2回前をキー(2)とする。
FIG. 3 shows a flowchart in a case where the above operations are executed by software as another embodiment of the present invention. When it is determined that there is no key press, the key signal is set to FF, and when it is determined that the key is pressed, the key signal is set to that number. Let the key signal of the latest scan be the key (0), the key signal of one cycle before (one scan before) be the key (1), and the key signal two cycles ago be the key (2).

当初キー(0)はFFか否か判断する。イエスのときは
キー人力がないので、判断終了とする。
Initially, it is determined whether the key (0) is FF. If yes, there is no key personnel available, so the decision is over.

FFでないときはキー人力が始めてあったか、前から継
続して押下されているということであるから次に進む。
If it is not FF, it means that the key has been pressed for the first time or has been pressed continuously from before, so proceed to the next step.

キー信号(2)がFFであるか否か判断する。ノーのと
きは判断外であるから終了とする。イエスのときキー信
号(0)はキー信号(1)と同じか否か判断する。イエ
スのときはキー信号を取込むためキーフラグFを立てる
。ノーのときは誤動作の可能性があるため終了させる。
It is determined whether the key signal (2) is FF. If the answer is no, the decision is over and the decision is over. If YES, it is determined whether the key signal (0) is the same as the key signal (1). If YES, a key flag F is set to capture the key signal. If no, there is a possibility of malfunction, so the process is terminated.

6)発明の効果 このようにして本発明によると゛、比較的簡易な手段で
キー押下操作の有無を確実に判断できるから、情報処理
に際し信頼性が高くなる。
6) Effects of the Invention As described above, according to the present invention, it is possible to reliably determine whether or not a key press operation has been performed using relatively simple means, thereby increasing reliability in information processing.

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

第1図はキースキャンによるキー信号取出しを説明する
図、 第2図は本発明の一実施例の構成を示す部分図、第3図
は本発明の他の実施例の動作フローチャートを示す。 Do・・−ディジタフ出力部 Dl−−ディジタル入力部 SR・−・シフトレジスタ 特許出願人 富士通株式会社 代理人 弁理士 鈴木栄祐
FIG. 1 is a diagram illustrating key signal extraction by key scanning, FIG. 2 is a partial diagram showing the configuration of an embodiment of the present invention, and FIG. 3 is an operational flowchart of another embodiment of the present invention. Do...-Digital output section Dl--Digital input section SR...Shift register Patent applicant Fujitsu Limited Agent Patent attorney Eisuke Suzuki

Claims (1)

【特許請求の範囲】[Claims] キーボードのキースイッチに対し所定時間毎にパルスを
送出する中央処理装置が受取ったパルスの変化によりキ
ー人力の有無を判定するキースキャン方式において、成
る時にキー人力有りと判定したときはそれ以前の2回の
状態を参照し、以前の状態からキー人力無、キー人力有
り、キー人力有りとなっていたとき、前記キー人力有り
を最終的に判定することを特徴とするキースキャン方式
In the key scanning method, in which the central processing unit, which sends pulses to the key switches of the keyboard at predetermined intervals, determines whether there is human key force based on changes in the received pulses, if it is determined that there is human key force at the time of 1, then the previous 2 The key scan method is characterized in that, by referring to the previous state, when the previous state is that the key is not powered, the key is powered, or the key is powered, it is finally determined whether the key is powered.
JP58118895A 1983-06-30 1983-06-30 Key scanning system Pending JPS6010325A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58118895A JPS6010325A (en) 1983-06-30 1983-06-30 Key scanning system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58118895A JPS6010325A (en) 1983-06-30 1983-06-30 Key scanning system

Publications (1)

Publication Number Publication Date
JPS6010325A true JPS6010325A (en) 1985-01-19

Family

ID=14747811

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58118895A Pending JPS6010325A (en) 1983-06-30 1983-06-30 Key scanning system

Country Status (1)

Country Link
JP (1) JPS6010325A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5567828A (en) * 1978-11-16 1980-05-22 Brother Ind Ltd Keyboard input device
JPS55140929A (en) * 1979-04-18 1980-11-04 Omron Tateisi Electronics Co Keyboard encoder

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5567828A (en) * 1978-11-16 1980-05-22 Brother Ind Ltd Keyboard input device
JPS55140929A (en) * 1979-04-18 1980-11-04 Omron Tateisi Electronics Co Keyboard encoder

Similar Documents

Publication Publication Date Title
JPS6010325A (en) Key scanning system
JP3321955B2 (en) Keyboard device
US5702625A (en) Encoder key input device for a microwave oven and interrupt processing method using the same
JPS6034148B2 (en) Line control device
GB1356875A (en) Remote conttrol
JPS6227831A (en) Checking circuit for computing element
JPS6224315A (en) Keyboard
KR880000422B1 (en) Matrix key and data selector
JP2823610B2 (en) Key input device
SU610113A1 (en) Program relaying arrangement
SU868740A1 (en) Device for interfacing computer with pick-ups
JPH0219870Y2 (en)
JPS63140314A (en) Keyboard control method
SU1282109A1 (en) Information input device
JPS60235221A (en) Key input device
JP2513032B2 (en) Microcomputer input control circuit
JPH04175812A (en) Keyboard
JPH01177629A (en) Keyboard processing system
JPH0518130B2 (en)
KR20020054652A (en) Method and Apparatus of Multiple Key Input Management for Mobile Telephone
JPS62239222A (en) Keyboard input device
JPS58221431A (en) Data transferring circuit in keyboard device
JPS60201444A (en) Interrupting signal generating system
JPH06332597A (en) Key matrix circuit
JPS62196718A (en) Keyboard