JPH0563509A - Digital filter - Google Patents

Digital filter

Info

Publication number
JPH0563509A
JPH0563509A JP3022335A JP2233591A JPH0563509A JP H0563509 A JPH0563509 A JP H0563509A JP 3022335 A JP3022335 A JP 3022335A JP 2233591 A JP2233591 A JP 2233591A JP H0563509 A JPH0563509 A JP H0563509A
Authority
JP
Japan
Prior art keywords
signal
multiplier
output
output signal
multiplication
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.)
Granted
Application number
JP3022335A
Other languages
Japanese (ja)
Other versions
JP2569976B2 (en
Inventor
Toshihiro Inoue
俊弘 井上
Toshifumi Kunimoto
利文 国本
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 JP3022335A priority Critical patent/JP2569976B2/en
Publication of JPH0563509A publication Critical patent/JPH0563509A/en
Application granted granted Critical
Publication of JP2569976B2 publication Critical patent/JP2569976B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)

Abstract

PURPOSE:To suppress a limit cycle by providing a 2nd multiplier means multiplying a coefficient whose output is 0 or -1 depending whether an output of a delay means is positive or negative and a subtractor means for outputs 1st and 2nd multiplier means to the filter without discriminating the polarity of the result of the multiplication. CONSTITUTION:A digital signal X from an input terminal 1 is inputted to a delay circuit 2 via an adder 4, in which the signal is delayed by a prescribed time and an output signal Y is outputted from an output terminal 5. Moreover, an output signal XM of the circuit 2 is multiplied with a multiplier coefficient (b) at a multiplier 3 and multiplied with a multiplier coefficient be at a multiplier 6 respectively. Then an output YM of the multiplier 3 is subtracted by an output of the multiplier 6 at a subtractor 7 and the resulting signal YM' is added to the digital input signal X at an adder 4. Then the result is inputted again to the circuit 2. A prescribed characteristic is given to the signal X by applying the processing to the signal repetitively to output the signal Y from the terminal 5. Thus, the limit cycle is suppressed without discriminating the polarity of the result of multiplication.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は電子楽器等に用いら
れ、ディジタル信号に所定の特性を付与するディジタル
フィルタに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a digital filter used for electronic musical instruments and the like, which imparts a predetermined characteristic to a digital signal.

【0002】[0002]

【従来の技術】図2は従来のフィードバック形のディジ
タルフィルタの構成例を示すブロック図であり、この図
において、1は4ビットの2の補数のディジタル信号X
が入力される入力端子、2は入力信号を所定時間遅延す
る遅延回路、3は遅延回路2の出力信号に3ビットの2
の補数の乗算係数bを乗算する乗算器、4はディジタル
信号Xと乗算器3の出力信号YMとを加算する加算器、
5は演算結果のディジタル信号Yが出力される出力端子
である。
2. Description of the Related Art FIG. 2 is a block diagram showing a configuration example of a conventional feedback type digital filter, in which 1 is a 4-bit two's complement digital signal X.
Input terminal, 2 is a delay circuit that delays the input signal for a predetermined time, and 3 is an output signal of the delay circuit 2, which is a 3-bit 2
A multiplier that multiplies the complement multiplication coefficient b of 4 with an adder that adds the digital signal X and the output signal YM of the multiplier 3,
An output terminal 5 outputs the digital signal Y as the calculation result.

【0003】このような構成において、入力端子1から
入力されたディジタル信号Xは、加算器4を経て遅延回
路2において所定時間遅延された後、出力端子5から出
力信号Yとして出力されると共に、乗算器3において乗
算係数bが乗算された後、信号YMとして加算器4にお
いてディジタル信号Xと加算され、再び遅延回路2に入
力される。以上説明した処理が繰返し行なわれることに
より、ディジタル信号Xに所定の特性が付与され、信号
Yとして出力端子5から出力される。
In such a configuration, the digital signal X input from the input terminal 1 is delayed by the adder 4 for a predetermined time in the delay circuit 2 and then output from the output terminal 5 as the output signal Y. After being multiplied by the multiplication coefficient b in the multiplier 3, it is added to the digital signal X in the adder 4 as the signal YM, and is input to the delay circuit 2 again. By repeating the processing described above, the digital signal X is given a predetermined characteristic and is output from the output terminal 5 as the signal Y.

