JPH0894387A - Rotating direction detector for rotary encoder - Google Patents

Rotating direction detector for rotary encoder

Info

Publication number
JPH0894387A
JPH0894387A JP25143594A JP25143594A JPH0894387A JP H0894387 A JPH0894387 A JP H0894387A JP 25143594 A JP25143594 A JP 25143594A JP 25143594 A JP25143594 A JP 25143594A JP H0894387 A JPH0894387 A JP H0894387A
Authority
JP
Japan
Prior art keywords
data
pulses
relationship
pulse
pair
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
JP25143594A
Other languages
Japanese (ja)
Inventor
Shinji Komiyama
伸二 込山
Koji Tomita
孝司 冨田
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.)
Sony Corp
Original Assignee
Sony Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sony Corp filed Critical Sony Corp
Priority to JP25143594A priority Critical patent/JPH0894387A/en
Publication of JPH0894387A publication Critical patent/JPH0894387A/en
Pending legal-status Critical Current

Links

Landscapes

  • Rotary Switch, Piano Key Switch, And Lever Switch (AREA)
  • Analogue/Digital Conversion (AREA)
  • Transmission And Conversion Of Sensor Element Output (AREA)
  • Optical Transform (AREA)

Abstract

PURPOSE: To correctly detect the rotating direction of the rotary shaft of a rotary encoder. CONSTITUTION: When one or the other of a pair of pulses output from a rotary encoder is changed, data DOLD indicating the change is stored. When the one or the other of the pair of pulses is changed, the relationship between the data DNEW indicating the latest change and the stored data DOLD is checked. As a result of the check, when the relationship between the data DNEW and DOLD is one relationship (1), (2), the data DIRF indicating that the rotating direction of a rotary shaft is clockwise is output. As the result of the check, when the relationship is the other relationship (3), (4), the data indicating that the rotating direction of the shaft is counterclockwise is output. As the result of the check, when the relationship between the data DNEW and DOLD is the residual other relationship, the pair of pulses are ignored.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、ユーザのつまみ操作
などにより制御されるロータリーエンコーダの回転方向
の検出回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a rotation direction detecting circuit for a rotary encoder which is controlled by a user's knob operation.

【0002】[0002]

【従来の技術】ユーザがつまみを回すと、その回転につ
れてアルファベットや数字などの文字を選択できるよう
にする場合、一般にロータリーエンコーダが使用され
る。
2. Description of the Related Art A rotary encoder is generally used when a user turns a knob to select a letter such as an alphabet or a number as the knob is turned.

【0003】そして、ロータリーエンコーダにおいて
は、図6に示すように、2相のパルスA、Bが出力され
るとともに、ロータリーエンコーダのつまみ(回転軸)
を時計方向CWにまわしたときには、パルスAは、パルス
Bよりも進んだ位相となり、つまみを反時計方向CCWに
回したときには、パルスAは、パルスBよりも遅れた位
相となる。
Then, in the rotary encoder, as shown in FIG. 6, two-phase pulses A and B are output and a knob (rotating shaft) of the rotary encoder is used.
When the knob is turned clockwise CW, the pulse A has a phase advanced from the pulse B, and when the knob is turned counterclockwise CCW, the pulse A has a phase delayed from the pulse B.

【0004】したがって、このパルスAとパルスBとの
位相関係からつまみの回転方向を検出することができ
る。すなわち、つまみの回転方向は、 パルスBの立ち上がりでA=“H”ならば、時計方向CW
に回したとき パルスBの立ち上がりでA=“L”ならば、反時計方向
CCWに回したとき である。
Therefore, the rotation direction of the knob can be detected from the phase relationship between the pulse A and the pulse B. In other words, the rotation direction of the knob is clockwise CW if A = "H" at the rising edge of pulse B
When turned to, if A = “L” at the rising edge of pulse B, then turn counterclockwise.
It was when I turned it to CCW.

