JPS63228209A - Optical coordinate detector - Google Patents

Optical coordinate detector

Info

Publication number
JPS63228209A
JPS63228209A JP62062159A JP6215987A JPS63228209A JP S63228209 A JPS63228209 A JP S63228209A JP 62062159 A JP62062159 A JP 62062159A JP 6215987 A JP6215987 A JP 6215987A JP S63228209 A JPS63228209 A JP S63228209A
Authority
JP
Japan
Prior art keywords
detection
coordinate
detection signal
signal
scan
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
JP62062159A
Other languages
Japanese (ja)
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 JP62062159A priority Critical patent/JPS63228209A/en
Priority to US07/141,118 priority patent/US4959805A/en
Publication of JPS63228209A publication Critical patent/JPS63228209A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To reduce a time to occupy a host computer, etc., and to improve the activity efficiency of the host computer, etc., by repeating scan in a device itself, and outputting only an input coordinate detected finally when a coordinate input operation is canceled. CONSTITUTION:A clock signal (a) is supplied from the host computer to a counter circuit 1, and the counter value (b) of the counter circuit 1 is supplied to a pulse generator 3, a coordinate detecting part 4, and a comparison part 5. The coordinate input operation is performed and the scan is repeated until the input coordinate is detected, and when the input coordinate is detected, the storage of a coordinate storing means 17 is rewritten, and the scan is repeated until no more input coordinate is detected. And when no detecting signal is detected by more, the input coordinate detected finally and stored in the coordinate storing means 17 is outputted to the host computer, etc. In such a way, it is possible to reduce the time to occupy the host computer, etc., and to improve the activity efficiency of the host computer, etc., using with another usage in common.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、座標入力操作がなされると、座標入力操作で
検出された最後の入力座標のみが出力されるようにした
光学式座標検出装置に関するものである。
Detailed Description of the Invention (Industrial Application Field) The present invention provides an optical coordinate detection device in which, when a coordinate input operation is performed, only the last input coordinate detected in the coordinate input operation is output. It is related to.

(従来の技術) 一般的に光学式座標検出装置は、光源とこれに対応する
受光素子を所定ピッチで複数対配設し、カウンタ回路か
ら出力されるカウンタ値に応じて光源を順次駆動し、座
標入力操作により光路が遮断されて対応する受光素子が
受光できないと検出信号を出力し、この検出信号に対応
するカウンタ値が入力座標として検出される。なお、X
−Y座標で座標検出を行う装置は、X軸方向およびY幅
方向に、光源とこれに対応する受光素子が複数対配設さ
れる。
(Prior Art) Generally, an optical coordinate detection device has a plurality of pairs of light sources and corresponding light receiving elements arranged at a predetermined pitch, and sequentially drives the light sources according to 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, X
A device that performs coordinate detection using the -Y coordinate includes a plurality of pairs of light sources and corresponding light receiving elements arranged in the X-axis direction and the Y-width direction.

そして、従来の光学式座標検出装置にあフては、−回の
スキャンが終了する毎に検出された入力座標または座標
人力がなされなかフたことを示す未検知コードがホスト
コンピュータ等へ出力される。また、ホストコンピュー
タ等からの信号により次のスキャンが開始される。
In the case of conventional optical coordinate detection devices, an undetected code indicating that the detected input coordinates or coordinates were not inputted manually is output to the host computer etc. every time - scans are completed. Ru. Further, the next scan is started by a signal from a host computer or the like.

(発明が解決しようとする問題点) 上記した従来の光学式座標検出装置にあっては、−回の
スキャンが終了する毎に何んらかの信号が出力され、そ
してスキャンは短時間周期で繰り返されるため、信号を
受は取るとともにスキャンを開始させる信号を出力する
ホストコンピュータ等を占有する時間が多く、他の用途
と兼用するホストコンピュータ等の使用効率が悪いとい
う問題点がある。
(Problems to be Solved by the Invention) In the conventional optical coordinate detection device described above, a certain signal is output every time − scans are completed, and the scans are performed at short intervals. Since this is repeated, the host computer, etc., which receives and receives the signal and outputs the signal to start the scan, is occupied for a long time, resulting in a problem that the host computer, etc., which is used for other purposes, is inefficiently used.

