JPH01278104A - Digital oscillator - Google Patents

Digital oscillator

Info

Publication number
JPH01278104A
JPH01278104A JP10553288A JP10553288A JPH01278104A JP H01278104 A JPH01278104 A JP H01278104A JP 10553288 A JP10553288 A JP 10553288A JP 10553288 A JP10553288 A JP 10553288A JP H01278104 A JPH01278104 A JP H01278104A
Authority
JP
Japan
Prior art keywords
sin
cos
initial value
oscillation
sine wave
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
JP10553288A
Other languages
Japanese (ja)
Inventor
Koichi Kihara
弘一 木原
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP10553288A priority Critical patent/JPH01278104A/en
Publication of JPH01278104A publication Critical patent/JPH01278104A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stabilization Of Oscillater, Synchronisation, Frequency Synthesizers (AREA)

Abstract

PURPOSE:To produce a sine wave with a slight amount of memory capacity by using an initializing circuit and continuing the oscillation while substituting properly the initial value to a secondary IIR digital filter. CONSTITUTION:The title oscillator consists of secondary digital filter IIR digital filter A composing of unit delay elements 1 and 2, a multiplier 11 and an adder 7 and an initializing circuit B substituting the initial value to both elements 1 and 2. When a sine wave is produced, a recurrence formula of a trigonometrical function is used as shown in an equation I. That is, sin(0), sin(x) sin(2x)... can be successively obtained with application of the initial values, i.e., sin(-x) and sin(-2x). Thus the sine waves are oscillated. As a result, a slight amount of the data memory capacity suffices owing to application of an oscillation theory where a single frequency is produced by arithmetic.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、ディジタル発振器、更に詳細には、ディジタ
ル信号処理による正弦波発振器に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a digital oscillator, and more particularly to a sine wave oscillator using digital signal processing.

(従来の技術) 従来、ディジタル発振器としては、次に示す発振方法を
用いたものが知られている。
(Prior Art) Conventionally, digital oscillators using the following oscillation method are known.

第3図は、第1の発振方法[日本電信電話公社績「D7
0型自動変換機[11ハードウエア(1)」財団法人電
気通信共済会、第303〜306頁]の説明図である。
Figure 3 shows the first oscillation method [Nippon Telegraph and Telephone Public Corporation “D7
It is an explanatory diagram of the 0-type automatic converter [11 Hardware (1), Telecommunications Mutual Aid Association, pp. 303-306].

この図において、1は正弦波、2は正弦波データを格納
するROMである。(a)。
In this figure, 1 is a sine wave, and 2 is a ROM that stores sine wave data. (a).

(b)及び(C)図は、夫々ROM2に1周期分、l/
2周期分、174周期分の正弦波データを格納しである
ことを示す。この発振方法では、この正弦波データを予
めROM2内に作成しておき、サンプリング周期でRO
Mデータを読み出すことにより正弦波を発振させる。具
体的には、1周期分のROMデータを用いる場合にはこ
れを1周期分繰り返し読み出し、172周期分のROM
データを用いる場合にはこれを(b)図中に矢印に示し
たように折り返し読み出し、1/4周期分のROMデー
タを用いる場合にはこれを(C)図中に矢印で示したよ
うに折り返し、かつ、後半周期は極性を反転しつつ読み
出すことにより正弦波を作成し発振させる。
Figures (b) and (C) each show one period of l/
This indicates that sine wave data for 2 cycles and 174 cycles is stored. In this oscillation method, this sine wave data is created in advance in ROM2, and the RO
A sine wave is oscillated by reading the M data. Specifically, when using ROM data for one cycle, this is read out repeatedly for one cycle, and the ROM data for 172 cycles is read out repeatedly.
When data is used, it is read back as shown by the arrow in the figure (b), and when 1/4 cycle worth of ROM data is used, it is read out as shown by the arrow in the figure (C). A sine wave is created and oscillated by reading back and reversing the polarity in the second half of the cycle.

また、第2の発振方法は、1つの基準周波数fsの正弦
波の1周期分(サンプル数N)のデータを用い次の第1
表に示すようにROMに格納しておき、このデータ及び
以下に示す演算に従って任意の周波数fを発振させる方
法である[テキサス・インストルメント社カタログ、デ
ィジタル・シグナル・プロセシンルアプリケーションズ
・ウィズ・ザ・ティー・エム・ニス320 ファミリー
 (Digital  SignalProcessi
ng  Applications  with  t
he  7MS3211)Family第269〜27
5頁)1゜第  1  表 このデータを基に周波数でなる正弦波を発振させる方法
を次に示す。周波数fなる正弦波のROMアドレスは次
式(1)に従って決定される。
In addition, the second oscillation method uses data for one cycle (number of samples N) of a sine wave of one reference frequency fs to generate the following first oscillation method.
This method stores data in ROM as shown in the table and oscillates at an arbitrary frequency f according to this data and the calculations shown below [Texas Instruments Catalog, Digital Signal Processing Applications with the・T.M. Niss 320 Family (Digital Signal Process
ng Applications with
he 7MS3211) Family No. 269-27
Page 5) 1゜Table 1 The following describes how to oscillate a sine wave with a frequency based on this data. The ROM address of the sine wave with frequency f is determined according to the following equation (1).

mad (k−DELTA、 N)         
     (1)ここで、k、DELTAは次のものを
示す。
mad (k-DELTA, N)
(1) Here, k and DELTA represent the following.

k=0.1.2.3.・・・ DELTA=f/ fs              
(2)また、オペレータ“mad”は、 mod(a、b)=INT(a−[a/blxb)  
      (3)ただし、式(3)において、[X]
はガウスの記号を示し、X以下の最大の整数を表わす。
k=0.1.2.3. ...DELTA=f/fs
(2) Also, the operator "mad" is mod (a, b) = INT (a - [a/blxb)
(3) However, in formula (3), [X]
indicates the Gaussian symbol and represents the largest integer less than or equal to X.

また、INT (X)はXの整数化であり、切下げ、切
上げ、四捨五入のいずれかが選択・設定される。上記式
(1)に従ってkの値を順次0,1,2゜3・・・と変
えてROMアドレスを計算する。このROMアドレスに
対応するROMデータを順次読み出すことにより周波数
fの正弦波を発振させることができる。因に、kがNの
整数倍ごとに1周期分が発振する。
Further, INT (X) is an integer of X, and one of rounding down, rounding up, and rounding is selected and set. The ROM address is calculated by sequentially changing the value of k to 0, 1, 2°3, . . . according to the above equation (1). By sequentially reading out the ROM data corresponding to this ROM address, a sine wave of frequency f can be oscillated. Incidentally, one cycle oscillates every time k is an integer multiple of N.

(発明が解決しようとする課題) しかしながら、上記発振方法は、発振周波数あるいは基
準周波数の正弦波のデータを予め作成してROMに格納
しておかなければならず、また歪の少ない正弦波を得る
ためにはサンプリング周期をある程度以上小さくとる必
要があるので、発振周波数の低下に応じてROMデータ
数を増加させなくてはならずデータ・メモリ容量が多く
必要となるため、良形な正弦波を簡易に得る目的での使
用には自ずと制限のあるものであった。
(Problem to be Solved by the Invention) However, the above oscillation method requires that sine wave data at the oscillation frequency or reference frequency be created in advance and stored in the ROM, and a sine wave with less distortion can be obtained. In order to achieve this, it is necessary to reduce the sampling period to a certain extent, so as the oscillation frequency decreases, the number of ROM data must be increased, which requires a large amount of data memory capacity. There were naturally limitations on its use for the purpose of obtaining it easily.

本発明は、従来の発振方法とは異なる原理に基づくもの
で、予めROMに1周期、172周期、又は1x4周期
分のデータを格納しておく必要がなく、僅かなメモリ容
量で正弦波を発振させることのできるディジタル発振器
を提供することを目的とする。
The present invention is based on a principle different from conventional oscillation methods, and it is not necessary to store data for 1 cycle, 172 cycles, or 1x4 cycles in ROM in advance, and oscillates a sine wave with a small memory capacity. The purpose of this invention is to provide a digital oscillator that can perform

(課題を解決するための手段) 本発明は、2つの単位遅延素子(1) 、 (2)、1
つの乗算器(11)及び加算器(7)とからなる2次I
IRディジタル・フィルタ(A)と、前記単位遅延素子
(1)、 (2)の夫々に初期値を代入するための初期
値設定回路(B)とからなることを特徴とするディジタ
ル発振器ものである。
(Means for Solving the Problems) The present invention provides two unit delay elements (1), (2), 1
A secondary I consisting of two multipliers (11) and an adder (7)
A digital oscillator comprising an IR digital filter (A) and an initial value setting circuit (B) for assigning initial values to each of the unit delay elements (1) and (2). .

(作用) 次に本発明のディジタル発振器における発振原理を本発
明に係る2次IIRフィルタの機能と共に説明する。
(Function) Next, the oscillation principle in the digital oscillator of the present invention will be explained together with the function of the second-order IIR filter according to the present invention.

本発明では、正弦波を発生させるために、次式(4)で
示される三角関数の漸化式を利用する。
In the present invention, in order to generate a sine wave, a trigonometric recurrence equation shown by the following equation (4) is used.

5in(nx)=2◆cos(x)sin(n−1)x
−sin(n−2)x  (4)この(4)式において
、5in(−x)及び5in(−2x)を初期値として
与えることにより、s in (0) 、 sin (
x) 。
5in(nx)=2◆cos(x)sin(n-1)x
-sin(n-2)x (4) In equation (4), by giving 5in(-x) and 5in(-2x) as initial values, sin(0), sin(
x).

sin (2x) 、・・・を順次水めることができ、
正弦波を発振させることができる。なお、初期値はsi
n (−x) 。
sin (2x),... can be filled sequentially,
It can oscillate a sine wave. Note that the initial value is si
n(-x).

3in (−2x)である必要はなく、漸式化(4)に
おける隣接する2点sin(mx)、 sin((m−
1)x) (mは任意の整数)であればよい。初期値を
適宜変更することにより任意の位相を持つ正弦波(又は
余弦波)を発生させることができる。
3in (-2x), and the two adjacent points sin(mx), sin((m-
1) x) (m is any integer). By appropriately changing the initial value, a sine wave (or cosine wave) with an arbitrary phase can be generated.

次に、前記式(4)の実現手段を与えるために以下の解
析を行なう。
Next, the following analysis will be performed in order to provide means for realizing the above equation (4).

今、 y (n) =s in (nx)         
        (5)とおく。式(5)を式(4)に
代入する。
Now, y (n) = s in (nx)
(5). Substitute equation (5) into equation (4).

y (n) □2−cos (x) ・y (n−1)
 −y (n−2)      (6)ここで、便宜的
に式(6)の右辺に x (n) =0 を加えると、 y(n)=2・cos(x)・y(n−1)−y(n−
2)+x(n)   (7)となる。式(7)をZ変換
すると、 Y (z) =−一一一一一一丁一で−X (z)  
 (8)1−2・cos(x)・z ’+z ”となる
。式(8)からX (z)の係数、すなわちディジタル
フィルタの伝達関数は2次のIIRフィルタ型をしてい
ることが分る。また、極は式(8)%式%(9) となり単位円上に存在する(第2図参照)。
y (n) □2-cos (x) ・y (n-1)
-y (n-2) (6) For convenience, if we add x (n) = 0 to the right side of equation (6), we get y(n) = 2・cos(x)・y(n-1 )-y(n-
2)+x(n) (7). When formula (7) is Z-transformed, Y (z) = -111111cho1 and -X (z)
(8) 1-2・cos(x)・z '+z''. From equation (8), we can see that the coefficient of X (z), that is, the transfer function of the digital filter, has a second-order IIR filter type. In addition, the poles are expressed by equation (8)% and equation (9), and exist on the unit circle (see Figure 2).

以上従って、本発明に係る2次IIRディジタル・フィ
ルタは、2つの初期値a、bを与えることにより前記式
(4)に従って正弦波を生成する。
Accordingly, the second-order IIR digital filter according to the present invention generates a sine wave according to the above equation (4) by providing two initial values a and b.

(実施例) 以下、本発明の実施例を図面と共に説明する。(Example) Embodiments of the present invention will be described below with reference to the drawings.

第1図は、本発明のディジタル発振器に使用される発振
回路の一例を示す図面である。この図において、Aは2
次IIRディジタル・フィルタ、Bは初期値設定回路で
ある。初期値設定回路Bとしては、例えば初期値a、b
を格納したROMと、これらを2次IIRディジタル・
フィルタAを駆動するための基本クロックと同期して読
み出すための読み出し回路とからなっている。初期値の
設定は、通常のディジタル・フィルタにおけると同様に
行なうことができる。また、1.2は単位遅延素子、3
は乗算器、4は加算器、5は出力端子を示す。
FIG. 1 is a drawing showing an example of an oscillation circuit used in the digital oscillator of the present invention. In this figure, A is 2
The next IIR digital filter, B is an initial value setting circuit. As the initial value setting circuit B, for example, initial values a, b
ROM storing these and a secondary IIR digital
It consists of a readout circuit for reading in synchronization with a basic clock for driving filter A. The initial value can be set in the same way as in a normal digital filter. In addition, 1.2 is a unit delay element, 3
is a multiplier, 4 is an adder, and 5 is an output terminal.

次に、第1図に示す発振回路の動作を、発振正弦波の周
期Tsがサンプリング周期T(単位遅延素子の遅延時間
により設定される)の整数倍の場合を例に説明する。
Next, the operation of the oscillation circuit shown in FIG. 1 will be explained using an example in which the period Ts of the oscillating sine wave is an integral multiple of the sampling period T (set by the delay time of the unit delay element).

初期値設定回路Bは、単位遅延素子1.2に夫々初期値
a=sin(mx)、b=sin((m−1)x)を与
える。
The initial value setting circuit B gives initial values a=sin(mx) and b=sin((m-1)x) to the unit delay element 1.2, respectively.

乗算器3において2CO3(X)・sin(mx)を求
め、加算器4においてこれと単位遅延素子2の出力s 
in ((m−1) x)を逆極性にして加算すればs
in(m+1)xが得られ出力端子5より出力される。
The multiplier 3 calculates 2CO3(X)・sin(mx), and the adder 4 calculates this and the output s of the unit delay element 2.
If we add in ((m-1) x) with the opposite polarity, we get s
in(m+1)x is obtained and output from the output terminal 5.

また、この出力は、単位遅延素子1に入力され、単位遅
延素子2にはsin (mx)が入力されて式(4)に
より sin(m+2)xが得られ出力端子5より出力
される。以下、同様にして、順次s in (m+3)
 x。
Further, this output is input to the unit delay element 1, sin (mx) is input to the unit delay element 2, and sin (m+2)x is obtained by equation (4), which is output from the output terminal 5. Thereafter, in the same way, s in (m+3)
x.

sin (m+4) x、・・・と求まり出力端子5か
ら周期Tsの正弦波が出力される。なお、ここで、Xは
2πT/T、を示す(以下において同じ)。
sin (m+4) x, . . . , and a sine wave with a period Ts is output from the output terminal 5. Note that here, X represents 2πT/T (the same applies below).

ところで、(4)式には、前記したように単位円上に2
つの極が存在する。このことに起因する発振回路の不安
定性は、発振正弦波の毎周期ごとに初期値a、bを単位
遅延素子1,2に代入することにより除去することがで
きる。
By the way, in equation (4), as mentioned above, 2
There are two poles. The instability of the oscillation circuit caused by this can be eliminated by substituting the initial values a and b into the unit delay elements 1 and 2 every cycle of the oscillation sine wave.

次に、本発明の他の実施例として、TS/Tが整数にな
らない場合の発振方法について説明する。
Next, as another embodiment of the present invention, an oscillation method when TS/T is not an integer will be described.

Ts/Tが整数にならないとき、すなわち次式(10)
%式%(10) (ここででとmとの最大公約数は工とする)のとき、第
1図の2次IIRディジタル・フィルタAを用いて正弦
波を発生させるには例えばQTに1回の割合で単位遅延
素子1.2に初期値a、 bを代入すればよいが、βの
値が大きくなるにつれて、すなわちサンプリング周期T
が短くなるにつれて、出力発振正弦波のSN比は劣化す
る。なぜなら、第1図に示す2次IIRディジタル・フ
ィルタの演算語長は有限であり、かつ、フィルタの極が
単位円上に存在するためである。このSN比の劣化を防
止するには、pTよりも短い時間間隔で単位遅延素子1
.2に初期値を代入することにより語長な短くする方法
を採用することができる。
When Ts/T is not an integer, that is, the following equation (10)
When the % formula is % (10) (here, the greatest common divisor of d and m is h), to generate a sine wave using the second-order IIR digital filter A in Fig. 1, for example, 1 is applied to QT. It is sufficient to substitute the initial values a and b into the unit delay elements 1.2 at a rate of
As becomes shorter, the S/N ratio of the output oscillation sine wave deteriorates. This is because the operation word length of the second-order IIR digital filter shown in FIG. 1 is finite, and the poles of the filter exist on the unit circle. In order to prevent this deterioration of the S/N ratio, it is necessary to
.. By assigning an initial value to 2, a method of shortening the word length can be adopted.

次に、pT(pはβ以下の自然数を示す)に1回の割合
で1組の初期値を代入する方法について説明する。ここ
で、1組の初期値をa(4pT)。
Next, a method of assigning one set of initial values to pT (p represents a natural number less than or equal to β) at a rate of one time will be described. Here, one set of initial values is a(4pT).

b((ξp−1)T)とする。ただし、ここで0はa。Let b((ξp-1)T). However, here 0 is a.

bがξpTの関数になっていることを示す。また、ξは
1〜[12/p]−1の自然数を示す([Xlはガウス
の記号を示す。以下において同じ)。
Show that b is a function of ξpT. Further, ξ represents a natural number from 1 to [12/p]-1 ([Xl represents a Gaussian symbol; the same applies hereinafter).

ところで、ξを1,2.・・・とじたときの初期値a及
びbは、周期9丁ごとに設定される発振正弦波上の点で
あるので、a(ξpT)及びb((! p−1)T)(
l・1,2.・・・、l≦[Q/p]−1)の各初期値
も発振正弦波とは周期が異なる別の正弦波上の点である
By the way, let ξ be 1, 2. ...The initial values a and b when closing are points on the oscillating sine wave set every 9 cycles, so a(ξpT) and b((! p-1)T)(
l・1,2. . . , each initial value of l≦[Q/p]−1) is also a point on another sine wave having a period different from that of the oscillating sine wave.

すなわち、今、出力発振信号を便宜的に余弦波を仮定し
、また θ7=2πT/T、             (11
)θ8=2π−pθT            (12
)とおくと、時刻pT(!・1)の時点で代入すべき初
期値は、 a= cos(−〇、)、b=cos(−(θ8+θT
))また、時刻2pT (ξ・2)の時点で代入すべき
初期値は a=cos (−20s)、b=cos(−(2θ8+
θT))となる。すなわち、初期値aはcos (−ξ
θ、)。
That is, we now conveniently assume that the output oscillation signal is a cosine wave, and θ7=2πT/T, (11
)θ8=2π−pθT (12
), the initial values to be substituted at time pT(!・1) are a=cos(-〇,), b=cos(-(θ8+θT
)) Also, the initial values to be substituted at time 2pT (ξ・2) are a=cos (-20s), b=cos(-(2θ8+
θT)). That is, the initial value a is cos (−ξ
θ,).

bはcos(−(ξθ3+θア))上の点として与えら
れる。そして、cos(−ξθS)は、前記第1の実施
例と同様にして、次の漸化式(13)、 %式%) に従って発振させることができる。発振に必要な2つの
初期値a’ 、b’は、例えばa’ =cos (0)
 。
b is given as a point on cos(-(ξθ3+θa)). Then, cos(-ξθS) can be oscillated according to the following recurrence formula (13), as in the first embodiment. The two initial values a' and b' necessary for oscillation are, for example, a' = cos (0)
.

b’= cos(OS)を用いることができる。b'=cos(OS) can be used.

また、cos (−(ξθ6+θ丁))には次式(14
)、%式%() の関係がある。従って、上記cos (ξθS)と前記
5in(nθ3)の発振器を組み合わせることでT、/
Tが整数でない場合にも発振が可能であることが分る。
In addition, cos (-(ξθ6+θd)) is expressed by the following formula (14
), there is a relationship between the % expression %(). Therefore, by combining the above cos (ξθS) and the 5 inch (nθ3) oscillator, T, /
It can be seen that oscillation is possible even when T is not an integer.

なお、5in(nθS)の2つの初期値a″、b″とし
ては、例えばa″=sin (0) 、 b″□5in
(θ3)を用いることができる。
Note that the two initial values a″ and b″ of 5in (nθS) are, for example, a″=sin (0), b″□5in
(θ3) can be used.

要するに、周期Tsがサンプリング周期Tの整数倍でな
い余弦波を第1図中の2次IIRディジタル・フィルタ
を用いて発振させるには、単位遅延素子1,2の初期値
として、まず発振開始時にa=cos (θT) 、 
b=cos (2θT)を代入し、時刻p’rの時点で
a=cos (θ、)、b=cos (θ8+θT)を
代入し、時刻2pTの時点でa=cos (2θs) 
、 b=cos (2θ3+θT)を代入し、以下同様
に初期値を代入し、時刻QTの時点で再びa=cos 
(θ7) 、 b=cos (2θT)を代入し、時刻
ΩT+pTの時点でa=cos (θ3)、b=cos
 (θ8+θT)を代入し、時刻ΩT+2pTの時点で
a=cos (2θS)+b=cos (2θ8+θT
)を代入し、以下同様とすればよい。具体例として、Q
=20. m=3.20T:3T、、 p=6のときの
出力波形と設定すべき初期値を第4図に示した。
In short, in order to oscillate a cosine wave whose period Ts is not an integral multiple of the sampling period T using the second-order IIR digital filter shown in FIG. =cos(θT),
Assign b=cos (2θT), at time p'r, a=cos (θ,), b=cos (θ8+θT), and at time 2pT, a=cos (2θs)
, b = cos (2θ3 + θT), and the following initial values are substituted in the same way, and at time QT, a = cos
(θ7), b=cos (2θT), and at time ΩT+pT, a=cos (θ3), b=cos
(θ8+θT) and at time ΩT+2pT, a=cos (2θS)+b=cos (2θ8+θT
) and so on. As a specific example, Q
=20. The output waveform and the initial value to be set when m=3.20T:3T, p=6 are shown in FIG.

−第5図は、上記解析に基づいて構成された本発明のデ
ィジタル発振器に使用される発振回路の一例を示す図面
で、特に初期値発生回路の構成例を示す。この図におい
て、Aは2次IIRディジタル・フィルタ、Bは初期値
設定回路である。初期値設定回路Bは、第2.第3の2
次IIRディジタル・フィルタを備えている。また、1
.2゜3.4,5.6は単位遅延素子、7,8,9゜1
0は加算器、11,12,13,14.15は乗算器、
16,17.18,19,20.21はスイッチ、22
,23,24,25,26゜27.28はいずれも端子
を示す。
- FIG. 5 is a diagram showing an example of an oscillation circuit used in the digital oscillator of the present invention constructed based on the above analysis, and particularly shows an example of the construction of an initial value generation circuit. In this figure, A is a second-order IIR digital filter, and B is an initial value setting circuit. The initial value setting circuit B includes the second. 3rd 2
It is equipped with an order IIR digital filter. Also, 1
.. 2゜3.4, 5.6 are unit delay elements, 7, 8, 9゜1
0 is an adder, 11, 12, 13, 14.15 is a multiplier,
16, 17. 18, 19, 20. 21 are switches, 22
, 23, 24, 25, 26°27.28 all indicate terminals.

先ず、スイッチ16.17を夫々端子22.25に接続
して単位遅延素子1.2にROM (図示していない)
に格納された初期値a=cosθ7゜b=cos2θア
を代入した後スイッチ16.17を夫々空端子24.2
7に接続しておく。このとき、発振回路Aにおいては、
第1の実施例と同様にして時刻9丁になるまでサンプリ
ング周期Tに1回の割合で発振回路Aにおいて演算を行
ない結果を出力端子28に出力する。
First, connect the switches 16 and 17 to the terminals 22 and 25, respectively, and connect the unit delay element 1.2 to the ROM (not shown).
After substituting the initial value a=cosθ7゜b=cos2θa stored in , switch 16.17 is connected to empty terminal 24.2.
Connect it to 7. At this time, in the oscillation circuit A,
In the same manner as in the first embodiment, the oscillation circuit A performs calculations once every sampling period T until the time reaches 9 o'clock, and outputs the results to the output terminal 28.

一方、初期値設定回路Bは、時刻pTにおける初期値a
’ 、b’及びa″、b″の演算を行なう。
On the other hand, the initial value setting circuit B sets the initial value a at time pT.
', b' and a'', b'' are calculated.

すなわち、スイッチ18,19,20,21を閉じて単
位遅延素子3,4,5.6にそれぞれROM(図示して
いない)に格納された初期値cos (○)、cos(
0g) 、 sin (0) 、 −5in (OS)
を代入してスイッチ18,19,20.21を開く。こ
れによって、発振回路Cではcos(lθ3)が、発振
回路りでは5in(ξθ、)が発振する。そして、この
発振出力をもとに乗算器12でcos (lθS)・c
os (θT)を、また乗算器13で5in(!θs)
 15in(θT)を演算し、加算器8で後者を反転後
加えてcos(ξθ8+07)を演算する。そして、時
刻pTになった時点で演算結果を端子23.26に出力
し、次にスイッチ16.17をそれぞれ端子23.26
に接続する。このようにして初期値a=cos (θs
) 、 、b=cos (θ3+θT)を単位遅延素子
1゜2に夫々代入してから、スイッチ16.17を夫々
空端子24.27に接続する。
That is, by closing the switches 18, 19, 20, and 21, the initial values cos (○) and cos (
0g), sin (0), -5in (OS)
Substitute and open switches 18, 19, 20, and 21. As a result, cos(lθ3) oscillates in the oscillation circuit C, and 5in(ξθ,) oscillates in the oscillation circuit. Then, based on this oscillation output, the multiplier 12 generates cos(lθS)・c
os (θT) and multiplier 13 to 5in (!θs)
15in(θT) is calculated, and the latter is inverted and added in an adder 8 to calculate cos(ξθ8+07). Then, at time pT, the calculation result is output to the terminal 23.26, and then the switch 16.17 is connected to the terminal 23.26, respectively.
Connect to. In this way, the initial value a=cos (θs
) , , b=cos (θ3+θT) are respectively assigned to the unit delay element 1°2, and then the switches 16 and 17 are connected to the empty terminals 24 and 27, respectively.

そして、時刻2pTになるまで再び発振回路Aの演算を
行ない結果を端子28に出力する。時刻2pTになった
時点で初期値設定回路Bの演算を再び行ない発振回路A
の単位遅延素子1.2に夫々初期値a=cos (2θ
s) 、 1)=cos (2θ、+θT)を代入する
。以下、時刻QT=mTsになるまで上記処理を繰り返
す。時刻QT=mT3になった時点で単位遅延素子1,
2,3,4,5.6に再び初期値a=cos (θT)
 、 b=cos (2θT)を代入し、上記処理を施
す。このようにして、余弦波が生成される。なお、本実
施例におけるスイッチ16〜21は、2?JIIRデイ
ジタル・フィルタA、C,Dを駆動するための基本クロ
ックと同期して、常法に従ってスイッチイングされる。
Then, the operation of the oscillation circuit A is performed again until time 2pT, and the result is output to the terminal 28. At time 2pT, the initial value setting circuit B performs the calculation again and the oscillation circuit A
The initial value a=cos (2θ
s), 1)=cos (2θ, +θT) is substituted. Thereafter, the above process is repeated until time QT=mTs. When time QT=mT3, unit delay element 1,
Initial value a=cos (θT) again at 2, 3, 4, 5.6
, b=cos (2θT) and perform the above processing. In this way, a cosine wave is generated. Note that the switches 16 to 21 in this embodiment are 2? Switching is performed in synchronization with the basic clock for driving the JIIR digital filters A, C, and D according to a conventional method.

なお、ここでは余弦波を例にとって説明したが、初期値
の与え方によって任意の位相の単周波を発生させること
ができることは言うまでもない。
Although the cosine wave has been explained here as an example, it goes without saying that a single frequency wave of any phase can be generated depending on how the initial value is given.

また、上記実施例と同様の回路は、プロセッサーの中で
実現することもできることは言うまでもない。
Furthermore, it goes without saying that a circuit similar to the above embodiment can also be implemented within a processor.

(発明の効果) 以上、詳細に説明したように本発明によれば、2次II
Rディジタル・フィルタとこれに初期値を代入するため
の初期値設定回路とを設け、2次IIRディジタル・フ
ィルタに適宜初期値を代入しつつ発振を持続するように
したので、発振信号のSN比の劣化を防止することがで
き、また演算により単周波を作成する発振原理に基づく
ものであるので、データ・メモリ容量はごく僅かでよい
(Effects of the Invention) As described above in detail, according to the present invention, the secondary II
An R digital filter and an initial value setting circuit for assigning an initial value to the R digital filter are provided, and oscillation is maintained while appropriately assigning the initial value to the secondary IIR digital filter, so that the S/N ratio of the oscillation signal is Since it is based on the oscillation principle of creating a single frequency wave by calculation, the data memory capacity may be very small.

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

第1図は本発明の第1の実施例の発振回路図、第2図は
式(8)中の伝達関数の極を示す図、第3図は従来の第
1の発振方法の説明図、第4図はTS/Tが整数でない
場合の出力波形と設定すべき初期値を示す図、第5図は
本発明の第2の実施例の発振回路図である。 A、C,D・・・2次IIRディジタル・フィルタ、B
・・・初期値設定回路。 特許出願人 沖電気工業株式会社 、を発明り第一の寮だ例0光流回路図 第1図 喪(8)中の伝達量aO僅を示丈園 第2図
FIG. 1 is an oscillation circuit diagram of the first embodiment of the present invention, FIG. 2 is a diagram showing the poles of the transfer function in equation (8), and FIG. 3 is an explanatory diagram of the conventional first oscillation method. FIG. 4 is a diagram showing an output waveform and an initial value to be set when TS/T is not an integer, and FIG. 5 is an oscillation circuit diagram of a second embodiment of the present invention. A, C, D...Second-order IIR digital filter, B
...Initial value setting circuit. Patent applicant: Oki Electric Industry Co., Ltd., invented the first dormitory.

Claims (1)

【特許請求の範囲】 2つの単位遅延素子(1)、(2)、1つの乗算器(1
1)及び加算器(7)とからなる2次IIRディジタル
・フィルタ(A)と、 前記単位遅延素子(1)、(2)の夫々に初期値を代入
するための初期値設定回路(B)とからなることを特徴
とするディジタル発振器。
[Claims] Two unit delay elements (1), (2), one multiplier (1
1) and an adder (7); and an initial value setting circuit (B) for assigning initial values to each of the unit delay elements (1) and (2). A digital oscillator comprising:
JP10553288A 1988-04-30 1988-04-30 Digital oscillator Pending JPH01278104A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10553288A JPH01278104A (en) 1988-04-30 1988-04-30 Digital oscillator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10553288A JPH01278104A (en) 1988-04-30 1988-04-30 Digital oscillator

Publications (1)

Publication Number Publication Date
JPH01278104A true JPH01278104A (en) 1989-11-08

Family

ID=14410201

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10553288A Pending JPH01278104A (en) 1988-04-30 1988-04-30 Digital oscillator

Country Status (1)

Country Link
JP (1) JPH01278104A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0989669A1 (en) * 1998-09-25 2000-03-29 Thomson-Csf Digital frequency generator
JP2001238235A (en) * 2000-02-21 2001-08-31 Toshiba Corp Digital sine wave data generating device and tone detection circuit
WO2004006425A1 (en) * 2002-07-08 2004-01-15 Sony Corporation Waveform generating device and method, and decoder
JP2008131280A (en) * 2006-11-20 2008-06-05 Yamaha Corp Waveform generating circuit
US7847177B2 (en) * 2008-07-24 2010-12-07 Freescale Semiconductor, Inc. Digital complex tone generator and corresponding methods

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0989669A1 (en) * 1998-09-25 2000-03-29 Thomson-Csf Digital frequency generator
FR2783984A1 (en) * 1998-09-25 2000-03-31 Thomson Csf DIGITAL FREQUENCY GENERATOR
JP2001238235A (en) * 2000-02-21 2001-08-31 Toshiba Corp Digital sine wave data generating device and tone detection circuit
JP4542658B2 (en) * 2000-02-21 2010-09-15 株式会社東芝 Digital sine wave data generator
WO2004006425A1 (en) * 2002-07-08 2004-01-15 Sony Corporation Waveform generating device and method, and decoder
US7405499B2 (en) 2002-07-08 2008-07-29 Sony Corporation Waveform generating apparatus, waveform generating method, and decoder
JP2008131280A (en) * 2006-11-20 2008-06-05 Yamaha Corp Waveform generating circuit
JP4640321B2 (en) * 2006-11-20 2011-03-02 ヤマハ株式会社 Waveform generation circuit
US7847177B2 (en) * 2008-07-24 2010-12-07 Freescale Semiconductor, Inc. Digital complex tone generator and corresponding methods

Similar Documents

Publication Publication Date Title
Parker et al. Limit-cycle oscillations in digital filters
CA1078521A (en) Digital signal processing device
JPS5923614A (en) Dimension filter circuit
EP0137816A1 (en) Apparatus for generating scaled weighting coefficients for sampled data filters
US4215415A (en) Recursive digital filter comprising a circuit responsive to first sum and feedback sign bits and second sum sign and integer bits for detecting overflow in the second sum
JPH01278104A (en) Digital oscillator
US5729483A (en) Implementation of a digital interpolation filter and method
DK150875B (en) RECURSIVE DIGITAL FILTER
US5710729A (en) Filtering method and digital over sampler filter with a finite impulse response having a simplified control unit
JPS6336572B2 (en)
Hartmanis Linear multivalued sequential coding networks
JPH06260890A (en) High resolving power digital filter and filtering of digital cord sample signal
JPH08204506A (en) Interpolation circuit and interpolation system
JPH04222111A (en) Digital filter
JPS6257303A (en) Digital oscillation circuit
SU877787A1 (en) Programme-controlled digital filter
SU1092483A1 (en) Function generator
SU898592A1 (en) Digital filter
SU961103A1 (en) Apparatus for computing digital filter coefficients
SU1730633A1 (en) Device for linear interpolation of brightness and remoteness of image segments
JPS60254909A (en) Digital filter
JPS6018005A (en) Digital oscillating circuit
JPH10207689A (en) Device and method inverse element calculation
JPH0497297A (en) Effect adding device
JPH0338902A (en) Digital sinusoidal wave function series generating circuit