JPH059031U - High precision filter device - Google Patents

High precision filter device

Info

Publication number
JPH059031U
JPH059031U JP6263491U JP6263491U JPH059031U JP H059031 U JPH059031 U JP H059031U JP 6263491 U JP6263491 U JP 6263491U JP 6263491 U JP6263491 U JP 6263491U JP H059031 U JPH059031 U JP H059031U
Authority
JP
Japan
Prior art keywords
attenuating
signal
data signal
signals
coefficient
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
JP6263491U
Other languages
Japanese (ja)
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.)
Faurecia Clarion Electronics Co Ltd
Original Assignee
Clarion 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 Clarion Co Ltd filed Critical Clarion Co Ltd
Priority to JP6263491U priority Critical patent/JPH059031U/en
Publication of JPH059031U publication Critical patent/JPH059031U/en
Pending legal-status Critical Current

Links

Landscapes

  • Complex Calculations (AREA)

Abstract

(57)【要約】 【目的】 LPF用IIRフィルタ等として好適な高精
度フィルタ装置のハード規模及び演算処理時間の増大を
抑え、かつフィルタ係数の精度を向上させることであ
る。 【構成】 メモリ23からデータX(n),X(n−
1),X(n−2)が読み出され、また減衰器15,1
6,17にフィードフォワード部のf倍されたフィルタ
係数A0,A1,A2を設定して上記データとの掛算を
行ない、アキュムレータ11に格納する。次にメモリ2
3から1/fを読み出して減衰器22に設定することに
よりアキュムレータ11の内容を1/fにしてアキュム
レータ12に格納する。メモリ23からデータY(n−
1),Y(n−2)を読み出し、また減衰器20,21
に、フィードバック部のフィルタ係数B1,b2を設定
して、上記データとの掛算を行ない、アキュムレータ1
2に格納し、該アキュムレータより演算処理結果Y
(n)を出力する。
(57) [Summary] [Object] To suppress an increase in hardware scale and arithmetic processing time of a high-precision filter device suitable as an IIR filter for LPF, and to improve the accuracy of filter coefficients. [Structure] Data X (n), X (n-
1), X (n-2) are read out, and attenuators 15, 1
The filter coefficients A0, A1, and A2 multiplied by f in the feedforward section are set in 6 and 17, and the multiplication is performed with the above data, and the result is stored in the accumulator 11. Memory 2
By reading 1 / f from 3 and setting it in the attenuator 22, the content of the accumulator 11 is made 1 / f and stored in the accumulator 12. Data Y (n-
1), Y (n-2) are read out, and attenuators 20, 21
Then, the filter coefficients B1 and b2 of the feedback section are set, and multiplication with the above data is performed, and the accumulator 1
2 and stores the calculation result Y from the accumulator.
(N) is output.

Description

【考案の詳細な説明】[Detailed description of the device]

【0001】[0001]

【産業上の利用分野】[Industrial applications]

本考案はカーオーディオ、ホームオーディオ等において、例えば、DSP処理 回路等に用いられる高精度フィルタ装置に係り、特にLPF(ローパスフィルタ )を2次のIIR(インフィニット・インパルス・レスポンス)フィルタで構成 する際のフィルタ係数の精度を向上させるための構成に関する。   The present invention is applied to car audio, home audio, etc., for example, DSP processing. The present invention relates to a high-precision filter device used in a circuit or the like, and particularly to an LPF (low-pass filter). ) Is composed of a second-order IIR (Infinite Impulse Response) filter The present invention relates to a configuration for improving the accuracy of filter coefficients when performing.

【0002】[0002]

【従来の技術】[Prior art]

一般に、2次のIIRフィルタは図3に示すような構成をとっている。 同図において、1は加算器、2−1〜2−5は減衰器(あるいは乗算器)、3 −1〜3−4は遅延回路で、a0,a1,a2,b1,b2は夫々上記減衰器2 −1〜2−5で設定されるフィルタ係数である。   Generally, the second-order IIR filter has a structure as shown in FIG.   In the figure, 1 is an adder, 2-1 to 2-5 are attenuators (or multipliers), 3 -1 to 3-4 are delay circuits, and a0, a1, a2, b1 and b2 are the attenuator 2 respectively. It is a filter coefficient set by -1 to 2-5.

