JP5798844B2 - Digital oscillator - Google Patents

Digital oscillator Download PDF

Info

Publication number
JP5798844B2
JP5798844B2 JP2011198037A JP2011198037A JP5798844B2 JP 5798844 B2 JP5798844 B2 JP 5798844B2 JP 2011198037 A JP2011198037 A JP 2011198037A JP 2011198037 A JP2011198037 A JP 2011198037A JP 5798844 B2 JP5798844 B2 JP 5798844B2
Authority
JP
Japan
Prior art keywords
coefficient
value
register
output
digital oscillator
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.)
Active
Application number
JP2011198037A
Other languages
Japanese (ja)
Other versions
JP2013062575A (en
Inventor
祥正 稗田
祥正 稗田
小林 史典
史典 小林
井上 学
学 井上
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.)
Kyushu Institute of Technology NUC
New Japan Radio Co Ltd
Institute of National Colleges of Technologies Japan
Original Assignee
Kyushu Institute of Technology NUC
New Japan Radio Co Ltd
Institute of National Colleges of Technologies Japan
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 Kyushu Institute of Technology NUC, New Japan Radio Co Ltd, Institute of National Colleges of Technologies Japan filed Critical Kyushu Institute of Technology NUC
Priority to JP2011198037A priority Critical patent/JP5798844B2/en
Publication of JP2013062575A publication Critical patent/JP2013062575A/en
Application granted granted Critical
Publication of JP5798844B2 publication Critical patent/JP5798844B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、角度情報φ(=ωt)に同期したsinφ(=sinωt)波およびcosφ(=cosωt)波を生成するディジタル発振器に係り、特にレゾルバ/デジタル(R/D)コンバータ等に好適なディジタル発振器に関する。   The present invention relates to a digital oscillator that generates a sinφ (= sinωt) wave and a cosφ (= cosωt) wave synchronized with angle information φ (= ωt), and particularly suitable for a resolver / digital (R / D) converter or the like. It relates to an oscillator.

従来、モータの回転角度の検出を行う信号処理回路では、図7に示すように、はじめに、アップ/ダウン信号で制御されてクロックをカウントするアップ/ダウンカウンタ21により角度情報φを取得し、得られた角度情報φをアドレスとして、余弦波ROMテーブル22、正弦波ROMテーブル23からcosφ波/sinφ波の各波高値を順次読み出すルックアップテーブル方式が用いられていた。   Conventionally, in a signal processing circuit that detects the rotation angle of a motor, as shown in FIG. 7, first, angle information φ is obtained by an up / down counter 21 that is controlled by an up / down signal and counts a clock. A look-up table system is used in which the cosine wave ROM table 22 and the sine wave ROM table 23 sequentially read out the cosine φ wave / sin φ wave peak values using the angle information φ as an address.

例えば、特許文献1では、図8に示すように、補償器31から出力するアップ/ダウン信号でアップ/ダウンが制御されるアップ/ダウンカウンタ32から出力する角度情報φを基にして、余弦波ROMテーブル33、正弦波テーブル34から正弦波/余弦波の各波高値cosφ/sinφを順次読み出している。そして、これらを、10ビット乗算型DAC35,36において、レゾルバの2相の2次巻線から出力するsinθ・f(t)、cosθ・f(t)にそれぞれ乗算して、sinθ・f(t)・cosφ、cosθ・f(t)・sinφを求め、その差分sin(θ−φ)・f(t)を減算器37で求め、比較器38でその極性を検出し、同期検波器39で励磁成分f(t)を除去して制御成分sin(θ−φ)を求め、これを補償器31に入力して前記アップ/ダウン信号を生成するようにトラッキングループを構成している。そして、θ−φが零となるように制御することで、レゾルバ回転子の回転角度θ(=φ)を求めている。40は励磁信号f(t)を生成する励磁信号生成器であり、この励磁信号f(t)がレゾルバの1次巻線に印加され、また同期検波用となる。   For example, in Patent Document 1, as shown in FIG. 8, a cosine wave is generated based on angle information φ output from an up / down counter 32 whose up / down is controlled by an up / down signal output from a compensator 31. Each peak value cosφ / sinφ of the sine wave / cosine wave is sequentially read from the ROM table 33 and the sine wave table 34. These are multiplied by sinθ · f (t) and cosθ · f (t) output from the two-phase secondary windings of the resolver in the 10-bit multiplying DACs 35 and 36, respectively, and sinθ · f (t ) · Cosφ, cosθ · f (t) · sinφ, the difference sin (θ−φ) · f (t) is obtained by the subtractor 37, the polarity is detected by the comparator 38, and the synchronous detector 39 is obtained. The tracking component is configured so that the excitation component f (t) is removed to obtain the control component sin (θ−φ), which is input to the compensator 31 to generate the up / down signal. Then, the rotation angle θ (= φ) of the resolver rotor is obtained by controlling so that θ−φ becomes zero. An excitation signal generator 40 generates an excitation signal f (t). This excitation signal f (t) is applied to the primary winding of the resolver and is used for synchronous detection.

