JPH07175636A - Digital trigonometric function generating circuit - Google Patents

Digital trigonometric function generating circuit

Info

Publication number
JPH07175636A
JPH07175636A JP31686693A JP31686693A JPH07175636A JP H07175636 A JPH07175636 A JP H07175636A JP 31686693 A JP31686693 A JP 31686693A JP 31686693 A JP31686693 A JP 31686693A JP H07175636 A JPH07175636 A JP H07175636A
Authority
JP
Japan
Prior art keywords
phase angle
sin
signal
cos
function
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
JP31686693A
Other languages
Japanese (ja)
Inventor
Masanari Asano
眞成 浅野
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.)
Fujifilm Holdings Corp
Fujifilm Microdevices Co Ltd
Original Assignee
Fujifilm Microdevices Co Ltd
Fuji Photo Film 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 Fujifilm Microdevices Co Ltd, Fuji Photo Film Co Ltd filed Critical Fujifilm Microdevices Co Ltd
Priority to JP31686693A priority Critical patent/JPH07175636A/en
Publication of JPH07175636A publication Critical patent/JPH07175636A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Of Color Television Signals (AREA)

Abstract

PURPOSE:To reduce the capacity of a memory for storing a trigonometric function by forming a domain phase angle signal and a fragment phase angle signal from an input phase angle and performing trigonometric function generation processing corresponding to the domain phase angle signal. CONSTITUTION:In the case of a sine function over the range of a phase angle thetafrom 0 deg. to 45 deg., the condition of the phase angle theta=fragment phase angle phiis established because of a domain phase angle alpha=0 deg.. Since a function value over the range of the phase angle from 0 deg. to 45 deg. is stored in a ROM 5 as a sin table, the sin theta can be provided as it is by inputting the fragment phase angle phi=0 deg.-45 deg. like sintheta=sinphi. Next, the sin function value can be calculated by using a cos table inside a ROM 6 over the range of theta=45 deg.-90 deg.. Namely, the condition of sintheta=sin(45 deg.+phi)=cos(45 deg.-phi) is established. Concerning the ranges of the phase angle theta=90 deg.-135 deg., theta=135 deg.-180 deg., theta=180 deg.-225 deg. and theta=225 deg.-270 deg., the sin function can be similarly calculated from the tables in the ROM 5 and ROM 6 as well.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、ディジタル信号処理装
置に関し、特に三角関数値をディジタル信号により生成
する三角関数発生装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a digital signal processing device, and more particularly to a trigonometric function generator for generating trigonometric function values from digital signals.

【0002】[0002]

【従来の技術】NTSC方式では、カラーテレビ信号と
して輝度信号と色信号を伝送する。テレビ受像機は、光
の3原色R(赤)、G(緑)、B(青)信号を利用して
色を表現している。テレビ受像機側で原色信号に復調す
るには、輝度信号(Y信号)と加算することにより得ら
れる色差信号が必要となる。色差信号は、(R−Y),
(G−Y),(B−Y)の3つの信号である。輝度信号
電圧EY と色差信号電圧ER-Y ,EG-Y ,EB-Y は、3
原色の電圧信号ER ,EG ,EB を基に次式により表さ
れる。
2. Description of the Related Art In the NTSC system, a luminance signal and a color signal are transmitted as a color television signal. The television receiver expresses colors by using the three primary colors R (red), G (green), and B (blue) signals of light. In order to demodulate into a primary color signal on the television receiver side, a color difference signal obtained by adding the luminance signal (Y signal) is required. The color difference signal is (RY),
The three signals are (G-Y) and (B-Y). The luminance signal voltage E Y and the color difference signal voltages E RY , E GY and E BY are 3
It is expressed by the following equation based on the primary color voltage signals E R , E G , and E B.

【0003】[0003]

【数1】 EY =0.30ER +0.59EG +0.11EB ## EQU1 ## E Y = 0.30E R + 0.59E G + 0.11E B

【0004】[0004]

【数2】 ER-Y = 0.70ER −0.59EG −0.11EB [Equation 2] E RY = 0.70E R −0.59E G −0.11E B

【0005】[0005]

【数3】 EG-Y =−0.30ER +0.41EG −0.11EB [Equation 3] E GY = −0.30E R + 0.41E G −0.11E B

【0006】[0006]

【数4】 EB-Y =−0.30ER −0.59EG +0.89EB これらの色差信号のうち、(R−Y)信号と(B−Y)
信号を基にして(G−Y)信号を作ることができるの
で、伝送する信号は(R−Y)信号、(B−Y)信号、
Y信号の3つでよい。
E BY = −0.30E R −0.59E G + 0.89E B Among these color difference signals, (RY) signal and (BY)
Since a (G-Y) signal can be created based on the signal, the signals to be transmitted are (R-Y) signal, (B-Y) signal,
Three Y signals are enough.

【0007】NTSC方式では、色差信号(R−Y)、
(B−Y)を変形してI信号とQ信号を用いる。人間の
目はオレンジとシアン方向の色彩に対しては色に対する
解像度が優れ、緑とマゼンタ方向に対しては劣ってい
る。そのため、NTSC方式では、オレンジとシアン系
に対しては広い伝送帯域を持たせて細かいディテールを
伝送することにし、緑とマゼンタ系の色に対しては、い
たずらに広い伝送帯域を持たすことは無意味なので、帯
域幅を狭くしている。
In the NTSC system, a color difference signal (RY),
(BY) is modified to use I and Q signals. The human eye has excellent color resolution for colors in the orange and cyan directions and poor resolution for the green and magenta directions. Therefore, in the NTSC system, a wide transmission band is provided for orange and cyan systems to transmit fine details, and a wide transmission band is not unnecessarily provided for green and magenta systems. It's meant, so I'm narrowing the bandwidth.

【0008】I軸(オレンジ、シアン系)とQ軸(緑、
マゼンタ系)は、(R−Y)軸、(B−Y)軸よりそれ
ぞれ位相が33°進んだ軸である。NTSC方式におけ
るカラーテレビ放送波の周波数分布は、映像搬送波から
3.579545MHzだけずれた位置に、色副搬送波
(サブキャリア)fscがおかれている。そして、色副搬
送波fscのsin成分をI信号とし、cos成分をQ信
号として同時に変調している。
I axis (orange, cyan system) and Q axis (green,
The magenta system is an axis in which the phases are advanced by 33 ° from the (RY) axis and the (BY) axis. In the frequency distribution of the color television broadcast wave in the NTSC system, a color subcarrier (subcarrier) f sc is placed at a position shifted by 3.579545 MHz from the video carrier. The sine component of the color subcarrier fsc is used as the I signal and the cos component is used as the Q signal for simultaneous modulation.

【0009】NTSC信号の走査線の1ライン目の信号
1 は次式で表すことができる。
The signal E 1 of the first scanning line of the NTSC signal can be expressed by the following equation.

【0010】[0010]

【数5】 E1 =EY1+EI1sinωc t+EQ1cosωc t 電圧E1 は1ライン目の映像コンポジット信号であり、
電圧EY は輝度信号電圧である。電圧EI はI信号電圧
であり、電圧EQ はQ信号電圧である。角周波数ωc
色信号角周波数であり、 ωc =2πfsc のように色副搬送波fscで表される。
Equation 5] E 1 = E Y1 + E I1 sinω c t + E Q1 cosω c t voltage E 1 is a video composite signal of the first line,
The voltage E Y is a luminance signal voltage. The voltage E I is the I signal voltage and the voltage E Q is the Q signal voltage. The angular frequency ω c is the color signal angular frequency and is represented by the color subcarrier f sc such that ω c = 2πf sc .

【0011】色信号I信号,Q信号の色変復調回路にお
いては、直角な二相の色副搬送波として正弦波および余
弦波を発生する必要がある。正弦波や余弦波は周期関数
であるので、最大1周期分の関数値をROMデータとし
て持てば十分である。
In the color modulation / demodulation circuit for the color signals I and Q signals, it is necessary to generate a sine wave and a cosine wave as the two-phase color subcarriers at right angles. Since the sine wave and the cosine wave are periodic functions, it is sufficient to have a maximum of one cycle of function values as ROM data.

【0012】ディジタル色復調回路において色復調を精
度良く行うため、三角関数値を記憶するROMへの入力
パラメータである位相角を表すビット数を増加する必要
がある。しかし、ROMの入力ビット数が増加するとそ
れに伴い、大容量のROMが必要になるという問題点が
生じる。
In order to accurately perform color demodulation in the digital color demodulation circuit, it is necessary to increase the number of bits representing the phase angle which is the input parameter to the ROM that stores the trigonometric function value. However, as the number of input bits of the ROM increases, a problem that a large capacity ROM is required arises.

【0013】その問題を解決するために、1周期分の三
角関数値をROM内に持たずに0〜90°までのsin
関数値とcos関数値をROMに記憶させておくだけ
で、1周期分の関数値を生成することができるものが提
案されている。
In order to solve the problem, the sin function of 1 cycle is not stored in the ROM and the sin of 0 to 90 ° is maintained.
It has been proposed that a function value for one cycle can be generated only by storing the function value and the cos function value in the ROM.

【0014】[0014]

【発明が解決しようとする課題】ディジタル三角関数発
生回路は、入力の位相角を表すビット数を増加すると、
三角関数値を記憶するためのROM容量が大きくなって
しまう。
In the digital trigonometric function generator circuit, when the number of bits representing the phase angle of the input is increased,
The ROM capacity for storing the trigonometric function value becomes large.

【0015】本発明の目的は、小さな記憶容量で三角関
数値を生成することができるディジタル三角関数発生回
路を提供することである。
An object of the present invention is to provide a digital trigonometric function generating circuit which can generate trigonometric function values with a small storage capacity.

【0016】[0016]

【課題を解決するための手段】本発明のディジタル三角
関数発生回路は、0〜360度の任意の位相角θを表す
入力信号を受ける入力端子と、sinθを表す信号を出
力するsin出力端子と、cosθを表す信号を出力す
るcos出力端子と、位相角θを表す入力信号から45
度を単位とする領域位相角信号αと0〜45度の角度を
表す細分位相角信号φとをθ=α+φとなるように形成
する分割信号形成手段と、細分位相角信号φを入力して
反転位相角信号(45°−φ)を出力する位相反転手段
と、0〜45度に対するsin関数値とcos関数値を
記憶し、または0〜90度に関するsin関数値もしく
はcos関数値を記憶し、同時に2つの出力を発生する
メモリと、領域位相角信号αに基づいて、メモリに細分
位相角信号φまたは反転位相角信号(45°−φ)を入
力するメモリ入力手段と、領域位相角信号αに基づい
て、メモリからの2出力の符号を選択的に反転し、一方
の出力をsin出力端子へ、他方の出力をcos出力端
子へ供給する手段とを有する。
The digital trigonometric function generating circuit of the present invention has an input terminal for receiving an input signal representing an arbitrary phase angle θ of 0 to 360 degrees, and a sin output terminal for outputting a signal representing sin θ. , Cos output terminal that outputs a signal that represents cos θ, and 45 from the input signal that represents the phase angle θ
By inputting the subdivided phase angle signal φ, a division signal forming means for forming a region phase angle signal α in degrees and a subdivided phase angle signal φ representing an angle of 0 to 45 degrees such that θ = α + φ Phase inversion means for outputting an inverted phase angle signal (45 ° -φ), and a sin function value and a cos function value for 0 to 45 degrees are stored, or a sin function value or a cos function value for 0 to 90 degrees are stored. , A memory for generating two outputs at the same time, a memory input means for inputting a subdivided phase angle signal φ or an inverted phase angle signal (45 ° −φ) to the memory based on the area phase angle signal α, and a area phase angle signal means for selectively inverting the sign of the two outputs from the memory based on α and supplying one output to the sin output terminal and the other output to the cos output terminal.