【0005】また、つまみの回転にクリック機能を付け
る場合には、図6における縦の破線の位置を、つまみの
停止位置(クリック位置)とすればよい。すなわち、そ
のようにすれば、1クリックごとに1対のパルスA、B
が出力される。
Further, when the click function is added to the rotation of the knob, the position of the vertical broken line in FIG. 6 may be set as the stop position (click position) of the knob. That is, by doing so, one pair of pulses A and B is generated for each click.
Is output.

【0006】この1クリックごとに1対のパルスを出力
するロータリーエンコーダに対し、図7に示すように、
さらに、縦の鎖線の位置もつまみの停止位置とすれば、
2クリックごとに1対のパルスとすることができる。す
なわち、この場合には、つまみの回転方向は、 パルスBの立ち上がりでA=“H”ならば、時計方向CW
に回したとき パルスBの立ち下がりでA=“L”ならば、時計方向CW
に回したとき パルスBの立ち上がりでA=“L”ならば、反時計方向
CCWに回したとき パルスBの立ち下がりでA=“H”ならば、反時計方向
CCWに回したとき となる。
As shown in FIG. 7, for the rotary encoder which outputs a pair of pulses for each click,
Furthermore, if you set the stop position of the knob with the position of the vertical chain line,
There can be one pair of pulses for every two clicks. In other words, in this case, the knob rotation direction is clockwise CW if A = "H" at the rising edge of pulse B
When A = "L" at the falling edge of pulse B, turn clockwise CW
When turned to, if A = “L” at the rising edge of pulse B, then turn counterclockwise.
When turned to CCW If A = "H" at the falling edge of pulse B, turn counterclockwise
It is when turning to CCW.

【0007】そして、このように、図7の場合には、2
クリックあたり1パルスとなるので、単位回転角あたり
のパルスA、Bの数が少なくてすみ、ロータリーエンコ
ーダにおいて、パルスA、Bを形成するスイッチのため
のカムなどをそれだけ簡略化することができる。
As described above, in the case of FIG.
Since one pulse is provided for each click, the number of pulses A and B per unit rotation angle can be small, and in the rotary encoder, the cams for the switches that form the pulses A and B can be simplified accordingly.

【0008】[0008]

【発明が解決しようとする課題】ところが、この2クリ
ックごとに1対を出力するパルスのロータリエンコーダ
においては、つまみの回し方が悪く、例えば図8におい
て矢印Xで示すように回すと、すなわち、目的とする停
止位置θ0を行きすぎてから停止位置θ0に戻すと、つま
みの本来の回転は反時計方向CCWであるにもかかわら
ず、パルスBのエッジ位置θXを時計方向CWに通過する
ことにより、つまみは時計方向CWの回転であると識別
し、結果として誤検出となってしまう。
However, in the rotary encoder of the pulse which outputs one pair for every two clicks, the knob is not properly turned. For example, when the knob is turned as shown by an arrow X in FIG. If the target stop position θ0 is passed too far and then returned to the stop position θ0, the edge position θX of the pulse B passes in the clockwise direction CW even though the original rotation of the knob is CCW in the counterclockwise direction. , The knob is identified as the clockwise CW rotation, resulting in a false detection.

【0009】この発明は、このような問題点を解決しよ
うとするものである。
The present invention is intended to solve such a problem.

【0010】[0010]

【課題を解決するための手段】図4は、図7を拡大して
再掲したものであるが、この図4におけるパルスA、B
について詳述すると、パルスA、Bが“1”である区間
(つまみの角範囲)を2θとすると、パルスA、Bの周
期は5θであり、パルスA、Bの位相差はθである。ま
た、破線で示すように、A=“H”、かつ、B=“H”
である回転角位置の中央位置が、つまみの停止位置とな
り、さらに、鎖線で示すように、A=“L”、かつ、B
=“L”である回転角位置の中央位置も、つまみの停止
位置となる。
FIG. 4 is an enlarged reprint of FIG. 7 and shows pulses A and B in FIG.
More specifically, assuming that the section in which the pulses A and B are “1” (angle range of knob) is 2θ, the period of the pulses A and B is 5θ, and the phase difference between the pulses A and B is θ. Also, as indicated by the broken line, A = “H” and B = “H”
The center position of the rotation angle position is the stop position of the knob, and as shown by the chain line, A = “L” and B
The center position of the rotation angle position where "L" is also the stop position of the knob.

