JP2671066B2 - Optical coupling device - Google Patents
Optical coupling deviceInfo
- Publication number
- JP2671066B2 JP2671066B2 JP14007791A JP14007791A JP2671066B2 JP 2671066 B2 JP2671066 B2 JP 2671066B2 JP 14007791 A JP14007791 A JP 14007791A JP 14007791 A JP14007791 A JP 14007791A JP 2671066 B2 JP2671066 B2 JP 2671066B2
- Authority
- JP
- Japan
- Prior art keywords
- circuit
- output
- down counter
- signal
- comparator
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Landscapes
- Electronic Switches (AREA)
Description
【0001】[0001]
【産業上の利用分野】本発明は、光結合装置(フォトカ
プラ)に関し、特にプログラム・コントローラ用として
入力にチャタリング等のノイズがあるため出力遅延の必
要がある光結合装置の安定動作を図るものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an optical coupling device (photocoupler), and particularly for a program controller, which is intended for stable operation of an optical coupling device which requires output delay due to chattering noise in the input. Is.
【0002】[0002]
(従来例1)従来のプログラム・コントローラ用の光結
合装置(フォトカプラ)は、入力信号が安定するまで出
力を遅延させて、機械的振動により断続する現象(チャ
タリング)を防止するよう、出力遅延回路を設けてい
る。この出力遅延を得るため、受光部は、図3の如く、
受光素子(フォトダイオード)1、アンプ2、コンパレ
ータ3,4およびコンデンサ5から構成されている。な
お、図中、6は定電流回路、7はトランジスタ、8は負
帰還抵抗であって、受光部において、コンデンサ5を除
く各部はモノリシックに集積化されている。(Conventional example 1) A conventional optical coupling device (photocoupler) for a program controller delays output until an input signal becomes stable, and delays output so as to prevent a phenomenon (chattering) intermittently caused by mechanical vibration. A circuit is provided. In order to obtain this output delay, the light receiving unit is
It comprises a light receiving element (photodiode) 1, an amplifier 2, comparators 3 and 4, and a capacitor 5. In the figure, 6 is a constant current circuit, 7 is a transistor, and 8 is a negative feedback resistor. In the light receiving part, each part except the capacitor 5 is monolithically integrated.
【0003】一般に、出力遅延のための遅延時間td2
は、 td2=C×Vref2/I・・・(1) で表される。ここで、Cはコンデンサ5の容量、Vre
f2はコンパレータ4の基準電圧、Iは定電流回路6の
電流である。遅延時間td2は、適度に長いほうがよ
い。そこで、遅延時間td2を長くするには、(1)式
より、Iを少なくする方が有利であるが、集積回路で精
度よく、ばらつきを少なくして得られる電流は、数μA
が限界である。Generally, delay time td2 for output delay
Is represented by td2 = C × Vref2 / I (1) Here, C is the capacitance of the capacitor 5, Vre
f2 is the reference voltage of the comparator 4, and I is the current of the constant current circuit 6. The delay time td2 should be reasonably long. Therefore, in order to lengthen the delay time td2, it is more advantageous to reduce I according to the equation (1), but the current obtained by the integrated circuit with high accuracy and small variation is several μA.
Is the limit.
【0004】例えば、td2に1msを得たい場合、コ
ンパレータ4の基準電圧Vref2=2V、I=1μA
とすると、コンデンサ5の容量Cには500PF必要で
ある。コンデンサ5の容量を集積回路で得ることは、大
面積を必要としほとんど集積できないため、コンデンサ
5のみ外付けしている。このため、プログラム・コント
ローラ用の光結合装置として小型、軽量化の支障となっ
ている。For example, when it is desired to obtain 1 ms for td2, the reference voltage Vref2 of the comparator 4 is 2 V and I = 1 μA.
Then, the capacity C of the capacitor 5 requires 500 PF. Obtaining the capacitance of the capacitor 5 with an integrated circuit requires a large area and can hardly be integrated. Therefore, only the capacitor 5 is externally attached. Therefore, it is an obstacle to downsizing and weight reduction as an optical coupling device for a program controller.
【0005】(従来例2)そこで、コンデンサを外付け
することなく大きな遅延を得ることができ、しかも小
型、軽量化を図り得る技術を図4に示す。(Prior art example 2) FIG. 4 shows a technique capable of obtaining a large delay without externally attaching a capacitor, and further reducing the size and weight.
【0006】この技術は、図4の如く、受光素子10が
光を受け、アンプ11の出力電圧の上昇に伴ってコンパ
レータ12の出力がHighとなると、出力遅延回路1
3は、コンパレータ12の出力とD−FF回路21の出
力の排他的論理和をRS型フリップフロップ(RS−F
F)回路17のセット信号とし、AND回路19で得た
RS−FF回路17と発振器18からの出力との論理積
を分周器20で分周し、この分周した信号をD型フリッ
プフロップ(D−FF)回路21のクロック信号とし、
コンパレータ12の出力をD−FF回路21の入力信号
としている。そのため、RS−FF回路17の出力がH
ighのときだけ分周器20に発振器18の出力が導か
れ、その分だけ遅れてD−FF回路21から出力され
る。According to this technique, as shown in FIG. 4, when the light receiving element 10 receives light and the output of the comparator 12 becomes High as the output voltage of the amplifier 11 rises, the output delay circuit 1
Reference numeral 3 denotes an exclusive OR of the output of the comparator 12 and the output of the D-FF circuit 21 as an RS type flip-flop (RS-F).
F) The logical product of the RS-FF circuit 17 obtained by the AND circuit 19 and the output from the oscillator 18 is divided by the frequency divider 20 as the set signal of the circuit 17, and the divided signal is the D-type flip-flop. (D-FF) As a clock signal for the circuit 21,
The output of the comparator 12 is used as the input signal of the D-FF circuit 21. Therefore, the output of the RS-FF circuit 17 is H
Only when it is high, the output of the oscillator 18 is guided to the frequency divider 20, and is output from the D-FF circuit 21 with a delay by that amount.
【0007】したがって、出力遅延回路13は、従来例
1でコンデンサを外付けしないと得られないような大き
な遅延が、コンデンサの外付けなしで得られるため、受
光素子10、アンプ11、コンパレータ12および出力
遅延回路13を、モノリシック集積して受光部とするこ
とができ、光結合装置の小型、軽量化が図れる。Therefore, since the output delay circuit 13 can obtain a large delay which cannot be obtained without externally attaching a capacitor in the conventional example 1, the light receiving element 10, the amplifier 11, the comparator 12 and The output delay circuit 13 can be monolithically integrated into a light receiving section, and the size and weight of the optical coupling device can be reduced.
【0008】[0008]
【発明が解決しようとする課題】しかしながら、図4の
出力遅延回路13において、図5に示すようにD−FF
回路21にクロックパルスが入力されたときに、ノイズ
が入力されると、出力はノイズに対して応答し誤動作が
起こる。なお、図5は上記動作のタイミングチャートで
あって、Iはコンパレータ12、IIは排他的論理和回路
30、IIIはRS−FF回路17、IVはAND回路1
9、Vは分周器20、VIはD−FF回路21の各出力波
形を示す。However, in the output delay circuit 13 of FIG. 4, as shown in FIG.
When noise is input when a clock pulse is input to the circuit 21, the output responds to the noise and malfunction occurs. FIG. 5 is a timing chart of the above operation, where I is the comparator 12, II is the exclusive OR circuit 30, III is the RS-FF circuit 17, and IV is the AND circuit 1.
9, V indicates the frequency divider 20, and VI indicates each output waveform of the D-FF circuit 21.
【0009】そこで、本出願人は、耐ノイズ特性をさら
に向上させ得る先行技術を提案している。Therefore, the present applicant has proposed a prior art which can further improve the noise resistance.
【0010】(先行技術)上記先行技術は、図6,7の
如く、コンパレータ54の状態によってアップダウンカ
ウンタ59のアップカウントとダウンカウントを切り換
えること、すなわち例えばコンパレータ54の出力がH
ighの状態でノイズが入ってきたときには、カウント
ダウンし、通常の出力Highに戻ってきたときにカウ
ントアップすることで、耐ノイズ特性をさらに向上させ
ている。(Prior Art) In the above-mentioned prior art, as shown in FIGS. 6 and 7, the up-count and down-count of the up-down counter 59 are switched depending on the state of the comparator 54, that is, the output of the comparator 54 is H, for example.
The noise resistance is further improved by counting down when noise enters in the high state and counting up when returning to the normal output High.
【0011】すなわち、図6に示す出力遅延回路55
は、受光素子50の受光状態となり、アンプ52の出力
>アンプ53の出力となったとき、コンパレータ54の
出力AはHighとなる(図7中、出力AのI部分)。
この状態で、発振器58の出力をクロック信号としコン
パレータ54の出力Aをアップダウンカウンタ59のク
ロック信号と同期させるD−FF回路60の出力JはH
ighであるので、排他的論理和回路63の排他的OR
回路79の出力はHigh、NOT回路80の出力Fは
Lowとなる。このとき、RS−FF回路64の出力H
はHighとなり、アップダウンカウンタ59の出力状
態は各ビットの出力を(a,b,c)で表すと、(0,
0,0)→(0,0,1)→(0,1,0)と変更し、
アップダウンカウンタ59はアップカウント状態とな
る。ここで、コンパレータ54の出力AにIIのようなノ
イズがはいると、出力A,JはLowとなるので、アッ
プダウンカウンタ59はダウンカウントとなるが、アッ
プダウンカウンタ59からノイズ波形は出力しない。ノ
イズが消えると、出力JはHighとなるため、アップ
ダウンカウンタ59はアップカウントに戻る。That is, the output delay circuit 55 shown in FIG.
Becomes the light receiving state of the light receiving element 50, and when the output of the amplifier 52> the output of the amplifier 53, the output A of the comparator 54 becomes High (I portion of the output A in FIG. 7).
In this state, the output J of the D-FF circuit 60 that synchronizes the output A of the comparator 54 with the clock signal of the up / down counter 59 by using the output of the oscillator 58 as a clock signal is H.
Since it is high, the exclusive OR of the exclusive OR circuit 63
The output of the circuit 79 becomes High, and the output F of the NOT circuit 80 becomes Low. At this time, the output H of the RS-FF circuit 64
Becomes High, and the output state of the up / down counter 59 is (0,
0,0) → (0,0,1) → (0,1,0)
The up-down counter 59 is in the up-counting state. Here, if noise such as II is present in the output A of the comparator 54, the outputs A and J become Low, so the up-down counter 59 counts down, but no noise waveform is output from the up-down counter 59. . When the noise disappears, the output J becomes High, and the up / down counter 59 returns to up counting.
【0012】そして、アップダウンカウンタ59の出力
状態が(1,1,1)となったとき、デコーダ回路61
のNAND回路69の出力CはLowとなり、RS−F
F回路101の出力EはHighとなり、ここでRS−
FF回路101の出力Eの波形に示す遅延時間1を生じ
る。この出力EがHighとなった瞬間、判別回路62
の出力Gのaに示すリセット信号がRS−FF回路64
へ伝送され、RS−FF回路64の出力HがLowとな
る。そのため、アップダウンカウンタ59へのクロック
信号の供給は中止され、アップダウンカウンタ59は
(1,1,1)の状態を保持する。When the output state of the up / down counter 59 becomes (1, 1, 1), the decoder circuit 61
The output C of the NAND circuit 69 becomes low and RS-F
The output E of the F circuit 101 becomes High, where RS-
The delay time 1 shown in the waveform of the output E of the FF circuit 101 is generated. At the moment when the output E becomes High, the discrimination circuit 62
Li set signal shown in a of the output G is RS-FF circuit 64
And the output H of the RS-FF circuit 64 becomes Low. Therefore, the supply of the clock signal to the up / down counter 59 is stopped, and the up / down counter 59 holds the state of (1, 1, 1).
【0013】次に、光がない状態になると、アンプ52
の出力は下がり、コンパレータ54の出力AはLowと
なる。このとき、出力JはLow、出力EはHighと
なるため、排他的論理和回路63の排他的OR回路79
の出力はHigh、NOT回路80の出力FはLowと
なり、RS−FF回路64にセット信号が伝達され、ゲ
ート回路67の出力IはHighとなる。よって、アッ
プダウンカウンタ59にクロック信号が供給されるよう
になる。ここで、出力JはLowであるので、アップダ
ウンカウンタ59はダウンカウントとなり、アップダウ
ンカウンタ59の各ビットの出力は(1,1,1)→
(1,1,0)→(1,0,1)と変化する。ここで、
図7の如く、Vのようなノイズがはいると、出力JはH
ighとなり、このときだけアップカウントとなるが、
アップダウンカウンタ59からノイズ波形が出力される
ことはない。Next, when there is no light, the amplifier 52
Output goes low, and the output A of the comparator 54 goes low. At this time, since the output J is Low and the output E is High, the exclusive OR circuit 79 of the exclusive OR circuit 63 is used.
Is high, the output F of the NOT circuit 80 is low, the set signal is transmitted to the RS-FF circuit 64, and the output I of the gate circuit 67 is high. Therefore, the clock signal is supplied to the up / down counter 59. Since the output J is Low, the up / down counter 59 counts down and the output of each bit of the up / down counter 59 is (1, 1, 1) →
It changes from (1,1,0) to (1,0,1). here,
As shown in Fig. 7, when there is noise such as V, the output J becomes H
It becomes high, and only this time it will count up,
No noise waveform is output from the up / down counter 59.
【0014】そして、ノイズが消えると、出力Jの状態
はLowとなるので、アップダウンカウンタ59はダウ
ンカウントに戻る。アップダウンカウンタ59の出力状
態が(0,0,0)となったとき、OR回路70の出力
DはLow、RS−FF回路101の出力EはLowと
なり、ここでRS−FF回路101の出力Eの波形に示
す遅延時間2を生じる。この出力EがLowになった瞬
間、判別回路62の出力Gにbのリセット信号がRS−
FF回路64へ伝達され、RS−FF回路64の出力H
はLowとなり、アップダウンカウンタ59へのクロッ
ク信号の供給は中止され、アップダウンカウンタ59は
(0,0,0)の状態を保持する。When the noise disappears, the state of the output J becomes Low, and the up / down counter 59 returns to the down count. When the output state of the up-down counter 59 becomes (0, 0, 0), the output D of the OR circuit 70 is Low, the output E goes Low the RS-FF circuit 101, where the output of the RS-FF circuit 101 The delay time 2 shown in the waveform of E is generated. Moment when the output E becomes Low, Li set signal b at the output G of the discrimination circuit 62 is RS-
The output H of the RS-FF circuit 64 is transmitted to the FF circuit 64.
Goes Low, the supply of the clock signal to the up-down counter 59 is stopped, the up-down counter 59 that holds the state of the (0,0,0).
【0015】このように、コンパレータに入ったノイズ
分だけカウント時間は長くなるが、アップダウンカウン
タの出力に応じて出力がなされるので、コンパレータに
入ったノイズによる誤動作は解消される。As described above, the count time is extended by the amount of noise that has entered the comparator, but since the output is performed according to the output of the up / down counter, malfunctions due to noise that entered the comparator are eliminated.
【0016】なお、図6中、51は遮光した受光素子、
65,66はD−FF回路である。In FIG. 6, reference numeral 51 designates a light-shielding light-receiving element,
Reference numerals 65 and 66 are D-FF circuits.
【0017】しかしながら、上記先行技術の出力遅延回
路55において、アップダウンカウンタ59のクロック
信号制御回路部90は、RS−FF回路64を使用して
いるため、回路が複雑になり、該回路を集積した場合、
チップサイズが大きくなり、しかもチップコストがアッ
プする。However, in the above-mentioned output delay circuit 55 of the prior art, the clock signal control circuit section 90 of the up / down counter 59 uses the RS-FF circuit 64, so that the circuit becomes complicated and the circuit is integrated. if you did this,
The chip size is increased and the chip cost is increased.
【0018】また、RS−FF回路64は、デコーダ回
路61側のRS−FF回路101の出力Eに入った輻射
ノイズ等でクロック信号制御回路部90が誤動作する
と、それを保持してしまう特性を有しているから、回路
全体の誤動作につながるなど動作の安定性に問題があ
る。Further, the RS-FF circuit 64 has a characteristic that if the clock signal control circuit section 90 malfunctions due to radiation noise or the like entering the output E of the RS-FF circuit 101 on the decoder circuit 61 side, the RS-FF circuit 64 holds it. Therefore, there is a problem in the stability of the operation such as a malfunction of the entire circuit.
【0019】本発明は、上記に鑑み、出力遅延回路を集
積した場合のチップサイズの縮小およびチップコストの
低減を図り、しかも受光回路全体を安定動作し得る光結
合装置の提供を目的とする。In view of the above, it is an object of the present invention to provide an optical coupling device which can reduce the chip size and the chip cost when the output delay circuit is integrated and can stably operate the entire light receiving circuit.
【0020】[0020]
【課題を解決するための手段】本発明請求項1による課
題解決手段は、図1,2の如く、発光部から発せられた
光信号を受光部で電気信号に変換して出力するものであ
って、受光部は、発光部からの光信号を電気信号に変換
するための受光素子50,51と、該電気信号を増幅す
るためのアンプ52,53と、該アンプ52,53の出
力をハイまたはローレベルのディジタル信号に変換する
ためのコンパレータ54と、前記ディジタル信号を遅延
させるための出力遅延回路55とから構成され、該出力
遅延回路55は、発振器58と、該発振器58の出力を
分周した信号をクロック信号として入力し、その入力信
号に基づいてカウントするアップダウンカウンタ59と
を備え、前記コンパレータ54の出力によってアップダ
ウンカウンタ59のアップカウントとダウンカウントと
を切り換える光結合装置において、前記出力遅延回路5
5に、アップダウンカウンタ59がフルカウントのとき
にローレベルを出力するNAND回路69およびゼロカ
ウントのときにローレベルを出力するOR回路70で構
成されるデコーダ回路100と、該デコーダ回路100
のNAND回路69およびOR回路70の出力をセット
信号およびリセット信号とするRS型フリップフロップ
(RS−FF)回路101と、該RS−FF回路101
の出力とコンパレータ54の出力との排他的論理和をと
る排他的OR回路102と、前記デコーダ回路100の
NAND回路69およびOR回路70の出力の論理積を
とるAND回路103と、前記排他的OR回路102の
出力と前記AND回路103の出力との論理和をとる後
段のOR回路104とが設けられ、該後段のOR回路1
04の出力によって前記アップダウンカウンタ59のク
ロック信号を制御し、前記RS−FF回路101の出力
を前記受光部の出力とするものである。The means for solving the problems according to claim 1 of the present invention is issued from the light emitting portion as shown in FIGS.
The optical signal is converted into an electric signal by the light receiving unit and output, and the light receiving unit converts the optical signal from the light emitting unit into an electric signal.
For receiving the light receiving elements 50 and 51 and amplifying the electric signal
Amplifiers 52 and 53 for output and the outputs of the amplifiers 52 and 53
Converts force into a high or low level digital signal
And a comparator 54 for delaying the digital signal
And an output delay circuit 55 for controlling the output of the oscillator 58. The output delay circuit 55 inputs an oscillator 58 and a signal obtained by dividing the output of the oscillator 58 as a clock signal, and inputs the input signal.
In the optical coupling device for switching <br/> the up-count and Daunkau down bets of the up-down counter 59 by a up-down counter 59 for counting the output of the comparator 54 based on the item, the output delay circuit 5
5. When the up / down counter 59 is full count
NAND circuit 69 that outputs a low level to
The OR circuit 70 that outputs a low level when the
A decoder circuit 100 which is made, the decoder circuit 100
RS flip-flop (RS-FF) circuit 101 that uses the outputs of the NAND circuit 69 and the OR circuit 70 as a set signal and a reset signal, and the RS-FF circuit 101.
Of the decoder circuit 100 and the exclusive OR circuit 102 that takes the exclusive OR of the output of
An AND circuit 103 for taking a logical product of the outputs of the NAND circuit 69 and OR circuit 70, after taking the logical sum of the output of the output of the exclusive-OR circuit 102 the AND circuit 103
Provided an OR circuit 104 of the stage, the subsequent OR circuit 1
The output of 04 controls the clock signal of the up / down counter 59, and the output of the RS-FF circuit 101.
Is the output of the light receiving section .
【0021】また、請求項2による課題解決手段は、請
求項1記載の出力遅延回路55において、コンパレータ
54とアップダウンカウンタ59との間に、コンパレー
タ54の出力とアップダウンカウンタ59のクロック信
号とを同期させるためのD−FF回路60が設けられ、
デコーダ回路100のNAND回路69およびOR回路
70とRS−FF回路101との間に、前記NAND回
路69およびOR回路70の出力をアップダウンカウン
タ59のクロック信号に同期させるための2つのD−F
F回路105,106が設けられ、前記D−FF回路6
0,105,106が、アップダウンカウンタ59のク
ロック信号の立上がり時、立下がり時のどちらでもない
ときにデータを読み込み出力するよう構成されたもので
ある。Further, the problem solving means according to claim 2 is the output delay circuit 55 according to claim 1, wherein the output of the comparator 54 and the clock signal of the up / down counter 59 are provided between the comparator 54 and the up / down counter 59. A D-FF circuit 60 for synchronizing the
NAND circuit 69 and OR circuit of decoder circuit 100
Between 70 and RS-FF circuit 101, the NAND times
Two DFs for synchronizing the output of the path 69 and the output of the OR circuit 70 with the clock signal of the up / down counter 59.
The F circuits 105 and 106 are provided, and the D-FF circuit 6 is provided.
0, 105, and 106 are configured to read and output data when the clock signal of the up / down counter 59 is neither rising nor falling.
【0022】[0022]
【作用】上記課題解決手段において、受光素子50が受
光したとき、コンパレータ54の出力AはHighとな
る。そうすると、RS−FF回路101の出力EがLo
w、D−FF回路60の出力BはHighであるので、
排他的OR回路102の出力OはHighとなる。この
とき、OR回路104の出力KはHighとなり、アッ
プダウンカウント59へクロック信号が送られ、アップ
ダウンカウンタ59はアップカウント状態となる。ここ
で、コンパレータ54の出力Aにノイズが入ると、D−
FF回路60の出力BとRS−FF回路101の出力E
はともにLowとなるため、排他的OR回路102の出
力OはLowとなる。しかし、デコーダ回路100のN
AND回路69およびOR回路70の出力C,Dを入力
とするD−FF回路105の出力FとD−FF回路10
6の出力GはHighを維持しているため、AND回路
103の出力HはHighとなる。従って、OR回路1
04の出力KもHighとなり、アップダウンカウンタ
59のクロック信号は送られつづける。ここで、D−F
F回路60の出力BはLowとなっているので、アップ
ダウンカウンタ59はダウンカウント状態となるもの
の、アップダウンカウンタ59からRS−FF回路10
1の出力Eにノイズ波形が出力されることはない。In the above means for solving problems, when the light receiving element 50 receives light, the output A of the comparator 54 becomes High. Then, the output E of the RS-FF circuit 101 is Lo.
w, since the output B of the D-FF circuit 60 is High,
The output O of the exclusive OR circuit 102 becomes High. At this time, the output K of the OR circuit 104 becomes High, the clock signal is sent to the up / down counter 59, and the up / down counter 59 enters the up-count state. If noise enters the output A of the comparator 54, D-
Output B of FF circuit 60 and output E of RS-FF circuit 101
Are low, the output O of the exclusive OR circuit 102 is low. However, N of the decoder circuit 100
The output F of the D-FF circuit 105, which receives the outputs C and D of the AND circuit 69 and the OR circuit 70, and the D-FF circuit 10.
Since the output G of 6 remains High, the output H of the AND circuit 103 becomes High. Therefore, the OR circuit 1
The output K of 04 also becomes High, and the clock signal of the up / down counter 59 continues to be sent. Where DF
Since the output B of the F circuit 60 is Low, the up / down counter 59 is in the down count state, but the output from the up / down counter 59 to the RS-FF circuit 10 is reduced.
No noise waveform is output to the output E of 1.
【0023】次に、ノイズが消えてコンパレータ54の
出力AがHighに復帰すると、上記と同様に動作し、
OR回路104の出力KもHighとなりアップダウン
カウンタ59がアップカウント状態となる。そして、ア
ップダウンカウンタ59のカウント数がフルカウントと
なったとき、D−FF回路105の出力FはLow、D
−FF回路106の出力GはHighであり、RS−F
F回路101の出力EはHighとなり、遅延信号をプ
ログラム・コントローラに送る。Next, when the noise disappears and the output A of the comparator 54 returns to High, the same operation as above is performed,
The output K of the OR circuit 104 also becomes High, and the up / down counter 59 enters the up-count state. Then, when the count number of the up-down counter 59 reaches the full count, the output F of the D-FF circuit 105 is Low, D
-The output G of the FF circuit 106 is High and RS-F
The output E of the F circuit 101 becomes High and sends a delay signal to the program controller.
【0024】このとき、D−FF回路60の出力BがH
igh、RS−FF回路101の出力EがHighであ
るので、排他的OR回路102の出力OはLowとな
り、またD−FF回路105の出力FもLowであるの
で、AND回路103の出力HもLowとなり、OR回
路104の出力KはLowとなる。このとき、アップダ
ウンカウンタ59へはクロック信号が供給されないの
で、フルカウントの状態が保持される。At this time, the output B of the D-FF circuit 60 is H
Since the output E of the RS-FF circuit 101 is High, the output O of the exclusive OR circuit 102 is Low .
Since the output F of the D-FF circuit 105 is also Low, the output H of the AND circuit 103 is Low and the output K of the OR circuit 104 is Low. At this time, since the clock signal is not supplied to the up-down counter 59, the state of the full count is maintained.
【0025】このように、OR回路104の出力によっ
てアップダウンカウンタ59のクロック信号を制御する
ことができるから、図6の光結合装置の如く、アップダ
ウンカウンタ59のクロック信号制御部にRS−FF回
路を使用しなくても済み、出力遅延回路55を集積した
場合にはチップサイズが縮小し、かつチップコストが低
減する。Since the clock signal of the up / down counter 59 can be controlled by the output of the OR circuit 104, the RS-FF is provided in the clock signal control unit of the up / down counter 59 as in the optical coupling device of FIG. If the circuit is not used, and the output delay circuit 55 is integrated, the chip size is reduced and the chip cost is reduced.
【0026】また、アップダウンカウンタ59は、情報
の取り込みをそのクロックの立下がりで行い、カウント
の出力をクロックパルスの立上がりで行うが、アップカ
ウント/ダウンカウントの切り換えがクロックパルスの
立上がりで行われた場合、アップダウンカウンタ59は
アップカウントになるか、ダウンカウントになるか分か
らず不安定な状態となる。そこで、D−FF回路60
は、アップダウンカウンタ59のクロック信号に同期し
てコンパレータ54の出力状態をアップダウンカウンタ
59へ伝え、アップダウンカウンタ59のアップカウン
ト/ダウンカウントの切り換えをアップダウンカウンタ
59の安定な期間に行う。[0026] In addition, the up-down counter 59 performs the information uptake on the falling of the clock, performs the count output at the rising edge of the clock pulse, the up-count / Daunkau down executive switched at the rising edge of the clock pulse of If you have cracks, or up-down counter 59 is made to up-count, an unstable state does not know what will Daunkau down door. Therefore, the D-FF circuit 60
In synchronization with the clock signal of the up-down counter 59 convey the output state of the comparator 54 to the up-down counter 59, to switch the up-count / Daunkau down bets of the up-down counter 59 in a stable period of the up-down counter 59 .
【0027】さらに、アップダウンカウンタ59はクロ
ックパルスの立上がりでその計数データを出力するの
で、クロックパルスの制御を所定のクロックパルスだけ
遅らせないと、アップダウンカウンタ59がゼロカウン
トまたはフルカウントになるや否やクロックパルスは停
止してしまい、アップダウンカウンタ59がフルカウン
トまたはゼロカウントになった直後のD−FF回路60
の出力変化をアップダウンカウンタ59へ入力できず、
アップダウンカウンタ59の動作は不安定となる。そこ
で、D−FF回路105,106は、デコーダ回路10
0のNAND回路69およびOR回路70の出力C,D
をアップダウンカウンタ59のクロック信号に同期さ
せ、所定のクロックパルスだけ遅らせるクロックパルス
制御を行う。Further, since the up / down counter 59 outputs the count data at the rising edge of the clock pulse, unless the control of the clock pulse is delayed by a predetermined clock pulse, the up / down counter 59 becomes zero count or full count. The clock pulse stops, and the D-FF circuit 60 immediately after the up-down counter 59 reaches the full count or the zero count.
Change of the output cannot be input to the up / down counter 59,
The operation of the up / down counter 59 becomes unstable. Therefore, the D-FF circuits 105 and 106 are connected to the decoder circuit 10
Outputs C and D of 0 NAND circuit 69 and OR circuit 70
Is synchronized with the clock signal of the up / down counter 59, and clock pulse control for delaying by a predetermined clock pulse is performed.
【0028】したがって、アップダウンカウンタ59
は、アップダウンカウンタ59のクロック信号の立上が
り時、立下がり時のどちらでもないときにデータを読み
込み出力することになる。Therefore, the up / down counter 59
Will read and output the data when the clock signal of the up / down counter 59 is neither rising nor falling.
【0029】[0029]
【実施例】以下、本発明の一実施例を図1,2に基づい
て説明する。図1は本発明の一実施例に係る光結合装置
の受光部を示す回路ブロック図、図2は同じくそのタイ
ミングチャートである。なお、図6で示した先行技術と
同一機能部品については同一符号を付している。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below with reference to FIGS. 1 is a circuit block diagram showing a light receiving portion of an optical coupling device according to an embodiment of the present invention, and FIG. 2 is a timing chart thereof. The same functional components as those of the prior art shown in FIG. 6 are designated by the same reference numerals.
【0030】本実施例の光結合装置(フォトカプラ)
は、図1の如く、発光部と受光部とを同一パッケージ内
に持ち、入力信号を発光部で一旦光に変換し、この光を
受光部で再び電気信号に変換して出力するものであっ
て、受光部は、受光素子(フォトダイオード)50,5
1、アンプ52,53、コンパレータ54および出力遅
延回路55をモノリシックに集積して成る。Optical coupling device (photocoupler) of this embodiment
1 has a light emitting unit and a light receiving unit in the same package, an input signal is once converted into light by the light emitting unit, and this light is converted into an electric signal again by the light receiving unit and output. The light receiving unit is a light receiving element (photodiode) 50, 5
1, an amplifier 52, 53, a comparator 54 and an output delay circuit 55 are monolithically integrated.
【0031】(受光部の入力段の構成)受光部の入力段
は、図6の先行技術と同様に、フォトダイオード50,
51、アンプ52,53およびコンパレータ54から成
る。また、フォトダイオード51は金属等で遮光されて
いる。なお、図中、56,57は負帰還抵抗である。(Structure of Input Stage of Light-Receiving Section) The input stage of the light-receiving section is similar to that of the prior art shown in FIG.
51, amplifiers 52 and 53, and a comparator 54. The photodiode 51 is shielded from light by a metal or the like. In the figure, 56 and 57 are negative feedback resistors.
【0032】(出力遅延回路の構成) 出力遅延回路55は、発振器58と、該発振器58の出
力を分周する分周用D型フリップフロップ(D−FF)
回路110a,110bから成る分周器110と、該分
周器110で分周された発振器58のパルス周期をカウ
ントするアップダウンカウンタ59と、前記コンパレー
タ54の出力をアップダウンカウンタ59のクロック信
号と同期させるためのD−FF回路60と、前記アップ
ダウンカウンタ59がフルカウントのときにローレベル
を出力するNAND回路69およびゼロカウントのとき
にローレベルを出力するOR回路70から成るデコーダ
回路100と、該デコーダ回路100のNAND回路6
9およびOR回路70の出力をアップダウンカウンタ5
9のクロック信号に同期させるための2つのD−FF回
路105,106と、該D−FF回路105の出力をセ
ット信号、D−FF回路106の出力をリセット信号と
するRS型フリップフロップ(RS−FF)回路101
と、該RS−FF回路101の出力と前記D−FF回路
60の出力との排他的論理和をとる排他的OR回路10
2と、前記D−FF回路105の出力とD−FF回路1
06の出力との論理積をとるAND回路103と、該A
ND回路103の出力と前記排他的OR回路102の出
力との論理和をとるためのOR回路104と、前記D−
FF回路60およびD−FF回路105,106にアッ
プダウンカウンタ59のクロック信号に同期したクロッ
ク信号を与えるためのNAND回路111と、前記アッ
プダウンカウンタ59のクロック信号を制御するための
NAND回路112とから構成されている。(Structure of Output Delay Circuit) The output delay circuit 55 includes an oscillator 58 and a dividing D-type flip-flop (D-FF) for dividing the output of the oscillator 58.
A frequency divider 110 including circuits 110a and 110b, an up / down counter 59 that counts the pulse period of the oscillator 58 divided by the frequency divider 110, and an output of the comparator 54 as a clock signal of the up / down counter 59. A low level when the D-FF circuit 60 for synchronizing and the up / down counter 59 are full count
When the NAND circuit 69 that outputs
A decoder circuit 100 including an OR circuit 70 that outputs a low level to the NAND circuit 6 and the NAND circuit 6 of the decoder circuit 100.
9 and the output of the OR circuit 70 up and down counter 5
Two D-FF circuits 105 and 106 for synchronizing with the clock signal of No. 9 and an RS type flip-flop (RS -FF) circuit 101
And an exclusive OR circuit 10 that takes the exclusive OR of the output of the RS-FF circuit 101 and the output of the D-FF circuit 60.
2, the output of the D-FF circuit 105 and the D-FF circuit 1
An AND circuit 103 for taking a logical product of the output of 06, the A
An OR circuit 104 for ORing the output of the ND circuit 103 and the output of the exclusive OR circuit 102, and the D-
A NAND circuit 111 for giving a clock signal synchronized with the clock signal of the up / down counter 59 to the FF circuit 60 and the D-FF circuits 105 and 106, and a NAND circuit 112 for controlling the clock signal of the up / down counter 59. It consists of
【0033】なお、68は電源Vcc投入時にアップダ
ウンカウンタ59のカウント数をゼロカウントとするイ
ニシャルリセット回路、113はインバータである。Reference numeral 68 is an initial reset circuit for making the count number of the up / down counter 59 zero when the power source Vcc is turned on, and 113 is an inverter.
【0034】(出力遅延回路の動作)図2に示すタイミ
ングチャートによって出力遅延回路55の動作を説明す
る。(Operation of Output Delay Circuit) The operation of the output delay circuit 55 will be described with reference to the timing chart shown in FIG.
【0035】コンパレータ54の出力であるAの波形に
おいて、波形の動きに応じてI〜IIIの期間に分類す
る。また、電源Vccの投入時には、イニシャルリセッ
ト回路68によってアップダウンカウント59の出力は
ゼロカウントとなる。ここで、アップダウンカウント5
9の各ビットの出力をa,b,cで表わす。The waveform A output from the comparator 54 is classified into periods I to III according to the movement of the waveform. Further, when the power supply Vcc is turned on, the output of the up / down count 59 becomes zero count by the initial reset circuit 68. Here, up / down count 5
The output of each bit of 9 is represented by a, b, and c.
【0036】フォトダイオード50が受光状態となり、
アンプ52の出力>アンプ53の出力となったとき、コ
ンパレータ54の出力AはHighとなる(図2中、出
力AのI部分)。The photodiode 50 enters the light receiving state,
When the output of the amplifier 52> the output of the amplifier 53, the output A of the comparator 54 becomes High (I portion of the output A in FIG. 2).
【0037】RS−FF回路101の出力EがLow
で、コンパレータ54の出力A、すなわちコンパレータ
54の出力をアップダウンカウンタ59のクロック信号
に同期させるD−FF回路60の出力BはHighであ
るので、排他的OR回路102の出力OはHighとな
る。このとき、OR回路104の出力KはHighとな
り、アップダウンカウント59へクロック信号が送ら
れ、アップダウンカウンタ59はアップカウント状態と
なる。The output E of the RS-FF circuit 101 is Low.
Since the output A of the comparator 54, that is, the output B of the D-FF circuit 60 that synchronizes the output of the comparator 54 with the clock signal of the up / down counter 59 is High, the output O of the exclusive OR circuit 102 is High. . At this time, the output K of the OR circuit 104 becomes High, the clock signal is sent to the up / down counter 59, and the up / down counter 59 enters the up-count state.
【0038】ここで、コンパレータ54の出力AのII部
分にノイズが入ると、D−FF回路60の出力BとRS
−FF回路101の出力EはともにLowとなるため、
排他的OR回路102の出力OはLowとなる。When noise enters the II portion of the output A of the comparator 54, the output B of the D-FF circuit 60 and RS
Since both outputs E of the FF circuit 101 are Low,
The output O of the exclusive OR circuit 102 becomes Low.
【0039】しかし、デコーダ回路100のNAND回
路69の出力Cを入力とするD−FF回路105の出力
Fと、OR回路70の出力Dを入力とするD−FF回路
106の出力GはHighを維持しているため、D−F
F回路105の出力FとD−FF回路106の出力Gの
論理積をとるAND回路103の出力HはHighとな
る。従って、OR回路104の出力KもHighとな
り、アップダウンカウンタ59のクロック信号は送られ
つづける。However, the output F of the D-FF circuit 105 that receives the output C of the NAND circuit 69 of the decoder circuit 100 and the output G of the D-FF circuit 106 that receives the output D of the OR circuit 70 are High. Since it is maintained, DF
The output H of the AND circuit 103 that takes the logical product of the output F of the F circuit 105 and the output G of the D-FF circuit 106 becomes High. Therefore, the output K of the OR circuit 104 also becomes High, and the clock signal of the up / down counter 59 continues to be sent.
【0040】ここで、D−FF回路60の出力BはLo
wとなっているので、アップダウンカウンタ59はダウ
ンカウント状態となるものの、RS−FF回路101の
出力Eにノイズ波形が出力されることはなく、出力が誤
動作することはない。The output B of the D-FF circuit 60 is Lo.
Since it is w, the up-down counter 59 is in the down-count state, but no noise waveform is output to the output E of the RS-FF circuit 101, and the output does not malfunction.
【0041】次に、コンパレータ54の出力A、すなわ
ち、D−FF回路60の出力BがHighとなると(図
2中、出力AのIIIの期間)、排他的OR回路102の
出力OはHighとなり、OR回路104の出力KもH
ighとなり、アップダウンカウンタ59のクロック信
号は送られつづける。Next, the output A of the comparator 54, Chi Sunawa <br/>, the output B of the D-FF circuit 60 becomes High (in FIG. 2, period III of the output A), the exclusive OR circuit 102 Output O of the OR circuit becomes High, and the output K of the OR circuit 104 also becomes H.
The clock signal of the up / down counter 59 continues to be sent.
【0042】アップダウンカウンタ59のカウント数が
フルカウント、すなわちアップダウンカウンタ59の出
力(a,b,c)が(1,1,1)となったとき、NA
ND回路69の出力C、すなわちD−FF回路105の
出力FはLow、OR回路70の出力D、すなわちD−
FF回路106の出力GはHighであり、RS−FF
回路101の出力EはHighとなる。このとき、D−
FF回路60の出力BがHigh、RS−FF回路10
1の出力EがHighであるので、排他的OR回路10
2の出力OはLow、またD−FF回路105の出力F
もLowであるので、AND回路103の出力HもLo
wとなり、OR回路104の出力KはLowとなる。こ
のとき、OR回路104とアップダウンカウンタ59と
の間にNAND回路112があるため、これによってア
ップダウンカウンタ59へのクロック信号の送出は止め
られ、アップダウンカウンタ59はフルカウントの状態
を保持する。When the count number of the up / down counter 59 is full count, that is, when the output (a, b, c) of the up / down counter 59 becomes (1, 1, 1), NA is obtained.
The output C of the ND circuit 69, that is, the output F of the D-FF circuit 105 is Low, and the output D of the OR circuit 70, that is, D-.
The output G of the FF circuit 106 is High, and RS-FF
The output E of the circuit 101 becomes High. At this time, D-
The output B of the FF circuit 60 is High, and the RS-FF circuit 10
Since the output E of 1 is High, the exclusive OR circuit 10
The output O of 2 is Low, and the output F of the D-FF circuit 105 is
Is also Low, the output H of the AND circuit 103 is also Lo.
w, and the output K of the OR circuit 104 becomes Low. At this time, since the between <br/> the OR circuit 104 and the up-down counter 59 is N the AND circuit 112, thereby sending a clock signal to the up-down counter 59 is stopped, the up-down counter 59 is the full count Hold the state.
【0043】このように、出力遅延回路55に、コンパ
レータ54の出力Aとデコーダ回路100のNAND回
路69およびOR回路70の出力C,Dをセット信号お
よびリセット信号とするRS−FF回路101の出力E
との排他的論理和をとる排他的OR回路102と、デコ
ーダ回路100のNAND回路69およびOR回路70
の出力C,Dの論理積をとるAND回路103と、排他
的OR回路102の出力OとAND回路103の出力H
との論理和をとるOR回路104とを設け、OR回路1
04の出力Kによってアップダウンカウンタ59のクロ
ック信号を制御するよう構成することで、図6の光結合
装置のように、アップダウンカウンタ59のクロック信
号制御部にRS−FF回路101の出力Eに入った輻射
ノイズを保持してしまうRS−FF回路を使用しなくて
も済み、出力遅延回路55を集積した場合にチップサイ
ズが縮小し、かつチップコストが低減する。In this way, the output delay circuit 55 is connected to the output A of the comparator 54 and the NAND circuit of the decoder circuit 100.
The output E of the RS-FF circuit 101 in which the outputs C and D of the path 69 and the OR circuit 70 are set and reset signals.
An exclusive OR circuit 102 that takes an exclusive OR with the NAND circuit 69 and the OR circuit 70 of the decoder circuit 100.
Output C, an AND circuit 103 for ANDing and D, the output H of the output O and the AND circuit 103 of the exclusive OR circuit 102
And an OR circuit 104 that takes the logical sum of
By controlling the clock signal of the up / down counter 59 by the output K of 04, the output E of the RS-FF circuit 101 is supplied to the clock signal control unit of the up / down counter 59 as in the optical coupling device of FIG. It is not necessary to use an RS-FF circuit that holds the radiated noise that has entered, and when the output delay circuit 55 is integrated, the chip size is reduced and the chip cost is reduced.
【0044】また、上記のように、アップダウンカウン
ト数が所定の数(ゼロカウントまたはフルカウント)に
なったとき、アップダウンカウンタ59のクロック信号
を停止させる構成とすることができるから、図2のタイ
ミングチャートのIIに示す様なノイズが入っても、アッ
プダウンカウンタ59のカウント数が2減じるだけで出
力の誤動作はないので、ノイズに対して出力の誤動作を
防止できる。As described above, the clock signal of the up / down counter 59 can be stopped when the up / down count number reaches a predetermined number (zero count or full count). Even if noise such as that shown by II in the timing chart is entered, output malfunction does not occur because the count number of the up / down counter 59 is decreased by 2 and thus output malfunction can be prevented.
【0045】ここで、コンパレータ54の出力Aとデコ
ーダ回路100のNAND回路69,OR回路70の出
力C,Dとをアップダウンカウンタ59のクロック信号
に同期させているD−FF回路60、およびアップダウ
ンカウンタ59のクロック信号にデコーダ回路100の
NAND回路69およびOR回路70の出力C,Dを同
期させている2つのD−FF回路105,106の動作
について説明する。Here, the output A of the comparator 54 and the NAND circuit 69 of the decoder circuit 100 and the outputs C and D of the OR circuit 70 are synchronized with the clock signal of the up / down counter 59, and the D-FF circuit 60. The decoder circuit 100 receives the clock signal of the down counter 59.
The output C of the NAND circuit 69 and OR circuit 70, the operation of the two D-FF circuits 105 and 106 is synchronized to D will be described.
【0046】アップダウンカウンタ59は、例えばU/
D端子での情報の取り込みをそのクロックの立下がりで
行い、カウントの出力をクロックパルスの立上がりで行
うとすると、アップカウントとダウンカウントの切り換
えがクロックパルスの立上がりで行われた場合、アップ
ダウンカウンタ59はアップカウントになるか、ダウン
カウントになるか分からず不安定な状態となる。この様
な状態を避けるため、D−FF回路60は、コンパレー
タ54の出力Aのアップダウンカウンタ59のクロック
信号に対して同期化を図ってアップダウンカウンタ59
へ伝え、図2に示すNAND回路112の出力IのPの
範囲でアップカウントとダウンカウントの切り換えを行
わせ、すなわちアップダウンカウンタ59のアップカウ
ント/ダウンカウントの切り換えをアップダウンカウン
タ59の安定な期間に行わせる。The up / down counter 59 is, for example, U /
Performs incorporation of information D terminals at the fall of the clock, when performing the count output at the rising edge of the clock pulse, if the switching of the up-count and Daunkau down bets is performed at the rising edge of the clock pulse, the up-down counter 59 is either count up, an unstable state does not know what goes down <br/> count down the door. In order to avoid such a state, the D-FF circuit 60 synchronizes with the clock signal of the up / down counter 59 of the output A of the comparator 54 and synchronizes with the up / down counter 59.
To convey, the P output I of the NAND circuit 112 shown in FIG. 2
To perform the switching between up-counting and Daunkau down preparative range, i.e. to perform switching of the up-count / Daunkau down bets of the up-down counter 59 in a stable period of the up-down counter 59.
【0047】先に述べた様に、アップダウンカウンタ5
9はクロックパルスの立上がりでその計数データを出力
するので、アップダウンカウンタ59がゼロカウントま
たはフルカウントになるや否やクロックパルスは停止す
るので、アップダウンカウンタ59の動作は不安定であ
る。これに対処するため、D−FF回路105,106
は、アップダウンカウンタ59のクロック信号にデコー
ダ回路100のNAND回路69およびOR回路70の
出力C,Dを同期させ、NAND回路69、OR回路7
0の出力状態の伝達を図2に示すNAND回路112の
出力IのPの範囲で行っている。すなわち、クロックパ
ルスの制御をD−FF回路105,106によって1/
4クロックパルスだけ遅らせることで、アップダウンカ
ウンタ59の出力動作を安定させている。As described above, the up / down counter 5
Since 9 outputs the count data at the rising edge of the clock pulse, the clock pulse is stopped as soon as the up / down counter 59 reaches zero count or full count, so that the operation of the up / down counter 59 is unstable. To deal with this, the D-FF circuits 105 and 106
Of the NAND circuit 69 and the OR circuit 70 of the decoder circuit 100 based on the clock signal of the up / down counter 59 .
The outputs C and D are synchronized, and the NAND circuit 69 and the OR circuit 7
The output state of 0 is transmitted in the range of P of the output I of the NAND circuit 112 shown in FIG. That is, the control of the clock pulse is controlled by the D-FF circuits 105 and 106 to 1 /.
The output operation of the up / down counter 59 is stabilized by delaying by 4 clock pulses.
【0048】このように、コンパレータ54の出力Aを
アップダウンカウンタ59のクロック信号に同期させる
ため、コンパレータ54とアップダウンカウンタ59と
の間にD−FF回路60を挿入し、これに加えてデコー
ダ回路100(NAND回路69、OR回路70)とR
S−FF回路101との間に、アップダウンカウンタ5
9のクロック信号にデコーダ回路100のNAND回路
69およびOR回路70の出力C,Dを同期させるため
の2つのD−FF回路105,106を挿入した構成と
することで、D−FF回路60およびD−FF回路10
5,106は、アップダウンカウンタ59のクロック信
号の立上がり時、立下がり時のどちらでもないときにデ
ータを読み込み出力することができ、安定な出力遅延機
能を持つ受光回路を構成できる。As described above, in order to synchronize the output A of the comparator 54 with the clock signal of the up / down counter 59, the D-FF circuit 60 is inserted between the comparator 54 and the up / down counter 59, and in addition, a decoder is provided. Circuit 100 (NAND circuit 69, OR circuit 70) and R
Between the S-FF circuit 101 and the up-down counter 5
NAND circuit of the decoder circuit 100 for the clock signal of 9
69 and two D-FF circuits 105 and 106 for synchronizing the outputs C and D of the OR circuit 70 are inserted, whereby the D-FF circuit 60 and the D-FF circuit 10 are inserted.
Reference numerals 5 and 106 can read and output data when the clock signal of the up / down counter 59 is neither rising nor falling, and thus a light receiving circuit having a stable output delay function can be configured.
【0049】なお、本発明は、上記実施例に限定される
ものではなく、本発明の範囲内で上記実施例に多くの修
正および変更を加え得ることは勿論である。It should be noted that the present invention is not limited to the above-described embodiment, and it goes without saying that many modifications and changes can be made to the above-described embodiment within the scope of the present invention.
【0050】[0050]
【発明の効果】以上の説明から明らかな通り、本発明請
求項1によると、OR回路の出力によってアップダウン
カウンタのクロック信号を制御できるから、アップダウ
ンカウンタのクロック信号制御回路部にRS型フリップ
フロップ回路を使用することなく、アップダウンカウン
タのクロック信号を制御して出力遅延機能を持たせるこ
とができるので、出力遅延回路を集積した場合にチップ
サイズの縮小化およびチップコストの低減化が実現でき
る。As is apparent from the above description, according to the first aspect of the present invention, the clock signal of the up / down counter can be controlled by the output of the OR circuit. Therefore, the RS type flip-flop is provided in the clock signal control circuit section of the up / down counter. Since the output delay function can be provided by controlling the clock signal of the up / down counter without using a delay circuit, the chip size and chip cost can be reduced when the output delay circuit is integrated. it can.
【0051】また、請求項2によると、コンパレータ側
のD型フリップフロップ回路と、デコーダ回路側の2つ
のD型フリップフロップ回路とにより、アップダウンカ
ウンタのクロック信号の立上がり時、立下がり時のどち
らでもないときに、アップダウンカウンタがデータを読
み込み出力するようになるから、アップダウンカウンタ
の動作は安定し、受光回路を安定して動作させることが
できる。According to a second aspect of the present invention, the D-type flip-flop circuit on the side of the comparator and the two D-type flip-flop circuits on the side of the decoder circuit determine whether the clock signal of the up-down counter rises or falls. When it is not, the up / down counter reads and outputs data, so that the operation of the up / down counter is stable and the light receiving circuit can be stably operated.
【図1】図1は本発明の一実施例に係る光結合装置の受
光部を示す回路ブロック図である。FIG. 1 is a circuit block diagram showing a light receiving portion of an optical coupling device according to an embodiment of the present invention.
【図2】図2は同じくそのタイミングチャートである。FIG. 2 is a timing chart of the same.
【図3】図3は従来例1に係る光結合装置の受光部を示
す回路図である。FIG. 3 is a circuit diagram showing a light receiving portion of an optical coupling device according to Conventional Example 1.
【図4】図4は従来例2に係る光結合装置の受光部を示
す回路ブロック図である。FIG. 4 is a circuit block diagram showing a light receiving portion of an optical coupling device according to a second conventional example.
【図5】図5は同じくそのタイミングチャートである。FIG. 5 is a timing chart of the same.
【図6】図6は先行技術に係る光結合装置の受光部を示
す回路ブロック図である。FIG. 6 is a circuit block diagram showing a light receiving portion of an optical coupling device according to a prior art.
【図7】図7は同じくそのタイミングチャートである。FIG. 7 is a timing chart of the same.
50,51 受光素子 52,53 アンプ 54 コンパレータ 55 出力遅延回路 58 発振器 59 アップダウンカウンタ 60 D−FF回路 69 NAND回路 70 OR回路 100 デコーダ回路 101 RS−FF回路 102 排他的OR回路 103 AND回路 104 OR回路 105,106 D−FF回路 50,51 Light receiving element 52,53 Amplifier 54 Comparator 55 Output delay circuit 58 Oscillator 59 Up / down counter 60 D-FF circuit 69 NAND circuit 70 OR circuit 100 Decoder circuit 101 RS-FF circuit 102 Exclusive OR circuit 103 AND circuit 104 OR Circuit 105, 106 D-FF circuit
Claims (2)
電気信号に変換して出力するものであって、受光部は、
発光部からの光信号を電気信号に変換するための受光素
子と、該電気信号を増幅するためのアンプと、該アンプ
出力をハイまたはローレベルのディジタル信号に変換す
るためのコンパレータと、前記ディジタル信号を遅延さ
せるための出力遅延回路とから構成され、該出力遅延回
路は、発振器と、該発振器の出力を分周した信号をクロ
ック信号として入力し、その入力信号に基づいてカウン
トするアップダウンカウンタとを備え、前記コンパレー
タの出力によってアップダウンカウンタのアップカウン
トとダウンカウントとを切り換える光結合装置におい
て、前記出力遅延回路に、アップダウンカウンタがフル
カウントのときにローレベルを出力するNAND回路お
よびゼロカウントのときにローレベルを出力するOR回
路で構成されるデコーダ回路と、該デコーダ回路のNA
ND回路およびOR回路の出力をセット信号およびリセ
ット信号とするRS型フリップフロップ回路と、該RS
型フリップフロップ回路の出力とコンパレータの出力と
の排他的論理和をとる排他的OR回路と、前記デコーダ
回路のNAND回路およびOR回路の出力の論理積をと
るAND回路と、前記排他的OR回路の出力と前記AN
D回路の出力との論理和をとる後段のOR回路とが設け
られ、該後段のOR回路の出力によって前記アップダウ
ンカウンタのクロック信号を制御し、前記RS型フリッ
プフロップ回路の出力を前記受光部の出力とすることを
特徴とする光結合装置。1. A light receiving section for converting an optical signal emitted from the light emitting section into an electric signal and outputting the electric signal.
Photoreceptor for converting the optical signal from the light emitting part to an electrical signal
Child, an amplifier for amplifying the electric signal, and the amplifier
Converts the output to a high or low level digital signal
And a comparator for delaying the digital signal.
And an output delay circuit for controlling the output of the oscillator. The output delay circuit inputs an oscillator and a signal obtained by dividing the output of the oscillator as a clock signal, and counts up based on the input signal. and a down-counter, the optical coupling device for switching between up-counting and Daunkau down bets of the up-down counter by the output of the comparator, the output delay circuit, the up-down counter is full
A NAND circuit that outputs a low level when counting
OR times to output low level at zero count
Circuit constituted by a channel and the NA of the decoder circuit
RS-type flip-flop circuit using outputs of ND circuit and OR circuit as set signal and reset signal, and RS
OR circuit for taking the exclusive OR of the output of the flip-flop circuit and the output of the comparator, an AND circuit for taking the logical product of the outputs of the NAND circuit and the OR circuit of the decoder circuit , and wherein the output AN
An OR circuit in the subsequent stage is provided for taking a logical sum of the output of D circuit controls the clock signal of the up-down counter by the output of the OR circuit of the subsequent stage, the RS-type flip
An optical coupling device , wherein the output of the flip-flop circuit is the output of the light receiving section .
コンパレータとアップダウンカウンタとの間に、コンパ
レータの出力とアップダウンカウンタのクロック信号と
を同期させるためのD型フリップフロップ回路が設けら
れ、デコーダ回路のNAND回路およびOR回路とRS
型フリップフロップ回路との間に、前記NAND回路お
よびOR回路の出力をアップダウンカウンタのクロック
信号に同期させるための2つのD型フリップフロップ回
路が設けられ、前記D型フリップフロップ回路が、アッ
プダウンカウンタのクロック信号の立上がり時、立下が
り時のどちらでもないときにデータを読み込み出力する
よう構成されたことを特徴とする光結合装置。2. The output delay circuit according to claim 1,
A D-type flip-flop circuit for synchronizing the output of the comparator and the clock signal of the up / down counter is provided between the comparator and the up / down counter, and the NAND circuit and OR circuit of the decoder circuit and RS are provided.
Type flip-flop circuit and the NAND circuit or
And two D-type flip-flop circuits for synchronizing the output of the OR circuit with the clock signal of the up / down counter. The D-type flip-flop circuit is provided when the clock signal of the up / down counter rises and falls. An optical coupling device characterized in that it is configured to read and output data when neither is the case.
Priority Applications (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP14007791A JP2671066B2 (en) | 1991-06-12 | 1991-06-12 | Optical coupling device |
| US07/764,923 US5182448A (en) | 1990-10-05 | 1991-09-24 | Photocoupler with improved anti-noise characteristics |
| DE4132999A DE4132999C2 (en) | 1990-10-05 | 1991-10-04 | Photocoupler |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP14007791A JP2671066B2 (en) | 1991-06-12 | 1991-06-12 | Optical coupling device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH04364605A JPH04364605A (en) | 1992-12-17 |
| JP2671066B2 true JP2671066B2 (en) | 1997-10-29 |
Family
ID=15260431
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP14007791A Expired - Fee Related JP2671066B2 (en) | 1990-10-05 | 1991-06-12 | Optical coupling device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2671066B2 (en) |
-
1991
- 1991-06-12 JP JP14007791A patent/JP2671066B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH04364605A (en) | 1992-12-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5412349A (en) | PLL clock generator integrated with microprocessor | |
| JPS6051043B2 (en) | Photoelectric switch | |
| US6498537B1 (en) | Phase comparison circuit having a controlled delay of an input signal | |
| US6897691B2 (en) | Phase locked loop with low steady state phase errors and calibration circuit for the same | |
| US4741000A (en) | Photoelectronic switch | |
| JPH04339410A (en) | Frequency multiplying circuit | |
| JP2000049579A (en) | Phase comparator | |
| US6351154B2 (en) | Phase detector | |
| US6304119B1 (en) | Timing generating apparatus with self-calibrating capability | |
| JP2671066B2 (en) | Optical coupling device | |
| US5519500A (en) | Synchronization signal generating circuit | |
| US5153725A (en) | Automatic frequency control circuit | |
| JP3455008B2 (en) | Optical signal demodulator | |
| JPS5999386A (en) | Photoelectric switch circuit | |
| JPS591990B2 (en) | Photoelectric detection device | |
| CN114123769B (en) | Dual-mode switching frequency control circuit | |
| JP2525138B2 (en) | Write compensation circuit | |
| JP3215149B2 (en) | Phase comparator | |
| JP3293044B2 (en) | Photoelectric switch | |
| EP0490273A2 (en) | Retiming circuit | |
| KR940006093Y1 (en) | Digital phase locked loop circuit | |
| JP2530588B2 (en) | Photoelectric switch | |
| JPH09139659A (en) | Clock duty ratio adjustment circuit | |
| JPH01253313A (en) | Photoelectric switch | |
| JPH04285422A (en) | Overvoltage detecting circuit |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |