JPH02216511A - Sine wave generation circuit - Google Patents

Sine wave generation circuit

Info

Publication number
JPH02216511A
JPH02216511A JP24693988A JP24693988A JPH02216511A JP H02216511 A JPH02216511 A JP H02216511A JP 24693988 A JP24693988 A JP 24693988A JP 24693988 A JP24693988 A JP 24693988A JP H02216511 A JPH02216511 A JP H02216511A
Authority
JP
Japan
Prior art keywords
data
wave data
sine wave
output
waveform
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
JP24693988A
Other languages
Japanese (ja)
Inventor
Shinichi Nakamura
伸一 中村
Masahiro Muramatsu
雅弘 村松
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.)
Toshiba Corp
Toshiba AVE Co Ltd
Original Assignee
Toshiba Corp
Toshiba Audio Video Engineering 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 Toshiba Corp, Toshiba Audio Video Engineering Co Ltd filed Critical Toshiba Corp
Priority to JP24693988A priority Critical patent/JPH02216511A/en
Publication of JPH02216511A publication Critical patent/JPH02216511A/en
Pending legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)

Abstract

PURPOSE:To shorten an operation time by generating square wave data having the same frequency as an output sine wave from saw wave data obtained by means of integrating input data deciding the frequency of output sine wave data and multiplying square wave data and waveform data which function ROM outputs so as to obtain sine wave data. CONSTITUTION:A square waveform generation means 37 generating square waveform data (i) having the same frequency as the output sine wave from saw wave data (a) obtained by integrating input data deciding the frequency of output sine wave data and a multiplication means 39 which multiplies the square wave data (i) and waveform data (e) which function ROM 24 outputs to obtains sine wave data, generate in parallel an address reading and controlling function ROM 24 and square wave data (i) which obtains output sine wave data by an operation based on the output of function ROM 24. A condition branching instruction such as polarity decision does not exist. Consequently, a program as a whole can be proceeded by using idle steps in respective programs.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) この発明は、関数ROMを用いて正弦波を発生する正弦
波発生回路に係り、デジタルシグナルプロセッサにおけ
る波形発生プログラムのステップ数を短縮するようにし
たものである。
[Detailed Description of the Invention] [Object of the Invention] (Industrial Application Field) The present invention relates to a sine wave generation circuit that generates a sine wave using a function ROM. It is designed to shorten the .

(従来の技術) 例えばSINカーブのデータを書込んだ関数ROMを用
い、アドレス制御によって正弦波を得る正弦波発生回路
がある。
(Prior Art) For example, there is a sine wave generation circuit that uses a function ROM in which SIN curve data is written and generates a sine wave through address control.

第3図はこのような正弦波発生回路の動作を示す波形図
である。
FIG. 3 is a waveform diagram showing the operation of such a sine wave generating circuit.

先ず、出力正弦波データの周波数は、第4図aに示す鋸
歯状波データの周1]fH,即ちスロープの傾斜角によ
って決定される。この鋸歯状、波データは、サンプリン
グ間隔で一定値のデータを積分することによって得られ
る。この鋸歯状波データの正負の絶対値をとると、第4
図すに示す三角波が得られる。更に、第4図Cの三角波
は、第4図bの三角波の基準レベルを負側にシフトした
ものである。次に、第4図Cの三角波を鋸歯状波のとき
と同様に絶対値化する。これにより第4図dに示すよう
に、始めの鋸歯状波データに対し周波数が2倍の三角波
を得る。このような周波数の三角波は、その1個分の三
角波区間が、第4図fにて示す出力正弦波の半周期に等
しいので、前半のスロープの傾きをアドレス化し、この
アドレスによって正弦波の4分の1周用分を関数ROM
より読出すことができる。この4分の1周期分を読み出
し終えると、前記アドレス信号は飽和するので、次に、
アドレスを第4図dに示す三角波における後半のスロー
プに対応させて減少することで、出力正弦波の2分の1
周期分のデータを読出すことができる。これにより関数
ROMより得られる波形を第4図eに示す。この第4図
eの波形は、出力正弦波の負の半周期を反転したもので
あり、関数ROMから出力した第4図eの正弦波を極性
判定して符号を付すことによって、出力正弦波を生成す
ることができる。
First, the frequency of the output sine wave data is determined by the period 1]fH of the sawtooth wave data shown in FIG. 4a, that is, the inclination angle of the slope. This sawtooth wave data is obtained by integrating constant value data at sampling intervals. Taking the absolute values of the positive and negative values of this sawtooth wave data, the fourth
The triangular wave shown in the figure is obtained. Further, the triangular wave shown in FIG. 4C is obtained by shifting the reference level of the triangular wave shown in FIG. 4b to the negative side. Next, the triangular wave shown in FIG. 4C is converted into an absolute value in the same way as the sawtooth wave. As a result, as shown in FIG. 4d, a triangular wave whose frequency is twice that of the initial sawtooth wave data is obtained. For a triangular wave with such a frequency, one triangular wave section is equal to half the period of the output sine wave shown in Fig. Function ROM for one round of minutes
It can be read more easily. After reading out this 1/4 cycle, the address signal is saturated, so next,
By decreasing the address in accordance with the slope of the latter half of the triangular wave shown in Figure 4d, the output sine wave can be divided by half.
Data for a period can be read. The waveform obtained from the function ROM is shown in FIG. 4e. The waveform shown in Fig. 4e is an inversion of the negative half cycle of the output sine wave, and by determining the polarity of the sine wave shown in Fig. 4e output from the function ROM and assigning a sign, the output sine wave is can be generated.

