Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP2553680B2 - Digital signal processing circuit - Google Patents
[go: Go Back, main page]

JP2553680B2 - Digital signal processing circuit - Google Patents

Digital signal processing circuit

Info

Publication number
JP2553680B2
JP2553680B2 JP63333221A JP33322188A JP2553680B2 JP 2553680 B2 JP2553680 B2 JP 2553680B2 JP 63333221 A JP63333221 A JP 63333221A JP 33322188 A JP33322188 A JP 33322188A JP 2553680 B2 JP2553680 B2 JP 2553680B2
Authority
JP
Japan
Prior art keywords
input
flip
flop
output
pulse
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
JP63333221A
Other languages
Japanese (ja)
Other versions
JPH02179115A (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.)
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

Landscapes

  • Manipulation Of Pulses (AREA)

Description

【発明の詳細な説明】 産業上の利用分野 本発明は光学センサ等から出力されたデジタル信号を
受けて、時系列に変化する信号のノイズを除去するため
のデジタル信号処理回路に関する。
BACKGROUND OF THE INVENTION 1. 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 of a signal that changes in time series.

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

第3図は、従来より用いられているフィルタ回路の一
例であり、センサ信号のパルス時間幅より短い時間のノ
イズを除去する目的のいわゆるローパスフィルタであ
る。第3図の例では、コンデンサと抵抗で構成されてい
るCR時定数の効果によりセンサ信号のパルス時間幅より
短いノイズパルスの振幅を小さくすることによって、振
幅の差を弁別させ、振幅の小さいノイズパルスを除去し
ようとする回路である。
FIG. 3 shows an example of a conventionally used filter circuit, which is a so-called low-pass filter for the purpose of removing noise in a time shorter than the pulse time width of the sensor signal. In the example of FIG. 3, by reducing the amplitude of the noise pulse shorter than the pulse time width of the sensor signal by the effect of the CR time constant composed of the capacitor and the resistor, the difference in the amplitude is discriminated, and the noise with the small amplitude is discriminated. It is a circuit that tries to remove the pulse.

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

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

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

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

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

作 用 本発明は上記のような構成により次のような作用を有
する。すなわち、センサ信号の最小パルス時間幅に等し
いクロックパルス信号を各フリップフロップの同期信号
として用い、第1のDフリップフロップのD入力にセン
サ信号を入力させて上記同期信号の立上がり、又は立下
がりのいずれか一方でサンプリングを行なう。第1のフ
リップフロップの出力は第2のDフリップフロップのD
入力に接続され、第2のフリップフロップは第1のフリ
ップフロップと逆相の同期信号でサンプリングされる。
一方、センサ信号は第3のDフリップフロップのD入力
に接続され、第2のフリップフロップと同相の同期信号
でサンプリングされる。第2と第3のフリップフロップ
の各出力は、排他論理和ゲート回路の入力に接続され
る。したがって、センサ信号のパルス列の中に第1のフ
リップフロップをサンプリングした時点のセンサ信号の
論理値と第3のフリップフロップをサンプリングした時
点のセンサ信号の論理値が異なっているようなノイズパ
ルスがある場合には、上記排他論理和ゲート回路の出力
に論理値「1」として検出され、その排他論理和ゲート
回路の出力は、第4のJKフリップフロップのJ,K入力
に、上記排他論理和ゲート回路出力が論理値「1」の場
合には、J,K入力ともに論理値「0」を、また上記排他
論理和ゲート回路出力が論理値「0」の場合にはJ入力
に第2のフリップフロップのQ出力を、K入力に第2の
フリップフロップの出力を与えられるゲート回路を通
して第4のフリップフロップに接続される。第4のフリ
ップフロップは第1のフリップフロップと同相の同期信
号でサンプリングされるので、上記排他論理和回路出力
の論理値が「0」であると、第4のフリップフロップの
サンプリング後の出力は第1,第2の各フリップフロップ
の各サンプリング結果が継承されるが上記排他論理和回
路出力の論理値が「1」であると、第4のフリップフロ
ップのサンプリング後の出力はその1つ前のサンプリン
グ出力が維持され、この時点でノイズパルスが除去する
ことができる。
Operation The present invention having the above-described configuration has the following operations. 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, so that the synchronization signal rises or falls. Sampling is done on either side. The output of the first flip-flop is the D of the second D flip-flop.
Connected to the input, the second flip-flop is sampled with a sync signal that is out of phase with the first flip-flop.
On the other hand, the sensor signal is connected to the D input of the third D flip-flop and is sampled by the synchronizing signal in phase with the second flip-flop. The outputs of the second and third flip-flops are connected to the inputs of the exclusive OR gate circuit. Therefore, in the pulse train of the sensor signal, there is a noise pulse in which the logical value of the sensor signal at the time of sampling the first flip-flop and the logical value of the sensor signal at the time of sampling the third flip-flop are different. In this case, the output of the exclusive OR gate circuit is detected as a logical value “1”, and the output of the exclusive OR gate circuit is input to the J, K inputs of the fourth JK flip-flop, and the exclusive OR gate is output. When the circuit output is the logical value "1", both the J and K inputs have the logical value "0", and when the exclusive OR gate circuit output has the logical value "0", the J input has the second flip-flop. The Q output of the second flip-flop is connected to the fourth flip-flop through a gate circuit whose K input is supplied with the output of the second flip-flop. Since the fourth flip-flop is sampled by the synchronizing signal of the same phase as the first flip-flop, if the logical value of the exclusive OR circuit output is "0", the output of the fourth flip-flop after sampling is The sampling results of the first and second flip-flops are inherited, but if the logical value of the exclusive-OR circuit output is "1", the output of the fourth flip-flop after sampling is the previous one. The sampling output of is maintained, at which 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 structure of an embodiment of the present invention.
In FIG. 1, Si is an input terminal of a sensor signal, CLK is a clock pulse signal, and So is an output terminal of a sensor signal resulting from the operation of the present invention. 1 is a D flip-flop that operates in synchronization with the rise of CLK, and 2 and 3 are
D flip-flops that operate in synchronization with the rising edge of the clock pulse signal in which CLK is inverted by the 4 inverter.
Is a two-input exclusive-OR gate having a negative logic output, 6 and 7 are two-input AND gates, and 8 is a JK flip-flop which operates in synchronization with the rise of CLK, which are connected as shown in FIG.

