JPS63228006A - Optical coordinate detector - Google Patents

Optical coordinate detector

Info

Publication number
JPS63228006A
JPS63228006A JP62062161A JP6216187A JPS63228006A JP S63228006 A JPS63228006 A JP S63228006A JP 62062161 A JP62062161 A JP 62062161A JP 6216187 A JP6216187 A JP 6216187A JP S63228006 A JPS63228006 A JP S63228006A
Authority
JP
Japan
Prior art keywords
detection
signal
detection area
memory
comparator
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
JP62062161A
Other languages
Japanese (ja)
Other versions
JPH0575321B2 (en
Inventor
Junichi Ouchi
純一 大内
Hiroaki Sasaki
弘明 佐々木
Kazuo Hasegawa
和男 長谷川
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.)
Alps Alpine Co Ltd
Original Assignee
Alps Electric 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 Alps Electric Co Ltd filed Critical Alps Electric Co Ltd
Priority to JP62062161A priority Critical patent/JPS63228006A/en
Priority to US07/141,118 priority patent/US4959805A/en
Publication of JPS63228006A publication Critical patent/JPS63228006A/en
Publication of JPH0575321B2 publication Critical patent/JPH0575321B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Length Measuring Devices By Optical Means (AREA)

Abstract

PURPOSE:To output a corresponding detection area when input coordinates within the range of a detection area are detected by providing a detection area setting means, a detection area number setting means, and a detection position deciding means. CONSTITUTION:An area and a number are set and stored in a detection area specifying memory 14 and a detection area number memory 16 respectively and when a reset signal (c) is reset, a 1st scanning is performed. A comparison part 5 discriminates whether or not a detection signal (e) is detected by said scanning, a detection position comparator 15 discriminates which detection area range input coordinates corresponding to the signal (e) are in when the signal (e) is detected, and when the coordinates are in the range of some detection area of the memory 14, the corresponding area number is outputted from the memory 16 with a signal (e). When the comparison part 5 does not detect the signal (e), when the comparator 15 decides that the input coordinates corresponding to the signal (e) are within none of the detection areas, or when an error code is detected, a counter circuit 1 is reset with signals (r) and (j) and made to restart counting, thereby repeating the scanning.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、座標入力操作による入力座標が、所定の検出
エリアの範囲にあると対応する検出エリア番号が出力さ
れるようにした光学式座標検出装置に関するものである
Detailed Description of the Invention (Field of Industrial Application) The present invention provides an optical coordinate system that outputs a corresponding detection area number when input coordinates by a coordinate input operation are within a predetermined detection area. This invention relates to a detection device.

(従来の技術) 一般的に光学式座標検出装置は、光源とこれに対応する
受光素子を複数対配設し、カウンタ回路から出力される
カウンタ値に応じて光源を順次駆動してスキャンさせ、
座標入力操作により光路が遮断されて対応する受光素子
が受光できないと検出信号を出力し、この検出信号に対
応するカウンタ値が入力座標として検出される。なお、
X−Y座標で座標検出を行う装置は、X軸方向およびY
軸方向に、光源とこれに対応する受光素子が複数対配設
される。
(Prior Art) In general, an optical coordinate detection device includes a plurality of pairs of light sources and corresponding light receiving elements, and scans by sequentially driving the light sources in accordance with a counter value output from a counter circuit.
When the optical path is blocked by the coordinate input operation and the corresponding light receiving element cannot receive light, a detection signal is output, and a counter value corresponding to this detection signal is detected as the input coordinate. In addition,
A device that performs coordinate detection using X-Y coordinates is
A plurality of pairs of light sources and corresponding light receiving elements are arranged in the axial direction.

そして、従来の光学式座標検出装置にあっては、−回の
スキャンが終了する毎に、入力座標または座標入力がな
されなかったことを示す未検出コードがホストコンピュ
ータへ出力される。
In the conventional optical coordinate detection device, each time the -th scan is completed, an input coordinate or an undetected code indicating that no coordinate input has been made is output to the host computer.

そして、ホストコンピュータにおいて、入力座標がいか
なる検出エリアの範囲にあるかが判別され、検出エリア
に対応するメニュー動作が実行される。
Then, in the host computer, it is determined which detection area the input coordinates fall within, and a menu operation corresponding to the detection area is executed.

