JP2004015406A - Digital filter circuit - Google Patents

Digital filter circuit Download PDF

Info

Publication number
JP2004015406A
JP2004015406A JP2002165790A JP2002165790A JP2004015406A JP 2004015406 A JP2004015406 A JP 2004015406A JP 2002165790 A JP2002165790 A JP 2002165790A JP 2002165790 A JP2002165790 A JP 2002165790A JP 2004015406 A JP2004015406 A JP 2004015406A
Authority
JP
Japan
Prior art keywords
digital filter
circuit
registers
filter
input
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
JP2002165790A
Other languages
Japanese (ja)
Inventor
Tsunetomo Kamihira
上平 常友
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 JP2002165790A priority Critical patent/JP2004015406A/en
Publication of JP2004015406A publication Critical patent/JP2004015406A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a digital filter circuit configured in multi-stages with its circuit scale reduced so that parameter setting and degree of the filter can be changed. <P>SOLUTION: The digital filter circuit comprises: a digital filter arithmetic circuit comprising multipliers 1 to 5, adders 7, 9, 19, and registers 8, 9; a register 10 for latching an output of the digital filter arithmetic circuit; a selector 17 for selecting a sample value input or an output of a feedback register as an input to the digital filter arithmetic circuit; and registers 11 to 15 the number of which is the same as that of the multipliers holding multiplication coefficients given to the multipliers, values held in the registers 8, 9 are saved after activating the digital filter arithmetic circuit, and the values saved in the registers 8, 9 are restored before activating the digital filter arithmetic circuit. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
本発明はディジタルフィルタの構成法に係り、特に多段に構成されるディジタルフィルタにおいて回路規模を削減することができるディジタルフィルタ回路に関するものである。
【0002】
【従来の技術】
従来、IIR(無限長インパルス応答)型のサブフィルタでバンドパスフィルタを構成する場合、複数のハイパスフィルタやローパスフィルタを直列に接続して構成していた。個々のハイパスフィルタやローパスフィルタにおけるフィルタのパラメータは設計時に決定し、半導体チップとしてハード化されていた。
【0003】
図3は、このようなIIR型のサブフィルタを多段に接続した従来のバンドパスフィルタの構成を示す回路図である。図3において、サブフィルタ31および32は標準的な2次のIIR型のハイパスフィルタまたはローパスフィルタである。ここでは2次のIIR型フィルタをN個使用し、2×N次のバンドパスフィルタを構成している。
【0004】
ハイパスフィルタとローパスフィルタの回路構成は同様で、フィルタのパラメータを与える乗算係数が違うだけである。サブフィルタ31および32はそれぞれ、乗算器41〜45および61〜65、加算器46、47、51および66、67、71、データラッチ用のレジスタ48〜50および68〜70で構成され、乗算係数は各乗算器について半導体チップ内のハードウェアで固定されている。
【0005】
【発明が解決しようとする課題】
上記従来のバンドパスフィルタの構成においては、各ハイパスフィルタやローパスフィルタに乗算器と加算器が含まれており、必要な次数を2×Nとすると、1サブフィルタのN倍の乗算器と加算器が必要であった。そのため、これらの乗算器や加算器のトランジスタ数は非常に多くなり、半導体チップのコストアップを招いていた。
【0006】
また、フィルタを設計する際、サブフィルタのパラメータやサブフィルタの次数(この場合は2×N)は、所望するフィルタ特性を実現できる様に設計されるが、半導体チップの製造過程で特性のバラツキなどが発生した場合に、所望の特性が得られなくてもパラメータの変更や次数の変更などはできなかった。
【0007】
本発明は、かかる従来例の問題点に鑑みてなされたものであり、多段に構成されるディジタルフィルタにおいて、回路規模を削減することができるディジタルフィルタ回路を提供することを目的とする。さらに、本発明は半導体チップ製造後でもフィルタのパラメータ設定や変更が可能で、かつフィルタ次数の変更も可能なディジタルフィルタ回路を提供することも目的とする。
【0008】
【課題を解決するための手段】
この目的を達成するために、本発明の請求項1に係るディジタルフィルタ回路は、乗算器(1〜5)、加算器(6、7、19)および遅延用ラッチ回路(レジスタ8、9)で構成されるディジタルフィルタ演算回路と、前記ディジタルフィルタ演算回路の出力をラッチするフィードバックレジスタ(10)と、前記ディジタルフィルタ演算回路の入力としてサンプル値入力または前記フィードバックレジスタの出力を選択するセレクタ(17)と、前記乗算器に与える乗算係数を保持する前記乗算器と同数のレジスタ(11〜15)と、前記ディジタルフィルタ演算回路を動作させた後に前記遅延用ラッチ回路に保持された値を退避させ、前記ディジタルフィルタ演算回路を動作させる前に前記遅延用ラッチ回路に前記退避させた値を復元させる制御手段(マイクロコンピュータ16)と、を備えるものである。
【0009】
上記構成によれば、ディジタルフィルタ演算回路を繰り返し使用し、初回はディジタルフィルタ演算回路の入力としてサンプル値入力を選択し、次回からはフィードバックレジスタの出力を選択し、毎回乗算係数を保持するレジスタの値を更新し、ディジタルフィルタ演算回路を動作させた後に毎回遅延用ラッチ回路に保持された値を回数に応じた記憶場所に退避させ、ディジタルフィルタ演算回路を動作させる前に毎回遅延用ラッチ回路に保持された値を回数に応じた記憶場所から復元することにより、繰り返し回数の段数の縦続接続されたディジタルフィルタと同等の動作をさせることができるため、多段構成のディジタルフィルタとして使用することができ、従来の多段構成のディジタルフィルタ回路に比べて回路規模を大幅に削減することができる。
【0010】
さらに、上記構成によれば、ディジタルフィルタ演算回路を繰り返し使用する際に毎回乗算係数を保持するレジスタの値を更新する方式であるため、乗算係数や繰り返し回数の設定を変えることにより、半導体チップの製造後であっても、ディジタルフィルタの特性の変更や調整をすることができる。
【0011】
本発明の請求項2に係るディジタルフィルタ回路は、請求項1記載のディジタルフィルタ回路において、前記乗算係数を保持するレジスタへの乗算係数の設定はマイクロコンピュータにより制御されるものである。
【0012】
上記構成によれば、乗算係数の設定がマイクロコンピュータにより制御されるため、マイクロコンピュータで実行させるソフトウェアにより任意にディジタルフィルタの特性の変更や調整をすることが可能になる。
【0013】
本発明の請求項3に係るディジタルフィルタ回路は、請求項1または2記載のディジタルフィルタ回路において、前記ディジタルフィルタ演算回路は無限長インパルス応答型のディジタルフィルタ回路とするものである。
【0014】
上記構成によれば、多段構成の無限長インパルス応答型のディジタルフィルタ回路において、従来に比べて回路規模を大幅に削減することができ、また、半導体チップの製造後であっても特性の変更や調整をすることができる。
【0015】
【発明の実施の形態】
以下、本発明の実施の形態について図面を参照しながら説明する。図1は本発明の一実施の形態に係るディジタルフィルタ回路の構成を示す回路図である。図1において、1、2、3、4、5は乗算器、6、7、19は加算器、8、9はデータラッチ用のレジスタであり、これらは標準的なIIR型のフィルタ回路を構成する。
【0016】
さらに図1において、11、12、13、14、15はそれぞれ乗算器1、2、3、4、5に与える乗算係数を保持するレジスタ、16はフィルタ回路を制御するマイクロコンピュータ、17はフィルタ回路への入力を選択するセレクタ、18はセレクタ17の入力選択を制御するフリップフロップ、20は入力端子、21は出力端子である。
【0017】
ここでは実施形態として、フィルタ処理されるデータ幅は14ビットとし、レジスタ11、12、13、14、15は14ビット構成、データラッチ用のレジスタ8、9、10は30ビット構成とする。30ビット必要な理由は、入力データが14ビット、乗算係数が14ビット、乗算後に必要となる可能性のある桁上げに1ビット、符号に1ビットで、計30ビットとなるためである。ただし実施形態はビット数を限定するものではなく、基本構成をかえずにビット数のみを増減できることは言うまでもない。
【0018】
データラッチ用のレジスタ8、9とフリップフロップ18と乗算器の乗算係数設定用レジスタ11、12、13、14、15は、データの読み出し/書き込みのためのアドレスバス、データバス、コントロール信号などでマイクロコンピュータ16に接続されており、マイクロコンピュータで実行されるソフトウェアにより書き込むことができる。また、データラッチ用のレジスタ8、9の内容は、マイクロコンピュータで実行されるソフトウェアにより読み出すことができる。
【0019】
セレクタ17の入力には入力端子20からのフィルタ入力とレジスタ10の出力が接続され、マイクロコンピュータ16からフリップフロップ18をセットあるいはリセットすることによりいずれかの入力が選択される。本実施形態では、フリップフロップ18が0の場合に入力端子20のフィルタ入力が選択され、フリップフロップ18が1の場合にレジスタ10の出力が選択されるものとする。
【0020】
セレクタの出力は乗算器1、2、3に接続され、乗算器1、2、3、4、5と加算器6、7、19とレジスタ8、9からなるIIR型のフィルタ回路で演算が行われ、出力がフィードバック用のレジスタ10にラッチされる。レジスタ10の出力は出力端子21に接続されるとともに、上記のようにセレクタ17に接続されることで、フィルタ回路の演算結果を入力にフィードバックする構成になっている。
【0021】
以上のように構成されたディジタルフィルタ回路の動作について、図2に示すフローチャートを用いて説明する。図1の回路を多段構成のディジタルフィルタとして使用するために、まずステップ201でフィルタの段数Nを設定する。
【0022】
本実施の形態では、N段のサブフィルタを直列に接続する代わりに、図1のディジタルフィルタをN回繰り返して使用することにより多段構成のディジタルフィルタの動作をさせる。そのために、各段のフィルタ動作を終了する度にレジスタ8および9の内容を退避させ、各段のフィルタ動作を開始する前に退避させた値をレジスタ8および9に復元する。
【0023】
レジスタ8および9の内容を退避させる記憶場所は各段において必要になるので、これをR(k,1)およびR(k,2)(k=1〜N)とする。ステップ202では、R(k,1)およびR(k,2)の初期値を0に設定する。
【0024】
次に、ステップ203でディジタルフィルタ回路へのサンプル値Siの入力を待つ。サンプル値Siが入力される度に、ステップ204以下の処理をN回繰り返すことにより、N段のフィルタ動作をさせる。繰り返し制御を行うために、ステップ204で繰り返し変数kを初段を示す1に設定する。
【0025】
初段ではディジタルフィルタ回路にサンプル値Siを入力するので、セレクタ17の入力選択がSiになるように、ステップ205でフリップフロップ18を0にリセットする。なお、サンプル値Siは図示しないラッチ回路により値が保持されているものとする。
【0026】
次に、k=1であるので、ステップ206で初段の乗算係数をレジスタ11〜15にセットし、ステップ207でレジスタ8および9にそれぞれ、R(1,1)およびR(1,2)をロードする。これで図1のディジタルフィルタ回路を初段のディジタルフィルタとして動作させる準備ができたので、ステップ208でディジタルフィルタ回路にクロックを与えてフィルタ回路動作をさせる。
【0027】
ステップ209ではフィルタ動作後のレジスタ8および9の内容をR(1,1)およびR(1,2)に退避させ、次のサンプル値Siの入力時の初段の動作に備える。ステップ210で繰り返し変数kをNと比較し、k<Nであればステップ211に進み、次段のフィルタ動作に備えてkに1を加え、さらに、セレクタ17の入力選択でフィードバック用のレジスタ10からフィードバックされた値を選択するように、ステップ212でフリップフロップ18を1にセットする。
【0028】
再びステップ206に戻り、k段の乗算係数をレジスタ11〜15にセットし、ステップ207でレジスタ8および9にそれぞれ、R(k,1)およびR(k,2)をロードする。これで図1のディジタルフィルタ回路をk段のディジタルフィルタとして動作させる準備ができたので、ステップ208でディジタルフィルタ回路にクロックを与えてフィルタ回路動作をさせる。
【0029】
ステップ209ではフィルタ動作後のレジスタ8および9の内容をR(k,1)およびR(k,2)に退避させ、次のサンプル値Siの入力時のk段の動作に備える。ステップ210で繰り返し変数kをNと比較し、k<Nであればステップ211に進み、k=Nであればステップ203に戻り、次のサンプル値Siの入力を待つ。
【0030】
このようにして、入力端子20にサンプル値Siが入力される度にN段のフィルタ動作が行われ、出力端子21には2×N次のディジタルフィルタ出力の時系列が得られる。
【0031】
以上の説明から明らかなように、本実施の形態においては、ディジタルフィルタのパラメータをソフトウェアによりマイクロコンピュータから任意に設定することができる。またフィルタの段数Nもソフトウェアで任意に設定できる。このことにより半導体チップ製造後でもフィルタの特性を任意に変更することが可能になる。
【0032】
従来、ディジタルフィルタのパラメータや次数はチップ設計時に計算され、半導体チップ内のハードウェアで構成されて製造されるため、製造工程での特性変動や製造バラツキの影響を受けた場合に設計した特性が得られないなどの問題があった。上述したように、本発明によりこの問題を解決することができる。
【0033】
また、従来のバンドパスフィルタは複数のサブフィルタを縦列接続させることで構成されており、フィルタを構成するトランジスタ数が多くなっていた。本発明によれば従来のサブフィルタの1回路とレジスタ群だけで構成できるため、トランジスタ数の大幅な削減が可能となる。
【0034】
【発明の効果】
以上説明したように、本発明によれば、ディジタルフィルタ演算回路を繰り返し使用することができるため、多段構成のディジタルフィルタとして使用することができ、従来の多段構成のディジタルフィルタ回路に比べて回路規模を大幅に削減するという優れた効果を得ることができる。
【0035】
さらに本発明によれば、乗算器の乗算係数や繰り返し回数の設定を変えることにより、半導体チップの製造後であっても、ディジタルフィルタの特性の変更や調整をすることができ、特にソフトウェアによりディジタルフィルタの特性を任意に変更することが可能になるという優れた効果を得ることができる。
【図面の簡単な説明】
【図1】本発明の一実施の形態に係るディジタルフィルタ回路の構成を示す回路図。
【図2】本発明の一実施の形態に係るディジタルフィルタ回路の動作を説明するフローチャート。
【図3】従来の多段構成のバンドパスフィルタの構成を示す回路図。
【符号の説明】
1〜5、41〜45、61〜65 乗算器
6、7、19、46、47、51、66、67、71 加算器
8〜10、48〜50、68〜70 データラッチ用のレジスタ
11〜15 乗算係数用のレジスタ
16 マイクロコンピュータ
17 セレクタ
18 フリップフロップ
20、52 入力端子
21、72 出力端子
31、32 サブフィルタ
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a digital filter configuration method, and more particularly to a digital filter circuit capable of reducing the circuit scale in a multistage digital filter.
[0002]
[Prior art]
Conventionally, when a bandpass filter is configured by an IIR (infinite impulse response) type subfilter, a plurality of highpass filters and lowpass filters are connected in series. Filter parameters of individual high-pass filters and low-pass filters are determined at the time of design and are hardened as semiconductor chips.
[0003]
FIG. 3 is a circuit diagram showing a configuration of a conventional bandpass filter in which such IIR type sub-filters are connected in multiple stages. In FIG. 3, sub-filters 31 and 32 are standard second-order IIR high-pass filters or low-pass filters. Here, N second-order IIR filters are used to form a 2 × N-order bandpass filter.
[0004]
The circuit configurations of the high-pass filter and the low-pass filter are the same, except that the multiplication coefficients for providing the parameters of the filter are different. The sub-filters 31 and 32 are respectively composed of multipliers 41 to 45 and 61 to 65, adders 46, 47, 51 and 66, 67, 71, data latch registers 48 to 50 and 68 to 70, and multiplication coefficients Is fixed by hardware in the semiconductor chip for each multiplier.
[0005]
[Problems to be solved by the invention]
In the above-described conventional band-pass filter configuration, a multiplier and an adder are included in each of the high-pass filters and the low-pass filters. If the required order is 2 × N, the multiplier and the adder are N times larger than one sub-filter. Vessel was required. For this reason, the number of transistors of these multipliers and adders becomes very large, leading to an increase in the cost of the semiconductor chip.
[0006]
In designing the filter, the parameters of the sub-filter and the order of the sub-filter (in this case, 2 × N) are designed so as to realize the desired filter characteristics, but the characteristics vary during the manufacturing process of the semiconductor chip. When such a problem occurs, it is impossible to change the parameter or the order even if the desired characteristics are not obtained.
[0007]
The present invention has been made in view of the problems of the conventional example, and has as its object to provide a digital filter circuit capable of reducing a circuit scale in a digital filter configured in multiple stages. Still another object of the present invention is to provide a digital filter circuit capable of setting and changing the parameters of a filter even after a semiconductor chip is manufactured and changing the filter order.
[0008]
[Means for Solving the Problems]
In order to achieve this object, a digital filter circuit according to claim 1 of the present invention comprises a multiplier (1 to 5), an adder (6, 7, 19) and a delay latch circuit (registers 8, 9). A digital filter operation circuit, a feedback register (10) for latching an output of the digital filter operation circuit, and a selector (17) for selecting a sample value input or an output of the feedback register as an input of the digital filter operation circuit And the same number of registers (11 to 15) as the multipliers for holding the multiplication coefficients to be given to the multipliers, and saving the values held in the delay latch circuit after operating the digital filter operation circuit. Before operating the digital filter operation circuit, the value saved in the delay latch circuit is restored. That the control means (microcomputer 16), in which comprises a.
[0009]
According to the above configuration, the digital filter operation circuit is repeatedly used, the sample value input is selected as the input of the digital filter operation circuit for the first time, the output of the feedback register is selected for the next time, and the register for holding the multiplication coefficient every time is selected. After updating the value and operating the digital filter operation circuit, the value held in the delay latch circuit is saved to a storage location corresponding to the number of times each time the digital filter operation circuit is operated. By restoring the stored value from the storage location corresponding to the number of times, the same operation as a cascade-connected digital filter with the number of repetitions can be performed, so that the digital filter can be used as a multistage digital filter. Greatly reduces the circuit size compared to a conventional multi-stage digital filter circuit. It is possible.
[0010]
Furthermore, according to the above configuration, the value of the register holding the multiplication coefficient is updated each time the digital filter operation circuit is repeatedly used. Even after the manufacture, the characteristics of the digital filter can be changed or adjusted.
[0011]
A digital filter circuit according to a second aspect of the present invention is the digital filter circuit according to the first aspect, wherein the setting of the multiplication coefficient in the register holding the multiplication coefficient is controlled by a microcomputer.
[0012]
According to the above configuration, since the setting of the multiplication coefficient is controlled by the microcomputer, it is possible to arbitrarily change or adjust the characteristics of the digital filter by software executed by the microcomputer.
[0013]
A digital filter circuit according to claim 3 of the present invention is the digital filter circuit according to claim 1 or 2, wherein the digital filter operation circuit is an infinite-length impulse response type digital filter circuit.
[0014]
According to the above configuration, in the digital filter circuit of the infinite-length impulse response type having the multi-stage configuration, the circuit scale can be significantly reduced as compared with the conventional one, and the characteristics can be changed even after the semiconductor chip is manufactured. You can make adjustments.
[0015]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a circuit diagram showing a configuration of a digital filter circuit according to one embodiment of the present invention. In FIG. 1, 1, 2, 3, 4, and 5 are multipliers, 6, 7, and 19 are adders, and 8, 9 are registers for data latches. These constitute a standard IIR type filter circuit. I do.
[0016]
Further, in FIG. 1, reference numerals 11, 12, 13, 14, and 15 denote registers for holding multiplication coefficients to be applied to the multipliers 1, 2, 3, 4, and 5, respectively, 16 a microcomputer for controlling a filter circuit, and 17 a filter circuit. Is a flip-flop that controls the input selection of the selector 17, 20 is an input terminal, and 21 is an output terminal.
[0017]
In this embodiment, the data width to be filtered is 14 bits, the registers 11, 12, 13, 14, and 15 have a 14-bit configuration, and the data latch registers 8, 9, and 10 have a 30-bit configuration. The reason that 30 bits are required is that the input data is 14 bits, the multiplication coefficient is 14 bits, the carry that may be required after the multiplication is 1 bit, and the sign is 1 bit, for a total of 30 bits. However, the embodiment does not limit the number of bits, and it goes without saying that only the number of bits can be increased or decreased without changing the basic configuration.
[0018]
The data latch registers 8 and 9, the flip-flop 18, and the multiplier coefficient setting registers 11, 12, 13, 14, and 15 are provided with an address bus, a data bus, and a control signal for reading / writing data. It is connected to the microcomputer 16 and can be written by software executed by the microcomputer. The contents of the data latch registers 8 and 9 can be read out by software executed by a microcomputer.
[0019]
The input of the selector 17 is connected to the filter input from the input terminal 20 and the output of the register 10, and one of the inputs is selected by setting or resetting the flip-flop 18 from the microcomputer 16. In this embodiment, when the flip-flop 18 is 0, the filter input of the input terminal 20 is selected, and when the flip-flop 18 is 1, the output of the register 10 is selected.
[0020]
The output of the selector is connected to multipliers 1, 2, and 3, and the operation is performed by an IIR filter circuit including multipliers 1, 2, 3, 4, 5, adders 6, 7, 19, and registers 8, 9. The output is latched in the register 10 for feedback. The output of the register 10 is connected to the output terminal 21 and connected to the selector 17 as described above, so that the operation result of the filter circuit is fed back to the input.
[0021]
The operation of the digital filter circuit configured as described above will be described with reference to the flowchart shown in FIG. In order to use the circuit of FIG. 1 as a digital filter having a multi-stage configuration, first, in step 201, the number N of stages of the filter is set.
[0022]
In the present embodiment, instead of connecting the N-stage sub-filters in series, the digital filter of FIG. 1 is used N times to operate the digital filter having the multi-stage configuration. For this purpose, the contents of the registers 8 and 9 are saved each time the filtering operation of each stage is completed, and the saved values are restored in the registers 8 and 9 before the filtering operation of each stage is started.
[0023]
Since a storage location for saving the contents of the registers 8 and 9 is required at each stage, these storage locations are designated as R (k, 1) and R (k, 2) (k = 1 to N). In step 202, the initial values of R (k, 1) and R (k, 2) are set to 0.
[0024]
Next, in step 203, the process waits for the input of the sample value Si to the digital filter circuit. Each time the sample value Si is input, the processing of step 204 and subsequent steps is repeated N times to perform an N-stage filter operation. In order to perform the repetition control, the repetition variable k is set to 1 indicating the initial stage in step 204.
[0025]
Since the sample value Si is input to the digital filter circuit in the first stage, the flip-flop 18 is reset to 0 in step 205 so that the input of the selector 17 is set to Si. It is assumed that the value of the sample value Si is held by a latch circuit (not shown).
[0026]
Next, since k = 1, the multiplication coefficient of the first stage is set in registers 11 to 15 in step 206, and R (1,1) and R (1,2) are stored in registers 8 and 9 in step 207, respectively. To load. Thus, the digital filter circuit of FIG. 1 is ready to operate as the first stage digital filter. In step 208, a clock is supplied to the digital filter circuit to operate the filter circuit.
[0027]
In step 209, the contents of the registers 8 and 9 after the filter operation are saved to R (1,1) and R (1,2) to prepare for the first-stage operation when the next sample value Si is input. In step 210, the variable k is repeatedly compared with N. If k <N, the process proceeds to step 211, where 1 is added to k in preparation for the next-stage filter operation. In step 212, the flip-flop 18 is set to 1 so as to select the value fed back from.
[0028]
Returning again to step 206, k-stage multiplication coefficients are set in registers 11 to 15, and in step 207, R (k, 1) and R (k, 2) are loaded into registers 8 and 9, respectively. Thus, the digital filter circuit of FIG. 1 is ready to operate as a k-stage digital filter. In step 208, a clock is applied to the digital filter circuit to operate the filter circuit.
[0029]
In step 209, the contents of the registers 8 and 9 after the filter operation are saved in R (k, 1) and R (k, 2), and the operation of the k-th stage when the next sample value Si is input is prepared. In step 210, the variable k is repeatedly compared with N. If k <N, the process proceeds to step 211, and if k = N, the process returns to step 203 to wait for input of the next sample value Si.
[0030]
In this way, every time the sample value Si is input to the input terminal 20, the N-stage filter operation is performed, and the output terminal 21 obtains a 2 × N-order digital filter output time series.
[0031]
As is apparent from the above description, in the present embodiment, the parameters of the digital filter can be arbitrarily set by a microcomputer using software. Also, the number N of filters can be arbitrarily set by software. This makes it possible to arbitrarily change the characteristics of the filter even after the semiconductor chip is manufactured.
[0032]
Conventionally, the parameters and order of digital filters are calculated at the time of chip design, and are manufactured with the hardware in the semiconductor chip.Therefore, the characteristics designed in the event of being affected by characteristic fluctuations and manufacturing variations in the manufacturing process are affected. There was a problem that it could not be obtained. As described above, the present invention can solve this problem.
[0033]
Further, the conventional bandpass filter is configured by connecting a plurality of sub-filters in cascade, and the number of transistors constituting the filter has increased. According to the present invention, since it can be configured with only one circuit of a conventional sub-filter and a group of registers, the number of transistors can be significantly reduced.
[0034]
【The invention's effect】
As described above, according to the present invention, since the digital filter operation circuit can be used repeatedly, it can be used as a multi-stage digital filter, and the circuit scale is larger than that of a conventional multi-stage digital filter circuit. An excellent effect of greatly reducing the above can be obtained.
[0035]
Further, according to the present invention, the characteristics of the digital filter can be changed or adjusted even after the semiconductor chip is manufactured by changing the setting of the multiplication coefficient and the number of repetitions of the multiplier. An excellent effect that the characteristics of the filter can be arbitrarily changed can be obtained.
[Brief description of the drawings]
FIG. 1 is a circuit diagram showing a configuration of a digital filter circuit according to one embodiment of the present invention.
FIG. 2 is a flowchart illustrating an operation of the digital filter circuit according to one embodiment of the present invention.
FIG. 3 is a circuit diagram showing a configuration of a conventional multi-stage bandpass filter.
[Explanation of symbols]
1 to 5, 41 to 45, 61 to 65 Multipliers 6, 7, 19, 46, 47, 51, 66, 67, 71 Adders 8 to 10, 48 to 50, 68 to 70 Data latch registers 11 to 11 15 Register for multiplication coefficient 16 Microcomputer 17 Selector 18 Flip-flop 20, 52 Input terminal 21, 72 Output terminal 31, 32 Sub-filter

