JPH02179115A - Digital signal processing circuit - Google Patents

Digital signal processing circuit

Info

Publication number
JPH02179115A
JPH02179115A JP63333221A JP33322188A JPH02179115A JP H02179115 A JPH02179115 A JP H02179115A JP 63333221 A JP63333221 A JP 63333221A JP 33322188 A JP33322188 A JP 33322188A JP H02179115 A JPH02179115 A JP H02179115A
Authority
JP
Japan
Prior art keywords
flip
pulse
flop
signal
noise
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.)
Granted
Application number
JP63333221A
Other languages
Japanese (ja)
Other versions
JP2553680B2 (en
Inventor
Susumu Unozawa
卯之沢 進
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP63333221A priority Critical patent/JP2553680B2/en
Publication of JPH02179115A publication Critical patent/JPH02179115A/en
Application granted granted Critical
Publication of JP2553680B2 publication Critical patent/JP2553680B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To eliminate noise when the pulse time width of a signal and noise is close to each other by applying logical processing to the pulse time width of a component of a sensor signal. CONSTITUTION:Flip-flops 1-3 operated synchronously with a clock pulse signal CLK corresponding to the pulse time width of a sensor signal Si are provided to detect a pulse whose width is shorter than the pulse time width of the sensor signal is detected. Then a pulse shorter than the noise time width of the detection signal is detected. Then the sensor signal including the noise pulse is applied to gate circuits 5-7 and a flip-flop 8 to eliminate the noise pulse. Thus, even when the pulse time of the signal component and noise component is close to each other, the noise pulse is sufficiently eliminated.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は光学センサ等から出力されたデジタル信号を受
けて、時系列に変化する信号のノイズを除去するための
デジタル信号処理回路に関する。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a digital signal processing circuit for receiving a digital signal output from an optical sensor or the like and removing noise from the signal that changes over time.

従来の技術 従来、この種のデジタル信号処理回路にはセンナから出
力されたデジタル信号を処理するに当たり、その信号に
含まれているノイズを除去する目的等でフィルタ回路を
構成されている。
2. Description of the Related Art Conventionally, this type of digital signal processing circuit includes a filter circuit for the purpose of removing noise contained in the signal when processing the digital signal output from the sensor.

第3図は、従来より用いられているフィルタ回路の一例
であり、センサ信号のパルス時間幅より短い時間のノイ
ズを除去する目的のいわゆるローパスフィルタである。
FIG. 3 shows an example of a conventionally used filter circuit, which is a so-called low-pass filter whose purpose is to remove noise having a duration shorter than the pulse time width of a sensor signal.

第3図の例では、コンデンサと抵抗で構成されているC
R時定数の効果によリセンサ信号のパルス時間幅より短
いノイズパルスの振幅を小さくすることによって、振幅
の差を弁別させ、振幅の小さいノイズパルスを除去しよ
うとする回路である。
In the example in Figure 3, C is made up of a capacitor and a resistor.
This circuit attempts to discriminate between amplitude differences and remove small amplitude noise pulses by reducing the amplitude of noise pulses shorter than the pulse time width of the resensor signal due to the effect of the R time constant.

第3図のような従来例の回路においても、センサ信号と
ノイズパルスとの時間幅の差が振幅の差として弁別可能
な程の大きな値である場合には有効である。
The conventional circuit shown in FIG. 3 is also effective when the difference in time width between the sensor signal and the noise pulse is large enough to be distinguishable as a difference in amplitude.

発明が解決しようとする課題 しかしながら、上記従来例では時定数回路を含むためセ
ンサ信号とノイズパルスとの時間幅の差が小さくなると
弁別できなくなるという問題があった。
Problems to be Solved by the Invention However, since the conventional example described above includes a time constant circuit, there is a problem that when the difference in time width between the sensor signal and the noise pulse becomes small, it becomes impossible to discriminate the sensor signal and the noise pulse.

例えば第3図のセンサ信号25のパルス列が第4図のt
sに示すように斜線ノ・ツチ部分がノイズパルスである
場合、CR時定数回路を通過した信号26が第4図の1
1になるとコンパレータ24のしきい値T、を与える電
池23の電圧VTHが第4図の11の1であると、コン
パレータ出力27の信号は第4図のtaのようになり、
斜線ノ1ツチ部分に示すノイズパルスが残ってしまうこ
とになる。ノイズパルスの時間幅が変化するとしきい値
電圧、或いはCR時定数を変化させないとノイズ除去が
できないという問題があった。
For example, if the pulse train of the sensor signal 25 in FIG.
If the shaded portion is a noise pulse as shown in s, the signal 26 that has passed through the CR time constant circuit is 1 in FIG.
If the voltage VTH of the battery 23, which gives the threshold value T of the comparator 24 when it becomes 1, is 1 in 11 in FIG. 4, the signal of the comparator output 27 becomes as shown in ta in FIG.
The noise pulse shown in the hatched area will remain. When the time width of the noise pulse changes, there is a problem that noise cannot be removed unless the threshold voltage or CR time constant is changed.

本発明はこのような従来の問題を解決するものであり、
信号とノイズのパルス時間幅が近接した場合のノイズを
除去することができる優れたデジタル信号処理回路を提
供することを目的とするものである。
The present invention solves these conventional problems,
It is an object of the present invention to provide an excellent digital signal processing circuit that can remove noise when the pulse time widths of a signal and noise are close to each other.

課題を解決するための手段 本発明は上記目的を達成するためにセンナ信号のパルス
時間幅に対応させたクロックパルス信号に同期して動作
するフリップフロップを設け、センサ信号のパルス時間
幅より短いパルスを検出し、その検出信号をノイズパル
スを含んだセンサ信号にゲート回路及びフリップフロッ
プをもって作用させてノイズパルスを除去するようにし
たものである。
Means for Solving the Problems In order to achieve the above object, the present invention provides a flip-flop that operates in synchronization with a clock pulse signal corresponding to the pulse time width of the sensor signal, and generates a pulse shorter than the pulse time width of the sensor signal. is detected, and the detected signal is applied to a sensor signal containing noise pulses using a gate circuit and a flip-flop to remove the noise pulses.

作用 本発明は上記のような構成により次のような作用を有す
る。すなわち、センサ信号の最小パルス時間幅に等しい
クロックパルス信号を各フリップフロップの同期信号と
して用い、第1のDフリップフロップのD入力にセンサ
信号を入力させて上記同期信号の立上がり、又は立下が
りのいずれか一方でサンプリングを行なう。第1のフリ
ップフロップの出力は第2のDフリップフロップのD入
力に接続され、第2のフリップフロップは第1の7リソ
プフロツプと逆相の同期信号でサンプリングされる。一
方、センサ信号は第3のDフリップフロップのD入力に
接続され、第2のフリップフロップと同相の同期信号で
サンプリングされる。
Effects The present invention has the following effects due to the above structure. That is, a clock pulse signal equal to the minimum pulse time width of the sensor signal is used as a synchronization signal for each flip-flop, and the sensor signal is input to the D input of the first D flip-flop to determine the rise or fall of the synchronization signal. Sampling is performed on either one. The output of the first flip-flop is connected to the D input of a second D flip-flop, and the second flip-flop is sampled with a synchronization signal that is in opposite phase to the first 7-resop-flop. On the other hand, the sensor signal is connected to the D input of the third D flip-flop and sampled with a synchronization signal that is in phase with the second flip-flop.

第2と第3の7リツプフロツグの各出力は、排他論理和
ゲート回路の入力に接続される。したがって、センサ信
号のパルス列の中に第1のフリップフロップをサンプリ
ングした時点のセンナ信号の論理値と第3のフリップフ
ロップをサンプリングした時点のセンナ信号の論理値が
異なっているようなノイズパルスがある場合には、上記
排他論理和ゲート回路の出力に論理値「1」として検出
され、その排他論理和ゲート回路の出力は、第4のJK
フリップフロクプのJ、  K入力に、上記排他論理和
ゲート回路出力が論理値rlJの場合には、J、  K
入力ともに論理値「0」を、また上記排他論理和ゲート
回路出力が論理値「0」の場合にはJ入力に第2のフリ
ップフロップのQ出力を、K入力に第2のフリップフロ
ップのQ出力を与えられるゲート回路を通して第4のフ
リップフロップに接続される。第4のフリップフロップ
は第1のフリ、ブフロノプと同相の同期信号でサンプリ
ングされるので、上記排他論理和回路出力の論理値が「
0」であると、第4のフリップフロップのサンプリング
後の出力は第1.第2の各フリップフロップの各サンプ
リング結果が継承されるが上記排他論理和回路出力の論
理値が「1」であると、第4のフリップフロップのサン
プリング後の出力はその1つ前のサンプリング出力が維
持され、この時点でノイズパルスが除去することができ
る。
Each output of the second and third 7-lip-frogs is connected to an input of an exclusive OR gate circuit. Therefore, in the pulse train of the sensor signal, there is a noise pulse such that the logical value of the senna signal at the time when the first flip-flop is sampled is different from the logical value of the senna signal at the time when the third flip-flop is sampled. In this case, the logic value "1" is detected in the output of the exclusive OR gate circuit, and the output of the exclusive OR gate circuit is
When the above exclusive OR gate circuit output is a logical value rlJ at the J and K inputs of the flipflop, J and K are input.
If both inputs have a logical value of "0" and the output of the exclusive OR gate circuit has a logical value of "0", the Q output of the second flip-flop is input to the J input, and the Q output of the second flip-flop is input to the K input. It is connected to the fourth flip-flop through a gate circuit provided with an output. Since the fourth flip-flop is sampled with a synchronization signal that is in phase with the first flip-flop, the logic value of the output of the exclusive OR circuit is
0'', the output after sampling of the fourth flip-flop is the same as the first. Each sampling result of each second flip-flop is inherited, but if the logical value of the output of the exclusive OR circuit is "1", the output after sampling of the fourth flip-flop is the sampling output of the previous one. is maintained and at this point the noise pulse can be removed.

実施例 第1図は本発明の一実施例の構成を示すものである。第
1図においてSiはセンサ信号の入力端子CLKはクロ
ックパルス信号、SOは本発明の作用を施した結果のセ
ンサ信号の出力端子をそれぞれ示している。1はCLK
の立上がりに同期して動作するDフリップフロップ、2
と3はCLKを4のインバータで逆相にしたクロックパ
ルス信号の立上がりで同期して動作するDフリップフロ
ップ、5は負論理出力の2人力排他論理和ゲート、6と
7は2人力論理積ゲート、8はCLKの立上がりに同期
して動作するJKフリップフロップで、各々第1図のよ
うに接続されている。
Embodiment FIG. 1 shows the configuration of an embodiment of the present invention. In FIG. 1, Si indicates an input terminal for a sensor signal, CLK indicates a clock pulse signal, and SO indicates an output terminal for a sensor signal resulting from the operation of the present invention. 1 is CLK
D flip-flop, 2, which operates in synchronization with the rising edge of
and 3 are D flip-flops that operate in synchronization with the rising edge of a clock pulse signal made by inverting CLK with the inverter 4, 5 is a two-man exclusive OR gate with a negative logic output, and 6 and 7 are two-man power AND gates. , 8 are JK flip-flops that operate in synchronization with the rising edge of CLK, and are connected as shown in FIG.

次に上記実施例の動作について説明する。第2図は第1
図に示す実施例の動作を示したタイミングチャートであ
る。第2図のT、、 ’rt、  T麿、T4゜T、、
 Tsはそれぞれ第1図の9.10.11.12.13
゜14に対応したポイントのタイミングを示している。
Next, the operation of the above embodiment will be explained. Figure 2 is the first
3 is a timing chart showing the operation of the embodiment shown in the figure. T in Figure 2,, 'rt, Tmaro, T4゜T,,
Ts are 9.10.11.12.13 in Figure 1, respectively.
The timing of the point corresponding to ゜14 is shown.

第2図の15に示すタイミングで第11図の1でサンプ
リングされたセンナ信号は第2図のT、上の16に示す
タイミングで第1図の2のQより出力され、同時に第2
図の16で示すタイミングでサンプリングされたセンサ
信号が第1図の3のQより出力され、その両川力は負論
理出力の排他論理和ゲートにより第2図のT@に示す論
理値となる。その論理値と第1図の2のQ出力及びQ出
力とを入力として作用させる2つの論理積ゲートである
第1図の6と7の各々の出力を8のJKフリップフロッ
プへ第2図の17のタイミングでサンプリングされ第2
図のT6に示す論理値を得る。第2図に示す15〜17
のタイミングに示すT1のセンサ信号はノイズパルスが
ない場合であるが、17〜20のタイミングに示すT、
の斜線ハツチ部分のようなノイズパルスがある場合には
、18のタイミングでサンプリングした結果と19のタ
イミングでサンプリングした結果の論理値が一致しない
。その場合、19のタイミングで上記排他論理和ゲート
出力はT器のように変化し、20のタイミングでサンプ
リングされるJKフリップフロップのJ入力及びに入力
にはともに論理値rOJが入力されることとなり、サン
プリング後の出力は変化せずノイズパルスが除去される
ことになる。
The senna signal sampled at 1 in FIG. 11 at the timing shown at 15 in FIG. 2 is output from T in FIG. 2, and from Q at 2 in FIG.
The sensor signal sampled at the timing shown by 16 in the figure is output from Q of 3 in FIG. 1, and the both sides of the signal become the logical value shown by T@ in FIG. 2 by the exclusive OR gate of the negative logic output. The respective outputs of 6 and 7 in FIG. 1, which are two AND gates that act on the logic value and the Q output and Q output of 2 in FIG. 1 as inputs, are sent to the JK flip-flop 8 in FIG. The second sampled at the timing of 17
A logical value shown at T6 in the figure is obtained. 15 to 17 shown in Figure 2
The sensor signal of T1 shown at the timing of 17 to 20 is the case where there is no noise pulse, but the sensor signal of T1 shown at the timing of 17 to 20,
If there is a noise pulse as shown in the diagonally hatched area, the logical values of the sampling result at timing 18 and the result sampling at timing 19 do not match. In that case, the output of the exclusive OR gate changes like a T circuit at timing 19, and the logic value rOJ is input to both the J input and the input of the JK flip-flop sampled at timing 20. , the output after sampling remains unchanged and the noise pulses are removed.

このように、上記実施例によればセンサ信号パルスの最
小時間に着目してサンプリングパルス時間を設定しセン
サ信号のパルス列をサンプリングパルスの立上がり、立
下がりで逐次サンプリングしていくことによりサンプリ
ングパルスの周期より短い時間で変化するセンサ信号を
ノイズパルスとして検出し除去することができる。
In this way, according to the above embodiment, the sampling pulse time is set by focusing on the minimum time of the sensor signal pulse, and the pulse train of the sensor signal is sequentially sampled at the rising and falling edges of the sampling pulse, thereby changing the period of the sampling pulse. Sensor signals that change in a shorter period of time can be detected and removed as noise pulses.

発明の効果 本発明は上記実施例より明らかなようにセンサ信号の信
号成分のパルス時間幅に着目して論理処理したものであ
り、時定数を用いたアナログ値処理と異なり、信号成分
とノイズ成分のパルス時間の値が近接していても十分に
ノイズパルスを除去することができるという利点を有す
る。
Effects of the Invention As is clear from the above embodiments, the present invention performs logical processing focusing on the pulse time width of the signal component of the sensor signal, and unlike analog value processing using a time constant, the signal component and noise component are This has the advantage that noise pulses can be sufficiently removed even if the pulse time values of are close to each other.

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

第1図は本発明の一実施例におけるデジタル信号処理回
路の回路図、第2図は第1図の動作を示したタイミング
チャート、第3図は従来方式の一例を示すフィルタ回路
図、第4図は第3図の動作を示したタイミングチャート
である。 1、 2. 3・・・Dフリップフロップ、4・・・イ
ンバータゲート、5・・・負論理出方の排他論理和ゲー
ト、6.7・・・2人力論理積ゲート、8・・・JKフ
リップフロッフ、9・・・センサ信号、1o・・・クロ
ックパルス信号、11・・・フリップフロップ2の出力
信号、12・・・フリップフロップ3の出力信号、13
・・・ゲート5の出力信号、14・・・フリップ70ノ
ブ8の出方信号。 代理人の氏名 弁理士 粟 野 重 孝はが1名第 図 一一−−チJl!5!−藺 第 図 J 第 図 −一一→弓珍問
FIG. 1 is a circuit diagram of a digital signal processing circuit according to an embodiment of the present invention, FIG. 2 is a timing chart showing the operation of FIG. 1, FIG. 3 is a filter circuit diagram showing an example of a conventional method, and FIG. The figure is a timing chart showing the operation of FIG. 3. 1, 2. 3... D flip-flop, 4... Inverter gate, 5... Exclusive OR gate with negative logic output, 6.7... 2-manual AND gate, 8... JK flip-flop, 9 ...Sensor signal, 1o...Clock pulse signal, 11...Output signal of flip-flop 2, 12...Output signal of flip-flop 3, 13
...output signal of gate 5, 14...output signal of flip 70 knob 8. Name of agent: Patent attorney Shige Awano Takaha 5! -Ichizu diagram J Diagram-11 → Yuchinkin question

Claims (1)

【特許請求の範囲】[Claims] 入力信号をタイミングパルスでサンプリングする第1の
Dフリップフロップと、この第1のフリップフロップの
出力信号を入力信号として上記第1のフリップフロップ
と逆の位相のタイミングパルスでサンプリングする第2
のDフリップフロップと、上記入力信号を上記第2のフ
リップフロップと同相のタイミングパルスでサンプリン
グする第3のDフリップフロップと、この第3のDフリ
ップフロップの出力と上記第2のフリップフロップの出
力との排他論理和をとりその出力を一方の入力がそれぞ
れ上記第2のフリップフロップのQ出力と@Q@出力に
接続する2つの論理積ゲートのそれぞれ他方の入力に接
続し、上記第2のフリップフロップの正出力を入力とす
る論理積ゲートの出力をJ入力とし他方の論理積ゲート
の出力をK入力として上記第1のフリップフロップと同
相のタイミングパルスでサンプリングするJKフリップ
フロップとで構成したデジタル信号処理回路。
A first D flip-flop samples an input signal with a timing pulse, and a second D flip-flop samples the output signal of the first flip-flop as an input signal with a timing pulse having a phase opposite to that of the first flip-flop.
a D flip-flop, a third D flip-flop that samples the input signal with a timing pulse in phase with the second flip-flop, an output of the third D flip-flop, and an output of the second flip-flop. The output is connected to the other input of two AND gates whose one input is respectively connected to the Q output and @Q@ output of the second flip-flop, and It was constructed with a JK flip-flop that takes the output of an AND gate that receives the positive output of a flip-flop as an input, and uses the output of the other AND gate as a K input and samples with a timing pulse in phase with the first flip-flop. Digital signal processing circuit.
JP63333221A 1988-12-29 1988-12-29 Digital signal processing circuit Expired - Fee Related JP2553680B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63333221A JP2553680B2 (en) 1988-12-29 1988-12-29 Digital signal processing circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63333221A JP2553680B2 (en) 1988-12-29 1988-12-29 Digital signal processing circuit

Publications (2)

Publication Number Publication Date
JPH02179115A true JPH02179115A (en) 1990-07-12
JP2553680B2 JP2553680B2 (en) 1996-11-13

Family

ID=18263671

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63333221A Expired - Fee Related JP2553680B2 (en) 1988-12-29 1988-12-29 Digital signal processing circuit

Country Status (1)

Country Link
JP (1) JP2553680B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5397942A (en) * 1991-08-23 1995-03-14 Nec Corporation Driver circuit for a plurality of outputs
JP2007295410A (en) * 2006-04-26 2007-11-08 Interchip Kk Pulse signal generator and clock signal generator
JP5303762B2 (en) * 2007-06-25 2013-10-02 国立大学法人 長崎大学 Waveform processing circuit.

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57119938U (en) * 1981-01-19 1982-07-26

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57119938U (en) * 1981-01-19 1982-07-26

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5397942A (en) * 1991-08-23 1995-03-14 Nec Corporation Driver circuit for a plurality of outputs
JP2007295410A (en) * 2006-04-26 2007-11-08 Interchip Kk Pulse signal generator and clock signal generator
JP5303762B2 (en) * 2007-06-25 2013-10-02 国立大学法人 長崎大学 Waveform processing circuit.

Also Published As

Publication number Publication date
JP2553680B2 (en) 1996-11-13

Similar Documents

Publication Publication Date Title
JPH03106112A (en) Digital filter
JPH01286609A (en) D-type flip-flop circuit
JPH02283120A (en) Noise eliminator
JPH02179115A (en) Digital signal processing circuit
US6064704A (en) Digital pulse filtering circuit
US6674309B1 (en) Differential time sampling circuit
JPS6216615A (en) Noise eliminating circuit
JPS5895447A (en) Clock regenerating circuit
JPH0563524A (en) Signal input circuit
KR940000929B1 (en) Digital frequency shift keying modulating circuit
JPS6348456B2 (en)
JPS6143886A (en) Data identification circuit
JPS57124928A (en) Edge detection circuit
JPS6361963A (en) Delay time measuring circuit
JPS62261986A (en) Pulse measuring circuit with noise removing ability
JP2712725B2 (en) Latching device for parallel digital signals
SU1324121A1 (en) Logic phase-difference demodulator
JPS60164966A (en) Information reproducing device
JPH07105699B2 (en) Digital filter circuit
SU1688412A1 (en) Delta-codec
RU2006867C1 (en) Device for processing signal of laser doppler anemometer
JPS62131637A (en) Timing jitter measuring system
KR100229898B1 (en) Detecting apparatus & method for clock
JPH0437215A (en) Differential pulse generating circuit
JPH0315371B2 (en)

Legal Events

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