【0017】[0017]

【作用】入力位相角θより領域位相角信号αと細分位相
角信号φを形成し、領域位相角信号αに応じて三角関数
生成処理を行うことにより、三角関数値を記憶するメモ
リ容量を小さくすることができる。
[Function] The area phase angle signal α and the subdivided phase angle signal φ are formed from the input phase angle θ, and the trigonometric function generation processing is performed according to the area phase angle signal α to reduce the memory capacity for storing trigonometric function values. can do.

【0018】[0018]

【実施例】三角関数の入力パラメータを表す位相角θを
x−y平面上で表した場合、4象限のうちのいずれかの
象限に属することになる。三角関数は周期関数であるの
で、4象限のうちのどれか1つの象限の関数値をもって
いれば、他の3つの象限への写像は可能である。例え
ば、第1象限を表す位相角が0〜90°の関数値をRO
Mに記憶させておけば、4象限全てを表す位相角θ=0
〜360°について関数値を生成することができる。
EXAMPLE When the phase angle θ representing the input parameter of the trigonometric function is represented on the xy plane, it belongs to any one of the four quadrants. Since the trigonometric function is a periodic function, if it has a function value in any one of the four quadrants, mapping to the other three quadrants is possible. For example, a function value having a phase angle of 0 to 90 ° representing the first quadrant is RO
If it is stored in M, the phase angle θ = 0 representing all four quadrants
Function values can be generated for ~ 360 °.

【0019】さらに、位相角θが45〜90°のsin
関数値は、位相角が0〜45°のcos関数値のROM
データから生成することができる。これは、次の三角関
数の公式より明らかであろう。
Furthermore, a sin having a phase angle θ of 45 to 90 °
The function value is a ROM of the cos function value with a phase angle of 0 to 45 °
Can be generated from the data. This will be clear from the following trigonometric formula.

【0020】[0020]

【数6】 sinθ=cos(90°−θ) ‥‥‥(6) 同様に、θ=45〜90°のcos関数値もθ=0〜4
5°のsin関数値のROMデータから生成することが
できる。
[Mathematical formula-see original document] sin [theta] = cos (90 [deg.]-[Theta]) (6) Similarly, the cos function values of [theta] = 45 to 90 [deg.] Are also [theta] = 0 to 4
It can be generated from ROM data having a sin function value of 5 °.

【0021】そこで、0〜45°の位相角におけるsi
nテーブルと0〜45°の位相角におけるcosテーブ
ルを用いて、1周期の位相角θ=0〜360°の入力値
からsin関数とcos関数を同時に求める実施例を説
明する。
Therefore, si at a phase angle of 0 to 45 °
An embodiment will be described in which the sin function and the cos function are simultaneously obtained from the input values of the phase angle θ = 0 to 360 ° in one cycle by using the n table and the cos table at the phase angle of 0 to 45 °.

【0022】入力の位相角θは、図3に示すように8ビ
ットのディジタル信号phase[7:0]で表す。θ
=0°をphase[7:0]=「00000000」
で表し、位相角θが大きくなるに従って信号phase
[7:0]も大きくなる。1周期異なる位相角θ=36
0°をθ=0°と同じく信号phase[7:0]=
「00000000」で表す。
The input phase angle θ is represented by an 8-bit digital signal phase [7: 0] as shown in FIG. θ
= 0 ° is phase [7: 0] = "00000000"
, The signal phase increases as the phase angle θ increases.
[7: 0] also becomes large. Phase angle θ = 36 different for one cycle
0 ° is the same as θ = 0 ° and the signal phase [7: 0] =
It is represented by "00000000".

【0023】信号phase[7:5]は、位相角θを
45°単位の範囲で示す領域位相角αを表す。信号ph
ase[7:5]=「000」であれば位相角θ=0〜
45°を表し、信号phase[7:5]=「001」
であれば位相角θ=45〜90°を表し、信号phas
e[7:5]=「010」であれば位相角θ=90〜1
35°を表し、信号phase[7:5]=「011」
であれば位相角θ=135〜180°を表し、信号ph
ase[7:5]=「100」であれば位相角θ=18
0〜225°を表し、信号phase[7:5]=「1
01」であれば位相角θ=225〜270°を表し、信
号phase[7:5]=「110」であれば位相角θ
=270〜315°を表し、信号phase[7:5]
=「111」であれば位相角θ=315〜360°を表
す。
The signal phase [7: 5] represents the area phase angle α indicating the phase angle θ in the unit of 45 °. Signal ph
When ase [7: 5] = “000”, the phase angle θ = 0 to
It represents 45 °, and the signal phase [7: 5] = “001”.
Then represents the phase angle θ = 45 to 90 °, and the signal phas
If e [7: 5] = “010”, phase angle θ = 90 to 1
It represents 35 °, and the signal phase [7: 5] = “011”.
Then, the phase angle θ = 135 to 180 ° is represented, and the signal ph
If ase [7: 5] = “100”, the phase angle θ = 18
The signal phase [7: 5] = “1” represents 0 to 225 °.
If "01", the phase angle θ = 225 to 270 ° is represented, and if the signal phase [7: 5] = "110", the phase angle θ
= 270 to 315 °, and the signal phase [7: 5]
= “111” represents the phase angle θ = 315 to 360 °.

【0024】信号phase[4:0]は、上述の45
°単位の範囲内の細分位相角φ=0〜45°を表し、入
力位相角θ−領域位相角αに相当する。つまり、入力位
相角はθ=α+φで表すことができる。細分位相角φ=
0°をphase[4:0]=「00000」で表し、
細分位相角φが大きくなるに従って信号phase
[4:0]も大きくなる。
The signal phase [4: 0] is the above-mentioned 45.
It represents a subdivided phase angle φ = 0 to 45 ° within a unit of °, and corresponds to an input phase angle θ−a region phase angle α. That is, the input phase angle can be represented by θ = α + φ. Subdivision phase angle φ =
0 ° is represented by phase [4: 0] = “00000”,
The signal phase increases as the subdivision phase angle φ increases.
[4: 0] also becomes large.

【0025】図2は、位相角が0〜45°におけるsi
nテーブルとcosテーブルの関数値から位相角θ=0
〜360°のsinθとcosθの関数値を求める手順
を示すグラフである。位相角φ=0〜45°の範囲内の
sin関数値とcos関数値をROMに記憶させてお
き、この関数値を用いて位相角θ=0〜360°のsi
n、cos関数値を求める。
FIG. 2 shows si at a phase angle of 0 to 45 °.
Phase angle θ = 0 from the function values of the n table and the cos table
It is a graph which shows the procedure which calculates | requires the function value of sin (theta) and cos (theta) of -360 degrees. The sin function value and the cos function value within the range of the phase angle φ = 0 to 45 ° are stored in the ROM, and the si of the phase angle θ = 0 to 360 ° is stored by using this function value.
Find the n, cos function value.

【0026】図2(A)は、位相角θに対するsinθ
を表すグラフである。0〜360°の位相角θをグラフ
中の破線で示すように45°単位に区切って説明を行
う。各45°範囲内では、同一の変換法により関数値を
求めることが可能なためである。
FIG. 2A shows sin θ with respect to the phase angle θ.
It is a graph showing. The phase angle θ of 0 to 360 ° is divided into units of 45 ° as shown by a broken line in the graph for description. This is because the function value can be obtained by the same conversion method within each 45 ° range.

【0027】まず、θ=0〜45°の範囲のsin関数
について述べる。この範囲は、領域位相角α=0°であ
るので位相角θ=φが成り立つ。位相角が0〜45°の
範囲の関数値はROMにsinテーブルとして記憶され
ているので、次式のように細分位相角φ=0〜45°を
入力すればそのままsinθを得ることができる。
First, the sin function in the range of θ = 0 to 45 ° will be described. In this range, since the region phase angle α = 0 °, the phase angle θ = φ holds. Since the function value in the range of the phase angle of 0 to 45 ° is stored in the ROM as a sin table, sin θ can be obtained as it is by inputting the subdivided phase angle φ = 0 to 45 ° as in the following equation.

【0028】[0028]

【数7】 sinθ=sinφ ‥‥‥(7) 次に、θ=45〜90°の範囲では、ROM内のcos
テーブルを用いることによりsin関数値を算出可能で
ある。領域位相角α=45°であり、位相角θに対する
sin関数値sinθは前述の数式6より細分位相角φ
を用いて次式で表せる。
## EQU7 ## sin θ = sin φ (7) Next, in the range of θ = 45 to 90 °, the cos in the ROM is
The sin function value can be calculated by using the table. The region phase angle α = 45 °, and the sin function value sin θ with respect to the phase angle θ is the subdivision phase angle φ
Can be expressed by the following equation.

【0029】[0029]

【数8】 sinθ=sin(45°+φ) =cos(90°−45°−φ) =cos(45°−φ) ‥‥‥(8) ここで、(45°−φ)は0〜45°の範囲でφと逆に
変化する位相角であるので反転位相角と呼ぶ。
## EQU00008 ## sin.theta. = Sin (45.degree. +. Phi.) = Cos (90.degree.-45.degree..phi.) = Cos (45.degree .-. Phi.) (8) where (45.degree .-. Phi.) Is 0-45. It is called a reversal phase angle because it is a phase angle that changes opposite to φ in the range of °.

【0030】θ=90〜135°の範囲では、領域位相
角α=90°である。なお、数式6と数式9の公式より
数式10が成り立つ。
In the range of θ = 90 to 135 °, the area phase angle α = 90 °. Note that the formula 10 is established from the formulas 6 and 9.

【0031】[0031]

【数9】 cosθ=cos(−θ) ‥‥‥(9)## EQU00009 ## cos .theta. = Cos (-.theta.) (9)

【0032】[0032]

【数10】 sinθ=cos(90°−θ) =cos(θ−90°) ‥‥‥(10) θが90〜135°の間では、θ=90°+φであり、
sinθを細分位相角φを用いて次式で表せる。したが
って、ROM内のcosテーブルをそのまま用いること
ができる。
[Mathematical formula-see original document] sin [theta] = cos (90 [deg.]-[Theta]) = cos ([theta] -90 [deg.]) (10) When [theta] is between 90 and 135 [deg.], [Theta] = 90 [deg.] + [Phi],
sin θ can be expressed by the following equation using the subdivided phase angle φ. Therefore, the cos table in the ROM can be used as it is.

【0033】[0033]

【数11】 sinθ=cos(90°+φ−90°) =cosφ ‥‥‥(11) 次に、θ=135〜180°の範囲では、領域位相角α
=135°(θ=135°+φ)であり、数式12より
数式13が成り立ち、細分位相角φの反転位相角45°
−φを用いてROM内のsinテーブルよりsinθを
求めることができる。
Sin θ = cos (90 ° + φ−90 °) = cos φ (11) Next, in the range of θ = 135 to 180 °, the area phase angle α
= 135 ° (θ = 135 ° + φ), Equation 13 is established from Equation 12, and the inversion phase angle of the subdivision phase angle φ is 45 °.
Using −φ, sin θ can be calculated from the sin table in the ROM.