【0003】 上記IIRフィルタで、X(n)は入力データ信号、Y(n)は加算器1から 出力される合成信号で、これが出力データ信号となる。入力データ信号X(n) 及び出力データ信号Y(n)は遅延回路3−1,3−3で遅延され、遅延データ 信号X(n−1),Y(n−1)となり、更にXn−1,Yn−1は遅延回路3 −2,3−4で遅延され、遅延データ信号X(n−2),Y(n−2)となる。 なお、X(n)等で(n)はXの添字をあらわす。[0003]   In the IIR filter, X (n) is the input data signal and Y (n) is from the adder 1. This is the output composite signal, which is the output data signal. Input data signal X (n) And the output data signal Y (n) is delayed by the delay circuits 3-1 and 3-3, Signals X (n-1) and Y (n-1), and Xn-1 and Yn-1 are the delay circuit 3 The delayed data signals X (n-2) and Y (n-2) are delayed by -2 and 3-4. In addition, (n) represents a subscript of X in X (n) and the like.

【0004】 上記各データ信号X(n),X(n−1),X(n−2),Y(n−1),Y (n−2)は夫々減衰器2−1〜2−5で設定された各フィルタ係数が乗算され て加算器1にて合成される。[0004]   Each data signal X (n), X (n-1), X (n-2), Y (n-1), Y (N-2) is multiplied by each filter coefficient set by the attenuators 2-1 to 2-5. Are combined in the adder 1.

【0005】 以上の演算処理を数式で表示すると、(1)式のようになる。 Yn=a0*Xn+a1*Xn−1+a2*Xn−2+b1*Yn−1 +b2*Yn−2 …(1)[0005]   When the above arithmetic processing is displayed by a mathematical expression, it becomes as shown in Expression (1).   Yn = a0 * Xn + a1 * Xn-1 + a2 * Xn-2 + b1 * Yn-1         + B2 * Yn-2 (1)

【0006】[0006]

【考案が解決しようとする課題】[Problems to be solved by the device]

ところが上述した従来のIIRフィルタには下記のような欠点があった。   However, the conventional IIR filter described above has the following drawbacks.

【0007】 (i)まず、a0〜b2の各フィルタ係数は希望の特性(伝達関数)から計算 で求められるが、この各フィルタ係数を保持しておくレジスタの桁数が有限であ るため、実際の処理に使用するフィルタ係数と理論値との間に誤差が生じる。[0007]   (I) First, each filter coefficient of a0 to b2 is calculated from desired characteristics (transfer function) However, the number of digits in the register that holds each filter coefficient is finite. Therefore, an error occurs between the filter coefficient used for actual processing and the theoretical value.

【0008】 例えば、フィルタ係数a0の理論値が0.417531294であるとして、 上記レジスタの桁数が8とすれば、図4(a)に示すように、上記a0の理論値 の最小2桁は切り捨てられ、誤差0.0000000094がでる。同図から明 らかなようにフィルタ係数の理論値が更に小さくなると、誤差の割合が大きくな り、精度が悪くなる。[0008]   For example, assuming that the theoretical value of the filter coefficient a0 is 0.417531294, Assuming that the number of digits of the register is 8, as shown in FIG. The minimum two digits are truncated, resulting in an error of 0.0000000094. Clear from the figure As can be seen, if the theoretical value of the filter coefficient becomes smaller, the error rate increases. Accuracy becomes worse.

【0009】 (ii)またフィルタ係数の一部が+1〜+2の範囲の値をとるため、固定小数 点(−1〜+1の範囲でしかも決められたビット長で表現できる値、例えば、ビ ット長が16ならば−1から1/215のステップで+1までの値)しか扱えない ハードで構成されている場合、あらかじめ各フィルタ係数を1/2にしておき、 その後でシフト処理(1ビット左シフト)することで対処していた。しかしこの シフト処理により更にフィルタ係数の精度を悪化させていた。 例えば、0.84375を固定小数点で表示すると、下記のような形(2進数 表示)で表現される。(Ii) Since some of the filter coefficients take values in the range of +1 to +2, a fixed point (a value that can be expressed in the range of −1 to +1 and a determined bit length, for example, a bit length is If it is 16, if it is configured by hardware that can handle only -1 to 1/2 + 15 in steps of 15 ), set each filter coefficient to 1/2 in advance, and then perform shift processing (1 bit left shift). I was dealing with it. However, this shift processing further deteriorates the accuracy of the filter coefficient. For example, when 0.84375 is displayed with a fixed decimal point, it is expressed in the following form (binary number display).