特許第3442316号公報Japanese Patent No. 3442316

しかしながら、ルックアップテーブル方式を用いる場合、正弦波/余弦波の各波高値を緻密にメモリに記憶させる必要があるため、テーブルが巨大化し、半導体装置のなかで特にメモリの占有する領域が増大する傾向にあるという問題があった。また、メモリに記憶させた正弦波/余弦波の各波高値を読み出すためには、はじめに角度データを取得し、次に、得られた角度データを基にして、読み出すROMのメモリアドレスを設定する必要があるため、処理が複雑になる傾向にあった。   However, when using the look-up table method, it is necessary to memorize each peak value of the sine wave / cosine wave precisely in the memory, so that the table becomes enormous and the area occupied by the memory in the semiconductor device increases. There was a problem of tending. In addition, in order to read out the peak values of the sine wave / cosine wave stored in the memory, the angle data is first acquired, and then the ROM memory address to be read is set based on the obtained angle data. Because it is necessary, the processing tends to be complicated.

本発明の目的は、ルックアップテーブル方式のようなメモリを使用せずに、正弦波、余弦波、角度情報が同時に得られるようにしたディジタル発振器を提供することである。   An object of the present invention is to provide a digital oscillator in which sine wave, cosine wave, and angle information can be obtained simultaneously without using a memory such as a lookup table system.

上記目的を達成するために、請求項1にかかる発明は、初期値Aが設定されクロックで動作する第1の積分器、外部入力するアップ/ダウン信号でωの極性が切り替わる第1のω係数器、前記クロックで動作する第2の積分器、および前記アップ/ダウン信号でωの極性が前記第1のω係数器のωの極性と反対に切り替わる第2のω係数器を順次リング接続して2相発振器を構成し、且つ、前記アップ/ダウン信号に応じて前記クロックをアップ/ダウンカウントするアップ/ダウンカウンタを設け、前記第1の積分器からAcosωtを、前記第2の積分器からAsinωtを、前記アップ/ダウンカウンタからAcosωtおよびAsinωtの角度情報ωtを、それぞれ同時に生成し、前記アップ/ダウン信号が第1の値を示すとき前記ωtの位相を進め、第2の値を示すとき前記ωtの位相を遅らせることを特徴とする。
請求項2にかかる発明は、請求項1に記載のディジタル発振器において、前記第1および第2の積分器は、前記クロックで動作するレジスタと、該レジスタの出力信号に1未満の係数を乗じて前記レジスタの入力側に加算させる1−δ係数器とで構成されていることを特徴とする。
請求項3にかかる発明は、請求項2に記載のディジタル発振器において、前記1−δ係数器は、δの係数を設定する複数のビットシフト回路と、前記レジスタの出力から前記複数のビットシフト回路の出力を減算する加算器と、で構成されていることを特徴とする。
In order to achieve the above object, the invention according to claim 1 is the first integrator that operates with a clock with an initial value A set, and the first ω coefficient in which the polarity of ω is switched by an externally input up / down signal. And a second integrator that operates with the clock, and a second ω coefficient unit in which the polarity of ω is switched opposite to the polarity of ω of the first ω coefficient unit by the up / down signal in a ring connection. And an up / down counter that counts up / down the clock according to the up / down signal is provided, and Acosωt is supplied from the first integrator to the second integrator. the Asinomegati, angle information ωt of Acosωt and Asinomegati from the up / down counter, each generated at the same time, advances the ωt phase when the up / down signal indicates a first value, the second The characterized in that for delaying the phase of said ωt when shown.
According to a second aspect of the present invention, in the digital oscillator according to the first aspect, the first and second integrators include a register operating with the clock, and an output signal of the register multiplied by a coefficient less than one. It is composed of a 1-δ coefficient unit to be added to the input side of the register.
According to a third aspect of the present invention, in the digital oscillator according to the second aspect, the 1-δ coefficient unit includes a plurality of bit shift circuits for setting a coefficient of δ, and the plurality of bit shift circuits from the output of the register. And an adder that subtracts the output of.