次に上記実施例の動作について説明する。第2図は第
1図に示す実施例の動作を示したタイミングチャートで
ある。第2図のT1,T2,T3,T4,T5,T6はそれぞれ第1図の
9,10,11,12,13,14に対応したポイントのタイミングを示
している。第2図の15に示すタイミングで第1図の1で
サンプリングされたセンサ信号は第2図のT3上の16に示
すタイミングで第1図の2のQより出力され、同時に第
2図の16で示すタイミングでサンプリングされたセンサ
信号が第1図の3のQより出力され、その両出力は負論
理出力の排他論理和ゲートにより第2図のT5に示す論理
値となる。その論理値と第1図の2のQ出力及び出力
とを入力として作用させる2つの論理積ゲートである第
1図の6と7の各々の出力を8のJKフリップフロップへ
第2図の17のタイミングでサンプリングされ第2図のT6
に示す論理値を得る。第2図に示す15〜17のタイミング
に示すT1のセンサ信号はノイズパルスがない場合である
が、17〜20のタイミングに示すT1の斜線ハッチ部分のよ
うなノイズパルスがある場合には、18のタイミングでサ
ンプリングした結果と19のタイミングでサンプリングし
た結果の論理値が一致しない。その場合、19のタイミン
グで上記排他論理和ゲート出力はT5のように変化し、20
のタイミングでサンプリングされるJKフリップフロップ
のJ入力及びK入力にはともに論理値「0」が入力され
ることとなり、サンプリング後の出力は変化せずノイズ
パルスが除去されることになる。
Next, the operation of the above embodiment will be described. FIG. 2 is a timing chart showing the operation of the embodiment shown in FIG. T 1 , T 2 , T 3 , T 4 , T 5 , and T 6 in FIG. 2 are respectively shown in FIG.
The timings of points corresponding to 9,10,11,12,13,14 are shown. The sensor signal sampled at 1 in FIG. 1 at the timing 15 in FIG. 2 is output from Q in 2 in FIG. 1 at the timing 16 in T 3 in FIG. The sensor signal sampled at the timing indicated by 16 is output from Q in FIG. 3 and both outputs have the logical value indicated by T 5 in FIG. 2 by the exclusive OR gate of the negative logic output. The output of each of 6 and 7 in FIG. 1, which are two AND gates that act as inputs with the logical value and the Q output and output of 2 in FIG. 1, are input to the JK flip-flops of 8 in FIG. Sampled at the timing of T 6 in Fig. 2
The logical value shown in is obtained. The sensor signal of T 1 shown at the timing of 15 to 17 shown in FIG. 2 is when there is no noise pulse, but when there is a noise pulse like the hatched portion of T 1 shown at the timing of 17 to 20 , The logical values of the result of sampling at the timing of 18 and the result of sampling at the timing of 19 do not match. In that case, at the timing of 19, the exclusive OR gate output changes like T 5 ,
The logical value "0" is input to both the J input and the K input of the JK flip-flop sampled at the timing of, and the noise pulse is removed without changing the output after sampling.