【0010】 0.84375=0.5+0.25+0.0625+0.03125 =1/21×1+1/22×1+1/24×1+1/25×1 =011011(但し最高位の“0”は符号を示すサインビッ トでプラスを意味する)0.84375 = 0.5 + 0.25 + 0.0625 + 0.03125 = 1/2 1 × 1 + 1/2 2 × 1 + 1/2 4 × 1 + 1/2 5 × 1 = 011011 (However, the highest "0" is a code Means a plus sign)

【0011】 従って、フィルタ係数が1を越える値をとる場合は、あらかじめ下記のように その数を1/2(2進数表示では右へ1ビットシフト)にして1以下の数値にし て処理する。[0011]   Therefore, when the filter coefficient takes a value over 1, Set the number to 1/2 (shift 1 bit to the right in binary display) to a number less than 1. To process.

【0012】 右1ビットシフト 011011 → 0011011=0.25+0.125+0.03125+0.015625 =0.416875 0.84375×1/2=0.416875 処理後、1/2にされた数値を2倍(2進数表示では左へ1ビットシフト)にす る。[0012]             1 bit shift right   011011 → 0011011 = 0.25 + 0.125 + 0.03125 + 0.015625                                   = 0.416875             0.84375 x 1/2 = 0.416875 After processing, double the value halved (shift 1 bit to the left in binary display) It

【0013】 ところで、フィルタ係数の数値をこのように1/2にすることは、2進数表示 では右へ1ビットシフトすることであるから、図4(b)に示すように上記数値 を保持するレジスタの長さ(桁数)が決まっていることから、最下位ビットは切 り捨てられることになり、フィルタ係数精度の劣化を招く。[0013]   By the way, setting the numerical value of the filter coefficient to 1/2 in this way is a binary number display. Since it is to shift 1 bit to the right in the above, as shown in FIG. Since the length (number of digits) of the register that holds is fixed, the least significant bit is Therefore, the filter coefficient accuracy is deteriorated.

【0014】 (iii)更に、前記IIRフィルタをLPFとして用いる場合、その各フィル タ係数のうち、フィードフォワード部のフィルタ係数(a0,a1,a2)が、 他のフィルタと比較して極端に小さくなるため、同一のハード(レジスタ)で処 理しようとすると、誤差が大きくなり、精度が悪くなってしまう。そのため従来 ではかかる場合にはフィルタ係数を保持しておくレジスタの長さを大きくしなけ ればならなかった。[0014]   (Iii) Furthermore, when the IIR filter is used as an LPF, each filter Of the filter coefficients, the filter coefficients (a0, a1, a2) of the feedforward section are Since it is extremely small compared to other filters, it is processed by the same hardware (register). If you try to make sense, the error will increase and the accuracy will deteriorate. Therefore, conventional If this happens, increase the length of the register that holds the filter coefficient. I had to do it.