本発明によれば、ルックアップテーブル方式のようなメモリが不要になるため、従来の半導体装置においてチップ面積に対する比率が大きかったメモリを削減することができ、チップ面積を小さくすることかできる。また、ソフトウェアにおいて実現する場合も、メモリを占有する割合が小さくなるため、より、廉価なマイコン等で処理が可能になる。さらにアップ/ダウン信号を、角度データの取得に用いるだけでなく、正弦波/余弦波の位相の進み/遅れの制御に使用することで、角度情報と同期した正弦波/余弦波を同時に取得することができるため、ハードウエア/ソフトウエアのどちらの手段で実現する場合でも、ルックアップテーブル方式に比べ処理が簡単になる。   According to the present invention, since a memory such as a look-up table method is unnecessary, it is possible to reduce the memory having a large ratio to the chip area in the conventional semiconductor device, and to reduce the chip area. Also, when implemented in software, since the proportion of memory occupied is small, processing can be performed with a cheaper microcomputer or the like. Furthermore, the up / down signal is used not only for obtaining the angle data but also for controlling the phase advance / delay of the sine wave / cosine wave, thereby simultaneously obtaining the sine wave / cosine wave synchronized with the angle information. Therefore, the processing can be simplified compared to the look-up table method when implemented by either hardware or software.

本発明の1つの実施例のディジタル発振器の構成図である。It is a block diagram of the digital oscillator of one Example of this invention. 図1のディジタル発振器の記憶/係数ユニット1,2の閉ループ部分の伝達関数の説明図である。FIG. 2 is an explanatory diagram of a transfer function of a closed loop portion of storage / coefficient units 1 and 2 of the digital oscillator of FIG. 図2の伝達関数の積分器をディジタル的に表現した説明図で、(a)は一般的な構成の説明図、(b)は発散を抑制した構成の説明図である。FIG. 3 is an explanatory diagram that digitally represents the integrator of the transfer function in FIG. 2, where (a) is an explanatory diagram of a general configuration, and (b) is an explanatory diagram of a configuration that suppresses divergence. ディジタル発振器の動作のフローチャートであり、(a)従来のルックアップテーブル方式の動作のフローチャート、(b)は本発明の方式の動作のフローチャートである。2 is a flowchart of the operation of the digital oscillator, (a) a flowchart of the operation of the conventional lookup table method, and (b) a flowchart of the operation of the method of the present invention. 図2の2相発振器の詳細なブロック図である。FIG. 3 is a detailed block diagram of the two-phase oscillator of FIG. 2. 本発明のディジタル発振器をR/Dコンバータに適用した例の構成図である。It is a block diagram of the example which applied the digital oscillator of this invention to the R / D converter. ルックアップテーブル方式のディジタル発振器の動作説明図である。FIG. 4 is an operation explanatory diagram of a look-up table type digital oscillator. 特許文献1におけるR/Dコンバータの構成図である。2 is a configuration diagram of an R / D converter in Patent Document 1. FIG.

図1に本発明の実施例のディジタル発振器を示す。本実施例のディジタル発振器は、余弦波用の記憶/係数ユニット1、正弦波用の記憶/係数ユニット2、および角度取得ユニット3から構成されている。記憶/係数ユニット1,2は、積分器を含み、値を保持するためのレジスタと正弦波/余弦波の波形の発散を押さえるための1未満の係数等を備えている。角度取得ユニット3は、角度情報φを生成するためのアップ/ダウンカウンタ、アップ/ダウンカウンタで得られた角度情報φを出力するためパラレル出力回路、エンコーダ相当の出力回路、シリアル出力回路などを備える。   FIG. 1 shows a digital oscillator according to an embodiment of the present invention. The digital oscillator according to this embodiment includes a cosine wave storage / coefficient unit 1, a sine wave storage / coefficient unit 2, and an angle acquisition unit 3. The storage / coefficient units 1 and 2 include an integrator, and are provided with a register for holding a value and a coefficient of less than 1 for suppressing the divergence of a sine wave / cosine wave waveform. The angle acquisition unit 3 includes an up / down counter for generating angle information φ, a parallel output circuit for outputting the angle information φ obtained by the up / down counter, an output circuit equivalent to an encoder, a serial output circuit, and the like. .

図1の上側に示した記憶/係数ユニット1,2の閉ループ回路で構成される発振回路は、一般的には2相発振器と呼ばれ、図2に示す伝達関数で表される。図2において、4は初期インパルスAを取り込むための加算器、5A,5Bは積分器、6A,6Bはω係数器である。ωは角周波数であり、その周期はTである(ω=2π/T)。図2の伝達関数は、以下の式(1)、(2)のように求められる。   The oscillation circuit configured by the closed loop circuit of the storage / coefficient units 1 and 2 shown on the upper side of FIG. 1 is generally called a two-phase oscillator and is represented by a transfer function shown in FIG. In FIG. 2, 4 is an adder for taking in the initial impulse A, 5A and 5B are integrators, and 6A and 6B are ω coefficient units. ω is an angular frequency, and its period is T (ω = 2π / T). The transfer function of FIG. 2 is calculated | required like the following formula | equation (1), (2).