(発明が解決しようとする問題点) ところで、一般的にメニュー動作が実行される検出エリ
アが、検出装置の全ての入力座標に設定されることはな
く、部分的に設定されている。
(Problems to be Solved by the Invention) Generally, the detection area in which a menu operation is executed is not set at all the input coordinates of the detection device, but only partially.

そこで、−回のスキャンで検出された入力座標がホスト
コンピュータに出力され、この入力座標が設定された検
出エリアの範囲にないと判断されたとすれば、ホストコ
ンピュータはこの判断処理を行うために無駄に用いられ
たこととなる。また、入力座標がいかなる検出エリアの
範囲にあるかホストコンピュータで判断するために、ホ
ストコンピュータの判断処理時間を多く必要とする。
Therefore, if the input coordinates detected in - scans are output to the host computer and it is determined that these input coordinates are not within the set detection area, the host computer will waste time performing this determination process. It is said that it was used in Furthermore, in order for the host computer to determine which detection area the input coordinates fall within, a large amount of time is required for the host computer to process the determination.

このように従来の光学式座標検出装置にあっては、ホス
トコンピュータに与える負担が大きく、占有する時間が
多い。このために、ホストコンピュータが兼用される他
の用途に使用できる時間が少なくなり、ホストコンピュ
ータの使用効率が悪いという問題点があった。
As described above, the conventional optical coordinate detection device places a heavy burden on the host computer and occupies a large amount of time. As a result, there is a problem in that the time available for the host computer to be used for other purposes is reduced, resulting in poor usage efficiency of the host computer.

本発明の目的は、上記した従来の光学式座標検出装置の
問題点を解決するためになされたもので、座標入力操作
による入力座標がいずれかの検出エリアの範囲にあると
これに対応した検出エリア番号が出力されるようにした
光学式座標検出装置を提供することにある。
An object of the present invention is to solve the problems of the conventional optical coordinate detection device described above. An object of the present invention is to provide an optical coordinate detection device that outputs an area number.

(問題点を解決するための手段) かかる目的を達成するために、本発明の光学式座標検出
装置は、光源とこれに対応する受光素子を複数対配設し
、カウンタ回路から出力されるカウンタ値に応じて前記
光源を順次駆動してスキャンさせ、座標入力操作により
光路が遮断されて対応する受光素子が受光できないと検
出信号を出力して前記カウンタ値に対応する入力座標が
出力される光学式座標検出装置において、複数の検出エ
リアを設定する検出エリア設定手段と、前記検出エリア
に対応する検出エリア番号を設定する検出エリア番号設
定手段と、前記検出信号に応じた入力座標がいずれの前
記検出エリアの範囲にあるか判別する検出位置判別手段
と、を備え、前記検出エリアの範囲にある入力座標が検
出されると前記検出エリア番号設定手段から対応する検
出エリア番号を出力するように構成されている。
(Means for Solving the Problems) In order to achieve the above object, the optical coordinate detection device of the present invention includes a plurality of pairs of light sources and light receiving elements corresponding thereto, and a counter output from a counter circuit. The light source is sequentially driven and scanned according to the value, and when the optical path is blocked by the coordinate input operation and the corresponding light receiving element cannot receive light, a detection signal is output and the input coordinates corresponding to the counter value are output. In the type coordinate detection device, a detection area setting means for setting a plurality of detection areas, a detection area number setting means for setting a detection area number corresponding to the detection area, and a detection area number setting means for setting a detection area number corresponding to the detection area; detection position determination means for determining whether the input coordinates are within the range of the detection area, and configured to output a corresponding detection area number from the detection area number setting means when input coordinates within the range of the detection area are detected. has been done.

(作用) 検出信号が検出されると、入力座標がいずれの検出エリ
アの範囲にあるか判別され、該当する検出エリア番号が
出力される。そして、検出された入力座標がいずれの検
出エリアの範囲にもないならば、何にも出力されない。
(Operation) When a detection signal is detected, it is determined which detection area the input coordinates fall within, and the corresponding detection area number is output. If the detected input coordinates are not within the range of any detection area, nothing is output.

