JPH0289109A - Sine wave generation circuit - Google Patents

Sine wave generation circuit

Info

Publication number
JPH0289109A
JPH0289109A JP22062788A JP22062788A JPH0289109A JP H0289109 A JPH0289109 A JP H0289109A JP 22062788 A JP22062788 A JP 22062788A JP 22062788 A JP22062788 A JP 22062788A JP H0289109 A JPH0289109 A JP H0289109A
Authority
JP
Japan
Prior art keywords
data
circuit
sine wave
rom
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
JP22062788A
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 JP22062788A priority Critical patent/JPH0289109A/en
Publication of JPH0289109A publication Critical patent/JPH0289109A/en
Pending legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)

Abstract

PURPOSE:To improve the precision of a sine waveform irrespective of the size of ROM by storing data in a form that a numeric operation is added to sine wave data in an address component. CONSTITUTION:Data obtained by subtracting the value of a triangle wave for address from sine wave data corresponding to triangle wave data for address is written into ROM 13. (N) bits of triangle wave data from an absolute value circuit 8 are held by a register 14 as they are, and high-order (m) bits which are obtained by removing the highest-order bit and subsequent-order bit from (n) bits are divided, whereby divided (m) bits are inputted to ROM 13 as address data. An addition circuit 15 decimates an output which is obtained by adding triangle wave data of (n) bits to output data of ROM 13. Thus, the sine wave whose relation of a ROM capacity and the precision of the sine wave is improved can be generated.

Description

