JPH0495412A - Sampling frequency conversion circuit - Google Patents

Sampling frequency conversion circuit

Info

Publication number
JPH0495412A
JPH0495412A JP21171790A JP21171790A JPH0495412A JP H0495412 A JPH0495412 A JP H0495412A JP 21171790 A JP21171790 A JP 21171790A JP 21171790 A JP21171790 A JP 21171790A JP H0495412 A JPH0495412 A JP H0495412A
Authority
JP
Japan
Prior art keywords
sampling frequency
coefficient
time
filter
frequency
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
JP21171790A
Other languages
Japanese (ja)
Inventor
Makoto Onishi
誠 大西
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP21171790A priority Critical patent/JPH0495412A/en
Publication of JPH0495412A publication Critical patent/JPH0495412A/en
Pending legal-status Critical Current

Links

Landscapes

  • Complex Calculations (AREA)

Abstract

PURPOSE:To use a filter in common at sampling frequency conversion and to reduce the hardware by modifying a time change coefficient of a digital interpolation device employing a time change coefficient FIR filter and multiply ing a phase shift coefficient with the time change coefficient. CONSTITUTION:Delay elements 11-1N, coefficient multipliers 20, 21,..., 2N, and adders 41,..., 4N form a time change coefficient FIR filter acted at an input sampling frequency fs1 and when an input signal is fed to the filter, the signal is subjected to filter processing depending on a time change coefficient Sc(n, tau) and an output signal is obtained, An interpolation time tau is realized by reset ting a counter 7 receiving a clock pulse at a period T1, reading the count at a period of T2 and latching the count in a latch register 8. A time change coefficient is written in advance in a R0Ma6 and read by inputting the interpola tion time r and a time change coefficient alphan (tau) set to coefficient multipliers 30, 31,..., 3N is multiplied therein with a phase shift coefficient betan. Thus, the filter frequency characteristic is frequency-shifted and the LPF characteristic is converted into the BPF characteristic.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は補間装置あるいは標本化周波数変換回路に係わ
り、特に帯域通過フィルタ機能を合わせ持つ標本化周波
数変換回路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an interpolation device or a sampling frequency conversion circuit, and particularly to a sampling frequency conversion circuit that also has a bandpass filter function.

〔従来の技術〕[Conventional technology]

ディジタル信号処理では、頻繁に標本化周波数の変換を
特徴とする特に、信号の変復調を行う場合などでは、信
号の掛は算をしたり、高域信号成分を取り出したりする
ので、折り返しを生じないように標本化周波数を高くす
る必要がある。標本化周波数の変換を行う場合、従来は
標本化周波数の比を2のへき乗に選び、設計することが
多かった。しかし、このように選択できない場合には、
入出力標本化周波数の最小公倍数の周波数とせざるを得
す、一般には非常に高い周波数となって、実現不可能な
場合が多かった。
Digital signal processing is characterized by frequent sampling frequency conversion.Especially when modulating and demodulating signals, signal multiplication is performed to perform calculations or extract high-frequency signal components, so aliasing does not occur. Therefore, it is necessary to increase the sampling frequency. When converting sampling frequencies, conventionally, the ratio of sampling frequencies has often been selected to be the power of 2 and designed. However, if this selection is not possible,
The frequency must be set to the least common multiple of the input and output sampling frequencies, which is generally a very high frequency and is often impossible to achieve.

この補間を時変係数フィルタで行い、標本化周波数の比
が簡単な整数比とならない場合でも、標本化周波数変換
を可能とした方式に、特願昭61−15633号公報に
述べられた補間方式がある。
This interpolation is performed using a time-varying coefficient filter, and even when the ratio of sampling frequencies is not a simple integer ratio, the interpolation method described in Japanese Patent Application No. 61-15633 is a method that enables sampling frequency conversion. There is.

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

標本化周波数の変換を行う場合、所望の信号成分以外の
信号が発生する。すなわち標本化定理によtば、標本化
信号は、標本化周波数の1/2までの周波数成分を折り
返した信号スペクトを持つ。
When converting the sampling frequency, signals other than the desired signal components are generated. That is, according to the sampling theorem, a sampled signal has a signal spectrum that folds back frequency components up to 1/2 of the sampling frequency.

従って、標本化周波数を上げる場合には、高調波の発生
が生し、標本化周波数を下げる場合には折り返し現象が
生ずる。後者の場合には、標本化周波数を変換し、た後
では取り除くことが出来ない、いわゆる折り返し、歪を
生ずる。したがって、標本化周波数を下げる場合には、
折り返し除去フィルタが必須である。このことは上記従
来技術のどの方式を用いても同しであり、ハードウェア
が増える欠点を持っていた。
Therefore, when the sampling frequency is increased, harmonics are generated, and when the sampling frequency is decreased, an aliasing phenomenon occurs. In the latter case, so-called aliasing or distortion occurs which cannot be removed after converting the sampling frequency. Therefore, when lowering the sampling frequency,
An alias removal filter is essential. This is true no matter which of the conventional techniques described above is used, and has the disadvantage of increasing the amount of hardware required.

さらに、ディジタル処理で変復調を行う場合、信号の乗
算、高域成分の抽出等を行うため、折り返しを生しない
ように標本化周波数を高い周波数に変換すると同時に、
出力を取り出すフィルタも高い標本化周波数で、所望の
狭い周波数帯域の特性を実現せねば成らず、設計が困難
となる問題点があった。
Furthermore, when performing modulation and demodulation using digital processing, signal multiplication and extraction of high-frequency components are performed, so at the same time, the sampling frequency is converted to a higher frequency to avoid aliasing.
The filter for extracting the output must also achieve characteristics in a desired narrow frequency band at a high sampling frequency, which poses a problem that makes it difficult to design.

以上のように、標本化周波数の変換はディジタル信号処
理の基本技術であるが、それに伴い、フィルタ処理が必
要となることが多かった。本発明の目的は、ディジタル
信号処理で変復調を行う場合のように、標本化周波数の
変換に伴い、フィルタ処理が必要となる信号処理に最適
な標本化周波数変換器を提供することにある。
As described above, sampling frequency conversion is a basic technology of digital signal processing, but along with this conversion, filter processing is often required. An object of the present invention is to provide a sampling frequency converter that is optimal for signal processing that requires filter processing in conjunction with sampling frequency conversion, such as when performing modulation and demodulation in digital signal processing.

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