【0004】ここで、乗算係数bが(010)の場合の
乗算器3の具体的な乗算結果を示す。 (1)乗算器3の入力信号XMが(0001)の場合 YM=0001×010 =000010(切捨て) ∴ YM=0000 (2)乗算器3の入力信号XMが(1111)の場合 YM=1111×010 =111110(切捨て) ∴ YM=1111
Here, a concrete multiplication result of the multiplier 3 when the multiplication coefficient b is (010) is shown. (1) When the input signal XM of the multiplier 3 is (0001) YM = 0001 × 010 = 0000 10 (rounded down) ∴ YM = 0000 (2) When the input signal XM of the multiplier 3 is (1111) YM = 1111 × 010 = 11111 10 (rounded down) ∴YM = 1111

【0005】以上説明した乗算器3の乗算結果を図3に
●印で示す。図からわかるように、入力信号XMが負の
場合には、LSBから下2桁を切捨てても乗算結果YM
は(0000)にはならない。従って、この状態のとき
に入力信号がなくなる、即ち、(0000)を繰返すよ
うになった場合にも、出力信号は、(1111)を永久
に繰返すことになり、これがノイズとして出力されるこ
とになる。この現象をリミットサイクルという。
The multiplication result of the multiplier 3 described above is shown by a black circle in FIG. As can be seen from the figure, when the input signal XM is negative, the multiplication result YM is obtained even if the last two digits are truncated from the LSB.
Will not be (0000). Therefore, even when the input signal disappears in this state, that is, when (0000) is repeated, the output signal repeats (1111) forever, and this is output as noise. Become. This phenomenon is called limit cycle.

【0006】そこで、従来、リミットサイクルを抑圧す
るために、乗算器3の乗算結果YMが負の場合には、正
の最小値(0001)を加算して図3の△印となるよう
に補正する。即ち、乗算結果の極性に応じて補正値を加
減算している。これにより、乗算結果が負の場合でも出
力信号Yは(0000)となる。
Therefore, conventionally, in order to suppress the limit cycle, when the multiplication result YM of the multiplier 3 is negative, correction is made by adding the positive minimum value (0001) to obtain the Δ mark in FIG. To do. That is, the correction value is added or subtracted according to the polarity of the multiplication result. As a result, the output signal Y becomes (0000) even when the multiplication result is negative.

【0007】[0007]

【発明が解決しようとする課題】ところで、上述した従
来のディジタルフィルタにおいては、乗算器3の乗算結
果YMの正負を判別する必要があるため、このディジタ
ルフィルタを条件ブランチのないディジタルシグナルプ
ロセッサ(DSP)によって構成した場合には、リミッ
トサイクルを抑圧するマイクロプグラムを作成すること
ができないという欠点があった。また、極性を判別する
機能が必要なため、ディジタルフィルタの構成が複雑に
なるという欠点があった。
In the conventional digital filter described above, it is necessary to determine whether the multiplication result YM of the multiplier 3 is positive or negative. Therefore, this digital filter is used as a digital signal processor (DSP) having no conditional branch. In the case of configuring by (1), there is a drawback that it is not possible to create a microprogram that suppresses the limit cycle. Further, there is a drawback that the configuration of the digital filter becomes complicated because the function of discriminating the polarity is required.

【0008】この発明は、このような背景の下になされ
たもので、条件ブランチのないDSPによって構成した
場合でも、簡単な構成でリミットサイクルを抑圧するこ
とができるディジタルフィルタを提供することを目的と
する。
The present invention has been made under such a background, and an object of the present invention is to provide a digital filter capable of suppressing a limit cycle with a simple configuration even when configured by a DSP having no conditional branch. And

【0009】[0009]

