JP2004200837A - Noise rejection method, noise canceller and program - Google Patents

Noise rejection method, noise canceller and program Download PDF

Info

Publication number
JP2004200837A
JP2004200837A JP2002364730A JP2002364730A JP2004200837A JP 2004200837 A JP2004200837 A JP 2004200837A JP 2002364730 A JP2002364730 A JP 2002364730A JP 2002364730 A JP2002364730 A JP 2002364730A JP 2004200837 A JP2004200837 A JP 2004200837A
Authority
JP
Japan
Prior art keywords
signal
noise
output
dff
clock
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.)
Pending
Application number
JP2002364730A
Other languages
Japanese (ja)
Inventor
Fuminori Nagase
文典 長瀬
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.)
Yamaha Corp
Original Assignee
Yamaha 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 Yamaha Corp filed Critical Yamaha Corp
Priority to JP2002364730A priority Critical patent/JP2004200837A/en
Publication of JP2004200837A publication Critical patent/JP2004200837A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To ensure high reliability and noise canceling power while digitally rejecting noise superposed on a digital signal. <P>SOLUTION: D type flip-flops (DFF) 14 and 16 output signals S14 and S16 produced by delaying an input signal Sin every specified periods. If the signals S14 and S16 have an identical level, a combination circuit 2 sets a signal S2 at that identical level otherwise sets the signal S2 at the level of an output signal Sout in current period. That signal S2 is latched in a DFF 32 upon start of next period and delivered as the output signal Sout. <P>COPYRIGHT: (C)2004,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明は、デジタル回路の信号入力部に用いて好適なノイズ除去方法、ノイズキャンセラおよびプログラムに関する。
【0002】
【従来の技術】
デジタル回路に入力される信号にノイズが重畳すると、デジタル回路に誤動作が生じるため、デジタル回路の信号入力段にはノイズキャンセラが設けられることが多い。一般的に、ノイズキャンセラは、入力信号のローパスフィルタリングを行うRCフィルタ回路と、フィルタリングされた信号を整形する(信号レベルを“0”または“1”の何れかに設定する)シュミットトリガ回路とから構成される。しかし、デジタル回路をLSI化しようとする際、RCフィルタ回路に必要なコンデンサがLSI基板上の多大な面積を占有するという問題がある。さらに、RCフィルタ等のアナログ回路を使用することにより、製造プロセスや電圧条件等によってノイズキャンセル能力が悪化する場合がある等の問題も生じる。
【0003】
このため、ノイズ除去を全てデジタル的に処理する技術が特許文献1に開示されている。特許文献1に開示された技術においては、入力信号の変化(“0”→“1”または“1”→“0”)を検出する信号変化検出回路と、検出された信号変化タイミングを基準としてその変化後のレベルが保持されている時間を計時する計時回路と、ラッチ信号に応じて入力信号をラッチするフリップフロップとが設けられている。
【0004】
ここで、計時回路は、計時された時間が所定の基準時間に達すると、該フリップフロップに対して上記ラッチ信号を出力するように構成されている。逆に、該基準時間を経過する前に入力信号が変化した場合には、ラッチ信号は出力されないことになる。すなわち、入力信号が変化した後に再び変化する迄の時間が該基準時間未満であれば、当該期間内の信号はノイズであると看做される。そして、フリップフロップの出力信号すなわちラッチ結果が、入力信号からノイズを除去した結果として出力される。
【0005】
また、特許文献2,3には、他のノイズキャンセル技術が開示されている。これらの技術は、シフトレジスタ等を用いて入力信号を所定のクロック周期毎に遅延させることによって過去数周期に渡る入力信号を同時に出力し、これら複数の過去の入力信号に対して多数決演算を施し、ノイズを除去した信号としてその多数決演算結果を出力する、というものである。
【0006】
【特許文献1】特開平05− 014144号公報
【特許文献2】特開平05− 006455号公報
【特許文献3】特開平07− 212209号公報
【0007】
【発明が解決しようとする課題】
しかし、特許文献1に開示された技術は、信頼性に欠けるものであった。すなわち、計時回路がラッチ信号を出力するタイミングと、入力信号が変化するタイミングとが重なると、フリップフロップにラッチされる信号が不定になり、誤った信号がラッチされるという問題があった。また、特許文献2,3に開示された技術によれば、例えばキーボードのチャタリング等、頻繁に生ずるノイズを除去しようとする際にノイズキャンセル能力が著しく劣るという問題がある。一例として、過去「3」周期の入力信号の多数決によって出力信号を決定する回路を想定してみる。この回路に対して、クロック周期毎に“1”,“0”,“1”,“0”,……のように繰り返される入力信号を供給すると、ある周期においては“1”,“0”,“1”の多数決によって“1”が出力され、次の周期には“0”,“1”,“0”の多数決によって“0”が出力される。これが繰り返されると、出力信号もクロック周期毎に“1”,“0”,“1”,“0”,……のように繰り返される信号になり、全くノイズが除去されていないことが解る。
この発明は上述した事情に鑑みてなされたものであり、デジタル的にノイズを除去しつつ、高い信頼性とノイズキャンセル能力を確保できるノイズ除去方法、ノイズキャンセラおよびプログラムを提供することを目的としている。
【0008】
【課題を解決するための手段】
上記課題を解決するため本発明にあっては、下記構成を具備することを特徴とする。なお、括弧内は例示である。
請求項1記載のノイズ除去方法にあっては、入力二値信号(Sin)を所定周期毎に遅延した複数の遅延信号(S14,S16)を生成する過程と、これら遅延信号が同一の値を有する場合は当該同一の値を演算結果(S2)とし、その他の場合は現周期の出力二値信号(Sout)を演算結果(S2)とする演算過程(18〜30)と、前記各周期毎に、前記演算結果(S2)を次の周期における出力二値信号(Sout)として出力する過程(12)とを有することを特徴とする。
また、請求項2記載のノイズキャンセラにあっては、請求項1記載のノイズ除去方法を実行することを特徴とする。
また、請求項3記載のプログラムにあっては、請求項1記載のノイズ除去方法を実行することを特徴とする。
【0009】
【発明の実施の形態】
1.第1実施形態
1.1.第1実施形態の構成
次に、本発明の第1実施形態によるノイズキャンセラの構成を図1を参照し説明する。
図において12はD型フリップフロップ(以下、DFFという)であり、そのデータ入力端Dには、バッファ10を介して二値信号である入力信号Sinが供給される。DFF12のクロック入力端CKにはクロック信号CLKが供給され、該クロック信号CLKの立上がり時にデータ入力端Dの信号がラッチされ、ラッチされた信号はデータ出力端Qを介して出力される。また、DFF12のリセット入力端SANには負論理のリセット信号RSTが供給される。このリセット信号RSTが“1”から“0”に立下がると、データ入力端D等の信号状態に拘らずデータ出力端Qの出力信号が強制的に“1”にリセットされる。その後、リセット信号RSTが“0”から“1”に立上がると、データ入力端D等の信号状態に応じて出力信号が切り換わる状態になる。
【0010】
同様に、14,16,32はDFFであり、これらのクロック入力端CKにはクロック信号CLKが、また、リセット入力端SANにはリセット信号RSTが供給される。DFF12の出力信号S12はDFF14のデータ入力端Dに供給され、DFF14の出力信号S14はDFF16のデータ入力端Dに供給される。これにより、信号S14,S16は、クロック信号CLKの周期毎に信号S12を遅延させた信号になる。
【0011】
次に、18,26,28はAND回路、20はNOR回路、22,30はOR回路、24はインバータであり、これらによって組み合わせ回路2が構成されている。組み合わせ回路2は、上記信号S14,S16と、DFF32の出力信号Soutとに基づいて、以下のような信号S2を出力する。
(1)信号S14,S16が同一の値であれば、信号S2を当該同一の値に設定する。
(2)上記(1)以外の場合は信号S2を出力信号Soutと同一の値に設定する。
DFF32においては、クロック信号CLKの立上がりとともにこの信号S2がラッチされ、ラッチされた結果が新たな出力信号Soutとして出力されることになる。
【0012】
なお、初段のDFF12は、メタステーブル対策用に設けられたものである。「メタステーブル」とは、クロック信号CLKの立上がりとDFFへの入力信号の立上がりとが重なった場合に、初段のDFFの出力が不安定になることを言う。本実施形態においては、初段のDFF12はメタステーブル対策のためにのみ使用され、組み合わせ回路2における演算には後段のDFF14,16の出力信号が使用されるため、メタステーブルが演算結果に及ぼす影響を、充分に抑制することができるのである。
【0013】
1.2.第1実施形態の動作
次に、本実施形態の動作を図2を参照し説明する。図においてクロック信号CLKは所定の周期を有しており、その各立上がりタイミングを時刻t0,t1,t2,……,t18とする。なお、これらの時刻を「クロックタイミング」と呼ぶ。図示の例ではリセット信号RSTが時刻t01に“0”に立ち下がり、その後の時刻t21において“1”に立ち上がっている。この立下り時においては、各DFF12,14,16,32にラッチされている値が強制的に“1”にリセットされる。その後、リセット信号RSTが“1”に立ち上がった後においても、入力信号Sinが“1”である限り、各DFF12,14,16,32には“1”がラッチされ続けるため、これらDFFの出力信号は“1”に保持される。
【0014】
次に、時刻t31において入力信号Sinが“0”に立下ったとする。この“0”信号は時刻t4のタイミングにおいてDFF12にラッチされ、信号S12が“0”に立ち下がる。そして、該信号S12が時刻t5においてDFF14にラッチされるから、図示のように時刻t5において信号S14は“0”に立ち下がることになる。
【0015】
次に、その後の時刻t51において入力信号Sinが“1”に立ち上がると、「2」回後のクロック信号CLKの立上がりタイミングすなわち時刻t7において“1”信号がDFF14にラッチされ、信号S14が立ち上がる。以下同様に、図2の例においては時刻t71,t81,t101,t121,t131,t141において入力信号Sinが切り換わっており、切換後のレベルが次のクロックタイミングまで保持されているから、これらのさらに次のクロックタイミングである時刻t9,t10,t12,t14,t15,t16において信号S14のレベルが切り換わっている。また、DFF16の出力信号S16は、信号S14と同様の波形を有し、信号S14に対して「1」クロック周期遅延した信号である。
【0016】
これら信号S14,S16と出力信号Soutとに基づく演算結果が信号S2として出力され、該信号S2はDFF32にラッチされることにより次の周期の出力信号Soutとして出力される。図2において入力信号Sinと出力信号Soutとを比較すると、入力信号Sinにおいて一定の信号レベルの持続期間内に発生するクロックタイミングが「1」回以下である区間(信号S12,S14,S16においては持続時間が「1」クロック周期になる区間)は、出力信号Soutにおいては、その前後の区間と同一の信号レベルに設定されている。換言すれば、本実施形態においては、入力信号Sinにおける当該区間はノイズであると看做され、これを除去した結果が出力信号Soutとして出力されるのである。
【0017】
このように、本実施形態においては、「2」クロック周期に渡る入力信号Sinの遅延結果である信号S14,S16が同一であることを条件として信号S2すなわち出力信号Soutを更新するため、高いノイズキャンセル能力を発揮することができる。すなわち、入力信号Sinが例えばクロック周期毎に“1”,“0”,“1”,“0”,……のように繰り返される信号であったとしても、出力信号Soutを“1”または“0”に安定させることができるのである。
【0018】
2.第2実施形態
次に、本発明の第2実施形態によるノイズキャンセラの構成を図3を参照し説明する。なお、図3において図1の各部に対応する部分には同一の符号を付しその説明を省略する。
図において52,54,56はDFFであり、上述したDFF12,14,16と同様に構成されている。さらに、DFF56の後段にはDFF57が接続されている。これにより、DFF52においては入力信号Sinがクロック周期毎にラッチされその結果が信号S52として出力される。そして、DFF54,56,57においては、この信号S52を順次「1」クロック周期づつ遅延させた信号S54,S56,S57が出力される。
【0019】
次に、58,66,68はAND回路、60はNOR回路、62,70はOR回路、64はインバータであり、これらによって組み合わせ回路4が構成されている。組み合わせ回路4は、上記信号S54,S56,S57と、DFF72の出力信号Soutとに基づいて、以下のような信号S4を出力する。
(1)信号S54,S56,S57が同一の値であれば、信号S4を当該同一の値に設定する。
(2)上記(1)以外の場合は信号S4を出力信号Soutと同一の値に設定する。
そして、この信号S4がDFF72にラッチされ、次のクロック周期における出力信号Soutとして出力されることになる。
【0020】
このように、本実施形態においては、「3」クロック周期に渡る入力信号Sinの遅延結果である信号S54,S56,S57が同一であることを条件として信号S2すなわち出力信号Soutを更新するため、高いノイズキャンセル能力を発揮することができる。すなわち、入力信号Sinにおいて一定の信号レベルの持続期間内に発生するクロックタイミングが「2」回以下である区間(信号S52,S54,S56においては持続時間が「2」クロック周期以下になる区間)はノイズであると看做され、これを除去した結果が出力信号Soutとして出力されるのである。
【0021】
さらに、本実施形態は第1実施形態よりも一層高いノイズキャンセル能力を発揮することができる。まず、本実施形態においては、第1実施形態と同様に入力信号Sinが例えばクロック周期毎に“1”,“0”,“1”,“0”,……のように繰り返される信号であったとしても、出力信号Soutを“1”または“0”に安定させることができる。さらに、本実施形態によれば、“1”,“1”,“0”,“0”,“1”,“1”,……のように「2」クロック周期毎に変化するノイズが入力信号Sinに重畳されたとしても、出力信号Soutを“1”または“0”に安定させることができるのである。
【0022】
3.変形例
本発明は上述した実施形態に限定されるものではなく、例えば以下のように種々の変形が可能である。
(1)上記第1実施形態においては「2」クロック周期に渡る遅延信号の連続性に基づいて、また第2実施形態においては「3」クロック周期に渡る遅延信号の連続性に基づいて、次のクロック周期における出力信号Soutを更新するか否かが決定されたが、必要な遅延信号の数n(すなわちDFFの数)は、入力信号Sinが本来有する信号波形や入力信号Sinに重畳されるノイズの長さ(クロック数)あるいはノイズの発生頻度等に応じて、「4」以上の自然数に設定してもよい。
【0023】
(2)上記各実施形態においては、各DFFは、リセット信号RSTが“0”に立下った際にデータ出力端Qの出力信号が強制的に“1”になるように構成されていた。しかし、これらのDFFに代えて、リセット信号RSTの立下りに応じて出力信号が強制的に“0”に設定されるものを用いてもよい。一例として、第1実施形態に対してかかる変形を施した回路を図4に示す。図4においては、図1におけるDFF12,14,16,32に代えて、DFF42,44,46,48が設けられている。これらDFF42,44,46,48においては、リセット入力端RANに供給されるリセット信号RSTが“1”から“0”に立ち下がると、データ入力端D等の信号状態に拘らずデータ出力端Qの出力信号が強制的に“0”にリセットされる。その後、リセット信号RSTが“0”から“1”に立上がると、データ入力端D等の信号状態に応じて出力信号が切り換わる状態になる。
【0024】
(3)また、図1,図3,図4の回路図あるいは上記各変形例と同様のアルゴリズムを、コンピュータ上で動作するプログラム(例えばキーボードドライバ)によって実現することもできる。このプログラムのみをCD−ROM、フレキシブルディスク等の記録媒体に格納して頒布し、あるいは伝送路を通じて頒布することもできる。
【0025】
【発明の効果】
以上説明したように本発明によれば、複数の遅延信号が同一の値を有する場合は当該同一の値を次の周期の出力二値信号に設定するとともにそれ以外の場合は現周期の出力二値信号を次の周期の出力二値信号に設定するから、デジタル的にノイズを除去しつつ、高い信頼性とノイズキャンセル能力を確保することができる。
【図面の簡単な説明】
【図1】本発明の第1実施形態によるノイズキャンセラの回路図である。
【図2】図1における各部の波形図である。
【図3】本発明の第2実施形態によるノイズキャンセラの回路図である。
【図4】第1実施形態の変形例によるノイズキャンセラの回路図である。
【符号の説明】
2,4:組み合わせ回路、10:バッファ、20,60:NOR回路、24,64:インバータ、22,30,62,70:OR回路、18,26,28,58,66,68:AND回路、12,14,16,32,42,44,46,48,52,54,56,57,72:D型フリップフロップ、D:データ入力端、Q:データ出力端、CK:クロック入力端、RAN,SAN:リセット入力端。
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a noise removal method, a noise canceller, and a program suitable for use in a signal input unit of a digital circuit.
[0002]
[Prior art]
When noise is superimposed on a signal input to a digital circuit, a malfunction occurs in the digital circuit. Therefore, a noise canceller is often provided in a signal input stage of the digital circuit. In general, a noise canceller includes an RC filter circuit that performs low-pass filtering of an input signal, and a Schmitt trigger circuit that shapes the filtered signal (sets the signal level to either “0” or “1”). Is done. However, there is a problem that a capacitor required for an RC filter circuit occupies a large area on an LSI substrate when an attempt is made to convert a digital circuit into an LSI. Further, the use of an analog circuit such as an RC filter causes a problem that the noise canceling capability may be deteriorated depending on a manufacturing process, voltage conditions, and the like.
[0003]
For this reason, Japanese Patent Application Laid-Open Publication No. H11-163873 discloses a technique for digitally removing noise. In the technique disclosed in Patent Document 1, a signal change detection circuit for detecting a change (“0” → “1” or “1” → “0”) of an input signal, and a detected signal change timing as a reference There are provided a timing circuit for measuring the time during which the level after the change is held, and a flip-flop for latching an input signal in accordance with the latch signal.
[0004]
Here, the timing circuit is configured to output the latch signal to the flip-flop when the counted time reaches a predetermined reference time. Conversely, if the input signal changes before the reference time has elapsed, no latch signal is output. That is, if the time from when the input signal changes to when it changes again is less than the reference time, the signal within the period is regarded as noise. Then, an output signal of the flip-flop, that is, a latch result is output as a result of removing noise from the input signal.
[0005]
Patent Documents 2 and 3 disclose other noise canceling techniques. These techniques use a shift register or the like to delay an input signal every predetermined clock cycle, thereby simultaneously outputting input signals over the past several cycles, and performing a majority operation on the plurality of past input signals. And outputting the majority operation result as a signal from which noise has been removed.
[0006]
[Patent Document 1] Japanese Patent Application Laid-Open No. 05-014144 [Patent Document 2] Japanese Patent Application Laid-Open No. 05-006455 [Patent Document 3] Japanese Patent Application Laid-Open No. 07-212209 [0007]
[Problems to be solved by the invention]
However, the technology disclosed in Patent Literature 1 lacks reliability. That is, when the timing at which the clock circuit outputs the latch signal coincides with the timing at which the input signal changes, the signal latched by the flip-flop becomes indefinite, and an erroneous signal is latched. Further, according to the techniques disclosed in Patent Literatures 2 and 3, there is a problem that noise canceling ability is remarkably inferior when trying to remove frequent noises such as keyboard chattering. As an example, consider a circuit that determines an output signal by majority decision of input signals in the past “3” cycles. When this circuit is supplied with an input signal that is repeated such as "1", "0", "1", "0",... Every clock cycle, "1", "0" , "1", "1" is output, and in the next cycle, "0" is output by majority, "0", "1", "0". When this is repeated, the output signal becomes a signal that repeats as "1", "0", "1", "0",... Every clock cycle, indicating that no noise has been removed.
The present invention has been made in view of the above circumstances, and has as its object to provide a noise elimination method, a noise canceller, and a program capable of securing high reliability and noise canceling capability while digitally removing noise.
[0008]
[Means for Solving the Problems]
In order to solve the above problems, the present invention is characterized by having the following configuration. The contents in parentheses are examples.
In the noise removing method according to the first aspect, a step of generating a plurality of delay signals (S14, S16) obtained by delaying the input binary signal (Sin) at predetermined intervals, and the steps of generating a plurality of delay signals having the same value. If there is, the same value is used as the operation result (S2); otherwise, the output binary signal (Sout) of the current cycle is used as the operation result (S2). And (12) outputting the operation result (S2) as an output binary signal (Sout) in the next cycle.
According to a second aspect of the present invention, there is provided a noise canceller which executes the noise removing method according to the first aspect.
According to a third aspect of the present invention, there is provided a program for executing the noise removing method according to the first aspect.
[0009]
BEST MODE FOR CARRYING OUT THE INVENTION
1. First embodiment
1.1. Next, the configuration of the noise canceller according to the first embodiment of the present invention will be described with reference to FIG.
In the figure, reference numeral 12 denotes a D-type flip-flop (hereinafter, referred to as DFF), and its data input terminal D is supplied with an input signal Sin which is a binary signal via a buffer 10. The clock signal CLK is supplied to the clock input terminal CK of the DFF 12, the signal of the data input terminal D is latched at the rise of the clock signal CLK, and the latched signal is output via the data output terminal Q. The reset input terminal SAN of the DFF 12 is supplied with a reset signal RST of negative logic. When the reset signal RST falls from "1" to "0", the output signal of the data output terminal Q is forcibly reset to "1" regardless of the signal state of the data input terminal D or the like. Thereafter, when the reset signal RST rises from “0” to “1”, the output signal switches according to the signal state of the data input terminal D and the like.
[0010]
Similarly, 14, 16, and 32 are DFFs, and a clock signal CLK is supplied to the clock input terminal CK, and a reset signal RST is supplied to the reset input terminal SAN. The output signal S12 of the DFF 12 is supplied to the data input terminal D of the DFF 14, and the output signal S14 of the DFF 14 is supplied to the data input terminal D of the DFF 16. As a result, the signals S14 and S16 become signals obtained by delaying the signal S12 for each cycle of the clock signal CLK.
[0011]
Next, reference numerals 18, 26 and 28 denote AND circuits, reference numeral 20 denotes a NOR circuit, reference numerals 22 and 30 denote OR circuits, and reference numeral 24 denotes an inverter. The combinational circuit 2 outputs the following signal S2 based on the signals S14 and S16 and the output signal Sout of the DFF 32.
(1) If the signals S14 and S16 have the same value, the signal S2 is set to the same value.
(2) In cases other than the above (1), the signal S2 is set to the same value as the output signal Sout.
In the DFF 32, the signal S2 is latched with the rise of the clock signal CLK, and the latched result is output as a new output signal Sout.
[0012]
The DFF 12 in the first stage is provided for a measure against metastable. "Meta stable" means that when the rising of the clock signal CLK and the rising of the input signal to the DFF overlap, the output of the first stage DFF becomes unstable. In the present embodiment, the first-stage DFF 12 is used only for the countermeasure against metastable, and the operation in the combinational circuit 2 uses the output signals of the second-stage DFFs 14 and 16. , Can be sufficiently suppressed.
[0013]
1.2. Operation of First Embodiment Next, the operation of this embodiment will be described with reference to FIG. In the figure, a clock signal CLK has a predetermined cycle, and its rising timing is assumed to be times t0, t1, t2,..., T18. Note that these times are referred to as “clock timing”. In the illustrated example, the reset signal RST falls to “0” at time t01, and rises to “1” at time t21 thereafter. At the time of the fall, the values latched in the DFFs 12, 14, 16, and 32 are forcibly reset to "1". After that, even after the reset signal RST rises to "1", as long as the input signal Sin is "1", "1" is continuously latched in each of the DFFs 12, 14, 16, and 32. The signal is held at "1".
[0014]
Next, it is assumed that the input signal Sin falls to "0" at time t31. This "0" signal is latched by the DFF 12 at the timing of time t4, and the signal S12 falls to "0". Since the signal S12 is latched by the DFF 14 at time t5, the signal S14 falls to "0" at time t5 as shown.
[0015]
Next, when the input signal Sin rises to "1" at the subsequent time t51, the "1" signal is latched by the DFF 14 at the rising timing of the clock signal CLK after "2" times, that is, at time t7, and the signal S14 rises. Similarly, in the example of FIG. 2, the input signal Sin is switched at times t71, t81, t101, t121, t131, and t141, and the level after the switching is held until the next clock timing. Further, the level of the signal S14 is switched at the next clock timings t9, t10, t12, t14, t15, and t16. The output signal S16 of the DFF 16 has the same waveform as the signal S14 and is a signal delayed by one clock cycle with respect to the signal S14.
[0016]
An operation result based on these signals S14 and S16 and the output signal Sout is output as a signal S2. The signal S2 is latched by the DFF 32 and output as an output signal Sout of the next cycle. In FIG. 2, when the input signal Sin and the output signal Sout are compared with each other, the section in which the clock timing of the input signal Sin occurring within the duration of the constant signal level is "1" or less (in the signals S12, S14 and S16, The section whose duration is "1" clock cycle) is set to the same signal level in the output signal Sout as in the preceding and following sections. In other words, in this embodiment, the section in the input signal Sin is regarded as noise, and the result of removing the section is output as the output signal Sout.
[0017]
As described above, in the present embodiment, the signal S2, that is, the output signal Sout is updated on the condition that the signals S14 and S16, which are the delay results of the input signal Sin over "2" clock cycles, are the same, so that high noise The ability to cancel can be demonstrated. That is, even if the input signal Sin is a signal that repeats, for example, “1”, “0”, “1”, “0”,... Every clock cycle, the output signal Sout is changed to “1” or “1”. It can be stabilized at 0 ".
[0018]
2. Second Embodiment Next, the configuration of a noise canceller according to a second embodiment of the present invention will be described with reference to FIG. Note that, in FIG. 3, parts corresponding to the respective parts in FIG. 1 are given the same reference numerals, and descriptions thereof will be omitted.
In the figure, DFFs 52, 54, and 56 are configured similarly to the DFFs 12, 14, and 16 described above. Further, a DFF 57 is connected to a stage subsequent to the DFF 56. As a result, in the DFF 52, the input signal Sin is latched every clock cycle, and the result is output as the signal S52. The DFFs 54, 56, and 57 output signals S54, S56, and S57, which are obtained by sequentially delaying the signal S52 by "1" clock cycle.
[0019]
Next, 58, 66, and 68 are AND circuits, 60 is a NOR circuit, 62 and 70 are OR circuits, and 64 is an inverter, and these constitute the combinational circuit 4. The combinational circuit 4 outputs the following signal S4 based on the signals S54, S56, S57 and the output signal Sout of the DFF 72.
(1) If the signals S54, S56 and S57 have the same value, the signal S4 is set to the same value.
(2) In cases other than the above (1), the signal S4 is set to the same value as the output signal Sout.
Then, the signal S4 is latched by the DFF 72 and output as the output signal Sout in the next clock cycle.
[0020]
As described above, in the present embodiment, the signal S2, that is, the output signal Sout is updated on the condition that the signals S54, S56, and S57, which are the delay results of the input signal Sin over "3" clock cycles, are the same. High noise canceling ability can be exhibited. That is, a section in which the clock timing of the input signal Sin occurring within the duration of the constant signal level is "2" times or less (a section in which the duration of the signals S52, S54 and S56 is "2" clock cycles or less). Is regarded as noise, and the result of removing the noise is output as the output signal Sout.
[0021]
Further, the present embodiment can exhibit a higher noise canceling ability than the first embodiment. First, in the present embodiment, similarly to the first embodiment, the input signal Sin is a signal that repeats, for example, “1”, “0”, “1”, “0”,. Even if this is the case, the output signal Sout can be stabilized at "1" or "0". Further, according to the present embodiment, noise that changes every two clock cycles, such as “1”, “1”, “0”, “0”, “1”, “1”,. Even if the output signal Sout is superimposed on the signal Sin, the output signal Sout can be stabilized at "1" or "0".
[0022]
3. Modifications The present invention is not limited to the above-described embodiment, and various modifications are possible as follows, for example.
(1) In the first embodiment, based on the continuity of the delay signal over "2" clock cycles, and in the second embodiment, based on the continuity of the delay signal over "3" clock cycles, It is determined whether or not to update the output signal Sout in the clock cycle of (1). However, the required number n of delay signals (that is, the number of DFFs) is superimposed on the signal waveform originally included in the input signal Sin and the input signal Sin. It may be set to a natural number of “4” or more according to the length of noise (the number of clocks) or the frequency of occurrence of noise.
[0023]
(2) In each of the above embodiments, each DFF is configured such that when the reset signal RST falls to “0”, the output signal of the data output terminal Q is forced to “1”. However, instead of these DFFs, those whose output signal is forcibly set to “0” in response to the fall of the reset signal RST may be used. As an example, FIG. 4 shows a circuit obtained by applying such a modification to the first embodiment. In FIG. 4, DFFs 42, 44, 46, and 48 are provided instead of the DFFs 12, 14, 16, and 32 in FIG. In these DFFs 42, 44, 46, and 48, when the reset signal RST supplied to the reset input terminal RAN falls from "1" to "0", the data output terminal Q regardless of the signal state of the data input terminal D or the like. Is forcibly reset to "0". Thereafter, when the reset signal RST rises from “0” to “1”, the output signal switches according to the signal state of the data input terminal D and the like.
[0024]
(3) Further, the same algorithm as that in the circuit diagrams of FIGS. 1, 3, and 4 or each of the above-described modified examples can be realized by a program (for example, a keyboard driver) that operates on a computer. Only this program can be stored in a recording medium such as a CD-ROM or a flexible disk and distributed, or can be distributed through a transmission path.
[0025]
【The invention's effect】
As described above, according to the present invention, when a plurality of delay signals have the same value, the same value is set to the output binary signal of the next cycle, and otherwise, the output binary signal of the current cycle is set. Since the value signal is set to the output binary signal of the next cycle, high reliability and noise canceling ability can be secured while digitally removing noise.
[Brief description of the drawings]
FIG. 1 is a circuit diagram of a noise canceller according to a first embodiment of the present invention.
FIG. 2 is a waveform chart of each part in FIG.
FIG. 3 is a circuit diagram of a noise canceller according to a second embodiment of the present invention.
FIG. 4 is a circuit diagram of a noise canceller according to a modification of the first embodiment.
[Explanation of symbols]
2, 4: combination circuit, 10: buffer, 20, 60: NOR circuit, 24, 64: inverter, 22, 30, 62, 70: OR circuit, 18, 26, 28, 58, 66, 68: AND circuit, 12, 14, 16, 32, 42, 44, 46, 48, 52, 54, 56, 57, 72: D-type flip-flop, D: data input terminal, Q: data output terminal, CK: clock input terminal, RAN , SAN: reset input terminal.