また、入力座標が検出される毎に出力されるので、座標
入力操作が誤ってなされた場合の入力座標も出力される
こととなり、これらの出力を処理するホストコンピュー
タ等の負担が大きいという問題点がある。
In addition, since the input coordinates are output every time they are detected, the input coordinates will also be output if the coordinate input operation is performed incorrectly, resulting in a large burden on the host computer etc. that processes these outputs. There is.

本発明の目的は、上記した従来の光学式座標検出装置の
問題点を解決するためになされたもので、座標入力操作
で検出された最後の入力座標のみが出力されるようにし
た光学式座標検出装置を提供することにある。
An object of the present invention is to solve the problems of the conventional optical coordinate detection device described above, and to provide an optical coordinate system that outputs only the last input coordinate detected in a coordinate input operation. The object of the present invention is to provide a detection device.

(問題点を解決するための手段) かかる目的を達成するために、本発明の光学式座標検出
装置は、光源とこれに対応する受光素子を複数対配設し
、カウンタ回路から出力されるカウンタ値に応じて前記
光源を順次駆動してスキャンさせ、座標入力操作により
光路が遮断されて対応する受光素子が受光できないと検
出信号を出方して前記カウンタ値に対応する入力座標の
検出がなされる光学式座標検出装置において、前記検出
信号の有無を判別する検出有無判別手段と、前記検出信
号に対応する入力座標で書き換え記憶される座標記憶手
段と、スキャンの終了を検出するスキャン終了判別手段
と、前記スキャンにおける前記検出信号の検出を記憶す
る検出信号記憶手段と、眞記スキャン終Y判別手段でス
キャンの終了が検出された際に、前記検出信号記憶手段
に検出信号の検出が記憶されてない状態では、前記カウ
ンタ回路をリセットするとともにカウントを開始させて
スキャンを繰り返させ、前記検出信号記憶手段に検出信
号の検出が記憶された状態で前記検出有無判別手段で検
出信号が検出されると前記座標記憶手段に記憶された入
力座標を書き換え検出されないと、前記座標記憶手段に
記憶されている入力座標を出力させる動作制御手段と、
を備えて構成されている。
(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 coordinate corresponding to the counter value is detected. In the optical coordinate detection device, the detection presence/absence determination means determines the presence or absence of the detection signal, the coordinate storage means rewrites and stores the input coordinates corresponding to the detection signal, and the scan end determination means detects the end of the scan. and a detection signal storage means for storing the detection of the detection signal in the scan, and a detection signal storage means for storing the detection of the detection signal when the end of the scan is detected by the true scan end Y determination means. In the state where the detection signal is not detected, the counter circuit is reset and starts counting to repeat the scan, and the detection signal is detected by the detection presence/absence determination means with the detection signal storage means storing the detection signal. and an operation control means for rewriting the input coordinates stored in the coordinate storage means and outputting the input coordinates stored in the coordinate storage means if the input coordinates are not detected;
It is configured with.

(作用) 座標入力操作がされて入力座標が検出されるまでスキャ
ンを繰り返し、入力座標が検出されると座標記憶手段の
記憶を書き換えて入力座標が検出されなくなるまでスキ
ャンを繰り返し、検出信号の検出がなくなると最後に検
出されて座標記憶手段に記憶されている入力座標をホス
トコンピュータ等に出力する。
(Function) Scanning is repeated until the input coordinates are detected after a coordinate input operation is performed, and when the input coordinates are detected, the memory of the coordinate storage means is rewritten and the scanning is repeated until the input coordinates are no longer detected, and the detection signal is detected. When the input coordinates are exhausted, the input coordinates detected last and stored in the coordinate storage means are outputted to a host computer or the like.

(実施例) 以下、本発明の実施例を第1図および第2図を参照して
説明する。第1図は、本発明の光学式座標検出装置の一
実施例のブロック回路図であり、第2図は、第1図の比
較部のブロック回路図である。
(Example) Hereinafter, an example of the present invention will be described with reference to FIGS. 1 and 2. FIG. 1 is a block circuit diagram of an embodiment of the optical coordinate detection device of the present invention, and FIG. 2 is a block circuit diagram of a comparison section of FIG. 1.

まず、第1図により全体の構造を説明する。第1図にお
いて、ホストコンピュータからクロック信号aがカウン
タ回路1に与えられ、このカウンタ回路1のカウンタ値
すが切換器2とパルス発生器3と座標検出部4および比
較部5に与えられる。また、ホストコンピュータからリ
セット信号Cがカウンタ回路lと比較部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 given 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
に与えられる。さらに、ホストコンピュータから検出精
度切換信号fが4つの連動する切換器9.10.11.
12に与えられる。カウンタ回路1のカウンタ値が切換
器2を介して検出開始座標メモリ6に与えられ、この検
出開始座標メモリ6で記憶されたカウンタ値gが切換器
9を介して直接または2倍の乗算器I3を介して切換器
IOに与えられ、この切換器IOを介して加算器14に
与えられる。また、連続カウンタ回路7のカウンタ値り
は切換器11を介して1/2倍の除算器15を介してま
たは直接に切換器12に与えられ、この切換器12を介
して加算器14に与えられる。この加算器14の演算値
iは、切換器16を介して座標記憶手段である出力コー
ドメモリ17に与えられ、コードに変換されるとともに
記憶される。また、エラーコードメモリ19よりエラー
コードが切換器20を介して出力コードメモリ17に与
えられて記憶される。さらに、出力コードメモリ17の
出力が切換器21を介して出力制御部18に与えられる
。そして、比較部5から信号jが切換器2に、信号kが
連続カウンタ回路7に、信号JZ、m、nがそれぞれ切
換器16、20.21に、信号0がカウンタ回路1に与
えられる。そして、出力制御部18にホストコンピュー
タから出力制御信号pが与えられ、出力データqがホス
トコンピュータに与えられる。
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. Furthermore, a detection accuracy switching signal f is transmitted from the host computer to four interlocking switching switches 9.10.11.
given to 12. 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 g stored in the detection start coordinate memory 6 is applied directly or via the switch 9 to the double multiplier I3. is applied to the switch IO via the switch IO, and is applied to the adder 14 via the switch IO. Further, the counter value of the continuous counter circuit 7 is applied via a switch 11 to a 1/2 divider 15 or directly to a switch 12, and via this switch 12 to an adder 14. It will be done. The calculated value i of the adder 14 is applied to an output code memory 17, which is a coordinate storage means, via a switch 16, where it is converted into a code and stored. Further, an error code is applied from the error code memory 19 to the output code memory 17 via the switch 20 and is stored therein. Furthermore, the output of the output code memory 17 is given to the output control section 18 via the switch 21. Then, from the comparator 5, the signal j is given to the switch 2, the signal k is given to the continuous counter circuit 7, the signals JZ, m, and n are given to the switches 16, 20, 21, respectively, and the signal 0 is given to the counter circuit 1. Then, an output control signal p is given to the output control section 18 from the host computer, and output data q is given to the host computer.

次に、第2図により比較部5を説明する。第2図におい
て、検出信号eが検出有無判別手段である検出有無比較
器31に与えられ、1回のスキャンで検出信号が存在す
れば検出開始比較器32に信号「が与えられ、存在しな
ければ連続フラグメモリ33に信号Sが与えられる。そ
して、検出開始比較器32は、検出開始フラグメモリ3
4がリセット状態であるかセット状態であるかを判別し
、リセット状態であれば、検出開始フラグメモリ34お
よび連続フラグメモリ33をセット状態とし、単独カウ
ンタ35を1だけインクリメントするとともに切換器2
を一時的に閉成する信号jが出力され、セット状態であ
れば連続検出比較器36に信号tが与えられる。この信
号tが与えられた連続検出比較器36は連続フラグメモ
リ33がリセット状態であるかセット状態であるかを判
別し、リセット状態であれば単独カウンタ35を1だけ
インクリメントし、セット状態であれば連続カウンタ回
路7に信号kを与える。
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 which is a means for determining presence/absence of detection, and if a detection signal exists in one scan, a signal "e" is given to a detection start comparator 32; In this case, the signal S is given to the continuous flag memory 33. Then, the detection start comparator 32 inputs the signal S to the continuous flag memory 33.
4 is in a reset state or a set state, and if it is in a reset state, the detection start flag memory 34 and the continuous flag memory 33 are set, the independent counter 35 is incremented by 1, and the switch 2
A signal j that temporarily closes is output, and a signal t is provided to the continuous detection comparator 36 if it is in the set state. The continuity detection comparator 36 to which this signal t 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 k is given to the continuous counter circuit 7.

また、スキャン終了カウンタ値メモリ37に予め一回の
スキャンを終了するカウンタ値が記憶されており、この
スキャン終了カウンタ値Uがスキャン終了比較器38に
与えられる。このスキャン終了比較器38にはカウンタ
値すが与えられ、スキャン終了カウンタ値Uとカウンタ
値すが一致するとエラー未検出比較器39と検出開始フ
ラグメモリ34に信号Vを与える。なお、スキャン終了
カウンタ値メモリ37とスキャン終了比較器38により
、スキャン終了判別手段が形成されている。そして、信
号Vを与えられたエラー未検出比較器39は、単独カウ
ンタ35のカウンタ値Wが〃0〃であれば信号Xを検出
フラグ比較器40に与え、〃1〃であれば信号2を加算
器14に接続される切換器16とカウンタ回路1と単独
カウンタ35および検出フラグメモリ41に与え、〃2
以上〃であれば信号mをエラーコードメモリ19に接続
される切換器20とカウンタ回数1シill I市力六
〜ノ々1ら七トγに論庄7→〃iモリ41に与える。さ
らに、検出フラグ比較器40は、信号Xが与えられたと
きの検出フラグメモリ41の状態で、信号nを切換器2
1に与え、または信号0をカウンタ回路1に与える。こ
の検出フラグメモリ41で検出信号記憶手段が形成され
、単独カウンタ35とエラー未検出比較器39および検
出フラグ比較器40とで動作制御手段が形成されている
。なお、リセット信号Cが検出開始フラグメモリ34お
よび単独カウンタ35に与えられる。
Further, the scan end counter value memory 37 stores in advance a counter value at which one scan ends, and this scan end counter value U is given to the scan end comparator 38. The scan end comparator 38 is given a counter value S, and when the scan end counter value U and the counter value S match, a signal V is given to the error non-detection comparator 39 and the detection start flag memory 34. Note that the scan end counter value memory 37 and the scan end comparator 38 form a scan end determination means. Then, the error undetected comparator 39 to which the signal V is applied gives the signal It is applied to the switch 16 connected to the adder 14, the counter circuit 1, the individual counter 35, and the detection flag memory 41, and
If the above is the case, the signal m is applied to the switch 20 connected to the error code memory 19 and the counter number 1, 7, 7, 7, and 7 to 41. Further, the detection flag comparator 40 outputs the signal n to the switch 2 in the state of the detection flag memory 41 when the signal X is applied.
1 or a signal 0 to the counter circuit 1. The detection flag memory 41 forms a detection signal storage means, and the individual counter 35, the error undetected comparator 39, and the detection flag comparator 40 form an operation control means. Note that the reset signal C is given to the detection start flag memory 34 and the independent counter 35.

かかる構成の動作は次のとおりである。リセット信号C
が解除されると、カウンタ回路1はカウントを開始する
とともに座標検出部4で光源が順次に駆動されてスキャ
ンが開始される。そして、座標入力操作がなされて座標
検出部4から最初の検出信号eが比較部5に与えられる
と、検出有無比較器31が検出開始比較器32を動作さ
せる。ここで、検出開始フラグメモリ34はリセット状
態にあり、信号jが出力されて検出開始フラグメモリ3
4と連続フラグメモリ33がセット状態とされ、単独カ
ウンタ35がインクリメントされて〃1〃となリ、切換
器2が一時的に閉成されてカウンタ回路1のカウンタ値
が検出開始座標メモリ6に記憶される。1回のスキャン
において続いて検出信号eが比較部5に与えられると、
検出開始比較部32は検出開始フラグメモリ34がセッ
ト状態にあるので、連続検出比較器36に信号tを与え
て動作させる。この連続検出比較器36は、連続フラグ
メモリ33がセット状態にあるので、信号kを連続カウ
ンタ回路7に与える。この信号には、検出信号eが連続
して比較部5に与えられると、連続する個数−1だけ連
続カウンタ回路7に与えられてカウントされる。
The operation of such a configuration is as follows. Reset signal C
When the counter circuit 1 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 operates the detection start comparator 32. Here, the detection start flag memory 34 is in a reset state, and the signal j is output and the detection start flag memory 34 is in a reset state.
4 and the continuous flag memory 33 are set, the individual counter 35 is incremented to 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. be remembered. When the detection signal e is continuously given to the comparator 5 in one scan,
Since the detection start flag memory 34 is in the set state, the detection start comparator 32 applies the signal t to the continuous detection comparator 36 to operate it. The continuity detection comparator 36 supplies the signal k to the continuity counter circuit 7 since the continuity flag memory 33 is in the set state. When the detection signal e is continuously applied to the comparator 5, this signal is applied to the continuous counter circuit 7 and counted by the number of consecutive detection signals minus 1.

ここで、検出信号eが一回のスキャンで比較部5に与え
られなければ、単独カウンタ35は〃0〃のままである
。また、検出信号eが1個だけ与えられると、単独カウ
ンタ35は〃1〃となり連続検出比較器36から信号に
は出力されない。そして、−回のスキャンで検出信号e
が一度中断して2度以上比較部5に与えられると、一度
目の検出信号eが中断した際に、検出有無比較器3【か
ら信号Sが連続フラグメモリ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 no signal is output from the continuous detection comparator 36. 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, a signal S from the detection presence/absence comparator 3 is given to the continuous flag memory 33 to set it in a reset state. Therefore, in response to the next detection signal e, an incrementing signal is given from the continuous detection comparator 36 to the single counter 35, and the single counter 35 takes on a value of 2 or more.

ところで、検出精度切換信号fによって、切換器9と1
0を介してカウンタ値gが直接に加算器14に与えられ
るとともに切換器11と12を介してカウンタ値りが除
算器15で1/2倍されて加算器14に与えられると、
検出開始座標メモリ6に記憶されたカウンタ値gをA、
検出信号eの連続個数をN、加算器14の演算値をBと
すれば、連続カウンタ回路7のカウンタ値りは(N−1
)であり、(N−1) B=A+□ となり、小数点以下を四捨五入等することで、検出信号
eが連続して得られた入力座標の平均値が光源および受
光素子の配列されたピッチの精度で算出される。
By the way, according to the detection accuracy switching signal f, the switching devices 9 and 1
0, the counter value g is directly given to the adder 14, and the counter value is multiplied by 1/2 by the divider 15 and given to the adder 14 via the switchers 11 and 12.
The counter value g stored in the detection start coordinate memory 6 is A,
If the number of consecutive detection signals e is N and the calculated value of the adder 14 is B, then the counter value of the continuous counter circuit 7 is (N-1
), and (N-1) B = A + □ By rounding off the decimal point, etc., the average value of the input coordinates from which the detection signal e is continuously obtained is equal to the pitch at which the light source and light receiving element are arranged. Calculated with precision.

また、検出精度切換信号fによって切換器9と10を介
してカウンタ値gが乗算器13で2倍されて加算器14
に与えられるとともに、切換器11と12を介してカウ
ンタ値りが直接に加算器14に与えられると、加算器1
4の演算値をB′とすれば、B’ =2A+ (N−1
) となる。
Further, the counter value g is doubled by the multiplier 13 via the switchers 9 and 10 by the detection accuracy switching signal f, and the counter value g is doubled by the adder 14.
When the counter value is directly applied to the adder 14 via the switches 11 and 12, the adder 1
If the calculated value of 4 is B', then B' = 2A+ (N-1
) becomes.

なお、演算値Bは、光源および受光素子に対応させて、
光源等の配列ピッチで設けた座標であるが、演算値B′
は、光源等の配列ピッチの1/2をピッチとして設けた
座標である。
In addition, the calculated value B corresponds to the light source and the light receiving element,
The coordinates are set at the arrangement pitch of light sources, etc., but the calculated value B'
are coordinates whose pitch is 1/2 of the arrangement pitch of light sources, etc.

ここで、リセット信号Cが解除されて行われるスキャン
に対して、座標入力操作がなされず、検出信号が出力さ
れないと単独カウンタ35は〃0〃であり、スキャン終
了比較器38から信号Vが出力されると、エラー未検出
比較器39は43号Xを検出フラグ比較器40に与える
。なお、信号Vにより検出開始フラグメモリ34はリセ
ットされる。そして、信号Xが与えられた検出フラグ比
較器40は検出フラグメモリ41がリセット状態である
ので信号0をカウンタ回路1に与えてリセットするとと
もにカウントを開始させる。したがって、検出信号が検
出されるまで、スキャンが繰り返される。
Here, for the scan performed after the reset signal C is released, if no coordinate input operation is performed and no detection signal is output, the independent counter 35 is 0, and the scan end comparator 38 outputs the signal V. Then, the error undetected comparator 39 supplies No. 43 X to the detection flag comparator 40. Note that the detection start flag memory 34 is reset by the signal V. Then, since the detection flag memory 41 is in the reset state, the detection flag comparator 40 to which the signal X is applied supplies a signal 0 to the counter circuit 1 to reset it and start counting. Therefore, scanning is repeated until a detection signal is detected.

そして、検出信号が出力されると、単独カウンタ35の
カウンタ値が// 1 //または〃2以上〃となる。
Then, when the detection signal is output, the counter value of the independent counter 35 becomes // 1 // or "2 or more".

ここで、スキャンが終了して信号Vがエラー未検出比較
器39に与えられると、単独カウンタ35のカウンタ値
が〃1〃であれば信号2を出力して、切換器16を一時
的に閉成して加算器14の演算値iを出力コードメモリ
17に記憶させるとともに、単独カウンタ35をリセッ
ト状態とし、検出フラグメモリ41をセット状態とし、
さらにカウンタ回路1をリセットするとともにカウント
を開始させる。同様に、単独カウンタ35のカウンタ値
が〃2以上〃であれば、信号mを出力して、切換器20
を一時的に閉成してエラーコードメモリ19のエラーコ
ードを出力コードメモリ17に記憶させるとともに、単
独カウンタ35をリセット状態とし、検出フラグメモリ
41をセット状態とし、ざらにカウンタ回路1をリセッ
トするとともにカウントを開始させる。そして、スキャ
ン毎に連続して検出信号が検出されると、切換器16.
20のいずれかが一時的に閉成されて出力コードメモリ
17の記憶の書き換えがなされる。
Here, when the scan is completed and the signal V is given to the error non-detection comparator 39, if the counter value of the individual counter 35 is 1, the signal 2 is output and the switch 16 is temporarily closed. and stores the calculated value i of the adder 14 in the output code memory 17, sets the individual counter 35 in a reset state, sets the detection flag memory 41 in a set state,
Further, the counter circuit 1 is reset and counting is started. Similarly, if the counter value of the individual counter 35 is 2 or more, the signal m is output and the switch 20
is temporarily closed and the error code in the error code memory 19 is stored in the output code memory 17, the individual counter 35 is reset, the detection flag memory 41 is set, and the counter circuit 1 is roughly reset. and start counting. When the detection signal is detected continuously for each scan, the switch 16.
20 is temporarily closed and the memory in the output code memory 17 is rewritten.

さらに、スキャンがなされて検出信号が検出されないと
信号Vの与えられたエラー未検出比較器39は信号Xを
検出フラグ比較器40に与え、この検出フラグ比較器4
0は検出フラグメモリ41がリセット状態であるのを判
別して信号nを切換器21に与えて一時的に閉成して出
力コードメモリ17の記憶が出力制御部18に与えられ
る。そして、ホストコンピュータからの出力制御信号p
に応じて出力制御部18から出力データqとしてホスト
コンピュータに与えられる。
Furthermore, if the detection signal is not detected after scanning, the error undetected comparator 39 to which the signal V is applied supplies the signal X to the detection flag comparator 40.
0 determines that the detection flag memory 41 is in a reset state and applies a signal n to the switch 21 to temporarily close it, and the memory in the output code memory 17 is applied to the output control section 18. Then, the output control signal p from the host computer
Accordingly, the output control unit 18 provides the host computer as output data q.

なお、上記実施例は、−軸方向にスキャンして座標を検
出する装置を示したものであって、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@ 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, until a coordinate input operation is performed and after a coordinate input operation is performed until this operation is canceled, The device of the present invention repeats scanning, and when the coordinate input operation is canceled, only the last detected input coordinates are output, so if the input position is correct when the coordinate input operation is canceled, accurate coordinate input can be performed. Can be done. In addition, since no signal is output until a coordinate input operation is performed or after a coordinate input operation is performed and until this operation is canceled, there is less time to occupy the host computer, etc. It has the excellent effect of being able to be used for other purposes for a long time.

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

第1図は、本発明の光学式座標検出装置の一実施例のブ
ロック回路図であり、第2図は、第1図の比較部のブロ
ック回路図である。 1:カウンタ回路、 4:座標検出部、5:比較部、 17:出力コードメモリ、 3I:検出有無比較器、35:単独カウンタ、37:ス
キャン終了カウンタ 38ニスキヤン終了比較器、 39:エラー未検出比較器、 40:検出フラグ比較器、 41:検出フラグメモリ。 特許出願人 アルプス電気株式会社 代理人   弁理士 森 山 哲人 ■
FIG. 1 is a block circuit diagram of an embodiment of the optical coordinate detection device of the present invention, and FIG. 2 is a block circuit diagram of a comparison section of FIG. 1. 1: Counter circuit, 4: Coordinate detection section, 5: Comparison section, 17: Output code memory, 3I: Detection presence/absence comparator, 35: Individual counter, 37: Scan end counter 38 Niscan end comparator, 39: Error not detected Comparator, 40: Detection flag comparator, 41: Detection flag memory. Patent Applicant Alps Electric Co., Ltd. Agent Patent Attorney Tetsuto Moriyama■

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 detects input coordinates corresponding to the counter value by outputting a detection signal when light cannot be received, the apparatus includes a detection presence/absence determining means for determining the presence or absence of the detection signal, and an input corresponding to the detection signal. A coordinate storage means for rewriting and storing the coordinates, a scan end determination means for detecting the end of the scan, a detection signal storage means for storing the detection of the detection signal in the scan, and a scan end determination means for determining the end of the scan. When the detection signal is detected and the detection signal is not stored in the detection signal storage means, the counter circuit is reset and counting is started to repeat the scan, and the detection signal is stored in the detection signal storage means. In the state where the detection is stored, when the detection signal is detected by the detection presence/absence determining means, the input coordinates stored in the coordinate storage means are rewritten, and when the detection signal is not detected, the input coordinates stored in the coordinate storage means are output. An optical coordinate detection device characterized by comprising: operation control means for controlling.
JP62062159A 1987-03-17 1987-03-17 Optical coordinate detector Pending JPS63228209A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP62062159A JPS63228209A (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
JP62062159A JPS63228209A (en) 1987-03-17 1987-03-17 Optical coordinate detector

Publications (1)

Publication Number Publication Date
JPS63228209A true JPS63228209A (en) 1988-09-22

Family

ID=13192053

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62062159A Pending JPS63228209A (en) 1987-03-17 1987-03-17 Optical coordinate detector

Country Status (1)

Country Link
JP (1) JPS63228209A (en)

Similar Documents

Publication Publication Date Title
US4583189A (en) Microprocessor-based scan-mode keying circuit
US4149256A (en) Analog signal processing system
US5764045A (en) Frequency measuring apparatus
US4959805A (en) Coordinate detecting device
JPS60207923A (en) Position detector
JPS63228209A (en) Optical coordinate detector
JPS63228005A (en) Optical coordinate detector
JPS63228006A (en) Optical coordinate detector
JPS63228004A (en) Optical coordinate detector
JP2549809Y2 (en) Multi-optical axis photoelectric switch device
JPS63228208A (en) Optical coordinate detector
RU2106677C1 (en) Automatic system for monitoring characteristics of electronic circuits
SU1509961A1 (en) Device for counting and measuring the dimensions of objects
SU1142836A1 (en) Device for processing interruptions
SU1709297A2 (en) Device for multiplication of halua fields arbitrary members
JPS6110231Y2 (en)
KR900000112B1 (en) Reading method and circuit of keyboard's key inputing
SU1304028A2 (en) Device for visual monitoring of program execution
SU935962A1 (en) Time interval meter
SU1620950A1 (en) Programmable device for tolerance inspection
SU746529A1 (en) Device for analysis of information sequence
JPH0546293A (en) Key input device
SU1718252A1 (en) Device for reading graphic information
GB2197168A (en) Pattern input unit
SU737943A1 (en) Information input arrangement