【0034】[0034]

【数12】 sinθ=sin(180°−θ) ‥‥‥(12)(12) sin θ = sin (180 ° −θ) (12)

【0035】[0035]

【数13】 sinθ=sin(180°−135°−φ) =sin(45°−φ) ‥‥‥(13) θ=180〜225°の範囲では、領域位相角α=18
0°であり、数式12よりsinθは次式で表せる。
(13) sin θ = sin (180 ° -135 ° -φ) = sin (45 ° -φ) (13) In the range of θ = 180 to 225 °, the area phase angle α = 18.
It is 0 °, and sin θ can be expressed by the following expression from Expression 12.

【0036】[0036]

【数14】 sinθ=sin(180°−180°−φ) =sin(−φ) さらに、数式15より数式16が成り立ち、sinθは
ROM内のsinテーブルより求めることができる。
[Mathematical formula-see original document] sin [theta] = sin (180 [deg.]-180 [deg.]-[Phi]) = sin (-[phi]) Further, Formula 16 holds from Formula 15, and sin [theta] can be obtained from the sin table in the ROM.

【0037】[0037]

【数15】 sin(−θ)=−sinθ ‥‥‥(15)## EQU15 ## sin (-. Theta.) =-Sin.theta .... (15)

【0038】[0038]

【数16】 sinθ=−sinφ ‥‥‥(16) θ=225〜270°の範囲では、領域位相角α=22
5°であり、次式が成り立ち、sinθを反転位相角4
5°−φを用いてROM内のcosテーブルより求める
ことができる。
## EQU16 ## sin θ = -sin φ (16) In the range of θ = 225 to 270 °, the area phase angle α = 22
5 °, the following formula is established, and sin θ is inverted phase angle 4
It can be obtained from the cos table in the ROM by using 5 ° -φ.

【0039】[0039]

【数17】 sinθ=sin(225°+φ) =sin(360°−135°+φ) =−sin(135°−φ) =−cos(135°−φ−90°) =−cos(45°−φ) ‥‥‥(17) θ=270〜315°の範囲では、領域位相角α=27
0°であり、次式が成り立ち、ROM内のcosテーブ
ルよりsinθを求めることができる。
Sin θ = sin (225 ° + φ) = sin (360 ° -135 ° + φ) = -sin (135 ° -φ) = -cos (135 ° -φ-90 °) = -cos (45 °- φ) (17) In the range of θ = 270 to 315 °, the area phase angle α = 27
It is 0 °, and the following equation is established, and sin θ can be obtained from the cos table in the ROM.

【0040】[0040]

【数18】 sinθ=sin(270°+φ) =sin(360°−90°+φ) =−sin(90°−φ) =−cos(90°−φ−90°) =−cosφ ‥‥‥(18) θ=315〜360°の範囲では、領域位相角α=31
5°であり、次式が成り立ち、反転位相角45°−φを
用いてROM内のsinテーブルよりsinθを求める
ことができる。
(18) sin θ = sin (270 ° + φ) = sin (360 ° -90 ° + φ) = -sin (90 ° -φ) = -cos (90 ° -φ-90 °) = -cosφ 18) In the range of θ = 315 to 360 °, the area phase angle α = 31
It is 5 °, and the following formula is established, and sin θ can be obtained from the sin table in the ROM using the inversion phase angle of 45 ° −φ.

【0041】[0041]

【数19】 sinθ=sin(315°+φ) =sin(360°−45°+φ) =−sin(45°−φ) ‥‥‥(19) 以上のように、θ=0〜360°の範囲内において、4
5°単位で算出方法を変えることにより、0〜360°
の位相角に対するsin関数を求めることができる。こ
の時に必要とするROM内の関数値は、位相角φ=0〜
45°の範囲のsin関数値と位相角φ=0〜45°の
範囲のcos関数値だけでよい。
Sin θ = sin (315 ° + φ) = sin (360 ° −45 ° + φ) = − sin (45 ° −φ) (19) As described above, the range of θ = 0 to 360 ° Within 4
0 to 360 ° by changing the calculation method in 5 ° units
The sin function for the phase angle of can be obtained. The function value in ROM required at this time is the phase angle φ = 0
Only the sin function value in the range of 45 ° and the cos function value in the range of the phase angle φ = 0 to 45 ° are required.

【0042】図2(B)は、位相角θに対するcosθ
を表すグラフである。0〜360°の位相角θをグラフ
中の破線で示すように45°単位に区切って説明を行
う。各45°の範囲内は、同一の変換法により求めるこ
とが可能である。
FIG. 2B shows cos θ with respect to the phase angle θ.
It is a graph showing. The phase angle θ of 0 to 360 ° is divided into units of 45 ° as shown by a broken line in the graph for description. Within each 45 ° range, the same conversion method can be used.

【0043】まず、θ=0〜45°の範囲のcos関数
について述べる。この範囲は、領域位相角α=0°であ
るので位相角θ=φが成り立つ。位相角が0〜45°の
範囲の関数値はROMにcosテーブルとして記憶され
ているので、次式のように細分位相角φ=0〜45°を
入力すればそのままcosθを得ることができる。
First, the cos function in the range of θ = 0 to 45 ° will be described. In this range, since the region phase angle α = 0 °, the phase angle θ = φ holds. Since the function value in the range of the phase angle of 0 to 45 ° is stored in the ROM as a cos table, cos θ can be obtained as it is by inputting the subdivided phase angle φ = 0 to 45 ° as in the following equation.

【0044】[0044]

【数20】 cosθ=cosφ ‥‥‥(20) 次に、θ=45〜90°の範囲では、ROM内のsin
テーブルを用いることによりcosθを算出可能であ
る。領域位相角α=45°であり、数式21より細分位
相角φの反転位相角45°−φを用いて数式22でco
sθが表せる。
## EQU20 ## cos θ = cos φ (20) Next, in the range of θ = 45 to 90 °, the sin in the ROM is
By using the table, cos θ can be calculated. The region phase angle α = 45 °, and the reversal phase angle of 45 ° −φ of the subdivision phase angle φ is used from Formula 21, and
sθ can be represented.

【0045】[0045]

【数21】 cosθ=sin(90°−θ) ‥‥‥(21)(21) cos θ = sin (90 ° −θ) (21)

【0046】[0046]

【数22】 cosθ=sin(90°−45°−φ) =sin(45°−φ) ‥‥‥(22) θ=90〜135°の範囲では、領域位相角α=90°
であり、細分位相角φを用いて次式が成り立つ。
Cos θ = sin (90 ° −45 ° −φ) = sin (45 ° −φ) (22) In the range of θ = 90 to 135 °, the area phase angle α = 90 °
And the following equation holds using the subdivided phase angle φ.

【0047】[0047]

【数23】cosθ=sin(90°−90°−φ) =sin(−φ) さらに、数式15を用いて次式のように表すことがで
き、cosθをROM内のsinテーブルより求めるこ
とができる。
[Mathematical formula-see original document] cos [theta] = sin (90 [deg.]-90 [deg.]-[Phi]) = sin (-[phi]) Further, it can be expressed by the following formula using Formula 15, and cos [theta] can be obtained from the sin table in the ROM. it can.

【0048】[0048]

【数24】 cosθ=−sinφ ‥‥‥(24) 次に、θ=135〜180°の範囲では、領域位相角α
=135°であり、数式25より数式26が成り立ち、
反転位相角45°−φを用いてcosθをROM内のc
osテーブルより求めることができる。
Cos θ = −sin φ (24) Next, in the range of θ = 135 to 180 °, the area phase angle α
= 135 °, Formula 26 is established from Formula 25,
Using the inversion phase angle of 45 ° -φ, set cos θ to c in the ROM.
It can be obtained from the os table.

【0049】[0049]

【数25】 −cosθ=cos(180°−θ) ‥‥‥(25)[Equation 25] −cos θ = cos (180 ° −θ) (25)

【0050】[0050]

【数26】 cosθ=cos(135°+φ) =cos(180°−45°+φ) =−cos(45°−φ) ‥‥‥(26) θ=180〜225°の範囲では、領域位相角α=18
0°であり、数式25より次式で表せる。
Cos θ = cos (135 ° + φ) = cos (180 ° −45 ° + φ) = − cos (45 ° −φ) (26) In the range of θ = 180 to 225 °, the area phase angle α = 18
It is 0 °, and can be expressed by the following equation from Equation 25.

【0051】[0051]

【数27】cosθ=cos(180°+φ) =−cos(−φ) さらに、数式9より次式が成立し、ROM内のcosテ
ーブルよりcosθを求めることができる。
[Mathematical formula-see original document] cos [theta] = cos (180 [deg.] + [Phi]) =-cos (-[phi]) Further, the following formula is established from the formula 9, and cos [theta] can be obtained from the cos table in the ROM.

【0052】[0052]

【数28】 cosθ=−cosφ ‥‥‥(28) θ=225〜270°の範囲では、領域位相角α=22
5°であり、次式が成り立ち、反転位相角45°−φを
用いてROM内のsinテーブルよりcosθを求める
ことができる。
Cos θ = −cos φ (28) In the range of θ = 225 to 270 °, the area phase angle α = 22
It is 5 °, and the following equation holds, and cos θ can be obtained from the sin table in the ROM using the inversion phase angle of 45 ° −φ.

【0053】[0053]

【数29】 cosθ=cos(225°+φ) =cos(360°−135°+φ) =cos(135°−φ) =sin(90°−135°+φ) =−sin(45°−φ) ‥‥‥(29) θ=270〜315°の範囲では、領域位相角α=27
0°であり、次式が成り立ち、ROM内のsinテーブ
ルよりcosθを求めることができる。
Cos θ = cos (225 ° + φ) = cos (360 ° -135 ° + φ) = cos (135 ° -φ) = sin (90 ° -135 ° + φ) = -sin (45 ° -φ) (29) In the range of θ = 270 to 315 °, the area phase angle α = 27
It is 0 °, and the following equation holds, and cos θ can be obtained from the sin table in the ROM.

【0054】[0054]

【数30】 cosθ=cos(270°+φ) =cos(360°−90°+φ) =cos(90°−φ) =sin(90°−90°+φ) =sinφ ‥‥‥(30) θ=315〜360°の範囲では、領域位相角α=31
5°であり、次式が成り立ち、反転位相角45°−φを
用いてROM内のcosテーブルよりcosθを求める
ことができる。
Cos θ = cos (270 ° + φ) = cos (360 ° −90 ° + φ) = cos (90 ° −φ) = sin (90 ° −90 ° + φ) = sin φ ... (30) θ = In the range of 315 to 360 °, the area phase angle α = 31
It is 5 °, and the following formula is established, and cos θ can be obtained from the cos table in the ROM by using the inversion phase angle of 45 ° −φ.

【0055】[0055]