Claims (3)

入力二値信号を所定周期毎に遅延した複数の遅延信号を生成する過程と、
これら遅延信号が同一の値を有する場合は当該同一の値を演算結果とし、その他の場合は現周期の出力二値信号を演算結果とする演算過程と、
前記各周期毎に、前記演算結果を次の周期における出力二値信号として出力する過程と
を有することを特徴とするノイズ除去方法。
A process of generating a plurality of delayed signals obtained by delaying the input binary signal at predetermined intervals,
When these delayed signals have the same value, the same value is used as the calculation result; otherwise, the calculation process uses the current period output binary signal as the calculation result,
Outputting the calculation result as an output binary signal in the next cycle for each of the cycles.
請求項1記載のノイズ除去方法を実行することを特徴とするノイズキャンセラ。A noise canceller that performs the noise removal method according to claim 1. 請求項1記載のノイズ除去方法を実行することを特徴とするプログラム。A program for executing the noise removal method according to claim 1.
JP2002364730A 2002-12-17 2002-12-17 Noise rejection method, noise canceller and program Pending JP2004200837A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002364730A JP2004200837A (en) 2002-12-17 2002-12-17 Noise rejection method, noise canceller and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002364730A JP2004200837A (en) 2002-12-17 2002-12-17 Noise rejection method, noise canceller and program