上記目的を達成するために、従来技術で述べた時変係数
フィルタを用いた補間方式を用いる。まず時変係数フィ
ルタによる補間方式について若干説明する。
In order to achieve the above object, an interpolation method using a time-varying coefficient filter described in the prior art is used. First, an interpolation method using a time-varying coefficient filter will be briefly explained.

標本化定理によれば、第3図に示したように、周期T□
で標本化されたデータ列f (n T1)(黒丸で示す
)から、元の時間関数f(t)は、5ine(t )=
sin t / tを用いて f(t)=Σf (n T)Sinc(π(t + n
 T□)/ T□)=Σf (n T1)S c (n
 、 τ)       −(1)と表すことができる
。ここでて=t/T1は出力時刻tをTユ周期で計った
ときの端数、5c(n。
According to the sampling theorem, as shown in Figure 3, the period T□
From the data sequence f (n T1) (indicated by a black circle) sampled at , the original time function f (t) is 5ine (t ) =
Using sin t/t, f(t) = Σf (n T) Sinc(π(t + n
T□)/T□)=Σf (n T1)S c (n
, τ) −(1). Here, =t/T1 is a fraction of the output time t measured in T cycles, 5c(n.

τ)=sin(π(τ+n))/(τ+n)である。(
1)式は離散データfn=f(nT□)の−次結合で時
刻tのデータ値を予測するとき、結合係数5c(n。
τ)=sin(π(τ+n))/(τ+n). (
Equation 1) is a combination coefficient 5c(n) when predicting the data value at time t using a -order combination of discrete data fn=f(nT□).

て)はtの関数となることを示している。時変係数5c
(n+t)はt = n T、でl、t=mT、(m≠
n、m、nは整数)でOとなる性質を持つ関数であり、
(1)式の5ine(t )や、数値解析で用いられる
Lagrangeの補間多項式など、いろいろな関数が
知られている。
) is a function of t. Time varying coefficient 5c
(n+t) is t = n T, and t = mT, (m≠
n, m, n are integers) is a function that has the property of O,
Various functions are known, such as 5ine(t) in equation (1) and Lagrange's interpolation polynomial used in numerical analysis.

また(1)式は、有限個のデータNで近似すると、補間
値f(t)は、時変係数S c (n 、  τ)をも
つ非巡回型(F 工R) フィルタの出力として得られ
ることを示している。このことから補間(あるいは標本
化周波数変換)は、時変係数フィルタによりハードウェ
アとして実現できることが分かる。第3図では、出力時
刻tの周辺の4個のデータ(f−2,f、、f、、f2
)から、補間出力値f(τ)(白丸で示す)を求める例
を示す。
Furthermore, when formula (1) is approximated using a finite number of data N, the interpolated value f(t) is obtained as the output of an acyclic (F) filter with time-varying coefficients S c (n, τ). It is shown that. This shows that interpolation (or sampling frequency conversion) can be implemented in hardware using a time-varying coefficient filter. In FIG. 3, four pieces of data (f-2, f, , f, , f2
), an example is shown in which the interpolated output value f(τ) (indicated by a white circle) is obtained.

以上の原理に基づくディジタル補間器のハードウェア構
成を第4図に示す。図4において、11゜〜、INは遅
延素子、2゜、21.〜,2Nは係数掛算器、40.〜
,4Nは加算器、6はROM、7はカウンタ、8はラッ
チレジスタである。遅延素子、係数掛算器、加算器は入
力標本化周波数Js1で動作するFIRフィルタを構成
している。
FIG. 4 shows the hardware configuration of a digital interpolator based on the above principle. In FIG. 4, 11°~, IN is a delay element, 2°, 21. ~, 2N is a coefficient multiplier, 40. ~
, 4N is an adder, 6 is a ROM, 7 is a counter, and 8 is a latch register. The delay element, coefficient multiplier, and adder constitute a FIR filter that operates at the input sampling frequency Js1.

時変係数5c(n、  τ)を定めるパラメータでは、
出力の標本化周期T2” 1 / f s、によって与
えられるデータ出力時刻上により、 t = n T、+ 7 =mT2−(2)と表される
。ハードウェアてτを求めるには(第4図参照)、T工
よりも充分高速なりロックパルスを入力したカウンタ7
を、Tよ周期でリセットし、計数値をT2周期で読み比
し、ラッチレジスタ8に保持することで実現できる。時
変係数5c(n+ で)を前もってROM4に書き込ん
でおき、求めたてにより、これを読み出し、FIRフィ
ルタの係数として係数掛は算器2゜、2□、〜、 2N
に与えれば1時変係数フィルタによる補間装置が実現さ
れる。
The parameters that determine the time-varying coefficient 5c(n, τ) are:
Based on the data output time given by the output sampling period T2''1/fs, it is expressed as t = nT, +7 = mT2-(2).To find τ using hardware, (see figure), the counter 7 inputs a lock pulse that is sufficiently faster than the T-work.
This can be realized by resetting the count value at a cycle T, reading and comparing the count value at a cycle T2, and holding it in the latch register 8. Write the time-varying coefficient 5c (at n+) in advance to the ROM 4, read it out after the calculation, and multiply the coefficient as the coefficient of the FIR filter using a calculator 2°, 2□, ~, 2N.
An interpolation device using a 1 time-varying coefficient filter can be realized by giving