図2の左上に発振の初期値として振幅Aのインパルスを入力した場合、図2の右上側の出力信号であるAcosωtを考える。

Figure 0005798844
この式(1)を逆ラプラス変換すると、Z(t)=Acosωtとなる。 When an impulse having an amplitude A is input as the initial value of oscillation to the upper left of FIG. 2, consider the output signal Acos ωt on the upper right side of FIG.
Figure 0005798844
When this equation (1) is subjected to inverse Laplace transform, Z (t) = Acosωt.

同様に、図2の左下側の出力信号であるAsinωtを考える。

Figure 0005798844
この式(2)を逆ラプラス変換すると、Z'(t)=Asinωtとなる。 Similarly, consider Asinωt, which is the output signal on the lower left side of FIG.
Figure 0005798844
When this equation (2) is subjected to inverse Laplace transform, Z ′ (t) = Asinωt.

つまり、同一の入力信号(振幅Aのインパルス)に対して、Acosωt、Asinωtの2つの出力信号を同時に得ることができる。   That is, two output signals Acosωt and Asinωt can be obtained simultaneously for the same input signal (impulse A).

また、図2の伝達関数において、1/sで示される積分器5A,5Bをディジタル的に表現すると、図3(a)に示すように、加算器51とレジスタ52で表現することができる。ただし、この構成で図2の伝達関数の回路を構成した場合は、以下のような理由から出力の正弦波/余弦波が発散するため、発散を抑制する必要があり、本発明において使用した回路では、図3(b)に示すように、帰還経路に1−δ係数器53を挿入している。以下に理由を説明する。   In addition, if the integrators 5A and 5B indicated by 1 / s are digitally expressed in the transfer function of FIG. 2, they can be expressed by an adder 51 and a register 52 as shown in FIG. However, when the circuit of the transfer function of FIG. 2 is configured with this configuration, the sine wave / cosine wave of the output diverges for the following reason, and thus it is necessary to suppress the divergence. The circuit used in the present invention Then, as shown in FIG. 3B, a 1-δ coefficient unit 53 is inserted in the feedback path. The reason will be described below.

図2において、余弦波出力側の積分器5Aのレジスタ52の値をR(n)、正弦波出力側の積分器5Bのレジスタ52の値をI(n)とし、nを離散時刻における値とすると、クロックによって次にレジスタ52が更新される際の値R(n+1)、I(n+1)は、

Figure 0005798844
となる。この式(3)を行列で表現すると、
Figure 0005798844
となる。 In FIG. 2, the value of the register 52 of the integrator 5A on the cosine wave output side is R (n), the value of the register 52 of the integrator 5B on the sine wave output side is I (n), and n is a value at a discrete time. Then, values R (n + 1) and I (n + 1) when the register 52 is updated next by the clock are as follows:
Figure 0005798844
It becomes. If this expression (3) is expressed by a matrix,
Figure 0005798844
It becomes.

この式(4)における1と±ωで表される行列は、レジスタの値の現在から次の値へと変わる際の変換行列となる。このノルムHは、

Figure 0005798844
であるから、レジスタの値が更新されるたびに大きな値となり、その結果出力信号が発散してしまう。 The matrix represented by 1 and ± ω in the equation (4) is a conversion matrix when the register value changes from the current value to the next value. This norm H is
Figure 0005798844
Therefore, every time the register value is updated, it becomes a large value, and as a result, the output signal diverges.

そこで、図3(b)に示したような補正項δを用いて回路を構成する。補正項δを用いたときの式(6)を以下に表す。

Figure 0005798844
この式(6)を行列で表現すると、
Figure 0005798844
となる。 Therefore, a circuit is configured using the correction term δ as shown in FIG. Equation (6) when the correction term δ is used is shown below.
Figure 0005798844
If this equation (6) is expressed by a matrix,
Figure 0005798844
It becomes.

この式(7)のノルムGは、

Figure 0005798844
となり、δの値を調整することで、G=1を実現でき、レジスタ値の増大が抑制されるため、出力信号の発散を防ぐことができる。 The norm G of this equation (7) is
Figure 0005798844
Thus, by adjusting the value of δ, G = 1 can be realized, and an increase in the register value is suppressed, so that the divergence of the output signal can be prevented.

以上のような理由から、図1の記憶/係数ユニット1,2は、図3(b)のように構成される積分器5A,5Bと、ω係数器6A,6Bから構成される。ω=2π/Tであるので、周期Tが決まれば、ω係数器6A,6Bのωは決まる。   For the reasons described above, the storage / coefficient units 1 and 2 in FIG. 1 are configured by integrators 5A and 5B and ω coefficient units 6A and 6B configured as shown in FIG. Since ω = 2π / T, if the period T is determined, ω of the ω coefficient units 6A and 6B is determined.