【0011】なお、以下の説明においては、図4にも示
すように、 パルスAの立ち上がりを、符号A↑ パルスAの立ち下がりを、符号A↓ パルスBの立ち上がりを、符号B↑ パルスBの立ち下がりを、符号B↓ で表す。
In the following description, as shown in FIG. 4, the rising edge of the pulse A, the falling edge of the code A ↑ pulse A, the rising edge of the code A ↓ pulse B, and the rising edge of the code B ↑ pulse B are referred to. The trailing edge is represented by the symbol B ↓.

【0012】そして、つまみを回したときに得られるパ
ルスA、Bの波形変化A↑〜B↓のうち、最新の2つの
波形変化に注目し、その最新の波形変化をPNEW、1つ
前の波形変化をPOLDとすると、これらの波形変化PNE
W、POLDの組み合わせは、図5に示す16通りとなる。
Of the waveform changes A ↑ to B ↓ of the pulses A and B obtained when the knob is turned, attention is paid to the latest two waveform changes, and the latest waveform changes are PNEW and the previous one. If the waveform changes are POLD, these waveform changes PNE
There are 16 combinations of W and POLD shown in FIG.

【0013】ただし、この16通りの組み合わせのうち、
判定の欄に×印を記した波形変化の組み合わせは、起き
えない。
However, of these 16 combinations,
A combination of waveform changes marked with X in the judgment column cannot occur.

【0014】また、判定の欄にNOPと記した波形変化の
組み合わせは、意味を持たない。例えば、第2番目のP
OLD=A↑、PNEW=A↓は、つまみを、パルスAが変化
する角位置でつまみを前後させた場合が該当するが、こ
れは、隣り合う停止位置の間で、つまみを小刻みに前後
させる操作であり、意味のないつまみ操作である。
Further, the combination of waveform changes described as NOP in the judgment column has no meaning. For example, the second P
OLD = A ↑, PNEW = A ↓ corresponds to the case where the knob is moved back and forth at the angular position where the pulse A changes, but this is to move the knob in small steps back and forth between adjacent stop positions. It is an operation and a meaningless knob operation.

【0015】そして、判定の欄に〜を記した波形変
化の組み合わせは、図4における〜の場合が該当
し、つまみの回転方向を正しく示している。
The combinations of waveform changes marked by in the judgment column correspond to the cases of in FIG. 4 and correctly indicate the rotation direction of the knob.

【0016】この発明は、以上のような点に着目し、ロ
ータリーエンコーダのつまみあるい回転軸の回転方向を
正しく検出できるようにしたものである。
The present invention has been made paying attention to the above points so that the rotary direction of the rotary shaft of the rotary encoder can be correctly detected.