【数31】 cosθ=cos(315°+φ) =cos(360°−45°+φ) =cos(45°−φ) ‥‥‥(31) 以上のように、θ=0〜360°の範囲内において、4
5°を単位に算出方法を変えることにより、0〜360
°の位相角に対するcos関数を求めることができる。
この時に必要とするROM内の関数値は、位相角φ=0
〜45°の範囲のsin関数値と位相角φ=0〜45°
の範囲のcos関数値だけでよい。
Cos θ = cos (315 ° + φ) = cos (360 ° −45 ° + φ) = cos (45 ° −φ) (31) As described above, within the range of θ = 0 to 360 ° In 4
By changing the calculation method in units of 5 °, 0-360
The cos function for the phase angle of ° can be obtained.
The function value in ROM required at this time is the phase angle φ = 0.
Sin function value in the range of up to 45 ° and phase angle φ = 0 to 45 °
Only cos function values in the range

【0056】図3は、位相角が0〜45°の範囲内にお
けるsinテーブルとcosテーブルの関数値から位相
角θ=0〜360°のsinθとcosθの関数値を求
める変換法を示す表である。
FIG. 3 is a table showing a conversion method for obtaining the function values of sin θ and cos θ of the phase angle θ = 0 to 360 ° from the function values of the sin table and the cos table within the range of the phase angle of 0 to 45 °. is there.

【0057】入力の位相角θは、8ビットのディジタル
信号phase[7:0]で表される。ROM内に記憶
された0〜45°におけるsinテーブルとcosテー
ブルから、入力位相角θにおけるsin関数とcos関
数への変換を行う。
The input phase angle θ is represented by an 8-bit digital signal phase [7: 0]. Conversion is performed from the sin table and the cos table at 0 to 45 ° stored in the ROM to the sin function and the cos function at the input phase angle θ.

【0058】変換を行う上で必要な処理は、表中の項目
として位相反転、sin/cos交換、符号反転があ
る。第1の処理である位相反転とは、45°以内の角度
の変化の方向を反転させる(反転位相角を求める)こと
を意味する。例えば位相角θ=135〜180°の範囲
内における変換の際に必要な処理である。位相角θ=1
35〜180°の範囲内でのsin関数は、数式13に
示すようにsinθ=sin(45°−φ)で表され
る。そこで、反転位相角φ’=45°−φを用い、si
nφ’によりsin関数が求められる。この時、 φ’=(45°−φ) を求める処理が位相反転である。φのディジタル信号を
位相反転することによりφ’に変換することができる。
The processing required for conversion includes phase inversion, sin / cos exchange, and sign inversion as items in the table. Phase inversion, which is the first process, means reversing the direction of change in angle within 45 ° (determining the inversion phase angle). For example, this is a process necessary for conversion within the range of the phase angle θ = 135 to 180 °. Phase angle θ = 1
The sin function in the range of 35 to 180 ° is represented by sin θ = sin (45 ° −φ) as shown in Expression 13. Therefore, using the inversion phase angle φ ′ = 45 ° −φ, si
The sin function is obtained from nφ ′. At this time, the process of obtaining φ ′ = (45 ° −φ) is phase inversion. It can be converted to φ ′ by inverting the phase of the φ digital signal.

【0059】例えば、φ=0°から位相反転によりφ’
=45°を求める場合を説明する。φ=0°をディジタ
ル信号により表すと、 phase[7:0]=「00000000」 となる。この信号のうち下位5ビットの信号phase
[4:0]をビット反転する。すると、信号phase
[7:0]は、 phase[7:0]=「00011111」 となる。そして、このビット反転した信号に“1”を加
算する。以上のように、信号phase[7:0]のう
ち下位5ビットの反転を行い、“1”を加算すると、 phase[7:0]=「00100000」 となる。この位相反転処理後の信号は、φ’=45°を
表す。
For example, from φ = 0 °, φ ′ is obtained by phase inversion.
A case of obtaining = 45 ° will be described. When φ = 0 ° is represented by a digital signal, phase [7: 0] = “00000000”. The signal phase of the lower 5 bits of this signal
Bit invert [4: 0]. Then the signal phase
[7: 0] becomes phase [7: 0] = “00011111”. Then, "1" is added to this bit-inverted signal. As described above, when the lower 5 bits of the signal phase [7: 0] are inverted and “1” is added, phase [7: 0] = “00100000”. The signal after this phase inversion processing represents φ ′ = 45 °.

【0060】このように、φ’=(45°−φ)を求め
る必要があるときには、位相反転処理を行う。位相反転
処理が必要な位相角θの範囲では、sin関数を求める
際にも位相反転処理を行い、cos関数を求める際にも
位相反転処理を行う必要がある。逆に、位相反転処理が
必要ない位相角θの範囲では、sin関数を求める際に
位相反転処理を行わず、cos関数を求める際にも位相
反転処理を行う必要がない。
Thus, when it is necessary to obtain φ '= (45 ° -φ), the phase inversion process is performed. In the range of the phase angle θ where the phase inversion process is required, it is necessary to perform the phase inversion process when obtaining the sin function and also perform the phase inversion process when obtaining the cos function. On the contrary, in the range of the phase angle θ that does not require the phase inversion process, the phase inversion process is not performed when the sin function is obtained, and the phase inversion process does not need to be performed when the cos function is obtained.

【0061】次に、第2の処理であるsin/cos交
換とは、sinテーブルとcosテーブルの交換を意味
する。例えば位相角θ=45〜90°の範囲内における
変換の際に必要な処理である。位相角θ=45〜90°
の範囲内において、sin関数は数式8に示すようにR
OM内のcos関数値を用いて求め、cos関数は数式
22に示すようにROM内のsin関数値を用いて求め
る。
Next, the second process, sin / cos exchange, means the exchange of the sin table and the cos table. For example, this is a process necessary for conversion within the range of the phase angle θ = 45 to 90 °. Phase angle θ = 45 to 90 °
In the range of, the sin function is R
The cos function value in the OM is obtained, and the cos function is obtained using the sin function value in the ROM as shown in Expression 22.

【0062】任意の位相角θにおけるsin関数とco
s関数を求めるには、どちらか一方の関数はROM内の
sin関数値を用いて、他方の関数はROM内のcos
関数値を用いる。つまり、sin関数はROM内のsi
nテーブルより求められcos関数はROM内のcos
テーブルより求められるか、またはsin関数はROM
内のcosテーブルより求められcos関数はROM内
のsinテーブルにより求められるかのどちらかであ
る。
Sin function and co at arbitrary phase angle θ
To obtain the s-function, one of the functions uses the sin function value in ROM, and the other function uses cos in ROM.
Use the function value. In other words, the sin function is si in ROM
The cos function calculated from the n table is cos in the ROM
Calculated from the table, or sin function is in ROM
Either the cos function obtained from the cos table in is obtained from the sin table in the ROM.

【0063】そこで、sin関数を求めるのにROM内
のsinテーブルを用い、cos関数を求めるのにRO
M内のcosテーブルを用いるときには、sin/co
s交換の処理は行わなくてもよい。一方、sin関数を
求めるのにROM内のcosテーブルを用い、cos関
数を求めるのにROM内のsinテーブルを用いるとき
には、sin/cos交換の処理を行う必要がある。
Therefore, the sin table in the ROM is used to obtain the sin function, and RO is used to obtain the cos function.
When using the cos table in M, sin / co
The s exchange process may not be performed. On the other hand, when the cos table in the ROM is used to obtain the sin function and the sin table in the ROM is used to obtain the cos function, it is necessary to perform a sin / cos exchange process.

【0064】このように、sin関数およびcos関数
を求めるのに、ROM内のsinテーブルとcosテー
ブルのどちらを用いるかにより、sin/cos交換の
処理を行うか否かの決定が行われる。
As described above, whether to perform the sin / cos exchange processing is determined depending on which of the sin table and the cos table in the ROM is used to obtain the sin function and the cos function.

【0065】次に、第3の処理である符号反転とは、例
えば位相角θ=180〜225°の範囲内における変換
の際に必要な処理である。位相角θ=180〜225°
の範囲内において、sin関数は数式16に示すように
sinθ=−sinφで求めることができる。このよう
に、ROMテーブルの値と求めるべき値の正負符号が逆
であるときに符号反転の処理を行う必要がある。
The sign reversal, which is the third process, is a process required for conversion within the range of the phase angle θ = 180 to 225 °, for example. Phase angle θ = 180 to 225 °
Within the range, the sin function can be calculated by sin θ = −sin φ as shown in Expression 16. In this way, it is necessary to perform the sign inversion process when the sign of the value in the ROM table and the sign to be obtained are opposite.

【0066】次に、位相角θ=0〜45°の範囲から順
番にsin関数とcos関数の変換に必要な処理を説明
する。位相角θ=0〜45°におけるsin関数は数式
7に示すようにsinθ=sinφで表され、cos関
数は数式20に示すようにcosθ=cosφで表され
る。この位相角においては、位相反転の処理は必要な
く、sin/cos交換の処理も必要がない。
Next, the processing required for the conversion of the sin function and the cos function will be described in order from the range of the phase angle θ = 0 to 45 °. The sin function at the phase angle θ = 0 to 45 ° is represented by sin θ = sin φ as shown in Expression 7, and the cos function is represented by cos θ = cos φ as shown in Expression 20. At this phase angle, there is no need for phase inversion processing and no sin / cos exchange processing.

【0067】位相角θ=45〜90°の範囲において
は、sin関数は数式8に示すようにsinθ=cos
(45°−φ)で表され、cos関数は数式22に示す
ようにcosθ=sin(45°−φ)で表される。こ
の位相角においては、位相反転の処理とsin/cos
交換の処理が必要である。
In the range of the phase angle θ = 45 to 90 °, the sin function is sin θ = cos as shown in Expression 8.
(45 ° −φ), and the cos function is represented by cos θ = sin (45 ° −φ) as shown in Expression 22. At this phase angle, the phase inversion process and sin / cos
Exchange processing is required.

【0068】位相角θ=90〜135°の範囲において
は、sin関数は数式11に示すようにsinθ=co
sφで表され、cos関数は数式24に示すようにco
sθ=−sinφで表される。この位相角においては、
位相反転の処理は必要なく、sin/cos交換の処理
とcosに対する符号反転処理が必要である。
In the range of the phase angle θ = 90 to 135 °, the sin function is sin θ = co as shown in Expression 11.
It is represented by sφ, and the cos function is co
It is represented by sθ = −sinφ. At this phase angle,
The phase inversion process is not required, and the sin / cos exchange process and the sign inversion process for cos are required.

【0069】位相角θ=135〜180°の範囲におい
ては、sin関数は数式13に示すようにsinθ=s
in(45°−φ)で表され、cos関数は数式26に
示すようにcosθ=−cos(45°−φ)で表され
る。この位相角においては、位相反転の処理とcosに
対する符号反転処理が必要であり、sin/cos交換
の処理は必要ない。
In the range of the phase angle θ = 135 to 180 °, the sin function is sin θ = s as shown in Expression 13.
It is represented by in (45 ° −φ), and the cos function is represented by cos θ = −cos (45 ° −φ) as shown in Expression 26. At this phase angle, the phase inversion process and the sign inversion process for cos are required, and the sin / cos exchange process is not required.

【0070】位相角θ=180〜225°の範囲におい
ては、sin関数は数式16に示すようにsinθ=−
sinφで表され、cos関数は数式28に示すように
cosθ=−cosφで表される。この位相角において
は、位相反転の処理は必要なく、sin/cos交換の
処理も必要ない。sin、cos共に符号反転処理を行
う。
In the range of the phase angle θ = 180 to 225 °, the sin function is sin θ = − as shown in Expression 16.
It is expressed by sin φ, and the cos function is expressed by cos θ = −cos φ as shown in Expression 28. At this phase angle, neither the phase inversion process nor the sin / cos exchange process is necessary. Sign inversion processing is performed for both sin and cos.