【発明の詳細な説明】 〔発明の[1的1 (産業上の利用分野) この発明はROMを用い(正弦波を冑る正弦波発生回路
の改良に関する。
DETAILED DESCRIPTION OF THE INVENTION [Part 1 of the Invention (Industrial Application Field) This invention relates to an improvement of a sine wave generation circuit that uses a ROM (to generate a sine wave).

(従来の技術) 読出しW用メ[す、叩らROMに1弦波1−タを占込み
、アドレスとして、鋸歯状波による時間軸データを入力
することで、正弦波形を得る正弦波発生回路がある。
(Prior art) A sine wave generation circuit that obtains a sine waveform by filling a readout W memory with one sine wave 1 data in a ROM and inputting time axis data based on a sawtooth wave as an address. There is.

第7図は上記正弦波弁(ト回路の一例を示′?を構成図
である。同図中、C「は、予め定められた一定のデジタ
ル闇であり、所定のサンプリング周+l] (−加g7
回路1に入力づる。このC「の値の大小によって出)J
正弦波の周波数を決定Jることがでさる。
FIG. 7 is a block diagram showing an example of the above-mentioned sine wave valve circuit. Added g7
Input to circuit 1. Depending on the value of this C)J
It is possible to determine the frequency of the sine wave.

加亦回路1と7キ1−ムレータ形レジスタ2とは鋸歯状
波発生回路3を構成し、入力C「を累積加i) L/ 
’(鋸歯状波データを出力りる。但し、加ζ)回路1の
出力データをnビット(nは整数)のデータと16と、
ぞのh (Q mビット(mは「)に等しいかそれより
小さい整数)が鋸歯状波発生回路3の出力データどなっ
ている。これにより鋸歯状波発生回路3からは、nビッ
トの鋸歯状波データより1Z位n −mビットを切捨て
た鋸歯状波データhζ出カする。
The addition circuit 1 and the 7-key 1-mulator type register 2 constitute a sawtooth wave generation circuit 3, which cumulatively adds the input C(i) L/
'(Outputs sawtooth wave data. However, addition ζ) The output data of circuit 1 is divided into n bits (n is an integer) data and 16,
The output data of the sawtooth wave generation circuit 3 is the output data of the sawtooth wave generation circuit 3. Sawtooth wave data hζ is output by truncating 1Z-order nm bits from the wave data.

−F記[nビットの鋸歯状波データは、アドレスデータ
となっ(’ ROM 4に入力する。ROM4には、ア
ドレスデータに対応して正弦波データが書込ん−Cあり
、−Fi(j mビットの鋸歯状波データの最ト1台ビ
ットが桁Fげによってビット変化するごとに、ROM 
4は、ぞれぞれのアドレスに対応した正弦波データを出
力する。
-F Note [The n-bit sawtooth wave data becomes address data (') and is input to ROM 4. In ROM 4, sine wave data is written in correspondence with the address data -C, and -Fi (j m Every time the highest bit of the bit sawtooth wave data changes due to digit F, the ROM
4 outputs sine wave data corresponding to each address.

第8図は第7図の回路の!11J作を7太[lグ的に示
した波形図であり、(a)は鋸歯状波発生回路3から出
力覆る鋸歯状波i−りのアナログ波形を示し、(b)は
ROM/lから出力4る正弦波データのアナログ波形を
(れぞれれ示−1゜この図c Li、振幅を十パ1°°
〜−” 1 ”に規格化してあり、鋸歯状波デ〜りにお
ける一周期は、リイン波の一周期に対応している。
Figure 8 shows the circuit of Figure 7! 11J is a waveform diagram shown in a 7-thick [lg] format, (a) shows the analog waveform of the sawtooth wave output from the sawtooth wave generation circuit 3, and (b) shows the analog waveform of the sawtooth wave output from the sawtooth wave generation circuit 3. The analog waveform of the output 4 sine wave data (each shown is -1°).
It is normalized to "1", and one cycle of the sawtooth wave corresponds to one cycle of the rein wave.

このような回路で高v1Uの正弦波を19ようとすると
、n=mに設定しnピッ1〜を全てROM/lのアドレ
スゲータとして使用づる。従つ−C1正弦波の精度を上
げようとするとROMの容量が人さくなり、軽め的でな
い。
When attempting to generate a high v1U sine wave using such a circuit, n=m is set and all n pins 1 to 1 are used as address gaters for ROM/l. Therefore, if you try to improve the precision of the -C1 sine wave, the ROM capacity will become smaller, which is not convenient.

第9図は正弦波の対称性を利用してROM Itイズを
1//1に縮小した別の従来回路を示J0加n回路1と
レジスタ2は、第7図と同様に鋸歯状波発生回路3を構
成しでいる。但し、その出ツノのビット数は、加i回路
1の出力ピッ1〜故nと一致・」る。このnピッ1〜の
鋸歯状波データは、絶対値回路5によって絶対値が取ら
れ、絶対ID回路5は鋸歯状波の中心値より負側を1に
折返した三角波データを出)Jする。続く、加C)回路
6は前記絶対値回路5からの三角波f−タに規格値−“
0.5”を加0する。これにより加0回路6は、絶RJ
値回路5の出力する三角波データの直流分をダウンシフ
トし、正負の半周期が決められた三角波データを出力す
る。この三角波データiよ、振幅が+II Q 、 5
 II〜−”0.5°°の範囲で、nビットのデータで
ある。
Figure 9 shows another conventional circuit in which the ROM It size is reduced to 1/1 by utilizing the symmetry of the sine wave. This constitutes circuit 3. However, the number of output bits matches the output pins 1 to n of the adder i circuit 1. The absolute value of this sawtooth wave data of n pi 1~ is taken by the absolute value circuit 5, and the absolute ID circuit 5 outputs triangular wave data in which the negative side of the sawtooth wave is folded to 1 from the center value. Subsequently, the addition C) circuit 6 applies a standard value to the triangular wave f-ta from the absolute value circuit 5.
0.5" is added. This causes the addition circuit 6 to
The DC component of the triangular wave data outputted by the value circuit 5 is downshifted, and triangular wave data whose positive and negative half cycles are determined is output. This triangular wave data i, the amplitude is +II Q, 5
It is n-bit data in the range of II to −”0.5°.

次に、上記[)ピッ1への三角波データは、それぞれレ
ジスタ7と絶対値回路8に入力づる。絶対伯回路8は、
十”0.5°°・〜−−゛0.5°°の;山間の三角波
データを史に絶対値化しC1” o ”〜ト°“0.5
”の範囲の三角波データを出力し、ROM9の7ドレス
データどする。この場合、出力りる三角波データは、最
り位の0))ビットと次−F(◇のR7号ビ’ツl−を
除< 、j: に/ mビットをROM9に/i−レス
J′−−タとして人力゛する。
Next, the triangular wave data to the [) pin 1 is input to the register 7 and the absolute value circuit 8, respectively. The absolute circuit 8 is
10"0.5°・~--゛0.5°; The triangular wave data in the mountains was converted into an absolute value and C1"o"~to°"0.5
” outputs triangular wave data in the range 7 dress data of ROM9. In this case, the output triangular wave data consists of the most significant 0)) bit and the next -F (R7 bit l- of ◇). , j: manually input the m bits into the ROM 9 as a data.

ROM 9にμ:込まれ−(いる正弦波シ゛−タt、1
.0・〜F/2(ラジアン)区問分のサイン波データ−
(・ある。前1.L!絶夕・j値回路8からの三角波)
−夕は、“O″′〜+”0.5”とト”0.5”〜II
 OITのス[]−ブの繰返しが、サイン波のO〜π/
2.π/2へ・πに対応し、これにより、ROM9から
は、正弦波のiFの半周明方に相当りる正弦波アークを
出力りることになる。この正弦波データ(,1、東の回
路10の一方入力となる。
The sine wave switch t, 1 is stored in ROM 9.
.. Sine wave data for 0.~F/2 (radian) division
(・Yes.Previous 1.L! Absolutely triangular wave from j value circuit 8)
-Evening is "O"'~+'0.5' and '0.5'~II
The repetition of OIT's block [] - block produces a sine wave of O~π/
2. This corresponds to π/2/π, and as a result, the ROM 9 outputs a sine wave arc corresponding to the half-circumference of iF of the sine wave. This sine wave data (,1, becomes one input of the east circuit 10.

一方、レジスタ7に一時保持されるデータは、1負の極
性f−タが付加された三角波i−夕ぐあるので、この符
号データを符号判定回路11で判定すること゛C1正弦
波のk +Jを決定JることがCきる。即ら、前記判別
出力で符丹切替スイッヂ12を切u iIl+ an 
L、前記判別出力が正の半周期を承りときは、符号切H
スイッf゛12が×1を示ツデータ゛ビ′を乗n回路1
0の他方入力、とすることによって、乗C)回路10の
出力に正弦波の正の半周明方が得られる。また、判別出
力が負の半周期を小づときは、符号切替スイッチ12が
X(−)1を乃、味>Jるシコータ−II I 11を
乗ζ)回路10の他方入力と1にとによって、乗→回路
10の出力に正弦波の〔Aの半周明方が得られる。
On the other hand, since the data temporarily held in the register 7 is a triangular wave with a negative polarity f of 1 added, this sign data is judged by the sign judgment circuit 11. It is possible to determine J. That is, the switch 12 is turned off by the above-mentioned discrimination output.
L, when the discrimination output accepts a positive half cycle, the code is cut off H
Switch f12 indicates x1. Multiply n circuit 1 by multiplying data
By setting the other input to 0, the positive half-circumference of the sine wave is obtained at the output of the multiplication circuit 10. In addition, when the discrimination output decreases the negative half cycle, the sign changeover switch 12 changes X(-)1 to the other input of the circuit 10 and As a result, the half-circumference of the sine wave [A] is obtained at the output of the circuit 10.

第10図は第9図の回路の動作をアブ〔1グ的に示した
a)作波形図ぐある。al、、L鋸+’Ja状波発生回
路3の出力データによる波形を示し、bは絶対仙回路5
の出力データによる波形を、Cは加0回路6の出力デー
タによる波形を、dは絶対(「1回路8の出力データに
よる波形を、eはROM 9の出力データによる波形を
、fは乗峰回路10の出力データによる波形をそれぞれ
示している。
FIG. 10 is a waveform diagram (a) which schematically shows the operation of the circuit shown in FIG. 9. al, , shows the waveform based on the output data of the L-saw + 'Ja-shaped wave generation circuit 3, and b is the waveform of the absolute wave generator 5.
C is the waveform based on the output data of the addition circuit 6, d is the absolute waveform based on the output data of the circuit 8, e is the waveform based on the output data of the ROM 9, f is the multiplication peak Waveforms based on output data of the circuit 10 are shown respectively.

各波形a−dから判るように、鋸歯状波データaを絶対
値回路5、加締回路6及び絶対値回路8の順に処理りる
ことによって、ROM9のアドレスデータとなる三角波
データdは、銅山状波発生回路3の出力する鋸歯状波デ
ータaの2倍の周波数の三角波となる。このような周波
数の三角波は、イの1個分の三角波区間が、出力正弦波
の半周■1に対応するので、更にその一方のスロープ区
間に対応し−(1/ 4周期の正弦波データをROM9
によ込み、三角波データを連続的に入力することで、性
の半周期のみを並べた正弦波が得られ、更に、極付反転
により、負の半周期を正しい0側に折り返した正弦波を
得ることがCきる。
As can be seen from each waveform a to d, by processing the sawtooth wave data a in the order of the absolute value circuit 5, the tightening circuit 6, and the absolute value circuit 8, the triangular wave data d, which becomes the address data of the ROM 9, is This becomes a triangular wave with twice the frequency of the sawtooth wave data a output from the wave generating circuit 3. For a triangular wave with such a frequency, one triangular wave section of A corresponds to one half cycle of the output sine wave, so it further corresponds to one slope section of the output sine wave. ROM9
By inputting triangular wave data continuously, we can obtain a sine wave with only the negative half periods lined up, and furthermore, by inverting the polarity, we can obtain a sine wave with the negative half period folded back to the correct 0 side. You can get C.

しかし、このような正弦波発生方式におい(も、ROM
9へは、下位ビットの切捨(を行ったアドレスを与えて
いるので、吊子化誤差が発生し、それに伴−)(正しい
正弦波振幅値が得られなくなる。
However, in such a sine wave generation method (also, ROM
9 is given an address in which the lower bits have been truncated, a hanging error occurs, and as a result, a correct sine wave amplitude value cannot be obtained.

第11図は量子化誤差から振幅誤差を換綽づる説明図で
あり、横軸はROM9への7ドレスデータを、ta@は
ROM9の出力データをそれぞれ示す。Xは切捨て前の
あるサンプリング点のアドレス(l′1を示し、X′は
切<r後のアドレス(fi Xに対応Jるアドレス(+
Qを示す。また、YはXに対応Jる正弦波振幅値を示し
、Y’G、LX’ に対応りるIY弦波撮幅値を示す。
FIG. 11 is an explanatory diagram of converting the amplitude error from the quantization error, in which the horizontal axis indicates the 7dress data to the ROM 9, and ta@ indicates the output data of the ROM 9, respectively. X indicates the address of a sampling point before truncation (l'1), X' indicates the address after truncation < r (fi, the address corresponding to J (+
Indicates Q. Further, Y indicates the J sine wave amplitude value corresponding to X, and indicates the IY sine wave imaging width value corresponding to Y'G and LX'.

けr化コllΔχは、 Δx == X −X’  <、 2−Ill・(1)
となる。X伯の量子化誤差は、正弦波としての誤差Δy
へ、次式ぐ変換されることになる。
The keratinization value Δχ is Δx == X −X'<, 2-Ill・(1)
becomes. The quantization error of X is the error Δy as a sine wave
This will be converted to the following equation.

Δ y=sin   (xx)  −5in   (!
 X’   )一匹cos (匹X)・Δχ     
 ・・・(2)(発明が解決しようとする課題) 従来のROMを用いた正弦波発生回路1よ、;IX子化
ステップの大きさと正弦波振幅誤差とが比例的な関係を
持も、ROMリイスに=Q点を置く場合は、正弦波波形
の粘度を1λ11にした設ム↑を余(、憤無くさていた
Δ y=sin (xx) −5in (!
X' ) One cos (Animal X)・Δχ
...(2) (Problem to be solved by the invention) In the conventional sine wave generation circuit 1 using ROM, although there is a proportional relationship between the size of the IX conversion step and the sine wave amplitude error, When placing the =Q point on the ROM lease, I left out the setting ↑ with the viscosity of the sine waveform set to 1λ11.

この発明は上記問題点を除去し、正弦波形の精麿とRO
Mサイズとの比例関係を改善し、従来に比しROMサイ
ズの割りに正弦波形の精痕を改i!τりることがぐきる
正弦波発生回路の提供を目的と!76゜ [発明の構成] (課題を解決するための手段) この発明は、ROMを用いて正弦波を発/[する回路に
J5いて、鋸歯状波データを正弦波の所定周期分に対応
した時四軸データに変換し、この11聞軸データの所定
ピットを切捨てたデータを1’? OMに7ドレスデー
タとして供給し、口のアドレスデータに対応しく、11
込まれるデータが、前記アドレスデータと正弦波データ
とを数学的に演悼した形式ぐあり、読出した出力に前記
鋸歯状波データで前記数学内油0の逆演粋を行って正弦
波を得るようにしたことを特徴とづる。
This invention eliminates the above problems and provides a sinusoidal waveform of
The proportional relationship with the M size has been improved, and the sine waveform has been improved in comparison to the conventional ROM size! The purpose is to provide a sine wave generation circuit that allows you to use τ! 76゜ [Structure of the Invention] (Means for Solving the Problems) This invention uses a ROM to generate a sine wave using J5 in a circuit that generates a sine wave, and generates sawtooth wave data corresponding to a predetermined period of the sine wave. Convert the data into four-axis data, cut off the specified pits of this 11-axis data, and convert the data to 1'? 7 address data to the OM, corresponding to the address data of the mouth, 11
The input data is in the form of a mathematical expression of the address data and sine wave data, and the read output is subjected to the inverse operation of the mathematical 0 with the sawtooth wave data to obtain a sine wave. It is characterized by doing something like this.

(作用) 一般に、ROMを用いた正弦波発生回路において、RO
Mに記憶する正弦波データは、その振幅データ中に、時
間軸データぐあるアドレス成分を含んでいる。この発明
は、アドレス成分で正弦波データ成分に対し数学的ζi
jf ’;’iを加えた形のノフータをROMに記憶し
ている。従って、実!1的にアドレス成分をaまないフ
“−タを記憶し−(いることになるので、その分吊了化
誤λに起因する振幅誤差が少なくイiる。
(Function) Generally, in a sine wave generation circuit using ROM, RO
The sine wave data stored in M includes an address component, which is time axis data, in its amplitude data. This invention provides mathematical ζi for the sinusoidal data component in the address component.
A nohuta in the form of adding jf';'i is stored in the ROM. Therefore, real! Since a filter that does not include the address component is stored, the amplitude error caused by the termination error λ is reduced accordingly.

(実施例) 以下、この発明を図示の実施例によ−) −(、、tl
明する。
(Example) Hereinafter, this invention will be explained by referring to the illustrated example.
I will clarify.

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

第1図において、第9図と同一の要素には同じ符号を付
M0正弦波の周波数を決定りる人力C「は、リーンブリ
ング周期に同期して、加剪I器1及びレジスタ2から成
る鋸南状波発(l−回路3に入力し、所定スロープで値
が増加する鋸歯状波データとなって出力Jる。この鋸歯
状波データμ「)ビット(nは正の整数)で振幅が士”
 1 ” 、て・ある。絶対値回路5は前記鋸歯状波デ
ータの負の半周期をIF側に折返し、振幅がII OI
T〜+°゛1°°の三角波デ−タを発生する。この三角
波データは加紳回路6に人力する。加締回路6は入力し
た三角波データに−゛1”を加峰する。これにより加9
回路6からt、L、振幅が士゛Q 、 511の三角波
う7−タが出力する。加()回路6の出力ビツト数はn
である。
In FIG. 1, the same elements as in FIG. 9 are designated by the same reference numerals.The human power C" which determines the frequency of the M0 sine wave is composed of a shearer I and a resistor 2 in synchronization with the lean-bring period. Sawtooth wave generation (L- Input to circuit 3 and output as sawtooth wave data whose value increases with a predetermined slope.The amplitude of this sawtooth wave data μ') bits (n is a positive integer) “Shi”
1", the absolute value circuit 5 returns the negative half period of the sawtooth wave data to the IF side, and the amplitude is II OI.
Triangular wave data of T~+°゛1°° is generated. This triangular wave data is input manually to the circuit 6. The tightening circuit 6 adds -゛1'' to the input triangular wave data.
From the circuit 6, a triangular waveform generator 7-1 with t, L and amplitude 511 is output. The number of output bits of the addition ( ) circuit 6 is n
It is.

次に、加C;1回路6の出力(よ、絶り・1値回路8と
レジスタ7に入力する。絶対値回路8は加紳回路6から
のデータの負の半周期を正側に折返り。このデータによ
る三角波は、鋸歯状波発生回路3の出力する鋸歯状波に
対し2倍の周波数となり、振幅が1101T〜II Q
 、 511.“0.5°゛〜II O11を繰返す。
Next, the output of the addition circuit 6 (Y) is input to the 1-value circuit 8 and the register 7. The absolute value circuit 8 folds the negative half period of the data from the addition circuit 6 into the positive side. Return: The triangular wave based on this data has twice the frequency of the sawtooth wave output from the sawtooth wave generation circuit 3, and has an amplitude of 1101T to II Q.
, 511. "Repeat 0.5°" to II O11.

結文・1値回路8からの2倍周波の三角波データは、n
ビットがそのままレジスタ14に保持されると共に、そ
のnビット分から最上位ビットと次上位ビットを除く上
(9mビット(mはn−2より小さい正の゛賂敗)が分
回される。前記のごとくF位2ビットを除く理由は、こ
の発明によりROM13に占込む正弦波発生用データと
しで、汀−弦波のス・1称性を利用したO〜π/′2区
間分のみを占込むためである。
Conclusion: The double frequency triangular wave data from the 1-value circuit 8 is n
The bits are held as they are in the register 14, and the most significant bit and the next most significant bit are removed from the n bits (9m bits (m is a positive value smaller than n-2)) are distributed. The reason why the F-order 2 bits are removed is that the present invention uses the ROM 13 as data for generating a sine wave, and only occupies the O~π/'2 interval using the S-1 symmetry of the wave-sine wave. It's for a reason.

分?11jされたmビット4.i ROM 13にアド
レスデータとして入力する。つまり、ROM13に入力
するアドレス用三角波プ“−夕は、nビットから成る振
幅110”〜ll Q 、 5 IIの三角波データを
、上記切捨てビットに応じた時開間隔【゛再度サンプリ
ングした飛び飛びのアドレスデータである。
Minute? 11j m bits 4. Input to iROM 13 as address data. In other words, the address triangular wave data input to the ROM 13 is input to the ROM 13 and consists of n bits with amplitudes of 110 to 110. It is data.

しかして、ROM13は、前記)ノドレス用三角波デー
タに対応した◆ナイン波データから、そのアドレス用三
角波データの値を減りしたデータを−)込んでいる。こ
れによるROM13の出力データは、+111 &’2
回路15の一方人力として出力゛する。一方、レジスタ
14はROM13の出力タイミングに合わせて、nビッ
トの三角波データを加n回路15の他方に供給する。こ
うして加紳回路15は、ROM13の出力データにnビ
ットの三角波データを加麿tした出力を導出りる。この
加0回路15の出力データは、正の半周期を並べた正弦
波データとなる。そして、前記加紳回路15からの正弦
波データは、レジスタ7の出力を符号判定りる符y)判
定回路11によつ(極性が決められ、切昌スイッチ12
より切替選択出力されるデータ“1°゛、−″OIIと
乗口回路10でlト(」号ンされて1工1の極性符号を
持つ正弦波f−タに変換される。
Therefore, the ROM 13 contains data obtained by subtracting the value of the triangular wave data for address from the ◆9 wave data corresponding to the triangular wave data for address (-). The output data of ROM13 due to this is +111 &'2
One side of the circuit 15 is output as human power. On the other hand, the register 14 supplies n-bit triangular wave data to the other side of the addition n circuit 15 in accordance with the output timing of the ROM 13. In this way, the addition circuit 15 adds n-bit triangular wave data to the output data of the ROM 13 and derives an output. The output data of this adder circuit 15 becomes sine wave data in which positive half cycles are arranged. Then, the sine wave data from the control circuit 15 is passed through a determination circuit 11 (the polarity of which is determined by a switch 12) which determines the sign of the output of the register 7
The output data "1°, -" OII is converted into a sine wave f-ta having a polarity sign of 1 and 1 by the output circuit 10.

この発明の一実施例は以上のように構成され、次に作用
を第2因及び第3図を参照しく1悦明りる。
One embodiment of the present invention is constructed as described above, and its operation will now be explained with reference to the second factor and FIG.

鋸歯状波発生回路3.絶対偵回路5.加い回路6及び約
1=+値回路8よでの?)>作は、第9図の回路と同じ
であり、第10図のa・〜dに示1′gt形図にJ、)
で説明される。
Sawtooth wave generation circuit 3. Absolute detective circuit 5. Addition circuit 6 and about 1=+value circuit 8? )> The circuit is the same as the circuit in Figure 9, and is shown in Figure 10 a-d.
explained in.

第2図は絶対(げ1回路8より後段回路の動作を示・J
波形図て・あり、dは絶対(1r1回路8の出力γ−タ
による波形を、e′はROM13の出力データ、eは加
ゆ回路15の出力データ、rμ乗乗口回路10出力デー
タによる波形をそれぞれ小している。
Figure 2 shows the operation of the circuits subsequent to the absolute circuit 8.
There are waveform diagrams, d is absolute (the waveform from the output γ-ta of the 1r1 circuit 8, e' is the output data of the ROM 13, e is the output data of the adder circuit 15, and the waveform from the rμ multiplier circuit 10 output data). are each small.

この実施例によりROM13に占込むデータe′も、正
弦波の1/4区問に対応したデータ分のみからなる。絶
対伯回路8のアドレス用三角波j’ −タ(jは、その
1つのスロープ区間が正弦波の1/4区間にス・1応し
でおり、前記データe′を、d−8弦波の1/4区間に
対応して読出すことになる。
According to this embodiment, the data e' stored in the ROM 13 consists only of data corresponding to 1/4 section of the sine wave. The address triangular wave j'-ta (j has one slope section corresponding to 1/4 section of the sine wave) of the absolute square circuit 8, and the data e' is It will be read out corresponding to the 1/4 section.

第3図は、上記ROM13に書込まれたデータe′ と
、アドレス用三角波データ(j及び正しいりイン波デー
タFとの関係を模式化したβ1明図である。横4d 4
.L /’ドレス用三角波i−タ上のアドレスを表わし
、縦軸は正弦波アークをホしている。
FIG. 3 is a β1 diagram schematically showing the relationship between the data e' written in the ROM 13 and the address triangular wave data (j and correct input wave data F.
.. L/' represents the address on the triangular wave i-ta for dressing, and the vertical axis represents the sine wave arc.

今、絶λ・1値回路8のnビットの1゛−タがXI、蒙
る値を承りときの、アドレス用三角波データのMiをX
’ と?lると、ROM13は、X’ によl’J、デ
ータe′中の対応した01点のデータを出力覆る。ごの
01点のデータは、sin  (X’ ) −X”Q人
わされる。
Now, when the n-bit 1 digit of the absolute λ/1-value circuit 8 receives the value XI, the address triangular wave data Mi is
' and? 1, the ROM 13 outputs the data of the corresponding point 01 in l'J and data e' by X'. The data for the 01 point in each case is given by sin (X') -X''Q.

一方、レジスタ14からは、入力Cfのリンシリング開
隔ぐ現れる貞の7ドレス(10Xが出力−J6゜このX
の値は、nビットの三角波データに換りすると、X′よ
り61分ずれた、(11点のデータCある。加p回路1
5は、これら61点のデータと01点のデータとを加r
;ンするのC1加1.1回路15から出力するデータe
は、sin  (X’  ) −X’ 十Xとなり、f
1魚にて表わされる。
On the other hand, from the register 14, the 7th address (10X is the output -J6゜this X
When converted into n-bit triangular wave data, the value is shifted by 61 minutes from X' (there are 11 points of data C. Addition circuit 1
5 adds the data of these 61 points and the data of 01 points.
Data e outputted from C1 and 1.1 circuit 15
is sin (X') -X' 1X, and f
Represented by 1 fish.

こうして、11点と同様のデータが、mビットのアドレ
ス用三角波データdの故だ番ノ1qられると、eに示す
ような、正の周+111を並べた正弦波を形づくり、切
替スイッチ12による切替によつ(、[に示1正呟波を
作成づることが(゛きる。このような正弦波データは、
量子化誤差を有するアドレスXによって読出されたデー
タe′に正しいアドレスを加算したもので、従来に比し
以下に説明するような正弦波精1猛が得られる。
In this way, when data similar to the 11 points is applied to the last number 1q of the m-bit address triangular wave data d, a sine wave with positive cycles + 111 arranged as shown in e is formed, and the changeover is performed by the changeover switch 12. Accordingly, it is possible to create a sine wave as shown in (, [). Such sine wave data is
By adding the correct address to the data e' read out using the address X having a quantization error, a sine wave with a higher amplitude than before is obtained as described below.

上記実施例により得られる正弦波と、第9図の回路−〇
得られる正弦波の粘亀について検討する。
The sine wave obtained by the above embodiment and the sine wave obtained by the circuit shown in FIG. 9 will be discussed.

先ず、第9図の回路によって得られる正弦波は、負子七
誤差による振幅誤差が(2)式によって示された。これ
より、誤差エネルギーを篩用すると、一方、第1図の回
路より19られる正弦波の誤差エネルV−を求めると、
量子化誤差Δχは、第9図の場合と同様に、(1)式で
表わされる。
First, the amplitude error of the sine wave obtained by the circuit of FIG. 9 due to the negative seven error is expressed by equation (2). From this, if we sieve the error energy, on the other hand, if we find the error energy V- of the sine wave obtained by 19 from the circuit of FIG.
The quantization error Δχ is expressed by equation (1) as in the case of FIG.

11点に対応する振幅データをY rrとづると、Δy
 = y −y ″= 5in(X)−(sin(X’
)−X’)−X= stn(Z’ x)−stn(−p
x’)−(x−x’)・・・(4) 上式よりΔyは、 π Δyメタ cos(−X)・Δ”−Δ1 π ・・・(5) これより誤差エネルギーは、 (6)式と(3)式を比較すると、 101 og(Pe1/Pea) = −7,23[(
jb ]・・・(7) となる。よって、第1図の回路の方が、第9図の回路よ
り正弦波の精度、即らS 、/ Nは良好となる。
If the amplitude data corresponding to 11 points is written as Y rr, then Δy
= y −y ″= 5in(X)−(sin(X'
)-X')-X= stn(Z' x)-stn(-p
x')-(x-x')...(4) From the above equation, Δy is π Δy metacos(-X)・Δ''-Δ1 π...(5) From this, the error energy is (6 ) and (3), 101 og(Pe1/Pea) = −7,23[(
jb]...(7). Therefore, the circuit of FIG. 1 has better sine wave accuracy, ie, S,/N, than the circuit of FIG.

次に、他の実施例を説明する。Next, another embodiment will be described.

第4図はこの発明の他の実施例を示し、第1図と同一の
要素には同じ符号をイ]す。この回路(,1鋸歯状波発
生回路3.絶対値回路5及び加算回路6までの構成は同
じである。また、加吟回路6の出力は、それぞれ絶対値
回路8とレジスタ7に入力し、絶対値回路8はnビット
の三角波データをmビットにしてROM16にアドレス
用三角波データとして供給りる。
FIG. 4 shows another embodiment of the invention, in which the same elements as in FIG. 1 are given the same reference numerals. The configurations of this circuit (1, sawtooth wave generating circuit 3, absolute value circuit 5, and adder circuit 6 are the same).The output of the adjustment circuit 6 is input to the absolute value circuit 8 and the register 7, respectively. The absolute value circuit 8 converts the n-bit triangular wave data into m bits and supplies it to the ROM 16 as address triangular wave data.

この実施例のROM16は、アドレス用三角波データを
サイン波化したデー台を、更にアドレス用三角波データ
で割り鋒したデータを書込lυでいる。
In the ROM 16 of this embodiment, data obtained by converting address triangular wave data into a sine wave is further divided by address triangular wave data.

ROM16の出力f−夕は、レジスタ7からのr1ビッ
トのデータと東口回路17にで掛は綽し、乗詐回路17
より正の半周期が並んだ正弦波を出力りる。
The output of the ROM 16 is connected to the r1 bit data from the register 7 and the east exit circuit 17, and the fraud circuit 17
Outputs a sine wave with more positive half periods lined up.

一方、レジスタ7の出力データは、符号判別回路11′
c判別され、その判別で切替スイッチ12を制御してい
る。前記東口回路11からの正弦波データは、第1図の
回路の場合と同様に、乗算回路10′c切台スイッ71
2からの極性切替データ“I IT   ll 1″と
掛は算され、正弦波データとなる。
On the other hand, the output data of the register 7 is transmitted to the sign discrimination circuit 11'
c is determined, and the changeover switch 12 is controlled based on the determination. The sine wave data from the east exit circuit 11 is sent to the multiplication circuit 10'c switch 71 as in the case of the circuit shown in FIG.
It is multiplied by the polarity switching data "I IT ll 1" from 2 and becomes sine wave data.

第5図は第4図の回路の動作を示し、dは絶対値回路8
からの三角波データ、C″はROM16の出力データに
よる波形を、C【よ東口回路11の出力データ、fは東
口回路10の出力データによる波形を表わしている。
FIG. 5 shows the operation of the circuit in FIG. 4, where d is the absolute value circuit 8.
C″ represents the waveform based on the output data of the ROM 16, C″ represents the output data from the east exit circuit 11, and f represents the waveform based on the output data from the east exit circuit 10.

ROM 16に書込まれた正弦波発生用データは、三角
波データをX′とすると、sin  (X’  )、で
表X′ わされるの゛(、ROM1Bから出力Jろデータに、」
;る波形e ”は、サイン波を三角波データdにおける
スD−ブの特性C減会させた減算振動を入わ・)ことに
なる。正確には、三角波データdの1つのス0−ブ区間
が、サイン波の1/4区聞に対応りるので、サイン波の
1/4周期の減算振動カーブを−1込んでいる。
The data for sine wave generation written in the ROM 16 is expressed as sin (X'), where X' is the triangular wave data.
The waveform e'' is a sine wave with a subtracted vibration that subtracts the characteristic C of the block in the triangular wave data d.To be precise, Since the section corresponds to 1/4 period of the sine wave, -1 is included for the subtraction vibration curve of 1/4 period of the sine wave.

こうしてROM 16から出力16減衰振動カーブtよ
、レジスタ7からの正しいデータXとI)け停される。
Thus, the output 16 damped vibration curve t from the ROM 16 is offset from the correct data X and I) from the register 7.

これは、第1図の加0回路15て・行う数学的演算と同
着の洟粋に相当し、第6図のように模式化することがで
きる。第6図において、横軸はアドレス軸を、縦軸(,
1正弦波振幅帖を人ねi26はROM16のアドレス用
三角波データ、Fは真の正弦波、e″はROM16に出
込むし減衰振動カーブである。X′にに1ζリアドレス
によってROM16より読出されるデータは、e″土点
e2で表わされ、このe2のデータと、レジスタ7から
の正しいアドレスXに対応したd2貞の三角波データが
掛(ノワされて、「2点にで示すようムデータが得られ
る。叩ら、f2点のデータは、 sin  (X’  ) 、 X          
 ・・・(8)X′ で表わされる。
This corresponds to the mathematical operation performed by the adder circuit 15 in FIG. 1, and can be schematically illustrated as shown in FIG. 6. In Figure 6, the horizontal axis represents the address axis, and the vertical axis (,
1 sine wave amplitude data, i26 is triangular wave data for addressing in ROM 16, F is a true sine wave, and e'' is a damped vibration curve that enters and exits ROM 16. The data at e'' is represented by point e2, and the data at e2 is multiplied by the triangular wave data at d2 corresponding to the correct address is obtained.The data at point f2 is sin (X'), X
...(8) Represented by X'.

次に、このような数学的演りによっても正弦波の精麿が
良くなることを説明りる。尚、説明の便宜のため、RO
M16に店込むデータは、s+n  (−X’ )、/
X’ とりる。
Next, I will explain that the precision of the sine wave can be improved by such mathematical manipulation. For convenience of explanation, RO
The data stored in M16 is s+n (-X'), /
Take X'.

「2点の振幅データY IJは、(8)式よりとなる。“Amplitude data Y IJ at two points is obtained from equation (8).

従って、振幅誤差△yは、 (匹×)−及−5in  (匹X′ )Δy=s“02
    X・   2 誤差エネルギーpeは、 pe2−Δχ2 flΔy”dx=0.50△x2−(
11)これを第9図の場合と比較すると、 10−M oo(Pe2 /peO) −−3,9[dBl           ・・・(1
2)となり、正弦波誤差は第9図の場合J、す3.9[
dBlはど少なく仕る。これは、逆に同じ粘度の正弦波
得るのに、略1ビツト近くアドレスのビットを小ざくて
・き、ROM+6の容量を半分にすることができる。
Therefore, the amplitude error △y is (fish x) - and -5in (fish x') Δy = s"02
X・2 Error energy pe is pe2−Δχ2 flΔy”dx=0.50Δx2−(
11) Comparing this with the case in Figure 9, we get 10-M oo(Pe2 /peO) --3,9[dBl...(1
2), and the sine wave error is J in the case of Fig. 9, 3.9 [
How little dBl works. On the contrary, in order to obtain a sine wave of the same viscosity, the address bit is reduced by approximately one bit, and the capacity of ROM+6 can be halved.

尚、第4図の実施例でROMテーブルを3口)(匹X)
/ (=x>としている。これは関数値を士゛″1″よ
り小さくするためであり、また、Xの値即ち、レジスタ
7の値は±II Q 、 511の範囲の三角波である
から、出力正弦波の振幅値は、十″“ユ″−±0.31
8の範囲となる。必要ならぽ、出力に係数πをi) I
Jれば良い。
In addition, in the example shown in Fig. 4, there are 3 ROM tables) (animal X)
/ (=x>. This is to make the function value smaller than ``1'', and since the value of X, that is, the value of register 7, is a triangular wave in the range of ±II Q, 511, The amplitude value of the output sine wave is 10""Y" - ±0.31
The range is 8. If necessary, add a coefficient π to the output i) I
J is fine.

以上のごとくこの発明による正弦波発生回路は、ROM
に、11込むデータとして、正弦波を7ドレスで数学内
油0によ−)で変形した形にして藝込み、ROMから読
出しときに、正しいアドレスて゛萌記数21!・内油ζ
)の逆を行って正弦波成分をQ出りることにより、(1
量子化誤差に起因゛づる誤差1ネル)−の少ない正弦波
を得ることかで・きる。このため、従来と同じ容量のR
OMr、よりu1麿の轟゛為い正弦波を1!′7ること
ができる。逆に、ROMの容♀を落とし′Cb、精麿的
には同程麿の正弦波発生を(iうこともでさる。
As described above, the sine wave generating circuit according to the present invention has a ROM
Then, as the data to be stored in 11, the sine wave is modified by 7 dresses and 0 in mathematics, and when it is read from the ROM, the correct address is 21!・Inner oil ζ
) by performing the inverse of Q and outputting the sine wave component, (1
It is possible to obtain a sine wave with less error (1 channel) caused by quantization error. For this reason, the same capacity R as before
OMr, u1maro's roaring sine wave! '7 can be done. Conversely, it is also possible to reduce the capacity of the ROM and generate a sine wave of the same magnitude (i).

C発明の効果1 以上説明したようにこの発明によれば、ROM容i1と
正弦波粘度との関係を、1ランク改義した正弦波の発生
が可能となる効果がある。
C Effect of the Invention 1 As explained above, according to the present invention, it is possible to generate a sine wave in which the relationship between the ROM capacity i1 and the sine wave viscosity is revised by one rank.

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

第1図はこの発明に係る正弦波発生回路の一実施例を示
1回路図、第2図は第1図の回路の動作を説明する動作
波形図、第3図191この発明による正弦波の口出過程
を示す説明図、第4図はこの発明の伯の実施例を示す回
路図、第5図(ま第4図の回路の動作を説明りる動作波
形図、第6図は第4図の実施例による11−弦波の口出
過程を承り説明図、第7図は従来の正弦波光」−回路を
承け回路図、第8図【よ第7図の!FIJfiを説明づ
るIIIJfi波形図、第9図は別の従来回路を示す回
路図、第10図は第9図の動作庖説明するε〕作波形図
、第11図はfl量子化誤差から振幅誤差を換c1する
説明図である。 1・・・hu 0回路、2・・・レジスタ、3・・・鋸
歯状波発生回路、5・・・絶対値回路、6・・・加→回
路、7・・・レジスタ、8・・・絶対値回路、10・・
・東鋒回路、11・・・K1号判別回路、12・・・1
.71苔スイツヂ、13(16)・・・ROM、14・
・・レジスタ、15・・・加和つ回路、17・・・乗算
回路、d・・・アドレス用三角波データ、(ゾ (0”
)−iT弦波発生用データ。 第7図 第8図 第10図
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 circuit in FIG. 1, and FIG. FIG. 4 is a circuit diagram showing an embodiment of the present invention; FIG. 5 is an operation waveform diagram explaining the operation of the circuit in FIG. 4; FIG. According to the embodiment of the figure, 11 - An explanatory diagram of the output process of a string wave, Fig. 7 is a circuit diagram of a conventional sine wave light circuit, and Fig. 8 is a circuit diagram of a conventional sine wave light circuit. 9 is a circuit diagram showing another conventional circuit, FIG. 10 is an ε waveform diagram explaining the operation of FIG. 9, and FIG. 11 is an explanatory diagram for converting the amplitude error from the fl quantization error c1. 1...hu 0 circuit, 2...register, 3...sawtooth wave generation circuit, 5...absolute value circuit, 6...addition → circuit, 7...register, 8 ...Absolute value circuit, 10...
・Dongfeng circuit, 11...K1 discrimination circuit, 12...1
.. 71 Moss Suitsuji, 13 (16)...ROM, 14.
...Register, 15...Summing circuit, 17...Multiplication circuit, d...Triangular wave data for address, (Z (0")
)-iT string wave generation data. Figure 7 Figure 8 Figure 10

Claims (1)

【特許請求の範囲】 デジタル的に鋸歯状波を作成し、この鋸歯状波データを
正弦波の所定周期分に対応した時間軸データに変換して
出力する時間軸データ発生手段と、 前記時間軸データの所定ビットを切捨てたデータを得る
回路手段と、 この回路手段からのデータをアドレスデータとして入力
し、このアドレスデータに対応した記録データが、正弦
波データと前記アドレスデータとの数学的演算形式のデ
ータである読出し専用メモリと、 この読出し専用メモリの出力に対し、前記時間軸データ
で前記数学的演算の逆演算を行い正弦波を得る出力演算
手段とを具備したことを特徴とする正弦波発生回路。
[Scope of Claims] Time axis data generation means for digitally creating a sawtooth wave, converting the sawtooth wave data into time axis data corresponding to a predetermined period of the sine wave, and outputting the time axis data; circuit means for obtaining data obtained by truncating predetermined bits of the data; and data from the circuit means is input as address data, and recorded data corresponding to the address data is in the form of a mathematical operation of sine wave data and the address data. A sine wave, comprising: a read-only memory that is the data of the read-only memory; and an output calculation means that performs an inverse operation of the mathematical operation using the time-axis data on the output of the read-only memory to obtain a sine wave. generation circuit.
JP22062788A 1988-09-02 1988-09-02 Sine wave generation circuit Pending JPH0289109A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22062788A JPH0289109A (en) 1988-09-02 1988-09-02 Sine wave generation circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22062788A JPH0289109A (en) 1988-09-02 1988-09-02 Sine wave generation circuit

Publications (1)

Publication Number Publication Date
JPH0289109A true JPH0289109A (en) 1990-03-29

Family

ID=16753938

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22062788A Pending JPH0289109A (en) 1988-09-02 1988-09-02 Sine wave generation circuit

Country Status (1)

Country Link
JP (1) JPH0289109A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5698937A (en) * 1980-01-11 1981-08-08 Michio Nakagawa Input and output characteristic conversion system by digital circuit
JPS60144798A (en) * 1984-01-07 1985-07-31 カシオ計算機株式会社 Interpolation system for waveform

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5698937A (en) * 1980-01-11 1981-08-08 Michio Nakagawa Input and output characteristic conversion system by digital circuit
JPS60144798A (en) * 1984-01-07 1985-07-31 カシオ計算機株式会社 Interpolation system for waveform

Similar Documents

Publication Publication Date Title
US5182558A (en) System for generating correction signals for use in forming low distortion analog signals
KR950007344A (en) Baseband Signal Generator with Multivalued Superposition Amplitude Modulation
JPS62274336A (en) Root estimate apparatus
JPH0724365B2 (en) Digital sine wave generator
JPH04229703A (en) Method for generating phase correlation waveform
US4326260A (en) Linear piecewise waveform generator for an electronic musical instrument
JPH0289109A (en) Sine wave generation circuit
KR960018874A (en) Multiplier and digital filter
US5517156A (en) Digital phase shifter
JPS6217759B2 (en)
CN104753530A (en) Phase correction and nonuniform phase amplitude conversion method and device in DDS
JPS6145296A (en) Electronic musical instrument
JPH0894681A (en) Apparatus for analyzing frequency spectrum
JP3292553B2 (en) Digital phase shifter
JPS62245434A (en) Waveform generating device for electronic musical instrument
JPH10320524A (en) Look-up table device and image generator
JPH07231225A (en) Optional waveform generator
JPS59161105A (en) Offset adding circuit
JPS5838998A (en) Waveform signal synthesizer
JP2716140B2 (en) Code converter and encoder device
JPH10135742A (en) Signal waveform generation device
JPH0520766B2 (en)
JPS62292080A (en) Transversal filter
JPH0388505A (en) Optional waveform generator
JPS6255795B2 (en)