本実施例では、外部入力するアップ/ダウン信号に応じて、ω係数器6A,6Bのωの極性を反対方向に切り替えることで、出力信号である正弦波/余弦波の位相を進めたり、遅らせたりすることができる。具体的には、位相を進めるときは前述の式(6)、位相を遅らせるときには次の式(9)式のように表現できる。

Figure 0005798844
つまり、位相を進めるときは、ω係数器6Aのωの極性を負に、ω係数器6Aのωの極性を正に設定し、位相を遅らせるときは、ω係数器6Aのωの極性を正に、ω係数器6Bのωの極性をを負に設定すればよい。 In this embodiment, the phase of the sine wave / cosine wave as an output signal is advanced or delayed by switching the polarity of ω of the ω coefficient units 6A and 6B in the opposite direction in accordance with the up / down signal input from the outside. Can be. Specifically, when the phase is advanced, it can be expressed as the above equation (6), and when the phase is delayed, it can be expressed as the following equation (9).
Figure 0005798844
That is, when the phase is advanced, the ω polarity of the ω coefficient unit 6A is set to be negative, the ω polarity of the ω coefficient unit 6A is set to be positive, and when the phase is delayed, the ω polarity of the ω coefficient unit 6A is set to be positive. In addition, the polarity of ω of the ω coefficient unit 6B may be set to be negative.

このように正弦波/余弦波の位相の進み/遅れを制御するためには、図2におけるω係数器6A,6Bのωの極性のみを切替えるだけで良く、また本発明においてこの発振回路をディジタルにて実現しているため極性切替は容易である。   In order to control the phase advance / delay of the sine wave / cosine wave in this way, it is only necessary to switch only the polarity of ω of the ω coefficient units 6A and 6B in FIG. Since it is realized by the above, polarity switching is easy.

上記の本実施例のディジタル発振器の動作をフローチャートに表したものが、図4(b)である。図4(a)のフローチャートが従来のルックアップテーブル方式によるものである。両方の方式とも、アップ/ダウン判定を行うことは同じであるが、本実施例では、判定の結果であるアップ/ダウン信号を、図1のように記憶係数ユニット1,2、角度取得ユニット3に同時に入力することで、記憶係数ユニット1,2ではωΔT(ΔTはクロックの周期)にあたるΔφ分だけ角度φが増減するため、sin波はsin(φ±Δφ)のように、cos波はcos(φ±Δφ)のように、それぞれ位相が同時に変化する。また角度取得ユニット3では、アップ/ダウンの回転角度を表すカウント値が増減し、φの値を出力する。このため、本実施例では、従来のルックアップテーブル方式より処理ステップが少なくてすむ。   FIG. 4B is a flowchart showing the operation of the digital oscillator of this embodiment. The flowchart of FIG. 4A is based on the conventional lookup table method. In both methods, it is the same that the up / down determination is performed, but in this embodiment, the up / down signal as a result of the determination is stored in the storage coefficient units 1 and 2 and the angle acquisition unit 3 as shown in FIG. Since the angle φ is increased or decreased by Δφ corresponding to ωΔT (ΔT is the clock cycle) in the storage coefficient units 1 and 2, the sin wave is sin (φ ± Δφ), and the cos wave is cos As in (φ ± Δφ), the phases change simultaneously. In the angle acquisition unit 3, the count value representing the up / down rotation angle is increased or decreased, and the value of φ is output. For this reason, in this embodiment, fewer processing steps are required than in the conventional lookup table method.

以上の理由により、上記した図1の記憶/係数ユニット1,2を構成する2相発振器の積分器5A,5Bのレジスタ52の値をクロック周期(ΔT)毎に更新するタイミングで、角度指示増減方向の値であるアップ/ダウン信号を読み込み、同時に更新することで、記憶/係数ユニット1,2(2相発振器)においては位相の制御を、角度取得ユニット3(アップ/ダウンカウンタ)においては角度情報の制御を、それぞれ行うため、各々同期した角度情報φ、sinφ波、cosφ波を、同時に得ることが可能となる。   For the above reasons, the angle indication increases or decreases at the timing at which the values of the registers 52 of the integrators 5A and 5B of the two-phase oscillators constituting the storage / coefficient units 1 and 2 of FIG. 1 are updated every clock period (ΔT). By reading up / down signals as direction values and updating them simultaneously, the storage / coefficient units 1 and 2 (two-phase oscillator) control the phase, and the angle acquisition unit 3 (up / down counter) uses the angle. Since the information is controlled individually, the synchronized angle information φ, sin φ wave, and cos φ wave can be obtained simultaneously.