【0071】位相角θ=225〜270°の範囲におい
ては、sin関数は数式17に示すようにsinθ=−
cos(45°−φ)で表され、cos関数は数式29
に示すようにcosθ=−sin(45°−φ)で表さ
れる。この位相角においては、位相反転の処理は必要で
あり、sin/cos交換の処理および符号反転の処理
が必要である。
In the range of the phase angle θ = 225 to 270 °, the sin function is sin θ = − as shown in Expression 17.
It is represented by cos (45 ° −φ), and the cos function is represented by Formula 29.
As shown in, cos θ = −sin (45 ° −φ). At this phase angle, processing for phase inversion is necessary, processing for sin / cos exchange and processing for sign inversion are required.

【0072】位相角θ=270〜315°の範囲におい
ては、sin関数は数式18に示すようにsinθ=−
cosφで表され、cos関数は数式30に示すように
cosθ=sinφで表される。この位相角において
は、位相反転の処理は必要なく、sin/cos交換の
処理とsinに対する符号反転の処理が必要である。
In the range of the phase angle θ = 270 to 315 °, the sin function is sin θ = − as shown in Expression 18.
It is represented by cos φ, and the cos function is represented by cos θ = sin φ as shown in Expression 30. At this phase angle, the process of phase inversion is not required, but the process of sin / cos exchange and the process of sign inversion for sin are required.

【0073】位相角θ=315〜360°の範囲におい
ては、sin関数は数式19に示すようにsinθ=−
sin(45°−φ)で表され、cos関数は数式31
に示すようにcosθ=cos(45°−φ)で表され
る。この位相角においては、位相反転の処理とsinに
対する符号反転の処理が必要であり、sin/cos交
換の処理は必要ない。
In the range of the phase angle θ = 315 to 360 °, the sin function is sin θ = − as shown in Expression 19.
It is represented by sin (45 ° −φ), and the cos function is represented by Formula 31.
As shown in, cos θ = cos (45 ° −φ). At this phase angle, processing for phase inversion and processing for sign inversion for sin are required, and processing for sin / cos exchange is not required.

【0074】符号反転の処理は、図2のグラフから明ら
かなように、sin関数を求める場合には、位相角θ=
0〜180°においては符号反転の処理は必要なく、位
相角θ=180〜360°においては符号反転の処理が
必要である。
As is clear from the graph of FIG. 2, the sign inversion process has a phase angle θ =
The sign reversal process is not required at 0 to 180 °, and the sign reversal process is required at the phase angle θ = 180 to 360 °.

【0075】一方、cos関数を求める場合には、位相
角θ=0〜90°とθ=270〜360°においては符
号反転の処理は必要なく、位相角θ=90〜270°に
おいては符号反転の処理が必要である。
On the other hand, when the cos function is obtained, the sign inversion processing is not required at the phase angles θ = 0 to 90 ° and θ = 270 to 360 °, and the sign inversion is performed at the phase angle θ = 90 to 270 °. Processing is required.

【0076】位相反転は45°単位毎に変化し、sin
/cos交換は90°単位で変化し、符号反転は180
°単位で変化する。これらの変化は、上位3ビットph
ase[7:5]を用いて判別することができる。
The phase inversion changes every 45 °, and sin
/ Cos exchange changes in 90 ° increments and sign inversion is 180
It changes in units of °. These changes are the upper 3 bits ph
It can be discriminated using ase [7: 5].

【0077】以上示した変換表に基づいて変換を行え
ば、ROM内のsinテーブルとcosテーブルを用い
てsin関数とcos関数を求めることができる。次
に、この変換を実現するための三角関数発生回路の回路
構成例を示す。
By performing conversion based on the conversion table shown above, the sin function and cos function can be obtained using the sin table and cos table in the ROM. Next, a circuit configuration example of a trigonometric function generating circuit for realizing this conversion will be shown.

【0078】図1は、本発明の実施例による三角関数発
生回路のブロック図である。三角関数発生回路は、位相
角θ=0〜360°を入力として、sinθとcosθ
の関数値を出力とする。
FIG. 1 is a block diagram of a trigonometric function generating circuit according to an embodiment of the present invention. The trigonometric function generation circuit inputs sin θ and cos θ with the phase angle θ = 0 to 360 ° as input.
The function value of is output.

【0079】入力の位相角θ=0〜360°を8ビット
の位相角ディジタル信号phase[7:0]で表し、
出力のsinθとcosθも同じく8ビットのディジタ
ル信号として表す。
The input phase angle θ = 0 to 360 ° is represented by an 8-bit phase angle digital signal phase [7: 0],
The outputs sin θ and cos θ are also represented as 8-bit digital signals.

【0080】入力の位相角信号phase[7:0]が
ビット分割回路11に入力され、上位3ビットの信号p
hase[7:5]はコントロールモジュール1に入力
される。
The input phase angle signal phase [7: 0] is input to the bit division circuit 11, and the upper 3 bits of the signal p
The case [7: 5] is input to the control module 1.

【0081】コントロールモジュール1は、入力された
信号phase[7:5]に基づいて、位相反転の処理
を行う位相反転回路4と、sin/cos交換の処理を
行うマルチプレクサ7,8と、符号反転の処理を行う符
号反転回路9,10に制御信号を供給する。
The control module 1 includes a phase inversion circuit 4 for performing a phase inversion process, multiplexers 7 and 8 for performing a sin / cos exchange process, and a code inversion process based on the input signal phase [7: 5]. A control signal is supplied to the sign inversion circuits 9 and 10 which perform the process of.

【0082】信号phase[7:5]は、位相角の4
5°単位の領域位相角αを表すので、図3の表よりsi
nφとcosφからsin関数およびcos関数への変
換に必要な処理を決定可能である。
The signal phase [7: 5] has a phase angle of 4
Since the area phase angle α in units of 5 ° is expressed, si is calculated from the table of FIG.
It is possible to determine the processing required for conversion from nφ and cosφ to sin function and cos function.

【0083】図3の表で示した3つの処理、位相反転、
sin/cos交換、符号反転を制御する信号の生成方
法を次に説明する。まず、位相反転の処理を制御する信
号p1は、コントロールモジュール1内で、入力位相角
信号phase[7:0]のうちの第5ビットを表すビ
ット信号phase5の線と接続されている。つまり、
入力された信号phase5は、そのまま制御信号p1
として位相反転回路4に供給される。
The three processes shown in the table of FIG. 3, phase inversion,
A method of generating signals for controlling sin / cos exchange and sign inversion will be described next. First, the signal p1 for controlling the phase inversion process is connected to the line of the bit signal phase5 representing the fifth bit of the input phase angle signal phase [7: 0] in the control module 1. That is,
The input signal phase5 is the control signal p1 as it is.
Is supplied to the phase inversion circuit 4.

【0084】位相反転回路4は、制御信号p1が“1”
であれば位相反転処理を行い、制御信号p1が“0”で
あれば位相反転処理を行わない。つまり、信号phas
e5が“1”であれば位相反転処理を行い、信号pha
se5が“0”であれば位相反転処理を行わない。
In the phase inversion circuit 4, the control signal p1 is "1".
If so, the phase inversion processing is performed, and if the control signal p1 is "0", the phase inversion processing is not performed. That is, the signal phas
If e5 is "1", the phase inversion process is performed and the signal pha
If se5 is “0”, the phase inversion process is not performed.

【0085】位相反転処理とは、入力の信号phase
[4:0]に対してビット反転処理を行い、反転処理さ
れた信号に“1”を加算し、出力する処理である。次
に、sin/cos交換の処理を制御する信号m1,m
2は、信号phase5と信号phase6を基に生成
される。
The phase inversion processing is an input signal phase.
In this processing, bit inversion processing is performed on [4: 0], "1" is added to the inverted signal, and the signal is output. Next, signals m1 and m for controlling the process of sin / cos exchange
2 is generated based on the signal phase5 and the signal phase6.

【0086】信号phase5と信号phase6は、
コントロールモジュール1内のEXOR回路3に入力さ
れる。EXOR回路3は、2つの入力信号に対して排他
的論理和の演算を行い、演算結果を出力する。
The signal phase5 and the signal phase6 are
It is input to the EXOR circuit 3 in the control module 1. The EXOR circuit 3 performs an exclusive OR operation on the two input signals and outputs the operation result.

【0087】EXOR回路3から出力される信号が、制
御信号m1および制御信号m2の線に接続される。制御
信号m1と制御信号m2は同じ信号であり、EXOR回
路3の出力信号である。
The signal output from EXOR circuit 3 is connected to the lines for control signal m1 and control signal m2. The control signal m1 and the control signal m2 are the same signal and are output signals of the EXOR circuit 3.

【0088】制御信号m1はマルチプレクサ7を制御
し、制御信号m2はマルチプレクサ8を制御する。マル
チプレクサ7,8には、sinφのROM5とcosφ
のROM6とのそれぞれの出力信号が供給されている。
ROM5は、位相角φ=0〜45°におけるsinφの
関数値を記憶しており、入力される位相角に対するsi
n関数値を出力する。ただし、入力される位相角は0〜
45°の範囲である。ROM6は、位相角φ=0〜45
°におけるcosφの関数値を記憶しており、入力され
る位相角に対するcos関数値を出力する。ただし、入
力される位相角は0〜45°の範囲である。
The control signal m1 controls the multiplexer 7, and the control signal m2 controls the multiplexer 8. The multiplexers 7 and 8 have a sinφ ROM 5 and a cosφ, respectively.
The respective output signals from the ROM 6 are supplied.
The ROM 5 stores the function value of sin φ at the phase angle φ = 0 to 45 °, and si for the input phase angle.
Output the n-function value. However, the input phase angle is 0
It is in the range of 45 °. ROM 6 has a phase angle φ = 0 to 45
The function value of cos φ at ° is stored, and the cos function value for the input phase angle is output. However, the input phase angle is in the range of 0 to 45 °.

【0089】マルチプレクサ7は、制御信号m1が
“1”のときはROM5から供給されるsin関数値を
出力し、制御信号m1が“0”のときはROM6から供
給されるcos関数値を出力する。
The multiplexer 7 outputs the sin function value supplied from the ROM 5 when the control signal m1 is "1", and outputs the cos function value supplied from the ROM 6 when the control signal m1 is "0". .

【0090】マルチプレクサ8は、制御信号m2が
“1”のときはROM6から供給されるcos関数値を
出力し、制御信号m2が“0”のときはROM5から供
給されるsin関数値を出力する。
The multiplexer 8 outputs the cos function value supplied from the ROM 6 when the control signal m2 is "1", and outputs the sin function value supplied from the ROM 5 when the control signal m2 is "0". .

【0091】つまり、EXOR回路3の出力が“1”で
あれば、マルチプレクサ7はROM5からのsin関数
値を出力し、マルチプレクサ8はROM6からのcos
関数値を出力する。逆に、EXOR回路3の出力が
“0”であれば、マルチプレクサ7はROM6からのc
os関数値を出力し、マルチプレクサ8はROM5から
のsin関数値を出力する。
That is, when the output of the EXOR circuit 3 is "1", the multiplexer 7 outputs the sin function value from the ROM 5, and the multiplexer 8 outputs the cos from the ROM 6.
Output the function value. On the contrary, if the output of the EXOR circuit 3 is "0", the multiplexer 7 outputs c from the ROM 6
The os function value is output, and the multiplexer 8 outputs the sin function value from the ROM 5.