【0017】すなわち、この発明においては、各部の参
照符号を後述の実施例に対応させると、回転軸の回転に
したがって、互いに位相の異なる1対のパルスA、Bが
出力されるとともに、回転軸の回転方向に対応して、1
対のパルスA、Bの位相の進み遅れ関係が反転するロー
タリーエンコーダ1に対し、回転軸の回転方向を検出す
る検出回路において、1対のパルスA、Bの一方あるい
は他方が変化したとき、その変化を示すデータDOLDを
記憶しておくメモリ23と、1対のパルスA、Bの一方
あるいは他方が変化したとき、その最新の変化を示すデ
ータDNEWと、記憶しておいたデータDOLDとの関係をチ
ェックする回路21、22とを有し、このチェックの結
果、最新の変化を示すデータDNEWと、記憶しておいた
データDOLDとの関係が、一の関係、のときには、
回転軸の回転方向が時計方向であることを示すデータDI
RFを出力し、チェックの結果、最新の変化を示すデータ
DNEWと、記憶しておいたデータDOLDとの関係が、別の
一の関係、のときには、回転軸の回転方向が反時計
方向であることを示すデータDIRFを出力し、チェックの
結果、最新の変化を示すデータDNEWと、記憶しておい
たデータDOLDとの関係が、残る他の関係のときには、
1対のパルスA、Bを無視するようにしたものである。
That is, in the present invention, when the reference numerals of the respective parts correspond to the embodiments described later, a pair of pulses A and B having different phases are output according to the rotation of the rotary shaft, and the rotary shaft is rotated. Corresponding to the rotation direction of 1
When one or the other of the pair of pulses A and B changes in the detection circuit that detects the rotation direction of the rotary shaft, the rotary encoder 1 in which the phase advance / delay relationship of the pair of pulses A and B is reversed, The relationship between the memory 23 for storing the data DOLD indicating the change, the data DNEW indicating the latest change when one or the other of the pair of pulses A and B changes, and the stored data DOLD. When the relationship between the data DNEW indicating the latest change and the stored data DOLD is one as a result of this check,
Data DI indicating that the rotation direction of the rotation axis is clockwise
When the relation between the data DNEW indicating the latest change and the stored data DOLD is another relation as a result of outputting RF, and the stored data DOLD is another relation, the rotation direction of the rotation shaft is counterclockwise. The data DIRF indicating that is output, and as a result of the check, when the relation between the data DNEW indicating the latest change and the stored data DOLD is the other remaining relation,
The pair of pulses A and B are ignored.

【0018】[0018]

【作用】つまみあるいは回転軸が停止位置以外の位置で
前後しても、そのときの出力は無視され、回転方向が正
しく検出される。
Even if the knob or the rotary shaft moves back and forth at a position other than the stop position, the output at that time is ignored and the rotation direction is correctly detected.

【0019】[0019]

【実施例】図1において、1はロータリーエンコーダを
示し、この例においては、2つのスイッチ1A、1Bを
有するとともに、これらスイッチ1A、1Bは、抵抗器
RA、RBによりプルアップされている。また、図示はし
ないが、ロータリーエンコーダ1の回転軸には、カムが
設けられ、このカムが、回転軸の回転にしたがって、ス
イッチ1A、1Bをオン・オフ制御するようにされ、ス
イッチ1A、1Bのプルアップ点から、上述したパルス
A、Bが取り出される。
DESCRIPTION OF THE PREFERRED EMBODIMENTS In FIG. 1, reference numeral 1 denotes a rotary encoder, which has two switches 1A and 1B, and these switches 1A and 1B are pulled up by resistors RA and RB. Further, although not shown, a cam is provided on the rotary shaft of the rotary encoder 1, and the cam controls ON / OFF of the switches 1A and 1B according to the rotation of the rotary shaft. The above-mentioned pulses A and B are extracted from the pull-up point of.

【0020】そして、このロータリーエンコーダ1から
のパルスA、Bが、マイクロコンピュータ2に供給され
る。このマイクロコンピュータ2は、パルスA、Bの波
形変化PNEW、POLDを記憶するとともに、その組み合わ
せのうちの〜を判断してロータリーエンコーダ1の
回転軸の回転方向を検出するものである。
The pulses A and B from the rotary encoder 1 are supplied to the microcomputer 2. The microcomputer 2 stores the waveform changes PNEW and POLD of the pulses A and B, and determines the combination of the combinations PNEW and POLD to detect the rotation direction of the rotary shaft of the rotary encoder 1.

【0021】このため、マイクロコンピュータ2は、C
PU21、プログラムの書き込まれたROM22、ワー
クエリア用のRAM23などを有するとともに、ROM
22には、そのプログラムの一部として、例えば図2に
示すような検出ルーチン10が用意されている。また、
波形変化POLD、PNEWを示すデータをそれぞれデータD
OLD、DNEWとするとき、RAM23には、これらデータ
DOLD、DNEWを記憶するアドレスが確保される。
Therefore, the microcomputer 2 has a C
It has a PU 21, a ROM 22 in which programs are written, a RAM 23 for a work area, and the like.
As a part of the program, the detection routine 10 shown in FIG. Also,
Data indicating waveform changes POLD and PNEW
When OLD and DNEW are set, the RAM 23 secures addresses for storing these data DOLD and DNEW.