図5に、図2の2相発振器(図1の記憶/係数ユニット1,2)の具体回路を示す。積分器5Aは、加算器51と、初期値Aの取り込み用のセレクタ54と、レジスタ52と、1−δ係数器53とで構成される。加算器51とセレクタ54は図2の加算器4を構成する。ここでは、初期値Aは、レジスタ52に初期設定する値として最初だけセレクタ54を経由して取り込み、その後は、セレクタ54で加算器51の出力を常時選択させる。1−δ係数器53は、レジスタ52から読み出した値に係数δを乗算する複数のビットシフト回路531と、レジスタ52の出力値からビットシフト回路531の出力値を減算(=1−δ)する加算器532で構成される。   FIG. 5 shows a specific circuit of the two-phase oscillator of FIG. 2 (memory / coefficient units 1 and 2 of FIG. 1). The integrator 5 </ b> A includes an adder 51, a selector 54 for taking in an initial value A, a register 52, and a 1-δ coefficient unit 53. The adder 51 and the selector 54 constitute the adder 4 of FIG. Here, the initial value A is taken in via the selector 54 only as a value to be initially set in the register 52, and thereafter, the selector 54 always selects the output of the adder 51. The 1-δ coefficient unit 53 multiplies the value read from the register 52 by a coefficient δ, and subtracts the output value of the bit shift circuit 531 from the output value of the register 52 (= 1−δ). An adder 532 is included.

信号の発散を防止するための係数値は、通常の演算では浮動小数点での演算となるため、処理が重くなり、回路的にも複雑な回路となる。しかし、図5の1−δ係数器53に示すように、ビットシフトと加算の論理演算で値を求めると、簡単な回路構成で実現することができる。なお、1−δ係数器53の係数(1−δ)の実際の値は1未満であるが、その値は、式(8)の値を1として、この式(8)にωを代入することで求めることができる。もう一方の積分器5Bは、初期値を取り込むセレクタ54が削除されている他は、積分器5Aと同じ構成である。   Since the coefficient value for preventing signal divergence is a floating point calculation in a normal calculation, the processing becomes heavy and the circuit is complicated. However, as shown in the 1-δ coefficient unit 53 of FIG. 5, when a value is obtained by a logical operation of bit shift and addition, it can be realized with a simple circuit configuration. The actual value of the coefficient (1-δ) of the 1-δ coefficient unit 53 is less than 1, but the value is set to 1 in equation (8) and ω is substituted into this equation (8). Can be obtained. The other integrator 5B has the same configuration as that of the integrator 5A except that the selector 54 for capturing the initial value is deleted.

ω係数器6Bは、3個のビットシフト回路61と、そのビットシフト回路61の出力値を加算する加算器62と、その加算器62の出力値の極性を反転する乗算器63と、アップ/ダウン信号に応じて加算器62の出力と乗算器63の出力の一方を選択するセレクタ64とで構成される。ここでは、ωの周期をT=50としたときの例として、ビットシフト回路61を3個とした。T=50であれば、ω=2π/T=0.125663706・・・≒2-3+2-11+2-13となるので、ωを3個のビットシフト回路の出力の和で表現できる。ただし、このビットシフト回路61の個数は3個に限られるものではなく、必要な精度で決まる。もう一方のω係数器6Aは、以上説明したω係数器6Bと同じである。 The ω coefficient unit 6B includes three bit shift circuits 61, an adder 62 for adding the output values of the bit shift circuit 61, a multiplier 63 for inverting the polarity of the output value of the adder 62, an up / The selector 64 is configured to select one of the output of the adder 62 and the output of the multiplier 63 according to the down signal. Here, as an example when the period of ω is T = 50, the number of bit shift circuits 61 is three. If T = 50, ω = 2π / T = 0.125663706... ≈2 −3 +2 −11 +2 −13 , so that ω can be expressed by the sum of the outputs of the three bit shift circuits. However, the number of the bit shift circuits 61 is not limited to three, and is determined with necessary accuracy. The other ω coefficient unit 6A is the same as the ω coefficient unit 6B described above.

