JP3055563B2 - How to change filter coefficient of digital filter - Google Patents

How to change filter coefficient of digital filter

Info

Publication number
JP3055563B2
JP3055563B2 JP1073979A JP7397989A JP3055563B2 JP 3055563 B2 JP3055563 B2 JP 3055563B2 JP 1073979 A JP1073979 A JP 1073979A JP 7397989 A JP7397989 A JP 7397989A JP 3055563 B2 JP3055563 B2 JP 3055563B2
Authority
JP
Japan
Prior art keywords
filter
processing
signal
calculation
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.)
Expired - Fee Related
Application number
JP1073979A
Other languages
Japanese (ja)
Other versions
JPH02253711A (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.)
Denso Ten Ltd
Original Assignee
Denso Ten 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 Denso Ten Ltd filed Critical Denso Ten Ltd
Priority to JP1073979A priority Critical patent/JP3055563B2/en
Publication of JPH02253711A publication Critical patent/JPH02253711A/en
Application granted granted Critical
Publication of JP3055563B2 publication Critical patent/JP3055563B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、デジタルフィルタのフィルタ係数を変更す
る方法に関する。
Description: TECHNICAL FIELD The present invention relates to a method for changing a filter coefficient of a digital filter.

積和演算を高速に実行することの可能なデジタル信号
処理プロセッサ(以下DSPと称す)の出現のおかげで、
ソフトウェア処理で実現したデジタルフィルタ等による
デジタル信号処理が現実のものとなり、通信機器、オー
ディオ機器等の分野で広く普及する様になってきた。
Thanks to the emergence of digital signal processors (hereinafter referred to as DSPs) that can execute multiply-accumulate operations at high speed,
Digital signal processing by a digital filter or the like realized by software processing has become a reality, and has become widespread in the fields of communication equipment, audio equipment, and the like.

本発明は、このディタルフィルタの特性を変更するた
めにフィルタ係数を変更する方法について言及する。
The present invention refers to a method of changing the filter coefficients to change the characteristics of the digital filter.

〔従来の技術〕[Conventional technology]

例えばオーディオ機器のパラメトリックイコライザの
様にフィルタのカットオフ周波数、ゲイン、尖鋭度Qを
パラメータとして与えることのできるデジタルフィルタ
を具備するものがある。この様なフィルタにパラメータ
を与えて特性を変更する際には、以下に詳述する様に三
角関数の演算を含む比較的長い演算時間を要する演算が
必要である。
For example, there is a device including a digital filter capable of giving a cutoff frequency, a gain, and a sharpness Q of the filter as parameters, such as a parametric equalizer of an audio device. When the characteristics are changed by giving parameters to such a filter, an operation requiring a relatively long operation time including an operation of a trigonometric function is required as described in detail below.

第5図には、デジタルフィルタの一例として二次のフ
ィルタ10が示されている。このフィルタの伝達関数は で与えられる。そして、このフィルタは差分方程式 y〔n〕=a0x〔n〕+a1x〔n−1〕+ a2x〔n−2〕+b1y〔n−1〕+ b2y〔n−2〕 (2) で表わされる演算を実行することにより実現される。た
だし、x〔i〕(i=1…n)は各サンプリング周期毎
の入力信号の値であり、y〔i〕(i=1…n)は出力
信号の値である。係数a0,a1,a2,b1,b2はフィルタの特性
を定める定数であり、これらを変更することによって、
フィルタの特性が変更される。
FIG. 5 shows a secondary filter 10 as an example of a digital filter. The transfer function of this filter is Given by Then, the filter difference equation y [n] = a 0 x [n] + a 1 x [n-1] + a 2 x [n-2] + b 1 y [n-1] + b 2 y [n- 2] It is realized by executing the operation represented by (2). Here, x [i] (i = 1... N) is the value of the input signal in each sampling cycle, and y [i] (i = 1... N) is the value of the output signal. The coefficients a 0 , a 1 , a 2 , b 1 , b 2 are constants that determine the characteristics of the filter, and by changing these,
The characteristics of the filter are changed.

パラメトリックイコライザに具備されるフィルタの簡
単な例として、フィルタのカットオフ周波数のみを変更
することのできるフィルタについて以下に考察する。こ
の場合、前述のa0,a1,a2,b1,b2は a0=1/(1+1/ω) (3) a1=a0 b1=(−1+1/ω)/((1+1/ω) (4) a2=b2=0 (5) ω=tan(π・fd/fs) (6) なる演算により算出される。ただし、fdはフィルタのカ
ットオフ周波数であり、fsはデジタルフィルタの演算周
期の逆数である。この(6)式の様に、フィルタのカッ
トオフ周波数をパラメータとして特性変更が可能なフィ
ルタにおけるフィルタ係数算出処理には、著しく長い演
算時間を要する三角関数の演算が含まれる。
As a simple example of a filter provided in a parametric equalizer, a filter capable of changing only the cutoff frequency of the filter will be considered below. In this case, the aforementioned a 0 , a 1 , a 2 , b 1 , b 2 are a 0 = 1 / (1 + 1 / ω 0 ) (3) a 1 = a 0 b 1 = (− 1 + 1 / ω 0 ) / ((1 + 1 / ω 0 ) (4) a 2 = b 2 = 0 (5) ω 0 = tan (π · f d / f s ) (6) where f d is calculated by the filter The cutoff frequency is fs, and f s is the reciprocal of the operation cycle of the digital filter.As shown in equation (6), the filter coefficient calculation processing for a filter whose characteristic can be changed using the cutoff frequency of the filter as a parameter includes: Includes trigonometric operations that require significantly longer operation times.

(3)〜(6)式の演算を行なう手段としては、DSP
を制御するために通常備わっているマイクロコンピュー
タの様な制御装置において実行する場合と、DSP自身に
よる場合とが考えられる。
As means for performing the operations of the expressions (3) to (6), DSP
The control may be executed by a control device such as a microcomputer which is usually provided, or by the DSP itself.

前者ではフィルタ演算に直接関与しない装置の側で行
なうので構成としては比較的容易である。しかし、通常
備わっているマイクロコンピュータ内で実現するために
は通常のDSP制御用マイクロコンピュータの処理程度に
おいては不必要な浮動少数点の演算パッケージを付加し
なければならないので必要なメモリ容量が増大するばか
りか、演算時間が秒のオーダでかかる様になるので応答
が遅くなり実用に耐えない。また、算出された複数個の
フィルタ係数を制御用マイクロコンピュータからDSPへ
転送する際に、係数1個を転送するのに演算周期の10倍
程度の時間を要するので、フィルタ係数の転送の途中で
予期し得ない係数の組み合わせでフィルタ演算が実行さ
れてポップノイズの発生又は発振の恐れを生じる。
In the former case, since the processing is performed on the side of the apparatus not directly involved in the filter operation, the configuration is relatively easy. However, the necessary memory capacity increases because an unnecessary floating-point arithmetic package must be added for the processing of the ordinary microcomputer for DSP control in order to realize in the microcomputer normally provided. In addition, since the calculation time is on the order of seconds, the response becomes slow and is not practical. Also, when transferring a plurality of calculated filter coefficients from the control microcomputer to the DSP, it takes about ten times as long as the operation cycle to transfer one coefficient. A filter operation is performed with an unexpected combination of coefficients, which may cause pop noise or oscillation.

後者では、そもそもDSP内部にハードウェアとして浮
動小数点形式の数値の演算機能が備わっているので、演
算速度の点での問題はない。また、フィルタ演算の1周
期内ですべてのフィルタ係数を置き換えることが可能な
ので、前述したポップノイズの発生又は発振の恐れもな
い。
In the latter case, there is no problem in terms of calculation speed because the DSP has a function of calculating floating-point numbers as hardware in the first place. Further, since all the filter coefficients can be replaced within one cycle of the filter operation, there is no possibility of occurrence of the above-described pop noise or oscillation.

第6図は上述の様なフィルタ係数の演算をDSP内で行
なった場合のタイミングチャートである。図中、Aは入
力データx〔i〕を入力し、(2)式で表わされる様な
フィルタ演算を実行し、結果を出力する処理の実行を表
わし、Bは例えば(3)〜(6)で表わされる様な係数
算出処理の実行を表わしている。また、Tは演算の1周
期を表わしており、通常、オーディオ信号処理において
20マイクロ秒程度以下すなわちステップ数にして200ス
テップ程度以下であることが要求される。
FIG. 6 is a timing chart when the above-described calculation of the filter coefficient is performed in the DSP. In the figure, A represents the input of input data x [i], executing a filter operation as represented by equation (2), and executing a process of outputting the result, and B represents, for example, (3) to (6). Represents the execution of a coefficient calculation process as represented by. Further, T represents one cycle of the operation, and usually, in audio signal processing,
It is required that the number of steps is about 20 microseconds or less, that is, about 200 steps or less.

したがって第6図の様な方式では、1周期T内にフィ
ルタ演算処理Aとフィルタ係数演算処理Bを納めなけれ
ばならないので、フィルタ係数演算処理Bを実行しない
周期において空部分Cを生じ、非効率的である。
Therefore, in the method as shown in FIG. 6, the filter operation processing A and the filter coefficient operation processing B must be accommodated within one cycle T. It is a target.

また、B部の長さだけA部を短かくせざるを得ないの
で、周期Tの時間の制限内で実現することのできるフィ
ルタ演算の量が減少し、別のDSPへ処理を分割しなけれ
ばならないという問題も生じてくる。
In addition, since the A section must be shortened by the length of the B section, the amount of filter operation that can be realized within the time limit of the period T decreases, and the processing must be divided into another DSP. There is also the problem of not being able to do so.

第7図はこの問題を改良した方式におけるタイミング
チャートである。フィルタ係数演算処理Bを行なう演算
周期においてはフィルタ演算処理Aの替わりに簡易化し
た処理A′を行なう。この処理A′においては差分方程
式(2)の演算は行なわず、前回の演算周期において計
算された結果と同じものを計算結果として出力するもの
である。こうすることにより、フィルタ係数処理Bを行
なわない演算周期において演算周期T内をフルに使用し
てフィルタ演算を行なうことが可能となり、DSPの効率
的な利用が可能となる。
FIG. 7 is a timing chart in a system in which this problem is improved. In the calculation cycle in which the filter coefficient calculation process B is performed, a simplified process A 'is performed instead of the filter calculation process A. In this process A ', the calculation of the difference equation (2) is not performed, and the same result as that calculated in the previous calculation cycle is output as the calculation result. By doing so, it becomes possible to perform the filter operation by fully using the operation period T in the operation period in which the filter coefficient processing B is not performed, and the DSP can be used efficiently.

〔発明が解決しようとする課題〕[Problems to be solved by the invention]

フィルタ係数演算処理が(3)〜(6)式で表わす程
度の簡単なものであれば前述の方式で問題となることは
ない。ところがパラメータの種類が増え、フィルタの次
数も増えてくると演算処理は複雑となり、演算時間も増
大して演算周期の数倍に達することがある。この場合、
前述の方式では演算周期数回にわたって一定の値が出力
されることになり、信号の歪が無視できない程の大きさ
になってくる。
If the filter coefficient calculation processing is as simple as represented by the equations (3) to (6), no problem occurs in the above-described method. However, as the number of types of parameters increases and the order of the filter increases, the calculation process becomes complicated, and the calculation time also increases, sometimes reaching several times the calculation period. in this case,
In the above-described method, a constant value is output over several operation cycles, and the signal distortion becomes large enough to be ignored.

第8図はこの様子を表わす図である。図中、正弦波状
の曲線は、アナログ−デジタル(A/D)変換する前のア
ナログ信号を表わし、白丸及びそれらを結ぶ階段状の線
分はアナログ信号をA/D変換した後の離散信号を表わし
ている。フィルタ係数演算処理に演算周期4回分を要す
るものとすれば、階段状の線分は一部が図中2点鎖線で
表わす様に変形し、斜線で示される面積の歪を生じる。
FIG. 8 is a diagram showing this state. In the figure, a sinusoidal curve represents an analog signal before analog-to-digital (A / D) conversion, and a white circle and a step-like line connecting them represent a discrete signal after analog-to-digital conversion of the analog signal. It represents. If it is assumed that the filter coefficient calculation process requires four calculation cycles, the step-like line segment is partially deformed as shown by a two-dot chain line in the figure, resulting in a distortion of an area shown by oblique lines.

したがって本発明の目的は、DSP内におけるフィルタ
係数演算処理が演算周期の数倍以上であっても大きな信
号歪を生じないフィルタ係数変更方法を提案することに
ある。
Therefore, an object of the present invention is to propose a filter coefficient changing method that does not cause a large signal distortion even when a filter coefficient calculation process in a DSP is several times or more of a calculation cycle.

〔課題を解決するための手段〕[Means for solving the problem]

上記に鑑みて創案された本発明のフィルタ係数変更方
法は、フィルタ係数を算出する演算処理を所定の個数
(k1)に分割し、各分割した処理を所定の回数(k0)の
演算周期毎に順次実行すると共に、該分割した処理が実
行される演算周期においては前回までの演算周期で得ら
れた演算結果をもとに算出した出力信号を出力すること
を特徴とするものである。
In view of the above, the filter coefficient changing method according to the present invention, which is devised in view of the above, divides a calculation process for calculating a filter coefficient into a predetermined number (k 1 ) and executes each divided process a predetermined number of times (k 0 ). In addition to the above, the present invention is characterized in that the output signal is sequentially executed every time, and an output signal calculated based on the calculation result obtained in the previous calculation cycle is output in a calculation cycle in which the divided processing is executed.

〔作 用〕(Operation)

以下の実施例において詳述するが、フィルタ係数演算
処理を分割し、各分割した処理を分散させて実行するこ
とによって、一定値の出力が連続することがなくなり、
全体の信号歪の量が減少する。
As will be described in detail in the following embodiments, by dividing the filter coefficient calculation processing and executing each divided processing in a distributed manner, the output of a constant value is not continued,
The overall amount of signal distortion is reduced.

〔実施例〕〔Example〕

第1図は本発明をデジタル信号処理による音質調整機
能を有するFM/AMラジオに適用した例を表わす図であ
る。
FIG. 1 is a diagram showing an example in which the present invention is applied to an FM / AM radio having a sound quality adjusting function by digital signal processing.

図において、アンテナで受信された電波をFM/AMチュ
ーナにおいて同調、検波、増幅して得られたオーディオ
信号はアナログ−デジタル(A/D)変換器702においてデ
ジタル信号に変換され、DSP610において各種のデジタル
信号処理が施され、デジタル−アナログ(D/A)変換器7
04においてアナログ信号に戻され、アンプ706で電力増
幅されて、スピーカ708を鳴らす。マイクロコンピュー
タ710はバス接続されたCPU,ROM,RAM、入出力インターフ
ェースによる周知の構成のものであり、キーマトリクス
712の情報を入力してそれに応じた音質、音量の制御を
行なうための定数をDSP610に送出する。DSP610内はソフ
トウェア処理で実現された各種のフィルタ、アッテネー
タを内蔵し、マイクロコンピュータ710から送られてき
た各種の定数に基いて入力されたデジタル信号に対して
音質、音量を調節する演算処理を行なう。
In the figure, an audio signal obtained by tuning, detecting, and amplifying a radio wave received by an antenna in an FM / AM tuner is converted into a digital signal in an analog-to-digital (A / D) converter 702, and various signals are processed in a DSP 610. Digital signal processing, digital-analog (D / A) converter 7
At 04, the signal is returned to an analog signal, the power is amplified by the amplifier 706, and the speaker 708 sounds. The microcomputer 710 has a well-known configuration using a CPU, a ROM, a RAM, and an input / output interface connected to a bus.
A constant for inputting the information of 712 and controlling the sound quality and volume according to the information is transmitted to the DSP 610. The DSP 610 contains various filters and attenuators realized by software processing, and performs arithmetic processing to adjust the sound quality and volume of the input digital signal based on various constants sent from the microcomputer 710. .

DSP610の箱内にはその1つとして二次のデジタルフィ
ルタが図示されている。この構成も周知であり、入力信
号を1サンプリング周期の時間だけ遅延して一次遅延信
号を出力する遅延器606、その出力をさらに遅延して二
次遅延信号を出力する遅延器608、出力信号を遅延して
一次フィードバック信号として出力する遅延器400、さ
らに遅延して二次フィードバック信号として出力する遅
延器402、入力信号に対して所定の係数a0を乗算して出
力する乗算器600、一次遅延信号に対して所定の係数a1
を乗算して出力する乗算器602、二次遅延信号に対して
所定の係数a2を乗算して出力する乗算器604、一次フィ
ードバック信号に対して所定の係数b1を乗算して出力す
る乗算器404、二次フィードバック信号に対して所定の
係数b2を乗算して出力する乗算器406、及び乗算器404,4
06,600,602,604の出力をすべて加算して出力信号とする
加算器420で構成されている。
A secondary digital filter is shown in the box of the DSP 610 as one of them. This configuration is also well-known. A delay unit 606 that delays an input signal by one sampling period and outputs a primary delay signal, a delay unit 608 that further delays the output and outputs a secondary delay signal, A delay unit 400 for delaying and outputting as a primary feedback signal, a delay unit 402 for further delaying and outputting as a secondary feedback signal, a multiplier 600 for multiplying an input signal by a predetermined coefficient a 0 and outputting the same, a primary delay A predetermined coefficient a 1 for the signal
Multiplier 602 and outputting the multiplying secondary delay multiplier 604 the signal output by multiplying a predetermined coefficient a 2 with respect to the primary feedback signal multiplied by multiplier for outputting a predetermined coefficient b 1 against vessel 404, the multiplier 406 and outputs the multiplied by a predetermined coefficient b 2 to the secondary feedback signal, and a multiplier 404,4
It comprises an adder 420 which adds all the outputs of 06, 600, 602 and 604 to produce an output signal.

第1図には、代表として1個のデジタルフィルタが図
示されているが、実際には図示された様なデジタルフィ
ルタが複数個並列又は縦続接続されており、複数の周波
数領域についてそのカットオフ周波数、ゲイン、尖鋭度
Qをパラメータとする音質調整が可能な構成となってい
る。
FIG. 1 shows one digital filter as a representative, but in reality, a plurality of digital filters as shown are connected in parallel or cascade, and the cut-off frequency is , Gain and sharpness Q as parameters.

第2図は第1図のDSP610及びそれに付属する周辺回路
のハードウェア構成を表わすブロック図である。シーケ
ンス制御部612はそれに属するROMに書き込まれたソフト
ウェアの命令に従って演算指令、データ入出力指令等の
各種の制御信号を出力する。シリアル入力インターフェ
ース616はA/D変換器702(第1図)から入力されるシリ
アルデータ628を入出力クロック630に同期してサンプリ
ングして格納し、格納されたデータはシーケンス制御部
612からの制御信号に応じて内部レジスタ614等へ転送さ
れ、各種の演算処理を施された後に、シリアル出力イン
ターフェース624を介してD/A変換器704(第1図)へシ
リアルデータ632として出力される。シリアル入力イン
ターフェース618はマイクロコンピュータ710(第1図)
から送られてくる各種のデータをクロック636に同期し
たシリアルデータ634として取り込んでRAM613の所定の
アドレスへ格納し、シリアル出力インターフェース620
はマイクロコンピュータ710へ送るべき各種のデータを
クロック636に同期したシリアルデータ638として出力す
る。パラレル入出力インターフェース622は出力ライン6
42から1ビットのデータを出力し、入力ライン644から
1ビットのデータを入力する。DSP610の外部に外付けさ
れたフリップフロップ626のリセット入力Rは出力ライ
ン642に接続され、セット入力Sはライン640を介してマ
イクロコンピュータへ接続され、データ出力Qは入力ラ
イン644へ接続されている。
FIG. 2 is a block diagram showing a hardware configuration of the DSP 610 of FIG. 1 and peripheral circuits attached thereto. The sequence control unit 612 outputs various control signals such as an operation command and a data input / output command according to a software command written in a ROM belonging to the sequence control unit 612. A serial input interface 616 samples and stores serial data 628 input from the A / D converter 702 (FIG. 1) in synchronization with an input / output clock 630, and stores the stored data in a sequence control unit.
The data is transferred to an internal register 614 or the like in accordance with a control signal from the 612, subjected to various types of arithmetic processing, and output as serial data 632 to a D / A converter 704 (FIG. 1) via a serial output interface 624. Is done. The serial input interface 618 is a microcomputer 710 (Fig. 1)
The various data sent from the CPU are taken in as serial data 634 synchronized with the clock 636 and stored in a predetermined address of the RAM 613, and the serial output interface 620
Outputs various data to be sent to the microcomputer 710 as serial data 638 synchronized with the clock 636. Parallel input / output interface 622 has output line 6
1-bit data is output from 42, and 1-bit data is input from an input line 644. A reset input R of a flip-flop 626 external to the DSP 610 is connected to an output line 642, a set input S is connected to a microcomputer via a line 640, and a data output Q is connected to an input line 644. .

第3図はDSP610においてフィルタ演算処理及びフィル
タ係数演算処理を実現するためのソフトウェアのフロー
チャートである。そのうち、(1)欄はメインルーチン
を表わし、(2)欄はフィルタ係数演算処理のためのサ
ブルーチンを表わしている。
FIG. 3 is a flowchart of software for realizing filter operation processing and filter coefficient operation processing in the DSP 610. Among them, the column (1) shows a main routine, and the column (2) shows a subroutine for filter coefficient calculation processing.

最初に初期処理としてフリップフロップ626の出力す
なわちCFを0にするためにパラレル入出力インターフェ
ース622及びライン642を介してリセット信号を出力し、
変数CCに定数k0例えば10をCPに定数k1例えば4を代入す
る(ステップa)。ここで変数CCは分割した処理の間隔
を制御するための変数であり、CPは分割した処理の順序
を制御するための変数である。次にA/D変換器702からの
入力データx〔i〕をとり込み、例えば式(2)で表わ
されるフィルタ演算を行ない、演算結果のy〔i〕を変
数y0に代入する(ステップb)。フリップフロップ626
の出力すなわちCFが0であれば(ステップc)、y0を出
力して(ステップd)1回の演算周期を終了する。
First, a reset signal is output through the parallel input / output interface 622 and the line 642 to set the output of the flip-flop 626, that is, CF, to 0 as initial processing,
The constant k 0 example 10 substituting constant k 1 for example 4 to CP variable CC (step a). Here, the variable CC is a variable for controlling the interval of the divided processing, and the CP is a variable for controlling the order of the divided processing. Then uptake input data x [i] from the A / D converter 702, for example, performs a filtering operation represented by the formula (2), substituting the y [i] of the result in the variable y 0 (step b ). Flip-flop 626
If output or CF of 0 (step c), and outputs a y 0 is terminated (Step d) 1 single calculation cycle.

キーマトリクス712(第1図)においてパラメトリッ
クイコライザのパラメータを変更する操作が行なわれる
とマイクロコンピュータ710(第1図)はそれを検知し
てパラメータをライン643(第2図)を介してDSP610へ
転送しフィルタ係数変更要求としてライン640を介して
フリップフロップ626をセットする。ステップbにおい
てフリップフロップ626がセットされていることを検知
したら変数CCをデクリメントし(ステップe)、変数CC
が負又は0でなければ(ステップf)フリップフロップ
626がセットされていない場合の処理へ合流する。負又
は0となったら、係数変更処理のためのサブルーチンを
コールし(ステップg)、変数y0の値を出力し(ステッ
プh)、変数CCの値をk0に戻す(ステップi)。すなわ
ちCFが1であれば演算周期k0回毎にステップg及びhの
処理が実行され、それ以外は通常のフィルタ演算処理が
実行される。ステップiに続いて変数CPの値をデクリメ
ントし(ステップj)、CPの値が0又は負になったらCP
の値をk1に戻し(ステップ1)、ライン642(第2図)
を介してフリップフロップをリセットして(ステップ
m)、一連のフィルタ係数演算処理を終了する。この様
に、変数CPには初期値k1が代入され、係数更新処理のサ
ブルーチンをコールする毎にデクリメントされる。すな
わち、変数CPは係数更新手段サブルーチンにおいて実行
すべき演算の段階を表わすもので、0又は負になること
が一連の演算の終了を示している。
When an operation of changing the parameter of the parametric equalizer is performed in the key matrix 712 (FIG. 1), the microcomputer 710 (FIG. 1) detects the operation and transfers the parameter to the DSP 610 via the line 643 (FIG. 2). Then, the flip-flop 626 is set via the line 640 as a filter coefficient change request. When it is detected in step b that the flip-flop 626 is set, the variable CC is decremented (step e), and the variable CC is decremented.
Is not negative or 0 (step f) flip-flop
Joins the process when 626 is not set. When a negative or 0, calls a subroutine for the coefficient changing processing (step g), and outputs the value of the variable y 0 (step h), it returns the value of the variable CC to k 0 (step i). That CF processing in steps g and h are performed for each calculation cycle k 0 times if 1, otherwise normal filtering operation is executed. Subsequent to step i, the value of the variable CP is decremented (step j).
Returns the value for k 1 (Step 1), line 642 (FIG. 2)
(Step m), and a series of filter coefficient calculation processing ends. Thus, the variable CP is assigned the initial value k 1, is decremented subroutine of coefficient updating process for each call. That is, the variable CP represents the stage of the operation to be executed in the coefficient updating means subroutine, and a value of 0 or a negative signifies the end of a series of operations.

第(2)欄に示す係数変更処理サブルーチンの処理を
説明すると、最初にステップtにおいて変数CPの値に応
じてk1通りに分岐する。CPの値がk1である時は係数演算
処理の第1番目に行なうべき処理を実行する。すなわち
係数算出処理を実行し(ステップn)、演算の途中経
過をワークエリアに格納する(ステップo)。CPの値が
k1−1であるときは係数算出処理の続きの係数算出処
理を実行し(ステップp)、結果をワークエリアに格
納する(ステップq)、CPの値が1になったら最後の処
理を実行し(ステップr)、演算結果でフィルタの各係
数を書き換える(ステップs)。
When the (2) explaining the processing of the coefficient changing process subroutine shown in the column, the process branches to 1 kinds k in accordance with the value of the variable CP in first step t. When the value of CP is k1, the first processing of the coefficient calculation processing is executed. That is, a coefficient calculation process is executed (step n), and the progress of the calculation is stored in the work area (step o). CP value
When k 1 −1, the coefficient calculation processing subsequent to the coefficient calculation processing is executed (step p), and the result is stored in the work area (step q). When the value of CP becomes 1, the last processing is executed. Then, each coefficient of the filter is rewritten with the operation result (step s).

第4図はk0を10、k1を4としたときの信号処理の状態
を表わす図である。第8図と同様に曲線はA/D変換前の
アナログ信号を表わし、白丸及びそれらを結ぶ階段状の
線分はA/D変換後の離散信号を表わしており、2点鎖線
はフィルタ係数演算処理を実行した場合の離散信号の状
態を表わす。信号の歪を表わす斜線部の面積を第8図と
比較すれば、本発明の方式では著しく歪が少ないことが
理解される。
FIG. 4 is a diagram showing the state of signal processing when k 0 is 10 and k 1 is 4. Similarly to FIG. 8, a curve represents an analog signal before A / D conversion, a white circle and a step-like line segment connecting them represent a discrete signal after A / D conversion, and a two-dot chain line represents a filter coefficient calculation. This represents the state of the discrete signal when the processing is executed. Comparing the area of the hatched portion representing the distortion of the signal with FIG. 8, it is understood that the distortion is remarkably small in the system of the present invention.

〔発明の効果〕〔The invention's effect〕

以上述べてきたように本発明によれば、DSP内部で実
行されるフィルタ係数の算出処理に要する時間が演算周
期よりも著しく長くなる場合であっても、信号の歪を少
なくすることのできるフィルタ係数変更方法が提供され
る。
As described above, according to the present invention, a filter capable of reducing signal distortion even when the time required for a filter coefficient calculation process executed inside a DSP is significantly longer than an operation cycle. A coefficient changing method is provided.

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

第1図は本発明の一実施例を表わす図、 第2図は第1図のDSP610及びその周辺回路のハードウェ
ア構成を表わすブロック図、 第3図はDSP610におけるソフトウェア処理のフローチャ
ート、 第4図は本発明の方法における信号処理の状態を表わす
模式図、 第5図は二次のデジタルフィルタを表わす図、 第6図は第1の従来の方式を表わすタイミングチャー
ト、 第7図は第2の従来の方式を表わすタイミングチャー
ト、 第8図は第7図の方式における信号処理の状態を表わす
模式図。 図において、 404,406,600,602,604……乗算器、 400,402,606,608……遅延器、 420……加算器。
FIG. 1 is a diagram showing an embodiment of the present invention, FIG. 2 is a block diagram showing a hardware configuration of the DSP 610 in FIG. 1 and its peripheral circuits, FIG. 3 is a flowchart of software processing in the DSP 610, FIG. FIG. 5 is a schematic diagram showing a state of signal processing in the method of the present invention, FIG. 5 is a diagram showing a secondary digital filter, FIG. 6 is a timing chart showing a first conventional system, and FIG. FIG. 8 is a timing chart showing a conventional system, and FIG. 8 is a schematic diagram showing a state of signal processing in the system of FIG. In the figure, 404,406,600,602,604... Multipliers, 400,402,606,608... Delayers, 420... Adders.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 上村 正継 兵庫県神戸市兵庫区御所通1丁目2番28 号 富士通テン株式会社内 (56)参考文献 特開 昭64−69115(JP,A) 特開 昭64−8558(JP,A) 特開 昭63−272217(JP,A) 特開 昭59−186414(JP,A) 特開 昭61−193201(JP,A) 特開 昭63−238710(JP,A) 特開 昭63−222510(JP,A) 特開 昭61−131910(JP,A) (58)調査した分野(Int.Cl.7,DB名) H03H 17/00 - 17/08 ────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Masatsugu Uemura Fujitsu Ten Co., Ltd. 1-2-28, Goshodori, Hyogo-ku, Kobe-shi, Hyogo Prefecture (56) References JP-A-64-69115 (JP, A) JP-A-64-8558 (JP, A) JP-A-63-272217 (JP, A) JP-A-59-186414 (JP, A) JP-A-61-193201 (JP, A) JP-A-63-238710 (JP, A) JP, A) JP-A-63-222510 (JP, A) JP-A-61-131910 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) H03H 17/00-17/08

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】連続する演算周期のそれぞれにおいて入力
信号に対してフィルタ演算を施し演算結果を出力信号と
して出力する処理を実行するデジタルフィルタのフィル
タ係数を変更する方法であって、 フィルタ係数を算出する演算処理を所定の個数(k1)に
分割し、各分割した処理を所定の回数(k0)の演算周期
毎に順次実行すると共に、該分割した処理が実行される
演算周期においては、フィルタ演算に代えて該演算周期
の前の演算周期で得られた演算結果を出力することを特
徴とするデジタルフィルタのフィルタ係数変更方法。
1. A method for changing a filter coefficient of a digital filter for performing a filter operation on an input signal in each of successive operation periods and outputting a result of the operation as an output signal, wherein the filter coefficient is calculated. Is divided into a predetermined number (k 1 ), and the divided processes are sequentially executed in a predetermined number of (k 0 ) operation cycles, and in the operation cycle in which the divided processing is executed, A method of changing a filter coefficient of a digital filter, comprising outputting a calculation result obtained in a calculation cycle before the calculation cycle instead of the filter calculation.
JP1073979A 1989-03-28 1989-03-28 How to change filter coefficient of digital filter Expired - Fee Related JP3055563B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1073979A JP3055563B2 (en) 1989-03-28 1989-03-28 How to change filter coefficient of digital filter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1073979A JP3055563B2 (en) 1989-03-28 1989-03-28 How to change filter coefficient of digital filter

Publications (2)

Publication Number Publication Date
JPH02253711A JPH02253711A (en) 1990-10-12
JP3055563B2 true JP3055563B2 (en) 2000-06-26

Family

ID=13533726

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1073979A Expired - Fee Related JP3055563B2 (en) 1989-03-28 1989-03-28 How to change filter coefficient of digital filter

Country Status (1)

Country Link
JP (1) JP3055563B2 (en)

Also Published As

Publication number Publication date
JPH02253711A (en) 1990-10-12

Similar Documents

Publication Publication Date Title
EP0405915B1 (en) Audio signal data processing system
JP3055563B2 (en) How to change filter coefficient of digital filter
JP3055560B2 (en) How to change filter coefficient of digital filter
JP3055564B2 (en) Digital filter filter coefficient setting method
US5307417A (en) Sound system with howling-prevention function
JP3738134B2 (en) Digital signal processor
JPH10322168A (en) Adaptive finite impulse response filter integrated circuit
JP3055562B2 (en) How to change filter coefficient of digital filter
JP2662694B2 (en) Digital protection relay device
JP2928072B2 (en) A / D converter
JPH08172343A (en) Method for constituting iir type digital filter
JP3055559B2 (en) How to change filter coefficient of digital filter
US7062521B2 (en) Digital base booster using arithmetic processor
JP3055561B2 (en) How to change filter coefficient of digital filter
JPH10336785A (en) Audio signal processor, processing method for the same and recording medium for recording program by the same method
JPS61213926A (en) Dsp arithmetic processing system
JP3222611B2 (en) Arithmetic unit
JP3453321B2 (en) Arithmetic processing method and arithmetic processing circuit
JP2953918B2 (en) Arithmetic unit
JPS6165362A (en) Digital signal processor
KR100227074B1 (en) Multiply and accumulator for fir filtering
JP3193499B2 (en) Signal processing device
JPH0748636B2 (en) Arithmetic unit
JPH11122065A (en) Automatic equalizer of dsp constitution
JPH05314656A (en) Over sampling digital filter

Legal Events

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