Claims (3)

乗算器、加算器および遅延用ラッチ回路で構成されるディジタルフィルタ演算回路と、
前記ディジタルフィルタ演算回路の出力をラッチするフィードバックレジスタと、
前記ディジタルフィルタ演算回路の入力としてサンプル値入力または前記フィードバックレジスタの出力を選択するセレクタと、
前記乗算器に与える乗算係数を保持する前記乗算器と同数のレジスタと、
前記ディジタルフィルタ演算回路を動作させた後に前記遅延用ラッチ回路に保持された値を退避させ、前記ディジタルフィルタ演算回路を動作させる前に前記遅延用ラッチ回路に前記退避させた値を復元させる制御手段と、
を具備したことを特徴とするディジタルフィルタ回路。
A digital filter operation circuit including a multiplier, an adder and a delay latch circuit;
A feedback register for latching an output of the digital filter operation circuit;
A selector for selecting a sample value input or an output of the feedback register as an input of the digital filter operation circuit;
The same number of registers as the multiplier that holds a multiplication coefficient given to the multiplier;
Control means for saving the value held in the delay latch circuit after operating the digital filter arithmetic circuit and restoring the saved value in the delay latch circuit before operating the digital filter arithmetic circuit When,
A digital filter circuit comprising:
前記乗算係数を保持するレジスタへの乗算係数の設定はマイクロコンピュータにより制御されることを特徴とする請求項1記載のディジタルフィルタ回路。2. The digital filter circuit according to claim 1, wherein the setting of the multiplication coefficient in the register holding the multiplication coefficient is controlled by a microcomputer. 前記ディジタルフィルタ演算回路は無限長インパルス応答型のディジタルフィルタ回路であることを特徴とする請求項1または2記載のディジタルフィルタ回路。3. The digital filter circuit according to claim 1, wherein the digital filter operation circuit is an infinite-length impulse response type digital filter circuit.
JP2002165790A 2002-06-06 2002-06-06 Digital filter circuit Pending JP2004015406A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002165790A JP2004015406A (en) 2002-06-06 2002-06-06 Digital filter circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002165790A JP2004015406A (en) 2002-06-06 2002-06-06 Digital filter circuit