(実施例) 以下、本発明の実施例を第1図ないし第3図を参照して
説明する。第1図は、本発明の光学式座標検出装置の一
実施例のブロック回路図であり、第2図は、第1図の比
較部のブロック回路図であり、第3図は、全体の動捧を
説明するフローチャートである。
(Example) Hereinafter, an example of the present invention will be described with reference to FIGS. 1 to 3. FIG. 1 is a block circuit diagram of an embodiment of the optical coordinate detection device of the present invention, FIG. 2 is a block circuit diagram of the comparing section of FIG. 1, and FIG. It is a flowchart explaining the dedication.

まず、第1図により全体の構造を説明する。第1図にお
いて、ホストコンピュータからクロック信号aがカウン
タ回路1に与えられ、このカウンタ回路1のカウンタ値
すが切換器2とパルス発生器3と座標検出部4および比
較部5に与えられる。また、ホストコンピュータからリ
セット信号Cがカウンタ回路1と比較部5と検出開始座
標メモリ6および連続カウンタ回路7に与えられる。
First, the overall structure will be explained with reference to FIG. In FIG. 1, a clock signal a is applied from a host computer to a counter circuit 1, and a counter value of this counter circuit 1 is applied to a switch 2, a pulse generator 3, a coordinate detector 4, and a comparator 5. Further, a reset signal C is applied from the host computer to the counter circuit 1, the comparator 5, the detection start coordinate memory 6, and the continuous counter circuit 7.

そして、パルス発生器3から駆動信号dが座標検出部4
に与えられ、検出信号eが増幅回路8を介して比較部5
に与えられる。さらに、カウンタ回路1のカウンタ値が
切換器2を介して検出開始座標メモリ6に与えられ、こ
の検出開始座標メモリ6で記憶されたカウンタ値fが加
算器9に与えられる。また、連続カウンタ回路7のカウ
ンタ値gが1/2倍の除算器18を介して加算器9に与
えられる。この加算器9の演算値りは、切換器10を介
して検出座標メモリ11に与えられ、コードに変換され
るとともに記憶される。また、エラーコードメモリ12
よりエラーコードが切換器13を介して検出座標メモリ
11に与えられて記憶される。モして、検出座標メモリ
11に記憶された内容と検出エリア設定手段たる検出エ
リア指定メモリ14の内容が検出位置判別手段たる検出
位置比較器15に与えられ、この検出位置比較器15か
ら信号iが検出エリア番号設定手段たる検出エリア番号
メモリ16に与えられ、信号jがカウンタ回路1に与λ
られる。そして、検出エリア番号メモリ16から出力制
御部17に信号kが与えられる。なお、ホストコンピュ
ータから出力制御信号2が出力制御部17に与えられ、
出力データmがホストコンピュータに与えられる。さら
に、比較部5から信号nが比較器2に、信号Oが連続カ
ウンタ回路7に、信号pが切換器1′0と検出位置比較
器15に、信号qが切換器I3と検出位置比較器15に
それぞれ与えられる。なお、検出エリア指定メモリ11
には、予め複数の検出エリアが指定記憶され、検出エリ
ア番号メモリ16には、予め検出エリアに対応する検出
エリア番号が設定記憶される。
Then, the drive signal d from the pulse generator 3 is transmitted to the coordinate detection section 4.
The detection signal e is sent to the comparator 5 via the amplifier circuit 8.
given to. Further, the counter value of the counter circuit 1 is applied to the detection start coordinate memory 6 via the switch 2, and the counter value f stored in the detection start coordinate memory 6 is applied to the adder 9. Further, the counter value g of the continuous counter circuit 7 is provided to the adder 9 via a 1/2 divider 18. The calculated value of the adder 9 is applied to the detected coordinate memory 11 via the switch 10, where it is converted into a code and stored. Also, the error code memory 12
The error code is then given to the detected coordinate memory 11 via the switch 13 and stored therein. Then, the contents stored in the detection coordinate memory 11 and the contents of the detection area designation memory 14, which is a detection area setting means, are given to a detection position comparator 15, which is a detection position determination means, and from this detection position comparator 15, a signal i is given to the detection area number memory 16, which is a detection area number setting means, and the signal j is given to the counter circuit 1.
It will be done. Then, a signal k is given from the detection area number memory 16 to the output control section 17. Note that the output control signal 2 is given to the output control section 17 from the host computer,
Output data m is given to the host computer. Furthermore, the signal n from the comparator 5 is sent to the comparator 2, the signal O is sent to the continuous counter circuit 7, the signal p is sent to the switch 1'0 and the detection position comparator 15, and the signal q is sent to the switch I3 and the detection position comparator 15. 15 each. In addition, the detection area specification memory 11
A plurality of detection areas are specified and stored in advance, and detection area numbers corresponding to the detection areas are set and stored in the detection area number memory 16 in advance.

