JP3475589B2 - Signal reading device - Google Patents

Signal reading device

Info

Publication number
JP3475589B2
JP3475589B2 JP18828295A JP18828295A JP3475589B2 JP 3475589 B2 JP3475589 B2 JP 3475589B2 JP 18828295 A JP18828295 A JP 18828295A JP 18828295 A JP18828295 A JP 18828295A JP 3475589 B2 JP3475589 B2 JP 3475589B2
Authority
JP
Japan
Prior art keywords
signal
sampling
signals
unit
reading
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.)
Expired - Fee Related
Application number
JP18828295A
Other languages
Japanese (ja)
Other versions
JPH0916309A (en
Inventor
宏 坂本
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.)
Nikon Corp
Original Assignee
Nikon 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 Nikon Corp filed Critical Nikon Corp
Priority to JP18828295A priority Critical patent/JP3475589B2/en
Publication of JPH0916309A publication Critical patent/JPH0916309A/en
Application granted granted Critical
Publication of JP3475589B2 publication Critical patent/JP3475589B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)
  • Position Input By Displaying (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、写真用カメラシステム
などで用いられる情報設定スイッチの読み取りに最適な
信号読み取り装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a signal reading device most suitable for reading information setting switches used in photographic camera systems and the like.

【0002】[0002]

【従来の技術】特公平2−20966号公報や特公平2
−34368号公報で示されるように、位相差のある2
つの信号パターンからダイアル操作部材の回転方向と回
転量とを検出し、それをカメラなどの設定に利用する装
置が公知となっている。
2. Description of the Related Art Japanese Patent Publication No. 2-20966 and Japanese Patent Publication No. 2966
-34368, there is a phase difference of 2
An apparatus that detects the rotation direction and rotation amount of a dial operation member from one signal pattern and uses the detected rotation direction and setting amount for a camera or the like is known.

【0003】ダイアル操作部材にはメカ的なクリックが
設けられており、このクリック間の移動に設定情報の1
単位が対応するようになっており、例えば1クリックで
正しく1絞り分の設定が変化することが求められた。ま
たこの種のスイッチはチャタリングも多いことから読み
取りが難しいので、特公平2−20966号公報や特公
平2−34368号公報の発明は、少なくとも3つの状
態を決められた順序で経過したことで1クリック分の移
動と看做すようにしていた。
A mechanical click is provided on the dial operation member, and movement of the click causes the setting information to be 1
The units correspond to each other, and it is required that, for example, one click correctly changes the setting for one aperture. Further, since this type of switch is difficult to read because there is a lot of chattering, the inventions of Japanese Patent Publication No. 2-20966 and Japanese Patent Publication No. 2-34368 disclose that at least three states have passed in a predetermined order. It was considered as a movement for a click.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、特公平
2−20966号公報や特公平2−34368号公報に
記載された発明は、その図3で示されるように、状態遷
移を追うので、ソフトウエアの処理が複雑になり、また
単純な処理で終わらないので、処理時間もかかるという
問題がある。特にダイアル操作部材が複数存在する製品
では、マイクロコンピュータの負担が増大するので、さ
らに処理の簡素化が要求される。
However, the inventions disclosed in Japanese Patent Publication No. 2-20966 and Japanese Patent Publication No. 2-34368 follow the state transition as shown in FIG. However, the processing is complicated, and it does not end with a simple processing. In particular, in a product having a plurality of dial operation members, the load on the microcomputer increases, so that further simplification of processing is required.

【0005】本発明は、上記の問題点に鑑みてなされた
もので、過去の状態遷移を追わずに、新旧2つの状態か
ら正確かつ簡単に情報読み取りを行うことを目的とす
る。
The present invention has been made in view of the above problems, and an object of the present invention is to accurately and easily read information from two states, old and new, without following past state transitions.

【0006】[0006]

【課題を解決するための手段】この目的を達成するため
に、第1発明による信号読み取り装置は、位相差のある
複数の信号を入力する信号入力手段(2)と、信号入力
手段(2)に入力される複数の信号の状態の変化を検出
する状態信号変化検出手段(3)と、信号入力手段
(2)に入力される複数の信号を繰り返しサンプリング
するサンプリング手段(ステップS22、S23)と、
サンプリング手段(ステップS22、S23)のサンプ
リング結果を読み取る読み取り手段(ステップS27、
S29)とを具備した信号読み取り装置において、状態
信号変化検出手段(3)は、複数の信号を入力する排他
的論理和回路から構成され、複数の信号のうちのいずれ
かのみが変化したことを検出したときに、サンプリング
手段(ステップS22、S23)のサンプリングを禁止
する禁止手段(ステップS21)を備えたことを特徴と
する。
In order to achieve this object, a signal reading device according to a first aspect of the present invention comprises a signal input means (2) for inputting a plurality of signals having phase differences, and a signal input means (2). State signal change detection means (3) for detecting changes in the states of a plurality of signals input to the input terminal, and sampling means (steps S22, S23) for repeatedly sampling the plurality of signals input to the signal input means (2). ,
Reading means (step S27, which reads the sampling result of the sampling means (steps S22, S23)
S29), the state signal change detection means (3) is a signal reading device including
And a prohibiting means (step S21) for prohibiting the sampling of the sampling means (steps S22 and S23) when it is detected that only one of the plurality of signals has changed. Is characterized by.

【0007】第2発明による信号読み取り装置は、位相
差のある複数の信号を入力する信号入力手段(2)と、
信号入力手段(2)に入力される複数の信号の状態の変
化を検出する状態信号変化検出手段(3)と、信号入力
手段(2)に入力される複数の信号を繰り返しサンプリ
ングするサンプリング手段(ステップS22、S23)
と、サンプリング手段(ステップS22、S23)のサ
ンプリング結果を読み取る読み取り手段(ステップS2
7、S29)とを具備した信号読み取り装置において、
状態信号変化検出手段(3)は、複数の信号を入力する
排他的論理和回路から構成され、複数の信号のうちのい
ずれかのみが変化したことを検出したときに、読み取り
手段の読み取りを禁止する禁止手段(ステップS21)
を備えたことを特徴とする。
The signal reading device according to the second invention comprises a signal input means (2) for inputting a plurality of signals having phase differences,
A state signal change detection means (3) for detecting changes in the states of a plurality of signals input to the signal input means (2), and a sampling means (sampling means for repeatedly sampling the plurality of signals input to the signal input means (2) ( (Steps S22 and S23)
And a reading means (step S2) for reading the sampling result of the sampling means (steps S22 and S23).
7 and S29),
The state signal change detecting means (3) inputs a plurality of signals.
Prohibition means constituted by an exclusive OR circuit, and prohibiting the reading of the reading means when it detects that only one of the plurality of signals has changed (step S21).
It is characterized by having.

【0008】第3発明による信号読み取り装置は、位相
差のあるNビット(Nは自然数)の信号を入力する信号
入力手段(2)と、信号入力手段(2)の入力するNビ
ットの信号の状態が変化したことを検出する状態変化検
出手段(3)と、信号入力手段(2)に入力される複数
の信号を繰り返しサンプリングして、読み取り結果とし
て出力するサンプリング手段(ステップS22、S2
3)とを具備した信号読み取り装置において、状態変化
検出手段(3)は、複数の信号を入力する排他的論理和
回路から構成され、Nビットの信号の状態が変化したこ
とを検出したときに、サンプリング手段(ステップS2
2、S23)のサンプリングを禁止する禁止手段(ステ
ップS21)を設けたことを特徴とする。
A signal reading device according to a third aspect of the present invention comprises a signal input means (2) for inputting N-bit (N is a natural number) signals having a phase difference, and an N-bit signal for input by the signal input means (2). A state change detection means (3) for detecting a change in state and a sampling means (steps S22, S2) for repeatedly sampling a plurality of signals input to the signal input means (2) and outputting the read results.
3), the state change detecting means (3) is an exclusive OR for inputting a plurality of signals.
When the change of the state of the N-bit signal is detected, the sampling means (step S2
2, S23) is provided with a prohibiting means (step S21) for prohibiting the sampling.

【0009】[0009]

【作用】上記構成の信号読み取り装置においては、状態
信号変化検出手段が複数の信号のうちのいずれかのみが
変化したことを検出したときに、サンプリング手段のサ
ンプリングを禁止するか、または読み取り手段の読み取
りを禁止するようにしたので、過去の状態遷移を追わず
に、新旧2つの状態から正確かつ簡単に情報読み取りを
行うことが可能となる。
In the signal reading device having the above structure, when the state signal change detecting means detects that only one of the plurality of signals has changed, the sampling of the sampling means is prohibited or the reading means of the reading means is operated. Since reading is prohibited, it is possible to accurately and easily read information from two states, new and old, without following past state transitions.

【0010】[0010]

【実施例】以下、本発明の実施例を図面に基づいて説明
する。
Embodiments of the present invention will be described below with reference to the drawings.

【0011】図1は、本発明による信号読み取り装置の
一実施例を示すブロック結線図である。
FIG. 1 is a block connection diagram showing an embodiment of a signal reading apparatus according to the present invention.

【0012】図1は、マイクロコンピュータ1と、ダイ
アル操作部材としてのエンコーダパターン2との接続関
係を示している。ダイアル操作部材に設けられたエンコ
ーダパターン2の電位はGNDレベルである。外周に2
相パターンが形成され、2相パターンと摺動する接触子
2aおよび2bは、マイクロコンピュータ1のポートP
AおよびPBにそれぞれ接続されている。接触子2aお
よび2bは、A相およびB相のパターン上に配置されて
いる。接触子2aおよび2bをそれぞれ複数にする理由
は、接触を良くしてチャタリングを少なくするためであ
る。マイクロコンピュータ1のポートPAおよびPB
は、内部でプルアップされている。従って、マイクロコ
ンピュータ1は、接触子2aまたは2bがエンコーダパ
ターン2に接触していないときは”1”、接触している
ときは”0”を読み取る。A相およびB相の信号は、X
ORゲート3にも供給される。XORゲート3の出力
は、マイクロコンピュータ1の外部割り込み端子INT
に接続されている。
FIG. 1 shows a connection relationship between a microcomputer 1 and an encoder pattern 2 as a dial operating member. The potential of the encoder pattern 2 provided on the dial operating member is at the GND level. 2 around
The contacts 2a and 2b, which form a phase pattern and slide with the two-phase pattern, are connected to the port P of the microcomputer 1.
It is connected to A and PB respectively. The contacts 2a and 2b are arranged on the A-phase and B-phase patterns. The reason for using a plurality of contacts 2a and 2b is to improve contact and reduce chattering. Ports PA and PB of the microcomputer 1
Is pulled up internally. Therefore, the microcomputer 1 reads "1" when the contactor 2a or 2b is not in contact with the encoder pattern 2 and "0" when it is in contact. The signals of A phase and B phase are X
It is also supplied to the OR gate 3. The output of the XOR gate 3 is the external interrupt terminal INT of the microcomputer 1.
It is connected to the.

【0013】エンコーダパターン2が回転した際の信号
は、図2のタイミングチャートで示される。図2の例で
は、A相=0およびB相=0の区間に、メカ的なクリッ
クが在る。設定情報のインクリメントおよびデクリメン
トの位置は、図中に▽で示した位置に決める。インクリ
メントするのは、(A相、B相)が(1,0)から
(1,1)と変化したときで、図中の▽を左から右方向
に横切る場合である。逆にデクリメントするのは、(A
相、B相)が(1,1)から(1,0)と変化したとき
である。図2の時間軸をインクリメントとは逆にして、
図中の▽を右から左方向に横切る場合である。
The signal when the encoder pattern 2 is rotated is shown in the timing chart of FIG. In the example of FIG. 2, there is a mechanical click in the section where A phase = 0 and B phase = 0. The increment and decrement positions of the setting information are determined by the positions indicated by ∇ in the figure. The increment is performed when (A phase, B phase) changes from (1,0) to (1,1), and crosses ∇ in the drawing from left to right. Conversely, decrementing is (A
Phase, B phase) changes from (1,1) to (1,0). The time axis of Figure 2 is reversed from the increment,
This is the case of crossing ∇ in the figure from right to left.

【0014】ところで、図2のように新旧2つのデータ
のみから回転量を検出しようとすると、従来は図3に示
すような問題が発生した。即ち、エンコーダパターン2
が図1で示される位置で右回り(時計回り)に回転しつ
つあるとき、図3では時刻aから時刻dまでの変化が起
こる。ダイアル操作部材をゆっくり手で回した場合など
はチャタリングを避けることができなくて、時刻aから
時刻dまでのB相の信号は、本来エッジが1つであるべ
きなのに、信号が暴れて複数のエッジが現れる。これを
時刻aから時刻dまでサンプリングした場合の結果を表
1に示す。
By the way, if an attempt is made to detect the amount of rotation from only two data, old and new, as shown in FIG. 2, the conventional problem as shown in FIG. 3 has occurred. That is, encoder pattern 2
3 is rotating clockwise (clockwise) at the position shown in FIG. 1, the change from time a to time d occurs in FIG. Chattering cannot be avoided when the dial operation member is slowly turned by hand, and the B-phase signal from time a to time d should have one edge even though it should originally have one edge, but multiple signals may occur. Edges appear. Table 1 shows the results when this was sampled from time a to time d.

【表1】[Table 1]

【0015】 サンプリング時刻 前回のデータ 今回のデータ 結果[0015]   Sampling time Previous data Current data Result

【0016】 (A,B) (A,B) a (1,1) (1,1) +0 b (1,1) (1,0) −1 c (1,0) (1,1) +1 d (1,1) (1,0) −1[0016]                        (A, B) (A, B)          a (1,1) (1,1) +0          b (1,1) (1,0) -1          c (1,0) (1,1) +1          d (1,1) (1,0) -1

【0017】表1で明らかなように、最終的には−1カ
ウントとなるが、その課程でデクリメントとインクリメ
ントが繰り返されて、これが表示のチラツキの原因とな
る。そこで本発明では、図1のXORゲート3によりA
相およびB相の変化を検出して以下のようにした。
As is clear from Table 1, -1 count is finally obtained, but decrement and increment are repeated in this process, which causes flickering of the display. Therefore, in the present invention, the XOR gate 3 in FIG.
The changes in phase and phase B were detected as follows.

【0018】即ち、図4に示すように、A相またはB相
のいずれか一方が変化すれば、XORゲート3の出力は
反転する。A相およびB相が同時に変化するのはエラー
状態で、この場合はカウント不要か、あるいはダイアル
操作部材の回転が速すぎて、これもカウントの意味がな
い場合である。従って、実使用状態ではA相およびB相
の変化は、図4に示すように、XORゲート3の出力の
反転となって現れる。マイクロコンピュータ1は外部割
り込み端子INTでXORゲート3の出力を受ける。
That is, as shown in FIG. 4, when either the A phase or the B phase changes, the output of the XOR gate 3 is inverted. It is in an error state that the A phase and the B phase change at the same time, and in this case, counting is not necessary, or the dial operation member is rotating too fast, and this also does not make sense. Therefore, in the actual use state, the changes in the A phase and the B phase appear as an inversion of the output of the XOR gate 3, as shown in FIG. The microcomputer 1 receives the output of the XOR gate 3 at the external interrupt terminal INT.

【0019】割り込みINTの処理は、図5のようにな
る。ステップS10で割り込みが開始されると、ステッ
プS11で割り込み端子INTのトリガの極性を反転す
る。これは次回の割り込みは逆エッジとなるので、その
準備である。実際にはマイクロコンピュータ1の制御レ
ジスタの1ビットを反転するだけなので、処理時間は僅
かである。なお両エッジトリガの機能があるマイクロコ
ンピュータでは、この処理は不要である。ステップS1
2ではA相またはB相に変化があったことを記憶する変
数SMP_Wを1として、ステップS13で割り込み処
理を終わる。このように割り込み処理は非常にシンプル
な処理内容で、メインルーチンの実行を妨げることはな
い。
The processing of the interrupt INT is as shown in FIG. When the interrupt is started in step S10, the polarity of the trigger of the interrupt terminal INT is reversed in step S11. This is a preparation for the next interrupt, which will be the opposite edge. Since only one bit of the control register of the microcomputer 1 is actually inverted, the processing time is short. Note that this processing is not necessary in a microcomputer having a double edge trigger function. Step S1
In 2, the variable SMP_W that stores the change in the A phase or the B phase is set to 1, and the interrupt processing ends in step S13. In this way, the interrupt processing has a very simple processing content and does not interfere with the execution of the main routine.

【0020】一方、情報設定のために繰り返し呼び出さ
れるサンプリング処理を図6にフローチャートで示す。
ステップS20が呼び出されると、ステップS21で変
数SMP_Wを調べる。変数SMP_Wが1であれば、
直前にA相またはB相が変化したことがわかる。本発明
の特徴は、直前にA相またはB相が変化している場合に
は、チャタリングの発生が予想されるとして、サンプリ
ングを実行しない点にある。即ち、変数SMP_Wが1
のときは、ステップS32へジャンプして、SMP_W
を0にしてステップS33でリターンする。こうするこ
とで、次回のサンプリングまでに割り込みがなければS
MP_Wが0のままなので、次回はサンプリングが実行
される。このように、チャタリングの可能性のある場合
にはサンプリングを実行せず、信号が安定してから信頼
性の高い信号を基に、サンプリングを行うことが出来
る。
On the other hand, FIG. 6 is a flow chart showing the sampling process repeatedly called for setting information.
When step S20 is called, the variable SMP_W is checked in step S21. If the variable SMP_W is 1,
It can be seen that the phase A or the phase B changed immediately before. A feature of the present invention is that if the A-phase or the B-phase has changed immediately before, it is expected that chattering will occur, so that sampling is not executed. That is, the variable SMP_W is 1
In case of, jump to step S32, SMP_W
Is set to 0 and the process returns in step S33. By doing this, if there is no interrupt until the next sampling, S
Since MP_W remains 0, sampling is executed next time. As described above, when chattering is possible, sampling is not performed, and sampling can be performed based on a highly reliable signal after the signal becomes stable.

【0021】ステップS21で変数SMP_Wが1のと
きは、ステップS22以降が実行され、サンプリングが
行われる。まずステップS22で、ポートPAおよびP
Bのサンプリングデータを記憶するRAMのデータを1
ビットシフトする。ステップS23では、空いたビット
にポートPAおよびPBの値をビットロードする。ステ
ップS24では、シフトした最新の2ビットが同じ値で
あるか否かを調べる。ポートPAおよびPBの値が不一
致の場合は、まだチャタリングが取りきれていないの
で、ステップS32へジャンプする。
When the variable SMP_W is 1 in step S21, steps S22 and thereafter are executed and sampling is performed. First, in step S22, ports PA and P
RAM data that stores the B sampling data is set to 1
Bit shift. In step S23, the values of the ports PA and PB are bit-loaded into the vacant bits. In step S24, it is checked whether or not the latest two shifted bits have the same value. If the values of the ports PA and PB do not match, chattering has not been removed yet, and the process jumps to step S32.

【0022】ステップS24で、複数回のサンプリング
値が一致すると判断した場合は、ステップS25へ進
む。ステップS25以降は、表1の作業に相当する処理
で、確定状態を記憶するRAMを2ビットシフトし、ス
テップS26で空いた2ビットにポートPAおよびPB
の確定データをロードする。こうすることによって、確
定状態を記憶するRAMは、例えば下位4ビットが以下
のように構成される。 A’B’A B
If it is determined in step S24 that the sampling values of the plurality of times match, the process proceeds to step S25. After step S25, the RAM corresponding to the work shown in Table 1 is shifted by 2 bits in the RAM for storing the fixed state, and the ports PA and PB are set to the 2 bits left in step S26.
Load the confirmed data of. By doing so, for example, the lower 4 bits of the RAM storing the fixed state are configured as follows. A'B'A B

【0023】ここで、A’は前回のPAのサンプリング
確定データ、B’は前回のPBのサンプリング確定デー
タ、Aは今回のPAのサンプリング確定データ、Bは今
回のPBのサンプリング確定データである。
Here, A'is the previous PA sampling confirmation data, B'is the previous PB sampling confirmation data, A is the current PA sampling confirmation data, and B is the current PB sampling confirmation data.

【0024】確定データのパターンは、ステップS27
またはS29で検出される。例えば、ステップS27で
A’B’A B=1011ならば、ステップS28の+
1処理(インクリメント)が行われる。ステップS29
でA’B’A B=1110ならば、ステップS30の
−1処理(デクリメント)が行われる。それ以外なら
ば、ステップS31の+0処理を行って、カウントが終
了する。カウント終了時には、ステップS32で変数S
MP_W=0にしてリターンする。なおステップS27
からステップS31は、A’B’A Bの組み合わせは
16通りしかないから、A’B’A Bをパラメータに
したテーブル参照で結果を求め、その結果をカウントに
加算することとしても良い。
The pattern of the confirmed data is determined in step S27.
Alternatively, it is detected in S29. For example, if A'B'A B = 1011 in step S27, + in step S28
One process (increment) is performed. Step S29
If A'B'A B = 1110, the -1 process (decrement) in step S30 is performed. Otherwise, the +0 process of step S31 is performed, and the counting ends. At the end of counting, the variable S is set in step S32.
Set MP_W = 0 and return. Note that step S27
Therefore, in step S31, since there are only 16 combinations of A'B'A B, the result may be obtained by referring to a table using A'B'A B as a parameter, and the result may be added to the count.

【0025】なお、実施例では外部割り込み端子を独立
させて用意したが、ポートPAおよびPBにそれぞれ割
り込み機能がある場合には、ステップS10以降の割り
込み処理を行うようにしても良い。また、変数SMP_
Wには、任意のサンプリングキャンセル回数が設定でき
るようにして、ステップS32では変数SMP_Wが1
以上なら1ずつ減じ、ステップS21で1以上の場合は
ステップS32へジャンプするようにしても良い。
Although the external interrupt terminal is prepared separately in the embodiment, if the ports PA and PB each have an interrupt function, the interrupt processing after step S10 may be performed. In addition, the variable SMP_
W can be set to an arbitrary number of sampling cancellations, and the variable SMP_W is set to 1 in step S32.
In the above case, the value may be decremented by 1, and in the case of 1 or more in step S21, the process may jump to step S32.

【0026】このように、新旧2つの状態からでも、チ
ャタリングの発生期間を避けて、正確な情報設定が可能
になった。またその処理方法がシンプルであることか
ら、他の処理と並行して実行することが可能で、読み取
り専用マイクロコンピュータなどを必要としない。ソフ
トウエアのサイズも小さいことから、ROM容量に負担
をかけずに最小のコストでダイアル操作部材の回転量を
読み取ることが出来る。
As described above, even from the two states of old and new, accurate information can be set while avoiding the chattering period. Further, since the processing method is simple, it can be executed in parallel with other processing and does not require a read-only microcomputer or the like. Since the size of the software is also small, it is possible to read the rotation amount of the dial operating member at a minimum cost without burdening the ROM capacity.

【0027】本発明では、検出手段の出力により、禁止
手段はサンプリング手段のサンプリングを禁止すること
とした。禁止はサンプリング1回分、あるいは複数回に
及ぶ。従来の技術と最も異なる点は、信号が変化したの
で直ちに処理を行うのではなく、サンプリング自体を行
わないことにある。これは従来のチャタキラーとも異な
る。
In the present invention, the prohibiting means prohibits the sampling of the sampling means by the output of the detecting means. The ban extends to one sampling or multiple times. The most different point from the conventional technique is that the signal itself has not changed and therefore the sampling is not performed immediately. This is also different from conventional Chatterkiller.

【0028】なお、この発明を応用すれば、一般的なス
イッチの読み取りのチャタキラーを構成する事が出来
る。2相信号に限らず、1つの信号でも変化を検出して
から所定の回数サンプリングを禁止することで、チャタ
リング期間に読み取りを行う害を避けて、より信頼性の
高い情報を得ることが出来る。
By applying the present invention, it is possible to construct a chatter killer for reading a general switch. By prohibiting sampling a predetermined number of times after detecting a change not only in the two-phase signal but also in one signal, it is possible to avoid the harm of reading during the chattering period and obtain more reliable information.

【0029】[0029]

【発明の効果】以上のように、本発明の信号読み取り装
置によれば、状態信号変化検出手段が複数の信号のうち
のいずれかのみが変化したことを検出したときに、サン
プリング手段のサンプリングを禁止するか、または読み
取り手段の読み取りを禁止するようにしたので、過去の
状態遷移を追わずに、新旧2つの状態から正確かつ簡単
に情報読み取りを行うことが可能となる。
As described above, according to the signal reading apparatus of the present invention, when the status signal change detecting means detects that only one of the plurality of signals has changed, the sampling means performs sampling. Since it is prohibited or the reading by the reading means is prohibited, it is possible to accurately and easily read information from the two states, old and new, without following the state transition in the past.

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

【図1】本発明による信号読み取り装置の一実施例を示
すブロック結線図である。
FIG. 1 is a block connection diagram showing an embodiment of a signal reading device according to the present invention.

【図2】本発明による信号読み取り装置の一実施例を示
すタイミングチャートである。
FIG. 2 is a timing chart showing an embodiment of a signal reading device according to the present invention.

【図3】従来の信号読み取り装置の動作を示すタイミン
グチャートである。
FIG. 3 is a timing chart showing an operation of a conventional signal reading device.

【図4】本発明による信号読み取り装置の一実施例を示
すタイミングチャートである。
FIG. 4 is a timing chart showing an embodiment of a signal reading device according to the present invention.

【図5】本発明による信号読み取り装置の一実施例を示
すフローチャートである。
FIG. 5 is a flowchart showing an embodiment of a signal reading device according to the present invention.

【図6】本発明による信号読み取り装置の一実施例を示
すフローチャートである。
FIG. 6 is a flowchart showing an embodiment of a signal reading device according to the present invention.

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

1 マイクロコンピュータ 2 エンコーダパターン 2a 接触子 2b 接触子 3 XORゲート 1 microcomputer 2 encoder pattern 2a Contact 2b Contact 3 XOR gate

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06F 3/023 340 H03K 17/00 ─────────────────────────────────────────────────── ─── Continuation of the front page (58) Fields surveyed (Int.Cl. 7 , DB name) G06F 3/023 340 H03K 17/00

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】位相差のある複数の信号を入力する信号入
力手段と、 前記信号入力手段に入力される前記複数の信号の状態の
変化を検出する状態信号変化検出手段と、 前記信号入力手段に入力される前記複数の信号を繰り返
しサンプリングするサンプリング手段と、 前記サンプリング手段の前記サンプリング結果を読み取
る読み取り手段とを具備した信号読み取り装置におい
て、 前記状態信号変化検出手段は、前記複数の信号を入力す
る排他的論理和回路から構成され、前記複数の信号のう
ちのいずれかのみが変化したことを検出したときに、前
記サンプリング手段のサンプリングを禁止する禁止手段
を備えたことを特徴とする信号読み取り装置。
1. A signal input means for inputting a plurality of signals having a phase difference, a state signal change detection means for detecting a change in a state of the plurality of signals input to the signal input means, and the signal input means. In a signal reading device comprising: a sampling unit that repeatedly samples the plurality of signals input to the reading unit; and a reading unit that reads the sampling result of the sampling unit, the state signal change detection unit inputs the plurality of signals. You
And a prohibition unit that prohibits the sampling of the sampling unit when it is detected that only one of the plurality of signals has changed. apparatus.
【請求項2】位相差のある複数の信号を入力する信号入
力手段と、 前記信号入力手段に入力される前記複数の信号の状態の
変化を検出する状態信号変化検出手段と、 前記信号入力手段に入力される前記複数の信号を繰り返
しサンプリングするサンプリング手段と、 前記サンプリング手段の前記サンプリング結果を読み取
る読み取り手段とを具備した信号読み取り装置におい
て、 前記状態信号変化検出手段は、前記複数の信号を入力す
る排他的論理和回路から構成され、前記複数の信号のう
ちのいずれかのみが変化したことを検出したときに、前
記読み取り手段の読み取りを禁止する禁止手段を備えた
ことを特徴とする信号読み取り装置。
2. A signal input means for inputting a plurality of signals having a phase difference, a state signal change detecting means for detecting a state change of the plurality of signals input to the signal input means, and the signal input means. In a signal reading device comprising: a sampling unit that repeatedly samples the plurality of signals input to the reading unit; and a reading unit that reads the sampling result of the sampling unit, the state signal change detection unit inputs the plurality of signals. You
And a prohibition unit that prohibits reading by the reading unit when it is detected that only one of the plurality of signals has changed. apparatus.
【請求項3】請求項1または請求項2記載の信号読み取
り装置において、 前記読み取り手段は、前記サンプリング手段がサンプリ
ングした2つの結果に基づいて、前記複数の信号を読み
取ることを特徴とする信号読み取り装置。
3. The signal reading device according to claim 1 or 2, wherein the reading unit reads the plurality of signals based on two results sampled by the sampling unit. apparatus.
【請求項4】位相差のあるNビット(Nは自然数)の信
号を入力する信号入力手段と、 前記信号入力手段の入力する前記Nビットの信号の状態
が変化したことを検出する状態変化検出手段と、 前記信号入力手段に入力される前記複数の信号を繰り返
しサンプリングして、読み取り結果として出力するサン
プリング手段とを具備した信号読み取り装置において、 前記状態変化検出手段は、前記複数の信号を入力する排
他的論理和回路から構成され、前記Nビットの信号の状
態が変化したことを検出したときに、前記サンプリング
手段のサンプリングを禁止する禁止手段を設けたことを
特徴とする信号読み取り装置。
4. A signal input means for inputting an N-bit (N is a natural number) signal having a phase difference, and a state change detection for detecting a change in the state of the N-bit signal input by the signal input means. A signal reading apparatus comprising: a sampling unit configured to repeatedly sample the plurality of signals input to the signal input unit and output a reading result as a reading result, wherein the state change detection unit inputs the plurality of signals. To eliminate
A signal reading apparatus comprising an other logical sum circuit , and further comprising a prohibiting unit for prohibiting sampling of the sampling unit when a change in the state of the N-bit signal is detected.
JP18828295A 1995-06-30 1995-06-30 Signal reading device Expired - Fee Related JP3475589B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18828295A JP3475589B2 (en) 1995-06-30 1995-06-30 Signal reading device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18828295A JP3475589B2 (en) 1995-06-30 1995-06-30 Signal reading device

Publications (2)

Publication Number Publication Date
JPH0916309A JPH0916309A (en) 1997-01-17
JP3475589B2 true JP3475589B2 (en) 2003-12-08

Family

ID=16220924

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18828295A Expired - Fee Related JP3475589B2 (en) 1995-06-30 1995-06-30 Signal reading device

Country Status (1)

Country Link
JP (1) JP3475589B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6157812B2 (en) * 2012-07-31 2017-07-05 コイト電工株式会社 Railway vehicle relay panel
WO2014087939A1 (en) 2012-12-04 2014-06-12 Nok株式会社 Metal surface processing agent

Also Published As

Publication number Publication date
JPH0916309A (en) 1997-01-17

Similar Documents

Publication Publication Date Title
US4638290A (en) Electronic turn signal cancellation apparatus
US5001479A (en) Gray code converter with error signal
JP3475589B2 (en) Signal reading device
JPH04248481A (en) Logic comparison circuit of ic testing device
US6249152B1 (en) Data storage control circuit
EP0341945B1 (en) Shaft angle encoder interface
JP3010095B2 (en) How to read rotary encoder with click
US5732252A (en) Program counter system capable of incrementing or decrementing after a conditional jump instruction
JPH04285815A (en) Position counter circuit of rotary encoder
JP2791906B2 (en) Counter device
JP2002116056A (en) Rotary switch and rotary switch scan interface
US20240068847A1 (en) Rotation determination device
JP3460675B2 (en) A moving direction detecting device using an optical encoder and a moving direction detecting method using an optical encoder.
KR100381876B1 (en) Incrementing and Decrementing a Microprocessor Program Counter
JP2003058310A (en) Rotating direction detector of rotary switch
JP3248369B2 (en) Rotary body position detection circuit
JP2742829B2 (en) Origin circuit
JPH0618024B2 (en) Contact encoder encoder reading method
JPH0756713B2 (en) Jog dial pulse output method
JPH0234613Y2 (en)
SU1543409A1 (en) Device for monitoring program run
JP2000298895A (en) Method for identifying rotary direction of jog dial
KR940022059A (en) Encoder Output Error Compensation Method
JPH02105014A (en) Rotary encoder device
JPH11190638A (en) Apparatus control circuit by rotary encoder

Legal Events

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