【0022】そして、エンコーダ1からのパルスAある
いはBのレベルが変化すると(パルスAあるいはBにエ
ッジを生じると)、ルーチン10の処理がステップ11
からスタートし、次にステップ12において、前回、こ
のルーチン10が実行されたときのデータDNEWがデー
タDOLDに転送される(データDOLDがデータDNEWによ
り書き換えられ、DOLD=DNEWとされる)。
When the level of the pulse A or B from the encoder 1 changes (when an edge occurs in the pulse A or B), the processing of the routine 10 proceeds to step 11.
Then, in step 12, the data DNEW when the routine 10 was executed last time is transferred to the data DOLD (the data DOLD is rewritten by the data DNEW and DOLD = DNEW).

【0023】続いて、ステップ13において、今回、こ
のルーチン10が実行されるきっかけとなったパルスA
あるいはBの波形変化(これは、波形変化PNEWであ
る)が、データDNEWとして記憶される。なお、このデ
ータDNEWは、次回、このルーチン10が実行されると
き、上述のように、ステップ12において、データDOL
Dに転送される。
Then, in step 13, the pulse A that triggered the execution of this routine 10 this time.
Alternatively, the B waveform change (this is the waveform change PNEW) is stored as data DNEW. It should be noted that this data DNEW will be used as the data DOL in step 12 as described above when the routine 10 is executed next time.
Transferred to D.

【0024】次にステップ14において、データDOLD
とデータDNEWとの関係がチェックされ、図5における
判定の欄のあるいはに対応するときには、処理はス
テップ14からステップ15に進み、このステップ15
において、ロータリーエンコーダ1の回転軸の回転方向
を示す方向フラグDIRFが時計方向CWを示す値、例えば
“L”にセットされ、その後、ステップ17によりこの
ルーチン10を終了する。
Next, in step 14, data DOLD
And the data DNEW are checked, and when corresponding to or in the judgment column in FIG. 5, the process proceeds from step 14 to step 15, and this step 15
At, the direction flag DIRF indicating the rotation direction of the rotary shaft of the rotary encoder 1 is set to a value indicating the clockwise direction CW, for example, "L", and then this routine 10 is ended at step 17.

【0025】また、ステップ14において、データDOL
DとデータDNEWとの関係が、図5における判定の欄の
あるいはに対応するときには、処理はステップ14か
らステップ16に進み、このステップ16において、方
向フラグDIRFが反時計方向CCWを示す値、例えば“H”
にセットされ、その後、ステップ17によりこのルーチ
ン10を終了する。
In step 14, the data DOL
When the relationship between D and the data DNEW corresponds to or in the judgment column in FIG. 5, the process proceeds from step 14 to step 16, and in this step 16, the direction flag DIRF indicates a value indicating the counterclockwise CCW, for example, CCW. "H"
Is set to, and thereafter, this routine 10 is ended at step 17.

【0026】さらに、ステップ14において、データD
OLDとデータDNEWとの関係が、図5における判定の欄の
〜のどれにも対応しないときには、処理はステップ
14からステップ17に進み、このルーチン10を終了
する。
Further, in step 14, the data D
When the relationship between OLD and the data DNEW does not correspond to any of the judgment columns in FIG. 5, the process proceeds from step 14 to step 17, and this routine 10 is ended.

【0027】したがって、ロータリーエンコーダ1の出
力を利用するルーチンにおいては、ステップ15あるい
は16でセットされた方向フラグDIRFを使用してロータ
リーエンコーダ1の回転軸の回転方向を知ることができ
る。
Therefore, in the routine utilizing the output of the rotary encoder 1, the direction of rotation of the rotary shaft of the rotary encoder 1 can be known using the direction flag DIRF set in step 15 or 16.