さて、(1)式では、入力と、出力の標本化周波数fs
□とfs2の間には、なんの制約もないから、上記の補
間装置は、標本化周波数を上げる(逓倍)ことも、下げ
る(逓減)こともできる。〔発明の課題〕の項で述べた
ように、標本化周波数を変換する時には、フィルタが必
要になる。このフィルタ処理は標本化周波数の高い方で
行う必要があり、逓倍を行うときには、補間器の後で行
ない、逓減するときは補間器の前で行うことになる。逓
倍の時は時変係数自身が低域通過特性を示すので、特別
に折り返し除去フィルタは必要ない。しかし、逓減の時
には、補間を行った後では除くことの出来ない折り返し
歪となるので、補間の前に、フィルタ処理が必須となる
。第5図にこの課題点の説明図を示す。図ではfs□=
2fs2の場合を示している。第5図(C)に示すよう
に、補間により、信号f、(黒点)を得たとしても、こ
れと全く同じ出力を与える入力信号はf□ (黒点と白
点)と。
Now, in equation (1), the input and output sampling frequencies fs
Since there is no restriction between □ and fs2, the above-described interpolation device can increase (multiply) or decrease (decrease) the sampling frequency. As stated in the [Problem to be solved by the invention] section, a filter is required when converting the sampling frequency. This filter processing must be performed at the higher sampling frequency, and when multiplication is performed, it is performed after the interpolator, and when reduction is performed, it is performed before the interpolator. During multiplication, the time-varying coefficient itself exhibits low-pass characteristics, so no special aliasing removal filter is required. However, in the case of gradual reduction, aliasing occurs which cannot be removed even after interpolation, so filtering is required before interpolation. FIG. 5 shows an explanatory diagram of this problem. In the figure, fs□=
The case of 2fs2 is shown. As shown in FIG. 5(C), even if the signal f, (black dot) is obtained by interpolation, the input signal that gives exactly the same output is f□ (black dot and white dot).

T2 (黒点と三角点)の2種類があり、補間後では、
この二つを区別することはできなし)。周波数領域では
補間前では5−b図のようにflとT2は区別出来るが
、補間後では第5図(C)のよ彊こ、標本化による折り
返し現象のため、全く同じ周波数の信号となる。そこで
、第5図(b)の破線の様な特性の折り返し除去フィル
タが補間器の前に必要となる。
There are two types of T2 (black point and triangular point), and after interpolation,
It is not possible to distinguish between the two). In the frequency domain, before interpolation, fl and T2 can be distinguished as shown in Figure 5-b, but after interpolation, as shown in Figure 5 (C), due to the aliasing phenomenon caused by sampling, they become signals with exactly the same frequency. . Therefore, an aliasing removal filter having characteristics as indicated by the broken line in FIG. 5(b) is required before the interpolator.

ところで、上述の補間器は入力の標本化周波数で動作す
る、時変係数フィルタを用いている。新たに挿入すべき
折り返し除去フィルタも、入力標本化周波数で動作する
。従って、これらのフィルタは、合成して、一つにする
ことが出来る。
By the way, the above-mentioned interpolator uses a time-varying coefficient filter that operates at the input sampling frequency. The newly inserted aliasing filter also operates at the input sampling frequency. Therefore, these filters can be combined into one.

(1)式で用いた時変係数5c(n、τ)は、遮断周波
数fs1の理想LPFのインパルス応答でもある。そこ
で、補間関数5ine(x)の周波数fS。
The time-varying coefficient 5c (n, τ) used in equation (1) is also the impulse response of an ideal LPF with a cutoff frequency fs1. Therefore, the frequency fS of the interpolation function 5ine(x).

をfszにずらせば、補間器の時変係数フィルタの遮断
周波数を変えることが出来る。すなわち、折り返し除去
フィルタが時変係数を変形することにより実現できる。
By shifting fsz to fsz, the cutoff frequency of the time-varying coefficient filter of the interpolator can be changed. That is, the aliasing removal filter can be realized by modifying the time-varying coefficients.

5ine(x )=sin x / x  を変形して
、x=ω□t/2=7cf s、(nT1+τ)におい
て、f sx”f s、* r (逓減の時、r〉1)
とすると、 5ine(x )=sin(x (n 十τ)傘r)/
 (π(n +x )傘r)=Sc*(n、τt r)
          ・・・(3)となる。ここで、X
=π(n+で)傘rである。変形された時変係数5et
(n、τ、r)ハ係数タップ次数n、補間時刻τ、41
本化周波数比rの関数として与えられる。
Transforming 5ine(x)=sin x/x, in x=ω□t/2=7cf s, (nT1+τ), f sx”f s, *r (when decreasing, r>1)
Then, 5ine(x)=sin(x(n tenτ) umbrella r)/
(π(n + x ) umbrella r) = Sc*(n, τt r)
...(3). Here, X
= π (at n+) is the umbrella r. Transformed time-varying coefficient 5et
(n, τ, r) coefficient tap order n, interpolation time τ, 41
It is given as a function of the regularized frequency ratio r.

r=2(標本化周期T、=2*T、)の場合を例にとり
、・第6図で、折り返し除去フィルタ作用を説明する。
Taking the case of r=2 (sampling period T, =2*T) as an example, the aliasing removal filter action will be explained with reference to FIG.

(3)式から判るように、r=2とすると、時変係数の
補間関数5ine(t )は、時間軸方向に2倍に引き
伸ばされ、T2周期で0となる形とする。そこで、第5
図のf11倍に相当する第6図(a)では、出力時刻よ
りT1の偶数倍の時点の標本値(黒点)にはすべて0が
掛かり、出力への寄与は出力時刻の値のみとなる。出力
時刻よりT□の奇数倍の時点の標本値(白点)にはすべ
て有限の値が掛かり、それらの総和は三角点で示された
値となって、補間値は四角点の値となって出力される。
As can be seen from equation (3), when r=2, the interpolation function 5ine(t) of the time-varying coefficient is stretched twice in the time axis direction and becomes 0 in the T2 period. Therefore, the fifth
In FIG. 6(a), which corresponds to f11 times the figure, all sample values (black dots) at even multiples of T1 from the output time are multiplied by 0, and only the value at the output time contributes to the output. All the sample values (white points) at odd multiples of T□ from the output time are multiplied by a finite value, their sum is the value shown by the triangular point, and the interpolated value is the value of the square point. is output.

他方、第5図のf22倍に当たる第6図(b)では、奇
数倍の時点の標本値は第6図(b)の場合と逆極性とな
るので、その総和は三角点で示す値となり、黒点の値と
打ち消し合い、補間値は四角点で示す小さな振幅値に減
衰される。
On the other hand, in FIG. 6(b), which corresponds to f22 times that in FIG. 5, the sample values at odd times have the opposite polarity to those in FIG. 6(b), so the sum is the value shown by the triangular point, It cancels out the value of the black dot, and the interpolated value is attenuated to a small amplitude value shown by the square dot.