【0092】次に、符号反転の処理を制御する信号は制
御信号s1,s2である。sin関数出力のための符号
反転の制御信号が信号s1であり、cos関数出力のた
めの符号反転の制御信号が信号s2である。
Next, the signals for controlling the sign inversion processing are the control signals s1 and s2. The sign-inverted control signal for the sin function output is the signal s1, and the sign-inverted control signal for the cos function output is the signal s2.

【0093】制御信号s1は、コントロールモジュール
1内で、入力位相を表すビット信号phase7の線に
接続されている。制御信号s2は、信号phase6と
信号phase7を基に生成される。
The control signal s1 is connected to the line of the bit signal phase7 representing the input phase in the control module 1. The control signal s2 is generated based on the signal phase6 and the signal phase7.

【0094】信号phase6と信号phase7は、
コントロールモジュール1内のEXOR回路2に入力さ
れる。EXOR回路2は、EXOR回路3と同様に2つ
の入力信号に対して排他的論理和の演算を行い、演算結
果を出力する。EXOR回路2から出力される信号が、
制御信号s2の線に接続される。
The signal phase 6 and the signal phase 7 are
It is input to the EXOR circuit 2 in the control module 1. Like the EXOR circuit 3, the EXOR circuit 2 performs an exclusive OR operation on two input signals and outputs the operation result. The signal output from the EXOR circuit 2 is
It is connected to the line of the control signal s2.

【0095】制御信号s1は符号反転回路9を制御し、
制御信号s2は符号反転回路10を制御する。符号反転
回路9,10は、制御信号s1,s2に応じて入力され
る信号値に対して正負符号を反転した値を出力する。
The control signal s1 controls the sign inversion circuit 9,
The control signal s2 controls the sign inversion circuit 10. The sign inversion circuits 9 and 10 output a value obtained by inverting the sign of the signal value input according to the control signals s1 and s2.

【0096】符号反転回路9は、制御信号s1が“1”
であれば入力値に対して正負符号を反転した値を出力
し、制御信号s1が“0”であれば入力値をそのまま出
力する。符号反転回路10は、制御信号s2が“1”で
あれば入力値に対して正負符号を反転した値を出力し、
制御信号s2が“0”であれば入力値をそのまま出力す
る。
In the sign inverting circuit 9, the control signal s1 is "1".
In that case, a value obtained by inverting the sign of the input value is output, and if the control signal s1 is "0", the input value is output as it is. If the control signal s2 is "1", the sign inversion circuit 10 outputs a value obtained by inverting the sign of the input value,
If the control signal s2 is "0", the input value is output as it is.

【0097】以上のようにして、入力位相角信号pha
se[7:5]を基にして、各処理回路を制御するため
の制御信号p1,s1,s2,m1,m2が生成され
る。次に、三角関数発生回路に位相角信号phase
[7:0]が入力され、その位相角に対するsin関数
値とcos関数値が出力されるまでを説明する。
As described above, the input phase angle signal pha
Based on se [7: 5], control signals p1, s1, s2, m1, m2 for controlling each processing circuit are generated. Next, the phase angle signal phase is input to the trigonometric function generation circuit.
[7: 0] is input and the steps until the sin function value and the cos function value for the phase angle are output will be described.

【0098】三角関数発生回路に入力される8ビットの
位相角信号phase[7:0]のうち、上位3ビット
の信号phase[7:5]は、コントロールモジュー
ル1に入力され、制御信号p1,s1,s2,m1,m
2が出力される。
Of the 8-bit phase angle signal phase [7: 0] input to the trigonometric function generation circuit, the upper 3 bits of the signal phase [7: 5] are input to the control module 1 and the control signals p1 and p1. s1, s2, m1, m
2 is output.

【0099】それに対し、残りの下位5ビットの信号p
hase[4:0]は、位相反転回路4に入力される。
位相反転回路4は、制御信号p1に応じて信号phas
e[4:0]に対して位相反転の処理を行い出力する。
On the other hand, the remaining lower 5 bits of the signal p
The phase [4: 0] is input to the phase inverting circuit 4.
The phase inversion circuit 4 receives the signal phas according to the control signal p1.
e [4: 0] is subjected to phase inversion processing and output.

【0100】位相反転回路4から出力された位相角信号
は、sin0〜45°を記憶するROM5とcos0〜
45°を記憶するROM6に入力される。ROM5は、
入力された位相角信号に対するsin関数値をマルチプ
レクサ7とマルチプレクサ8に供給する。ROM6は、
入力された位相角信号に対するcos関数値をマルチプ
レクサ7とマルチプレクサ8に供給する。
The phase angle signal output from the phase inverting circuit 4 is stored in the ROM 5 and cos 0 to store sin 0 to 45 °.
It is input to the ROM 6 which stores 45 °. ROM5 is
The sin function value corresponding to the input phase angle signal is supplied to the multiplexers 7 and 8. ROM6 is
The cos function value for the input phase angle signal is supplied to the multiplexers 7 and 8.

【0101】マルチプレクサ7は、制御信号m1に応じ
て、入力されたROM5によるsin関数値とROM6
によるcos関数値の一方を符号反転回路9に供給す
る。マルチプレクサ8は、制御信号m2に応じて、入力
されたROM5によるsin関数値とROM6によるc
os関数値の他方を符号反転回路10に供給する。
The multiplexer 7 responds to the control signal m1 by inputting the sin function value from the ROM 5 and the ROM 6
One of the cos function values according to the above is supplied to the sign inversion circuit 9. The multiplexer 8 responds to the control signal m2 by inputting the sin function value by the ROM 5 and the c by the ROM 6
The other of the os function values is supplied to the sign inversion circuit 10.

【0102】符号反転回路9は、制御信号s1に応じ
て、入力された値の正負符号を必要に応じて反転させて
出力する。符号反転回路10は、制御信号s2に応じ
て、入力された値の正負符号を必要に応じて反転させて
出力する。
The sign inverting circuit 9 inverts the positive / negative sign of the input value in response to the control signal s1 and outputs the inverted value. The sign inversion circuit 10 inverts the positive / negative sign of the input value as necessary according to the control signal s2, and outputs it.

【0103】符号反転回路9から出力される8ビットの
信号が、位相角信号phase[7:0]に対するsi
n関数値である。また、符号反転回路10から出力され
る8ビットの信号が、位相角信号phase[7:0]
に対するcos関数値である。
The 8-bit signal output from the sign inverting circuit 9 is si with respect to the phase angle signal phase [7: 0].
It is an n-function value. The 8-bit signal output from the sign inverting circuit 10 is the phase angle signal phase [7: 0].
Is the cos function value for.

【0104】以上のように、所望の位相角の信号pha
se[7:0]を入力すれば、その位相角に対する8ビ
ットのsin関数値とcos関数値が同時に得られる。
この時に、ROM内に記憶させる関数値は、0〜45°
の位相角に対するsin関数値と0〜45°の位相角に
対するcos関数値だけでよい。
As described above, the signal pha having the desired phase angle is obtained.
By inputting se [7: 0], 8-bit sin function value and cos function value for the phase angle can be obtained at the same time.
At this time, the function value stored in the ROM is 0 to 45 °.
Only the sin function value for the phase angle of and the cos function value for the phase angle of 0 to 45 ° are required.

【0105】図5は、位相角が0〜45°の範囲内にお
けるsinテーブルと位相角が45〜90°の範囲内に
おけるsinテーブルの関数値から位相角θ=0〜36
0°のsinθとcosθの関数値を求める他の実施例
を示すグラフである。
In FIG. 5, the phase angle θ = 0 to 36 from the function values of the sin table in the range of the phase angle of 0 to 45 ° and the sin table in the range of the phase angle of 45 to 90 °.
9 is a graph showing another example of obtaining the function values of sin θ and cos θ at 0 °.

【0106】前述の実施例のROMテーブルと比較し
て、0〜45°のsinテーブルは同じであり、0〜4
5°のcosテーブルに代えて45〜90°のsinテ
ーブルを用いる。
Compared to the ROM table of the previous embodiment, the 0-45 ° sin table is the same, 0-4
A 45-90 ° sin table is used instead of the 5 ° cos table.

【0107】例えば、前述の実施例は細分位相角φに対
して、cosφをROMテーブルから読み出していたの
に対し、本実施例はsin(45°+φ)をROMテー
ブルから読み出すことによりsin関数とcos関数を
求める。
For example, in the above-described embodiment, cosφ is read from the ROM table for the subdivided phase angle φ, whereas in the present embodiment, sin (45 ° + φ) is read from the ROM table to obtain a sin function. Find the cos function.

【0108】入力位相角θを前述と同様に8ビットの信
号phase[7:0]で表し、その細分位相角φ(θ
=α+φ)を基に45〜90°のROMテーブルから読
み出しを行うと、その出力信号は、 sin(45°+φ) となる。
The input phase angle θ is represented by an 8-bit signal phase [7: 0] as described above, and the subdivided phase angle φ (θ
= [Alpha] + [phi]), when read from the ROM table of 45 to 90 [deg.], The output signal is sin (45 [deg.] + [Phi]).

【0109】つまり、入力位相角θ=0°の時とθ=4
5°の時は、共に下位5ビット信号はphase[4:
0]=「00000」となり、ROMテーブルから読み
出される関数値は同じになる。図5に示す0〜45°の
cos関数と45〜90°のsin関数を比べると、 cosφ=sin(90°−φ) =sin(45°+45°−φ) の関係が成り立つことがわかる。
That is, when the input phase angle θ = 0 ° and θ = 4
At 5 °, the lower 5 bit signals are both phase [4:
0] = “00000”, and the function values read from the ROM table are the same. Comparing the 0-45 ° cos function and the 45-90 ° sin function shown in FIG. 5, it can be seen that the relationship of cosφ = sin (90 ° −φ) = sin (45 ° + 45 ° −φ) holds.

【0110】つまり、下位5ビットは45°を同期とし
て変化するため、前述の実施例では細分位相角φからc
osテーブルを用いて出力した関数値は、本実施例では
反転位相角45°−φを用いて45〜90°に対するs
inテーブルから求めることができる。0〜45°に対
するsinテーブルは前述の実施例同様に機能する。こ
のようにして、入力位相角θに対するsin関数とco
s関数を求める。
That is, since the lower 5 bits change in synchronization with 45 °, in the above-described embodiment, the subdivision phase angles φ to c.
The function value output using the os table is s for 45 to 90 ° by using the inversion phase angle of 45 ° −φ in the present embodiment.
It can be obtained from the in table. The sin table for 0-45 ° functions as in the previous embodiment. Thus, the sin function and the co
Find the s-function.

【0111】図5(A)は、位相角θに対するsinθ
を表すグラフであリ、図5(B)は、位相角θに対する
cosθを表すグラフである。0〜360°の位相角θ
をグラフ中の破線で示すように45°単位に区切って説
明を行う。この45°の範囲内は、同一の変換法により
求めることが可能である。
FIG. 5A shows sin θ with respect to the phase angle θ.
5B is a graph showing cos θ with respect to the phase angle θ. 0-360 ° phase angle θ
Is divided into 45 ° units as indicated by broken lines in the graph. Within this 45 ° range, the same conversion method can be used.