【0028】こうして、この検出回路によれば、2クリ
ックごとに1対のパルスを出力するロータリーエンコー
ダ1において、つまみを停止位置できちんと停止させな
くても、その回転方向を正しく検出することができる。
しかも、そのためには、ルーチン10を実行するだけで
よいとともに、このルーチン10は、例えばシステムコ
ントロール用のマイクロコンピュータなどにおいて、処
理プログラムの一部として実行することができるので、
コストアップとなることがない。
Thus, according to this detection circuit, in the rotary encoder 1 which outputs a pair of pulses for every two clicks, the rotation direction can be correctly detected without stopping the knob properly at the stop position. .
Moreover, for that purpose, it is only necessary to execute the routine 10, and since the routine 10 can be executed as a part of the processing program in, for example, a microcomputer for system control,
There will be no cost increase.

【0029】さらに、例えば図3に示すように、パルス
A、Bにチャタリングを生じても、そのチャタリング部
分は無視されるので、回転方向を正しく検出することが
できる。また、図3において、矢印Xで示すように、つ
まみを停止位置以外の位置で前後させても、これを誤検
出することがない。
Further, as shown in FIG. 3, for example, even if chattering occurs in the pulses A and B, the chattering portion is ignored, so that the rotation direction can be correctly detected. Further, as shown by an arrow X in FIG. 3, even if the knob is moved back and forth at a position other than the stop position, this will not be erroneously detected.

【0030】なお、上述において、ロータリーエンコー
ダ1がスイッチ1A、1Bおよびカムにより構成されて
いるとしたが、例えば2つのフォトインタラプタと、回
転軸に設けられた遮光板とにより構成することもでき
る。
Although the rotary encoder 1 is composed of the switches 1A and 1B and the cam in the above description, it may be composed of, for example, two photo interrupters and a light shielding plate provided on the rotating shaft.

【0031】[0031]

【発明の効果】この発明によれば、2クリックごとに1
対のパルスを出力するロータリーエンコーダ1におい
て、つまみを停止位置できちんと停止させなくても、そ
の回転方向を正しく検出することができる。しかも、そ
のためには、ルーチン10を実行するだけでよいととも
に、このルーチン10は、他の処理プログラムの一部と
して実行することができるので、コストアップとなるこ
とがない。
According to the present invention, 1 is provided for every 2 clicks.
In the rotary encoder 1 that outputs a pair of pulses, the rotation direction of the rotary encoder 1 can be correctly detected without stopping the knob properly at the stop position. Moreover, for that purpose, only the routine 10 needs to be executed, and since this routine 10 can be executed as a part of another processing program, the cost does not increase.

【0032】さらに、パルスA、Bにチャタリングを生
じても、そのチャタリング部分は無視されるので、回転
方向を正しく検出することができる。
Further, even if chattering occurs in the pulses A and B, the chattering portion is ignored, so that the rotation direction can be correctly detected.

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

【図1】この発明の一例を示す接続図である。FIG. 1 is a connection diagram showing an example of the present invention.

【図2】この発明の一例を示すフローチャートである。FIG. 2 is a flowchart showing an example of the present invention.

【図3】この発明の動作例を示す波形図である。FIG. 3 is a waveform diagram showing an operation example of the present invention.

【図4】この発明を説明するための波形図である。FIG. 4 is a waveform diagram for explaining the present invention.

【図5】この発明を説明するための特性図である。FIG. 5 is a characteristic diagram for explaining the present invention.

【図6】従来例を説明するための波形図である。FIG. 6 is a waveform diagram for explaining a conventional example.

【図7】従来例を説明するための波形図である。FIG. 7 is a waveform diagram for explaining a conventional example.

【図8】従来例を説明するための波形図である。FIG. 8 is a waveform diagram for explaining a conventional example.

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