こうして、f□に折り返すf22倍が除去される。In this way, the f22 times folding back to f□ is removed.

すなわち、時変係数を変形することによって、入力標本
化周波数の172より低い任意の遮断周波数を持つ低域
通過フィルタ(LPF)を実現することが出来る。
That is, by modifying the time-varying coefficients, a low-pass filter (LPF) having an arbitrary cutoff frequency lower than 172 of the input sampling frequency can be realized.

次に、LPF特性を帯域通過フィルタ(BPF)特性に
変換する方法について説明する。フィルタのインパルス
応答をhnとすると、フィルタの伝達関数H(z)は、 H(z)=Σh n z −”          ・
・14)で与えれる。式(4)で、2は標本周期の遅延
演算子を表し、z=exp(j 27cf/fs)を代
入することによって周波数特性が求められる。インパル
ス応答hn(すなわち、フィルタタップ係数)を、1タ
ツプおきに符号反転すると、 Σ(−1)”h n z−”=Σhn(−z)−’=H
(−z)  ・・(5)となる。(5)式で−z=ex
p(jπ+j2πf/ f 5)=exp(、j 2 
z(f +f s/ 2)/ f s)であるから、位
相シフトπにより、フィルタ周波数特性がf s / 
2周波数シフトされることが判る。すなわち、LPF特
性が、高域通過フィルタ()IPF)に変換されたこと
になる。これを−膜化して、位相シフトφ(係数exp
 (jφ)を掛ける)を行うと、フィルタの周波数特性
をφf s / 2πシフトするこが出来る。しかしな
がら、任意の位相シフトでは、シフト係数exp(jφ
)が複素数となり、実数形式のフィルタでは、フィルタ
周波数特性の折り返しが生ずる。そこで、入出力標本化
周波数の比r=f 52=f Sl(逓倍時)を偶数値
とし、○≦p≦rの偶数値pに対し5位相シフト量をφ
=πp/rに制限する。これにより位相シフト係数ex
p(j nφ)は、正負対称となって、フィルタ周波数
特性の折り返しは完全に重なり合い、元のLPF特性と
同じ形となる。そこで、位相シフト係数は、実数部co
s(n x p / r )をフィルタ係数のn番目に
掛ければよい。入力標本化周波数fsx の方がfs2
よりも大きい(逓減)ときは標本化周波数比を逆にして
、r ” f s、/ f S2が偶数値となるように
選ぶ。
Next, a method of converting LPF characteristics into band pass filter (BPF) characteristics will be explained. Letting the impulse response of the filter be hn, the transfer function H(z) of the filter is: H(z)=Σh nz −” ・
・It is given by 14). In equation (4), 2 represents a delay operator of the sampling period, and the frequency characteristic is obtained by substituting z=exp(j 27cf/fs). By inverting the sign of the impulse response hn (i.e., filter tap coefficient) every other tap, we get Σ(-1)"h n z-"=Σhn(-z)-'=H
(-z) ...(5). In equation (5), −z=ex
p(jπ+j2πf/f 5)=exp(,j 2
z(f + f s/2)/f s), the filter frequency characteristic changes to f s / due to the phase shift π.
It can be seen that the frequency is shifted by two. That is, the LPF characteristics are converted to a high-pass filter (IPF). By converting this into a - film, the phase shift φ (coefficient exp
(multiplying by jφ)), the frequency characteristics of the filter can be shifted by φf s /2π. However, for any phase shift, the shift factor exp(jφ
) is a complex number, and in a real number type filter, aliasing of the filter frequency characteristics occurs. Therefore, let the input/output sampling frequency ratio r = f 52 = f Sl (during multiplication) be an even value, and set the 5 phase shift amount to φ for an even value p where ○≦p≦r.
= πp/r. As a result, the phase shift coefficient ex
p(j nφ) is symmetrical in positive and negative directions, and the folding of the filter frequency characteristics completely overlaps and has the same shape as the original LPF characteristic. Therefore, the phase shift coefficient is the real part co
The nth filter coefficient may be multiplied by s(n x p/r). The input sampling frequency fsx is less than fs2
When it is larger than (gradually decreasing), the sampling frequency ratio is reversed and selected so that r''fs,/fS2 becomes an even value.

〔作用〕[Effect]

」二記の技術を組み合わせることにより、標本化周波数
の逓減、逓倍と同時に、多重信号の任意の周波数帯の信
号を取り出したり、逆に、任意の周波数帯へ信号を挿入
することが出来る。すなわち、時変係数FIRフィルタ
を用いるディジタル補間器で、時変係数S c (n 
+ τ)をSc本(n、τ、r)に変え、標本化周波数
比にを入力する。こ肛により、標本化周波数逓減の場合
には、出力Nyquist周波数に等しい遮断周波数の
LPFが、また、逓倍の場合には、入力Nyquist
周波数に等しい遮断周波数のLPFが構成される。次に
、時変係数Sc傘 (n+ 7+  r)に、位相シフ
ト係数cos(nπp/r)を掛けると、LPF特性が
周波数シフトされ、p(0≦p≦r)番目の周波数帯が
通過域となったBPFとなる。こうしで、標本化周波数
の変換とBPFフィルタ作用が一つのハードウェアで同
時に実現される。
By combining the above two techniques, it is possible to simultaneously reduce or multiply the sampling frequency and extract signals in any frequency band from a multiplexed signal, or conversely insert signals into any frequency band. That is, in a digital interpolator using a time-varying coefficient FIR filter, the time-varying coefficient S c (n
+ τ) to Sc lines (n, τ, r) and input the sampling frequency ratio. This results in an LPF with a cutoff frequency equal to the output Nyquist frequency in the case of sampling frequency reduction, and an LPF with a cutoff frequency equal to the input Nyquist frequency in the case of multiplication.
An LPF with a cutoff frequency equal to the frequency is constructed. Next, when the time-varying coefficient Sc(n+7+r) is multiplied by the phase shift coefficient cos(nπp/r), the LPF characteristic is frequency shifted and the p(0≦p≦r)th frequency band becomes the passband. The BPF becomes . In this way, sampling frequency conversion and BPF filtering are simultaneously realized with one piece of hardware.