本実施例のディジタル発振器は、正弦波、余弦波、および角度情報が同時に必要な装置において利用する事ができる。図6に本実施例の応用例であるR/Dコンバータの構成を示す。図6において、正弦波/余弦波/角度同時生成回路100は、図1で表される構成であり、ここでsinφ、cosφ、角度φが同時生成される。cosφは、レゾルバ2次巻線から出力するsinθ・f(t)と乗算器71で乗算され、この乗算器71からsinθ・f(t)・cosφが出力する。また、sinφは、レゾルバ2次巻線から出力するcosθ・f(t)と乗算器72で乗算され、この乗算器72からcosθ・f(t)・sinφが出力する。そして、これらが減算器73で減算されることで、sin(θ−φ)・f(t)が得られ、同期検波器74に入力する。同期検波器74では、正弦波生成器75から出力するf(t)によりsin(θ−φ)・f(t)からf(t)が除去され、sin(θ−φ)が得られる。そして、このsin(θ−φ)が制御器76に入力することで、そこからアップ/ダウン信号が出力する。θ>φのときアップ信号となり、θ<φのときダウン信号となる。そして、このアップ/ダウン信号が正弦波/余弦波/角度同時生成回路100に帰還されることで、アップ信号のときはφの位相が進み、ダウン信号のときはφの位相が遅れることで、R/Dトラッキングが行われ、θ=φに収束する制御が行われて、正弦波/余弦波/角度同時生成回路100から出力する角度φが、レゾルバが検出している角度θを示すことになる。   The digital oscillator of the present embodiment can be used in a device that requires sine wave, cosine wave, and angle information at the same time. FIG. 6 shows a configuration of an R / D converter which is an application example of the present embodiment. In FIG. 6, a sine wave / cosine wave / angle simultaneous generation circuit 100 has the configuration shown in FIG. 1, where sin φ, cos φ, and angle φ are simultaneously generated. cosφ is multiplied by sin θ · f (t) output from the resolver secondary winding by a multiplier 71, and sinθ · f (t) · cosφ is output from the multiplier 71. Further, sinφ is multiplied by cos θ · f (t) output from the resolver secondary winding by a multiplier 72, and cos θ · f (t) · sinφ is output from the multiplier 72. These are subtracted by the subtractor 73 to obtain sin (θ−φ) · f (t), which is input to the synchronous detector 74. In the synchronous detector 74, f (t) is removed from sin (θ−φ) · f (t) by f (t) output from the sine wave generator 75, and sin (θ−φ) is obtained. Then, when sin (θ−φ) is input to the controller 76, an up / down signal is output therefrom. It becomes an up signal when θ> φ, and a down signal when θ <φ. The up / down signal is fed back to the sine wave / cosine wave / angle simultaneous generation circuit 100, so that the phase of φ is advanced when the signal is an up signal, and the phase of φ is delayed when the signal is a down signal. R / D tracking is performed, control to converge to θ = φ is performed, and the angle φ output from the simultaneous sine wave / cosine wave / angle generation circuit 100 indicates the angle θ detected by the resolver. Become.

このように、本実施例では、制御器76で得られたアップ/ダウン信号で回転角度φを生成し、同時にcosφ、sinφを生成している。このため波高値を記憶するためのテーブルが不要となり、処理を簡単にすることができる。   As described above, in this embodiment, the rotation angle φ is generated by the up / down signal obtained by the controller 76, and cos φ and sin φ are simultaneously generated. For this reason, a table for storing the crest value is not necessary, and the processing can be simplified.

100:正弦波/余弦波/角度同時生成回路、1,2:記憶/係数ユニット、3:角度取得ユニット、4:加算器
5A,5B:積分器、51:加算器、52:レジスタ、53:係数器、531:ビットシフト回路、532:加算器、54:セレクタ
6A,6B:ω係数器、61:ビットシフト回路、62:加算器、63:乗算器、64:セレクタ
71,72:乗算器、73:加算器、74:同期検波器、75:正弦波生成器、76:制御器
100: sine wave / cosine wave / angle simultaneous generation circuit, 1, 2: storage / coefficient unit, 3: angle acquisition unit, 4: adder 5A, 5B: integrator, 51: adder, 52: register, 53: Coefficient unit, 531: Bit shift circuit, 532: Adder, 54: Selector 6A, 6B: ω coefficient unit, 61: Bit shift circuit, 62: Adder, 63: Multiplier, 64: Selector 71, 72: Multiplier 73: adder, 74: synchronous detector, 75: sine wave generator, 76: controller

Claims (3)