【0112】前述の実施例でsinテーブルを用いてs
in関数またはcos関数を求める手順は、本実施例で
も図5(A)、(B)に示すように0〜45°に対する
sinテーブルを用いて同様に行える。
Using the sin table in the above embodiment, s
The procedure for obtaining the in function or the cos function can be similarly performed in this embodiment using the sin table for 0 to 45 ° as shown in FIGS.

【0113】一方、前述の実施例においてcosテーブ
ルを用いてsin関数またはcos関数を求める手順
は、細分位相角φに対して逆の位相反転の処理を行った
上で、45〜90°のsinテーブルから読み出しを行
えばよい。
On the other hand, in the above-described embodiment, the procedure for obtaining the sin function or the cos function using the cos table is the reverse phase inversion processing with respect to the subdivided phase angle φ, and then the sin of 45 to 90 °. Read from the table.

【0114】逆の位相反転の処理を行うとは、位相反転
の処理を制御する信号を反転させることに対応する。前
述の実施例で位相反転処理が必要であれは、本実施例で
は位相反転処理が必要でなく、前述の実施例で位相反転
処理が必要でなければ、本実施例では位相反転処理が必
要である。
Performing the opposite phase inversion process corresponds to inverting the signal controlling the phase inversion process. If the phase inversion processing is necessary in the above-described embodiment, the phase inversion processing is not necessary in this embodiment, and if the phase inversion processing is not necessary in the above embodiment, the phase inversion processing is necessary in this embodiment. is there.

【0115】これに伴い、前述の実施例では1つの入力
位相角θに対して、sin関数値を求める際にもcos
関数を求める際にも、両者とも位相反転処理を必要とす
るまたは必要としないのに対し、本実施例ではsin関
数とcos関数を求める際にどちらか一方のみに位相反
転処理を行う必要がある。
Accordingly, in the above-described embodiment, cos is used when the sin function value is obtained for one input phase angle θ.
Both of them need or do not need the phase inversion processing when obtaining the function, whereas in the present embodiment, only one of them needs to perform the phase inversion processing when obtaining the sin function and the cos function. .

【0116】以上のように、0〜45°のsinテーブ
ルと45〜90°のsinテーブルを用いても、位相角
θ=0〜360°に対するsin関数とcos関数を同
時に求めることができる。
As described above, the sin function and the cos function for the phase angle θ = 0 to 360 ° can be obtained at the same time by using the 0-45 ° sin table and the 45-90 ° sin table.

【0117】なお、同様にして、0〜45°のcosテ
ーブルと45°〜90°のcosテーブルを用いても、
位相角θ=0〜360°に対するsin関数とcos関
数を同時に求めることができる。
Similarly, even if the cos table of 0 ° to 45 ° and the cos table of 45 ° to 90 ° are used,
The sin function and the cos function for the phase angle θ = 0 to 360 ° can be obtained at the same time.

【0118】図4は、図5の実施例による三角関数発生
回路のブロック図である。三角関数発生回路は、位相角
θ=0〜360°を入力として、sinθとcosθの
関数値を出力とする。
FIG. 4 is a block diagram of a trigonometric function generating circuit according to the embodiment of FIG. The trigonometric function generation circuit inputs the phase angle θ = 0 to 360 ° and outputs the function values of sin θ and cos θ.

【0119】入力の8ビット位相角信号phase
[7:0]はビット分割回路11に入力され、下位5ビ
ットの信号phase[4:0]は位相反転回路4に入
力され、上位3ビットの信号phase[7:5]はコ
ントロールモジュール21に入力される。
Input 8-bit phase angle signal phase
[7: 0] is input to the bit division circuit 11, the lower 5 bits of the signal phase [4: 0] are input to the phase inversion circuit 4, and the upper 3 bits of the signal phase [7: 5] are input to the control module 21. Is entered.

【0120】コントロールモジュール21は、入力され
た信号phase[7:5]に基づいて、位相反転の処
理を行う位相反転回路4a,4bと、sin/cos交
換の処理を行うマルチプレクサ7,8と、符号反転の処
理を行う符号反転回路9,10に制御信号を供給する。
The control module 21 includes phase inversion circuits 4a and 4b for performing phase inversion processing based on the input signal phase [7: 5], multiplexers 7 and 8 for performing sin / cos exchange processing, A control signal is supplied to the sign inversion circuits 9 and 10 that perform the sign inversion process.

【0121】コントロールモジュール21が生成する信
号のうち、信号p21は位相反転回路4a,4bを制御
し、信号m21はマルチプレクサ7を制御し、信号m2
2はマルチプレクサ8を制御し、信号s21は符号反転
回路9を制御し、信号s22は符号反転回路10を制御
する。
Of the signals generated by the control module 21, the signal p21 controls the phase inversion circuits 4a and 4b, the signal m21 controls the multiplexer 7, and the signal m2.
2 controls the multiplexer 8, the signal s21 controls the sign inverting circuit 9, and the signal s22 controls the sign inverting circuit 10.

【0122】下位5ビットの位相角信号phase
[4:0]は、位相反転回路4a,4bに入力され、位
相反転回路4aは制御信号p21が“1”の場合にのみ
位相反転の処理を行い、位相反転回路4bは制御信号p
21が“0”の場合のみ位相反転処理を行う。
Phase angle signal phase of lower 5 bits
[4: 0] is input to the phase inversion circuits 4a and 4b, the phase inversion circuit 4a performs the phase inversion process only when the control signal p21 is "1", and the phase inversion circuit 4b outputs the control signal p.
Only when 21 is “0”, the phase inversion process is performed.

【0123】位相反転回路4aから出力される位相角信
号は、0〜45°のsinテーブルを記憶するROM2
5に供給され、位相反転回路4bから出力される位相角
信号は、45〜90°のsinテーブルを記憶するRO
M26に供給される。
The phase angle signal output from the phase inverting circuit 4a is the ROM 2 which stores a sin table of 0 to 45 °.
The phase angle signal supplied from the phase inversion circuit 4b to the signal RO is stored in the RO table storing the sin table of 45 to 90 °.
It is supplied to M26.

【0124】ROM25から読み出されたsin関数値
とROM26から読み出されたsin関数値は、それぞ
れマルチプレクサ7とマルチプレクサ8に供給される。
マルチプレクサ7から出力された信号は符号反転回路9
に供給され、マルチプレクサ8から出力された信号は符
号反転回路10に供給される。
The sin function value read from the ROM 25 and the sin function value read from the ROM 26 are supplied to the multiplexer 7 and the multiplexer 8, respectively.
The signal output from the multiplexer 7 is the sign inversion circuit 9
And the signal output from the multiplexer 8 is supplied to the sign inverting circuit 10.

【0125】符号反転回路9から出力される8ビットの
信号が、位相角信号phase[7:0]に対するsi
n関数値である。また、符号反転回路10から出力され
る8ビットの信号が、位相角信号phase[7:0]
に対するcos関数値である。
The 8-bit signal output from the sign inverting circuit 9 is si with respect to the phase angle signal phase [7: 0].
It is an n-function value. The 8-bit signal output from the sign inverting circuit 10 is the phase angle signal phase [7: 0].
Is the cos function value for.

【0126】以上のように、所望の位相角の信号pha
se[7:0]を入力すれば、その位相角に対する8ビ
ットのsin関数値とcos関数値が同時に得られる。
この時に、ROM内に記憶させる関数値は、0〜45°
の位相角に対するsin関数値と45〜90°の位相角
に対するsin関数値だけでよい。
As described above, the signal pha of the desired phase angle is
By inputting se [7: 0], 8-bit sin function value and cos function value for the phase angle can be obtained at the same time.
At this time, the function value stored in the ROM is 0 to 45 °.
Only the sin function value for the phase angle of and the sin function value for the phase angle of 45 to 90 ° are required.

【0127】なお、変換式の中でφ’=45°−φを求
める手法として、位相反転回路で位相反転の処理を行う
例について述べたがこれに限られない。例えば、位相角
に対してsin関数値を順番にROMのアドレスに記憶
させておき、アドレスの初めからアドレス計算を行い読
み出しを行えばsinφが得られ、アドレスの終わりか
らアドレス計算を行い読み出しを行えばsin(45°
−φ)を得ることができる。
As an example of the method of obtaining φ ′ = 45 ° −φ in the conversion equation, the example of performing the phase inversion processing by the phase inversion circuit has been described, but the method is not limited to this. For example, if the sin function value is sequentially stored in the ROM address with respect to the phase angle, and the address is calculated and read from the beginning of the address, sin φ is obtained, and the address is calculated and read from the end of the address. For example, sin (45 °
-Φ) can be obtained.

【0128】符号反転回路の処理においては、正負符号
を反転させる例について述べたがこれに限られず、入力
値の絶対値に対して正符号または負符号を付与してもよ
い。本実施例では、0〜45°の位相角に対するsin
関数と0〜45°の位相角に対するcos関数の2つの
ROMを使用する場合と、0〜45°の位相角に対する
sin関数と45〜90°の位相角に対するsin関数
の2つのROMを使用する場合について説明したが、こ
れらの組合わせに限られず他の45°単位の位相角の範
囲における三角関数値を用いても実現可能である。
In the processing of the sign inverting circuit, the example of inverting the positive and negative signs has been described, but the present invention is not limited to this, and a positive sign or a negative sign may be given to the absolute value of the input value. In this embodiment, sin for a phase angle of 0 to 45 °
When using two ROMs of a function and a cos function for a phase angle of 0 to 45 °, and two ROMs of a sin function for a phase angle of 0 to 45 ° and a sin function for a phase angle of 45 to 90 °. Although the case has been described, the present invention is not limited to these combinations and can be realized by using a trigonometric function value in the range of the phase angle of another 45 °.

【0129】また、ROMは必ず2つ必要とするもので
はなく、例えばデュアルポートメモリを用いれば1つの
ROMに2つの範囲の関数値を記憶させることもでき
る。本実施例による三角関数発生回路は、三角関数値を
記憶するROMの容量が小さくてすむので、ハード量の
少ないコンパクトな回路を実現でき、回路の消費電力を
小さくすることができる。
Further, it is not always necessary to have two ROMs. For example, if a dual port memory is used, one ROM can store the function values in two ranges. In the trigonometric function generating circuit according to the present embodiment, the capacity of the ROM for storing the trigonometric function value can be small, so that a compact circuit with a small amount of hardware can be realized and the power consumption of the circuit can be reduced.

【0130】また、2つのROMからそれぞれ三角関数
値を1度読み出すだけで、sin関数値とcos関数値
の両方を同時に生成することが可能である。以上実施例
に沿って本発明を説明したが、本発明はこれらに制限さ
れるものではない。例えば、種々の変更、改良、組合わ
せ等が可能なことは当業者に自明であろう。
Further, by reading the trigonometric function value from each of the two ROMs only once, it is possible to generate both the sin function value and the cos function value at the same time. Although the present invention has been described above with reference to the embodiments, the present invention is not limited thereto. For example, it will be apparent to those skilled in the art that various changes, improvements, combinations, and the like can be made.

【0131】[0131]

【発明の効果】三角関数値を記憶する容量を小さくする
ことができるので、ハード量の少ないコンパクトな回路
を実現でき、回路の消費電力を小さくすることができ
る。
Since the capacity for storing the trigonometric function value can be reduced, a compact circuit with less hardware can be realized and the power consumption of the circuit can be reduced.

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