【0015】 また、この場合、レジスタ長を変えずに処理する方法としてフィルタ係数の数 値を上位と下位に分割してレジスタに保持しておいて、別々に処理(データとの 乗算)して後で加算する方法もある。[0015]   In this case, the number of filter coefficients can be used as a method of processing without changing the register length. The value is divided into upper and lower values and stored in a register, and processed separately (data and There is also a method of multiplying and adding later.

【0016】 例えば、フィルタ係数a0=0.41753129407、入力データXn= 0.5として、a0*Xnの処理を行なう場合、図4(c)に示すように、メモ リM(又はレジスタ)に、夫々、0.417531,0.29407を保持して おいて乗算及び加算を行なう。 しかしこの方法によると、精度は向上するが、演算処理を2回に分けたり、上 位及び下位に分割したフィルタ係数を保持しておくレジスタあるいはメモリが必 要となるので、処理時間及びハードの規模がほぼ通常の倍必要となってしまう問 題があった。[0016]   For example, filter coefficient a0 = 0.41753129407, input data Xn = When the processing of a0 * Xn is set to 0.5, as shown in FIG. Retain 0.417531, 0.29407 in M (or register) respectively Then, multiplication and addition are performed.   However, according to this method, although the accuracy is improved, the arithmetic processing is divided into two times, A register or memory that holds the filter coefficients divided into lower and upper ranks is required. Since it is necessary, the processing time and the scale of hardware will be almost doubled. There was a problem.

【0017】 本考案の目的は、ハード規模及び処理時間の増大を抑え、しかもフィルタ係数 の精度を向上させることができるLPF用IIRフィルタ等として好適な高精度 フィルタ装置を提供することにある。[0017]   The object of the present invention is to suppress the increase in hardware scale and processing time, and to further improve the filter coefficient. High accuracy suitable as an IIR filter for LPF that can improve the accuracy of It is to provide a filter device.

【0018】[0018]

【課題を解決するための手段】[Means for Solving the Problems]

上記目的を達成するため、本考案は、入力データ信号を入力し該入力データ信 号と、この入力データ信号を異なる複数の遅延時間で遅延した複数の第1遅延デ ータ信号と、を出力する第1遅延手段と、 前記各第1遅延データ信号を所定の異なる係数で減衰処理し、上記各信号に対 応した複数の第1減衰信号を出力する第1減衰手段と、上記各第1減衰信号を合 成し得られた合成信号を出力する合成手段と、 上記合成信号を複数の異なる遅延時間で遅延した複数の第2遅延データ信号を 出力する第2遅延手段と、 前記各第2遅延データ信号を前記第1減衰手段とは異なる係数で減衰処理し、 該各第2遅延データ信号に対応した複数の第2減衰信号を第1減衰信号と、前記 合成手段により合成させる第2減衰手段とを備えた高精度フィルタ装置において 、 前記複数の第1減衰信号に所定数値を乗算し、得られた乗算データ信号を前 記合成手段に出力する乗算手段と、 前記合成信号を前記所定数値で除算する除算手段と、 前記合成手段により、前記第2遅延手段からの第2遅延データ信号と、前記第 2減衰手段からの第2減衰信号と、を合成することにより、前記第1及び第2減 衰手段での係数減衰処理の精度を向上させたことを特徴とする。   In order to achieve the above-mentioned object, the present invention provides an input data signal for receiving the input data signal. Signal and a plurality of first delay data obtained by delaying this input data signal with different delay times. A first delay means for outputting the data signal,   Each of the first delayed data signals is attenuated by a predetermined different coefficient, The first attenuating means for outputting a plurality of corresponding first attenuating signals and the respective first attenuating signals. A synthesizing means for outputting the synthesized signal obtained,   A plurality of second delay data signals obtained by delaying the composite signal with a plurality of different delay times, Second delay means for outputting,   Attenuating each of the second delayed data signals with a coefficient different from that of the first attenuating means, A plurality of second attenuated signals corresponding to the respective second delayed data signals, and In a high-precision filter device including a second attenuating means for combining by a combining means , Multiplying the plurality of first attenuated signals by a predetermined numerical value, Multiplication means for outputting to the synthesis means,   Dividing means for dividing the combined signal by the predetermined numerical value,   The second delay data signal from the second delay means and the second delay data signal from the second delay means. By combining the second attenuation signal from the second attenuation means with the first and second attenuation signals. It is characterized in that the accuracy of the coefficient attenuation processing by the attenuation means is improved.

【0019】[0019]

【作用】 本考案のフィルタ装置において、入力データ信号は異なる複数の遅延時間で遅 延されて、複数の第1遅延データ信号となり、各第1遅延データ信号は異なる係 数で減衰され、複数の第1減衰信号となって、これら各第1減衰信号は合成され て、その合成信号が出力される。この合成信号は異なる複数の遅延時間で遅延さ れて複数の第2遅延データ信号となり、各第2遅延データ信号は異なる係数で減 衰され第2減衰信号となって第1減衰信号と合成される。而して前記第1減衰信 号は所定数値乗算して合成手段に出力し、前記合成信号を上記所定数値での逆数 を乗算する。[Action]   In the filter device of the present invention, the input data signal is delayed by a plurality of different delay times. Are delayed into a plurality of first delayed data signals, each first delayed data signal having a different coefficient. Are attenuated by a number to form a plurality of first attenuation signals, and these first attenuation signals are combined. Then, the combined signal is output. This composite signal is delayed with different delay times. Into a plurality of second delayed data signals, each second delayed data signal being reduced by a different coefficient. It is attenuated to form a second attenuated signal, which is combined with the first attenuated signal. Thus, the first attenuation signal The number is multiplied by a predetermined number and output to the combining means, and the combined signal is the reciprocal of the above specified number. Is multiplied by.

【0020】[0020]

【実施例】【Example】

以下図面に示す本考案の実施例を説明する。 図1は本考案の高精度フィルタ装置の一実施例であるLPF用2次IIRフィ ルタの構成を示す。同図において、11及び12は加算器(アキュムレータ)で 、合成手段を構成している。13及び14は遅延回路で、第1遅延手段を構成す る。15〜17は減衰器で、第1減衰手段を構成する。18及び19は遅延回路 で、第2遅延手段を構成する。20及び21は減衰器で、第2減衰手段を構成す る。   An embodiment of the present invention shown in the drawings will be described below.   FIG. 1 shows a second-order IIR filter for LPF, which is an embodiment of the high-precision filter device of the present invention. The configuration of the computer is shown below. In the figure, 11 and 12 are adders (accumulators). , Which constitutes a synthesizing means. Reference numerals 13 and 14 are delay circuits, which constitute the first delay means. It Reference numerals 15 to 17 denote attenuators, which constitute the first attenuating means. 18 and 19 are delay circuits Then, the second delay means is configured. 20 and 21 are attenuators, which constitute the second attenuating means. It

【0021】 22は減衰器で、除算手段として機能する。23はメモリで、後述するように フィードフォワード部のフィルタ係数を予めf倍して記憶しておくことにより前 記乗算手段の機能を有する。24は制御部(CPU)で、フィルタ係数(A0〜 b2)や、データ(X(n)〜Y(n−2))のメモリ23からの読み出し、書 き込みなどの制御を行なう。[0021]   22 is an attenuator, which functions as a dividing means. 23 is a memory, which will be described later. The filter coefficient of the feedforward section is multiplied by f in advance and stored. It has the function of multiplication means. A control unit (CPU) 24 has filter coefficients (A0 to A0). b2) and data (X (n) to Y (n-2)) are read from the memory 23 and written. Performs controls such as cutting.