次に、第2図により比較部5を説明する。第2図におい
て、検出信号eが検出有無比較器31に与えられ、検出
信号eが存在すれば検出開始比較器32に信号Sが与え
られ、存在しなければ連続フラグメモリ33に信号tが
与えられる。そして、検出開始比較器32は、検出開始
フラグメモリ34がリセット状態であるかセット状態で
あるかを判別し、リセット状態であれば、検出開始フラ
グメモリ34および連続フラグメモリ33をセット状態
とし、単独カウンタ35を1だけインクリメントすると
ともに切換器2を一時的に閉成する信号nが出力され、
セット状態であれば連続検出比較器36に信号Uが与え
られる。この信号Uが与えられた連続検出比較器36は
連続フラグメモリ33がリセット状態であるかセット状
態であるかを判別し、リセット状態であれば単独カウン
タ35を1だけインクリメントし、セット状態であれば
連続カウンタ回路7に信号0を与える。
Next, the comparing section 5 will be explained with reference to FIG. In FIG. 2, a detection signal e is given to a detection presence/absence comparator 31, and if the detection signal e exists, a signal S is given to the detection start comparator 32, and if not, a signal t is given to the continuous flag memory 33. It will be done. Then, the detection start comparator 32 determines whether the detection start flag memory 34 is in the reset state or the set state, and if it is in the reset state, sets the detection start flag memory 34 and the continuous flag memory 33 in the set state, A signal n is output that increments the individual counter 35 by 1 and temporarily closes the switch 2.
In the set state, a signal U is given to the continuous detection comparator 36. The continuous detection comparator 36 to which this signal U is applied determines whether the continuous flag memory 33 is in a reset state or a set state, and if it is in a reset state, it increments the individual counter 35 by 1; For example, a signal 0 is given to the continuous counter circuit 7.

また、スキャン終了カウンタ値メモリ37に予め一回の
スキャンを終了するカウンタ値が記憶されており、この
スキャン終了カウンタ値Vがスキャン終了比較器38に
与えられる。このスキャン終了比較器38にはカウンタ
値すが与えられ、スキャン終了カウンタ値Vとカウンタ
値すが一致するとエラー未検出比較器39に信号Wを与
える。そして、信号Wを与えられたエラー未検出比較器
39は、単独カウンタ35のカウンタ値Xが// 0 
//であれば信号rをカウンタ回路1に与え、また〃1
〃であれば信号pを加算N9に接続される切換器IOと
単独カウンタ35および検出位置比較器15に、ざらに
〃2以上〃であわば信号qをエラーコードメモリ12に
接続される切換器13と単独カウンタ35および検出位
置比較器15にそわぞれに与える。なお、リセット信号
Cが検出開始フラグメモリ34および単独カウンタ35
に与えられる。
Further, the scan end counter value memory 37 stores in advance a counter value for ending one scan, and this scan end counter value V is given to the scan end comparator 38. This scan end comparator 38 is given a counter value S, and when the scan end counter value V and the counter value S match, a signal W is given to an error non-detection comparator 39. Then, the error non-detection comparator 39 supplied with the signal W determines that the counter value X of the independent counter 35 is // 0
//If the signal r is given to the counter circuit 1, and 〃1
If it is 2 or more, the signal p is added to the switch IO connected to the addition N9, the independent counter 35 and the detection position comparator 15, and if it is roughly 2 or more, the signal q is added to the switch connected to the error code memory 12. 13, a single counter 35, and a detected position comparator 15, respectively. Note that the reset signal C is applied to the detection start flag memory 34 and the independent counter 35.
given to.