〔実施例〕〔Example〕

以下、図面を用いて本発明の詳細な説明する。 Hereinafter, the present invention will be explained in detail using the drawings.

第1図は本発明による、帯域通過フィルタ機能を併せ持
つ標本化周波数変換回路の一実施例である。
FIG. 1 shows an embodiment of a sampling frequency conversion circuit having a bandpass filter function according to the present invention.

この実施例では標本化周波数逓倍を行ない、入力信号を
出力信号の任意の帯域へ周波数シフトして、出力する。
In this embodiment, sampling frequency multiplication is performed to shift the frequency of the input signal to an arbitrary band of the output signal and output the signal.

図において、11.〜.INは遅延素子、2G+21+
〜、2Nおよび、3o+3x+〜、 3Nは係数掛算器
、41.〜,4Nは加算器、5,6はROM、7はカウ
ンタ、8はラッチレジスタである。遅延素子1.〜+I
N+係数掛は算器2゜、2工。
In the figure, 11. ~. IN is a delay element, 2G+21+
~, 2N and 3o+3x+~, 3N is a coefficient multiplier, 41. . . . , 4N are adders, 5 and 6 are ROMs, 7 is a counter, and 8 is a latch register. Delay element 1. ~+I
N + coefficient multiplication is 2 degrees, 2 degrees.

〜、2N加算器4ユ、〜、4Nは、入力標本化周波数f
s、で動作する時変係数FIRフィルタを構成し、入力
信号が印加されると、時変係数5c(n+ τ)で決ま
るフィルタ処理を受けて、出力信号が得られる。補間時
刻では、[解決手段]の項の第4図の説明で述へたよう
に、クロックパルスを入力したカウンタ7を、T1周期
でリセフトし、計数値T2周期で読み出し、ラッチレジ
スタ8に保持することで実現できる。時変係数α。(τ
)=Sc(n、r)(n=0〜N)は、ROMa6に予
め書き込んでおき、補間時刻τを入力して読み出し、係
数掛算器3゜、31.〜+ 3 Nに設定する時変係数
αh(τ)は、ここで、位相シフト係数βイ=cos(
nπp/r)がさらに掛けられる。こtにより、フィル
タ周波数特性は周波数シフトされて、LPF特性がBP
F特性に変換される。以上の信号処理によって、入力信
号を標本化周波数逓倍し、搬送波信号を掛けて、周波数
シフトする機能が変発明の標本化周波数変換回路によっ
て実現できる。
~, 2N adder 4U, ~, 4N has an input sampling frequency f
A time-varying coefficient FIR filter is constructed that operates with a time-varying coefficient 5c, and when an input signal is applied, an output signal is obtained through filter processing determined by a time-varying coefficient 5c(n+τ). At the interpolation time, as described in the explanation of FIG. 4 in the [Solution] section, the counter 7 to which the clock pulse is input is reset in T1 cycles, the counted value is read out in T2 cycles, and is held in the latch register 8. This can be achieved by doing this. Time-varying coefficient α. (τ
) = Sc (n, r) (n = 0 to N) is written in the ROMa 6 in advance, read out by inputting the interpolation time τ, and is input to the coefficient multipliers 3°, 31 . The time-varying coefficient αh(τ) set to ~+3N is here the phase shift coefficient βi=cos(
nπp/r) is further multiplied. As a result, the filter frequency characteristic is shifted in frequency, and the LPF characteristic becomes BP
Converted to F characteristics. Through the above signal processing, the sampling frequency conversion circuit of the present invention can realize the functions of multiplying the sampling frequency of the input signal, multiplying it by a carrier signal, and shifting the frequency.

第2図に図1の実施例の動作を説明する信号スペクトル
図を示す。第2図(a)の実線で示すような入力標本化
周波数fs工の信号を、搬送周波数fs、を変調したス
ペクトルに周波数シフトする例を示す。出力標本化周波
数fs2はfs、の4倍(r=f s2/f s□=4
)とする。入力信号は、fs2から見ると第2図(a)
の点線で示すように、0〜fs1のスペクトルが周期的
に繰り返した高調波成分を持っている。したがって、第
2図(c)に示す様な周波数特性のBPFにより、fs
工の周辺の成分だけを抜き出せば、目的が達成される。
FIG. 2 shows a signal spectrum diagram illustrating the operation of the embodiment shown in FIG. An example is shown in which a signal at an input sampling frequency fs as shown by the solid line in FIG. 2(a) is frequency shifted to a spectrum modulated by a carrier frequency fs. The output sampling frequency fs2 is 4 times fs (r=f s2/f s□=4
). The input signal is as shown in Figure 2 (a) when viewed from fs2.
As shown by the dotted line, the spectrum from 0 to fs1 has harmonic components that are periodically repeated. Therefore, fs
The purpose can be achieved by extracting only the components surrounding the structure.

そのため、第2図(b)の様な特性のLPFを、fsユ
周波数シフトする。第2図(b)のLPF特性は[解決
手段]で述べたように、時変係数FIRフィルタによる
ディジタル補間器で実現できる。このフィルタ係数に位
相シフト係数cos(nπp/r)(r=4.p=2)
を掛ける。これにより、LPF周波数特性がjs2/4
=fs。
Therefore, the LPF having the characteristics as shown in FIG. 2(b) is frequency shifted by fs. The LPF characteristic shown in FIG. 2(b) can be realized by a digital interpolator using a time-varying coefficient FIR filter, as described in [Solution]. This filter coefficient has a phase shift coefficient cos(nπp/r) (r=4.p=2)
Multiply by As a result, the LPF frequency characteristic becomes js2/4
=fs.

周波数シフトされたBPF特性が、実現できる。A frequency shifted BPF characteristic can be realized.