【0022】 LPFをIIRフィルタで構成するように設計した場合、そのフィルタ係数の 特徴として、前述したように(i)フィードフォワード部のフィルタ係数の値( a0,a1,a2)が極端に小さいこと及び(ii)フィードバック部のフィルタ 係数の1つ(b1)が+1〜+2の範囲の値をとること、をあげることができる 。[0022]   When the LPF is designed to be composed of IIR filters, As a feature, as described above, (i) the value of the filter coefficient of the feedforward unit ( a0, a1, a2) is extremely small, and (ii) the filter of the feedback section One of the coefficients (b1) can take a value in the range of +1 to +2. .

【0023】 本考案では、上述した事項を考慮して、前記式(1)を次に示すように変形し ていき、式(2)に示すような形として、この式(2)を本考案のフィルタ係数 による演算処理の基本とする。 Yn=a0*Xn+a1*Xn−1+a2*Xn−2+b1*Yn−1 +b2*Yn−2 …(1) Yn=(a0*Xn+a1*Xn−1+a2*Xn−2)*f*(1/f)+ (b1−1)*Yn−1+Yn−1+b2*Yn−2 Yn={(a0*f)*Xn+(A1*f)*Xn−1+(a2*f)*Xn−2} *(1/f)+(b1−1)*Yn+Yn−1+b2*Yn−2 Yn=(A0*Xn+A1*Xn−1+A2*Xn−2)*(1/f) +B1*Yn−1+Yn−1+b2*Yn−2 …(2) ただし A0=a0*f,A1=a1*f,A2=a2*f,B1=b1−1[0023]   In the present invention, in consideration of the above-mentioned matters, the equation (1) is modified as follows. As shown in the equation (2), the equation (2) is changed to the filter coefficient of the present invention. It is the basis of calculation processing by.   Yn = a0 * Xn + a1 * Xn-1 + a2 * Xn-2 + b1 * Yn-1         + B2 * Yn-2 (1)   Yn = (a0 * Xn + a1 * Xn-1 + a2 * Xn-2) * f * (1 / f) +         (B1-1) * Yn-1 + Yn-1 + b2 * Yn-2   Yn = {(a0 * f) * Xn + (A1 * f) * Xn-1 + (a2 * f) * Xn-2}           * (1 / f) + (b1-1) * Yn + Yn-1 + b2 * Yn-2   Yn = (A0 * Xn + A1 * Xn-1 + A2 * Xn-2) * (1 / f)           + B1 * Yn-1 + Yn-1 + b2 * Yn-2 (2)   However, A0 = a0 * f, A1 = a1 * f, A2 = a2 * f, B1 = b1-1