Publications (1)

Publication Number Publication Date
JP2004200837A true JP2004200837A (en) 2004-07-15

Family

ID=32762469

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002364730A Pending JP2004200837A (en) 2002-12-17 2002-12-17 Noise rejection method, noise canceller and program

Country Status (1)

Country Link
JP (1) JP2004200837A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006060436A (en) * 2004-08-19 2006-03-02 Meidensha Corp Synchronous digital filter
US7952391B2 (en) 2009-06-17 2011-05-31 Renesas Electronics Corporation Digital noise filter

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006060436A (en) * 2004-08-19 2006-03-02 Meidensha Corp Synchronous digital filter
US7952391B2 (en) 2009-06-17 2011-05-31 Renesas Electronics Corporation Digital noise filter
US8395417B2 (en) 2009-06-17 2013-03-12 Renesas Electronics Corporation Digital noise filter

Similar Documents

Publication Publication Date Title
JP5401180B2 (en) Digital noise filter circuit
JP2002064383A (en) Δς modulator
JP2006332945A (en) Semiconductor integrated circuit
JP2004200837A (en) Noise rejection method, noise canceller and program
JP2014052282A (en) Frequency measurement circuit
US6728649B2 (en) Method and apparatus for removing digital glitches
JP2009010827A (en) Noise removing circuit and comparator circuit equipped with the same
JP2678115B2 (en) Timer circuit
JP2000134070A (en) Noise eliminating circuit
JP5342360B2 (en) Switching driver circuit
JP3690915B2 (en) Semiconductor device having random number generation circuit
JP3736190B2 (en) Digital filter
JP2001021596A (en) Comparator of binary signal and pll circuit using it
JP3201445B2 (en) Chattering prevention circuit
US11671236B2 (en) Receiver and associated signal processing method
JP2005303358A (en) Digital noise filter
JP5900053B2 (en) Clock switching circuit
CN114785364B (en) Receiver and related signal processing method
JP2001195155A (en) Reset signal control circuit
JP2002271427A (en) Noise removing circuit
JP4217500B2 (en) Clock abnormality detection circuit and detection method thereof
JP3555501B2 (en) Noise filter circuit
TW494634B (en) Digital low-pass filter for digital signals and method to process a digital signal
JP2008104039A (en) Filter circuit
JP2002026704A (en) Clock fault detector and its method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040521

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20051219

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060104

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20060516