こうして、図2−dに示す様に181周辺のスペクトル
を抜き出すことが出来る。周波数シフトを2fs1にし
たい時は、r=4.p=4の様にパラメータを選択すれ
ばよい。
In this way, the spectrum around 181 can be extracted as shown in FIG. 2-d. If you want the frequency shift to be 2fs1, set r=4. It is sufficient to select parameters such as p=4.

第7図に本発明による他の実施例を示す6図7において
、図1と同じ構成要素には同一の番号を付けである。7
1はROM、72はラッチレジスタ、73は加算器であ
る。図は本発明による帯域通過フィルタ機能を併せ持つ
標本化周波数変換回路の他の実施例で、入力信号の必要
とする帯域成分を抜き出すと同時に、標本化周波数逓減
を行なう。入力信号は、時変係数S c * (n 、
τ+ r)で決まるFIRフィルタ処理を受けて、出力
される。
FIG. 7 shows another embodiment of the present invention. In FIG. 7, the same components as in FIG. 1 are given the same numbers. 7
1 is a ROM, 72 is a latch register, and 73 is an adder. The figure shows another embodiment of a sampling frequency conversion circuit having a band-pass filter function according to the present invention, which extracts necessary band components of an input signal and at the same time performs sampling frequency reduction. The input signal has a time-varying coefficient S c * (n,
The signal is output after being subjected to FIR filter processing determined by τ+r).

時変係数an(τ、r)==Sc*(n、 T1 r)
(n=0〜N)は、ROMa71に予め書き込んでおき
Time-varying coefficient an(τ, r)==Sc*(n, T1 r)
(n=0 to N) are written in the ROMa 71 in advance.

標本化周波数比r=f s1/fS2=T、/T、(標
本化周波数逓減を行うので、周波数比rは第1図の実施
例と逆になっている)、補間時刻τを入力して、読み出
し、係数掛算器に設定する。補間時刻では、第1図の実
施例と同様に行うことが出来る。
Input the sampling frequency ratio r=f s1/fS2=T, /T (because the sampling frequency is decreased, the frequency ratio r is opposite to that in the embodiment shown in FIG. 1), and the interpolation time τ. , read and set the coefficient multiplier. The interpolation time can be performed in the same manner as in the embodiment shown in FIG.

標本化周波数比にを決定するには、T□およびT2を求
めればよい(ここでは、入力標本化周期T□は既に既知
であるものとする)。T2を求めるため、相続く補間時
刻τ、、τn−1の差を求める。
To determine the sampling frequency ratio, it is sufficient to find T□ and T2 (here, it is assumed that the input sampling period T□ is already known). In order to obtain T2, the difference between successive interpolation times τ, , τn-1 is obtained.

(2)式から、差T2′  は、 T2′;で。−τ。−1=T2−kT□   ・・・(
6)となる。式(6)で、kは整数である。したがって
、補間時刻の差にT1の補正を加え九ばT2が求められ
る。T2は変動しても、通常ではその変動幅はT1より
小さいから、この補正演算は容易に行える。第7図の実
施例では、ラッチレジスタ8゜72で得られるで。、τ
n−1を加算器73に入力して差T2′  を求める。
From equation (2), the difference T2' is T2'; −τ. -1=T2-kT□...(
6). In equation (6), k is an integer. Therefore, by adding the correction of T1 to the difference in interpolation time, the nine-way T2 is obtained. Even if T2 varies, the range of variation is usually smaller than T1, so this correction calculation can be easily performed. In the embodiment of FIG. 7, the latch register 8.72 is obtained. , τ
n-1 is input to the adder 73 to find the difference T2'.

これをROMa71に入力し、ROM aで、T 21
  の補正演算、およびr=T工/T2の計算を行う。
Input this to ROMa71, and in ROMa, T21
and the calculation of r=T/T2.

これにより、標本化周波数比rが求められ、時変係数α
。(τ、r)=Sc*(n+ τ+ r)が決定できる
。時変係数αn(τ、 r)には、位相シフト係数β。
As a result, the sampling frequency ratio r is obtained, and the time-varying coefficient α
. (τ, r)=Sc*(n+τ+r) can be determined. The time-varying coefficient αn(τ, r) includes a phase shift coefficient β.

=cos(n tc p / r )がさらに掛けられ
る。この操作は第1図の実施例の場合と同様であるので
、説明は省略する。
= cos(ntc p/r) is further multiplied. Since this operation is the same as that in the embodiment shown in FIG. 1, the explanation will be omitted.

こうして、入力信号を帯域通過フィルタ処理して、必要
な信号を抜き出し、標本化周波数1逓減して、出力する
信号処理を本発明の標本化周波数変換回路によって実現
できる。
In this way, the sampling frequency conversion circuit of the present invention can implement signal processing in which an input signal is subjected to band-pass filter processing, a necessary signal is extracted, the sampling frequency is decreased by 1, and the signal is output.

第8図に第7図の実施例の動作を説明する信号スペクト
ル図を示す、第8図(a)の周波数多重信号から、搬送
周波数fs2の周辺の信号を帯域通過(BPF)フィル
タで抜き出し、復調(あるいは、周波数シフト)して、
さらに、標本化周波数を逓減する例を示す。入力標本化
周波数fs1は4szの4倍Cr=f s□/f 52
=4)とする。
FIG. 8 shows a signal spectrum diagram explaining the operation of the embodiment of FIG. 7. From the frequency multiplexed signal of FIG. 8(a), a signal around the carrier frequency fs2 is extracted using a band pass (BPF) filter. Demodulate (or frequency shift) and
Furthermore, an example of gradually decreasing the sampling frequency will be shown. Input sampling frequency fs1 is 4 times 4sz Cr=f s□/f 52
=4).