1 ロータリーエンコーダ 2 マイクロコンピュータ 10 検出ルーチン 1 rotary encoder 2 microcomputer 10 detection routine

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】回転軸の回転にしたがって、互いに位相の
異なる1対のパルスが出力されるとともに、 上記回転軸の回転方向に対応して、上記1対のパルスの
位相の進み遅れ関係が反転するロータリーエンコーダに
対し、上記回転軸の回転方向を検出する検出回路におい
て、 上記1対のパルスの一方あるいは他方が変化したとき、
その変化を示すデータを記憶しておくメモリと、 上記1対のパルスの一方あるいは他方が変化したとき、
その最新の変化を示すデータと、上記記憶しておいたデ
ータとの関係をチェックする回路とを有し、 このチェックの結果、上記最新の変化を示すデータと、
上記記憶しておいたデータとの関係が、一の関係のとき
には、上記回転軸の回転方向が時計方向であることを示
すデータを出力し、 上記チェックの結果、上記最新の変化を示すデータと、
上記記憶しておいたデータとの関係が、別の一の関係の
ときには、上記回転軸の回転方向が反時計方向であるこ
とを示すデータを出力し、 上記チェックの結果、上記最新の変化を示すデータと、
上記記憶しておいたデータとの関係が、残る他の関係の
ときには、上記1対のパルスを無視するようにしたロー
タリーエンコーダの回転方向の検出回路。
1. A pair of pulses whose phases are different from each other are output according to the rotation of the rotating shaft, and the lead / lag relationship of the phase of the pair of pulses is inverted corresponding to the rotating direction of the rotating shaft. In the detection circuit for detecting the rotation direction of the rotary shaft, the one of the pair of pulses changes or the other changes,
A memory for storing data showing the change, and when one or the other of the pair of pulses changes,
The circuit has a circuit for checking the relationship between the latest data and the stored data, and as a result of this check, the data showing the latest change,
When the relationship with the stored data is one, data indicating that the rotation direction of the rotary shaft is clockwise is output, and as a result of the above check, the data indicating the latest change is displayed. ,
When the relation with the stored data is another relation, data indicating that the rotation direction of the rotary shaft is counterclockwise is output, and as a result of the check, the latest change is displayed. Data shown,
A rotation direction detection circuit for a rotary encoder, which ignores the pair of pulses when the relationship with the stored data is the other relationship.
【請求項2】上記1対のパルスをパルスA、Bとする場
合において、 上記チェックの結果、上記最新の変化を示すデータが上
記パルスBの立ち上がりを示し、上記記憶しておいたデ
ータが上記パルスAの立ち上がりを示す関係のとき、あ
るいは、上記最新の変化を示すデータが上記パルスBの
立ち下がりを示し、上記記憶しておいたデータが上記パ
ルスAの立ち下がりを示す関係のとき、上記回転軸の回
転方向が時計方向であることを示すデータを出力し、 上記チェックの結果、上記最新の変化を示すデータが上
記パルスAの立ち上がりを示し、上記記憶しておいたデ
ータが上記パルスBの立ち上がりを示す関係のとき、あ
るいは、上記最新の変化を示すデータが上記パルスAの
立ち下がりを示し、上記記憶しておいたデータが上記パ
ルスBの立ち下がりを示す関係のとき、上記回転軸の回
転方向が反時計方向であることを示すデータを出力し、 上記チェックの結果、上記最新の変化を示すデータと、
上記記憶しておいたデータとが、上記パルスA、Bの他
の立ち上がりおよび立ち下がりの関係を示すときには、
上記パルスA、Bを無視するようにした請求項1に記載
のロータリーエンコーダの回転方向の検出回路。
2. When the pair of pulses are pulses A and B, as a result of the check, the data showing the latest change shows the rising of the pulse B, and the stored data is the stored data. In the case of the relationship showing the rising of the pulse A, or in the case where the data showing the latest change shows the falling of the pulse B and the stored data has the relationship showing the falling of the pulse A, Data indicating that the rotation direction of the rotary shaft is clockwise is output, and as a result of the above check, the data indicating the latest change indicates the rise of the pulse A, and the stored data indicates the pulse B. Or the data indicating the latest change indicates the trailing edge of the pulse A, and the stored data indicates the pulse. When the relationship shown a fall of the rotation direction of the rotating shaft to output data indicating the counter-clockwise direction, of the check result, the data representing the most recent change,
When the stored data indicates another rising and falling relationship of the pulses A and B,
The rotation direction detection circuit of the rotary encoder according to claim 1, wherein the pulses A and B are ignored.
【請求項3】2クリックごとに上記1対のパルスが1対
出力されるようにした請求項1あるいは請求項2に記載
のロータリーエンコーダの回転方向の検出回路。
3. A rotary encoder rotation direction detection circuit according to claim 1, wherein one pair of the pair of pulses is output every two clicks.
JP25143594A 1994-09-20 1994-09-20 Rotating direction detector for rotary encoder Pending JPH0894387A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25143594A JPH0894387A (en) 1994-09-20 1994-09-20 Rotating direction detector for rotary encoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25143594A JPH0894387A (en) 1994-09-20 1994-09-20 Rotating direction detector for rotary encoder