かかる構成の動作は次のとおりである。リセット信号C
が解除されると、カウンタ回路1はカウントを開始する
とともに座標検出部4で光源が順次に駆動されてスキャ
ンが開始される。そして、座標入力操作がなされて座標
検出部4から最初の検出信号eが比較部5に与えられる
と、検出有無比較器31が信号Sを出力して検出開始比
較器32を動作させる。ここで、検出開始フラグメモリ
34はリセット状態にあり、信号nが出力されて検出開
始フラグメモリ34と連続フラグメモリ33がセット状
態とされ、単独カウンタ35がインクリメントされて〃
1〃となり、切換器2が一時的に閉成されてカウンタ回
路1のカウンタ値が検出開始座標メモリ6に記憶される
。1回のスキャンで続いて検出信号eが比較部5に与え
られると、検出開始比較部32は検出開始フラグメモリ
34がセット状態にあるので、連続検出比較器36に信
号Uを与えて動作させる。この連続検出比較器36は、
連続フラグメモリ33がセット状態にあるので、信号0
を連続カウンタ回路7に与える。この信号0は、検出信
号eが連続して比較部5に与えられると、連続する個数
−1だけ連続カウンタ回路7に与えられてカウントされ
る。
The operation of such a configuration is as follows. Reset signal C
When this is released, the counter circuit 1 starts counting, and the light sources are sequentially driven in the coordinate detection section 4 to start scanning. Then, when the coordinate input operation is performed and the first detection signal e is provided from the coordinate detection section 4 to the comparison section 5, the detection presence/absence comparator 31 outputs the signal S to operate the detection start comparator 32. Here, the detection start flag memory 34 is in a reset state, the signal n is output, the detection start flag memory 34 and the continuous flag memory 33 are set, and the individual counter 35 is incremented.
1, the switch 2 is temporarily closed, and the counter value of the counter circuit 1 is stored in the detection start coordinate memory 6. When the detection signal e is continuously given to the comparator 5 in one scan, the detection start comparator 32 supplies the signal U to the continuous detection comparator 36 to operate it, since the detection start flag memory 34 is in the set state. . This continuous detection comparator 36 is
Since the continuous flag memory 33 is in the set state, the signal 0
is given to the continuous counter circuit 7. When the detection signal e is continuously applied to the comparator 5, this signal 0 is applied to the continuous counter circuit 7 and counted by the number of consecutive signals minus 1.

ここで、検出信号eが一回のスキャンで比較部5に与え
られなければ、単独カウンタ35は〃0〃のままである
。また、検出信号eが1個だけ与えられると、単独カウ
ンタ35は〃1〃となり連続検出比較器36から信号0
は出力されない。そして、−回のスキャンで検出信号e
が一度中断して2度以上比較部5に与えられると、一度
目の検出信号eが中断した際に、検出有無比較器31か
ら信号tが連続フラグメモリ33に与えられてリセット
状態とするので、次の検出信号eにより連続検出比較器
36から単独カウンタ35にインクリメントする信号が
与えられ、単独カウンタ35は〃2以上〃の値となる。
Here, if the detection signal e is not given to the comparator 5 in one scan, the independent counter 35 remains at 0. Further, when only one detection signal e is given, the independent counter 35 becomes 1, and the signal 0 is output from the continuous detection comparator 36.
is not output. Then, after − scans, the detection signal e
When the detection signal e is interrupted once and is given to the comparator 5 twice or more, when the first detection signal e is interrupted, the signal t is given from the detection presence/absence comparator 31 to the continuous flag memory 33 to set it in a reset state. , the next detection signal e provides an incrementing signal from the continuous detection comparator 36 to the individual counter 35, and the individual counter 35 takes on a value of 2 or more.

そして、−回のスキャンが終了して信号Wがエラー未検
出比較器39に与えられると、単独カウンタ35のカウ
ンタ値に対応する信号p、q、rのいずれか1つが出力
される。
When the -th scan is completed and the signal W is applied to the error undetected comparator 39, one of the signals p, q, and r corresponding to the counter value of the independent counter 35 is output.