第5図は、第4図のような方法で正弦波形を出力する回
路を示す。この回路は、実際には、デジタルシグナルプ
ロセッサの各構成要素を、波形発生プログラムに基づき
動作させた時に構築されるものである。
FIG. 5 shows a circuit for outputting a sine waveform in the manner shown in FIG. This circuit is actually constructed when each component of the digital signal processor is operated based on a waveform generation program.

第5図において、加算回路41.ワーキングレジスタ(
以下単にレジスタと呼ぶ)42及びRAM(#1)43
は、加算回路41に入力する周波数決定データをレジス
タ42及びRAM43を介して加算回路41に帰還し、
レジスタ42より第4図aの鋸歯状波データaを発生す
る積分手段である。
In FIG. 5, adder circuit 41. Working register (
(hereinafter simply referred to as register) 42 and RAM (#1) 43
returns the frequency determination data input to the adder circuit 41 to the adder circuit 41 via the register 42 and the RAM 43;
This is an integrating means for generating the sawtooth wave data a shown in FIG. 4A from the register 42.

この積分手段より後段の、絶対値回路44.レジスタ4
5.加算回路46.係数ROM 47.レジスタ48゜
絶対値回路49.レジスタ51及びアドレスレジスタ5
2は、関数ROM54のアドレスを作成する手段であっ
て、レジスタ45の出力は、第4図すの三角波データと
なり、レジスタ48の出力は、第4図Cの三角波データ
、レジスタ51の出力は第4図dの三角波データとなる
。また、係数ROM47は、三角波データbを半値幅分
ダウンシフトする係数+0゜5を発生している。
Absolute value circuit 44 downstream of this integrating means. register 4
5. Addition circuit 46. Coefficient ROM 47. Register 48° Absolute value circuit 49. Register 51 and address register 5
2 is means for creating the address of the function ROM 54, the output of the register 45 is the triangular wave data shown in FIG. 4, the output of the register 48 is the triangular wave data shown in FIG. This results in the triangular wave data shown in Figure 4 d. Further, the coefficient ROM 47 generates a coefficient +0°5 for downshifting the triangular wave data b by the half width.

しかして、アドレスレジスタ52は、レジスタ51から
の三角波データdを関数ROM54のアドレス体系に合
わせたデジタル値に変換して保持し、更に、加算器53
でSINデータで正弦波発生に適したアドレスにする。
Therefore, the address register 52 converts the triangular wave data d from the register 51 into a digital value matching the address system of the function ROM 54 and holds it, and furthermore, the adder 53
Set the SIN data to an address suitable for generating a sine wave.

このアドレスは関数ROM54を制御して、該ROM5
4に記憶された正弦波データを読出す。読みされたデー
タは、第4図eに示すものとなり、レジスタ55を介し
てRAM(#3)56に蓄える。
This address controls the function ROM54 and
Read the sine wave data stored in 4. The read data is as shown in FIG. 4e, and is stored in the RAM (#3) 56 via the register 55.

一方、RAM(#2>50からの三角波データCは、レ
ジスタ58を介して極性判定回路57に入力する。また
、RAM(#3)5Gからの波形データeも極性判定回
路57に入んする。これによって極性判定回路51から
は極性が決定された正側半周期正弦波と負側半周期正弦
波データとを出力する。これらのデータのうち、正側半
周1引止弦波データは、+1を出力する係数ROMから
のデータと乗算器61で乗算し、この乗算結果は出力正
弦波の正側半周期分として出力する。また、負側単周期
正弦波データは、−1を出力する係数ROM60からの
データと乗算し、この乗算結果は出力正弦波の負側半周
期分として出力する。
On the other hand, triangular wave data C from RAM (#2>50) is input to the polarity determination circuit 57 via the register 58. Waveform data e from RAM (#3) 5G is also input to the polarity determination circuit 57. As a result, the polarity determination circuit 51 outputs the positive half-cycle sine wave data and the negative half-cycle sine wave data whose polarities have been determined.Among these data, the positive half-cycle 1 stop sinusoidal wave data is as follows. The data from the coefficient ROM that outputs +1 is multiplied by the multiplier 61, and the multiplication result is output as the positive half period of the output sine wave.In addition, -1 is output for the negative side single period sine wave data. It is multiplied by the data from the coefficient ROM 60, and the multiplication result is output as a negative half period of the output sine wave.

以上のような正弦波発生回路は、デジタルシグナルプロ
セッサにおいて、所定の命令に基づき、指定したレジス
タや演算回路が動作して、各種波形データが得られる。
In the above-described sine wave generation circuit, specified registers and arithmetic circuits are operated in a digital signal processor based on a predetermined instruction to obtain various waveform data.

第6図は第5図の回路による正弦波発生プログラムを示
すフローチャートを示す。861〜S81は各命令ステ
ップを示し、右側に結果である波形データを示す。この
フローチャートにおいて、ステップ863.64は、ス
テップ362の結果をステップ865で使用するため、
862の結果である1iifil状波データaの生成を
持つために設(プる空ステップである。また、ステラ7
 S 67、 BIN;L、係数ROM47の出力と三
角波データbとの加算のための空ステップである。同様
に、ステップ370〜71は、ステップS69のための
空ステップ、ステップ375は1で八M50の内容をレ
ジスタ58に転送する際の空ステップ、ステップ880
,881は、出力動作のた〃)の空ステップである。
FIG. 6 shows a flowchart showing a sine wave generation program using the circuit of FIG. 861 to S81 indicate each instruction step, and the resulting waveform data is shown on the right side. In this flowchart, steps 863.64 use the results of step 362 in step 865, so that
This is an empty step that is set to generate 1ifil wave data a which is the result of 862.
S67, BIN; L, empty step for adding the output of the coefficient ROM 47 and the triangular wave data b. Similarly, steps 370 to 71 are empty steps for step S69, step 375 is an empty step when transferring the contents of 8M50 to register 58, and step 880
, 881 is an empty step for the output operation.

このような空ステップは、命令が実行され、結果がでる
までには、乗算器や加算回路の特性等が異なる等の理由
によって、多少時間がかかるため、プログラムを遅延し
て、前のステップの演算結果を待つものである。
Such an empty step takes some time to execute an instruction and produce a result due to differences in the characteristics of multipliers and adder circuits, so the program is delayed and the previous step is It waits for the calculation result.

そこで、このような空ステップを有効に利用して、他の
演算を行うようにすれば良い。しかしながら、第5図の
回路の場合、ステップ877のように、極性判定回路5
7における条件分岐命令がある。
Therefore, such empty steps can be effectively used to perform other calculations. However, in the case of the circuit of FIG. 5, as in step 877, the polarity determination circuit 5
There is a conditional branch instruction in 7.

プログラムの途中で上記のような条件分岐命令を使うと
、ステップ80.81等の極性判定のための空ステップ
の数が変わってしまうことがあり、ステップ863.8
64.867、868等の空ステップを有効利用するこ
とができない。
If you use a conditional branch instruction like the one above in the middle of a program, the number of empty steps for polarity determination such as steps 80.81 may change, and steps 863.8
64. Empty steps such as 867 and 868 cannot be used effectively.

(発明が解決しようとする課題) 上記のごとく、デジタルシグナルプロセッサを使って、
プログラムにより正弦波を発生する関数発生回路におい
ては、演算器の特性や、演算の種類によってプログラム
の演算処理命令が実行され、結果が出るまでに数ステッ
プの空ステップが生ずる場合がある。そこで、この様な
空ステップを有効利用して他の演算処唾を行うことが考
えられるが、極性判定等の条件分岐命令を含む場合は、
この条件分岐命令での空ステップ数が変化するので、空
ステップの有効利用を図れず、演算時間が長くなるとい
う欠点があった。
(Problem to be solved by the invention) As mentioned above, using a digital signal processor,
In a function generating circuit that generates a sine wave according to a program, depending on the characteristics of the arithmetic unit and the type of operation, the arithmetic processing instructions of the program are executed, and several empty steps may occur before a result is produced. Therefore, it is possible to effectively utilize such empty steps to perform other calculations, but if a conditional branch instruction such as polarity judgment is included,
Since the number of empty steps in this conditional branch instruction changes, the empty steps cannot be used effectively, resulting in a disadvantage that the calculation time becomes longer.

この発明は上記問題点を除去し、条件分岐命令を使わず
に正弦波を発生し、空ステップを有効利用することがで
きる正弦波発生回路の提供を目的とする。
It is an object of the present invention to provide a sine wave generation circuit which can eliminate the above-mentioned problems, generate a sine wave without using conditional branch instructions, and make effective use of empty steps.

[発明の構成] (′Ii題を解決するための手段) この発明は、出力正弦波データの周波数を決定する入力
データを積分し、所定傾斜角の鋸歯状波データを発生す
る積分手段と、前記鋸歯状波データより前記出力正弦波
データの2倍の周波数に対応したアドレスデータを生成
するアドレス生成手段と、前記アドレスデータによって
アクセス動作し正弦波形の半周期分が一方極性に偏移し
た波形を発生する関数ROMとを具備し、記鋸歯状波デ
ータより前記出力正弦波と同一周波数の方形波データを
作成する方形波作成手段と、この方形波作成手段の方形
波データと前記関数ROMの出力する波形データを乗算
して正弦波データを得る乗算手段を設けている。
[Structure of the Invention] (Means for Solving Problem 'Ii) The present invention includes an integrating means for integrating input data that determines the frequency of output sine wave data and generating sawtooth wave data having a predetermined slope angle; address generating means for generating address data corresponding to twice the frequency of the output sine wave data from the sawtooth wave data; and a waveform in which an access operation is performed based on the address data and a half cycle of the sine waveform is shifted to one polarity. a function ROM that generates the output sine wave, and a square wave generating means that generates square wave data having the same frequency as the output sine wave from the recorded sawtooth wave data; A multiplication means is provided for multiplying the output waveform data to obtain sine wave data.

(作用〉 このような正弦波発生回路によれば、関数ROMを読出
し制御するアドレスの生成と、関数ROMの出力に基づ
き演算によって出力正弦波データを得る方形波データの
生成を並行して行う。また、極性判定等の条件分岐命令
がない。これにより、それぞれのプログラム中における
空ステップを互いに利用して全体としてのプログラムを
進行することができ、正弦波発生プログラムのステップ
数の削減を図り、演算時間を短縮することができる。
(Function) According to such a sine wave generation circuit, generation of an address for reading and controlling the function ROM and generation of square wave data for obtaining output sine wave data by calculation based on the output of the function ROM are performed in parallel. In addition, there are no conditional branch instructions such as polarity judgment.This allows the program as a whole to proceed by using empty steps in each program, reducing the number of steps in the sine wave generation program. Computation time can be reduced.

(実施例) 以下、この発明を図示の実施例によって説明する。(Example) The present invention will be explained below with reference to illustrated embodiments.

第1図はこの発明に係る正弦波発生回路の一実施例を示
す回路図である。
FIG. 1 is a circuit diagram showing an embodiment of a sine wave generating circuit according to the present invention.

第1図において、加算回路11.レジスタ12.RAM
 (# 1 ) 13.絶対値回路14.レジスタ15
.加算回路16.係数ROM 17.レジスタ18.絶
対値回路19.レジスタ21.アドレスレジスタ22及
び加算回路23は、従来と同様の構成であり、出力正弦
波の2倍の周波数を有する三角波データを発生する。
In FIG. 1, adder circuit 11. Register 12. RAM
(#1) 13. Absolute value circuit 14. register 15
.. Addition circuit 16. Coefficient ROM 17. Register 18. Absolute value circuit 19. Register 21. The address register 22 and the adder circuit 23 have the same configuration as the conventional one, and generate triangular wave data having twice the frequency of the output sine wave.

即ち、加算回路11.レジスタ12. RAM (# 
1 )13は、周波数を決定する入力データ積分して、
鋸歯状波データaを作成する積分手段を構成する。
That is, the adder circuit 11. Register 12. RAM (#
1) 13 integrates the input data to determine the frequency,
An integrating means for creating sawtooth wave data a is configured.

次段の、絶対値回路14とレジスター゛15は、鋸歯状
波データaを絶対値化して三角波データbを作成する。
The absolute value circuit 14 and register 15 at the next stage convert sawtooth wave data a into absolute values to create triangular wave data b.

この三角波データbは、係数ROM17からの係数−0
,5と加算し、レジスタ18に格納して三角波データC
となる。絶対値回路19は、上記三角波データCの絶対
値をとり、レジスタ21に格納する。レジスタ21の出
力はアドレスレジスタ22を介して加算回路23でSI
Nデータと加算し、関数ROM24を読出すアドレスと
なる。
This triangular wave data b is the coefficient -0 from the coefficient ROM 17.
, 5, and store it in the register 18 to obtain the triangular wave data C.
becomes. The absolute value circuit 19 takes the absolute value of the triangular wave data C and stores it in the register 21. The output of the register 21 is sent to the adder circuit 23 via the address register 22 to the SI
It is added to the N data and becomes the address for reading the function ROM 24.

一方、レジスタ12の出力する鋸歯状波データaは、係
数ROM32からの係数+0.5を一方に入力する加算
回路31の他方に入力する。鋸歯状波データaに+0.
5を加算することで、鋸歯状波データaより位相が半周
期ずれた鋸歯状波データQを得る。
On the other hand, the sawtooth wave data a output from the register 12 is input to the other side of the adder circuit 31, which inputs the coefficient +0.5 from the coefficient ROM 32 to one side. +0 to sawtooth wave data a.
By adding 5, sawtooth wave data Q whose phase is shifted by half a cycle from the sawtooth wave data a is obtained.

加算回路31の出力はレジスタ33を介して加算回路3
4の一方に入力する。加算回路34の他方には係数RO
M35からの係数+1を入力しており、これにより、加
昇回路34からは、鋸歯状波データbを更に半周期会同
一方向にずらした鋸歯状波データ1)を得る。この鋸歯
状波データhは、一方に鋸歯状波データqの入力した加
算回路37の他方に入る。
The output of the adder circuit 31 is sent to the adder circuit 3 via the register 33.
Enter it in one of 4. The other side of the adder circuit 34 has a coefficient RO.
The coefficient +1 from M35 is input, and as a result, sawtooth wave data 1) obtained by shifting the sawtooth wave data b by a half period in the same direction is obtained from the boost circuit 34. This sawtooth wave data h enters the other side of the adder circuit 37 into which the sawtooth wave data q is input.

加算回路31からは、鋸歯状波データqとhを加算(合
成)した波形データiを出力する。この波形データiは
、方形波データであり、レジスタ38に保持する。
The adder circuit 31 outputs waveform data i obtained by adding (synthesizing) the sawtooth wave data q and h. This waveform data i is square wave data and is held in the register 38.

しかして、関数ROM24から読出される波形データe
は、乗n器39で前記方形波データiと乗算する。これ
により、乗算器39から入力データの指定する周波数に
応じた正弦波データを出力することになる。
Therefore, the waveform data e read from the function ROM 24
is multiplied by the square wave data i by the n multiplier 39. As a result, the multiplier 39 outputs sine wave data according to the frequency specified by the input data.

第2図は上記構成の動作を説明する波形図である。FIG. 2 is a waveform diagram illustrating the operation of the above configuration.

第2図において、波形(a) 、 (0) 、 (h)
 、 m 。
In Figure 2, waveforms (a), (0), (h)
, m.

(e)及びmは、それぞれ第1図で示した各部動作波形
データに一致している。尚、三角波データb、三角波デ
ータC0三角波データdは、それぞれ第4図の波形と同
じになるので省略しである。
(e) and m correspond to the operation waveform data of each part shown in FIG. 1, respectively. Note that triangular wave data b, triangular wave data C0, and triangular wave data d are omitted because they have the same waveforms as in FIG. 4, respectively.

第2図(a) 、 (b) 、 (c)によれば、鋸歯
状波デー90は、鋸歯状波データaを、(1/2)fH
だけ進ませた鋸歯状波になる。同様に、鋸歯状波データ
hは、鋸歯状波データ9を(1/2)fllだけ進ませ
た鋸歯状波となる。そして、加算回路31は、これらa
mm状波データ上qを加算している。これは、アナログ
波形の波形合成と対応して考えることができ、両波形デ
ータを加算すると、第2図mに示すような方形波データ
となる。この方形波データは、出力正弦波の周波数と同
じである。
According to FIGS. 2(a), (b), and (c), the sawtooth wave data 90 converts the sawtooth wave data a into (1/2) fH
It becomes a sawtooth wave that is advanced by Similarly, the sawtooth wave data h is a sawtooth wave obtained by advancing the sawtooth wave data 9 by (1/2) flll. Then, the adder circuit 31
q is added to the mm-shaped wave data. This can be considered to correspond to waveform synthesis of analog waveforms, and when both waveform data are added, square wave data as shown in FIG. 2m is obtained. This square wave data is the same frequency as the output sine wave.

次に、関数ROM24からは、従来と同様に、正弦波形
の半周期分が正側に偏移した波形であり、この波形ブタ
−eと方形波データiとを乗算器39で乗算すると、第
2図(「)に示すような目的とする正弦波を得ることが
できる。つまり、方形波データiの2つのレベルは、デ
ジタル的な固定係数(例えば+1と−1)と考えること
ができ、正側に偏移した各半周期分の正弦波に対して、
極性をqえたことになる。こうして、乗算器39から出
、方正弦波データを出力する。
Next, from the function ROM 24, as in the conventional case, a waveform in which a half cycle of the sine waveform is shifted to the positive side is obtained. The desired sine wave as shown in Figure 2 () can be obtained.In other words, the two levels of the square wave data i can be considered as digital fixed coefficients (for example, +1 and -1), For each half-period sine wave shifted to the positive side,
This means that the polarity has been changed. In this way, the multiplier 39 outputs square sine wave data.

このような構成によれば、波形データa−d及びq、h
を1りる手段並びに、方形波データと関数ROM24の
出力を得る手段は、全て演算手段て・構成され、従来の
回路のように、極性判別のための条件分岐命令を含まな
い。
According to such a configuration, waveform data a-d, q, h
1 and the means for obtaining the square wave data and the output of the function ROM 24 are all composed of arithmetic means and do not include a conditional branch instruction for determining polarity, unlike conventional circuits.

第3図はこの実施例による正弦波発生プログラムを示ず
FIG. 3 does not show the sine wave generation program according to this embodiment.

ステップ811は、加算回路11に入力データを供給り
る処理である。ステップS12は、前記加算回路11.
レジスタ12及びRAM(#1)13の行う積分処理で
あり、これによって、レジスタ12より鋸歯状波データ
aを発生する。次の、ステップ313は上記積分処理の
ために空ステップである。積分処理は、本来2ステツプ
必要であるが、この場合、この2ステツプ目に相当する
ステップ814で(第6図でステップ64参照)鋸歯状
波データqの演算を行っている。
Step 811 is a process of supplying input data to the addition circuit 11. Step S12 includes the addition circuit 11.
This is an integration process performed by the register 12 and the RAM (#1) 13, whereby the register 12 generates sawtooth wave data a. The next step, step 313, is an empty step for the above integration process. Integral processing normally requires two steps, but in this case, sawtooth wave data q is calculated in step 814 (see step 64 in FIG. 6), which corresponds to the second step.

続く、ステップ815で三角波データbを柑成し、更に
、ステップ316で三角波データCを作成する。
Subsequently, in step 815, triangular wave data b is created, and further, in step 316, triangular wave data C is created.

このステップ816も本来2ステップ分く第6図ステッ
プ$67、888)参照)の空ステップを必要とするが
、この実施例では、これらの空ステップに相当するステ
ップ817と318”?−1鋸歯状波りの作成を行うこ
とができる。
This step 816 also requires two empty steps (see steps $67 and 888) in FIG. 6), but in this embodiment, steps 817 and 318"?-1 sawtooth corresponding to these empty steps It is possible to create wave-shaped waves.

更に、ステップS19は、三角波データdを作成してい
る。このステップS19の場合も、本来は、続くステッ
プS20. S21が空ステップとなるが、実施例の場
合、これらのステップ320.321で方形波データi
を作成している。
Furthermore, in step S19, triangular wave data d is created. In the case of this step S19, originally, the following step S20. S21 is an empty step, but in the case of the embodiment, these steps 320 and 321 contain square wave data i.
is being created.

ステップS22と823は、関数ROM24より波形デ
ータeを読出す処理である。そして、次のステップ82
4は、乗算器39の行う処理であり、関数ROM24の
出力データeと方形波データiとを乗算している。
Steps S22 and 823 are processes for reading waveform data e from the function ROM 24. Then, the next step 82
4 is a process performed by the multiplier 39, which multiplies the output data e of the function ROM 24 and the square wave data i.

このように、この発明は、関数ROM24の出力データ
eを極性付けするための判定処理が不要であり、全て加
算と乗算の処理で行うことができる。
In this manner, the present invention does not require determination processing for polarizing the output data e of the function ROM 24, and can be performed entirely by addition and multiplication processing.

そして、特に従来、極性判定を行っていた、ステップS
77に相当する処理を、ステップ824の乗算処理で行
う。このような乗算処理は、極性判定のように、空ステ
ップ数が変わることがなく、例えばステップ825.8
26のように、常に2個の空ステップの後にステップ8
11に戻ることができる。
In particular, step S, in which polarity determination was conventionally performed.
The process corresponding to step 77 is performed in the multiplication process of step 824. Such multiplication processing does not change the number of empty steps like polarity determination, and for example, step 825.8
26, always step 8 after two empty steps.
You can go back to 11.

従ってζステップ812.816.819等の空ステッ
プに、方形波データ作成のためのステップ814゜81
7、818及びS 20.21をおくことができ、空ス
テップの有効利用を図ることができる。このため、70
グラムのステップ数を削減することができ、デジタルシ
グナルプロセッサの演算処理時間を短くすることが可能
となる。
Therefore, in empty steps such as ζ steps 812, 816, 819, steps 814° 81 for creating square wave data.
7, 818, and S 20.21, allowing effective use of empty steps. For this reason, 70
The number of steps in the gram can be reduced, and the calculation processing time of the digital signal processor can be shortened.

このようなデジタルシグナルプロセッサを、例えば電子
音発生装置を備えたビデオテックス受信端末に備えるこ
とで、音声処理の時間が短縮され、他の処理に要する時
間を多くとることができる。
By providing such a digital signal processor in, for example, a Videotex receiving terminal equipped with an electronic sound generating device, the time required for audio processing can be shortened, and more time can be taken for other processing.

[発明の効果] 以上説明したようにこの発明によれば、デジタルグナル
プロセッサにおける波形発生プログラムの空ステップを
有効利用し、演算プログラムを短縮することができると
いう効果がある。
[Effects of the Invention] As explained above, according to the present invention, the empty steps of the waveform generation program in the digital signal processor can be effectively used, and the calculation program can be shortened.

4、図面の1!!ll11な説明 第1図はこの発明に係る正弦波発生回路の一実施例を示
す回路図、第2図は第1図の実施例の動作を説明する動
作波形図、第3図は第1図の実施例を実現するプログラ
ムの一例を示すフローチャート、第4図は従来の正弦波
発生方法を説明する動作波形図、第5図は第4図の方法
で正弦波を発生する従来の正弦波発生回路を示す回路図
、第6図は従来の正弦波発生プログラムを説明するフロ
ーチャートである。
4. Drawing 1! ! ll11 Description FIG. 1 is a circuit diagram showing an embodiment of the sine wave generating circuit according to the present invention, FIG. 2 is an operation waveform diagram explaining the operation of the embodiment shown in FIG. 1, and FIG. 3 is a diagram showing the operation of the embodiment shown in FIG. Flowchart showing an example of a program to realize the embodiment, FIG. 4 is an operation waveform diagram explaining the conventional sine wave generation method, and FIG. A circuit diagram showing the circuit, and FIG. 6 is a flowchart explaining a conventional sine wave generation program.

It、 23.34.37・・・加算回路、12.15
.18.21゜23、36.38・・・レジスタ、13
・・・RAM、 14.19・・・絶対値回路、17.
32.35・・・係数ROM、22・・・アドレスレジ
スタ、24・・・関数ROM、39・・・乗算器、aW
A歯状波データ、d・・・三角波データ(アドレスデー
タ)、e・・・関数ROMデータ、Q、h・・・鋸歯状
波データ、i・・・方形波データ、f・・・出力正弦波
It, 23.34.37...Addition circuit, 12.15
.. 18.21°23, 36.38...Register, 13
...RAM, 14.19...Absolute value circuit, 17.
32.35... Coefficient ROM, 22... Address register, 24... Function ROM, 39... Multiplier, aW
A: Tooth wave data, d: Triangular wave data (address data), e: Function ROM data, Q, h: Sawtooth wave data, i: Square wave data, f: Output sine wave.

第2図Figure 2

Claims (1)

【特許請求の範囲】 出力正弦波データの周波数を決定する入力データを積分
し、所定傾斜角の鋸歯状波データを発生する積分手段と
、 この積分手段からの前記鋸歯状波データより前記出力正
弦波データの2倍の周波数に対応したアドレスデータを
生成するアドレス生成手段と、前記アドレスデータによ
ってアクセス動作し正弦波形の半周期分が一方極性に偏
移した波形を発生する関数ROMと、 前記鋸歯状波データより前記出力正弦波と同一周波数の
方形波データを作成する方形波作成手段と、 この方形波作成手段の出力する方形波データと前記関数
ROMの出力する前記波形データとを乗算して正弦波デ
ータを得る乗算手段とを具備して成る正弦波発生回路。
[Scope of Claims] Integrating means for integrating input data that determines the frequency of output sine wave data to generate sawtooth wave data with a predetermined slope angle; address generation means for generating address data corresponding to twice the frequency of the wave data; a function ROM that performs an access operation based on the address data and generates a waveform in which a half period of a sine waveform is shifted to one polarity; and the sawtooth. square wave creating means for creating square wave data having the same frequency as the output sine wave from the shape wave data; and multiplying the square wave data output from the square wave creating means by the waveform data output from the function ROM. A sine wave generation circuit comprising multiplication means for obtaining sine wave data.
JP24693988A 1988-09-30 1988-09-30 Sine wave generation circuit Pending JPH02216511A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP24693988A JPH02216511A (en) 1988-09-30 1988-09-30 Sine wave generation circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP24693988A JPH02216511A (en) 1988-09-30 1988-09-30 Sine wave generation circuit

Publications (1)

Publication Number Publication Date
JPH02216511A true JPH02216511A (en) 1990-08-29

Family

ID=17155993

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24693988A Pending JPH02216511A (en) 1988-09-30 1988-09-30 Sine wave generation circuit

Country Status (1)

Country Link
JP (1) JPH02216511A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5819332B2 (en) * 1977-04-22 1983-04-18 三菱化学株式会社 Paraffin emulsion and its composition
JPS5949606A (en) * 1982-09-16 1984-03-22 Toshiba Corp Dual sequence controller system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5819332B2 (en) * 1977-04-22 1983-04-18 三菱化学株式会社 Paraffin emulsion and its composition
JPS5949606A (en) * 1982-09-16 1984-03-22 Toshiba Corp Dual sequence controller system

Similar Documents

Publication Publication Date Title
Pirkle Designing audio effect plugins in C++: for AAX, AU, and VST3 with DSP theory
JPS6190514A (en) Music signal processor
JPH02216511A (en) Sine wave generation circuit
JPS6217759B2 (en)
JPH0473351B2 (en)
JP3252954B2 (en) Multiplication method and multiplication circuit
JPS62197868A (en) Linear approximation conversion circuit for pipeline construction
JP3149459B2 (en) Distortion circuit
JP2529229B2 (en) Cosine converter
JPS62245434A (en) Waveform generating device for electronic musical instrument
JPH10135742A (en) Signal waveform generation device
JPH04178005A (en) Pseudo sine wave signal generator
JPS60254372A (en) Arithmetic unit for sum of products
JP2555732B2 (en) Music signal synthesis method
JP2712197B2 (en) Effect adding device
JPH08292764A (en) Signal changeover device
JPS6352488B2 (en)
JP2814939B2 (en) Waveform processing device
KR970009443B1 (en) Integrated circuit in musical instrument
JPH10145185A (en) Digital filter device
JPH09284141A (en) Adpcm decoder
JPS62195698A (en) Musical sound generator having interpolator
JPH05291881A (en) Digital filter device
JPH08234746A (en) Digital filter and electronic musical instrument using same
JPH08292763A (en) Delay device