【0024】 即ち、本考案においては、極端に小さな値をとるフィードフォワード部のフィ ルタ係数をf倍(f>1)した係数値を使用してフィードフォワード部の演算処 理を行なった後、その出力を1/fする。このようにf倍することで、前述した ようにレジスタ長の制約のため切り捨てられていた係数値の下位の桁が使用され るため精度が向上する。 また+1を越えるフィルタ係数を扱う演算(b1*Y(n−1))を分割して 行なうため、従来のようにあらかじめフィルタ係数を1/2にしておく必要がな く従来と比べて精度が向上する。[0024]   That is, in the present invention, the feed-forward section filter that takes an extremely small value is used. The calculation value of the feedforward section is calculated by using the coefficient value obtained by multiplying the filter coefficient by f times (f> 1). After processing, the output is 1 / f. As described above, by multiplying by f, The lower digit of the coefficient value that was truncated due to register length limitation is used. Therefore, the accuracy is improved.   In addition, the operation (b1 * Y (n-1)) that handles filter coefficients exceeding +1 is divided into Therefore, it is necessary to reduce the filter coefficient to 1/2 as in the conventional case. The accuracy is improved compared to the conventional one.

【00025】 次に前記実施例の動作を図2のフローチャートを引用して説明する。 まず、図2のステップST1において、あらかじめf倍したフィードフォワー ド部のフィルタ係数A0(a0×f),A1(a1×f),A2(a2×f)を メモリ23に格納する。ステップST2で、データの入力の有無を判定し、NO であれば、再度この判定を行なうが、YESであると、ステップST3で、メモ リ23よりA0、データX(n)を読み出して、減衰器15にA0を設定してA 0*X(n)をアキュムレータ11に格納する。ステップST4,ST5ではメ モリ23からA1,A2,X(n−1),X(n−2)を読み出してA1,A2 を減衰器16,17に設定することにより掛算して、その結果をアキュムレータ 11に格納する。[00025]   Next, the operation of the above embodiment will be described with reference to the flowchart of FIG.   First, in step ST1 of FIG. The filter coefficients A0 (a0xf), A1 (a1xf) and A2 (a2xf) It is stored in the memory 23. In step ST2, it is determined whether or not data has been input, and NO. If this is the case, this determination is performed again, but if YES, then in step ST3 Read A0 and data X (n) from the memory 23, set A0 in the attenuator 15 and set A0. 0 * X (n) is stored in the accumulator 11. In steps ST4 and ST5, A1, A2, X (n-1), and X (n-2) are read from the memory 23, and A1, A2 Is set in the attenuators 16 and 17, and the result is multiplied, and the result is stored in the accumulator. It is stored in 11.