【図1】本発明の実施例による三角関数発生回路のブロ
ック図である。
FIG. 1 is a block diagram of a trigonometric function generating circuit according to an embodiment of the present invention.

【図2】位相角が0〜45°の範囲内におけるsinテ
ーブルとcosテーブルの関数値から位相角θ=0〜3
60°のsinθとcosθの関数値を求める手順を示
すグラフである。図2(A)は位相角θに対するsin
θを表すグラフであり、図2(B)は位相角θに対する
cosθを表すグラフである。
FIG. 2 shows the phase angle θ = 0 to 3 from the function values of the sin table and the cos table in the range of the phase angle of 0 to 45 °.
It is a graph which shows the procedure which calculates | requires the function value of 60 degree sin (theta) and cos (theta). FIG. 2A shows sin with respect to the phase angle θ.
FIG. 2B is a graph showing θ, and FIG. 2B is a graph showing cos θ with respect to the phase angle θ.

【図3】位相角が0〜45°の範囲内におけるsinテ
ーブルとcosテーブルの関数値から位相角θ=0〜3
60°のsinθとcosθの関数値を求める変換法を
まとめた表である。
FIG. 3 shows phase angles θ = 0 to 3 from the function values of the sin table and the cos table in the range of the phase angle of 0 to 45 °.
6 is a table summarizing conversion methods for obtaining function values of sin θ and cos θ of 60 °.

【図4】本発明の他の実施例による三角関数発生回路の
ブロック図である。
FIG. 4 is a block diagram of a trigonometric function generating circuit according to another embodiment of the present invention.

【図5】位相角が0〜45°の範囲内におけるsinテ
ーブルと位相角が45〜90°の範囲内におけるsin
テーブルの関数値から位相角θ=0〜360°のsin
θとcosθの関数値を求める手順を説明するためのグ
ラフである。図5(A)は位相角θに対するsinθを
表すグラフであり、図5(B)は位相角θに対するco
sθを表すグラフである。
FIG. 5 is a sin table in a phase angle range of 0 to 45 ° and a sin table in a phase angle range of 45 to 90 °.
From the function value in the table, sin of phase angle θ = 0 to 360 °
6 is a graph for explaining a procedure for obtaining a function value of θ and cos θ. 5A is a graph showing sin θ with respect to the phase angle θ, and FIG. 5B is co with respect to the phase angle θ.
It is a graph showing sθ.

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

1,21 コントロールモジュール 2,3 EXOR回路 4 位相反転回路 5,6,25,26 ROM 7,8 マルチプレクサ 9,10 符号反転回路 11 ビット分割回路 1, 21 Control module 2, 3 EXOR circuit 4 Phase inversion circuit 5, 6, 25, 26 ROM 7, 8 Multiplexer 9, 10 Sign inversion circuit 11 Bit division circuit

─────────────────────────────────────────────────────
─────────────────────────────────────────────────── ───

【手続補正書】[Procedure amendment]

【提出日】平成6年6月23日[Submission date] June 23, 1994

【手続補正1】[Procedure Amendment 1]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】図3[Name of item to be corrected] Figure 3

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【図3】位相角が0〜45°の範囲内におけるsinテ
ーブルとcosテーブルの関数値から位相角θ=0〜3
60°のsinθとcosθの関数値を求める変換法を
まとめた図表である。
FIG. 3 shows phase angles θ = 0 to 3 from the function values of the sin table and the cos table in the range of the phase angle of 0 to 45 °.
6 is a chart summarizing conversion methods for obtaining function values of sin θ and cos θ of 60 °.

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 0〜360度の任意の位相角θを表す入
力信号を受ける入力端子と、 sinθを表す信号を出力するsin出力端子と、 cosθを表す信号を出力するcos出力端子と、 位相角θを表す入力信号から45度を単位とする領域位
相角信号αと0〜45度の角度を表す細分位相角信号φ
とをθ=α+φとなるように形成する分割信号形成手段
(11)と、 細分位相角信号φを入力して反転位相角信号(45°−
φ)を出力する位相反転手段(4)と、 0〜45度に対するsin関数値とcos関数値を記憶
し、または0〜90度に関するsin関数値もしくはc
os関数値を記憶し、同時に2つの出力を発生するメモ
リ(5,6)と、 領域位相角信号αに基づいて、前記メモリに細分位相角
信号φまたは反転位相角信号(45°−φ)を入力する
メモリ入力手段(1)と、 領域位相角信号αに基づいて、前記メモリからの2出力
の符号を選択的に反転し、一方の出力をsin出力端子
へ、他方の出力をcos出力端子へ供給する手段(1,
7,8,9,10)とを有するディジタル三角関数発生
回路。
1. An input terminal for receiving an input signal representing an arbitrary phase angle θ of 0 to 360 degrees, a sin output terminal for outputting a signal representing sin θ, a cos output terminal for outputting a signal representing cos θ, and a phase A region phase angle signal α in units of 45 degrees from the input signal representing the angle θ and a subdivided phase angle signal φ representing an angle of 0 to 45 degrees.
And a division signal forming means (11) for forming and so that θ = α + φ, and an inversion phase angle signal (45 ° −
phase inversion means (4) for outputting φ), and stores the sin function value and the cos function value for 0 to 45 degrees, or the sin function value for 0 to 90 degrees or c
A memory (5, 6) for storing the os function value and simultaneously generating two outputs, and a subdivided phase angle signal φ or an inverted phase angle signal (45 ° −φ) in the memory based on the area phase angle signal α. And a memory input means (1) for inputting, and selectively inverting the sign of the two outputs from the memory based on the area phase angle signal α, one output to the sin output terminal, the other output to the cos output Means for supplying to terminals (1,
7, 8, 9, 10) and a digital trigonometric function generating circuit.
【請求項2】 前記メモリが0〜45度に対するsin
関数とcos関数を記憶し、前記メモリ入力手段が領域
位相角信号αに基づいて細分位相角信号φまたは反転位
相角信号(45°−φ)を選択的に前記メモリに入力す
る請求項1記載のディジタル三角関数発生回路。
2. The memory is sin for 0-45 degrees
2. A function and a cos function are stored, and the memory input means selectively inputs the subdivided phase angle signal φ or the inverted phase angle signal (45 ° −φ) to the memory based on the area phase angle signal α. Digital trigonometric function generator.
【請求項3】 前記メモリが0〜90度に関するsin
関数値もしくはcos関数値を記憶し、0〜45度の角
度を表す信号を入力として0〜45度および45〜90
度に対するsin関数値もしくはcos関数値を出力
し、前記メモリ入力手段が領域位相角信号αに基づいて
細分位相角信号φおよび反転位相角信号(45°−φ)
を前記メモリに入力する請求項1記載のディジタル三角
関数発生回路。
3. The memory has a sin related to 0 to 90 degrees.
A function value or a cos function value is stored, and a signal representing an angle of 0 to 45 degrees is input to 0 to 45 degrees and 45 to 90 degrees.
The sine function value or the cos function value for the degree is output, and the memory input means outputs the subdivided phase angle signal φ and the inverted phase angle signal (45 ° −φ) based on the area phase angle signal α.
3. The digital trigonometric function generating circuit according to claim 1, wherein is input to the memory.
【請求項4】 前記入力信号がバイナリ信号であり、前
記分割信号形成手段が入力信号を上位ビット信号と下位
ビット信号に分割する手段である請求項1〜3のいずれ
かに記載のディジタル三角関数発生回路。
4. The digital trigonometric function according to claim 1, wherein the input signal is a binary signal, and the divided signal forming means is means for dividing the input signal into a high-order bit signal and a low-order bit signal. Generator circuit.
JP31686693A 1993-12-16 1993-12-16 Digital trigonometric function generating circuit Pending JPH07175636A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP31686693A JPH07175636A (en) 1993-12-16 1993-12-16 Digital trigonometric function generating circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP31686693A JPH07175636A (en) 1993-12-16 1993-12-16 Digital trigonometric function generating circuit

Publications (1)

Publication Number Publication Date
JPH07175636A true JPH07175636A (en) 1995-07-14

Family

ID=18081791

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31686693A Pending JPH07175636A (en) 1993-12-16 1993-12-16 Digital trigonometric function generating circuit

Country Status (1)

Country Link
JP (1) JPH07175636A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004297389A (en) * 2003-03-26 2004-10-21 Fuji Film Microdevices Co Ltd Video encoder
US7973991B2 (en) 2007-05-17 2011-07-05 Canon Kabushiki Kaisha Oscillator device, optical deflector and driving signal generating method
JP2011522330A (en) * 2008-05-29 2011-07-28 ハリス コーポレイション Sine / cosine generator
WO2014091693A1 (en) * 2012-12-13 2014-06-19 日本電気株式会社 Signal generator, signal generation method, and numerically controlled oscillator

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004297389A (en) * 2003-03-26 2004-10-21 Fuji Film Microdevices Co Ltd Video encoder
US7973991B2 (en) 2007-05-17 2011-07-05 Canon Kabushiki Kaisha Oscillator device, optical deflector and driving signal generating method
JP2011522330A (en) * 2008-05-29 2011-07-28 ハリス コーポレイション Sine / cosine generator
WO2014091693A1 (en) * 2012-12-13 2014-06-19 日本電気株式会社 Signal generator, signal generation method, and numerically controlled oscillator
JPWO2014091693A1 (en) * 2012-12-13 2017-01-05 日本電気株式会社 Signal generation apparatus, signal generation method, and numerically controlled oscillator
US9787297B2 (en) 2012-12-13 2017-10-10 Nec Corporation Signal generator, signal generation method, and numerically controlled oscillator

Similar Documents

Publication Publication Date Title
JP3169714B2 (en) Digital radio modulator
KR920002541B1 (en) Apparatus and method for a auto-tint of tv
US7327404B2 (en) Methods and systems for color image processing
US4827442A (en) Digital circuit for simultaneously generating digital sine- and cosine-function values
JPH07175636A (en) Digital trigonometric function generating circuit
JPS607285A (en) Television signal processing system
US6614488B1 (en) Method and apparatus for controlling tint in a digital color display system
US4801899A (en) Quadrature amplitude modulation/demodulation device using multi-level digital signals
US6124899A (en) Method and apparatus for encoding video color information
JPS60203092A (en) Skin color control integrated circuit in ntsc television receiver
JPH0470149A (en) Decision circuit for pi/4 shift qpsk modulated signal
JP3557135B2 (en) Image adjustment circuit
JPH0662422A (en) Pal encoder
JPS5854703B2 (en) Judgment circuit
JPH05115000A (en) Color image processing method and device
JP2834009B2 (en) Multi-mode phase modulator
JPH05347643A (en) Phase comparator
US6211923B1 (en) Device for correcting the color of a television signal according to NTSC standard
US5039987A (en) Circuit for converting a phase signal to an amplitude signal
US20010006405A1 (en) Video signal processing apparatus
JPS5836868B2 (en) Signal vector determination circuit for 8-phase phase modulation
JP2696861B2 (en) Video signal processing device
JPH07212428A (en) Circuit for restoring carrier wave by judgement with phase error sensor
JPH1117755A (en) Phase discrimination circuit
JP2633938B2 (en) Digital trigonometric function generator

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20030422