初期値Aが設定されクロックで動作する第1の積分器、外部入力するアップ/ダウン信号でωの極性が切り替わる第1のω係数器、前記クロックで動作する第2の積分器、および前記アップ/ダウン信号でωの極性が前記第1のω係数器のωの極性と反対に切り替わる第2のω係数器を順次リング接続して2相発振器を構成し、且つ、前記アップ/ダウン信号に応じて前記クロックをアップ/ダウンカウントするアップ/ダウンカウンタを設け、前記第1の積分器からAcosωtを、前記第2の積分器からAsinωtを、前記アップ/ダウンカウンタからAcosωtおよびAsinωtの角度情報ωtを、それぞれ同時に生成し、前記アップ/ダウン信号が第1の値を示すとき前記ωtの位相を進め、第2の値を示すとき前記ωtの位相を遅らせることを特徴とするディジタル発振器。
A first integrator that is set with an initial value A and operates with a clock; a first ω coefficient unit that switches the polarity of ω by an up / down signal input externally; a second integrator that operates with the clock; and the up A second ω coefficient unit in which the polarity of ω is switched opposite to the ω polarity of the first ω coefficient unit is sequentially ring-connected to form a two-phase oscillator, and the up / down signal Accordingly, an up / down counter for counting up / down the clock is provided, Acosωt from the first integrator, Asinωt from the second integrator, and angle information ωt of Acosωt and Asinωt from the up / down counter. Are simultaneously generated, and the phase of ωt is advanced when the up / down signal indicates a first value, and the phase of ωt is delayed when the up / down signal indicates a second value. Digital oscillator.
請求項1に記載のディジタル発振器において、
前記第1および第2の積分器は、前記クロックで動作するレジスタと、該レジスタの出力信号に1未満の係数を乗じて前記レジスタの入力側に加算させる1−δ係数器とで構成されていることを特徴とするディジタル発振器。
The digital oscillator according to claim 1, wherein
The first and second integrators include a register operating with the clock, and a 1-δ coefficient unit that multiplies the output signal of the register by a coefficient less than 1 and adds the result to the input side of the register. A digital oscillator characterized by comprising:
請求項2に記載のディジタル発振器において、
前記1−δ係数器は、δの係数を設定する複数のビットシフト回路と、前記レジスタの出力から前記複数のビットシフト回路の出力を減算する加算器と、で構成されていることを特徴とするディジタル発振器。
The digital oscillator according to claim 2, wherein
The 1-δ coefficient unit includes a plurality of bit shift circuits that set a coefficient of δ, and an adder that subtracts the outputs of the plurality of bit shift circuits from the output of the register. Digital oscillator.
JP2011198037A 2011-09-12 2011-09-12 Digital oscillator Active JP5798844B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011198037A JP5798844B2 (en) 2011-09-12 2011-09-12 Digital oscillator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011198037A JP5798844B2 (en) 2011-09-12 2011-09-12 Digital oscillator

Publications (2)

Publication Number Publication Date
JP2013062575A JP2013062575A (en) 2013-04-04
JP5798844B2 true JP5798844B2 (en) 2015-10-21

Family

ID=48186907

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011198037A Active JP5798844B2 (en) 2011-09-12 2011-09-12 Digital oscillator

Country Status (1)

Country Link
JP (1) JP5798844B2 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2800452B2 (en) * 1991-03-29 1998-09-21 ヤマハ株式会社 Sine waveform generator
JPH05283937A (en) * 1992-04-03 1993-10-29 Toshiba Corp Digital oscillation circuit
JPH0923117A (en) * 1995-07-07 1997-01-21 Ishikawajima Harima Heavy Ind Co Ltd Method and device for generating sine wave
JP3512357B2 (en) * 1999-08-27 2004-03-29 松下電器産業株式会社 Signal generator
JP3674781B2 (en) * 2002-02-04 2005-07-20 日本電信電話株式会社 Sine wave generation method and circuit

Also Published As

Publication number Publication date
JP2013062575A (en) 2013-04-04

Similar Documents

Publication Publication Date Title
Van Hoang et al. An efficient approach to correct the signals and generate high-resolution quadrature pulses for magnetic encoders
JP6005781B2 (en) Resolver device
US20110090104A1 (en) Digital converter for processing resolver signal
JP2011055571A (en) Semiconductor power conversion device
WO2006135058A1 (en) Time interval measuring apparatus and jitter measuring apparatus using the same
EP2077621B1 (en) Reference signal generation circuit, angle converter, and angle detection apparatus
JP2009038885A (en) Signal extracting device and reactive power compensator containing the same
JP2012199815A (en) Digital pll circuit and clock generation method
JP2010151669A (en) Physical quantity detection circuit and physical quantity sensor device
JP2006017659A (en) Method of converting analog signal into digital signal
JP4935166B2 (en) Phase synchronization control device for power converter
JP5798844B2 (en) Digital oscillator
JP6809707B2 (en) How to convert an analog signal to a digital signal
JP2013238431A (en) Resolver device
JP4355395B2 (en) Position detection data generation method and apparatus
JP2004061157A (en) Signal processing apparatus and signal processing method of resolver
JP2013224865A (en) Signal processing device
JP5823785B2 (en) Rotation angle detector
JP2013072686A (en) Vehicle
JP2012058007A (en) Method for converting analog signal into digital signal
JP2005143114A (en) Switching circuit for performing clock interpolation
JP6149492B2 (en) Storage device
US9673833B1 (en) Aligning asynchronous signals by time shifting information
JPH11241927A (en) Position detecting device
JP7179280B2 (en) R/D converter

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140902

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150519

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150521

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150630

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20150730

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150824

R150 Certificate of patent or registration of utility model

Ref document number: 5798844

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250