JPH0594260A - Coordinate input device - Google Patents

Coordinate input device

Info

Publication number
JPH0594260A
JPH0594260A JP3278958A JP27895891A JPH0594260A JP H0594260 A JPH0594260 A JP H0594260A JP 3278958 A JP3278958 A JP 3278958A JP 27895891 A JP27895891 A JP 27895891A JP H0594260 A JPH0594260 A JP H0594260A
Authority
JP
Japan
Prior art keywords
value
threshold value
ball
input device
housing
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
JP3278958A
Other languages
Japanese (ja)
Other versions
JP3155579B2 (en
Inventor
Kinya Inoue
欣也 井上
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 JP27895891A priority Critical patent/JP3155579B2/en
Publication of JPH0594260A publication Critical patent/JPH0594260A/en
Application granted granted Critical
Publication of JP3155579B2 publication Critical patent/JP3155579B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Position Input By Displaying (AREA)

Abstract

PURPOSE:To accurately shape the waveform of an output pulse from a photointerrupter without being affected by noise while saving handling time for adjusting the amplitude. CONSTITUTION:An output pulse PS from the photointerrupter is compared with a threshold value SL1 by a comparator 4 and binarized. A comparator 5 generates a gate pulse GP at a level 'H' when the output pulse PS is larger than a threshold value SL2, and during this pulse period, a clock CLK is passed through an AND gate 7 and counted up by a U/D counter 8. The count value of the U/D counter 8 is converted by a D/A converter 9 and turned to the threshold value SL2. The edge of an output pulse PS' from the comparator 4 is detected by an edge detector 6, and an edge pulse EG is counted down by the U/D counter 8. Thus, the peak value of the pulse PS is held in the U/D counter 8. The threshold value SL1 is formed by potential-dividing the threshold value SL2 at a potential divider 10.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、パーソナルコンピュー
タ等に用いられる表示装置でのカーソルの位置座標デー
タ等を入力するための座標入力装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a coordinate input device for inputting cursor position coordinate data and the like on a display device used in a personal computer or the like.

【0002】[0002]

【従来の技術】表示装置でのカーソルの位置座標データ
や図形データの座標入力装置として、ボール(球体)を
備え、該ボールを回転させることにより、表示画面での
カーソルの表示位置を任意に変化させることができるよ
うにしたものが知られている。
2. Description of the Related Art A ball (sphere) is provided as a coordinate input device for cursor position coordinate data and graphic data on a display device, and by rotating the ball, the display position of the cursor on the display screen can be arbitrarily changed. It is known that it is possible to do.

【0003】図4はかかる座標入力装置の一例を示す分
解斜視図である。同図において、ハウジング100には
取付け部材が形成されており、これにより、ハウジング
100の略中央部に設けられているくぼみ部100aの
縁に、互いに直交するように2つの回転体101X,1
01Yが回転可能に取り付けられる。回転体101Xは
シャフト102Xと、その略中央部に固定されたローラ
103Xと、その端部に固定されたチョッパ104Xと
から構成されている。チョッパ104Xには複数個のス
リットが設けられている。回転体101Yもシャフト1
02Y、ローラ103Y、チョッパ104Yからなり、
回転体101Xと同じ構成をなしている。
FIG. 4 is an exploded perspective view showing an example of such a coordinate input device. In the figure, a mounting member is formed on the housing 100, so that the two rotating bodies 101X, 1 are arranged so as to be orthogonal to each other at the edge of the recessed portion 100a provided at the substantially central portion of the housing 100.
01Y is rotatably attached. The rotating body 101X is composed of a shaft 102X, a roller 103X fixed to a substantially central portion thereof, and a chopper 104X fixed to an end portion thereof. The chopper 104X is provided with a plurality of slits. Rotating body 101Y also has shaft 1
02Y, roller 103Y, chopper 104Y,
It has the same configuration as the rotating body 101X.

【0004】ハウジング100のくぼみ部100aに
は、ボール109が任意に回転可能に嵌め込まれ、その
上からハウジング100に環状のカバー110に取り付
けられる。このようにボールがくぼみ部100aに嵌め
込まれると、回転体101X,101Yのローラ103
X,103Yがこのボール面に圧接される。従って、ボ
ールが回転すると、その回転方向にもよるが、ローラ1
03X,103Yが回転してチョッパ104X,104
Yも回転する。
A ball 109 is arbitrarily rotatably fitted into the hollow portion 100a of the housing 100, and is attached to an annular cover 110 of the housing 100 from above. When the ball is thus fitted into the hollow portion 100a, the rollers 103 of the rotating bodies 101X and 101Y are
X and 103Y are pressed against this ball surface. Therefore, when the ball rotates, the roller 1
03X and 103Y rotate and choppers 104X and 104
Y also rotates.

【0005】かかるハウジング100は基板105上に
載置されて固定される。この基板105上には、フォト
インタラプタ106X,106Y、制御回路107、出
力端子108等が搭載されている。フォトインタラプタ
106Xは互いに対向した2つの突出部を有し、一方の
突出部に2つの発光素子が、他方の突出部にこれら発光
素子に対向して2つの受光素子が夫々設けられ、一方の
受光素子が一方の発光素子からの光を、他方の受光素子
が他方の発光素子からの光を夫々受けるようにしてい
る。フォトインタラプタ106Yもこれと同じ構成をな
している。
The housing 100 is placed and fixed on the substrate 105. On this substrate 105, photo interrupters 106X and 106Y, a control circuit 107, an output terminal 108, etc. are mounted. The photo interrupter 106X has two projecting portions facing each other, and one projecting portion is provided with two light emitting elements, and the other projecting portion is provided with two light receiving elements facing these light emitting elements. The element receives light from one light emitting element and the other light receiving element receives light from the other light emitting element. The photo interrupter 106Y also has the same configuration.

【0006】ハウジング100が基板105に取付けら
れ、ハウジング100内に回転体101X,101Yが
取付けられると、回転体101Xのチョッパ104Xの
一部がフォトインタラプタ106Xの2つの突出部の間
に入り込み、同様に、回転体101Yのチョッパ104
Yの一部がフォトインタラプタ106Yの2つの突出部
の間に入り込む。このようにして組み立てられた座標入
力装置を図5に示す。これから明らかなように、ボール
109の一部がカバー110から外部に突出している。
これにより、外部からボール109を回転させることが
できる。
When the housing 100 is mounted on the substrate 105 and the rotating bodies 101X and 101Y are mounted in the housing 100, a part of the chopper 104X of the rotating body 101X enters between the two protruding portions of the photo interrupter 106X, and The chopper 104 of the rotating body 101Y
A part of Y enters between the two protruding portions of the photo interrupter 106Y. The coordinate input device assembled in this manner is shown in FIG. As is apparent from this, a part of the ball 109 is projected from the cover 110 to the outside.
This allows the ball 109 to be rotated from the outside.

【0007】そこで、図6に示すように、フォトインタ
ラプタ106Xでは、2つの発光素子と2つの受光素子
との間にチョッパ104Xの一部が入り込み、フォトイ
ンタラプタ106Yでも、2つの発光素子と2つの受光
素子との間にチョッパ104Yの一部が入り込む。
Therefore, as shown in FIG. 6, in the photo interrupter 106X, a part of the chopper 104X is inserted between the two light emitting elements and the two light receiving elements, and the photo interrupter 106Y also has two light emitting elements and two light emitting elements. A part of the chopper 104Y enters between the light receiving element and the light receiving element.

【0008】ボール109が回転してチョッパ104X
が回転すると、フォトインタラプタ106Xでの2つの
受光素子からこのチョッパ104Xの回転速度に応じた
周波数のパルス信号が得られるが、これらパルス信号間
に90°の位相差があるように、チョッパ104Xのス
リットが形成されている。このようにしてフォトインタ
ラプタ106Xから2相のパルス信号が得られるが、こ
れらの一方をXA相、他方をXB相としている。フォト
インタラプタ106Yについても同様であり、チョッパ
104Yの回転により、90°の位相差のYA相、YB
相のパルス信号が得られる。
The ball 109 rotates to rotate the chopper 104X.
When is rotated, a pulse signal having a frequency corresponding to the rotation speed of the chopper 104X is obtained from the two light receiving elements of the photo interrupter 106X. The chopper 104X has a phase difference of 90 ° between these pulse signals. A slit is formed. In this way, two-phase pulse signals are obtained from the photo interrupter 106X, one of them being the XA phase and the other being the XB phase. The same applies to the photo interrupter 106Y, and the rotation of the chopper 104Y causes the YA phase and the YB phase having a phase difference of 90 °.
A phase pulse signal is obtained.

【0009】いま、回転体101Xのみを回転させるよ
うなボール109の回転方向をX方向とし、回転体10
1Yのみを回転させるボール109の回転方向をY方向
とするが、ボール109を任意の方向に回転方向に回転
させたとき、この回転はX方向の回転成分とY方向の回
転成分とからなる。フォトインタラプタ106Xはこの
X方向の回転成分を、フォトインタラプタ106Yはこ
のY方向の回転成分を夫々検出するためのものである。
フォトインタラプタ106XからのXA相,XB相のパ
ルス信号のパルス数はボール109のX方向の回転量に
比例し、フォトインタラプタ106YからのYA相,Y
B相のパルス信号のパルス数はボール109のY方向の
回転量に比例する。従って、XA相,XB相のパルス信
号をカウントして、そのカウント値から表示画面でのカ
ーソルのX方向の移動量制御信号を形成し、また、YA
相,YB相のパルス信号をカウントして、そのカウント
値からカーソルのY方向の移動量制御信号を形成するこ
とにより、ボール109の回転に応じてカーソルを任意
に移動させることができる。
Now, the rotating direction of the ball 109 that rotates only the rotating body 101X is the X direction, and the rotating body 10
Although the rotation direction of the ball 109 that rotates only 1Y is the Y direction, when the ball 109 is rotated in the rotation direction in any direction, this rotation is composed of a rotation component in the X direction and a rotation component in the Y direction. The photo interrupter 106X is for detecting the rotation component in the X direction, and the photo interrupter 106Y is for detecting the rotation component in the Y direction.
The number of pulses of the XA phase and XB phase pulse signals from the photo interrupter 106X is proportional to the amount of rotation of the ball 109 in the X direction, and the YA phase and Y from the photo interrupter 106Y.
The number of pulses of the B-phase pulse signal is proportional to the amount of rotation of the ball 109 in the Y direction. Therefore, the pulse signals of the XA phase and the XB phase are counted, and the movement amount control signal of the cursor in the X direction on the display screen is formed from the count value.
By counting the phase and YB phase pulse signals and forming the cursor movement amount control signal in the Y direction from the count value, the cursor can be arbitrarily moved according to the rotation of the ball 109.

【0010】ところで、ボール109の回転を任意とし
た場合、その回転方向が逆転する場合もある。これを検
出するために、フォトインタラプタ106X,106Y
から夫々90°位相が異なる2相のパルス信号が得られ
るようにしている。ボール109のX方向の回転が逆転
すると、フォトインタラプタ106Xから出力されるX
A相,XB相のパルス信号の位相関係が逆転し、ボール
109のY方向の回転が逆転すると、YA相,YB相の
パルス信号の位相関係が逆転する。従って、XA相,X
B相のパルス信号の位相関係、YA相,YB相のパルス
信号の位相関係を夫々検出することにより、ボール10
9の任意の回転方向を検出でき、これによってカーソル
を任意の方向に移動させることができる。
By the way, when the rotation of the ball 109 is arbitrary, the rotation direction may be reversed. To detect this, the photo interrupters 106X and 106Y are detected.
Therefore, two-phase pulse signals each having a 90 ° phase difference are obtained. When the rotation of the ball 109 in the X direction is reversed, the X output from the photo interrupter 106X
When the phase relationship between the A-phase and XB-phase pulse signals is reversed and the rotation of the ball 109 in the Y-direction is reversed, the phase relationship between the YA-phase and YB-phase pulse signals is reversed. Therefore, XA phase, X
The ball 10 is detected by detecting the phase relationship of the B-phase pulse signals and the phase relationship of the YA-phase and YB-phase pulse signals.
Any rotation direction of 9 can be detected, and the cursor can be moved in this direction.

【0011】図7はかかる座標入力装置での処理回路系
を示すブロック図である。同図において、フォトインタ
ラプタ106X,106Yの発光素子(図6)はLED
が使用され、LED駆動制御回路111によって駆動さ
れて発光する。フォトインタラプタ106Xから出力さ
れるXA相,XB相のパルス信号は夫々、タイミング制
御回路118によって制御される波形整形回路112,
113で2値化されて波形整形され、また、フォトイン
タラプタ106Yから出力されるYA相,YB相のパル
ス信号も夫々、タイミング制御回路118によって制御
される波形整形回路114,115で2値化されて波形
整形され、方向検出カウンタ116に供給される。
FIG. 7 is a block diagram showing a processing circuit system in such a coordinate input device. In the figure, the light emitting elements (FIG. 6) of the photo interrupters 106X and 106Y are LEDs.
Is used and is driven by the LED drive control circuit 111 to emit light. The pulse signals of the XA phase and the XB phase output from the photo interrupter 106X are respectively the waveform shaping circuit 112 controlled by the timing control circuit 118,
The signal is binarized and waveform-shaped by 113, and the YA-phase and YB-phase pulse signals output from the photointerrupter 106Y are also binarized by the waveform-shaping circuits 114 and 115 controlled by the timing control circuit 118. The waveform is shaped by the above and is supplied to the direction detection counter 116.

【0012】この方向検出カウンタ116では、XA
相,XB相のパルス信号をカウントしてボール109の
X方向の回転量を検出するとともに、これらパルス信号
の位相関係からX方向に対する向きが検出され、同様に
して、YA相,YB相のパルス信号からボール109の
Y方向に対する回転量、向きが検出される。かかる方向
検出カウンタ116の検出出力はコンバータインタフェ
イス117を介して座標入力装置から出力される。
In this direction detection counter 116, the XA
Phase and XB phase pulse signals are counted to detect the rotation amount of the ball 109 in the X direction, and the direction with respect to the X direction is detected from the phase relationship of these pulse signals. Similarly, the YA phase and YB phase pulses are detected. The rotation amount and direction of the ball 109 with respect to the Y direction are detected from the signal. The detection output of the direction detection counter 116 is output from the coordinate input device via the converter interface 117.

【0013】以上のような座標入力装置を小形に形成す
ることにより、図8に示すように、キーボード119に
組み込むことができる。この場合、この座標入力装置の
ボール109は指先などで回転操作する。
By forming the coordinate input device as described above in a small size, it can be incorporated in the keyboard 119 as shown in FIG. In this case, the ball 109 of this coordinate input device is rotated by a fingertip or the like.

【0014】[0014]

【発明が解決しようとする課題】ところで、図7におけ
る波形整形回路112〜115には比較器が用いられ、
これでもってフォトインタラプタ106X,106Yの
出力パルス信号をしきい値と比較して2値化(波形整
形)しており、従来では、このしきい値を出力パルス信
号のピーク値の例えば1/2倍となるように固定されて
いる。ところが、フォトインタラプタ106X,106
Yにおける発光素子や受光素子には特性のバラツキがあ
り、通常、これらの出力パルスの振幅を等しくすること
ができないことは勿論のこと、これらの振幅を波形整形
回路112〜115に設定されるしきい値の2倍に正し
くなるようにすることができない。このような振幅のま
まで波形整形すると、2値化されたXA相,XB相のパ
ルス信号の位相関係やYA相,YB相のパルス信号の位
相関係が正規の90°からずれ、ボール109の正しい
回転方向の検出ができなくなるばかりでなく、これらパ
ルス信号のカウントを正しくできなくなる。
By the way, comparators are used in the waveform shaping circuits 112 to 115 in FIG.
With this, the output pulse signals of the photo interrupters 106X and 106Y are binarized (waveform shaped) by comparing with the threshold value. In the past, this threshold value is, for example, ½ of the peak value of the output pulse signal. It is fixed so that it doubles. However, the photo interrupters 106X and 106X
The characteristics of the light emitting element and the light receiving element in Y vary, and it is usually impossible to make the amplitudes of these output pulses equal, and these amplitudes are set in the waveform shaping circuits 112 to 115. You can't get it to be exactly twice the threshold. If the waveform is shaped with such an amplitude as it is, the phase relationship between the binarized XA phase and XB phase pulse signals and the phase relationship between the YA phase and YB phase pulse signals deviates from the normal 90 °, and the ball 109 Not only cannot the correct direction of rotation be detected, but the counting of these pulse signals cannot be performed correctly.

【0015】そこで、従来では、フォトインタラプタ1
06X,106Yの出力チャンネル毎に可変抵抗器等に
よるレベル調整手段を設け、XA相,XB相,YA相,
YB相毎にパルス信号の振幅を調整して正規の振幅とな
るようにしていた。
Therefore, in the past, the photo interrupter 1 has been used.
A level adjusting means such as a variable resistor is provided for each of the output channels of 06X and 106Y, and XA phase, XB phase, YA phase,
The amplitude of the pulse signal is adjusted for each YB phase so that the amplitude becomes normal.

【0016】しかしながら、かかる従来技術によると、
このように調整工程が必要となり、しかも、この調整作
業は非常に手間がかかるし、振幅を精度良く設定しよう
とすると、この調整作業に長時間を要することになり、
座標入力装置の生産性の点から問題がある。
However, according to such a conventional technique,
In this way, the adjustment process is required, and this adjustment work is very troublesome, and if the amplitude is set accurately, this adjustment work takes a long time,
There is a problem in terms of productivity of the coordinate input device.

【0017】また、ボール109の停止状態は任意であ
るから、回転体101X,101Yにおけるチョッパ1
04X,104Yのフォトインタラプタ106X,10
6Yに対する停止状態も任意である。そこで、いま、図
9に示すように、フォトインタラプタ106Xのフォト
センサ(発光素子と受光素子との対)120Aにチョッ
パ104Xにおけるスリット121の辺部が入り込んだ
ような状態でチョッパ104Xが停止したとすると、そ
の受光素子は発光素子からの光の一部を受光しているこ
とになり、この受光素子からは直流電圧が出力される。
これだけでは特に問題はないが、通常、受光素子の出力
信号には、外光によるノイズや増幅器等によるノイズが
重畳されている。
Further, since the ball 109 can be stopped in any condition, the chopper 1 in the rotating bodies 101X and 101Y can be stopped.
04X, 104Y photo interrupters 106X, 10
The stop state for 6Y is also arbitrary. Therefore, as shown in FIG. 9, it is now assumed that the chopper 104X is stopped in a state in which the side of the slit 121 of the chopper 104X has entered the photosensor (a pair of the light emitting element and the light receiving element) 120A of the photointerrupter 106X. Then, the light receiving element receives part of the light from the light emitting element, and a DC voltage is output from this light receiving element.
Although there is no particular problem with this alone, noise due to external light or noise due to an amplifier or the like is usually superimposed on the output signal of the light receiving element.

【0018】そこで、図10(a)に示すように、例え
ば、チョッパ104Xが停止したとき、発光素子からの
光による受光素子の出力値がしきい値SL近傍にあり、
これにノイズが重畳されて全体のレベルがしきい値SL
に対して上下すると、図10(b)に示すように、チョ
ッパ104Xが停止しているにもかかわらず、波形整形
回路112,113からパルスが出力され、カーソルが
X方向に誤って移動してしまうことになる。このよう
に、ノイズによって誤動作してしまうこともあった。こ
のノイズによるパルスはランダムに発生するから、表示
画面上でカーソルがふらついてしまうこともある。
Therefore, as shown in FIG. 10A, for example, when the chopper 104X is stopped, the output value of the light receiving element due to the light from the light emitting element is near the threshold value SL,
Noise is superimposed on this and the overall level is the threshold value SL.
When it is moved up and down with respect to, as shown in FIG. 10B, the pulse is output from the waveform shaping circuits 112 and 113 even though the chopper 104X is stopped, and the cursor is erroneously moved in the X direction. Will end up. As described above, the noise may cause malfunction. Since the pulse due to this noise is generated at random, the cursor may fluctuate on the display screen.

【0019】本発明の目的は、かかる問題を解消し、フ
ォトインタラプタの出力パルスを、振幅調整の手間を省
き、ノイズに影響されずに精度良く波形整形をすること
ができるようにした座標入力装置を提供することにあ
る。
An object of the present invention is to solve the above problem, to eliminate the trouble of adjusting the amplitude of the output pulse of the photo interrupter, and to perform the waveform shaping with high accuracy without being influenced by noise. To provide.

【0020】[0020]

【課題を解決するための手段】上記目的を達成するため
に、本発明は、フォトインタラプタの出力パルス信号の
ピーク値を検出して保持し、この保持値のα倍(但し、
0<α<1)の値を波形整形のためのしきい値とする。
In order to achieve the above object, the present invention detects and holds the peak value of the output pulse signal of the photo interrupter, and holds this peak value α times (however,
A value of 0 <α <1) is used as a threshold value for waveform shaping.

【0021】また、本発明は、波形整形されたパルス信
号のエッジ毎に上記しきい値を所定の値ずつ低下させ
る。
Further, according to the present invention, the threshold value is lowered by a predetermined value for each edge of the waveform-shaped pulse signal.

【0022】[0022]

【作用】フォトインタラプタの出力パルス信号のピーク
値にバラツキがあっても、しきい値はこのピーク値に応
じたものとなり、このピーク値のα倍のしきい値で2値
化される。従って、この出力パルス信号のピーク値の調
整が不要となり、このピーク値がいかなるものであって
も、精度良く2値化される。
Even if the peak value of the output pulse signal of the photo interrupter varies, the threshold value corresponds to this peak value, and is binarized by a threshold value which is α times the peak value. Therefore, it is not necessary to adjust the peak value of this output pulse signal, and whatever the peak value is, it is accurately binarized.

【0023】また、図10(a)に示した状態となった
場合には、ピーク値を検出して保持した値はノイズレベ
ルよりも大きいため、図10(b)に示すようにノイズ
によってパルスが発生すると、この保持値が低下してし
きい値も低下する。従って、もはやノイズがあってもパ
ルスは発生しない。
Further, when the state shown in FIG. 10 (a) is reached, the peak value detected and held is larger than the noise level, so as shown in FIG. Occurs, this hold value decreases and the threshold value also decreases. Therefore, no pulse is generated even if there is noise.

【0024】[0024]

【実施例】以下、本発明の実施例を図面によって説明す
る。図1は本発明による座標入力装置の一実施例を示す
ブロック図であつて、1は発光素子、2は受光素子、3
は検出抵抗、4,5は比較器、6はエッジ検出器、7は
アンドゲート、8はU/D(アップダウン)カウンタ、
9はD/A(ディジタル/アナログ)変換器、10は分
圧器である。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of a coordinate input device according to the present invention, in which 1 is a light emitting element, 2 is a light receiving element, 3
Is a detection resistor, 4 and 5 are comparators, 6 is an edge detector, 7 is an AND gate, 8 is a U / D (up / down) counter,
Reference numeral 9 is a D / A (digital / analog) converter, and 10 is a voltage divider.

【0025】同図において、発光素子1からの光は図示
しないチョッパによってチョッピングされ、受光素子2
からパルス電流が出力される。このパルス電流が検出抵
抗3によってパルス電圧に変換される。このパルス電圧
を先に説明したパルス信号PSということにする。比較
器4は図7における波形整形回路112〜115に相当
し、パルス信号PSを分圧器10で形成されるしきい値
SL1とレベル比較して波形整形されたパルス信号P
S’を出力する。
In the figure, the light from the light emitting element 1 is chopped by a chopper (not shown), and the light receiving element 2
Outputs a pulse current. This pulse current is converted into a pulse voltage by the detection resistor 3. This pulse voltage will be referred to as the pulse signal PS described above. The comparator 4 corresponds to the waveform shaping circuits 112 to 115 in FIG. 7, and compares the pulse signal PS with the threshold value SL1 formed by the voltage divider 10 in level to perform waveform shaping of the pulse signal P.
Output S '.

【0026】この実施例では、このしきい値SL1の生
成手段を備えており、これにより、このしきい値SL1
はパルス信号PS’のピーク値に応じたものとしてい
る。この手段は比較器5、アンドゲート7、U/Dカウ
ンタ8、D/A変換器9及び分圧器10からなるが、特
に、これらのうちの分圧器10を除いた部分がパルス信
号PSのピーク値の保持手段を構成している。このピー
ク値が高くても低くてもこれを保持するために、エッジ
検出器6で比較器4の出力パルス信号PS’のエッジを
検出し、これによって得られたエッジパルスEGでU/
Dカウンタ8がダウンカウントするようにしている。
In this embodiment, means for generating the threshold value SL1 is provided, whereby the threshold value SL1 is set.
Is according to the peak value of the pulse signal PS ′. This means is composed of a comparator 5, an AND gate 7, a U / D counter 8, a D / A converter 9 and a voltage divider 10, and in particular, a part of these except the voltage divider 10 is the peak of the pulse signal PS. It constitutes a means for holding a value. In order to maintain this peak value regardless of whether it is high or low, the edge detector 6 detects the edge of the output pulse signal PS ′ of the comparator 4, and the edge pulse EG obtained by this detects U /
The D counter 8 counts down.

【0027】以下、このしきい値SL1の生成手段の動
作を図2を用いて説明する。但し、図2は図1における
各部の信号のタイミング関係を示す図であって、図1に
対応する信号には同一符号をつけている。
The operation of the means for generating the threshold value SL1 will be described below with reference to FIG. However, FIG. 2 is a diagram showing the timing relationship of the signals of the respective parts in FIG. 1, and the signals corresponding to FIG. 1 are assigned the same reference numerals.

【0028】U/Dカウンタ8のカウント値はD/A変
換器9でアナログ化され、しきい値SL2となる。比較
器5はこのしきい値SL2とパルス信号PSとをレベル
比較し、しきい値SL2≦パルス信号PSのとき高レベ
ル(“H”)となるゲートパルスGPを出力する。アン
ドゲート7はこの“H”のゲートパルスGPの期間オン
し、クロックCLKを通過させる。このアンドゲート7
から出力されるクロックCLKをU/Dカウンタ8がア
ップカウントする。
The count value of the U / D counter 8 is analogized by the D / A converter 9 and becomes the threshold value SL2. The comparator 5 compares the levels of the threshold value SL2 and the pulse signal PS, and outputs a gate pulse GP that becomes a high level (“H”) when the threshold value SL2 ≦ pulse signal PS. The AND gate 7 is turned on during this "H" gate pulse GP to pass the clock CLK. This AND gate 7
The U / D counter 8 counts up the clock CLK output from

【0029】そこで、しきい値SL2がパルス信号PS
のピーク値よりも低いときには、比較器5から“H”の
ゲートパルスGPが出力されることにより、U/Dカウ
ンタ8のカウント値は上昇していき、遂にはしきい値S
L2がパルス信号PSのピーク値に略等しくなる。
Therefore, the threshold value SL2 is the pulse signal PS.
When it is lower than the peak value of, the comparator 5 outputs the gate pulse GP of "H", so that the count value of the U / D counter 8 increases and finally reaches the threshold value S.
L2 becomes substantially equal to the peak value of the pulse signal PS.

【0030】なお、このしきい値SL2が分圧器10に
よってα倍(但し、0<α<1)に分圧されることによ
り、比較器4のしきい値SL1が形成される。ここで、
αは上記の範囲で任意に設定できるが、通常1/2に設
定される。
The threshold SL2 is divided into α times (where 0 <α <1) by the voltage divider 10 to form the threshold SL1 of the comparator 4. here,
α can be set arbitrarily within the above range, but is usually set to 1/2.

【0031】パルス信号PSのピーク値がしきい値SL
1よりも低いときには、比較器5から“H”のゲートパ
ルスGPは出力されず、U/Dカウンタ8はアップカウ
ントしない。しかし、しきい値SL1は、しきい値SL
2よりも小さいため、パルス信号PSのピーク値よりも
小さいとき(通常、α=1/2なので、パルス信号PS
のピーク値がしきい値SL1よりも小さくなることは極
くまれである)には、比較器4から2値化されたパルス
信号PS’が得られる。エッジ検出器6はこのパルス信
号PS’のエッジを検出してエッジパルスEGを形成
し、これをU/Dカウンタ8がダウンカウントする。従
って、しきい値SL2は低下していき、遂にはパルス信
号PSのピーク値に略等しくなる。
The peak value of the pulse signal PS is the threshold value SL.
When it is lower than 1, the comparator 5 does not output the "H" gate pulse GP and the U / D counter 8 does not count up. However, the threshold SL1 is equal to the threshold SL
Since it is smaller than 2, it is smaller than the peak value of the pulse signal PS (normally α = 1/2, so the pulse signal PS
(It is extremely rare that the peak value of 1 becomes smaller than the threshold value SL1), the binarized pulse signal PS 'is obtained from the comparator 4. The edge detector 6 detects an edge of the pulse signal PS ′ and forms an edge pulse EG, which the U / D counter 8 counts down. Therefore, the threshold value SL2 decreases, and finally becomes substantially equal to the peak value of the pulse signal PS.

【0032】このようにして、U/Dカウンタ8はパル
ス信号PSのピーク値を保持することになる。なお、安
定した動作状態では、図2からも明らかなように、U/
Dカウンタ8は、アンドゲート7からのクロックCLK
のアップカウントと、エッジ検出器6からのエッジパル
スEGのダウンカウントとを繰り返すことにより、パル
ス信号PSのピーク値を保持する。
In this way, the U / D counter 8 holds the peak value of the pulse signal PS. In a stable operation state, as is clear from FIG. 2, U /
The D counter 8 receives the clock CLK from the AND gate 7.
The peak value of the pulse signal PS is held by repeating the up-counting and the down-counting of the edge pulse EG from the edge detector 6.

【0033】以上のように、U/Dカウンタ8がパルス
信号PSのピーク値を保持し、従って、しきい値SL2
がこのピーク値に略等しく、このしきい値SL2を適宜
の分圧比で分圧して波形整形のための比較器4のしきい
値SL1を形成するものであるから、このパルス信号P
Sのピーク値にバラツキがあっても、しきい値SL1は
このピーク値に対して所定の比率の値であり、精度良く
パルス信号PSの波形整形が行なわれる。
As described above, the U / D counter 8 holds the peak value of the pulse signal PS, and therefore the threshold value SL2.
Is approximately equal to this peak value, and this threshold value SL2 is divided by an appropriate voltage division ratio to form the threshold value SL1 of the comparator 4 for waveform shaping.
Even if the peak value of S varies, the threshold value SL1 is a value of a predetermined ratio with respect to this peak value, and the waveform of the pulse signal PS is shaped with high accuracy.

【0034】また、図10で説明した状態でチョッパが
停止しても、この実施例では、図3に示すように、ノイ
ズのレベルがしきい値SL1と交差すると、上記のよう
にしきい値SL2が低下し、これとともにしきい値SL
1も低下するから、ノイズに影響されなくなり、誤った
2値化パルスが発生することがない。従って、ノイズに
よってカーソルが誤動作することはなく、表示画面上で
ふらつくようなことはない。
Even if the chopper stops in the state described with reference to FIG. 10, in this embodiment, if the noise level crosses the threshold value SL1 as shown in FIG. 3, the threshold value SL2 is set as described above. Is decreased, and along with this, the threshold value SL
Since 1 is also reduced, it is not affected by noise, and an erroneous binarization pulse is not generated. Therefore, the cursor does not malfunction due to noise, and there is no wobbling on the display screen.

【0035】[0035]

【発明の効果】以上説明したように、本発明によれば、
回転検出部の出力パルス信号のピーク値にバラツキがあ
っても、波形整形手段でのしきい値は自動的にこのピー
ク値に応じたものとなり、ピーク値の調整を不要として
精度の良い波形整形が可能となる。また、ノイズによる
波形整形手段の誤動作も防止することができる。従っ
て、高精度のカーソル位置制御が可能となるし、ノイズ
によるカーソルの誤動作も防止できて、カーソルが安定
して表示されることになる。
As described above, according to the present invention,
Even if there are variations in the peak value of the output pulse signal of the rotation detection unit, the threshold value in the waveform shaping means automatically corresponds to this peak value, and it is not necessary to adjust the peak value and the waveform can be shaped accurately. Is possible. Further, it is possible to prevent malfunction of the waveform shaping means due to noise. Therefore, it is possible to control the cursor position with high accuracy, prevent malfunction of the cursor due to noise, and display the cursor in a stable manner.

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

【図1】本発明による座標入力装置の一実施例を示すブ
ロック図である。
FIG. 1 is a block diagram showing an embodiment of a coordinate input device according to the present invention.

【図2】図1の各部の信号のタイミング関係を示す図で
ある。
FIG. 2 is a diagram showing a timing relationship of signals of respective parts in FIG.

【図3】図1に示した実施例の一動作を示す図である。FIG. 3 is a diagram showing one operation of the embodiment shown in FIG.

【図4】座標入力装置の機構部を示す分解斜視図であ
る。
FIG. 4 is an exploded perspective view showing a mechanical portion of the coordinate input device.

【図5】図4の各部を組み立てて得られる座標入力装置
の外観斜視図である。
5 is an external perspective view of a coordinate input device obtained by assembling the respective parts of FIG.

【図6】図4におけるフォトインタラプタの内部構成を
概略的に示す図である。
6 is a diagram schematically showing an internal configuration of a photo interrupter in FIG.

【図7】座標入力装置の信号処理系の全体構成を示す図
である。
FIG. 7 is a diagram showing an overall configuration of a signal processing system of the coordinate input device.

【図8】図5に示した座標入力装置のキーボードへの取
付け例を示す図である。
8 is a diagram showing an example of attachment of the coordinate input device shown in FIG. 5 to a keyboard.

【図9】座標入力装置での回転体の停止状態の一例を示
す図である。
FIG. 9 is a diagram showing an example of a stopped state of a rotating body in the coordinate input device.

【図10】図9に示した停止状態での波形整形手段の誤
動作を説明するための図である。
10 is a diagram for explaining a malfunction of the waveform shaping means in the stopped state shown in FIG.

【符号の説明】[Explanation of symbols]

1 発光素子 2 受光素子 4,5 比較器 6 エッジ検出器 8 アップダウンカウンタ 10 分圧手段 100 ハウジング 101X,101Y 回転体 106X,106Y フォトインタラプタ 109 ボール DESCRIPTION OF SYMBOLS 1 light emitting element 2 light receiving element 4, 5 comparator 6 edge detector 8 up-down counter 10 voltage dividing means 100 housing 101X, 101Y rotating body 106X, 106Y photo interrupter 109 ball

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 開口を有するハウジングと、該ハウジン
グ内に任意の方向に回転可能に収納され一部が該開口か
ら外部に突出するボールと、該ハウジング内で該ボール
に近接して互いに直交するように配置され該回転に連動
して回転する一対の回転体と、該ハウジング内に収納さ
れ該回転体の回転量に応じた波数の信号を出力する回転
検出部とを備え、該ボールを回転させることにより、表
示画面に表示されるカーソルの位置を制御するようにし
た座標入力装置において、 該回転検出部の該出力信号のピーク値を検出保持して該
保持値のα倍(但し、0<α<1)のしきい値を生成
し、該回転検出部の該出力信号を該しきい値とレベル比
較して2値化し、該2値化された信号の波数に応じて該
カーソルの位置を制御するようにしたことを特徴とする
座標入力装置。
1. A housing having an opening, a ball rotatably housed in the housing in a desired direction and a part of which protrudes outward from the opening, and a ball in the housing which is close to the ball and orthogonal to each other. And a rotation detection unit that is housed in the housing and outputs a signal of a wave number according to the rotation amount of the rotating body, and rotates the ball. By doing so, in the coordinate input device configured to control the position of the cursor displayed on the display screen, the peak value of the output signal of the rotation detection unit is detected and held, and α times the held value (however, 0 A threshold value of <α <1) is generated, the output signal of the rotation detection unit is level-compared with the threshold value, and is binarized, and the cursor of the binarized signal is output according to the wave number of the binarized signal. The feature is that the position is controlled. That coordinate input device.
【請求項2】 請求項1において、 前記2値化された信号のレベル反転する時点毎に前記保
持値を一定値ずつ減算し、これによつて得られた値の前
記α倍の値を前記しきい値とすることを特徴とする座標
入力装置。
2. The holding value according to claim 1, wherein the held value is decremented by a constant value each time the level of the binarized signal is inverted, and the value obtained by multiplying the value α by a predetermined value is used. A coordinate input device having a threshold value.
【請求項3】 開口を有するハウジングと、該ハウジン
グ内に任意の方向に回転可能に収納され一部が該開口か
ら外部に突出するボールと、該ハウジング内で該ボール
に近接して互いに直交するように配置され該回転に連動
して回転する一対の回転体と、該ハウジング内に収納さ
れ該回転体の回転量に応じた波数の信号を出力する回転
検出部とを備え、該ボールを回転させることにより、表
示画面に表示されるカーソルの位置を制御するようにし
た座標入力装置において、 該回転検出部の出力信号を第1のしきい値とレベル比較
して2値化する第1の比較器と、 該第1の比較器の出力信号のエッジを検出してエッジパ
ルスを発生するエッジ検出器と、 該回転検出部の出力信号と第2のしきい値とをレベル比
較し、該出力信号が該第2のしきい値以上のとき信号を
出力する第2の比較器と、 該第2の比較器の出力信号の信号期間クロックをアップ
カウントし、該エッジパルスをダウンカウントするアッ
プダウンカウンタと、 該アップダウンカウンタのカウント値をアナログ値に変
換し、該第2のしきい値とするディジタル/アナログ変
換器と、 該第2のしきい値を分圧として該第1のしきい値とする
分圧手段とを設け、該第1の比較器の出力信号の波数に
応じて該カーソルの位置を制御するように構成したこと
を特徴とする座標入力装置。
3. A housing having an opening, a ball housed in the housing so as to be rotatable in an arbitrary direction, and a part of which protrudes outward from the opening, and in the housing, the ball is adjacent to the ball and is orthogonal to each other. And a rotation detection unit that is housed in the housing and outputs a signal of a wave number according to the rotation amount of the rotating body, and rotates the ball. In the coordinate input device configured to control the position of the cursor displayed on the display screen, the output signal of the rotation detection unit is binarized by comparing its level with the first threshold value. A comparator, an edge detector for detecting an edge of an output signal of the first comparator to generate an edge pulse, and a level comparison between an output signal of the rotation detector and a second threshold value, The output signal is the second threshold A second comparator that outputs a signal when the value is equal to or more than a value, an up-down counter that up-counts a signal period clock of an output signal of the second comparator, and a down-counts the edge pulse, and a up-down counter of the up-down counter A digital / analog converter for converting a count value into an analog value and setting it as the second threshold value, and a voltage dividing means for setting the second threshold value as a partial pressure and making it the first threshold value. A coordinate input device, wherein the coordinate input device is provided so as to control the position of the cursor according to the wave number of the output signal of the first comparator.
JP27895891A 1991-10-01 1991-10-01 Coordinate input device Expired - Fee Related JP3155579B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27895891A JP3155579B2 (en) 1991-10-01 1991-10-01 Coordinate input device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27895891A JP3155579B2 (en) 1991-10-01 1991-10-01 Coordinate input device

Publications (2)

Publication Number Publication Date
JPH0594260A true JPH0594260A (en) 1993-04-16
JP3155579B2 JP3155579B2 (en) 2001-04-09

Family

ID=17604438

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27895891A Expired - Fee Related JP3155579B2 (en) 1991-10-01 1991-10-01 Coordinate input device

Country Status (1)

Country Link
JP (1) JP3155579B2 (en)

Also Published As

Publication number Publication date
JP3155579B2 (en) 2001-04-09

Similar Documents

Publication Publication Date Title
USRE37878E1 (en) Pointing device with differential optomechanical sensing
US5027109A (en) Apparatus and method for minimizing undesired cursor movement in a computer controlled display system
US4037157A (en) Electro-optical speed transducer
JPH0231415B2 (en)
JPH0594260A (en) Coordinate input device
US5252968A (en) Apparatus and method for optical encoding and cursor control trackball
JP2017228707A (en) Photo interrupter, optical sensor, and driving operation detecting device
US6097319A (en) Quadrature encoding device with slope-triggered digitizing circuit
JPH04366718A (en) Movement detector
AU624508B2 (en) Apparatus for optical encoding
JP3140306B2 (en) Signal processing circuit for optical encoder
JP2997079B2 (en) Coordinate input device
JP3059310B2 (en) Signal processing circuit for optical rotary encoder
US20030189478A1 (en) Detection device
JPS60230231A (en) Tilt angle detecting device
JP2000337926A (en) Initial position-detecting device for encoder
US5469089A (en) Circuit arrangement for regulating signals
JP3035751B2 (en) Optical encoder
US5877615A (en) Dynamic input reference voltage adjuster
JPH04268915A (en) Coordinate input device
KR100259370B1 (en) Optical shaft encoder
JPH0579853A (en) Absolute-type rotary encoder
JPH0594261A (en) Coordinate input device
JPH07190810A (en) Rotary encoder and input device using the rotary encoder
US4939756A (en) Two-phase encoder circuit

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20010116

LAPS Cancellation because of no payment of annual fees