【課題を解決するための手段】この発明は、複数の入力
信号を加算する加算手段と、入力信号を所定時間遅延す
る遅延手段と、該遅延手段の出力信号に所定の乗算係数
を乗算する第1の乗算手段とを具備し、前記第1の乗算
手段の出力信号が前記加算手段に入力信号として帰還さ
れるように閉ループ状に接続されたディジタルフィルタ
において、前記遅延手段の出力信号が正の場合にはその
出力信号が(0)となり、前記遅延手段の出力信号が負
の場合にはその出力信号が(−1)となる乗算係数を前
記遅延手段の出力信号に乗算する第2の乗算手段と、前
記第1の乗算手段の出力信号から前記第2の乗算手段の
出力信号を減算する減算手段とを具備することを特徴と
している。
SUMMARY OF THE INVENTION According to the present invention, an adding means for adding a plurality of input signals, a delay means for delaying the input signals by a predetermined time, and an output signal of the delay means are multiplied by a predetermined multiplication coefficient. In a closed loop so that the output signal of the first multiplication means is fed back to the addition means as an input signal, the output signal of the delay means is positive. In this case, the output signal is (0), and when the output signal of the delay means is negative, the output signal of the delay means is multiplied by a multiplication coefficient which is (-1). And a subtraction unit for subtracting the output signal of the second multiplication unit from the output signal of the first multiplication unit.

【0010】[0010]

【作用】上記構成によれば、このディジタルフィルタの
入力信号は、加算手段を経て遅延手段において所定時間
遅延された後、出力信号として出力される。また、遅延
手段の出力信号は、第1の乗算手段において所定の乗算
係数が乗算されると共に、第2の乗算手段において遅延
手段の出力信号が正の場合にはその出力信号が(0)と
なり、遅延手段の出力信号が負の場合にはその出力信号
が(−1)となる乗算係数が乗算される。次に、第1の
乗算手段の出力信号は、減算手段において第2の乗算手
段の出力信号が減算された後、加算手段において入力信
号と加算され、再び遅延手段に入力される。この処理が
繰返し行なわれることにより、入力信号に所定の特性が
付与されて出力される。
According to the above construction, the input signal of the digital filter is output as the output signal after being delayed by the adding means for the predetermined time in the delay means. The output signal of the delay means is multiplied by a predetermined multiplication coefficient in the first multiplication means, and when the output signal of the delay means is positive in the second multiplication means, the output signal becomes (0). When the output signal of the delay means is negative, the output signal is multiplied by the multiplication coefficient which becomes (-1). Next, the output signal of the first multiplying means is subtracted from the output signal of the second multiplying means in the subtracting means, then added to the input signal in the adding means, and input again to the delay means. By repeating this processing, a predetermined characteristic is given to the input signal and the signal is output.

【0011】[0011]

【実施例】以下、図面を参照して、この発明の一実施例
について説明する。図1はこの発明の一実施例によるフ
ィードバック形のディジタルフィルタの構成を示すブロ
ック図であり、この図において、図2の各部に対応する
部分には同一の符号を付け、その説明を省略する。この
図に示すディジタルフィルタにおいては、入力信号が正
の場合にはその出力信号が(0000)となり、入力信
号が負の場合にはその出力信号が(1111)となる充
分小さな乗算係数beを入力信号に乗算する乗算器6
と、乗算器3の出力信号から乗算器6の出力信号を減算
する減算器7とが新たに設けられている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. 1 is a block diagram showing the configuration of a feedback type digital filter according to an embodiment of the present invention. In this figure, parts corresponding to those in FIG. 2 are assigned the same reference numerals and explanations thereof are omitted. In the digital filter shown in this figure, when the input signal is positive, the output signal is (0000), and when the input signal is negative, the output signal is (1111). Multiplier 6 for multiplying signals
And a subtracter 7 for subtracting the output signal of the multiplier 6 from the output signal of the multiplier 3 are newly provided.

【0012】このような構成において、入力端子1から
入力されたディジタル信号Xは、加算器4を経て遅延回
路2において所定時間遅延された後、出力端子5から出
力信号Yとして出力される。また、遅延回路2の出力信
号XMは、それぞれ乗算器3において乗算係数bが乗算
されると共に、乗算器6において乗算係数beが乗算さ
れる。次に、乗算器3の出力信号YMは、減算器7にお
いて乗算器6の出力信号が減算された後、信号YM’と
して加算器4においてディジタル信号Xと加算され、再
び遅延回路2に入力される。以上説明した処理が繰返し
行なわれることにより、ディジタル信号Xに所定の特性
が付与され、信号Yとして出力端子5から出力される。
In such a configuration, the digital signal X input from the input terminal 1 is delayed by the adder 4 for a predetermined time in the delay circuit 2, and then output from the output terminal 5 as the output signal Y. The output signal XM of the delay circuit 2 is multiplied by the multiplication coefficient b in the multiplier 3 and the multiplication coefficient be in the multiplier 6. Next, the output signal YM of the multiplier 3 is subtracted from the output signal of the multiplier 6 in the subtractor 7, and then added as the signal YM ′ to the digital signal X in the adder 4 and input to the delay circuit 2 again. It By repeating the processing described above, the digital signal X is given a predetermined characteristic and is output from the output terminal 5 as the signal Y.

【0013】ここで、具体的な演算結果を示す。 (1)乗算器3の入力信号XMが(0001)の場合、
その出力信号YMは、上述したように、(0000)で
ある。また、信号XMは正であるから、乗算器6の出力
信号は、(0000)となる。従って、減算器7の出力
信号YM’は、(0000)となる。 (2)乗算器3の入力信号XMが(1111)の場合、
その出力信号YMは、上述したように、(1111)で
ある。また、信号XMは負であるから、乗算器6の出力
信号は、(1111)となる。従って、減算器7の出力
信号YM’は、(0000)となる。 以上説明した演算結果を図3の△印で示す。
Here, a concrete calculation result will be shown. (1) When the input signal XM of the multiplier 3 is (0001),
The output signal YM is (0000) as described above. Since the signal XM is positive, the output signal of the multiplier 6 is (0000). Therefore, the output signal YM 'of the subtractor 7 becomes (0000). (2) When the input signal XM of the multiplier 3 is (1111),
The output signal YM is (1111) as described above. Since the signal XM is negative, the output signal of the multiplier 6 is (1111). Therefore, the output signal YM 'of the subtractor 7 becomes (0000). The calculation result described above is indicated by a triangle mark in FIG.

【0014】尚、上述した一実施例においては、入力信
号XMに対して乗算係数beを1回だけ乗算した例を示
したが、乗算係数beのビット数が入力信号XMのビッ
ト数に比べて少ない場合には、この乗算を何回も繰返し
行なう。
In the above embodiment, the input signal XM is multiplied by the multiplication coefficient be only once, but the number of bits of the multiplication coefficient be is larger than that of the input signal XM. When the number is small, this multiplication is repeated many times.

【0015】また、上述した一実施例においては、ディ
ジタルフィルタが遅延回路2、乗算器3および加算器4
によって閉ループを構成する例を示したが、これに限定
されない。要するにフィードバック形のディジタルフィ
ルタであればどのような構成のものにでもこの発明を適
用することができる。
In the above-described embodiment, the digital filter includes the delay circuit 2, the multiplier 3 and the adder 4.
Although the example in which the closed loop is configured by is shown, the invention is not limited to this. In short, the present invention can be applied to any structure of the feedback type digital filter.

【0016】[0016]

【発明の効果】以上説明したように、この発明によれ
ば、乗算結果の正負を判別することなく、リミットサイ
クルを抑圧できるという効果がある。従って、このディ
ジタルフィルタを条件ブランチのないDSPによって簡
単に構成することができる。また、外部から別の信号を
入力することなく、リミットサイクルを抑圧できるとい
う効果がある。
As described above, according to the present invention, there is an effect that the limit cycle can be suppressed without discriminating whether the multiplication result is positive or negative. Therefore, this digital filter can be easily constructed by a DSP having no conditional branch. Further, there is an effect that the limit cycle can be suppressed without inputting another signal from the outside.

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

【図1】 この発明の一実施例によるフィードバック形
のディジタルフィルタの構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a feedback type digital filter according to an embodiment of the present invention.

【図2】 従来のフィードバック形のディジタルフィル
タの構成例を示すブロック図である。
FIG. 2 is a block diagram showing a configuration example of a conventional feedback type digital filter.

【図3】 この発明の一実施例および従来例それぞれに
よるディジタルフィルタの信号XMに対する演算結果Y
MおよびYM’の一例を示す図である。
FIG. 3 is a diagram showing a calculation result Y for a signal XM of a digital filter according to an embodiment of the present invention and a conventional example.
It is a figure which shows an example of M and YM '.

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

