JPH0124372B2 - - Google Patents

Info

Publication number
JPH0124372B2
JPH0124372B2 JP7513280A JP7513280A JPH0124372B2 JP H0124372 B2 JPH0124372 B2 JP H0124372B2 JP 7513280 A JP7513280 A JP 7513280A JP 7513280 A JP7513280 A JP 7513280A JP H0124372 B2 JPH0124372 B2 JP H0124372B2
Authority
JP
Japan
Prior art keywords
signal
comparison
delay
comparison means
output
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
Application number
JP7513280A
Other languages
Japanese (ja)
Other versions
JPS572120A (en
Inventor
Yasukazu Sano
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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP7513280A priority Critical patent/JPS572120A/en
Publication of JPS572120A publication Critical patent/JPS572120A/en
Publication of JPH0124372B2 publication Critical patent/JPH0124372B2/ja
Granted legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K5/00Manipulating of pulses not covered by one of the other main groups of this subclass
    • H03K5/01Shaping pulses
    • H03K5/08Shaping pulses by limiting; by thresholding; by slicing, i.e. combined limiting and thresholding

Landscapes

  • Physics & Mathematics (AREA)
  • Nonlinear Science (AREA)
  • Manipulation Of Pulses (AREA)

Description

【発明の詳細な説明】 本発明は、アナログ入力信号の立上り部分、及
び立下り部分においても、入力信号を正確に二値
化することができる二値化回路に関するものであ
る。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a binarization circuit that can accurately binarize an input signal even during rising and falling portions of an analog input signal.

工業製品の品質検査、プリント基板のパターン
検査等を自動的に行なう場合、被検査物体をテレ
ビカメラ等で撮像して電気信号に変換し、この電
気信号を適当な閾値レベルと比較して二値化し、
この二値信号を基にして疵、欠陥等の判定が行わ
れている。このような信号の二値化を行なう場
合、従来は例えば第1図に示す浮動レベル方式に
よる二値化回路が多く採用されている。同図にお
いてCOMP1,COMP2は比較器、DATは遅
延・減衰回路、ANDはアンドゲートである。ま
た第2図は第1図の動作説明図である。
When automatically performing quality inspections of industrial products, pattern inspections of printed circuit boards, etc., the object to be inspected is imaged with a television camera, etc., converted to an electrical signal, and this electrical signal is compared with an appropriate threshold level to generate a binary value. turned into
Determination of flaws, defects, etc. is performed based on this binary signal. When such signals are to be binarized, conventionally, a floating level binarization circuit as shown in FIG. 1, for example, has often been employed. In the figure, COMP1 and COMP2 are comparators, DAT is a delay/attenuation circuit, and AND is an AND gate. Further, FIG. 2 is an explanatory diagram of the operation of FIG. 1.

第1図に示す二値化回路に第2図Aの実線で示
す信号が入力されたとすると、遅延・減衰回路
DATの出力信号は同図の破線で示すものとなる。
比較器COMP1は、この遅延・減衰回路DATの
出力信号を浮動基準レベルとして入力信号と比較
し、例えば同図Bに示すような二値信号を出力す
る。また比較器COMP2は、入力信号と同図A
の一点破線STDに示すような固定レベル閾値と
を比較して、同図Cに示すゲート信号を出力す
る。従つてアンドゲートANDから出力される信
号は、同図Dに示すように、バツクグラウンドの
影響を受けないものとなる。しかし同図Dから明
らかなように、入力信号の立下り部分に存在する
ノイズの影響により発生するチヤツタ状ノイズイ
を除去することができないという欠点があつた。
If the signal shown by the solid line in Fig. 2A is input to the binarization circuit shown in Fig. 1, the delay/attenuation circuit
The output signal of the DAT is shown by the broken line in the figure.
The comparator COMP1 compares the output signal of the delay/attenuation circuit DAT with the input signal as a floating reference level, and outputs a binary signal as shown in FIG. 1B, for example. Also, the comparator COMP2 is connected to the input signal A in the same figure.
A gate signal shown in C in the same figure is output by comparing with a fixed level threshold value as shown in the dotted line STD. Therefore, the signal output from the AND gate AND is not affected by the background, as shown in FIG. However, as is clear from FIG. D, there is a drawback in that it is not possible to remove the chatter-like noise caused by the influence of noise present in the falling portion of the input signal.

本発明は上述した従来の欠点に鑑みてなされた
ものであり、その目的とするところは、立上り部
及び立下り部のいずれにおいてもチヤツタを生じ
ない高感度の二値化回路を提供することにある。
The present invention has been made in view of the above-mentioned drawbacks of the conventional art, and its purpose is to provide a highly sensitive binarization circuit that does not produce any chatter in either the rising or falling portions. be.

以下本発明の詳細を実施例により説明する。 The details of the present invention will be explained below with reference to Examples.

第3図は本発明の一実施例のブロツク図であ
り、1は逆転サンプルホールド回路、2は演算増
幅器、3乃至5は遅延回路、6乃至9は比較回
路、10はタイマ回路、11乃至13は論理ゲー
トである。
FIG. 3 is a block diagram of an embodiment of the present invention, in which 1 is an inversion sample and hold circuit, 2 is an operational amplifier, 3 to 5 are delay circuits, 6 to 9 are comparison circuits, 10 is a timer circuit, 11 to 13 is a logic gate.

入力端子18は二値化の対象となる適宜な波形
のアナログ信号を受けるが、本実施例において
は、観測対象物表面の欠陥を検出するためセンサ
として機能するテレビカメラ(図示せず)から第
4図に示すような波形のビデオ信号40を受ける
ものとする。テレビカメラの観測対象物の明度が
背景レベルよりも高いものとすれば、背景黒レベ
ル及び観測対象物の信号はそれぞれ信号38,3
9で示すようなものとなる。41は水平同期信号
である。通常、黒レベル38は動作温度、対象物
の照射条件などにより変化する。このように変動
する黒レベル38をサンプルするために、第3図
の入力端子19にサンプル指令信号42が供給さ
れる。ビデオ信号の波形39は、検査対象物に欠
陥がなければ第4図の実線で例示するように一様
であるが、欠陥のある場合には点線で例示するよ
うな欠陥信号67が含まれる。
The input terminal 18 receives an analog signal with an appropriate waveform to be binarized. It is assumed that a video signal 40 having a waveform as shown in FIG. 4 is received. Assuming that the brightness of the object to be observed by the television camera is higher than the background level, the background black level and the signal of the object to be observed are signals 38 and 3, respectively.
The result will be as shown in 9. 41 is a horizontal synchronization signal. Normally, the black level 38 changes depending on the operating temperature, the illumination conditions of the object, and the like. In order to sample the black level 38 that varies in this manner, a sample command signal 42 is supplied to the input terminal 19 of FIG. The waveform 39 of the video signal is uniform as illustrated by the solid line in FIG. 4 if there is no defect in the object to be inspected, but if there is a defect, a defect signal 67 as illustrated by the dotted line is included.

逆転サンプルホールド回路1は、ビデオ信号4
0及びサンプル指令信号42を受けて、黒レベル
38と逆符号で同一絶対値の電圧を演算増幅器2
に出力する。演算増幅器2は、上記の入力電圧及
びビデオ信号40との加算正転増幅を行い、第5
図に示すようなAビデオ信号20を出力する。
The inverted sample and hold circuit 1 receives the video signal 4
0 and the sample command signal 42, the operational amplifier 2 outputs a voltage having the same absolute value and opposite sign to the black level 38.
Output to. The operational amplifier 2 performs addition and non-rotation amplification of the input voltage and the video signal 40, and the fifth
An A video signal 20 as shown in the figure is output.

すなわち、逆転サンプルホールド回路1は、サ
ンプルホールド指令信号42を受けてビデオ信号
の40中の黒レベル38をサンプルホールドし、
これと逆符号同一絶対値の信号を演算増幅器2に
出力する。演算増幅器2は、上記逆転サンプルホ
ールド回路1の出力信号とビデオ信号40とを加
算増幅することにより、黒レベルをゼロレベルに
一致させた信号を作成し、さらにこの信号に負バ
イアス源Eからの負電圧を加算し、第5図の20
に示すように、ビデオ信号40の黒レベル38を
負側に一定量だけシフトしたAビデオ信号20を
出力する。
That is, the reverse sample and hold circuit 1 receives the sample and hold command signal 42 and samples and holds the black level 38 out of 40 of the video signal.
A signal having the same absolute value and the opposite sign is output to the operational amplifier 2. The operational amplifier 2 adds and amplifies the output signal of the inversion sample and hold circuit 1 and the video signal 40 to create a signal in which the black level matches the zero level. Add the negative voltage to 20 in Figure 5.
As shown in FIG. 2, an A video signal 20 is output in which the black level 38 of the video signal 40 is shifted by a certain amount to the negative side.

このように回路1及び2はアナログ信号である
ビデオ信号40を一定量だけ負側にシフトするシ
フト手段を構成する。
In this way, the circuits 1 and 2 constitute a shift means for shifting the video signal 40, which is an analog signal, by a certain amount to the negative side.

Aビデオ信号20は第1の信号発生手段である
比較回路6に入力するが、この比較回路の他方の
入力端子は固定閾値発生回路56に接続されてお
り、第5図に示すような固定閾値電圧55を受け
る。これにより比較回路6は、第5図に示すよう
な波形の第1の信号であるWiDTH信号32を出
力する。WiDTH信号32はアンドゲート13及
びタイマ回路10に入力する。タイマ回路10
は、WiDTH信号32をトリガ信号として
WiDTH信号と共に立上る第2の信号、即ち短信
号であるCUT1信号28、中信号であるCTU2信
号29及び長信号であるCTU3信号30を発生す
る。タイマ回路10の構成の詳細について後述す
る。
The A video signal 20 is input to a comparator circuit 6 which is a first signal generating means, and the other input terminal of this comparator circuit is connected to a fixed threshold value generating circuit 56, which generates a fixed threshold value as shown in FIG. It receives voltage 55. As a result, the comparator circuit 6 outputs the WiDTH signal 32, which is the first signal having a waveform as shown in FIG. The WiDTH signal 32 is input to the AND gate 13 and the timer circuit 10. Timer circuit 10
uses WiDTH signal 32 as a trigger signal.
Second signals that rise together with the WiDTH signal, that is, a short signal CUT1 signal 28, a medium signal CTU2 signal 29, and a long signal CTU3 signal 30 are generated. The details of the configuration of the timer circuit 10 will be described later.

第3図において、Aビデオ信号20を適宜な遅
延手段例えば減衰のある受動的な遅延素子3,4
5のそれぞれを介して遅延させGND信号31
(第5図)に対して減衰させることにより同順に
Bビデオ信号21、Cビデオ信号22、Dビデオ
信号23を作成する。これらの各ビデオ信号2
1,22,23は減衰手段である可変抵抗器16
もしくは17を介してもしくは直接に比較手段で
ある比較回路7,8,9に入力し、比較出力であ
るCMP11信号33、CMP12信号35、CMP13
信号36を発生する。まずCMP11信号33につ
いて説明する。
In FIG. 3, the A video signal 20 is transferred to a suitable delay means such as attenuated passive delay elements 3, 4.
GND signal 31 delayed through each of 5
(FIG. 5), a B video signal 21, a C video signal 22, and a D video signal 23 are created in the same order. Each of these video signals 2
1, 22, 23 are variable resistors 16 which are damping means.
Alternatively, the CMP11 signal 33, the CMP12 signal 35, and the CMP13 signal are inputted to the comparison circuits 7, 8, and 9, which are comparison means, via the signal 17 or directly, and are the comparison outputs.
A signal 36 is generated. First, the CMP11 signal 33 will be explained.

Aビデオ信号20は可変抵抗器17で適宜量減
衰されてAビデオ11信号25となり、抵抗器を介
して第1の比較手段である例えば演算増幅器を用
いた比較回路7の反転入力端子に入力する。Aビ
デオ11信号25は、Bビデオ信号21よりも遅延
量は小さいが、可変抵抗器17によつて、Bビデ
オ信号21よりも減衰されている。一方この反転
入力端子は、トランジスタ15を介して接地され
ており、このトランジスタのオン・オフは積分回
路14を介してCUT1信号28により制御され
る。積分回路14の好適例は、充電時定数が放電
時定数よりも十分短くなるように、ダイオードを
含んで構成されるものである。
The A video signal 20 is attenuated by a suitable amount by a variable resistor 17 to become an A video 11 signal 25, which is input via the resistor to the inverting input terminal of a comparator circuit 7 using an operational amplifier, which is the first comparison means. . Although the A video 11 signal 25 has a smaller delay amount than the B video signal 21, it is attenuated more than the B video signal 21 by the variable resistor 17. On the other hand, this inverting input terminal is grounded via a transistor 15, and the ON/OFF state of this transistor is controlled by the CUT1 signal 28 via the integrating circuit 14. A preferred example of the integrating circuit 14 is one that includes a diode so that the charging time constant is sufficiently shorter than the discharging time constant.

第6図に示すように、Aビデオ11信号25が立
上つて短時間後にCUT1信号28が立上る。この
ため、積分回路14が急速に充電されてトランジ
スタ15が直ちにオンとなり、Aビデオ11信号は
その立上りの直後において急速にGND信号31
に降下する。この状態が一定期間継続したのち、
CUT1信号28が立下る。これに伴つて積分回路
14が徐々に放電し、トランジスタ15が徐々に
オフ状態に漸近する。この結果比較回路7の反転
入力端子に入力するAビデオ12信号26の波形は
第6図に例示するものとなる。その結果、Aビデ
オ12信号26とBビデオ信号21は、前者が
GND信号31にある間すなわちCUT1信号28
が高レベルにある間、極めて鋭い角度で交叉す
る。Aビデオ12信号26がこのような波形となつ
ているため、欠陥検出感度を高める目的で可変抵
抗器17の調整により信号21と26を接近させ
ても、交叉部分の近傍におけるチヤツタの発生が
回避され、第7図に示すように立上り部分に存在
する微小な欠陥を検出することが可能である。
As shown in FIG. 6, the CUT1 signal 28 rises a short time after the A video 11 signal 25 rises. Therefore, the integrating circuit 14 is rapidly charged and the transistor 15 is immediately turned on, and the A video 11 signal rapidly changes to the GND signal 31 immediately after its rise.
descend to After this state continues for a certain period of time,
CUT1 signal 28 falls. Along with this, the integrating circuit 14 gradually discharges, and the transistor 15 gradually approaches the off state. As a result, the waveform of the A video 12 signal 26 input to the inverting input terminal of the comparison circuit 7 is as shown in FIG. As a result, the A video 12 signal 26 and the B video signal 21 are
While in GND signal 31, that is, CUT1 signal 28
intersects at a very sharp angle while is at a high level. Since the A video 12 signal 26 has such a waveform, even if the signals 21 and 26 are brought closer together by adjusting the variable resistor 17 in order to increase the defect detection sensitivity, the occurrence of chatter near the intersection can be avoided. As shown in FIG. 7, it is possible to detect minute defects present in the rising portion.

以上要するにAビデオ12信号26とBビデオ信
号21とは波形の立上り部分で鋭角的に交叉する
ことによりチヤツタの発生を防止しているが、
CUT1信号28はこのチヤツタ発生防止期間を定
める機能を果す。本実施例では、Aビデオ信号2
0とBビデオ信号21とを用いて、比較回路7か
らCMP11信号33を出力しているが、例えば、
Aビデオ信号20の代りにBビデオ信号21を、
Bビデオ信号21の代りにCビデオ信号22を用
いても良い。この場合Bビデオ信号21はCビデ
オ信号22よりも遅延量が小さく、かつ可変抵抗
器17によりBビデオ信号21よりも減衰され
て、比較回路7に入力される。
In short, the A video 12 signal 26 and the B video signal 21 cross each other at an acute angle at the rising edge of their waveforms to prevent the occurrence of chatter.
The CUT1 signal 28 functions to determine this chatter prevention period. In this embodiment, A video signal 2
0 and the B video signal 21, the comparison circuit 7 outputs the CMP11 signal 33. For example,
B video signal 21 instead of A video signal 20,
The C video signal 22 may be used instead of the B video signal 21. In this case, the B video signal 21 has a smaller delay amount than the C video signal 22, is attenuated by the variable resistor 17 more than the B video signal 21, and is input to the comparator circuit 7.

次にCMP12信号35及びCMP12′信号35′に
ついて説明する。第3図に示すように、Bビデオ
信号21とAビデオ11信号25とを第2の比較手
段である比較回路8で比較してCMP12信号35
を得る。次に第2の論理手段であるオアゲート1
1において上記の信号35とCUT2信号29との
オア論理を行つてCMP12′信号35′を得、これ
を第1の論理手段であるアンド回路13に入力す
る。このときのタイムチヤートを良品及び不良品
の場合について、それぞれ第8図及び第9図に示
す。可変抵抗器17を調整して信号21と25を
接近させ欠陥検出感度を上げようとすれば、
CMP12信号35は立上り部でチヤツタを生じ易
くなるので、これとCUT2信号29とのオア論理
をとり、チヤツタの発生を防止している。このた
め、CUT2信号29が高レベルの間はCMP12信
号35による欠陥検出機能は不能とされ、
CMP12信号35の欠陥検出機能はCUT2信号2
9の立下り後だけに限定される。
Next, the CMP12 signal 35 and CMP12' signal 35' will be explained. As shown in FIG. 3, the B video signal 21 and the A video 11 signal 25 are compared by a comparison circuit 8, which is a second comparison means, and a CMP12 signal 35 is generated.
get. Next, the second logical means, OR gate 1
1, the above signal 35 and the CUT2 signal 29 are ORed to obtain a CMP12' signal 35', which is input to the AND circuit 13, which is the first logic means. Time charts at this time are shown in FIGS. 8 and 9 for non-defective products and defective products, respectively. If you try to adjust the variable resistor 17 to bring the signals 21 and 25 closer together to increase the defect detection sensitivity,
Since the CMP12 signal 35 tends to cause chatter at the rising edge, OR logic is performed between this signal and the CUT2 signal 29 to prevent the occurrence of chatter. Therefore, while the CUT2 signal 29 is at a high level, the defect detection function by the CMP12 signal 35 is disabled.
The defect detection function of CMP12 signal 35 is CUT2 signal 2
It is limited to only after the falling edge of 9.

次にCMP13信号36及びCMP13′信号36′に
ついて説明する。前述したCMP11信号33,
CMP12信号35は、第6図乃至第9図に示すよ
うに、比較すべき二つの信号のうち遅延量が小さ
い方の信号の振幅をより減衰させているので、波
形の立上り部分の欠陥を検出するには好適である
が立下り部分の欠陥検出には不適である。そこで
第3図の構成図及び第10図、第11図の波形図
に示すように、Cビデオ信号22よりも遅延量の
大きなDビデオ信号23を可変抵抗器16で減衰
させて、Cビデオ信号22よりも減衰したDビデ
オ1信号24を得、この信号とCビデオ信号22
との比較を第3の比較手段である比較回路9で行
つてCMP13信号36を得ている。第10図は欠
陥のない場合、第11図は欠陥のある場合である
が、信号の立下り部分の欠陥の検出が容易な構成
となつている。この場合においても、欠陥検出感
度を高めようとすれば波形の立上り部分でチヤツ
タが発生するので、第3の論理手段であるオアゲ
ート12においてCMP13信号36とCUT3信号
30とのオア論理をとつてCMP13′信号36′を
得ることにより、このような難点を解消してい
る。
Next, the CMP13 signal 36 and CMP13' signal 36' will be explained. The CMP11 signal 33 mentioned above,
As shown in FIGS. 6 to 9, the CMP12 signal 35 attenuates the amplitude of the signal with the smaller delay amount among the two signals to be compared, so defects in the rising portion of the waveform can be detected. However, it is not suitable for detecting defects in the falling part. Therefore, as shown in the configuration diagram of FIG. 3 and the waveform diagrams of FIGS. 10 and 11, the D video signal 23 having a larger delay amount than the C video signal 22 is attenuated by the variable resistor 16, and the C video signal 22 is obtained, and this signal and the C video signal 22 are
A comparison circuit 9, which is a third comparing means, performs a comparison with CMP13 signal 36. FIG. 10 shows the case where there is no defect, and FIG. 11 shows the case where there is a defect, but the structure is such that it is easy to detect defects in the falling portion of the signal. Even in this case, if you try to increase the defect detection sensitivity, a chatter will occur at the rising edge of the waveform, so the CMP13 signal 36 and CUT3 signal 30 are ORed in the OR gate 12, which is the third logic means. By obtaining the 'signal 36', this difficulty is overcome.

一方CUT3信号30によつては、波形の立下り
部分で生ずるCMP13′信号36′のチヤツタを防
止することはできないが、この信号はアンドゲー
ト13においてWiDTH信号32との間で論理積
が取られるので、上述した立下り部分のチヤツタ
はこのアンド論理により実効的に除去される。こ
れは、CMP13′信号36′の後尾がWiDTH信号3
2と重なり合わないことによる。このため、
CMP13′信号36′はビデオ信号上の立下り端の
欠陥をすべて検出できるものではないが、第11
図に例示するように波形の後半にゆるやかなうね
りがある場合などの欠陥検出に特に有効である。
本実施例では、Dビデオ信号23を可変抵抗器1
6で減衰させたDビデオ信号24とCビデオ信号
22とを比較回路9で比較し、CMP13信号36
を得ているが、可変抵抗器16を用いないで、例
えば、Dビデオ信号24の代りにBビデオ信号2
1を、Cビデオ信号22の代りにAビデオ信号2
0を用い、これら二つの信号を比較回路9で比較
してもよい。この場合、Bビデオ信号21はAビ
デオ信号20に比べ、遅延量が大きくより減衰さ
れた信号となつている。
On the other hand, the CUT3 signal 30 cannot prevent the CMP13' signal 36' from chattering that occurs at the falling edge of the waveform, but this signal is ANDed with the WiDTH signal 32 in the AND gate 13. Therefore, the above-mentioned chatter in the falling portion is effectively eliminated by this AND logic. This means that the tail of CMP13' signal 36' is WiDTH signal 3
This is due to the fact that it does not overlap with 2. For this reason,
Although the CMP13' signal 36' cannot detect all falling edge defects on the video signal,
This is particularly effective for detecting defects when there is a gentle undulation in the latter half of the waveform, as illustrated in the figure.
In this embodiment, the D video signal 23 is connected to the variable resistor 1.
The comparison circuit 9 compares the D video signal 24 and the C video signal 22 attenuated in step 6, and outputs the CMP13 signal 36.
However, without using the variable resistor 16, for example, the B video signal 24 can be input instead of the D video signal 24.
1, A video signal 2 instead of C video signal 22
0 may be used, and these two signals may be compared by the comparison circuit 9. In this case, the B video signal 21 has a larger delay amount than the A video signal 20 and is a more attenuated signal.

このようにして得られた比較結果信号33,3
5′,36′はWiDTH信号32と共に第1の論理
手段であるアンド回路13に入力し、その出力と
して二値化信号27が得られる。
Comparison result signals 33, 3 obtained in this way
5' and 36' are input together with the WiDTH signal 32 to an AND circuit 13, which is a first logic means, and a binary signal 27 is obtained as its output.

第12図は、センサとしてテレビカメラを使用
した場合の第3図のタイマ回路10の一実施例を
示す回路図である。43,44,45,46はい
ずれもJKフリツプフロツプ、47,48はいず
れもカウンタ、57乃至59及び60乃至66は
いずれもナンドゲート、52乃至54はこのタイ
マ回路10の出力端子、記号VP5は5ボルトの
電源端子である。クロツク信号入力端子49には
数MHz程度のクロツク信号が入力する。まず水平
同期信号入力端子51に水平同期信号41が加え
られると、JKフリツプフロツプ43,44,4
5,46はすべてリセツトされる。このとき、
JKフリツプフロツプ43のQ端子から低レベル
を受けるカウンタ47,48もリセツトされる。
またJKフリツプフロツプ43のは高レベルで
あるから、CUT2信号を供給するゲート57の出
力端子52、CUT1信号を供給するゲート58の
出力端子53及びCUT3信号を供給するゲート5
9の出力端子54はすべて低レベルとなつてい
る。これがカウンタ回路10のイニシヤル状態で
ある。
FIG. 12 is a circuit diagram showing an embodiment of the timer circuit 10 of FIG. 3 when a television camera is used as a sensor. 43, 44, 45, and 46 are all JK flip-flops, 47 and 48 are all counters, 57 to 59 and 60 to 66 are all NAND gates, 52 to 54 are output terminals of this timer circuit 10, and symbol VP5 is 5 volts. This is the power terminal. A clock signal of approximately several MHz is input to the clock signal input terminal 49. First, when the horizontal synchronizing signal 41 is applied to the horizontal synchronizing signal input terminal 51, the JK flip-flops 43, 44, 4
5 and 46 are all reset. At this time,
Counters 47 and 48 receiving a low level from the Q terminal of JK flip-flop 43 are also reset.
Also, since the JK flip-flop 43 is at a high level, the output terminal 52 of the gate 57 that supplies the CUT2 signal, the output terminal 53 of the gate 58 that supplies the CUT1 signal, and the gate 5 that supplies the CUT3 signal.
All output terminals 54 of No. 9 are at low level. This is the initial state of the counter circuit 10.

この後、WiDTH信号入力端子50にWiDTH
信号32が入力し、引続いてクロツク信号入力端
子49にクロツク信号が入力すると、JKフリツ
プフロツプ43のQ出力は低レベルとなり、その
結果、CUT2信号、CUT1信号、CUT3信号の出
力端子52,53,54はすべて低レベルから高
レベルに立上る。これと同時に、JKフリツプフ
ロツプ43の高レベルのQ出力を受けたカウンタ
47,48はリセツト状態から抜け出しクロツク
信号の計数を開始する。カウンタ47,48の計
数値がカウンタからの出力信号線及びゲート6
0,61,62の組合せにより設定された所定値
に達すると、各ゲート回路はパルスを出力し、こ
のパルス出力はそれぞれゲート回路63,64,
65においてクロツクとの同期がとられ、JKフ
リツプフロツプ44,45,46のクロツク入力
端子をトリガする。この結果、JKフリツプフロ
ツプ44,45,46のQ出力は高レベルとな
り、ゲート回路57,58,59を介してCUT2
信号29、CUT1信号28、CUT3信号30の出
力端子52,53,54を低レベルに立下がらせ
る。このようにして第5図に示すような波形の
CUT1,CUT2,CUT3信号を供給することがで
きる。JKフリツプフロツプ43乃至46、カウ
ンタ47,48は適宜な集積回路でよいが、一例
としてそれぞれテキサスインスツルメント社製の
市販品SN74107,SN74161を使用することができ
る。
After this, WiDTH is connected to the WiDTH signal input terminal 50.
When the signal 32 is input and subsequently the clock signal is input to the clock signal input terminal 49, the Q output of the JK flip-flop 43 becomes a low level, and as a result, the output terminals 52, 53, All 54 rise from low level to high level. At the same time, the counters 47 and 48, which have received the high level Q output of the JK flip-flop 43, come out of the reset state and start counting the clock signals. The count values of counters 47 and 48 are output from the counters to the output signal line and gate 6.
When the predetermined value set by the combination of 0, 61, and 62 is reached, each gate circuit outputs a pulse, and this pulse output is sent to the gate circuits 63, 64, and 64, respectively.
Synchronization with the clock is established at 65 to trigger the clock input terminals of JK flip-flops 44, 45, and 46. As a result, the Q outputs of the JK flip-flops 44, 45, and 46 become high level, and are passed through the gate circuits 57, 58, and 59 to CUT2.
The output terminals 52, 53, and 54 of the signal 29, CUT1 signal 28, and CUT3 signal 30 are caused to fall to a low level. In this way, the waveform shown in Figure 5 is created.
Can supply CUT1, CUT2, CUT3 signals. The JK flip-flops 43 to 46 and the counters 47 and 48 may be any suitable integrated circuits, and for example, commercially available products SN74107 and SN74161 manufactured by Texas Instruments, Inc. may be used, respectively.

以上説明したように本発明の一実施例において
は、タイマ回路10からのCUT1,CUT2,
CUT3の各信号の制御のもとに、波形の立上り部
分についてはCMP11信号33を主体にして欠陥
を検査し、波形が立上つた後についてはCMP12
信号35を主体にして欠陥を検査し、波形の立下
り部分についてはCMP13信号36を主体にして
欠陥の検査をする構成となつている。すなわち波
形の立上り部分においては検出感度を若干低下さ
せることによりチヤツタの防止を確実とした
CMP11信号33により欠陥検出を行い、チヤツ
タ発生の虞れの小さい波形立上り後においては、
検出感度の高いCMP12,13信号を用いてそれぞ
れ欠陥検出を行つている。このような構成となつ
ているから、チヤツタの発生を有効に防止しつつ
欠陥の検出感度を高めることができる。
As explained above, in one embodiment of the present invention, CUT1, CUT2,
Under the control of each signal of CUT3, defects are inspected mainly using the CMP11 signal 33 for the rising part of the waveform, and the CMP12 signal 33 is used for the rising part of the waveform.
The configuration is such that the signal 35 is used as the main component to inspect for defects, and the falling portion of the waveform is tested for defects using the CMP13 signal 36 as the main component. In other words, by slightly lowering the detection sensitivity at the rising edge of the waveform, we ensured the prevention of chatter.
Defects are detected using the CMP11 signal 33, and after the waveform rises, where there is little risk of chatter,
Defects are detected using the CMP12 and 13 signals, which have high detection sensitivity. With such a configuration, the defect detection sensitivity can be increased while effectively preventing the occurrence of chatter.

上述の実施例においては、3個の遅延回路、3
個の比較手段である比較回路7,8,9を設けて
いるが、遅延回路は一般的には2個以上の適宜な
個数であつてもよい。また比較手段である比較回
路は一般的には3個以上の適宜な個数であつてよ
い。
In the embodiment described above, three delay circuits, 3
Although comparison circuits 7, 8, and 9 are provided as comparison means, the number of delay circuits may generally be two or more as appropriate. Further, the number of comparison circuits serving as comparison means may generally be three or more as appropriate.

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

第1図、第2図は従来例のブロツク図及びその
動作説明図、第3図は本発明の一実施例のブロツ
ク図、第4図乃至第11図は第3図の動作を説明
するための波形図、第12図は第3図のタイマ回
路10の一実施例の回路図である。 1……逆転サンプルホールド回路、2……演算
増幅器、3乃至5……遅延回路、6乃至9……比
較回路、10……タイマ回路、11乃至13……
論理ゲート、14……積分回路、43乃至46…
…JKフリツプフロツプ、47,48……カウン
タ、57乃至59,60乃至66……アンドゲー
ト。
Figures 1 and 2 are a block diagram of a conventional example and an explanatory diagram of its operation, Figure 3 is a block diagram of an embodiment of the present invention, and Figures 4 to 11 are for explaining the operation of Figure 3. FIG. 12 is a circuit diagram of an embodiment of the timer circuit 10 in FIG. 3. DESCRIPTION OF SYMBOLS 1... Reverse sample hold circuit, 2... Operational amplifier, 3 to 5... Delay circuit, 6 to 9... Comparison circuit, 10... Timer circuit, 11 to 13...
Logic gate, 14...Integrator circuit, 43 to 46...
...JK flip-flop, 47, 48... counter, 57 to 59, 60 to 66... and gate.

Claims (1)

【特許請求の範囲】[Claims] 1 アナログ信号上の所定箇所のレベルを基準と
して該アナログ信号を一定電圧レベルシフトして
出力するシフト手段と、該シフトされたアナログ
信号出力をn段階(nは自然数)に分けて遅延さ
せるn個の遅延手段と、m個(mはn以下の自然
数)の減衰手段と、前記シフト手段、遅延手段お
よび減衰手段の各出力信号のうち所定の二つの信
号を入力して比較する少くとも1個の第1の比較
手段、少くとも1個の第2の比較手段および少く
とも1個の第3の比較手段と、前記シフトされた
アナログ信号が所定値以上の値となる期間だけ信
号を発生する第1の信号発生手段と、該第1の信
号をトリガとして該第1の信号よりも時間幅が小
さく、かつ夫々時間幅の異なる短、中、長の3種
の第2の信号(以下夫々短信号、中信号、長信号
という)を発生するタイマ手段と、前記第1の比
較手段と同数設けられ該第1の比較手段の一方の
入力を接地レベルに降下させるスイツチ手段と、
前記第2の比較手段と同数の論理和発生用の第2
の論理手段と、前記第3の比較手段と同数の論理
和発生用の第3の論理手段と、前記第1の信号と
前記第1の比較手段の出力と前記第2、第3の論
理手段が発生する論理和との論理積を発生する第
1の論理手段とを備え、前記第1の比較手段およ
び第2の比較手段で比較される前記所定の二つの
信号は、少くとも一方が遅延された信号であり、
かつ遅延量が小さい方の信号は大きい方の信号よ
り減衰されるように、前記シフト手段と前記遅延
手段と前記減衰手段とを前記第1の比較手段およ
び第2の比較手段とに夫々接続し、前記第3の比
較手段で比較される前記所定の二つの信号は、少
くとも一方が遅延された信号であり、かつ遅延量
が大きい方の信号は小さい方の信号より減衰され
るように、前記シフト手段と前記遅延手段と前記
減衰手段とを前記第3の比較手段とに接続し、前
記タイマ手段が発生する短信号を前記スイツチ手
段に入力し、該短信号の時間、前記第1の比較手
段に入力される減衰量の大きい方の入力を、接地
レベルに降下させるように前記タイマ手段とスイ
ツチ手段と第1の比較手段とを接続し、前記第2
の論理手段は、前記タイマ手段が発生する中信号
と、前記第2の比較手段の出力信号との論理和を
発生するように成し、前記第3の論理手段は、前
記タイマ手段が発生する長信号と、前記第3の比
較手段の出力信号との論理和を発生するように構
成したことを特徴とするアナログ信号の二値化回
路。
1. Shifting means for shifting the analog signal to a constant voltage level based on the level at a predetermined point on the analog signal and outputting the same, and n units for dividing and delaying the shifted analog signal output into n stages (n is a natural number). delay means, m attenuation means (m is a natural number equal to or less than n), and at least one unit that inputs and compares predetermined two signals among the respective output signals of the shift means, the delay means, and the attenuation means. a first comparing means, at least one second comparing means, and at least one third comparing means, and generating a signal only during a period in which the shifted analog signal has a value equal to or greater than a predetermined value. a first signal generating means; and, using the first signal as a trigger, generate three types of second signals (hereinafter referred to as a timer means for generating a short signal, a medium signal, and a long signal; and switch means provided in the same number as the first comparison means and for lowering one input of the first comparison means to the ground level;
the same number of second comparing means for generating logical sums as the second comparing means;
logic means, third logic means for generating an OR of the same number as the third comparison means, the first signal, the output of the first comparison means, and the second and third logic means. and a first logic means for generating an AND with a logical sum generated by the above, and the predetermined two signals to be compared by the first comparison means and the second comparison means are such that at least one of them is delayed. The signal is
and the shift means, the delay means, and the attenuation means are connected to the first comparison means and the second comparison means, respectively, so that a signal with a smaller delay amount is attenuated more than a signal with a larger delay amount. , at least one of the two predetermined signals to be compared by the third comparison means is a delayed signal, and the signal with a larger amount of delay is attenuated more than the signal with a smaller amount of delay, The shift means, the delay means and the attenuation means are connected to the third comparison means, the short signal generated by the timer means is inputted to the switch means, and the time of the short signal is equal to the first The timer means, the switch means, and the first comparison means are connected so that the input having a larger amount of attenuation input to the comparison means is lowered to the ground level, and the second
The logic means is configured to generate a logical sum of the medium signal generated by the timer means and the output signal of the second comparison means, and the third logic means is configured to generate a logical sum of the intermediate signal generated by the timer means and the output signal of the second comparison means. An analog signal binarization circuit characterized in that it is configured to generate a logical sum of a long signal and an output signal of the third comparison means.
JP7513280A 1980-06-04 1980-06-04 Binary coding circuit of analog signal Granted JPS572120A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7513280A JPS572120A (en) 1980-06-04 1980-06-04 Binary coding circuit of analog signal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7513280A JPS572120A (en) 1980-06-04 1980-06-04 Binary coding circuit of analog signal

Publications (2)

Publication Number Publication Date
JPS572120A JPS572120A (en) 1982-01-07
JPH0124372B2 true JPH0124372B2 (en) 1989-05-11

Family

ID=13567352

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7513280A Granted JPS572120A (en) 1980-06-04 1980-06-04 Binary coding circuit of analog signal

Country Status (1)

Country Link
JP (1) JPS572120A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010236932A (en) * 2009-03-30 2010-10-21 Institute Of National Colleges Of Technology Japan Fallout detection device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010236932A (en) * 2009-03-30 2010-10-21 Institute Of National Colleges Of Technology Japan Fallout detection device

Also Published As

Publication number Publication date
JPS572120A (en) 1982-01-07

Similar Documents

Publication Publication Date Title
US4122995A (en) Asynchronous digital circuit testing system
JPH032990A (en) Analog signal processing system for bar code reader
US5637994A (en) Waveform measurement
JPH02283120A (en) Noise eliminator
JPH0124372B2 (en)
US3535620A (en) Methods of and systems for detecting and analyzing whether a generated pulse possesses desired characteristics
JPH03134548A (en) Surface inspecting apparatus
US3473115A (en) Method and apparatus for testing magnetostrictive delay lines by checking for signal coincidence between signal pulses and reference pulses in different phase positions of the reference pulses
CA1128148A (en) Fast redundant pulse density analyzer
JP2843640B2 (en) Input signal noise eliminator
JPS598211Y2 (en) noise detection circuit
JPS6057745B2 (en) Binarization circuit
JPS6039974B2 (en) optical inspection
JPS6129078Y2 (en)
JPH0221806Y2 (en)
JPS6019872B2 (en) Defect inspection device
SU868549A1 (en) Electromagnetic flaw detector for testing long objects
JPS6216372B2 (en)
RU2034334C1 (en) Emergency alarm
JPS6337993B2 (en)
JPH0317088B2 (en)
SU1368658A1 (en) Device for checking surface defects
SU932397A1 (en) Flaw analyzer for ultrasonic flaw detector
JPH0128539B2 (en)
JPS6088440A (en) Method of obtaining signal of integrated circuit