JP3278791B2 - Electronic switch - Google Patents

Electronic switch

Info

Publication number
JP3278791B2
JP3278791B2 JP24697494A JP24697494A JP3278791B2 JP 3278791 B2 JP3278791 B2 JP 3278791B2 JP 24697494 A JP24697494 A JP 24697494A JP 24697494 A JP24697494 A JP 24697494A JP 3278791 B2 JP3278791 B2 JP 3278791B2
Authority
JP
Japan
Prior art keywords
circuit
output
short
signal
detection
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
JP24697494A
Other languages
Japanese (ja)
Other versions
JPH0888548A (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.)
Omron Corp
Original Assignee
Omron 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 Omron Corp filed Critical Omron Corp
Priority to JP24697494A priority Critical patent/JP3278791B2/en
Publication of JPH0888548A publication Critical patent/JPH0888548A/en
Application granted granted Critical
Publication of JP3278791B2 publication Critical patent/JP3278791B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Electronic Switches (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は光電スイッチ等の電子ス
イッチに関し、特に出力の保護回路に特徴を有する電子
スイッチに関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic switch such as a photoelectric switch, and more particularly to an electronic switch having a feature in an output protection circuit.

【0002】[0002]

【従来の技術】図8は従来の光電スイッチの一例を示す
ブロック図である。本図において発振回路1は一定周波
数のクロック信号を発生するクロック発振器であって、
投光回路2に入力される。投光素子2は投光素子、例え
ば発光ダイオード3を駆動するものである。反射型光電
スイッチでは、発光ダイオード3から出力された光が近
接する物体によって反射され、フォトダイオード4等の
受光素子によって検出される。フォトダイオード4の出
力は受光回路5,増幅回路6を介して比較回路7に入力
される。比較回路7は所定の閾値で入力信号を弁別する
ことによって物体の有無を判別するものであって、その
出力はゲート回路8を介して積分回路9に入力される。
ゲート回路8は投光クロックの周期毎にゲートを開放す
ることによって外乱のノイズ光による誤動作を防止する
ようにしたものであり、積分回路9は入力信号が所定時
間連続することによって物体の有無を判別するものであ
り、その出力は出力回路10に入力される。出力回路1
0は出力開閉用のスイッチングトランジスタQ1を駆動
するものである。そしてこの光電スイッチが二線式光電
スイッチの場合には、一対の端子11a,11bに直列
にスイッチングトランジスタQ1と短絡検知回路12が
接続される。短絡検知回路12はトランジスタQ1に直
列接続される過電流検出用の抵抗と、この両端の電圧が
所定値以上となれば導通する検知トランジスタ等によっ
て構成されており、端子11a,11b間を流れる過電
流を検出するものである。過電流検出出力は出力保護回
路13に与えられる。出力保護回路13は短絡の検知時
に出力回路10による出力を禁止とすると共に、一定時
間毎に復帰信号を出力する。この出力保護回路13は例
えば図8に示すようにコンデンサが接地端との間に接続
されており、短絡検知回路12からの検知信号に基づい
てコンデンサC1を放電する。
2. Description of the Related Art FIG. 8 is a block diagram showing an example of a conventional photoelectric switch. In FIG. 1, an oscillation circuit 1 is a clock oscillator that generates a clock signal having a constant frequency.
The light is input to the light emitting circuit 2. The light emitting element 2 drives a light emitting element, for example, a light emitting diode 3. In the reflection type photoelectric switch, light output from the light emitting diode 3 is reflected by a nearby object and detected by a light receiving element such as the photodiode 4. The output of the photodiode 4 is input to the comparison circuit 7 via the light receiving circuit 5 and the amplification circuit 6. The comparison circuit 7 discriminates the presence or absence of an object by discriminating the input signal with a predetermined threshold value, and the output is input to the integration circuit 9 via the gate circuit 8.
The gate circuit 8 prevents the malfunction due to disturbance noise light by opening the gate every period of the projection clock, and the integration circuit 9 determines the presence or absence of an object by the input signal continuing for a predetermined time. The output is input to the output circuit 10. Output circuit 1
0 drives the switching transistor Q1 for opening and closing the output. When the photoelectric switch is a two-wire photoelectric switch, the switching transistor Q1 and the short-circuit detection circuit 12 are connected in series to the pair of terminals 11a and 11b. The short-circuit detecting circuit 12 includes a resistor for detecting an overcurrent connected in series to the transistor Q1, and a detecting transistor or the like that becomes conductive when the voltage across the both ends becomes a predetermined value or more. It detects the current. The overcurrent detection output is given to the output protection circuit 13. The output protection circuit 13 prohibits the output from the output circuit 10 when a short circuit is detected, and outputs a return signal at regular intervals. The output protection circuit 13 has a capacitor connected to the ground terminal as shown in FIG. 8, for example, and discharges the capacitor C1 based on a detection signal from the short-circuit detection circuit 12.

【0003】図9は物体検知信号、短絡検知信号、コン
デンサC1の端子電圧、及び出力保護回路13から出力
回路10に出力される禁止信号の変化を示すタイムチャ
ートである。本図において、時刻t1に短絡検知回路12
によって短絡が検知されると、出力保護回路13に短絡
検知信号が出力され、コンデンサC1が放電される。そ
のため端子電圧は図示のように低下する。そして所定値
以下となれば出力の禁止信号が出力回路10に与えら
れ、出力がオフとなる。同時にトランジスタQ1もオフ
となるため、短絡検知回路12での短絡検知が停止す
る。そしてコンデンサC1は図示のように徐々に充電さ
れていき、一定値に達すると出力の禁止が解除される。
ここで負荷が短絡状態であれば出力は一旦オンとなる
が、再び短絡検知信号が短絡検知回路12より出力され
る。従ってコンデンサC1が再び放電することとなって
同様の動作を繰り返す。そして時刻t2以降に短絡状態が
解消していたものとすれば、以後出力の禁止が解除され
れば通常の動作に復帰することとなる。
[0003] Figure 9 is an object detection signal is a time chart showing the short circuit detection signal, the terminal voltage of the capacitor C1, and the change of the prohibition signal output from the output protection circuit 13 to the output circuit 10. In the figure, short circuit detection circuit 12 at time t 1
When a short circuit is detected, a short circuit detection signal is output to the output protection circuit 13, and the capacitor C1 is discharged. Therefore, the terminal voltage decreases as shown. When the output value becomes equal to or less than the predetermined value, an output prohibition signal is supplied to the output circuit 10, and the output is turned off. At the same time, the transistor Q1 is also turned off, and the short-circuit detection in the short-circuit detection circuit 12 stops. Then, the capacitor C1 is gradually charged as shown in the figure, and when it reaches a certain value, the inhibition of the output is released.
Here, if the load is in a short-circuit state, the output is once turned on, but the short-circuit detection signal is output from the short-circuit detection circuit 12 again. Therefore, the capacitor C1 is discharged again, and the same operation is repeated. And if that time t 2 after the short-circuit condition has been eliminated, so that the return to normal operation if it is released inhibited subsequent output.

【0004】[0004]

【発明が解決しようとする課題】しかしながらこのよう
な従来の方式では、コンデンサを利用しているためIC
回路に内蔵する際に外部接続用のピンが必要となる。又
コンデンサ自体も内蔵しようとすれば数pF程度しかチ
ップ化することができないため、出力禁止の時間が短く
なり、必要な時間を設定することができなくなるという
欠点があった。
However, in such a conventional system, since a capacitor is used, an IC is required.
A pin for external connection is required when incorporating it in a circuit. Further, if the capacitor itself is to be built in, only a few pF can be formed into a chip, so that the output prohibition time is shortened and the required time cannot be set.

【0005】本発明はこのような従来の問題点に鑑みて
なされたものであって、外部端子を用いることなく所定
時間の短絡復帰時間を得るようにすることを目的とす
る。
The present invention has been made in view of such a conventional problem, and has as its object to obtain a predetermined short-circuit recovery time without using an external terminal.

【0006】[0006]

【課題を解決するための手段】本願の請求項1の発明
は、クロック信号を発振する発振回路と、出力回路と、
出力の短絡状態を検知する短絡検知回路と、短絡検知回
路より得られる短絡検知信号に基づいて所定時間出力回
路からの出力を禁止する出力保護回路と、を含む電子ス
イッチであって、出力保護回路は、発振回路より入力さ
れる所定数のクロックの間連続して短絡検知信号が得ら
れることを検知するデジタルフィルタと、デジタルフィ
ルタより検知出力が得られたときに発振回路より入力さ
れる所定数のクロックを計数するカウンタと、デジタル
フィルタの検知出力によって出力回路を禁止状態とし、
カウンタの所定数の計数出力によって出力の禁止状態を
解除する保持部と、を具備し、発振回路は、前記保持部
から出力される出力禁止信号に基づいて発振周期を延長
することを特徴とするものである。
According to a first aspect of the present invention, there is provided an oscillation circuit for oscillating a clock signal, an output circuit,
A short circuit detection circuit for detecting a short circuit state of the output, an electronic switch comprising an output protection circuit for prohibiting the output of the predetermined time the output circuit based on the short-circuit detection signal obtained from the short circuit detection circuit, the output protection circuit Is a digital filter that detects that a short-circuit detection signal is continuously obtained for a predetermined number of clocks input from the oscillation circuit, and a predetermined number that is input from the oscillation circuit when a detection output is obtained from the digital filter. The output circuit is disabled by the counter that counts the clock of and the detection output of the digital filter.
A holding unit for canceling the output prohibition state by a predetermined number of count outputs of the counter , wherein the oscillation circuit comprises:
Oscillation cycle is extended based on output inhibit signal output from
It is characterized by doing .

【0007】[0007]

【0008】[0008]

【作用】このような特徴を有する本発明によれば、電子
スイッチにおいて短絡状態が発生すれば短絡検知回路に
よって短絡状態が検知され、出力保護回路に与えられ
る。出力保護回路は所定クロック周期連続して短絡検知
信号が得られたときに検知信号を出して保持部に出力す
る。保持部はこの信号に基づいて出力禁止信号を出力回
路に与えて出力を禁止状態とする。そして出力の禁止時
に発振回路のクロックを計数して所定のクロック数とな
ったときに出力禁止状態を解除すると共に、クロック周
期を長くし、これによってカウンタの計数値を小さくな
るようにしたものである。
According to the present invention having such features, if a short-circuit condition occurs in the electronic switch, the short-circuit detection circuit detects the short-circuit condition and supplies it to the output protection circuit. The output protection circuit outputs a detection signal to the holding unit when a short-circuit detection signal is obtained continuously for a predetermined clock cycle. The holding unit supplies an output prohibition signal to the output circuit based on this signal, and sets the output to a prohibition state. And when output is prohibited
The oscillation circuit clock is counted to
The output prohibition state is released when the clock
The period is lengthened, and thereby the count value of the counter is reduced.

【0009】[0009]

【実施例】図1は本発明の一実施例による電子スイッチ
の出力部の構成を示すブロック図である。本図において
従来例と同一部分は同一符号を付して詳細な説明を省略
する。本実施例においては短絡検知回路12の出力は出
力保護回路21に与えられる。出力保護回路21は図示
のように短絡検知信号が入力されるデジタルフィルタ2
2、デジタルフィルタ22からクリア信号が入力され発
振回路1のクロック信号を計数するカウンタ23、及び
デジタルフィルタ22とカウンタ23の出力が夫々入力
される保持部24から構成されている。
FIG. 1 is a block diagram showing a configuration of an output section of an electronic switch according to an embodiment of the present invention. In this figure, the same parts as those of the conventional example are denoted by the same reference numerals, and detailed description is omitted. In this embodiment, the output of the short-circuit detection circuit 12 is given to the output protection circuit 21. The output protection circuit 21 is a digital filter 2 to which a short-circuit detection signal is input as shown in FIG.
2, a counter 23 for receiving a clear signal from the digital filter 22 and counting the clock signal of the oscillation circuit 1, and a holding unit 24 to which the outputs of the digital filter 22 and the counter 23 are respectively input.

【0010】図2はこの出力保護回路21の詳細な構成
例を示す回路図である。本図においてデジタルフィルタ
22は図2に示すように3つのD型フリップフロップ2
2a〜22cを縦続接続して構成されるものであり、こ
れらのQバー出力はNOR回路22dに接続される。デ
ジタルフィルタ22は短絡検知信号が3クロック分連続
してHレベルとなったときに保持部24を構成するRS
フリップフロップ24aにセット信号を出力すると共
に、カウンタ23にクリア信号を出力する。カウンタ2
3は縦続接続された5ビット分のD型フリップフロップ
と、それらのQ出力を入力とするアンド回路23aによ
って構成されており、32クロックのパルスが入力され
たときにその論理積出力によって保持部24のRSフリ
ップフロップ24aをリセットするものである。
FIG. 2 is a circuit diagram showing a detailed configuration example of the output protection circuit 21. In this figure, the digital filter 22 has three D-type flip-flops 2 as shown in FIG.
2a to 22c are connected in cascade, and their Q bar outputs are connected to a NOR circuit 22d. When the short-circuit detection signal goes to the H level for three consecutive clocks, the digital filter 22
A set signal is output to the flip-flop 24a, and a clear signal is output to the counter 23. Counter 2
Reference numeral 3 denotes a cascade-connected 5-bit D-type flip-flop and an AND circuit 23a to which the Q output thereof is inputted. This resets the 24 RS flip-flops 24a.

【0011】次に本実施例の動作について図3に示すタ
イムチャートを用いて説明する。図3(a)は積分回路
9より出力される物体検知信号であって、物体の検知中
の時刻t3に短絡状態となったものとする。そうすれば過
電流が流れ、図3(b)に示すように短絡検知回路12
より短絡検知信号が出力される。この信号は図2に示す
デジタルフィルタ22に加えられ、3クロック分遅延さ
れ、3クロック連続して短絡検知信号が得られたときに
RSフリップフロップ24aがセットされ、同時にカウ
ンタ23がクリアされて計数が開始される。そして図2
の回路ではカウンタ23がパルスを計数し、図3(d)
に示すように32パルス目の時刻t4にアンド回路23a
がHレベルに反転して、RSフリップフロップ24aが
リセットされる。そのため図3(e)に示すように一旦
出力禁止状態が解除される。ここで短絡状態が続いてい
る場合には再び短絡検知回路12によって短絡が検知さ
れ、短絡検知信号がデジタルフィルタ22に加えられ
る。従って同様の動作を繰り返すこととなる。そして短
絡状態でなくなれば次の復帰時に短絡検知信号が得られ
ないため、以後カウンタ23がカウントアップしてRS
フリップフロップがリセットされたときに元の状態に復
帰することとなる。
Next, the operation of the embodiment will be described with reference to a time chart shown in FIG. 3 (a) is a object detection signal outputted from the integrating circuit 9, and that a short circuit state at the time t 3 in the detection of an object. Then, an overcurrent flows, and as shown in FIG.
A short-circuit detection signal is output. This signal is applied to the digital filter 22 shown in FIG. 2 and is delayed by three clocks. When a short-circuit detection signal is obtained for three consecutive clocks, the RS flip-flop 24a is set, and at the same time, the counter 23 is cleared and counted. Is started. And FIG.
In the circuit of FIG. 3, the counter 23 counts the pulses, and FIG.
AND circuit 23a to the time t 4 in the 32 th pulse as shown in
Is inverted to the H level, and the RS flip-flop 24a is reset. Therefore, the output prohibition state is temporarily released as shown in FIG. If the short circuit continues, the short circuit is detected again by the short circuit detection circuit 12, and a short circuit detection signal is applied to the digital filter 22. Therefore, the same operation is repeated. Then, if the short-circuit state disappears, a short-circuit detection signal cannot be obtained at the next recovery.
When the flip-flop is reset, it returns to the original state.

【0012】このように本発明では、コンデンサの充放
電でなくデジタルフィルタとカウンタを用いて出力禁止
状態を周期的に解除するようにしているため、他の回路
ブロックと共にIC化して構成することができ、回路構
成を極めて簡単にすることができる。又外乱に対する安
定性が高く誤動作が起き難いという効果も得られる。
As described above, according to the present invention, the output prohibition state is periodically released by using a digital filter and a counter instead of charging / discharging the capacitor. Therefore, the present invention can be configured as an IC together with other circuit blocks. The circuit configuration can be extremely simplified. Further, an effect that stability against disturbance is high and a malfunction hardly occurs can be obtained.

【0013】次に本発明の第2実施例について説明す
る。本実施例では短絡保護時に用いられるカウンタの段
数を小さくするため、発振回路の発振周波数を変化させ
るようにしたものである。図4は本実施例による光電ス
イッチの全体構成を示すブロック図であり、図5はその
発振回路を示す図である。本図において前述した第1実
施例と同一部分は同一符号を付して詳細な説明を省略す
る。本実施例では出力保護回路21は第1実施例と同一
の構成を有するものとし、その出力禁止信号は出力回路
10と同時に発振回路31にも発振周期の切換信号とし
て出力される。発振回路31はこの出力禁止信号に基づ
いて発振の周期を長くするように切換えるものである。
Next, a second embodiment of the present invention will be described. In this embodiment, the oscillation frequency of the oscillation circuit is changed in order to reduce the number of stages of the counter used for short-circuit protection. FIG. 4 is a block diagram showing the overall configuration of the photoelectric switch according to the present embodiment, and FIG. 5 is a diagram showing an oscillation circuit thereof. In this figure, the same parts as those in the first embodiment described above are denoted by the same reference numerals, and detailed description is omitted. In this embodiment, the output protection circuit 21 has the same configuration as that of the first embodiment, and its output prohibition signal is output to the oscillation circuit 31 simultaneously with the output circuit 10 as an oscillation cycle switching signal. The oscillation circuit 31 switches so as to lengthen the oscillation cycle based on the output inhibition signal.

【0014】発振回路31は図5に示すように、コンデ
ンサC2、抵抗R1,R2から成る時定数回路とコンパ
レータ31aを含んで構成されている。コンパレータ3
1aの非反転入力端子には電源電圧を分圧する抵抗R
3,R4が接続され、更にその出力端と入力端との間に
は抵抗R5が接続される。コンパレータ31aはその出
力を2つのトランジスタQ1,Q2を介して同相として
抵抗R2を介してコンデンサC2,抵抗R1の共通接続
点に帰還している。
As shown in FIG. 5, the oscillation circuit 31 includes a time constant circuit comprising a capacitor C2 and resistors R1 and R2, and a comparator 31a. Comparator 3
A non-inverting input terminal 1a has a resistor R for dividing the power supply voltage.
3 and R4 are connected, and a resistor R5 is connected between the output terminal and the input terminal. The output of the comparator 31a is fed back to the common connection point of the capacitor C2 and the resistor R1 via the resistor R2 with the output being in phase through the two transistors Q1 and Q2.

【0015】次にこの発振回路31の動作について図6
のタイムチャートを参照しつつ説明する。通常の動作で
は出力禁止信号はLレベルであるため、トランジスタQ
4はオフ、トランジスタQ5はオンとなって抵抗R1の
他端は接地状態となっている。この状態でコンデンサC
2に充放電が行われて一定の発振周期で発振している。
図6(a)に示すように曲線AはコンデンサC2の端子
電圧である。このような充放電によってコンパレータ3
1より所定の閾値で弁別されるため、トランジスタQ6
から図6(b)に示すクロック信号が出力されることと
なる。
Next, the operation of the oscillation circuit 31 will be described with reference to FIG.
This will be described with reference to the time chart of FIG. In normal operation, the output inhibit signal is at L level, so that the transistor Q
4 is off, transistor Q5 is on, and the other end of resistor R1 is grounded. In this state, the capacitor C
2 is charged and discharged and oscillates at a constant oscillation cycle.
As shown in FIG. 6A, a curve A represents a terminal voltage of the capacitor C2. By such charging and discharging, the comparator 3
Since the discrimination is made at a predetermined threshold from 1, the transistor Q6
As a result, the clock signal shown in FIG. 6B is output.

【0016】さて短絡状態となれば、前述したように短
絡検知回路12によって短絡が検知される。3クロック
間連続して短絡検知信号が与えられると、保持部24の
出力によって出力禁止信号が出される。このとき発振回
路31にも出力禁止信号が与えられるため、トランジス
タQ4がオン、トランジスタQ5がオフとなる。従って
抵抗R1のダイオード側には3ダイオード分(約2V)
の電位差が残ることとなってC1、R1,R2での充放
電の際の収束点が上昇する。従って図6(a)の曲線B
に示すように充放電の周期が長くなり、図6(c)に示
すようにクロックの周期が長くなる。従って同一の出力
禁止期間を設定するためにはカウンタ23の段数はより
少なくすることができ、又は同一の段数では長時間の出
力禁止状態を得ることができる。その他の構成は第1実
施例と同様である。
If a short circuit occurs, the short circuit is detected by the short circuit detecting circuit 12 as described above. When a short-circuit detection signal is supplied continuously for three clocks, an output inhibition signal is output by the output of the holding unit 24. At this time, the output inhibition signal is also supplied to the oscillation circuit 31, so that the transistor Q4 is turned on and the transistor Q5 is turned off. Therefore, three diodes (about 2 V) are provided on the diode side of the resistor R1.
, The convergence point at the time of charging / discharging at C1, R1 and R2 rises. Therefore, curve B in FIG.
As shown in FIG. 6, the charge / discharge cycle becomes longer, and as shown in FIG. 6C, the clock cycle becomes longer. Therefore, in order to set the same output prohibition period, the number of stages of the counter 23 can be reduced, or a long output prohibition state can be obtained with the same number of stages. Other configurations are the same as in the first embodiment.

【0017】図7は発振回路32の他の例を示す回路図
である。本図においてカレントミラー回路CM1は夫々
定電流源Io に接続された第1のトランジスタとエミッ
タ面積9s,10sの2つのトランジスタを有して構成
されており、その電流を夫々I1 ,I2 とする。このと
きI1 は9Io 、I2 は10Io となる。さて出力禁止
信号はトランジスタQ7のベースに与えられ、その出力
は反転されてトランジスタQ8に与えられる。トランジ
スタQ8のコレクタは電流源I1 に接続され、更に第2
のカレントミラー回路CM2に接続される。第1のカレ
ントミラー回路CM1のI2 の電流出力は、第2のカレ
ントミラー回路の他方のトランジスタ及び第3のカレン
トミラー回路CM3に接続される。カレントミラー回路
CM3の2つのトランジスタは夫々第4のカレントミラ
ー回路CM4に接続されている。カレントミラー回路C
M4のトランジスタは夫々1s,2sのエミッタ面積を
有するものとする。カレントミラー回路CM4の一端は
コンパレータ32aの反転入力端子に接続される。コン
パレータ32aの非反転入力端子は電源を分圧する抵抗
R6,R7の分圧回路に図示のように接続される。又ト
ランジスタQ9はそのコレクタが第4のカレントミラー
回路CM4の一端に接続されている。又トランジスタQ
10はコンパレータ32aの出力をクロック信号として
出力するトランジスタである。
FIG. 7 is a circuit diagram showing another example of the oscillation circuit 32. The current mirror circuit CM1 in the figure the first transistor and the emitter area 9s connected to each constant current source Io, which is configured with two transistors of the 10s, the current and respectively I 1, I 2 I do. In this case I 1 is 9Io, I 2 becomes 10Io. The output inhibit signal is applied to the base of transistor Q7, and its output is inverted and applied to transistor Q8. The collector of the transistor Q8 is connected to the current source I 1, further second
Is connected to the current mirror circuit CM2. Current outputs of I 2 of the first current mirror circuit CM1 is connected to the other transistor and the third current mirror circuit CM3 of the second current mirror circuit. The two transistors of the current mirror circuit CM3 are respectively connected to the fourth current mirror circuit CM4. Current mirror circuit C
The transistor M4 has an emitter area of 1 s and 2 s, respectively. One end of the current mirror circuit CM4 is connected to the inverting input terminal of the comparator 32a. The non-inverting input terminal of the comparator 32a is connected to a voltage dividing circuit of resistors R6 and R7 for dividing the power as shown in the figure. The collector of the transistor Q9 is connected to one end of the fourth current mirror circuit CM4. Transistor Q
Reference numeral 10 denotes a transistor that outputs the output of the comparator 32a as a clock signal.

【0018】さて本実施例の動作について説明する。通
常の動作時には出力禁止信号はLレベルであるため、ト
ランジスタQ7はオフ、Q8はオンとなっている。従っ
て第2のカレントミラー回路CM2が非動作状態となっ
て電流I2 がカレントミラー回路CM3に流れる。従
ってカレントミラー回路CM4,CM3を流れる電流I
4 ,I3 は夫々20Io ,10Io となる。従って
充電電流,放電電流はいずれも10Io となる。一方短
検知信号が3クロック分続いて出力禁止信号が出力さ
れると、トランジスタQ7はオン、Q8はオフとなる。
従ってカレントミラー回路CM2が動作し、CM3に流
入する電流は10Io −9Io 、即ちIo のみとなる。
そのため電流I4 は2Io 、I3 はIo となる。こ
のようにI3 ,I4 の値は1/10の値となること
により、コンデンサC3の充放電時間も10倍となる。
このため発振周期を10倍とすることができる。このよ
うに比較的簡単な構成で出力禁止時にクロック周期を長
くすることにより、出力保護回路21内のカウンタ23
の段数を小さくすることができる。
The operation of the embodiment will now be described. During normal operation, the output inhibition signal is at the L level, so that the transistor Q7 is off and the transistor Q8 is on. Therefore, the second current mirror circuit CM2 becomes inactive and the current I2 flows through the current mirror circuit CM3. Therefore, the current I flowing through the current mirror circuits CM4 and CM3
4 and I3 are 20Io and 10Io, respectively. Therefore, both the charging current and the discharging current are 10Io. On the other hand, when the output prohibition signal is output after the short circuit detection signal continues for three clocks, the transistor Q7 is turned on and the transistor Q8 is turned off.
Therefore, the current mirror circuit CM2 operates, and the current flowing into CM3 is 10Io-9Io, that is, only Io.
Therefore, the current I4 becomes 2Io and I3 becomes Io. Since the values of I3 and I4 are 1/10 in this way, the charging and discharging time of the capacitor C3 is also ten times.
Therefore, the oscillation cycle can be made ten times. By increasing the clock cycle when output is prohibited with a relatively simple configuration, the counter 23 in the output protection circuit 21
Can be reduced in number.

【0019】尚本実施例は光電スイッチについて説明し
ているが、本発明は光電スイッチに限らず近接スイッチ
等種々の電子スイッチに適用することができる。
Although the present embodiment describes a photoelectric switch, the present invention is not limited to a photoelectric switch, but can be applied to various electronic switches such as a proximity switch.

【0020】[0020]

【発明の効果】以上詳細に説明したように本発明によれ
ば、短絡検知があれば、一定時間毎に禁止状態を解除す
る出力保護回路をロジック回路で構成しているため、コ
ンデンサを必要とせず、誤動作がなく、又動作時間を確
実にすることができるという効果が得られる。又出力
回路も含めて信号処理回路ブロックをIC化すること
が容易となる。
As described above in detail, according to the present invention, if a short circuit is detected, the output protection circuit for releasing the prohibition state at regular intervals is constituted by a logic circuit, so that a capacitor is not required. Therefore, there is an effect that there is no malfunction and the operation time can be ensured. Output hold
This makes it easy to integrate the signal processing circuit block including the protection circuit into an IC.

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

【図1】本発明の第1実施例による光電スイッチの全体
構成を示すブロック図である。
FIG. 1 is a block diagram showing an overall configuration of a photoelectric switch according to a first embodiment of the present invention.

【図2】本発明の第1実施例による出力保護回路の回路
例を示す回路図である。
FIG. 2 is a circuit diagram showing a circuit example of an output protection circuit according to a first embodiment of the present invention.

【図3】本発明の第1実施例の動作を示すタイムチャー
トである。
FIG. 3 is a time chart showing the operation of the first embodiment of the present invention.

【図4】本発明の第2実施例による光電スイッチの全体
構成を示すブロック図である。
FIG. 4 is a block diagram showing an overall configuration of a photoelectric switch according to a second embodiment of the present invention.

【図5】本発明の第2実施例による光電スイッチの発振
回路の構成を示す回路図である。
FIG. 5 is a circuit diagram showing a configuration of an oscillation circuit of a photoelectric switch according to a second embodiment of the present invention.

【図6】本発明の第2実施例による発振回路の動作を示
すタイムチャートである。
FIG. 6 is a time chart illustrating an operation of the oscillation circuit according to the second embodiment of the present invention.

【図7】本発明の第2実施例による発振回路の他の例を
示す回路図である。
FIG. 7 is a circuit diagram showing another example of the oscillation circuit according to the second embodiment of the present invention.

【図8】従来の光電スイッチの全体構成を示すブロック
図である。
FIG. 8 is a block diagram showing the overall configuration of a conventional photoelectric switch.

【図9】従来の光電スイッチの短絡検知時の動作を示す
タイムチャートである。
FIG. 9 is a time chart showing an operation of a conventional photoelectric switch when a short circuit is detected.

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

1,31,32 発振回路 2 投光回路 3 発光ダイオード 4 フォトダイオード 5 受光回路 6 増幅器 7 比較回路 8 ゲート回路 9 積分回路 10 出力回路 12 短絡検知回路 21 出力保護回路 22 デジタルフィルタ 23 カウンタ 24 保持部 CM1〜CM4 カレントミラー回路 1, 31, 32 Oscillation circuit 2 Light emitting circuit 3 Light emitting diode 4 Photodiode 5 Light receiving circuit 6 Amplifier 7 Comparison circuit 8 Gate circuit 9 Integrating circuit 10 Output circuit 12 Short circuit detection circuit 21 Output protection circuit 22 Digital filter 23 Counter 24 Holder CM1 to CM4 Current mirror circuit

フロントページの続き (56)参考文献 特開 平6−164353(JP,A) 特開 平5−14160(JP,A) 実開 平2−23121(JP,U) 実願 昭63−98982号(実開 平2− 23121号)の願書に添付した明細書及び 図面の内容を撮影したマイクロフィルム (JP,U)Continuation of the front page (56) References JP-A-6-164353 (JP, A) JP-A-5-14160 (JP, A) JP-A-2-23121 (JP, U) JP-A-63-98982 ( Microfilm (JP, U) photographing the contents of the specification and drawings attached to the application form

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 クロック信号を発振する発振回路と、出
力回路と、出力の短絡状態を検知する短絡検知回路と、
前記短絡検知回路より得られる短絡検知信号に基づいて
所定時間前記出力回路からの出力を禁止する出力保護
路と、を含む電子スイッチにおいて、 前記出力保護回路は、前記発振回路より入力される所定
数のクロックの間連続して短絡検知信号が得られること
を検知するデジタルフィルタと、 前記デジタルフィルタより検知出力が得られたときに前
記発振回路より入力される所定数のクロックを計数する
カウンタと、 前記デジタルフィルタの検知出力によって出力回路を禁
止状態とし、前記カウンタの所定数の計数出力によって
出力の禁止状態を解除する保持部と、を具備し、 前記発振回路は、前記保持部から出力される出力禁止信
号に基づいて発振周期を延長することを特徴とする 電子
スイッチ。
An oscillation circuit for oscillating a clock signal, an output circuit, a short-circuit detection circuit for detecting a short-circuit state of an output,
An electronic switch comprising an output protection times <br/> circuit for prohibiting the output of a predetermined time the output circuit based on the short-circuit detection signal obtained from the short circuit detection circuit, the output protection circuit, from the oscillation circuit A digital filter for detecting that a short-circuit detection signal is continuously obtained during a predetermined number of input clocks; and a predetermined number of clocks input from the oscillation circuit when a detection output is obtained from the digital filter. a counter for counting, and prohibiting state output circuit by the detection output of the digital filter, anda holding portion for releasing the disabled state of the output by a predetermined number of count output of said counter, said oscillator circuit, the holding Output inhibit signal output from
An electronic switch characterized by extending an oscillation period based on a signal .
JP24697494A 1994-09-14 1994-09-14 Electronic switch Expired - Fee Related JP3278791B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP24697494A JP3278791B2 (en) 1994-09-14 1994-09-14 Electronic switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP24697494A JP3278791B2 (en) 1994-09-14 1994-09-14 Electronic switch

Publications (2)

Publication Number Publication Date
JPH0888548A JPH0888548A (en) 1996-04-02
JP3278791B2 true JP3278791B2 (en) 2002-04-30

Family

ID=17156498

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24697494A Expired - Fee Related JP3278791B2 (en) 1994-09-14 1994-09-14 Electronic switch

Country Status (1)

Country Link
JP (1) JP3278791B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6301755B2 (en) * 2014-06-27 2018-03-28 パナソニック デバイスSunx株式会社 Detection sensor and detection sensor control method
JP7392831B2 (en) * 2020-03-31 2023-12-06 富士電機株式会社 semiconductor equipment

Also Published As

Publication number Publication date
JPH0888548A (en) 1996-04-02

Similar Documents

Publication Publication Date Title
KR100668650B1 (en) Clock generating circuit and clock generating method
JPH0448004B2 (en)
JP3278791B2 (en) Electronic switch
US5467053A (en) Circuit for filtering a signal and integrated circuit comprising such a circuit
US4977477A (en) Short-circuit protected switched output circuit
US3995234A (en) Ringing oscillator including a resonant circuit with frequency divider feedback loop
JP2921494B2 (en) Oscillation circuit
JP3293044B2 (en) Photoelectric switch
JPS61139776A (en) Photoelectric switch
JP3451346B2 (en) Photoelectric switch and integrated circuit thereof
GB2136648A (en) Trigger circuit
JPH0423510A (en) Power supply frequency detection circuit
JPH0464208B2 (en)
SU1750046A1 (en) Transistor key with protection against current overload
JP3230589B2 (en) Proximity switch
JPH04129321A (en) Delay circuit
JPH0832362A (en) Protection circuit for dc power supply
JPS60137131A (en) Lock detecting circuit
KR960005483Y1 (en) Schumitted circuit
SU429539A1 (en) DEVICE FOR ACCOUNT AND DIVIDING FREQUENCY FOLLOWING PULSES
JP2884808B2 (en) Connection sequence control circuit for multiple power supplies
JPH04326802A (en) Oscillation circuit
JP2642950B2 (en) Semiconductor integrated circuit
JPH0334254B2 (en)
JPH01221018A (en) Time constant circuit

Legal Events

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