1……入力端子、2……遅延回路、3,6……乗算器、
4……加算器、5……出力端子、7……減算器。
1 ... input terminal, 2 ... delay circuit, 3,6 ... multiplier,
4 ... Adder, 5 ... Output terminal, 7 ... Subtractor.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 複数の入力信号を加算する加算手段と、 入力信号を所定時間遅延する遅延手段と、 該遅延手段の出力信号に所定の乗算係数を乗算する第1
の乗算手段とを具備し、前記第1の乗算手段の出力信号
が前記加算手段に入力信号として帰還されるように閉ル
ープ状に接続されたディジタルフィルタにおいて、 前記遅延手段の出力信号が正の場合にはその出力信号が
(0)となり、前記遅延手段の出力信号が負の場合には
その出力信号が(−1)となる乗算係数を前記遅延手段
の出力信号に乗算する第2の乗算手段と、 前記第1の乗算手段の出力信号から前記第2の乗算手段
の出力信号を減算する減算手段とを具備することを特徴
とするディジタルフィルタ。
1. An adding means for adding a plurality of input signals, a delay means for delaying the input signals by a predetermined time, and a first means for multiplying an output signal of the delay means by a predetermined multiplication coefficient.
In the closed loop so that the output signal of the first multiplying means is fed back to the adding means as an input signal, the output signal of the delaying means is positive. Second output means for multiplying the output signal of the delay means by a multiplication coefficient whose output signal becomes (0) and whose output signal becomes (-1) when the output signal of the delay means is negative. And a subtracting means for subtracting the output signal of the second multiplying means from the output signal of the first multiplying means.
JP3022335A 1991-02-15 1991-02-15 Digital filter Expired - Fee Related JP2569976B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3022335A JP2569976B2 (en) 1991-02-15 1991-02-15 Digital filter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3022335A JP2569976B2 (en) 1991-02-15 1991-02-15 Digital filter

Publications (2)

Publication Number Publication Date
JPH0563509A true JPH0563509A (en) 1993-03-12
JP2569976B2 JP2569976B2 (en) 1997-01-08

Family

ID=12079838

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3022335A Expired - Fee Related JP2569976B2 (en) 1991-02-15 1991-02-15 Digital filter

Country Status (1)

Country Link
JP (1) JP2569976B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10624612B2 (en) 2014-06-05 2020-04-21 Chikayoshi Sumi Beamforming method, measurement and imaging instruments, and communication instruments
US11125866B2 (en) 2015-06-04 2021-09-21 Chikayoshi Sumi Measurement and imaging instruments and beamforming method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10624612B2 (en) 2014-06-05 2020-04-21 Chikayoshi Sumi Beamforming method, measurement and imaging instruments, and communication instruments
US11125866B2 (en) 2015-06-04 2021-09-21 Chikayoshi Sumi Measurement and imaging instruments and beamforming method
US11965993B2 (en) 2015-06-04 2024-04-23 Chikayoshi Sumi Measurement and imaging instruments and beamforming method

Also Published As

Publication number Publication date
JP2569976B2 (en) 1997-01-08

Similar Documents

Publication Publication Date Title
US7602320B2 (en) Systems and methods for companding ADC-DSP-DAC combinations
JPH06334459A (en) Digital signal processor
JPS5838023A (en) Device including digital filter for subtracting first and second binary numbers by binary calculation
US6405092B1 (en) Method and apparatus for amplifying and attenuating digital audio
JPH0563509A (en) Digital filter
JP2968847B2 (en) Noise generator
JP2817367B2 (en) Linear / float converter and tone generator using the converter
JP3141523B2 (en) Finite impulse response filter device
JP3895887B2 (en) Decibel level adjustment device
JP2000165204A (en) Iir type digital low pass filter
JP2770565B2 (en) Music synthesizer
JPH0687531B2 (en) Bit-serial signal scaling device and digital signal amplitude control device
JP2611242B2 (en) Amplitude compression / expansion circuit
JP3055559B2 (en) How to change filter coefficient of digital filter
JP2940384B2 (en) Electronic musical instrument
JP3066666B2 (en) Inverse quantizer
JPS6165362A (en) Digital signal processor
KR940007927B1 (en) Multiplication circuit of digital filter
JPH0226408A (en) Digital filter
JP3453321B2 (en) Arithmetic processing method and arithmetic processing circuit
JPS6337974B2 (en)
JP2003101414A (en) Digital signal processing circuit
JPH0786928A (en) Digital loop filter circuit
JPS6366450B2 (en)
JPH02216511A (en) Sine wave generation circuit

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19960820

LAPS Cancellation because of no payment of annual fees