Publications (1)

Publication Number Publication Date
JPH0894387A true JPH0894387A (en) 1996-04-12

Family

ID=17222803

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25143594A Pending JPH0894387A (en) 1994-09-20 1994-09-20 Rotating direction detector for rotary encoder

Country Status (1)

Country Link
JP (1) JPH0894387A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009037983A (en) * 2007-08-03 2009-02-19 Onkyo Corp Device for determining direction of rotation
CN102840874A (en) * 2011-06-22 2012-12-26 合康变频科技(武汉)有限公司 Frequency division method and system for any integer of orthogonal photoelectric encoder
CN111142428A (en) * 2019-12-13 2020-05-12 芜湖宏景电子股份有限公司 Detection circuit of encoder adopting AD port line

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009037983A (en) * 2007-08-03 2009-02-19 Onkyo Corp Device for determining direction of rotation
JP4581148B2 (en) * 2007-08-03 2010-11-17 オンキヨー株式会社 Rotation direction discriminator
CN102840874A (en) * 2011-06-22 2012-12-26 合康变频科技(武汉)有限公司 Frequency division method and system for any integer of orthogonal photoelectric encoder
CN111142428A (en) * 2019-12-13 2020-05-12 芜湖宏景电子股份有限公司 Detection circuit of encoder adopting AD port line

Similar Documents

Publication Publication Date Title
US4638290A (en) Electronic turn signal cancellation apparatus
JP4385768B2 (en) Motor control device
EP0359673A2 (en) Apparatus and method for detecting neutral steering angle of steering wheel system for vehicle
JPH02248811A (en) Method for detecting absolute steering angle of steering angle sensor for vehicle
KR960036272A (en) Position encoder with fault indicator
CN109983309B (en) Detecting defects in a motor position decoder system
JPH0894387A (en) Rotating direction detector for rotary encoder
JPH08326886A (en) Position detecting device and position detecting method using it
JP3010095B2 (en) How to read rotary encoder with click
KR100299789B1 (en) Method for detecting steering neutral position of vehicle
JPH08202451A (en) Position recognition device and position controller
US20240068847A1 (en) Rotation determination device
JP3475589B2 (en) Signal reading device
KR100383994B1 (en) A error detecting method of incremental encoder
JP3033297B2 (en) Multi-turn absolute encoder
JPS62393A (en) Sewing machine
US4719868A (en) Sewing machine
JPS58188679A (en) Printing apparatus
JPS62225908A (en) Position detector
JP2001004409A (en) Encoder and rotational information detecting method
JPH0413724B2 (en)
JPH09113259A (en) Angle detecting device
JPH0754246B2 (en) Center position determination method for rotating body
JPS60187802A (en) Detecting circuit of angle
JPH049444B2 (en)