第8図(c)に示すようなりPF特性のフィルタを用い
れば、目的の信号が取り出せる。そこで、ディジタル補
間器によって、第8図(b)の様なLPF特性を実現し
、これを152周波数シフトする。ディジタル補間器は
入力Nyquist周波数fs1/2 の遮断周波数を
持つLPF作用を示すので、この遮断周波数をfs2/
2  に下げるため、[解決手段]の項で述べた方法に
より、周波数比r=fs□/fs2を求め、これから時
変係数α□(τ、r)=Sc傘(n+ で、r)を求め
る。こうして、遮断周波数(s2/2 のLPF (第
8図(’b)が実現される。これをBPFに変換するに
は、図1の実施例と全く同様に、位相シフト係数cos
(nπp/ r) (r = 4 y p = 2)を
掛ければよい。
If a filter with PF characteristics as shown in FIG. 8(c) is used, the desired signal can be extracted. Therefore, a digital interpolator is used to realize an LPF characteristic as shown in FIG. 8(b), and this is shifted by 152 frequencies. Since the digital interpolator exhibits an LPF action with a cutoff frequency of the input Nyquist frequency fs1/2, this cutoff frequency is changed to fs2/
2, use the method described in the [Solution] section to find the frequency ratio r = fs□/fs2, and from this find the time-varying coefficient α□ (τ, r) = Sc umbrella (n+, r). . In this way, an LPF (Fig. 8('b)) with a cutoff frequency (s2/2) is realized.To convert this into a BPF, the phase shift coefficient cos
(nπp/r) (r = 4 y p = 2).

以上のような処理により、入力信号から152周辺の信
号だけ抜き出すことができ(第8図(d乃、これを標本
化周波数を逓減して出力すれば、目的とする信号(第8
図(e)が得られる。
Through the above processing, only the signals around 152 can be extracted from the input signal (Fig. 8 (d); if this is output after decreasing the sampling frequency, the target signal
Figure (e) is obtained.

第7図では出力標本化周波数が変動したり未知の場合に
適用できる実施例に付いて述べた。入力標本化周波数が
変動する場合の実施例を、第9図に示す。図において、
7はカウンタ、8,91はランチレジスタ、92はRO
Mである。図ではディジタル補間器のFIRフィルタ部
は省略しであるが、これらは第1図、第7図と同じであ
る。入力標本化周波数が変動する場合に、標本化周波数
比r=T□/T2を求めるには、T□が知られればよい
。そのため、T1よりも充分高速なグロックパルスを入
力したカウンタ7を、T1周期でリセットし、計数値を
T0周期で読み出し、ラッチレジスタ91に保持するこ
とで、実現できる。カウンタは、補間時刻を求めるとき
のカウンタがそのまま使用できる。標本化周波数比r=
T工/T2の計算は第7図の実施例と同しように、RO
M92で行わせることが出来る。
In FIG. 7, an embodiment has been described which can be applied when the output sampling frequency varies or is unknown. An embodiment in which the input sampling frequency varies is shown in FIG. In the figure,
7 is a counter, 8, 91 are launch registers, 92 is RO
It is M. Although the FIR filter section of the digital interpolator is omitted in the figure, these are the same as in FIGS. 1 and 7. In order to obtain the sampling frequency ratio r=T□/T2 when the input sampling frequency varies, it is only necessary to know T□. Therefore, this can be achieved by resetting the counter 7 to which a glock pulse sufficiently faster than T1 is input in the T1 period, reading out the counted value in the T0 period, and holding it in the latch register 91. The counter used to obtain the interpolation time can be used as is. Sampling frequency ratio r=
Calculation of T-work/T2 is done using RO as in the example shown in Fig.
This can be done with M92.

標本化周波数が変動しない場合や、入出力の標本化周波
数が共に変動する場合も、本発明は適用できる。前者の
場合は、固定の標本化周波数比をROMに書き込んでお
けばよい。また後者の場合には第7図、第9図に示した
実施例を組み合わせて用いてればよい。
The present invention is applicable even when the sampling frequency does not vary or when the input and output sampling frequencies both vary. In the former case, a fixed sampling frequency ratio may be written in the ROM. In the latter case, the embodiments shown in FIGS. 7 and 9 may be used in combination.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、時変係数FIRフィルタを用いたディ
ジタル補間器の時変係数を変形し、さらに位相シフト係
数を掛けることにより、標本化周波数変換時に付随して
必要となる種々のフィルタ作用を、時変係数FIRフィ
ルタに兼ねさせることができ、ハードウェアの縮減が図
れる。これにより、信号の変復調処理のように、信号の
乗算と、フィルタ処理に伴い標本化周波数変換が必要と
なる信号処理において、本発明の標本化周波数変換器だ
けで実行することが出来、ハードウェアの大幅な縮減が
可能となる。さらに本方式は、標本化周波数が変動する
場合にも適用することができる。
According to the present invention, by modifying the time-varying coefficients of a digital interpolator using a time-varying coefficient FIR filter and further multiplying by a phase shift coefficient, various filtering operations that are required during sampling frequency conversion can be achieved. , can also be used as a time-varying coefficient FIR filter, and the hardware can be reduced. As a result, signal processing such as signal modulation/demodulation processing that requires signal multiplication and sampling frequency conversion in conjunction with filter processing can be performed only by the sampling frequency converter of the present invention, and can be performed using hardware. can be significantly reduced. Furthermore, this method can be applied even when the sampling frequency varies.

また、標本化周波数比が複雑な整数比の場合でも使用可
能である。
Furthermore, it can be used even when the sampling frequency ratio is a complex integer ratio.

本発明はすべてディジタル回路で実現できるので、IC
化も容易であり、ディジタル信号処理を用いる各方面で
、広く応用することが出来る。
Since the present invention can be realized entirely with digital circuits, IC
It can be easily applied to various fields using digital signal processing.

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

第1図は本発明の一実施例の構成図、第2図は第1図の
動作を説明する信号スペクトル図、第3図は時変係数F
IRフィルタによる補間方式の原理説明図、第4図は時
変係数FIRフィルタによるディジタル補間器の構成図
、第5図は折り返し現象の特明図、第6図は本発明によ
る折り返し除去機能の原理説明図、第7図は本発明の他
の実施例の構成図、第8図は第7図の動作を説明する信
号スペクトル図、第9図は本発明のさらに他の実施例の
構成図である。 11+ 〜r IN”’遅延素子、2 or 2xv 
〜r 2N+30.〜+3N  係数掛算器、4□、〜
、 4N、 73加算器、5,6,71.92・・RO
M、7 ・カ■ 図 ■ (ト) ■ 図 りu7り 箔 ■ N η
Fig. 1 is a block diagram of an embodiment of the present invention, Fig. 2 is a signal spectrum diagram explaining the operation of Fig. 1, and Fig. 3 is a time-varying coefficient F.
A diagram explaining the principle of the interpolation method using an IR filter, Fig. 4 is a configuration diagram of a digital interpolator using a time-varying coefficient FIR filter, Fig. 5 is a specific diagram of the aliasing phenomenon, and Fig. 6 is a principle of the aliasing removal function according to the present invention. 7 is a diagram showing the configuration of another embodiment of the present invention, FIG. 8 is a signal spectrum diagram explaining the operation of FIG. 7, and FIG. 9 is a configuration diagram of still another embodiment of the present invention. be. 11+ ~r IN''' delay element, 2 or 2xv
~r 2N+30. ~+3N coefficient multiplier, 4□, ~
, 4N, 73 adder, 5, 6, 71.92...RO
M, 7 ・Ka ■ Diagram ■ (G) ■ Diagram u7 Rifle ■ N η

Claims (1)

【特許請求の範囲】 1、第一の標本化周波数fs_1で周期的に初期設定さ
れる計時装置によって、第二の標本化周波数fs_2の
標本化パルスの時刻を計測し、該(第二)標本化時刻に
よって定まるフィルタ係数を持つ時変係数フィルタを用
いて、前記第一の標本化周期で標本化された入力信号系
列を、第二の標本化周波数で標本化し直した出力信号系
列に変換する標本化周波数変換回路において、前記第二
の標本化周波数fs_2と第一の標本化周波数fs_1
の比r=fs_2/fs_1を偶数値とし、0≦p≦r
の任意の偶数値pに対して、前記時変係数フィルタのn
番目の係数を、cos(nπp/r)倍した値とするこ
とを特徴とする標本化周波数変換回路。 2、特許請求の範囲第1項記載の標本化周波数変換回路
において、前記時変係数フィルタの係数を、フィルタタ
ップ数、前記(第二)標本化時刻および、前記第一の標
本化周波数fs_1と第二の標本化周波数fs_2の比
R=fs_1/fs_2とによって定まる係数とし、か
つ、前記標本化周波数比にを偶数値とし、0≦p≦rの
任意の偶数値pに対して、前記時変係数フィルタのn番
目の係数を、cos(nπp/r)倍した値とすること
を特徴とする標本化周波数変換回路。
[Claims] 1. The time of the sampling pulse at the second sampling frequency fs_2 is measured by a clock device that is periodically initialized at the first sampling frequency fs_1, and the time of the sampling pulse at the second sampling frequency fs_2 is measured. converting the input signal sequence sampled at the first sampling period into an output signal sequence resampled at a second sampling frequency using a time-varying coefficient filter having filter coefficients determined by the sampling time; In the sampling frequency conversion circuit, the second sampling frequency fs_2 and the first sampling frequency fs_1
Let the ratio r=fs_2/fs_1 be an even value, and 0≦p≦r
For any even value p of the time-varying coefficient filter n
A sampling frequency conversion circuit characterized in that the th coefficient is multiplied by cos(nπp/r). 2. In the sampling frequency conversion circuit according to claim 1, the coefficients of the time-varying coefficient filter are determined by the number of filter taps, the (second) sampling time, and the first sampling frequency fs_1. A coefficient determined by the ratio R=fs_1/fs_2 of the second sampling frequency fs_2, and the sampling frequency ratio is an even value, and for any even value p of 0≦p≦r, the above-mentioned time A sampling frequency conversion circuit characterized in that the n-th coefficient of a variable coefficient filter is set to a value multiplied by cos(nπp/r).
JP21171790A 1990-08-13 1990-08-13 Sampling frequency conversion circuit Pending JPH0495412A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21171790A JPH0495412A (en) 1990-08-13 1990-08-13 Sampling frequency conversion circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21171790A JPH0495412A (en) 1990-08-13 1990-08-13 Sampling frequency conversion circuit

Publications (1)

Publication Number Publication Date
JPH0495412A true JPH0495412A (en) 1992-03-27

Family

ID=16610434

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21171790A Pending JPH0495412A (en) 1990-08-13 1990-08-13 Sampling frequency conversion circuit

Country Status (1)

Country Link
JP (1) JPH0495412A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5774475B2 (en) * 2009-04-17 2015-09-09 株式会社ユナイテッドワークス Apparatus and method for SRC by extracting and synthesizing impulse response

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5774475B2 (en) * 2009-04-17 2015-09-09 株式会社ユナイテッドワークス Apparatus and method for SRC by extracting and synthesizing impulse response

Similar Documents

Publication Publication Date Title
US5949695A (en) Interpolator using a plurality of polynomial equations and associated methods
JPH06244883A (en) Complex modulating/demodulating system
JPH0828649B2 (en) Digital filter
JP3144283B2 (en) Delay detector
Henry The Prism: recursive FIR signal processing for instrumentation applications
JP2004528742A (en) High-speed filter
JPS625371B2 (en)
CA2154646C (en) Small-scale signal adding device and differential detecting device
JPH0495412A (en) Sampling frequency conversion circuit
JPH0472905A (en) Sampling frequency converter
JPH04247732A (en) Frequency devision multiple signal processor
Zeintl et al. Linear phase design of lattice wave digital filters
JPH1141305A (en) Modulating device
JP4535548B2 (en) Apparatus and method for anchoring a predetermined point of impulse frequency response of a physical realization filter
WO2004036746A1 (en) Digital filter design method and device, digital filter design program, and digital filter
CN117538588B (en) Amplitude-frequency response and phase-frequency response compensation device, compensation method and oscilloscope
JP4989575B2 (en) Filter and filter configuration method
JP4397492B2 (en) Digital-analog converter
Džafić et al. Computation of Discrete-Time Analytic Signals
Mahidhar et al. Case Teaching of MATLAB Implementation of FIR Filter with an Overview of Filter Analogies
JPS63253713A (en) Sampling circuit
JPS6118212A (en) Digital filter
JP2022107342A (en) Frequency estimation device, frequency estimation method, and frequency estimation program
Kim et al. An efficient DC-notch FIR filter design
JPH02216908A (en) Digital filter