このように、上記実施例によればセンサ信号パルスの
最小時間に着目してサンプリングパルス時間を設定しセ
ンサ信号のパルス列をサンプリングパルスの立上がり、
立下がりで逐次サンプリングしていくことによりサンプ
リングパルスの周期より短い時間で変化するセンサ信号
をノイズパルスとして検出し除去することができる。
As described above, according to the above-described embodiment, the sampling pulse time is set by paying attention to the minimum time of the sensor signal pulse, and the pulse train of the sensor signal is set to the rising edge of the sampling pulse,
By sequentially sampling at the falling edge, the sensor signal that changes in a time shorter than the cycle of the sampling pulse can be detected and removed as a noise pulse.

発明の効果 明らかなように 排他論理和される2つの信号のうち一方は、入力信
号に対してタイミングパルスでサンプリングされ、上記
タイミングパルスの逆の位相のタイミングパルスによっ
てさらにサンプリングされ、排他論理和される2つの信
号のうち他方は、入力信号に対して上記タイミングパル
スの逆の位相のタイミングパルスによってサンプリング
されることにより、タイミングパルスの立上がり、又は
立下がりのいずれに対してもサンプリングされるため、
上記タイミングパルスより短い幅のノイズパルスに対
し、上記タイミングパルスの立上がり、立下がりに位置
するノイズパルスを検出でき、さらに、JKフリップフロ
ップによってこのノイズパルスを除去することができ
る。
EFFECTS OF THE INVENTION As is apparent, one of the two signals to be exclusive-ORed is sampled with a timing pulse with respect to the input signal, further sampled with a timing pulse having a phase opposite to the timing pulse, and exclusive-ORed. Since the other of the two signals is sampled by the timing pulse having a phase opposite to that of the timing pulse with respect to the input signal, it is sampled at either the rising edge or the falling edge of the timing pulse.
With respect to the noise pulse having a width shorter than that of the timing pulse, the noise pulse positioned at the rising edge and the falling edge of the timing pulse can be detected, and the noise pulse can be removed by the JK flip-flop.

また、入力信号上にノイズパルスが、タイミングパ
ルスの立上がり、立下がりにも存在しない場合には、入
力信号に対してサンプリングすると、排他論理和される
2つの信号は等しくなり、この排他論理和の負論理出力
の論理値は常に1となり、ノイズパルスがないものとし
てサンプリングすることができる。
Further, when the noise pulse does not exist on the rising edge and the falling edge of the timing pulse on the input signal, the two signals subjected to the exclusive OR become equal when sampling the input signal. The logic value of the negative logic output is always 1, and it can be sampled without noise pulses.

という効果を有する。It has the effect of.

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