【0026】 次に、ステップST6において、メモリ23より1/fを読み出し減衰器22 に設定することによりアキュムレータ11の内容に(1/f)を掛算し、その結 果をアキュムレータ12に格納する。ステップST7では、メモリ23からB1 ,Y(n−1)を読み出して、B1を減衰器20に設定してY(n−1)と掛算 しその結果をアキュムレータ12の内容に加算して、加算出力をアュムレータ1 2に格納する。ステップST8では、メモリ23からY(n−1)を読み出して アキュムレータ12の内容と加算してアキュムレータ12へ格納する。そしてス テップST9において、メモリ23からb2、Y(n−2)を読み出してb2を 減衰器21に設定することにより掛算し、その結果をアキュムレータ12の内容 と加算してその加算出力をアキュムレータ12に格納する。次いでステップ10 でアキュムレータ12の処理結果Y(n)を出力し、ステップ11でメモリ23 のデータの更新(古いデータの上へ重ね書き)する。[0026]   Next, in step ST6, 1 / f is read from the memory 23 and the attenuator 22 is read. By setting to, the content of accumulator 11 is multiplied by (1 / f) and the result is The fruit is stored in the accumulator 12. In step ST7, the memory 23 to B1 , Y (n-1) are read, B1 is set in the attenuator 20, and multiplied by Y (n-1). Then, the result is added to the contents of the accumulator 12, and the addition output is added to the accumulator 1 Store in 2. In step ST8, Y (n-1) is read from the memory 23 The contents are added to the contents of the accumulator 12 and stored in the accumulator 12. And At step ST9, b2 and Y (n-2) are read from the memory 23 and b2 is read. Multiply by setting in the attenuator 21, the result is the contents of the accumulator 12 And the added output is stored in the accumulator 12. Then step 10 Outputs the processing result Y (n) of the accumulator 12, and in step 11, the memory 23 Update the data of (update over the old data).

【0027】 なお、前記フィルタ係数に1/fを掛算するための減衰器22は1/fを2の べき乗で表示すれば、シフトレジスタとしてもよい。またこれらの処理を全て、 DSP(デイジタルシグナルプロセッサ)等で行なうようにすることもできる。[0027]   The attenuator 22 for multiplying the filter coefficient by 1 / f is obtained by multiplying 1 / f by 2. If it is displayed in exponentiation, it may be used as a shift register. Also, all of these processes, It is also possible to use a DSP (Digital Signal Processor) or the like.

【0028】[0028]

【考案の効果】[Effect of device]

以上説明したように本考案の高精度フィルタ装置によれば、ハード規模や処理 時間を大きく変更することなく、従来の構成方法によるIIRフィルタのLPF よりも高精度なLPFを実現することができる。   As described above, according to the high-precision filter device of the present invention, the hardware scale and processing IIF filter LPF according to the conventional configuration method without significantly changing the time It is possible to realize a more accurate LPF.

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

【図1】本考案のフィルタ装置の一実施例を示すブロッ
ク図である。
FIG. 1 is a block diagram showing an embodiment of a filter device of the present invention.

【図2】上記実施例の動作説明用のフローチャートであ
る。
FIG. 2 is a flowchart for explaining the operation of the above embodiment.

【図3】従来のIIRフィルタの構成を示すブロック図
である。
FIG. 3 is a block diagram showing a configuration of a conventional IIR filter.

【図4】図3のIIRフィルタによる演算方法の説明図
である。
4 is an explanatory diagram of a calculation method by the IIR filter of FIG.

【符号の説明】[Explanation of symbols]

11,12 加算器(アキュムレータ) 13,14,18,19 遅延回路 15,16,17,20,21,22 減衰器 23 メモリ 24 制御部(CPU) 11,12 Adder (accumulator) 13, 14, 18, 19 Delay circuit 15,16,17,20,21,22 attenuator 23 memory 24 Control unit (CPU)

Claims (2)

