JPS62143118A - Method for scanning key - Google Patents

Method for scanning key

Info

Publication number
JPS62143118A
JPS62143118A JP60283771A JP28377185A JPS62143118A JP S62143118 A JPS62143118 A JP S62143118A JP 60283771 A JP60283771 A JP 60283771A JP 28377185 A JP28377185 A JP 28377185A JP S62143118 A JPS62143118 A JP S62143118A
Authority
JP
Japan
Prior art keywords
scanning
key
output level
latch
microcomputer
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
JP60283771A
Other languages
Japanese (ja)
Other versions
JPH0457018B2 (en
Inventor
Yasutoshi Takizawa
安俊 滝沢
Yasuaki Kitabayashi
育明 北林
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP60283771A priority Critical patent/JPS62143118A/en
Publication of JPS62143118A publication Critical patent/JPS62143118A/en
Publication of JPH0457018B2 publication Critical patent/JPH0457018B2/ja
Granted legal-status Critical Current

Links

Abstract

PURPOSE:To obtain a key scanning method characterized by a rapid scanning speed and low current consumption by setting up a scanning signal to the 1st output level to scan one line and then inverting the scanning signals for all lines against the 1st output level only for a prescribed period. CONSTITUTION:A microcomputer 1 controls a system using touch keys. Data are written from the microcomputer 1 to a latch 2 in accordance with necessity and data corresponding to key entry is inputted from an input port 3 to the microcomputer 1. After executing all phi clear of the latch 2, necessary data are written, a key input is decided, and when the existence of key input is decided, key input processing is executed. When there is no key input, all phiclear of the latch 2 is once executed and then necessary data are rewritten to scan the succeeding line. Since the output level of a scanned line is rapidly turned to '0', rapid key scanning can be attained.

Description

【発明の詳細な説明】 (産業上の利用分野) 木発明け、タッチパネル等のキーボードのキースキャン
方法に関する。
DETAILED DESCRIPTION OF THE INVENTION (Industrial Application Field) The present invention relates to a key scanning method for a keyboard such as a touch panel.

(従来の技術) 従来のタッチパネル等におけるキースキャン方法を第6
図を用いて説明する。
(Conventional technology) The sixth method for key scanning on conventional touch panels, etc.
This will be explained using figures.

ラッチ700に図示しないマイクロコンピュータ−から
走査用のデータが書き込1れ、走査結果が入力ポードア
50に返される。800〜802け、逆流してくる電流
を防ぐダイオードである。
Scanning data is written into the latch 700 from a microcomputer (not shown), and the scan result is returned to the input port door 50. 800 to 802 are diodes that prevent current from flowing backwards.

例えばb A’点を出力レベル1にしてキー600〜6
02をスキャンした後、P′点を出力レベル1にしてキ
ー610〜612をスキャンする場合を考える。走査を
する際には、A’  g B’  @ O’のうちの一
つのみが出力レベル1になり、その他は、全てOになる
。というのけ、複数ラインが出力レベル1になるとどの
ラインのキーが押され念かわからなくなるからである。
For example, set b A' point to output level 1 and key 600 to 6.
Consider the case where after scanning 02, the output level is set to 1 at point P' and keys 610 to 612 are scanned. When scanning, only one of A' g B' @ O' becomes output level 1, and all others become O. This is because when multiple lines reach output level 1, it becomes difficult to know which line's key was pressed.

しかし、B′が1でC′が0の場合、キー610.62
0の2つ、又はキー611,621の2つ、又はキー6
12,622の2つが同時に押されている時には、もし
ダイオード802がなければ電流がB′からal+経て
バッファ652に流れ込み、バッファ651,652が
つな≠5ってし1い大電流が流れ、無駄な電流消費及び
バッファ651.652の破壊の原因となってし1う。
However, if B' is 1 and C' is 0, then the key 610.62
0 or two keys 611 and 621 or key 6
When 12 and 622 are pressed at the same time, if the diode 802 were not present, current would flow from B' through al+ to the buffer 652, and if the buffers 651 and 652 were connected, a large current of ≠ 5 would flow. This may cause unnecessary current consumption and destruction of the buffers 651 and 652.

このことを防ぐためにダイオード800〜802が設置
されている。
Diodes 800-802 are installed to prevent this.

ところが1例えばAZ点がいったん1になると、パネル
とグランド間に生ずる容t660に電荷がチャージされ
るが、0になってもダイオード800があるため、放電
けゆつくりとしかなされない、(放電け、ダイオード8
00の逆方向のもれ電流等によりおこなわれる) 先に述べたように、A′〜C′の電位が、複数の場所で
出力レベル1になっていると、どのラインが押されたか
わからない。し念がって、従来においては、1つのライ
ンの走査がおわり、十分時間がたって放電が完全になさ
れてから次のラインのスキャンに移っていた。
However, once the AZ point becomes 1, for example, the capacitor t660 generated between the panel and the ground is charged with electric charge, but even if it becomes 0, there is a diode 800, so the only thing that can be done is to create a discharge. diode 8
(This is caused by a leakage current in the opposite direction of 00.) As mentioned above, if the potentials of A' to C' are at output level 1 at multiple locations, it is impossible to know which line was pressed. For this reason, in the past, scanning of one line was completed and the scanning of the next line was started after sufficient time had elapsed for the discharge to be completed.

また、スキャンの速度を速くするために容量に並列に放
電抵抗を入れていたが、放電抵抗による消費電流の増加
を招いていた。
Additionally, a discharge resistor was placed in parallel with the capacitor in order to increase the scan speed, but this resulted in an increase in current consumption due to the discharge resistor.

(発明が解決しようとする問題点) したがって、従来の技術は、1つの行のスキャンがおわ
っても電荷のディスチャージが十分なされるまで次の行
のスキャンに移れずしたがって、窩速なキースキャンか
で@なかった。
(Problem to be Solved by the Invention) Therefore, in the conventional technology, even after scanning one row, the scan of the next row cannot be started until the charges are sufficiently discharged. There was no @.

また高速キースキャンを行なおうとすると容量の放電用
抵抗を容量と並列に入れなければならず、消費電流の増
加を招いていた。
Furthermore, in order to perform high-speed key scanning, a resistor for discharging the capacitor must be inserted in parallel with the capacitor, leading to an increase in current consumption.

本発明け、上記の問題点を解決しスキャン迷電の速い、
かつ低消費電流のタッチパネル等におけるキースキャン
方法を提供することを目的とする。
The present invention solves the above problems and reduces scanning stray electricity quickly.
Another object of the present invention is to provide a key scanning method for a touch panel or the like with low current consumption.

(問題点を解決する念めの手段) 本発明は、1つの行に対する走査を走査信号を第1の出
力レベルにして行ない、その後所定期間だけ全ての行に
対する前記走査信号を前記第1の出力レベルと反転させ
、次に、次の行に対する走査を@記走査信号を前記第1
の出力レベルにして行なうことを特徴とする。
(Measures to Solve the Problem) The present invention scans one row by setting the scanning signal to a first output level, and then outputs the scanning signal to all rows for a predetermined period at the first output level. level and then inverts the scanning signal to the first line to scan the next row.
It is characterized in that it is carried out at an output level of .

(作用) 本発明の場合、一つの行がスキャンされた後、次の行の
スキャンに移る前に、前の行のスキャンの時にチャージ
された電荷が急速に放電される。
(Operation) In the case of the present invention, after one row is scanned, the charges charged during the scan of the previous row are rapidly discharged before moving on to the scan of the next row.

(実施例) 第1図は本発明のキースキャン方法を適用する装置の一
例を示すものである。ここで、マイクロコンピュータ1
け、タッチキーを使用したシステムの制御を行っている
。又、マイクロコンピュータ1からラッチ2へ必要に応
じてデータが書き込1れ、キー人力に対応したデータが
、入力ボート3からマイクロコンピュータ1に読み込1
れる。
(Embodiment) FIG. 1 shows an example of an apparatus to which the key scanning method of the present invention is applied. Here, microcomputer 1
The system is controlled using touch keys. Also, data is written from the microcomputer 1 to the latch 2 as necessary, and data corresponding to the key input is read from the input board 3 to the microcomputer 1.
It will be done.

第2図は本発明のキースキャン方法を適用した場合の第
1図A−F点の状態を示した図である。
FIG. 2 is a diagram showing the state of points A to F in FIG. 1 when the key scanning method of the present invention is applied.

第2図を用いて本発明の詳細な説明する。The present invention will be explained in detail using FIG.

区間(a)では、ABC全ての点が出力レベル0になり
タッチキー電極とグランド間に蓄積された電荷を放電す
る。区間(υではAのみ出力レベル1にし、B 、 C
nハイインピーダンスにしてこの区間でキー101〜1
05のいずれかが押されているかどうかの判断をする。
In section (a), all points ABC become output level 0, and the charges accumulated between the touch key electrode and the ground are discharged. In the interval (υ, only A is set to output level 1, and B, C
n High impedance and keys 101 to 1 in this section
05 is pressed.

その判断の処理が終クギ−101〜103のいずれも押
されていない場合には1区間(C)に移る。
If none of the final nails 101 to 103 are pressed, the process moves to section 1 (C).

区間(c)では上記区間(b)の間に電極とグランド間
に蓄積され念電荷を放電させる。以下同様に区間(a)
ではキー201〜205のいずれかが押され念かどうか
を調べ区間(e)では区間(ωで蓄積された電荷を放電
する。さらに区間(f)ではキー301〜303のいず
れかが押されているかどうかを調べ区間(ωで電荷の放
電を行なう、 次に、区間(a) 、 (c) 、 (e) 、(mに
おける状態について第3図を用いてさらに詳しく説明す
る。
In the interval (c), the psychic charge accumulated between the electrode and the ground during the interval (b) is discharged. Similarly below, section (a)
Then, it is checked whether any of the keys 201 to 205 has been pressed and in the interval (e), the charge accumulated in the interval (ω) is discharged.Furthermore, in the interval (f), it is checked whether any of the keys 301 to 303 has been pressed. The state in the intervals (a), (c), (e), and (m will be explained in more detail using FIG. 3).

まず、タッチパネルとグランド間には、第3図の30.
31.32に示される容量が生じている。
First, between the touch panel and the ground, place 30 in Figure 3.
The capacitance shown in 31.32 occurs.

区間(a)では、まずこれらのコンデンサにチャージさ
れている電荷を放出して初期化をおこなう、又。
In section (a), the charges charged in these capacitors are first discharged to perform initialization.

区間(C)においては、A点が出力レベル0になること
によって容t50の放電がなされる。この時。
In section (C), the output level at point A becomes 0, and a discharge of capacity t50 is performed. At this time.

2点及び0点も出力レベル0となっている。Points 2 and 0 also have an output level of 0.

(c)の区間について詳細に説明すると以下のようにな
る。
The section (c) will be explained in detail as follows.

まス、キー101〜106のスキャンの次は、キー20
1〜203のスキャンに移るから、C点の電位が上がっ
てはまずいので、例えば出力レベルを0にしてやる。そ
して、同時に、この時% B点も出力レベル0にしてや
る。というのtri、  C点がOでP点、が1だと、
例えば、キー201゜301が同時に押された時には、
P点からC点に電流が、まわり込みその結果、出力バッ
ファ54と35がつながってしまい大きな電流が流れて
無駄な電流消賛になってしまうからである。
After scanning keys 101 to 106, key 20 is next.
Since the scanning moves from 1 to 203, it would be undesirable for the potential at point C to rise, so the output level is set to 0, for example. At the same time, point %B is also set to output level 0. So tri, if point C is O and point P is 1, then
For example, when keys 201 and 301 are pressed at the same time,
This is because the current flows around from point P to point C, and as a result, the output buffers 54 and 35 are connected, resulting in a large current flowing and wasting the current.

又、第2図のタイムチャートでは、(C)区間において
A点の0.B点の0、C点の0け、同時に起きている。
In addition, in the time chart of FIG. 2, in the section (C), the 0. The 0 at point B and the 0 at point C are happening at the same time.

ここで、前述し友ようにs  B HC点のO1I′l
j同時でなければならないが、A点の0の同時に起こる
必要はなく、  A点の0と、B、0点の0とはそのタ
イミングがずれていてもよい。
Here, as mentioned earlier, O1I'l of the s B HC point
j must be simultaneous, but it is not necessary for the 0 at point A to occur at the same time; the 0 at point A and the 0 at point B and 0 may be at different timings.

又、区間(b) t (a) s (f) t (h)
では、  A−1’3点のうちのいずれか1つが出力レ
ベル1になっているが、この9時も電流のまわり込みを
避けるために、A点が出力レベル1になっている時は、
B、0点は、ハイインピーダンス状態になっていて、出
力バッファ54.35け切フ離されている。
Also, section (b) t (a) s (f) t (h)
Now, any one of the three points A-1' is at output level 1, but when point A is at output level 1 at 9 o'clock as well, to avoid current circulation,
Point B and 0 are in a high impedance state and are separated by an output buffer of 54.35 degrees.

第4図は、第2図のタイムチャートの動作をさせるため
には、マイクロコンピュータ1からラッチ2にどのよう
なデータを曹き込めばよいか全示し友ものである。*の
印は、出力バッファが切り離されているため、どのよう
な値でもよいことを示している。又、ここで、マイクロ
コンピュータ1からラッチ2に入力されるデータ線は6
本とし九が、これは説明の便宜上のもので、実際のデー
タ線の数としては、8本、16本等が考えられる。
FIG. 4 shows all the data that should be input from the microcomputer 1 to the latch 2 in order to operate the time chart shown in FIG. 2. The * mark indicates that the output buffer is separated, so any value is acceptable. Also, here, the data line input from the microcomputer 1 to the latch 2 is 6.
This number is for convenience of explanation, and the actual number of data lines may be 8, 16, etc.

そして、第4−2図で示されるデータがラッチ2に書き
こまれつつキースキャンが行なわれる様子を示したのが
、第5図である。
FIG. 5 shows how the key scan is performed while the data shown in FIG. 4-2 is being written into the latch 2.

第5図に示されるように、ラッチ2をオールグクリアし
念後、必要なデータを書き込みその後、KEY入力の判
足をし、KEY人力ありと判断されたらKKY入力処理
を行ない、KEY入力のない場合には、−髪ラッチ2を
オールグクリアし几後、再び必要なデータを書き込み次
のラインのスキャンに移っていく。そして、KEY入力
がある1でこの過程をくり返す。
As shown in Figure 5, after clearing latch 2 and writing the necessary data, the KEY input is checked, and if it is determined that the KEY is powered manually, the KKY input processing is performed, and the KEY input is completed. If there is no such data, clear the hair latch 2, write the necessary data again, and move on to scanning the next line. Then, this process is repeated when the KEY input is 1.

又、以上の実施例では、第2図の区間(c)において、
B点、C点の出力レベルをOにしているが、0でなくて
、ハイインピーダンス状態にしておいてもか箇わない、
というのFi、出力バッファ34゜35は切り離される
ので、A点から電流が1わり込むことはないからである
。このことは、他の区間(θ) 、 (g) 、 (t
lについてもいえることである。
In addition, in the above embodiment, in the section (c) of FIG.
The output levels at points B and C are set to O, but they can also be set to a high impedance state instead of 0.
This is because since Fi and the output buffers 34 and 35 are separated, the current from point A will not be divided by 1. This means that other intervals (θ), (g), (t
The same can be said about l.

(発明の効果) 以上、詳細に説明した様に2本発明の場合、1つの行の
キースキャンが終わると、常に全ての行に対するスキャ
ン信号の出力レベルをいつ友んローに落としてやるので
、前の行のスキャンの時にチャージされていた電荷が急
速に放電され、したがって、スキャンずみの行に対する
出力レベルが速やかにOKなるため、高速のキースキャ
ンが可能になる。
(Effects of the Invention) As described above in detail, in the case of the present invention, when the key scan of one row is completed, the output level of the scan signal for all rows is always lowered to low. Charges that were charged during scanning of the previous row are rapidly discharged, and therefore the output level for the scanned row quickly becomes OK, allowing high-speed key scanning.

1だ、高速にスキャンするための容量のディスチャージ
用の抵抗が不要になるので、低消費電流化が画れる。
1. Since there is no need for a resistor for discharging the capacitance for high-speed scanning, current consumption can be reduced.

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

第1図は、本発明が適用されるキーボードの構造を示す
図、第2図は、本発明の詳細な説明するタイムチャート
。第3図は、第1図をさらに説明し友もので、各行とグ
ランドとの間に生ずる容量にチャージされる電荷の動き
についての説明図。 第4図は、第2図のタイムチャートで示される動作をす
るためには、どのようなデータカ5必要であるかを示す
図、第5図は、本発明の動作を詳細に示すフローチャー
ト。第6図は、従来のキースキャン方法を示す図。 30.31.52・・・容量 55.54.55・・・出力バッファ 以上 出願人 セイコーエプソン株式会社 代理人 弁理士 最 上   務 他1名 J 第1図 B 、−−−−−−W−−−−−−−−−−−c   
−−−−−−−−−−−一丁−1−−−−−−第2図 第3図 第4−1図 第4−2図 第5図
FIG. 1 is a diagram showing the structure of a keyboard to which the present invention is applied, and FIG. 2 is a time chart explaining the present invention in detail. FIG. 3 is a diagram for further explaining FIG. 1, and is an explanatory diagram of the movement of charges charged in the capacitance generated between each row and the ground. FIG. 4 is a diagram showing what kind of data 5 is required to perform the operation shown in the time chart of FIG. 2, and FIG. 5 is a flowchart showing the operation of the present invention in detail. FIG. 6 is a diagram showing a conventional key scanning method. 30.31.52...Capacity 55.54.55...Output buffer or more Applicant Seiko Epson Co., Ltd. Agent Patent attorney Tsutomu Mogami and 1 other person J Figure 1 B, -------W- -----------c
----------------1-1-----Figure 2 Figure 3 Figure 4-1 Figure 4-2 Figure 5

Claims (1)

【特許請求の範囲】[Claims] 1つの行に対する走査を走査信号を第1の出力レベルに
して行ない、その後所定期間だけ全ての行に対する前記
走査信号を前記第1の出力レベルと反転させ、次に、次
の行に対する走査を前記走査信号を前記第1の出力レベ
ルにして行なうことを特徴とするキースキャン方法。
Scanning one row is performed with the scanning signal at the first output level, then the scanning signals for all rows are inverted from the first output level for a predetermined period, and then the next row is scanned at the first output level. A key scanning method characterized in that the scanning signal is set at the first output level.
JP60283771A 1985-12-17 1985-12-17 Method for scanning key Granted JPS62143118A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60283771A JPS62143118A (en) 1985-12-17 1985-12-17 Method for scanning key

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60283771A JPS62143118A (en) 1985-12-17 1985-12-17 Method for scanning key

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP22227293A Division JPH0743627B2 (en) 1993-08-12 1993-08-12 Input device

Publications (2)

Publication Number Publication Date
JPS62143118A true JPS62143118A (en) 1987-06-26
JPH0457018B2 JPH0457018B2 (en) 1992-09-10

Family

ID=17669904

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60283771A Granted JPS62143118A (en) 1985-12-17 1985-12-17 Method for scanning key

Country Status (1)

Country Link
JP (1) JPS62143118A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06289972A (en) * 1992-08-18 1994-10-18 Fujitsu Ten Ltd Switching state detector
EP1647877A1 (en) * 2004-10-18 2006-04-19 Samsung Electronics Co., Ltd. Apparatus and method for detecting key signals in a mobile communication terminal
CN101807927A (en) * 2010-03-19 2010-08-18 青岛海信电器股份有限公司 Touch key scanning method and system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5878224A (en) * 1981-11-04 1983-05-11 Mitsubishi Electric Corp Key input scanner

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5878224A (en) * 1981-11-04 1983-05-11 Mitsubishi Electric Corp Key input scanner

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06289972A (en) * 1992-08-18 1994-10-18 Fujitsu Ten Ltd Switching state detector
JP2502012B2 (en) * 1992-08-18 1996-05-29 富士通テン株式会社 Switch status detector
EP1647877A1 (en) * 2004-10-18 2006-04-19 Samsung Electronics Co., Ltd. Apparatus and method for detecting key signals in a mobile communication terminal
CN101807927A (en) * 2010-03-19 2010-08-18 青岛海信电器股份有限公司 Touch key scanning method and system

Also Published As

Publication number Publication date
JPH0457018B2 (en) 1992-09-10

Similar Documents

Publication Publication Date Title
US9495928B2 (en) Driving circuit, driving method, display apparatus and electronic apparatus
US4855690A (en) Integrated circuit random number generator using sampled output of variable frequency oscillator
EP0093769B1 (en) Memory security system
JPS6243277B2 (en)
US4538272A (en) Prioritized clock selection circuit
CN106462310B (en) The method of the touch point of touch chip and touch chip detection touch screen
CN106293289A (en) Display drive apparatus and the driving method of touch-control display panel
JPS62143118A (en) Method for scanning key
US4208723A (en) Data point connection circuitry for use in display devices
US5428192A (en) Method and apparatus for finding the location of a pointing instrument on a tablet
US6720946B2 (en) Display device and interface circuit for the display device
CA1049168A (en) Method and apparatus for detecting coordinates of read out positions on a gas discharge panel
US3832685A (en) Data signal recognition apparatus
CA1087768A (en) Writing and erasing in ac plasma displays
US4499460A (en) ROS Control of gas panel
US5045999A (en) Multi-function timing sequencer for different speed main storage units
JPS61177564A (en) Shared storage device
US5949255A (en) Method and apparatus for generating active pulse of desired polarity
JPH06161428A (en) Image-extracting device
RU2024928C1 (en) Computer
JPS60693B2 (en) input device
JPH06167947A (en) Driving method, driving circuit and display device for liquid crystal element or the like
SU736178A1 (en) Device for preservation of information in storage at disconnection of power supply
JPH0125981Y2 (en)
JPS5979383A (en) Tablet inputting device

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term