Publications (1)

Publication Number Publication Date
JP2004015406A true JP2004015406A (en) 2004-01-15

Family

ID=30433548

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002165790A Pending JP2004015406A (en) 2002-06-06 2002-06-06 Digital filter circuit

Country Status (1)

Country Link
JP (1) JP2004015406A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016045948A (en) * 2014-08-19 2016-04-04 シーメンス アクチエンゲゼルシヤフトSiemens Aktiengesellschaft Control device with error compensation having learning ability

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016045948A (en) * 2014-08-19 2016-04-04 シーメンス アクチエンゲゼルシヤフトSiemens Aktiengesellschaft Control device with error compensation having learning ability

Similar Documents

Publication Publication Date Title
US20050262176A1 (en) Polyphase filter with optimized silicon area
US10367477B2 (en) Sparse cascaded-integrator-comb filters
US5894428A (en) Recursive digital filter
JP2008131500A (en) Digital low-pass filter
US6889239B2 (en) Digital filter and data processing method thereof
US20020118739A1 (en) Digital filter and method for performing a multiplication based on a look-up table
EP1105967A1 (en) Multiplierless digital filtering
US6233594B1 (en) Decimation filter for oversampling analog-to digital converter
JP2004015406A (en) Digital filter circuit
WO2004036747A1 (en) Digital filter design method and device, digital filter design program, and digital filter
JPWO2008018197A1 (en) Digital filter, synthesizing apparatus thereof, synthesizing program, and synthesizing program recording medium
US6151613A (en) Digital filter and method for a MASH delta-sigma modulator
JP2003032082A (en) Digital filter
JP2007267204A (en) Filter device
JPH08172343A (en) Method for constituting iir type digital filter
JPS58147224A (en) Digital filter
JP3258938B2 (en) Decimation filter
CN116545411A (en) FIR filter circuit and chip
JPH0113244B2 (en)
Pavlović et al. Efficient implementation of multiplierless recursive lowpass FIR filters using computer algebra system
JP2001160736A (en) Digital filter circuit
CN116599496A (en) Circuit structure of half-band FIR filter
CN115882821A (en) Digital filter, filtering method and electronic equipment
JP2004128858A (en) Fir digital filter
JP2003168957A (en) Digital filter and information communication equipment