ところで、検出開始座標メモリ6に記憶されたカウンタ
値fをA、検出信号eの連続個数をNとすれば連続カウ
ンタ回路7のカウンタ値gは(N−1)であり、加算器
9の演算値りをBとすれば、 となり、少数点景下を四捨五入等することで、検出信号
eが連続して得られた入力座標の平均値が光源および受
光素子の配列されたピッチの精度で算出される。
By the way, if the counter value f stored in the detection start coordinate memory 6 is A and the number of consecutive detection signals e is N, then the counter value g of the continuous counter circuit 7 is (N-1), and the calculation of the adder 9 is If the value is B, then by rounding off the decimal point, etc., the average value of the input coordinates from which the detection signal e is continuously obtained can be calculated with the accuracy of the pitch at which the light source and light receiving element are arranged. be done.

そして、単独カウンタ35のカウンタ値が〃1〃でエラ
ー未検出比較器39から信号pが出力されると、切換器
10の閉成により、演算値りが検出座標メモリ11に与
えられ、コード化されて記憶される。さらに、この演算
値りが検出エリア指定メモリ14に設定されたいずわの
検出エリアの範囲に該当するか検出位置比較器15で判
別される。そして、演算値りがいずれかの検出エリアの
範囲にあると判別されると、信号iが出力されて検出エ
リア番号メモリ16から該当する検出エリア番号が読み
出され、信号kにより出力制御部17に与えられる。こ
の検出エリア番号がホストコンピュータからの出力制御
信号1によって出力データmとして読み出し出力される
。また、加算器9から検出座標メモリ11に与えられた
演算値りがいずれの検出エリアの範囲にもないと検出位
置比較器15で判別されると、信号jが出力されてカウ
ンタ回路1がリセットされ再度カウントが開始されて次
のスキャンが行われる。
Then, when the counter value of the individual counter 35 is 1 and the signal p is output from the error undetected comparator 39, the switching device 10 is closed, and the calculated value is given to the detected coordinate memory 11 and encoded. is recorded and memorized. Further, a detection position comparator 15 determines whether this calculated value corresponds to the range of the detection area set in the detection area designation memory 14. When it is determined that the calculated value is within the range of one of the detection areas, a signal i is output and the corresponding detection area number is read out from the detection area number memory 16, and a signal k is used to read out the corresponding detection area number from the output control section 17. given to. This detection area number is read out as output data m by an output control signal 1 from the host computer. Further, when the detection position comparator 15 determines that the calculated value given from the adder 9 to the detection coordinate memory 11 is not within the range of any detection area, a signal j is output and the counter circuit 1 is reset. The count starts again and the next scan is performed.

また、単独カウンタ35のカウンタ値が〃2以上〃でエ
ラー未検出比較器39から信号qが出力されると、切換
器13の閉成によりエラーコードが検出座標メモリ11
に与えられて記憶される。さらに、このエラーコードが
検出位置比較器15で検出エリアと比較されるが、エラ
ーコードが検出エリアに該当することはなく、信号jが
出力される。
Further, when the counter value of the individual counter 35 is 2 or more and the signal q is output from the error undetected comparator 39, the error code is transferred to the detected coordinate memory 11 by closing the switch 13.
given and memorized. Further, this error code is compared with the detection area by the detection position comparator 15, but the error code does not correspond to the detection area and the signal j is output.

そして、この信号jで次のスキャンが行われる。Then, the next scan is performed using this signal j.

なお、信号p、qにより単独カウンタ35はリセットさ
れて次のスキャンに備えられる。
Note that the individual counter 35 is reset by the signals p and q to prepare for the next scan.

さらに、単独カウンタ35のカウンタ値が〃0〃でエラ
ー未検出比較器39から信号rが出力されると、この信
号rでカウンタ回路1がリセットされるとともにカウン
トが開始され、次のスキャンが行われる。
Furthermore, when the counter value of the individual counter 35 is 0 and the signal r is output from the error undetected comparator 39, the counter circuit 1 is reset by this signal r and counting is started, and the next scan is started. be exposed.