【実用新案登録請求の範囲】[Scope of utility model registration request] 【請求項1】 入力データ信号を入力し該入力データ信
号と、この入力データ信号を異なる複数の遅延時間で遅
延した複数の第1遅延データ信号と、を出力する第1遅
延手段と、 前記各第1遅延データ信号を所定の異なる係数で減衰処
理し、上記各信号に対応した複数の第1減衰信号を出力
する第1減衰手段と、 上記各第1減衰信号を合成し得られた合成信号を出力す
る合成手段と、 上記合成信号を複数の異なる遅延時間で遅延した複数の
第2遅延データ信号を出力する第2遅延手段と、 前記各第2遅延データ信号を前記第1減衰手段とは異な
る係数で減衰処理し、該各第2遅延データ信号に対応し
た複数の第2減衰信号を第1減衰信号と、前記合成手段
により合成させる第2減衰手段とを備えた高精度フィル
タ装置において、前記複数の第1減衰信号に所定数値を
乗算し、得られた乗算データ信号を前記合成手段に出力
する乗算手段と、 前記合成信号を前記所定数値で除算する除算手段と、 前記合成手段により、前記第2遅延手段からの第2遅延
データ信号と、前記第2減衰手段からの第2減衰信号
と、を合成することにより、前記第1及び第2減衰手段
での係数減衰処理の精度を向上させたことを特徴とする
高精度フィルタ装置。
1. A first delay means for inputting an input data signal and outputting the input data signal and a plurality of first delayed data signals obtained by delaying the input data signal with a plurality of different delay times; First attenuating means for attenuating the first delayed data signal with a predetermined different coefficient to output a plurality of first attenuating signals corresponding to the respective signals, and a synthetic signal obtained by synthesizing the first attenuating signals. A second delay means for outputting a plurality of second delayed data signals obtained by delaying the combined signal with a plurality of different delay times; and a second attenuating means for outputting each of the second delayed data signals. A high-precision filter device comprising: a first attenuating signal that is attenuated by different coefficients, and a plurality of second attenuating signals corresponding to the respective second delayed data signals, and a second attenuating means that is combined by the combining means The plurality of 1 multiplication signal which multiplies a 1 attenuation signal by a predetermined numerical value, and outputs the obtained multiplication data signal to said synthesizing means, division means which divides said synthetic signal by said predetermined numerical value, said synthesizing means, said second delay By combining the second delayed data signal from the means and the second attenuated signal from the second attenuating means, it is possible to improve the accuracy of the coefficient attenuating process in the first and second attenuating means. Characteristic high precision filter device.
【請求項2】前記係数及びデータ信号を記憶する記憶手
段と、 上記係数及びデータ信号を所定のタイミングで前記記憶
手段から前記各手段への読み出し、書き込みを制御する
制御手段と、 を備えたことを特徴とする請求項1に記載の高精度フィ
ルタ装置。
2. A storage means for storing the coefficient and the data signal, and a control means for controlling reading and writing of the coefficient and the data signal from the storage means to the respective means at a predetermined timing. The high precision filter device according to claim 1.
JP6263491U 1991-07-11 1991-07-11 High precision filter device Pending JPH059031U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6263491U JPH059031U (en) 1991-07-11 1991-07-11 High precision filter device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6263491U JPH059031U (en) 1991-07-11 1991-07-11 High precision filter device

Publications (1)

Publication Number Publication Date
JPH059031U true JPH059031U (en) 1993-02-05

Family

ID=13205954

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6263491U Pending JPH059031U (en) 1991-07-11 1991-07-11 High precision filter device

Country Status (1)

Country Link
JP (1) JPH059031U (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5148494U (en) * 1974-09-30 1976-04-12

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5148494U (en) * 1974-09-30 1976-04-12

Similar Documents

Publication Publication Date Title
EP1176718B1 (en) Hardware accelerator for normal least-mean-square algorithm-based coefficient adaptation
US5255216A (en) Reduced hardware look up table multiplier
JPH0235348B2 (en)
US4947363A (en) Pipelined processor for implementing the least-mean-squares algorithm
JPH082014B2 (en) Multi-stage digital filter
US5400271A (en) Apparatus for and method of calculating sum of products
JPH059031U (en) High precision filter device
JP2733403B2 (en) Digital filter for decimation
JPH0331005B2 (en)
JP2960595B2 (en) Digital signal processor
JP2960594B2 (en) Digital signal processor
JPS61213926A (en) Dsp arithmetic processing system
JPS62105518A (en) Digital filter
JPH0828646B2 (en) Digital filter
JP3261729B2 (en) Linear interpolation method and its circuit
JP2508286B2 (en) Square root calculator
JP3053637B2 (en) Calculation method of digital filter
JPS61150034A (en) Operation processing system
JPS60254372A (en) Arithmetic unit for sum of products
JPH06216715A (en) Digital filter
JPS63113757A (en) Operation circuit
JPS58147223A (en) Digital filter
JP3105577B2 (en) Division product multiplier
JP2005149517A (en) Multiply-accumulator
JP2000137701A (en) Product-sum operation error correcting method and product sum arithmetic unit