第1図は本発明の一実施例におけるデジタル信号処理回
路の回路図、第2図は第1図の動作を示したタイミング
チャート、第3図は従来方式の一例を示すフィルタ回路
図、第4図は第3図の動作を示したタイミングチャート
である。 1,2,3……Dフリップフロップ、4……インバータゲー
ト、5……負論理出力の排他論理和ゲート、6,7……2
入力論理積ゲート、8……JKフリップフロップ、9……
センサ信号、10……クロックパルス信号、11……フリッ
プフロップ2の出力信号、12……フリップフロップ3の
出力信号、13……ゲート5の出力信号、14……フリップ
フロップ8の出力信号。
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. 1,2,3 …… D flip-flop, 4 …… inverter gate, 5 …… exclusive OR gate of negative logic output, 6,7 …… 2
Input AND gate, 8 ... JK flip-flop, 9 ...
Sensor signal, 10 ... Clock pulse signal, 11 ... Flip-flop 2 output signal, 12 ... Flip-flop 3 output signal, 13 ... Gate 5 output signal, 14 ... Flip-flop 8 output signal.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】入力信号に対し、第1タイミングパルスで
サンプリングした第1出力信号を出力する第1のDフリ
ップフロップと、上記第1出力信号に対し、上記第1タ
イミングパルスと逆の位相の第2タイミングパルスでサ
ンプリングした、第2出力信号及びこの第2出力信号と
逆の位相の第3出力信号を出力する第2のDフリップフ
ロップと、上記入力信号を上記第2タイミングパルスで
サンプリングした第4出力信号を出力する第3のDフリ
ップフロップと、上記第4出力信号及び上記第2出力信
号との排他論理和の負論理出力に対して第2出力信号と
の論理積をJ入力とし、上記第4出力信号及び上記第2
出力信号との排他論理和の負論理出力に対して第3出力
信号との論理積をK入力とし、上記J入力及び上記K入
力とも論理値0が入力されると1つ前のサンプリング出
力が維持され、上記J入力及び上記K入力のいずれかに
論理値1が入力されると上記J入力に対し、第1タイミ
ングパルスでサンプリングするJKフリップフロップとを
備えたデジタル信号処理回路。
1. A first D flip-flop for outputting a first output signal sampled at a first timing pulse with respect to an input signal, and a phase opposite to the first timing pulse with respect to the first output signal. A second D flip-flop for outputting a second output signal and a third output signal having a phase opposite to that of the second output signal sampled by the second timing pulse, and the input signal sampled by the second timing pulse. A logical product of the third D flip-flop for outputting the fourth output signal and the negative logical output of the exclusive OR of the fourth output signal and the second output signal with the second output signal is used as the J input. , The fourth output signal and the second
When the logical product of the negative logical output of the exclusive OR of the output signal and the third output signal is K input, and the logical value 0 is input to both the J input and the K input, the previous sampling output is generated. A digital signal processing circuit comprising: a JK flip-flop which is maintained and which, when a logical value of 1 is input to either the J input or the K input, samples the J input with a first timing pulse.
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 JPH02179115A (en) 1990-07-12
JP2553680B2 true 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)

Families Citing this family (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
JP4962759B2 (en) * 2006-04-26 2012-06-27 インターチップ株式会社 Pulse signal generator and clock signal generator
EP2173033A4 (en) * 2007-06-25 2012-07-04 Nagasaki University Nat University Corp WAVEFORM PROCESSING CIRCUIT

Family Cites Families (1)

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

Also Published As

Publication number Publication date
JPH02179115A (en) 1990-07-12

Similar Documents

Publication Publication Date Title
US5001374A (en) Digital filter for removing short duration noise
JP2553680B2 (en) Digital signal processing circuit
US4669098A (en) Increased resolution counting circuit
US3421093A (en) Detector for pulse code modulated signals with feedback for baseline correction
KR930009289A (en) Clock recovery circuit
KR0132483B1 (en) Data Extraction Circuit of Digital Magnetic Recording & Reproduction System
JPH0563524A (en) Signal input circuit
SU633064A1 (en) Apparatus for reproducing phase-modulated signal from magnetic record carrier
JPS6143886A (en) data identification circuit
JP2712725B2 (en) Latching device for parallel digital signals
JP2600124B2 (en) Data transmission line disconnection detection device
JPS60164966A (en) Information reproducing device
KR0136350B1 (en) Frequency detection demodulation device
SU1137510A1 (en) Device for extracting data from reproduced signal
JPH1155078A (en) Digital noise filter
JP2893062B2 (en) Detection switch
SU672642A1 (en) Device for self-synchronisable digital magnetic recording
JPH055708Y2 (en)
JPH05196658A (en) Pulse amplitude data sampling circuit
JPS60257616A (en) Pulse generating circuit
JPS6288108A (en) Signal regeneration circuit of magnetic disk device
JPH0537513A (en) Reference phase extraction circuit
JPH07105699B2 (en) Digital filter circuit
JPH05225707A (en) Signal processor
JPH0437215A (en) Differential pulse creation circuit

Legal Events

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