上記のごとく、本発明の光学式座標検出装置の動作は、
予め検出エリア指定メモリ14と検出エリア番号メモリ
16にそれぞれ検出エリアと検出エリア番号を設定記憶
しく第3図ステップ■)、リセット信号Cが解除される
と1回目のスキャンを行う(第3図ステップ■)。そし
て、このスキャンにより検出信号eが検出されたか否か
を比較部5で判別しく第3図ステップ■)、検出されな
けわば信号rによりカウンタ回路1をリセットするとと
もに再度カウントを開始させてスキャン(第3図ステッ
プ■)を繰り返す。また、検出信号eが検出されると、
この検出信号eに対応する入力座標がいずれかの検出エ
リアの範囲にあるか検出位置比較器15で判別しく第3
図ステップ■)、いずれかの検出エリアの範囲にあれば
信号iによ時検出エリア番号メモリ16から該当する検
出エリア番号を出力しく第3図ステップ■)、動作が終
了される。また、検出信号eに対応する入力座標がいず
れの検出エリアの範囲にもなく、またはエラーコードが
検出された場合は、信号jによりカウンタ回路1をリセ
ットするとともに再度カウントを開始させてスキャン(
第3図ステップ■)を繰り返す。
As mentioned above, the operation of the optical coordinate detection device of the present invention is as follows:
Set and store the detection area and detection area number in the detection area designation memory 14 and the detection area number memory 16 in advance (Step 3 in Figure 3), and when the reset signal C is released, perform the first scan (Step 3 in Figure 3). ■). Then, the comparator 5 determines whether or not the detection signal e is detected by this scan (step 3 in FIG. 3). If it is not detected, the counter circuit 1 is reset by the signal r and counting is started again, and the scan is started. Repeat (Step ■ in Figure 3). Moreover, when the detection signal e is detected,
The detection position comparator 15 determines whether the input coordinates corresponding to this detection signal e are within the range of any detection area.
If the detection area is within the range of any detection area, the corresponding detection area number is outputted from the detection area number memory 16 in response to the signal i (step (2) in FIG. 3), and the operation is completed. In addition, if the input coordinates corresponding to the detection signal e are not within the range of any detection area or if an error code is detected, the counter circuit 1 is reset by the signal j and counting is started again to scan (
Repeat step (■) in Figure 3.

なお、上記実施例は、−軸方向にスキャンして座標を検
出する装置を示したものであって、X−Y座標で座標検
出を行うためには、第1図の一点鎖線で囲むブロック回
路を2個設け、一方のブロック回路をX軸座標検出装置
としてスキャンさせ、この一方の装置のスキャンが終了
したらこのブロック回路を非動作とし、つづいて他方の
ブロック回路をY軸座標検出装置としてスキャンさせれ
ば良い。
Note that the above embodiment shows a device that detects coordinates by scanning in the -axis direction, and in order to detect coordinates in the X-Y coordinates, the block circuit surrounded by the dashed line in FIG. Two block circuits are provided, one block circuit is scanned as an X-axis coordinate detection device, and when the scanning of this one device is completed, this block circuit is made inactive, and the other block circuit is scanned as a Y-axis coordinate detection device. Just let it happen.

(発明の効果) 以上説明したように、本発明の光学式座標検出装置によ
れば、座標入力操作がなされていずれかの検出エリアの
範囲にある入力座標が検出されるまで、スキャンを繰り
返し、検出エリアの範囲にある入力座標が検出されると
、該当する検出エリアに対応する検出エリア番号が出力
されるので、ホストコンピュータによる判断処理が従来
のこの種の装置に比較して大幅に軽減され、ホストコン
ピュータを占有する時間が大幅に短くなり、兼用される
他の用途に多くの時間使用できるという優れた効果を奏
する。
(Effects of the Invention) As explained above, according to the optical coordinate detection device of the present invention, scanning is repeated until a coordinate input operation is performed and input coordinates within the range of one of the detection areas are detected. When input coordinates within the detection area are detected, the detection area number corresponding to the corresponding detection area is output, so the judgment processing by the host computer is significantly reduced compared to conventional devices of this type. This has the excellent effect that the time that the host computer is occupied is significantly shortened, allowing more time to be used for other purposes.

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

第1図は、本発明の光学式座標検出装置の一実施例のブ
ロック回路図であり、第2図は、第1図の比較部のブロ
ック回路図であり、第3図は、全体の動作を説明するフ
ローチャートである。 1:カウンタ回路、 4:座標検出部、5:比較部、 11:検出座標メモリ、 14:検出エリア指定メモリ、 15:検出位置比較器、 16:検出エリア番号メモリ。
FIG. 1 is a block circuit diagram of an embodiment of the optical coordinate detection device of the present invention, FIG. 2 is a block circuit diagram of the comparison section of FIG. 1, and FIG. It is a flow chart explaining. 1: Counter circuit, 4: Coordinate detection section, 5: Comparison section, 11: Detection coordinate memory, 14: Detection area specification memory, 15: Detection position comparator, 16: Detection area number memory.

Claims (1)

【特許請求の範囲】[Claims] 光源とこれに対応する受光素子を複数対配設し、カウン
タ回路から出力されるカウンタ値に応じて前記光源を順
次駆動してスキャンさせ、座標入力操作により光路が遮
断されて対応する受光素子が受光できないと検出信号を
出力して前記カウンタ値に対応する入力座標が出力され
る光学式座標検出装置において、複数の検出エリアを設
定する検出エリア設定手段と、前記検出エリアに対応す
る検出エリア番号を設定する検出エリア番号設定手段と
、前記検出信号に応じた入力座標がいずれの前記検出エ
リアの範囲にあるか判別する検出位置判別手段と、を備
え、前記検出エリアの範囲にある入力座標が検出される
と前記検出エリア番号設定手段から対応する検出エリア
番号を出力するように構成したことを特徴とする光学式
座標検出装置。
A plurality of pairs of light sources and corresponding light-receiving elements are arranged, and the light sources are sequentially driven and scanned according to the counter value output from the counter circuit, and the optical path is interrupted by coordinate input operation, and the corresponding light-receiving elements are In an optical coordinate detection device that outputs a detection signal when light cannot be received and outputs input coordinates corresponding to the counter value, there is provided a detection area setting means for setting a plurality of detection areas, and a detection area number corresponding to the detection area. detection area number setting means for setting a detection area number setting means, and detection position determination means for determining in which of the detection areas the input coordinates according to the detection signal are located, and the input coordinates within the range of the detection area are An optical coordinate detection device characterized in that, when detected, the detection area number setting means outputs a corresponding detection area number.
JP62062161A 1987-03-17 1987-03-17 Optical coordinate detector Granted JPS63228006A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP62062161A JPS63228006A (en) 1987-03-17 1987-03-17 Optical coordinate detector
US07/141,118 US4959805A (en) 1987-03-17 1988-01-05 Coordinate detecting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62062161A JPS63228006A (en) 1987-03-17 1987-03-17 Optical coordinate detector

Publications (2)

Publication Number Publication Date
JPS63228006A true JPS63228006A (en) 1988-09-22
JPH0575321B2 JPH0575321B2 (en) 1993-10-20

Family

ID=13192115

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62062161A Granted JPS63228006A (en) 1987-03-17 1987-03-17 Optical coordinate detector

Country Status (1)

Country Link
JP (1) JPS63228006A (en)

Also Published As

Publication number Publication date
JPH0575321B2 (en) 1993-10-20

Similar Documents

Publication Publication Date Title
US4583189A (en) Microprocessor-based scan-mode keying circuit
US4959805A (en) Coordinate detecting device
EP0476478B1 (en) Digital pulse processing device
JPS60207923A (en) Position detector
JPS63228006A (en) Optical coordinate detector
US4779271A (en) Forced error generating circuit for a data processing unit
JPH0627644B2 (en) Optical coordinate detector
JPS63228004A (en) Optical coordinate detector
JPS63228209A (en) Optical coordinate detector
US4437094A (en) System for controlling indicators for switches
JPS6227831A (en) Checking circuit for computing element
JPS63228208A (en) Optical coordinate detector
SU1233193A1 (en) Device for reading graphic information
SU915086A1 (en) Graphic information reading-out device
SU1509961A1 (en) Device for counting and measuring the dimensions of objects
SU1142836A1 (en) Device for processing interruptions
KR900000112B1 (en) Reading method and circuit of keyboard's key inputing
RU1800447C (en) Device for checking parameters
JPS63141102A (en) Input method for microcomputer controller
GB2197168A (en) Pattern input unit
JPH01137825A (en) Photoelectric touch switch
JPS636618A (en) Optical tough panel
JPH0546293A (en) Key input device
JPH01246940A (en) Bus monitoring equipment by token passing system
JPH03252750A (en) Interruption control circuit

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees