JP2012217121A - Digital phase-locked loop and physical quantity detection sensor - Google Patents

Digital phase-locked loop and physical quantity detection sensor Download PDF

Info

Publication number
JP2012217121A
JP2012217121A JP2011182640A JP2011182640A JP2012217121A JP 2012217121 A JP2012217121 A JP 2012217121A JP 2011182640 A JP2011182640 A JP 2011182640A JP 2011182640 A JP2011182640 A JP 2011182640A JP 2012217121 A JP2012217121 A JP 2012217121A
Authority
JP
Japan
Prior art keywords
value
clock
phase
unit
divider
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.)
Granted
Application number
JP2011182640A
Other languages
Japanese (ja)
Other versions
JP5601292B2 (en
Inventor
Kenji Yamada
健二 山田
Yasutaka Kaneko
康隆 金子
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.)
Denso Corp
Original Assignee
Denso Corp
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 Denso Corp filed Critical Denso Corp
Priority to JP2011182640A priority Critical patent/JP5601292B2/en
Publication of JP2012217121A publication Critical patent/JP2012217121A/en
Application granted granted Critical
Publication of JP5601292B2 publication Critical patent/JP5601292B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a digital phase-locked loop and a physical quantity detection sensor that implement phase locking in a simple configuration.SOLUTION: A phase comparison section calculates a phase difference between a code clock CLK1 indicating code information about a sample value and a divided clock CLK2 from a frequency divider. Specifically, the phase comparison section counts down from a rise timing of the code clock CLK1, then counts up at a fall timing of the divided clock CLK2 from the frequency divider, and outputs a count value at a rise timing of the code clock CLK1 as a phase comparison count value. An adder adds a phase correction value from a phase correction section to the phase comparison count value before outputting it to a loop filter.

Description

本発明は、位相同期して所定の周波数信号を出力するデジタル位相同期回路および物理量検出センサに関する。   The present invention relates to a digital phase synchronization circuit and a physical quantity detection sensor that output a predetermined frequency signal in phase synchronization.

一般に、物理量検出センサの処理回路は、アナログ回路をデジタル回路に置き換えると、微細な半導体製造プロセスを用いて製造できるためICチップを小型化できコストを削減できる。また、入力したアナログ信号を早い段階でデジタル信号処理系に変換できればその効果はより大きい。   In general, when an analog circuit is replaced with a digital circuit, a processing circuit of a physical quantity detection sensor can be manufactured using a fine semiconductor manufacturing process, so that an IC chip can be reduced in size and cost can be reduced. In addition, if the input analog signal can be converted into a digital signal processing system at an early stage, the effect is greater.

特許文献1はアナログPLLを採用した技術の一例を示しており、図18は、この特許文献1の技術を適用したPLL回路のブロック構成を示している。PLL回路1は、波形整形回路2を通じて入力される入力信号に基づいて出力信号を出力するもので、電圧制御発振器(VCO)3および発振制御回路4を備えている。   Patent Document 1 shows an example of a technology that employs an analog PLL, and FIG. 18 shows a block configuration of a PLL circuit to which the technology of Patent Document 1 is applied. The PLL circuit 1 outputs an output signal based on an input signal input through the waveform shaping circuit 2, and includes a voltage controlled oscillator (VCO) 3 and an oscillation control circuit 4.

ここで、発振制御回路4は、制御電圧を生成するローパスフィルタ(LPF)5と、電圧制御発振器3の発振信号を分周して分周信号を生成する分周器(DIV)6と、入力信号と分周信号の位相差に基づいて充電信号または放電信号を出力する位相検出回路(PFD)7と、充電信号または放電信号に応じてローパスフィルタ5の制御電圧を増加または減少させるチャージポンプ(CP)8とを含んで構成されている。このようなブロック構成のアナログ回路の入力信号をAD変換し、アナログ回路をデジタル化すると、位相検出回路の位相比較結果にデジタル離散化による位相誤差が発生するため、正確な位相同期ができないという問題を生じる。この構成で位相誤差をなくすため高精度化しようとすると、サンプリング数を増やして高速サンプリングする必要がある。   Here, the oscillation control circuit 4 includes a low-pass filter (LPF) 5 that generates a control voltage, a frequency divider (DIV) 6 that divides the oscillation signal of the voltage-controlled oscillator 3 to generate a divided signal, and an input A phase detection circuit (PFD) 7 that outputs a charge signal or a discharge signal based on the phase difference between the signal and the frequency-divided signal, and a charge pump that increases or decreases the control voltage of the low-pass filter 5 according to the charge signal or the discharge signal ( CP) 8. When the input signal of an analog circuit having such a block configuration is AD-converted and the analog circuit is digitized, a phase error due to digital discretization occurs in the phase comparison result of the phase detection circuit, so that accurate phase synchronization cannot be performed. Produce. In order to eliminate the phase error with this configuration, it is necessary to increase the number of samplings and perform high-speed sampling in order to increase the accuracy.

また、本願に関連したデジタル位相同期回路は特許文献2〜4にも開示されている。特許文献2記載の技術思想では、入力信号が非周期的な信号であり、非周期的に生じるゼロクロスの度に位相比較、周波数比較を行わなければならず、周波数比較器、ローパスフィルタに加えて、周波数比較器をスイッチによってオンオフ制御を行う回路を備える必要があるため、処理が複雑で回路サイズが大きい。   Moreover, the digital phase locked loop circuit relevant to this application is also disclosed by patent documents 2-4. In the technical idea described in Patent Document 2, the input signal is an aperiodic signal, and a phase comparison and a frequency comparison must be performed every time a zero cross occurs aperiodically. In addition to the frequency comparator and the low-pass filter, Since it is necessary to provide a circuit for performing on / off control of the frequency comparator with a switch, the processing is complicated and the circuit size is large.

また、特許文献3記載の技術思想では、デジタル位相同期回路において、時間軸離散的な時間点にのみ振幅値を有する入力信号におけるゼロクロス点を挟む2時間点の入力信号の振幅比を求めてゼロクロスを推定し、時間差に応じた位相量信号を出力している。   Further, according to the technical idea described in Patent Document 3, in the digital phase synchronization circuit, the amplitude ratio of the input signal at the two time points sandwiching the zero cross point in the input signal having the amplitude value only at the time axis discrete time points is obtained to obtain the zero cross. And a phase amount signal corresponding to the time difference is output.

しかしながら、この技術思想においても、入力信号はゼロクロス推定で位相を算出するも、比較信号はカウントのみによって位相を算出するため、高精度化のためにはカウントするクロックを高速にする必要があるとともに、ゼロクロス点を推定しカウンタのリセット信号などでち密なタイミングに反映する必要があるためタイミング設計が難しい。また、特許文献4記載の技術思想では、位相同期回路において、ゼロクロス点前後の離散入力信号を用いた数値演算処理により、サンプル点に対するゼロクロス点の位相を算出し、クロックの位相を制御している。しかしながら、簡単な構成で正確な位相同期を行うことができる構成が望まれている。   However, even in this technical idea, although the phase of the input signal is calculated by zero-cross estimation, the phase of the comparison signal is calculated only by counting, so that it is necessary to speed up the counting clock for high accuracy. The timing design is difficult because it is necessary to estimate the zero-cross point and reflect it in the dense timing with the reset signal of the counter. In the technical idea described in Patent Document 4, the phase of the zero-cross point with respect to the sample point is calculated and the phase of the clock is controlled by numerical calculation processing using discrete input signals before and after the zero-cross point in the phase synchronization circuit. . However, a configuration capable of performing accurate phase synchronization with a simple configuration is desired.

特開2009−281888号公報JP 2009-281888 A 特開平10−107623号公報JP-A-10-107623 特開昭55−115737号公報JP 55-115737 A 特開平06−119720号公報Japanese Patent Laid-Open No. 06-119720

本発明は、上記事情に鑑みてなされたもので、その目的は、簡単な構成で正確な位相同期を行うことができるデジタル位相同期回路および物理量検出センサを提供することにある。   The present invention has been made in view of the above circumstances, and an object thereof is to provide a digital phase synchronization circuit and a physical quantity detection sensor capable of performing accurate phase synchronization with a simple configuration.

請求項1記載の発明によれば、次のように作用する。位相補正部はAD変換器のサンプリング値のゼロクロス前後の値を線形近似しゼロクロスタイミングの位相補正値を算出する。他方、クロック生成部はAD変換器のサンプリング値の符号情報に応じて符号クロックを生成し、位相比較部がクロック生成部の符号クロックと分周部の分周クロックとの位相差を算出する。すると、AD変換器のサンプリング値の符号が切替わるタイミングと分周部の分周クロックのタイミングの位相差を検出できる。   According to invention of Claim 1, it acts as follows. The phase correction unit linearly approximates the values before and after the zero crossing of the sampling value of the AD converter and calculates a phase correction value at the zero crossing timing. On the other hand, the clock generation unit generates a code clock according to the code information of the sampling value of the AD converter, and the phase comparison unit calculates the phase difference between the code clock of the clock generation unit and the frequency-divided clock of the frequency-dividing unit. Then, it is possible to detect the phase difference between the timing at which the sign of the sampling value of the AD converter is switched and the timing of the divided clock of the frequency dividing unit.

調整出力部には、この位相比較部の位相差を位相補正部の位相補正値で補正した値が与えられるため、調整出力部はこの値に応じた調整量を制御発振部の入力調整値として出力し、制御発振部はこの調整量に応じてN逓倍周波数信号を発振出力できる。   Since the adjustment output unit is given a value obtained by correcting the phase difference of the phase comparison unit with the phase correction value of the phase correction unit, the adjustment output unit uses the adjustment amount corresponding to this value as the input adjustment value of the control oscillation unit. The control oscillation unit can oscillate and output an N-multiplied frequency signal according to the adjustment amount.

したがって、位相比較部、加減算部、調整出力部、制御発振部および分周部によるフィードバックループは、クロック生成部が生成した符号クロックの位相を位相補正部の位相補正値により補正しているため、位相を正確に同期することができ、制御発振部は位相同期した安定的なN逓倍周波数信号を発振出力できる。主に位相補正部、位相比較部により位相同期を図っているため、正確な位相同期処理を実現できる。   Therefore, the feedback loop by the phase comparison unit, addition / subtraction unit, adjustment output unit, control oscillation unit, and frequency division unit corrects the phase of the code clock generated by the clock generation unit with the phase correction value of the phase correction unit, The phase can be accurately synchronized, and the control oscillation unit can oscillate and output a phase-synchronized stable N-multiplied frequency signal. Since phase synchronization is mainly achieved by the phase correction unit and the phase comparison unit, accurate phase synchronization processing can be realized.

また、アップダウンカウンタがクロック生成部の符号クロックによるカウント開始タイミングから一方向にカウントを開始し、分周部の分周クロックによるカウント転換タイミングにて逆方向にカウントを逆転し、クロック生成部の符号クロックによるカウント終了タイミングにて得られたカウント値を出力し、このカウント値を位相算出値とする。これにより、符号クロックと分周クロックの位相差を簡単な構成で算出できる。   In addition, the up / down counter starts counting in one direction from the count start timing by the code clock of the clock generation unit, reverses the count in the reverse direction at the count conversion timing by the frequency division clock of the frequency division unit, The count value obtained at the count end timing by the code clock is output, and this count value is used as the phase calculation value. Thereby, the phase difference between the code clock and the divided clock can be calculated with a simple configuration.

請求項2記載の発明によれば、アップダウンカウンタが、クロック生成部の符号クロックの立上りタイミングから所定の基準クロックに応じてダウンカウントし、当該ダウンカウントされてから分周部の分周クロックによる立下りタイミングを受け付けると当該立下りタイミングから基準クロックに応じてアップカウントする。そして、位相比較部は、クロック生成部の符号クロックの立上りタイミングにてアップダウンカウンタによるアップカウントを終了し、得られたカウント値を位相算出値として出力する。これにより、符号クロックと分周クロックの位相差を簡単な構成で算出できる。   According to the second aspect of the invention, the up / down counter counts down according to a predetermined reference clock from the rising timing of the code clock of the clock generation unit, and after the down-counting, the up / down counter uses the divided clock of the frequency division unit. When the falling timing is received, the count-up is performed according to the reference clock from the falling timing. Then, the phase comparison unit ends the up-counting by the up-down counter at the rising timing of the code clock of the clock generation unit, and outputs the obtained count value as a phase calculation value. Thereby, the phase difference between the code clock and the divided clock can be calculated with a simple configuration.

請求項3記載の発明に示すように、アップダウンカウンタが2つの同じカウンタを組み合わせてダウンカウントおよびアップカウントすると良い。
請求項4記載の発明によれば、位相補正部の第1減算器が遅延サンプリング値x(n−1)(立上りゼロクロス時は負数)を、AD変換器の現サンプリング値x(n)(立上りゼロクロス時は正数)から減算すると、減算値x(n)−x(n−1)を算出できる。そして、第1除算器がAD変換部の現サンプリング値x(n)を第1減算器の減算値(x(n)−x(n−1))によって除算すると、x(n)/(x(n)−x(n−1))を算出できる。この値は、AD変換部のゼロクロス前後のサンプリング値の振幅比分に相当する値となり、現サンプリングタイミングおよび遅延サンプリングタイミング間の時間に対する現サンプリングタイミングからゼロクロスタイミングの時間の比に対応する。
As shown in the third aspect of the present invention, the up / down counter may be configured to down-count and up-count by combining two identical counters.
According to the fourth aspect of the present invention, the first subtractor of the phase correction unit uses the delay sampling value x (n−1) (a negative number at the rising zero crossing) and the current sampling value x (n) (the rising edge of the AD converter). Subtraction value x (n) -x (n-1) can be calculated by subtracting from a positive number at the time of zero crossing. Then, when the first divider divides the current sampling value x (n) of the AD conversion unit by the subtraction value (x (n) −x (n−1)) of the first subtractor, x (n) / (x (N) -x (n-1)) can be calculated. This value corresponds to the amplitude ratio of the sampling value before and after the zero crossing of the AD converter, and corresponds to the ratio of the time from the current sampling timing to the zero crossing timing with respect to the time between the current sampling timing and the delayed sampling timing.

位相比較部のアップダウンカウンタのダウンカウント増加分はアップカウント減少分となり、逆にダウンカウント減少分はアップカウント増加分となるため、位相比較部で得られた位相差に相当するカウント値はカウントクロックの2倍のカウント値となる。   The increment of the downcount of the up / down counter of the phase comparator becomes the increment of the upcount, and conversely, the increment of the downcount becomes the increment of the upcount. Therefore, the count value corresponding to the phase difference obtained by the phase comparator is counted. The count value is twice that of the clock.

したがって、第1乗算器が、サンプリング周期に相当するカウントクロックのカウント値を−2倍した値を第1除算器の除算値x(n)/(x(n)−x(n−1))と乗算すれば、位相比較部と位相補正部のカウント値増減度をマッチさせた位相値を算出できる。したがって、加減算部が位相比較部によって算出した位相算出値に位相補正部によって算出した位相補正値を加減算して出力することでゼロクロスタイミングに応じた位相値を正確に出力できる。   Therefore, the first multiplier obtains a value obtained by multiplying the count value of the count clock corresponding to the sampling period by -2. The divided value x (n) / (x (n) -x (n-1)) of the first divider. And the phase value obtained by matching the count value increase / decrease degrees of the phase comparison unit and the phase correction unit can be calculated. Therefore, the phase value corresponding to the zero cross timing can be accurately output by adding and subtracting the phase correction value calculated by the phase correction unit to the phase calculation value calculated by the phase comparison unit.

請求項5記載の発明によれば、位相補正部の第1減算器、第1除算器、第1乗算器は、その少なくとも何れか一つが演算許可/停止の切換機能を有しているため、第1減算器、第1除算器、第1乗算器の少なくとも一つを演算停止でき、演算停止中の消費電力を低減できる。   According to the fifth aspect of the present invention, at least one of the first subtractor, the first divider, and the first multiplier of the phase correction unit has a calculation permission / stop switching function. At least one of the first subtractor, the first divider, and the first multiplier can be stopped, and the power consumption during the stop of the calculation can be reduced.

請求項6記載の発明によれば、固定値設定器は、演算停止対象となる演算器の入力を固定値に設定するため、例えば演算器を構成するトランジスタがオンオフしたときに生じるスイッチング損失を低減でき、演算停止中における消費電力を低減できる。   According to the sixth aspect of the present invention, since the fixed value setter sets the input of the arithmetic unit to be stopped to a fixed value, for example, the switching loss caused when the transistors constituting the arithmetic unit are turned on and off is reduced. It is possible to reduce the power consumption when the computation is stopped.

請求項7記載の発明によれば、第1減算器、第1除算器および第1乗算器がクロックに同期してデータを保持する構成であるとき、第1減算器、第1除算器および第1乗算器の少なくとも何れか一つの演算を停止する間、演算停止対象となる演算器の動作クロックを停止すると良い。この場合、例えばクロックによって動作するトランジスタのオンオフ時のスイッチング損失を低減でき、演算停止中における消費電力を低減できる。   According to the seventh aspect of the present invention, when the first subtracter, the first divider, and the first multiplier hold data in synchronization with the clock, the first subtracter, the first divider, and the first divider While at least one of the operations of one multiplier is stopped, the operation clock of the operation unit to be stopped is preferably stopped. In this case, for example, switching loss at the time of turning on and off a transistor that operates according to a clock can be reduced, and power consumption when computation is stopped can be reduced.

請求項8記載の発明によれば、ゼロクロス検出部はAD変換器のサンプリング値がゼロクロスしたタイミングを検出するが、ゼロクロス検出部により検出されたゼロクロスタイミングの信号を用いて、位相補正部の第1減算器、第1除算器および第1乗算器の少なくとも何れか一つの演算を停止する期間を設定する。   According to the eighth aspect of the present invention, the zero-cross detection unit detects the timing at which the sampling value of the AD converter has zero-crossed, and the first cross-phase signal of the phase correction unit is detected using the zero-cross timing signal detected by the zero-cross detection unit. A period for stopping at least one of the subtractor, the first divider, and the first multiplier is set.

請求項9記載の発明によれば、クロック生成部の符号クロックを用いて位相補正部の第
1減算器、第1除算器および第1乗算器の何れか少なくとも何れか一つの演算を停止する期間を設定する。
According to the ninth aspect of the present invention, the period during which at least one of the first subtractor, the first divider, and the first multiplier of the phase correction unit is stopped using the code clock of the clock generation unit. Set.

請求項10記載の発明によれば、位相補正部の第2加算器が、第2遅延器の遅延サンプリング値|x(n−1)|(x(n−1)は立上りゼロクロス時に負数)と絶対値演算器の演算値|x(n)|(x(n)は立上りゼロクロス時に正数)とを加算し、第2除算器が絶対値演算器の演算値|x(n)|を第2加算器の加算値(|x(n)|+|x(n−1)|)によって除算すると|x(n)|/(|x(n)|+|x(n−1)|)を算出できる。したがって、請求項4記載の発明と同様に、第2乗算器が、サンプリング周期に相当するカウントクロックのカウント値を−2倍した値を第2除算器の除算値|x(n)|/(|x(n)|+|x(n−1)|)と乗算すれば、位相比較部と位相補正部のカウント値増減度をマッチさせた位相値を算出でき、同様にゼロクロスタイミングに応じた位相値を正確に出力できる。   According to the tenth aspect of the present invention, the second adder of the phase correction unit is configured such that the delay sampling value | x (n−1) | (where x (n−1) is a negative number at the rising zero cross) of the second delay unit. The calculated value | x (n) | (x (n) is a positive number at the rising zero crossing) is added to the absolute value calculator, and the second divider calculates the calculated value | x (n) | Dividing by the addition value (| x (n) | + | x (n-1) |) of the two adders gives | x (n) | / (| x (n) | + | x (n-1) |) Can be calculated. Therefore, similarly to the invention according to claim 4, the second multiplier obtains a value obtained by multiplying the count value of the count clock corresponding to the sampling period by -2 by the divided value | x (n) | / ( | X (n) | + | x (n−1) |) can be used to calculate a phase value that matches the count value increase / decrease degree of the phase comparison unit and the phase correction unit, and similarly according to the zero cross timing. The phase value can be output accurately.

請求項11記載の発明によれば、位相補正部の第2減算器、第2除算器、第2乗算器は、その少なくとも何れか一つが演算許可/演算停止の切換機能を有しているため、第2減算器、第2除算器、第2乗算器は演算停止することができ、演算停止中の消費電力を低減できる。   According to the eleventh aspect of the present invention, at least one of the second subtractor, the second divider, and the second multiplier of the phase correction unit has a function of switching between operation permission / operation stop. , The second subtractor, the second divider, and the second multiplier can stop the operation, and the power consumption during the operation stop can be reduced.

請求項12記載の発明によれば、固定値設定器は、演算停止対象となる演算器の入力を固定値に設定するため、例えば演算器を構成するトランジスタがオンオフしたときに生じるスイッチング損失を低減でき、演算停止中の消費電力を低減できる。   According to the twelfth aspect of the present invention, the fixed value setter sets the input of the computing unit to be stopped to a fixed value, so that, for example, the switching loss caused when the transistors constituting the computing unit are turned on and off is reduced. It is possible to reduce power consumption while the computation is stopped.

請求項13記載の発明によれば、第2減算器、第2除算器および第2乗算器がクロックに同期してデータを保持する構成であるとき、第2減算器、第2除算器および第2乗算器の少なくとも何れか一つの演算を停止する間、演算停止対象となる演算器の動作クロックを停止すると良い。この場合、例えばクロックによって動作するトランジスタのオンオフ時のスイッチング損失を低減でき、演算停止中の消費電力を低減できる。   According to a thirteenth aspect of the present invention, when the second subtractor, the second divider, and the second multiplier are configured to hold data in synchronization with the clock, the second subtracter, the second divider, and the second divider While at least one of the operations of the two multipliers is stopped, the operation clock of the operation unit to be stopped is preferably stopped. In this case, for example, switching loss at the time of turning on and off a transistor that operates according to a clock can be reduced, and power consumption during computation stop can be reduced.

請求項14記載の発明によれば、ゼロクロス検出部はAD変換器のサンプリング値がゼロクロスしたタイミングを検出するが、ゼロクロス検出部により検出されたゼロクロスタイミングの信号を用いて、位相補正部の第2減算器、第2除算器および第2乗算器の少なくとも何れか一つの演算を停止する期間を設定する。   According to the fourteenth aspect of the present invention, the zero-cross detection unit detects the timing at which the sampling value of the AD converter has zero-crossed. The second cross-phase signal of the phase correction unit is detected using the zero-cross timing signal detected by the zero-cross detection unit. A period during which at least one of the subtracter, the second divider, and the second multiplier is stopped is set.

請求項15記載の発明によれば、クロック生成部の符号クロックを用いて位相補正部の第2減算器、第2除算器および第2乗算器の何れか少なくとも何れか一つの演算を停止する期間を設定する。   According to the fifteenth aspect of the present invention, the period in which at least one of the second subtracter, the second divider, and the second multiplier of the phase correction unit is stopped using the code clock of the clock generation unit. Set.

請求項16記載の発明のように、AGC、信号検出部、請求項1ないし15の何れかに記載のデジタル位相同期回路を備えた物理量検出センサに適用すると良い。   The invention may be applied to a physical quantity detection sensor including an AGC, a signal detection unit, and the digital phase synchronization circuit according to any one of claims 1 to 15 as in the invention described in claim 16.

本発明の第1実施形態における振動型角速度センサの電気的構成を示すブロック図The block diagram which shows the electrical constitution of the vibration type angular velocity sensor in 1st Embodiment of this invention. 位相同期回路のハードウェア構成図Hardware diagram of phase synchronization circuit 位相補正部のハードウェア構成図Hardware diagram of phase correction unit 位相補正値の説明図Illustration of phase correction value 符号情報と符号クロックとの対応関係を示す図The figure which shows the correspondence of code information and code clock 位相比較部のハードウェア構成図Hardware diagram of phase comparator 位相比較部の位相比較カウント値の説明図((a)は基準出力、(b)は位相遅れ、(c)は位相進み)Explanatory drawing of the phase comparison count value of a phase comparison part ((a) is a reference output, (b) is a phase delay, (c) is a phase advance) 位相比較部の位相比較カウント値の説明図((a)は基準出力、(b)は周波数高、(c)は周波数低)Explanatory drawing of the phase comparison count value of a phase comparison part ((a) is a reference output, (b) is high frequency, (c) is low frequency) 本発明の第2実施形態を示す図3相当図FIG. 3 equivalent view showing a second embodiment of the present invention. 本発明の第3実施形態を示す図6相当図FIG. 6 equivalent view showing a third embodiment of the present invention. 本発明の第4実施形態を示す図6相当図FIG. 6 equivalent view showing a fourth embodiment of the present invention. 本発明の第5実施形態を示す図6相当図FIG. 6 equivalent view showing a fifth embodiment of the present invention. 本発明の第6実施形態を示す説明図((a)は図3相当図、(b)(c)はデータマスク回路の構成例)Explanatory drawing which shows 6th Embodiment of this invention ((a) is an equivalent figure of FIG. 3, (b) (c) is a structural example of a data mask circuit.) 動作を概略的に示すタイミングチャートTiming chart schematically showing the operation 本発明の第7実施形態を示す図3相当図FIG. 3 equivalent view showing a seventh embodiment of the present invention 動作を概略的に示すタイミングチャートTiming chart schematically showing the operation 本発明の第8実施形態を示す図9相当図FIG. 9 equivalent view showing an eighth embodiment of the present invention. 従来例を示す図2相当図FIG. 2 equivalent diagram showing a conventional example

(第1実施形態)
以下、本発明の物理量検出センサを振動型角速度センサに適用した第1実施形態について図面を参照しながら説明する。車両内では、舵角、車輪速、加速度の各センサの情報から、各車輪の駆動トルク、ブレーキ力を適切に制御することにより車両のスピンやドリフトを抑制する。したがって、振動型角速度センサ10は、車両性能を向上させる上で重要なセンサとなる。
(First embodiment)
Hereinafter, a first embodiment in which a physical quantity detection sensor of the present invention is applied to a vibration type angular velocity sensor will be described with reference to the drawings. In the vehicle, the spin and drift of the vehicle are suppressed by appropriately controlling the drive torque and brake force of each wheel from the information of the sensors of the steering angle, wheel speed, and acceleration. Therefore, the vibration type angular velocity sensor 10 is an important sensor for improving the vehicle performance.

図1は、振動型角速度センサの電気的なブロック構成を示している。振動型角速度センサ10は、特に車両用のヨーレートセンサとして用いられるもので、振動子11、信号検出回路12、位相同期回路13、タイミング生成部13a、AGC14、角速度検出部15を接続して構成される。振動子11は、AGC14から駆動信号が与えられることにより基準方向に振動する。この振動した振動子11に角速度Ωが加わると、基準方向と直交する検出方向にコリオリ力が働く。例えば、質量mの物体が角速度ベクトルΩで回転する平面上を速度ベクトルvで移動すると、その物体に発生するコリオリ力Fcは、
Fc = 2mv×Ω(×は外積を示す) …(1)
で表される。信号検出回路12は、基準方向の振動信号を波形整形する回路を示している。振動子11には電極が構成されており、信号検出回路12は、基準方向に振動した振動子11の電極の容量変化をCV変換回路により電圧値として検出することで基準方向の振動信号(以下モニタ信号)を検出し、フィルタ、アンプなどを通じて出力する。
FIG. 1 shows an electrical block configuration of the vibration type angular velocity sensor. The vibration type angular velocity sensor 10 is used especially as a yaw rate sensor for a vehicle, and is configured by connecting a vibrator 11, a signal detection circuit 12, a phase synchronization circuit 13, a timing generation unit 13a, an AGC 14, and an angular velocity detection unit 15. The The vibrator 11 vibrates in the reference direction when a drive signal is given from the AGC 14. When an angular velocity Ω is applied to the vibrator 11 that vibrates, Coriolis force acts in the detection direction orthogonal to the reference direction. For example, when an object of mass m moves with a velocity vector v on a plane rotating with an angular velocity vector Ω, the Coriolis force Fc generated on the object is
Fc = 2mv × Ω (× indicates an outer product) (1)
It is represented by The signal detection circuit 12 is a circuit that shapes the waveform of the vibration signal in the reference direction. The vibrator 11 includes electrodes, and the signal detection circuit 12 detects a change in the capacitance of the electrode of the vibrator 11 that vibrates in the reference direction as a voltage value by the CV conversion circuit, thereby causing a vibration signal in the reference direction (hereinafter referred to as a reference value). Monitor signal) and output through a filter, amplifier, etc.

デジタル位相同期回路(以下、位相同期回路と称す)13は、所謂デジタルPLL(Phase Locked Loop)回路であり、入力信号と出力信号との位相差を検出し同期した周波数信号を発振出力する。この位相同期回路13の詳細構成は後述する。タイミング生成部13aは、駆動タイミング信号、サンプリングクロック、カウントクロック等のセンサ回路の動作に要するタイミング信号を生成する。AGC(Auto Gain Control)14は、信号検出回路12の出力信号振幅を基に、振動子11の基準方向の振動が所望の振動状態で一定となるように、タイミング生成部13aの駆動タイミング信号の振幅を制御した駆動信号を振動子11に印加する。   A digital phase synchronization circuit (hereinafter referred to as a phase synchronization circuit) 13 is a so-called digital PLL (Phase Locked Loop) circuit that detects a phase difference between an input signal and an output signal and oscillates and outputs a synchronized frequency signal. The detailed configuration of the phase synchronization circuit 13 will be described later. The timing generator 13a generates timing signals required for the operation of the sensor circuit, such as a drive timing signal, a sampling clock, and a count clock. Based on the output signal amplitude of the signal detection circuit 12, an AGC (Auto Gain Control) 14 is used for the drive timing signal of the timing generator 13a so that the vibration in the reference direction of the vibrator 11 becomes constant in a desired vibration state. A drive signal whose amplitude is controlled is applied to the vibrator 11.

角速度検出部15は、振動子11に生じたコリオリ力に応じた角速度振動信号について、信号検出回路12と同等の処理で電圧値として検出し、同期検波回路、LPF(Low Pass Filter)を用いて角速度振動成分のみを抽出し、角速度情報(センサ信号)として出力する。   The angular velocity detection unit 15 detects an angular velocity vibration signal corresponding to the Coriolis force generated in the vibrator 11 as a voltage value by a process equivalent to the signal detection circuit 12, and uses a synchronous detection circuit and an LPF (Low Pass Filter). Only the angular velocity vibration component is extracted and output as angular velocity information (sensor signal).

振動子11には固有振動数が存在し、角速度振動信号を効率良く検出するためには、振動子11に適切な周波数の駆動信号を印加すると良く、位相同期回路13を用いて駆動信号を適切な周波数および位相に制御すると良い。   The vibrator 11 has a natural frequency, and in order to efficiently detect the angular velocity vibration signal, a drive signal having an appropriate frequency may be applied to the vibrator 11, and the drive signal is appropriately set using the phase synchronization circuit 13. It is good to control to a proper frequency and phase.

図2は、位相同期回路の電気的構成の概略的なブロック図を示している。本実施形態では、全ての構成要素をデジタルブロックで構成した実施形態を示す。
位相同期回路13は、AD変換器16、位相補正部17、クロック生成部18、位相比較部19、加減算部としての加算器20、調整出力部としてのループフィルタ21、制御発振部としてのDCO(Digital Controlled Oscillator)22、分周部としての分周器23を接続して構成されている。この位相同期回路13は、AD変換器16によりモニタ信号をサンプリングしたサンプリング値に応じてPLL出力クロックをAGC14に出力する。
FIG. 2 shows a schematic block diagram of the electrical configuration of the phase synchronization circuit. In the present embodiment, an embodiment in which all components are configured by digital blocks is shown.
The phase synchronization circuit 13 includes an AD converter 16, a phase correction unit 17, a clock generation unit 18, a phase comparison unit 19, an adder 20 as an addition / subtraction unit, a loop filter 21 as an adjustment output unit, and a DCO (control oscillator). A digitally controlled oscillator) 22 and a frequency divider 23 as a frequency divider are connected. The phase synchronization circuit 13 outputs a PLL output clock to the AGC 14 according to the sampling value obtained by sampling the monitor signal by the AD converter 16.

AD変換器16は、与えられたサンプリングクロックに応じてモニタ信号をサンプルホールドし、位相補正部17およびクロック生成部18の入力デジタル値とする。位相補正部17は、サンプリング値がゼロクロスする前後のサンプリング値に応じて、ゼロクロスタイミングの位相を補正する位相補正値を出力する。この位相補正部17の具体構成例を図3に示している。   The AD converter 16 samples and holds the monitor signal in accordance with the given sampling clock, and uses it as the input digital value of the phase correction unit 17 and the clock generation unit 18. The phase correction unit 17 outputs a phase correction value for correcting the phase of the zero cross timing according to the sampling value before and after the sampling value is zero crossed. A specific configuration example of the phase correction unit 17 is shown in FIG.

図3に示すように、位相補正部17は、遅延器(第1遅延器に相当)24、減算器(第1減算器に相当)25、除算器(第1除算器に相当)26、乗算器(第1乗算器に相当)27、サンプルホールド回路28、および立上りゼロクロス検出回路29を組み合わせたハードウェアにより構成されている。位相補正部17は、ゼロクロス前後のAD変換器16のサンプリング値を線形近似することでゼロクロスタイミングの位相値を算出する。   As shown in FIG. 3, the phase correction unit 17 includes a delay unit (corresponding to the first delay unit) 24, a subtracter (corresponding to the first subtractor) 25, a divider (corresponding to the first divider) 26, and multiplication. A hardware (a first multiplier) 27, a sample hold circuit 28, and a rising zero-cross detection circuit 29 are combined. The phase correcting unit 17 calculates the phase value of the zero cross timing by linearly approximating the sampling value of the AD converter 16 before and after the zero cross.

遅延器24は、AD変換器16のサンプリング値x(n)を1サンプリングクロック分遅延し、減算器25に出力する。減算器25は、AD変換器16の現サンプリング値x(n)から1サンプリングクロック分遅延した遅延サンプリング値x(n−1)を減算(すなわち、x(n)−(−|x(n−1)|))し、除算器26に出力する。   The delay unit 24 delays the sampling value x (n) of the AD converter 16 by one sampling clock and outputs it to the subtracter 25. The subtracter 25 subtracts the delayed sampling value x (n−1) delayed by one sampling clock from the current sampling value x (n) of the AD converter 16 (that is, x (n) − (− | x (n− 1) |)) and output to the divider 26.

除算器26は、現サンプリング値x(n)を減算器25で減算した結果x(n)−x(n−1)で除算し、乗算器27に出力する。乗算器27は、定数(サンプリング周期に相当するカウントクロックのカウント値を−2倍した値)に除算器26の除算値x(n)/(x(n)−x(n−1))を乗算し、サンプルホールド回路28に与える。サンプルホールド回路28は、乗算器27の乗算値を立上りゼロクロス検出回路29で検出されたタイミングでサンプルホールドする。   The divider 26 divides the current sampling value x (n) by the result x (n) −x (n−1) obtained by subtracting by the subtractor 25 and outputs the result to the multiplier 27. The multiplier 27 sets the constant (a value obtained by multiplying the count value of the count clock corresponding to the sampling period by -2) to the division value x (n) / (x (n) −x (n−1)) of the divider 26. Multiply and give to the sample and hold circuit 28. The sample hold circuit 28 samples and holds the multiplication value of the multiplier 27 at the timing detected by the rising zero cross detection circuit 29.

図4は、位相補正部17の動作説明図を示している。図4には、例えばモニタ信号のアナログ値の最大周波数(最小周期)を8サンプリング(1桁数サンプリング)する例を示している。なお、サンプリングクロックはカウントクロックに同期するもので、サンプリングクロック周期は、カウントクロック周期の数十〜数百倍の時間に設定されている。   FIG. 4 shows an operation explanatory diagram of the phase correction unit 17. FIG. 4 shows an example in which, for example, the maximum frequency (minimum cycle) of the analog value of the monitor signal is sampled eight times (one digit number sampling). The sampling clock is synchronized with the count clock, and the sampling clock cycle is set to a time several tens to several hundred times the count clock cycle.

ゼロクロスタイミング前後のサンプリング値を、それぞれx(n−1),x(n)とすると、これらのx(n−1)とx(n)の振幅比は、x(n−1)のAD変換タイミングからゼロクロスするまでの時間T1と、ゼロクロスタイミングからx(n)のAD変換タイミングまでの時間T2との比とほぼ同一となる。したがって、AD変換器16のサンプリング間隔にx(n)/(x(n)−x(n−1))を乗算することで時間T2に相当する時間を算出できる。   If the sampling values before and after the zero cross timing are x (n-1) and x (n), the amplitude ratio of these x (n-1) and x (n) is the AD conversion of x (n-1). The ratio of the time T1 from the timing to the zero crossing and the time T2 from the zero crossing timing to the x (n) AD conversion timing is substantially the same. Therefore, the time corresponding to the time T2 can be calculated by multiplying the sampling interval of the AD converter 16 by x (n) / (x (n) −x (n−1)).

立上りゼロクロス検出回路29は、現サンプリング値x(n)が正数で且つ遅延サンプリング値x(n−1)が負数となるタイミングにおいてサンプルホールド回路28にサンプリングパルスを出力し、サンプルホールド回路28は、このタイミングでx(n)/(x(n)−x(n−1))×定数(サンプリング周期に相当するカウントクロックのカウント数×(−2))を取得する。   The rising zero-cross detection circuit 29 outputs a sampling pulse to the sample hold circuit 28 at a timing when the current sampling value x (n) is a positive number and the delay sampling value x (n−1) is a negative number. At this timing, x (n) / (x (n) −x (n−1)) × constant (count number of count clock corresponding to sampling period × (−2)) is acquired.

ここで、(−2)のうち「−1」は図4のサンプリングポイントAより時間を遡ることを示しており、「2」とはシステムに依存した係数値を示している。この定数は、クロック生成部18および位相比較部19のカウントクロックの位相比較カウント値のカウント方式(後述参照)に合わせて設定されている。   Here, “−1” in (−2) indicates that the time goes back from the sampling point A in FIG. 4, and “2” indicates a coefficient value depending on the system. This constant is set in accordance with the counting method (see later) of the phase comparison count value of the count clock of the clock generator 18 and the phase comparator 19.

さて、位相補正部17による補正方法を適用すると、サンプリングポイント間を線形近似した場合のゼロクロスタイミングを算出でき、例えば正弦波のゼロクロス付近を線形近似可能な場合に近似して求めることができる。本実施形態では、クロック生成部18、位相比較部19、および加算器20を設けることで、AD変換器16のサンプリング数が少なくても正確なゼロクロスタイミングを簡単に導出できるようにしている。以下、図2を参照しながら説明を行う。   Now, when the correction method by the phase correction unit 17 is applied, the zero cross timing when the sampling points are linearly approximated can be calculated. For example, the vicinity of the zero cross of the sine wave can be approximated and obtained when approximated. In the present embodiment, by providing the clock generation unit 18, the phase comparison unit 19, and the adder 20, accurate zero cross timing can be easily derived even if the number of samplings of the AD converter 16 is small. Hereinafter, description will be given with reference to FIG.

クロック生成部18は、モニタ信号のAD変換器16のサンプリング値の符号情報を2値化して位相比較部19に出力するもので、例えば、AD変換器16のサンプリング値が0以上の「+」のときには「H」レベル、0未満の「−」のときには「L」レベルを出力する。これにより符号クロックCLK1が生成される。図5は、AD変換器16のサンプリング値の符号情報と符号クロックCLK1の信号波形の関係を示している。この符号クロックCLK1の立上りタイミングは離散化に応じた誤差が生じている。   The clock generation unit 18 binarizes the sign information of the sampling value of the AD converter 16 of the monitor signal and outputs it to the phase comparison unit 19. For example, “+” where the sampling value of the AD converter 16 is 0 or more. "H" level is output when the signal is "L", and "L" level is output when "-" is less than zero. Thereby, the code clock CLK1 is generated. FIG. 5 shows the relationship between the sign information of the sampling value of the AD converter 16 and the signal waveform of the sign clock CLK1. The rise timing of the code clock CLK1 has an error corresponding to the discretization.

正確な位相比較を行うためには、AD変換器16のサンプリング周波数をより高速にする必要がある。高速サンプリングを防ぎながら正確な位相比較を行うため、前述した位相補正部17が設けられると共に、さらに、後述の位相比較部19、加算器20が構成されている。   In order to perform accurate phase comparison, it is necessary to make the sampling frequency of the AD converter 16 faster. In order to perform accurate phase comparison while preventing high-speed sampling, the above-described phase correction unit 17 is provided, and a phase comparison unit 19 and an adder 20 described later are further configured.

図2に示すように、位相比較部19には、符号クロックCLK1と、DCO22のPLL出力クロックを分周器23にて分周した分周クロックCLK2とが与えられている。DCO22は、符号クロックCLK1をN逓倍したPLL出力クロックをN逓倍周波数信号として発振出力し、分周器23は、PLL出力クロックをN分周し分周クロックCLK2として位相比較部19に出力する。   As shown in FIG. 2, the phase comparison unit 19 is provided with a sign clock CLK <b> 1 and a frequency-divided clock CLK <b> 2 obtained by frequency-dividing the PLL output clock of the DCO 22 by the frequency divider 23. The DCO 22 oscillates and outputs a PLL output clock obtained by multiplying the code clock CLK1 by N as an N-multiplied frequency signal, and the frequency divider 23 divides the PLL output clock by N and outputs the divided clock CLK2 to the phase comparator 19.

図6は、位相比較部19のハードウェア構成を示している。位相比較部19は、アップ/ダウン選択回路30、セレクタ31、加算器32、サンプルホールド回路33、立上りエッジ検出回路34、および、サンプルホールド回路35を備える。カウントクロックは、アップ/ダウン選択回路30、セレクタ31、サンプルホールド回路33、および、立上りエッジ検出回路34に与えられている。   FIG. 6 shows a hardware configuration of the phase comparison unit 19. The phase comparison unit 19 includes an up / down selection circuit 30, a selector 31, an adder 32, a sample hold circuit 33, a rising edge detection circuit 34, and a sample hold circuit 35. The count clock is supplied to the up / down selection circuit 30, the selector 31, the sample hold circuit 33, and the rising edge detection circuit.

アップ/ダウン選択回路30は、符号クロックCLK1および分周クロックCLK2を入力し、カウントクロックの入力タイミングにおいて選択信号を切替出力する。このアップ/ダウン選択回路30は、カウントクロックの立上りタイミングにおいて符号クロックCLK1が立ち上がったか否かを判定し、符号クロックCLK1の立上りエッジを検出すると、セレクタ31に「−1」を選択するための選択信号を出力する。   The up / down selection circuit 30 receives the sign clock CLK1 and the divided clock CLK2, and switches and outputs a selection signal at the input timing of the count clock. This up / down selection circuit 30 determines whether or not the sign clock CLK1 has risen at the rise timing of the count clock, and when the rising edge of the sign clock CLK1 is detected, the selector 31 selects “−1” for selection. Output a signal.

また、アップ/ダウン選択回路30は、カウントクロックの立上りタイミングにおいて分周クロックCLK2が立ち下がったか否かを判定し、分周クロックCLK2の立下りを検出すると、セレクタ31に「+1」を選択するための選択信号を出力する。   Further, the up / down selection circuit 30 determines whether or not the divided clock CLK2 has fallen at the rising timing of the count clock, and selects “+1” for the selector 31 when detecting the falling of the divided clock CLK2. A selection signal for output.

セレクタ31は、選択信号に応じて「−1」または「+1」を出力し、加算器32はサンプルホールド回路33にてホールドされた出力値にセレクタ31の出力値(「−1」または「+1」)を加算して出力し、サンプルホールド回路33は、この出力値を次回のカウントクロックの立上りタイミングでサンプリングホールドする。   The selector 31 outputs “−1” or “+1” according to the selection signal, and the adder 32 adds the output value (“−1” or “+1” of the selector 31 to the output value held by the sample hold circuit 33. The sample hold circuit 33 samples and holds the output value at the next rise timing of the count clock.

したがって、アップ/ダウン選択回路30は、符号クロックCLK1の変化に応じて所定の一方向(本実施形態の場合、減少方向)にカウントする方向を変化させ、分周クロックCLK2の変化(カウント転換タイミング)にて一方向とは逆方向(本実施形態の場合、増加方向)にカウントする方向を転換させている。   Therefore, the up / down selection circuit 30 changes the counting direction in a predetermined direction (decrease direction in the present embodiment) in accordance with the change of the sign clock CLK1, and changes the divided clock CLK2 (count conversion timing). ), The counting direction is changed in the direction opposite to the one direction (in the case of the present embodiment, the increasing direction).

そして、加算器32およびサンプルホールド回路33は、セレクタ31の増加値(「1」)または減少値(「−1」)をカウントクロックの立上りタイミングにて加算する。すなわち、セレクタ31、加算器32およびサンプルホールド回路33は、アップダウンカウンタ36として動作するものであり、そのカウント値を位相比較カウント値としてサンプルホールド回路35に出力する。   Then, the adder 32 and the sample hold circuit 33 add the increment value (“1”) or the decrease value (“−1”) of the selector 31 at the rising timing of the count clock. That is, the selector 31, the adder 32, and the sample hold circuit 33 operate as an up / down counter 36, and output the count value to the sample hold circuit 35 as a phase comparison count value.

立上りエッジ検出回路34は、符号クロックCLK1の立上りエッジをカウントクロックの立上りタイミングにて検出し、サンプルホールド回路35のサンプルタイミングとして出力する。サンプルホールド回路35は、立上りエッジ検出回路34が検出した符号クロックCLK1の立上りエッジのタイミングにて位相比較カウント値をサンプルホールドし位相値として出力する。   The rising edge detection circuit 34 detects the rising edge of the code clock CLK 1 at the rising timing of the count clock and outputs it as the sample timing of the sample hold circuit 35. The sample hold circuit 35 samples and holds the phase comparison count value at the rising edge timing of the code clock CLK1 detected by the rising edge detection circuit 34, and outputs it as a phase value.

図7(a)〜図7(c)は、それぞれ、周波数および位相が同期した場合、位相遅れを生じた場合、位相進みが生じた場合の各クロックと位相比較カウント値の関係を示している。また、図8(a)〜図8(c)は、それぞれ、周波数および位相が同期した場合、分周クロックCLK2の周波数が高い場合、分周クロックCLK2の周波数が低い場合、についての各クロックと位相比較カウント値の関係を示している。   FIG. 7A to FIG. 7C show the relationship between each clock and the phase comparison count value when the frequency and phase are synchronized, when phase delay occurs, or when phase advance occurs. . FIGS. 8A to 8C show the clocks when the frequency and phase are synchronized, when the frequency of the divided clock CLK2 is high, and when the frequency of the divided clock CLK2 is low. The relationship of the phase comparison count value is shown.

これらの図7(a)〜図7(c)、図8(a)〜図8(c)に示すように、符号クロックCLK1が立ち上がると、アップダウンカウンタ36は、ダウンカウントを開始し、カウントクロックを受け付ける度にダウンカウントする。そして、分周クロックCLK2の立下りエッジを検出するとカウントを停止し、その後、カウントクロックを受け付ける度にアップカウントし、符号クロックCLK1が再度立ち上がると、サンプルホールド回路35が位相比較カウント値を位相値としてサンプルホールド出力し、出力がカウントクリアされる。   As shown in FIGS. 7 (a) to 7 (c) and FIGS. 8 (a) to 8 (c), when the sign clock CLK1 rises, the up / down counter 36 starts down counting and counts down. Every time a clock is received, it counts down. When the falling edge of the frequency-divided clock CLK2 is detected, the count is stopped. Thereafter, the count-up is performed every time the count clock is received, and when the code clock CLK1 rises again, the sample hold circuit 35 converts the phase comparison count value to the phase value. As a sample hold output, the output is cleared.

したがって、図7(a)または図8(a)に示すように、符号クロックCLK1と分周クロックCLK2とが同一周波数、同一位相となるときには、位相比較カウント値が例えば0を基準出力した時点でサンプルホールド回路35がサンプルホールドし位相値として出力する。   Therefore, as shown in FIG. 7A or FIG. 8A, when the sign clock CLK1 and the divided clock CLK2 have the same frequency and the same phase, for example, when the phase comparison count value is, for example, 0 as a reference output. The sample hold circuit 35 samples and holds and outputs it as a phase value.

また、図7(b)に示すように、分周クロックCLK2の位相が符号クロックCLK1に比較して遅れた場合には、ダウンカウント数が基準出力よりも多くなり、逆にアップカウント数が基準出力より少なくなり、基準出力より少ない値(例えば負の値)を位相比較カウント値として出力した時点でサンプルホールド回路35がサンプルホールドし位相値として出力する。   Further, as shown in FIG. 7B, when the phase of the divided clock CLK2 is delayed compared to the sign clock CLK1, the downcount number is larger than the reference output, and conversely, the upcount number is the reference. The sample hold circuit 35 samples and holds and outputs as a phase value when a value less than the output and a value less than the reference output (for example, a negative value) is output as the phase comparison count value.

このとき、最終的に得られる位相値は、ダウンカウントの増加数にアップカウントの減少数を加えたカウント数となるため、実際の位相遅れに相当するカウントクロック数の2倍カウントされることになる。図7(b)に示す模式的な例では、分周クロックCLK2は符号クロックCLK1に「3」カウント遅れており位相値は「−6」となる。   At this time, since the finally obtained phase value is a count number obtained by adding the increase count of the down count to the decrease count of the up count, it is counted twice as many as the count clock number corresponding to the actual phase delay. Become. In the schematic example shown in FIG. 7B, the divided clock CLK2 is delayed by “3” counts from the sign clock CLK1, and the phase value becomes “−6”.

逆に、図7(c)に示すように、分周クロックCLK2の位相が符号クロックCLK1に比較して進む場合には、ダウンカウント数が基準出力よりも少なくなり、逆にアップカウント数が基準出力より多くなるため、位相比較カウント値として基準出力より多い値(例えば正の値)を出力した時点でサンプルホールド回路35がサンプルホールドし位相値として出力する。   On the contrary, as shown in FIG. 7C, when the phase of the divided clock CLK2 advances compared to the sign clock CLK1, the down count number becomes smaller than the reference output, and conversely, the up count number is the reference. Since it exceeds the output, the sample hold circuit 35 samples and holds the phase comparison count value when it outputs a value (for example, a positive value) greater than the reference output as the phase comparison count value.

前述と同様に、最終的に得られる位相値は、ダウンカウントの減少数にアップカウントの増加数を加えたカウント数となるため、実際の位相進みに相当するカウントクロック数の2倍カウントされることになる。図7(c)に示す模式的な例では、分周クロックCLK2は符号クロックCLK1に「3」カウント進んでおり位相値は「+6」となる。   As described above, the finally obtained phase value is a count number obtained by adding the increase number of the up count to the decrease number of the down count, and thus is counted twice the number of count clocks corresponding to the actual phase advance. It will be. In the schematic example shown in FIG. 7C, the frequency-divided clock CLK2 advances by “3” counts to the sign clock CLK1, and the phase value becomes “+6”.

同様に、図8(b)に示すように、分周クロックCLK2の周波数が符号クロックCLK1に比較して高い場合には、ダウンカウント数が基準出力より少なくなり、逆にアップカウント数が基準出力より多くなるため、位相値として基準出力より多い値(例えば正の値)を出力する。   Similarly, as shown in FIG. 8B, when the frequency of the divided clock CLK2 is higher than that of the sign clock CLK1, the downcount number is smaller than the reference output, and conversely, the upcount number is the reference output. Therefore, a larger value (for example, a positive value) than the reference output is output as the phase value.

このとき、出力される位相値は、ダウンカウントの減少数にアップカウントの増加数を加えたカウント数となるため、実際の周波数偏差に相当するカウントクロック数の2倍カウントされることになる。図8(b)に示す模式的な例では、分周クロックCLK2は符号クロックCLK1の2倍の周波数となっており、カウントクロック数は「3」カウント進んでおり位相値は「+6」となる。   At this time, the output phase value is a count number obtained by adding the increase number of the up count to the decrease number of the down count, and therefore is counted twice the number of count clocks corresponding to the actual frequency deviation. In the schematic example shown in FIG. 8B, the frequency-divided clock CLK2 has a frequency twice that of the sign clock CLK1, the count clock number has advanced by “3”, and the phase value becomes “+6”. .

さらに、図8(c)に示すように、分周クロックCLK2の周波数が符号クロックCLK1に比較して低い場合には、ダウンカウント数が基準出力より多くなり、逆にアップカウント数が基準出力より少なくなるため、位相値として負の値を出力する。   Further, as shown in FIG. 8C, when the frequency of the divided clock CLK2 is lower than that of the sign clock CLK1, the down count number is larger than the reference output, and conversely, the up count number is larger than the reference output. Since it decreases, a negative value is output as the phase value.

このとき出力される位相値は、ダウンカウントの増加数にアップカウントの減少数を加えたカウント数となるため、実際の周波数偏差に相当するカウントクロック数の2倍カウントされることになる。図8(c)の例では、分周クロックCLK2は符号クロックCLK1の1/2の周波数となっており、カウントクロック数は「3」カウント遅れており位相値は「−6」となる。   The phase value output at this time is a count number obtained by adding the decrease count of the up count to the increase count of the down count, and is therefore counted twice the count clock number corresponding to the actual frequency deviation. In the example of FIG. 8C, the frequency-divided clock CLK2 has a frequency half that of the sign clock CLK1, the count clock number is delayed by “3” counts, and the phase value is “−6”.

位相比較部19の位相比較カウント値がカウントクロックの2倍のカウントをしており、前述した時間T2に対応した位相補正部17による位相補正値をカウントクロックに対応づけて2倍のカウントを行っている。したがって、前述では「2」というアップダウンカウントシステムに依存した係数値を採用して構成している。   The phase comparison count value of the phase comparison unit 19 counts twice the count clock, and the phase correction value by the phase correction unit 17 corresponding to the time T2 described above is associated with the count clock and counted twice. ing. Therefore, in the above description, the coefficient value dependent on the up / down counting system of “2” is adopted.

<第1実施形態のまとめ>
位相補正部17は、AD変換器16のサンプリング値のゼロクロス前後の値を線形近似しゼロクロスタイミングの位相補正値を算出し、他方では、クロック生成部18がAD変換器16のサンプリング値の符号情報に応じて符号クロックを生成し、位相比較部19がクロック生成部18の符号クロックCLK1と分周器23の分周クロックCLK2の位相差を算出する。これにより、AD変換器16の入力サンプリング値の符号が切替わるタイミングと分周器23の分周クロックのタイミングとの位相差を検出できる。
<Summary of First Embodiment>
The phase correction unit 17 linearly approximates the values before and after the zero crossing of the sampling value of the AD converter 16 to calculate a phase correction value at the zero crossing timing. On the other hand, the clock generation unit 18 encodes the sign information of the sampling value of the AD converter 16. The phase comparator 19 calculates the phase difference between the code clock CLK1 of the clock generator 18 and the frequency-divided clock CLK2 of the frequency divider 23. Thereby, the phase difference between the timing at which the sign of the input sampling value of the AD converter 16 is switched and the timing of the divided clock of the frequency divider 23 can be detected.

ループフィルタ21には、この位相比較部19の位相差を位相補正部17の位相補正値で補正した値が与えられるため、ループフィルタ21はこの出力値に応じた調整量をDCO22に出力し、DCO22はこの調整量に応じてN逓倍周波数信号を発振出力できる。   Since the loop filter 21 is given a value obtained by correcting the phase difference of the phase comparison unit 19 with the phase correction value of the phase correction unit 17, the loop filter 21 outputs an adjustment amount corresponding to the output value to the DCO 22, The DCO 22 can oscillate and output an N-multiplied frequency signal in accordance with the adjustment amount.

したがって、位相比較部19、加算器20、ループフィルタ21、DCO22および分周器23によるフィードバックループは、クロック生成部18が生成した符号クロックCLK1の位相を位相補正部17の位相補正値により補正しているため、位相同期することができ、DCO22は位相同期した安定的なN逓倍周波数信号を発振出力できる。したがって、主に位相補正部17、位相比較部19を構成して位相同期を図っているため正確な位相同期を実現できる。   Therefore, the feedback loop including the phase comparison unit 19, the adder 20, the loop filter 21, the DCO 22, and the frequency divider 23 corrects the phase of the code clock CLK 1 generated by the clock generation unit 18 with the phase correction value of the phase correction unit 17. Therefore, phase synchronization can be achieved, and the DCO 22 can oscillate and output a phase-stable and stable N-multiplied frequency signal. Therefore, since the phase correction unit 17 and the phase comparison unit 19 are mainly configured to achieve phase synchronization, accurate phase synchronization can be realized.

アップダウンカウンタ36は、クロック生成部18の符号クロックCLK1によるカウント開始タイミングから一方向にカウントを開始し、分周器23の分周クロックCLK2によるカウント転換タイミングにて逆方向にカウントを逆転し、クロック生成部18の符号クロックCLK1によるカウント終了タイミングにて得られたカウント値を位相算出値として出力する。これにより、符号クロックCLK1と分周クロックCLK2の位相差を簡単な構成で算出できる。   The up / down counter 36 starts counting in one direction from the count start timing by the sign clock CLK1 of the clock generator 18, reverses the count in the reverse direction at the count conversion timing by the divided clock CLK2 of the frequency divider 23, The count value obtained at the count end timing by the code clock CLK1 of the clock generator 18 is output as a phase calculation value. Thereby, the phase difference between the sign clock CLK1 and the divided clock CLK2 can be calculated with a simple configuration.

具体的には、アップダウンカウンタ36が、クロック生成部18の符号クロックCLK1の立上りタイミングからカウントクロックに応じてダウンカウントし、アップダウンカウンタ36は、ダウンカウントされてから分周器23の分周クロックCLK2による立下りタイミングを受け付けると当該立下りタイミングからカウントクロックに応じてアップカウントする。そして、位相比較部19は、クロック生成部18の符号クロックCLK1の立上りタイミングにてアップカウンタによるカウントを終了し得られたカウント値を位相算出値として出力する。これにより、符号クロックCLK1と分周クロックCLK2の位相差を簡単な構成で算出できる。   Specifically, the up / down counter 36 counts down according to the count clock from the rising timing of the sign clock CLK1 of the clock generator 18, and the up / down counter 36 divides the frequency of the frequency divider 23 after being counted down. When the falling timing by the clock CLK2 is received, the count-up is performed according to the count clock from the falling timing. Then, the phase comparison unit 19 outputs a count value obtained by completing the counting by the up counter at the rising timing of the code clock CLK1 of the clock generation unit 18 as a phase calculation value. Thereby, the phase difference between the sign clock CLK1 and the divided clock CLK2 can be calculated with a simple configuration.

位相補正部17の減算器(加減算器)25が遅延サンプリング値とAD変換器16の現サンプリング値とを減算すると、x(n)−x(n−1)を算出できる。そして、除算器26がAD変換器16の現サンプリング値を減算器(加減算器)25の加減算値により除算すると、x(n)/(x(n)−x(n−1))を算出できる。   When the subtracter (adder / subtractor) 25 of the phase correction unit 17 subtracts the delay sampling value and the current sampling value of the AD converter 16, x (n) -x (n-1) can be calculated. Then, when the divider 26 divides the current sampling value of the AD converter 16 by the addition / subtraction value of the subtracter (adder / subtractor) 25, x (n) / (x (n) −x (n−1)) can be calculated. .

位相比較部19のアップダウンカウンタ36のダウンカウント増加分はアップカウント減少分となり、逆にダウンカウント減少分はアップカウント増加分となるため、位相比較部19で得られた位相差に相当するカウント値はカウントクロックの2倍のカウント値となる。   The increment of the down count of the up / down counter 36 of the phase comparator 19 becomes the increment of the up count, and conversely, the increment of the down count becomes the increment of the up count. Therefore, the count corresponding to the phase difference obtained by the phase comparator 19 The value is a count value that is twice the count clock.

したがって、乗算器27が、サンプリング周期に相当するカウンタクロックのカウント値を−2倍した値を除算器26の除算値と乗算すれば、位相比較部19と位相補正部17のカウント値のカウント値増減度をマッチさせて算出でき、位相比較部19により算出した位相算出値に位相補正部17により算出した位相補正値を加算して出力することでゼロクロスタイミングに応じた位相値を正確に出力できる。   Therefore, if the multiplier 27 multiplies the value obtained by multiplying the count value of the counter clock corresponding to the sampling period by −2 with the division value of the divider 26, the count value of the count value of the phase comparison unit 19 and the phase correction unit 17 It can be calculated by matching the degree of increase / decrease, and by adding the phase correction value calculated by the phase correction unit 17 to the phase calculation value calculated by the phase comparison unit 19, the phase value corresponding to the zero cross timing can be output accurately. .

以上の作用により、低速サンプリングで離散化による位相誤差が発生しても正確な位相同期が可能となる。また、位相補正精度は、AD変換器16の分解能により決定されるため、適切なAD分解能に設定することでカウントクロックの高速化を最低限に抑えることができる。   With the above operation, accurate phase synchronization is possible even when a phase error due to discretization occurs in low-speed sampling. Further, since the phase correction accuracy is determined by the resolution of the AD converter 16, the count clock speed can be minimized by setting an appropriate AD resolution.

特許文献2記載の技術思想では、周波数比較器、ローパスフィルタに加えて、周波数比較器をスイッチによってオンオフ制御を行う回路を具備するため、処理が複雑となり回路サイズが大きくなってしまう。本実施形態では、周波数比較器をスイッチでオンオフする回路を設ける必要がなくなり、より簡単で小型化できる。また、高速なクロックが不要となるため、位相補正部17、位相比較部19を小型化、低消費電力化することができる。   The technical idea described in Patent Document 2 includes a circuit that performs on / off control of the frequency comparator with a switch in addition to the frequency comparator and the low-pass filter, so that the processing becomes complicated and the circuit size increases. In the present embodiment, there is no need to provide a circuit for turning on and off the frequency comparator with a switch, and it is simpler and more compact. Further, since a high-speed clock is not required, the phase correction unit 17 and the phase comparison unit 19 can be reduced in size and power consumption.

また、位相補正部17で算出した位相補正値をち密なタイミング操作(例えば回路のセット、リセット等)ではなく、デジタル値の加算のみで行うことができるため、回路設計が簡単になる。   In addition, since the phase correction value calculated by the phase correction unit 17 can be performed only by adding digital values instead of a precise timing operation (for example, circuit setting, resetting, etc.), circuit design is simplified.

(第2実施形態)
図9は、本発明の第2実施形態を示すもので、前述実施形態と異なるところは、位相補正部の構成を変更したところにある。前述実施形態と同一部分については同一符号を付して説明を省略し、以下、異なる部分について説明する。
(Second Embodiment)
FIG. 9 shows a second embodiment of the present invention. The difference from the previous embodiment is that the configuration of the phase correction unit is changed. The same parts as those of the above-described embodiment are denoted by the same reference numerals and description thereof is omitted, and different parts will be described below.

図9は、位相補正部の変形例を示している。位相補正部37は、絶対値演算器38、遅延器(第2遅延器に相当)39、加算器(第2加算器に相当)40、除算器(第2除算器に相当)41、乗算器(第2乗算器に相当)42などを組み合わせて構成され、図示しないサンプリングホールド回路を介して位相補正値を出力する。AD変換器16によるモニタ信号のサンプリング値は、絶対値演算器38に入力される。   FIG. 9 shows a modification of the phase correction unit. The phase correction unit 37 includes an absolute value calculator 38, a delay unit (corresponding to the second delay unit) 39, an adder (corresponding to the second adder) 40, a divider (corresponding to the second divider) 41, and a multiplier. (Corresponding to a second multiplier) 42 and the like are combined, and a phase correction value is output via a sampling hold circuit (not shown). The sampling value of the monitor signal by the AD converter 16 is input to the absolute value calculator 38.

絶対値演算器38はサンプリング値の絶対値を演算し、遅延器39、加算器40、除算器41に演算値を出力する。遅延器39は、絶対値演算器38の演算値を1サンプリングクロック分遅延して加算器40に出力する。加算器40は、遅延サンプリング値の絶対値|x(n−1)|と現サンプリング値の絶対値|x(n)|とを加算し除算器41に出力する。除算器41は、現サンプリング値の絶対値|x(n)|を加算器40の加算値|x(n)|+|x(n−1)|で除算し、乗算器42に出力する。乗算器42は、除算器41の除算値|x(n)|/(|x(n)|+|x(n−1)|)と定数(サンプリング周期に相当するカウントクロックのカウント値を−2倍した値)を乗算した値を位相補正値として出力する。すると、|x(n)|/(|x(n)|+|x(n−1)|)×定数(サンプリング周期に相当するカウントクロックのカウント数×(−2))を演算できる。   The absolute value calculator 38 calculates the absolute value of the sampling value and outputs the calculated value to the delay unit 39, the adder 40, and the divider 41. The delay unit 39 delays the calculation value of the absolute value calculation unit 38 by one sampling clock and outputs it to the adder 40. The adder 40 adds the absolute value | x (n−1) | of the delayed sampling value and the absolute value | x (n) | of the current sampling value and outputs the result to the divider 41. The divider 41 divides the absolute value | x (n) | of the current sampling value by the addition value | x (n) | + | x (n−1) | of the adder 40 and outputs the result to the multiplier 42. The multiplier 42 divides the division value | x (n) | / (| x (n) | + | x (n−1) |) by the divider 41 and a constant (the count value of the count clock corresponding to the sampling period − A value obtained by multiplying (doubled value) is output as a phase correction value. Then, | x (n) | / (| x (n) | + | x (n−1) |) × constant (count number of count clock corresponding to sampling period × (−2)) can be calculated.

この場合、クロック生成部18が出力したゼロクロスタイミング直後の符号クロックCLK1の立上りタイミング(「L」→「H」)でサンプリングして位相補正値として出力すれば、前述実施形態と同様に位相補正部17の位相補正値を適切に取得できる。   In this case, if sampling is performed at the rising timing (“L” → “H”) of the code clock CLK1 immediately after the zero crossing timing output by the clock generation unit 18 and output as a phase correction value, the phase correction unit as in the above-described embodiment. 17 phase correction values can be acquired appropriately.

(第3実施形態)
図10は、本発明の第3実施形態を示すもので、前述実施形態と異なるところは、位相比較部のアップダウンカウンタの構成を変更したところにある。
(Third embodiment)
FIG. 10 shows a third embodiment of the present invention. The difference from the previous embodiment is that the configuration of the up / down counter of the phase comparison unit is changed.

図10は、第1実施形態の位相比較部19に代わる位相比較部43の電気的構成を示している。図10に示すアップダウンカウンタ44は第1実施形態のアップダウンカウンタ36に代えて構成されている。アップダウンカウンタ44は、アップ/ダウン選択回路30からアップカウント、ダウンカウントの選択信号を入力すると、アップカウンタ、ダウンカウンタの機能を切替え、入力するカウントクロックのパルスに応じてアップカウントまたはダウンカウントし、位相比較カウント値としてサンプルホールド回路35に出力する。   FIG. 10 shows an electrical configuration of a phase comparison unit 43 that replaces the phase comparison unit 19 of the first embodiment. An up / down counter 44 shown in FIG. 10 is configured in place of the up / down counter 36 of the first embodiment. When an up / down selection circuit 30 receives an up / down count selection signal, the up / down counter 44 switches the function of the up / down counter, and counts up or down according to the input count clock pulse. The phase comparison count value is output to the sample hold circuit 35.

このアップダウンカウンタ44は、例えばJKフリップフロップなどのフリップフロップを連結して構成されている。このように位相比較部43が構成されていたとしても前述実施形態と同様の作用効果が得られる。   The up / down counter 44 is configured by connecting flip-flops such as JK flip-flops, for example. Even if the phase comparison unit 43 is configured in this way, the same effects as those of the above-described embodiment can be obtained.

(第4実施形態)
図11は、本発明の第4実施形態を示すもので、前述実施形態と異なるところは、位相比較部のアップダウンカウンタについて、2つのアップカウンタを組み合わせて構成したところにある。前述実施形態と同一部分については同一符号を付して説明を省略し、以下、異なる部分について説明する。
(Fourth embodiment)
FIG. 11 shows a fourth embodiment of the present invention. The difference from the previous embodiment is that the up / down counter of the phase comparison unit is configured by combining two up counters. The same parts as those of the above-described embodiment are denoted by the same reference numerals and description thereof is omitted, and different parts will be described below.

図11は位相比較部45の電気的構成を示している。位相比較部45は、前述実施形態のアップ/ダウン選択回路30に代わるカウンタ選択回路46を備える。また、アップダウンカウンタ36または44に代わるアップダウンカウンタ47を備える。   FIG. 11 shows the electrical configuration of the phase comparison unit 45. The phase comparison unit 45 includes a counter selection circuit 46 that replaces the up / down selection circuit 30 of the above-described embodiment. Further, an up / down counter 47 in place of the up / down counter 36 or 44 is provided.

カウンタ選択回路46は、符号クロックCLK1の立上りエッジを受け付けると有効/無効切替信号(イネーブル信号)として「H」レベルを出力し、分周クロックCLK2の立下りエッジを受け付けると有効/無効切替信号(イネーブル信号)として「L」レベルをアップダウンカウンタ47に出力するように構成されている。   The counter selection circuit 46 outputs an “H” level as a valid / invalid switching signal (enable signal) when receiving the rising edge of the sign clock CLK1, and receives a valid / invalid switching signal (enable signal) when receiving the falling edge of the divided clock CLK2. The “L” level is output to the up / down counter 47 as an enable signal).

アップダウンカウンタ47は、2つのアップカウンタ48aおよび48bを備える。アップカウンタ48aは、加算器50aによりサンプルホールド回路51aの出力に「+1」を加算し、再度サンプルホールド回路51aに入力する。このアップカウンタ48aは、カウントクロックをクロック端子に入力し、当該カウントクロックのパルスに応じてアップカウントする。   The up / down counter 47 includes two up counters 48a and 48b. The up counter 48a adds “+1” to the output of the sample hold circuit 51a by the adder 50a, and inputs the result to the sample hold circuit 51a again. The up counter 48a inputs a count clock to the clock terminal, and counts up according to the pulse of the count clock.

一方のアップカウンタ48aのサンプルホールド回路51aにはイネーブル端子ENが設けられており、このイネーブル端子ENにはカウンタ選択回路46が出力する有効/無効切替信号(イネーブル信号)が入力されている。   The sample hold circuit 51a of one up counter 48a is provided with an enable terminal EN, and an enable / disable switching signal (enable signal) output from the counter selection circuit 46 is input to the enable terminal EN.

他方、アップカウンタ48bは、加算器50bによりサンプルホールド回路51bの出力に「+1」を加算し、再度サンプルホールド回路51bに入力するように構成される。このアップカウンタ48bは、カウントクロックをクロック端子に入力し、当該カウントクロックのパルスに応じてアップカウントする。   On the other hand, the up counter 48b is configured to add “+1” to the output of the sample and hold circuit 51b by the adder 50b and input it again to the sample and hold circuit 51b. The up counter 48b inputs a count clock to the clock terminal, and counts up according to the pulse of the count clock.

他方のアップカウンタ48bのサンプルホールド回路51bにもイネーブル端子ENが設けられており、このイネーブル端子ENにはカウンタ選択回路46が出力する有効/無効切替信号(イネーブル信号)が反転ゲート49を介して入力されている。   The sample hold circuit 51b of the other up counter 48b is also provided with an enable terminal EN, and an enable / disable switching signal (enable signal) output from the counter selection circuit 46 is passed through the inverting gate 49 to the enable terminal EN. Have been entered.

すなわち、2つのアップカウンタ48aおよび48bは、カウンタ選択回路46が出力する有効/無効切替信号(イネーブル信号)に応じて何れか一方が動作する。これらのアップカウンタ48aおよび48bの出力は減算器52に与えられている。この減算器52はアップカウンタ48bの出力値からアップカウンタ48aの出力値を減算し、位相比較カウント値としてサンプルホールド回路35に出力する。サンプルホールド回路35は、立上りエッジ検出回路34の出力パルスに応じてサンプルホールドし位相値として出力する。   That is, one of the two up counters 48a and 48b operates in accordance with the valid / invalid switching signal (enable signal) output from the counter selection circuit 46. The outputs of these up counters 48a and 48b are given to a subtractor 52. The subtracter 52 subtracts the output value of the up counter 48a from the output value of the up counter 48b, and outputs it to the sample hold circuit 35 as a phase comparison count value. The sample hold circuit 35 samples and holds in accordance with the output pulse of the rising edge detection circuit 34 and outputs it as a phase value.

したがって、2つのアップカウンタ48a、48bを切替え、それぞれアップカウンタ、ダウンカウンタとして機能させることで前述実施形態と同様の動作を実現できる。本実施形態のように、位相比較部45のアップダウンカウンタ47が2つのアップカウンタ48aおよび48bを備えて構成されていたとしても前述実施形態と同様の作用効果が得られる。   Therefore, by switching the two up counters 48a and 48b and causing them to function as an up counter and a down counter, respectively, the same operation as in the previous embodiment can be realized. Even if the up / down counter 47 of the phase comparison unit 45 includes the two up counters 48a and 48b as in the present embodiment, the same operational effects as those of the previous embodiment can be obtained.

(第5実施形態)
図12は、本発明の第5実施形態を示すもので、前述の第4実施形態と異なるところは、2つのアップカウンタを別構成したところにある。
図12は、第4実施形態の位相比較部45に代わる位相比較部53の電気的構成を示している。図12に示すアップダウンカウンタ54は第4実施形態のアップダウンカウンタ47に代えて構成されている。アップダウンカウンタ54は、反転ゲート49および減算器52と共に、2つのアップカウンタ55aおよび55bを備える。すなわち、第4実施形態のアップカウンタ48aおよびアップカウンタ48bに代えて、本実施形態では、アップカウンタ55aおよび55bを具備する。
(Fifth embodiment)
FIG. 12 shows a fifth embodiment of the present invention. The difference from the fourth embodiment is that two up counters are separately configured.
FIG. 12 shows an electrical configuration of a phase comparator 53 that replaces the phase comparator 45 of the fourth embodiment. The up / down counter 54 shown in FIG. 12 is configured in place of the up / down counter 47 of the fourth embodiment. The up / down counter 54 includes two up counters 55 a and 55 b together with the inverting gate 49 and the subtractor 52. That is, in this embodiment, up counters 55a and 55b are provided instead of the up counter 48a and the up counter 48b of the fourth embodiment.

アップカウンタ55aおよび55bは、それぞれ例えばJKフリップフロップなどのフリップフロップを連結して構成されている。位相比較部53がこのように構成されていても前述実施形態と同様の作用効果が得られる。   Each of the up counters 55a and 55b is configured by connecting flip-flops such as JK flip-flops, for example. Even if the phase comparator 53 is configured in this way, the same effects as those of the above-described embodiment can be obtained.

(第6実施形態)
図13(a)〜図13(c)および図14は、本発明の第6実施形態を示すもので、第1実施形態と異なるところは、位相補正部の減算器25(第1減算器に相当)および除算器26(第1除算器に相当)が演算許可/演算停止の切換可能に構成されているところにある。特に、減算器25および除算器26が、立上りゼロクロス検出回路29が検出する立上りゼロクロス検出信号の無効期間(ロウ期間)にて演算停止するところを特徴としている。前述実施形態と同一または類似部分については同一符号または類似符号を付して説明を省略し、以下、異なる部分について説明を行う。
(Sixth embodiment)
FIGS. 13 (a) to 13 (c) and FIG. 14 show a sixth embodiment of the present invention. The difference from the first embodiment is that a subtracter 25 (in the first subtractor) of the phase correction unit. Equivalent) and the divider 26 (corresponding to the first divider) are configured to be capable of switching between calculation enable / stop calculation. In particular, the subtractor 25 and the divider 26 are characterized in that the calculation is stopped in the invalid period (low period) of the rising zero cross detection signal detected by the rising zero cross detection circuit 29. Parts that are the same as or similar to those in the previous embodiment are assigned the same or similar reference numerals, and descriptions thereof are omitted. Hereinafter, different parts will be described.

図13(a)は、図3に代わる位相補正部のブロック構成を概略的に示している。この図13(a)に示すように、位相補正部17に代わる位相補正部17aは、遅延器24、減算器25、除算器26、乗算器27、サンプルホールド回路28、立上りゼロクロス検出回路29と共に、固定値設定器としてデータマスク回路56〜58を追加して組み合わせたハードウェアにより構成されている。   FIG. 13A schematically shows a block configuration of a phase correction unit instead of FIG. As shown in FIG. 13A, a phase correction unit 17a in place of the phase correction unit 17 includes a delay unit 24, a subtracter 25, a divider 26, a multiplier 27, a sample hold circuit 28, and a rising zero cross detection circuit 29. The data mask circuits 56 to 58 are added and combined as a fixed value setter.

前述実施形態で説明したように、位相補正部17aは、ゼロクロス前後のAD変換器16のサンプリング値を線形近似することでゼロクロスタイミングの位相値を算出するが、このゼロクロス前後のAD変換器16のサンプリング値を取得し位相値を算出する間以外の期間は演算機能が不要となるため、データマスク回路56〜58を設けることで減算器25および除算器26の演算機能を停止させている。   As described in the above embodiment, the phase correction unit 17a calculates the phase value of the zero cross timing by linearly approximating the sampling value of the AD converter 16 before and after the zero crossing. Since the calculation function is not required during a period other than the period when the sampling value is acquired and the phase value is calculated, the calculation functions of the subtracter 25 and the divider 26 are stopped by providing the data mask circuits 56 to 58.

データマスク回路56〜58のそれぞれの構成例を図13(b)または図13(c)に示している。データマスク回路56〜58は、図13(b)に示すようにANDゲート59によって構成しても良いし、図13(c)に示すようにNOTゲート60およびORゲート61を組み合わせて構成しても良い。   A configuration example of each of the data mask circuits 56 to 58 is shown in FIG. 13 (b) or FIG. 13 (c). The data mask circuits 56 to 58 may be configured by an AND gate 59 as shown in FIG. 13B, or a combination of a NOT gate 60 and an OR gate 61 as shown in FIG. 13C. Also good.

図13(b)に示す回路例を適用したとき、立上りゼロクロス検出回路29の出力がハイのときには入力データをそのまま出力するが、立上りゼロクロス検出回路29の出力がロウであるときには、データマスク回路56〜58の出力を「ロウ」に固定(マスク)できる。   When the circuit example shown in FIG. 13B is applied, the input data is output as it is when the output of the rising zero-cross detection circuit 29 is high, but the data mask circuit 56 when the output of the rising zero-cross detection circuit 29 is low. The output of ˜58 can be fixed (masked) to “low”.

図13(c)に示す回路例を適用したとき、立上りゼロクロス検出回路29の出力がハイのときには入力データをそのまま出力するが、立上りゼロクロス検出回路29の出力がロウであるときには、データマスク回路56〜58の出力を「ハイ」に固定(マスク)できる。   When the circuit example shown in FIG. 13C is applied, the input data is output as it is when the output of the rising zero cross detecting circuit 29 is high, but when the output of the rising zero cross detecting circuit 29 is low, the data mask circuit 56 is output. The output of ˜58 can be fixed (masked) to “high”.

したがって、図14のタイミングチャートに示すように、モニタ信号のサンプリング値が負から正になったときには、符号情報が負から正に切換わり、立上りゼロクロス検出回路29の出力が「ハイ」となるため、データマスク回路56〜58は、入力データをマスクすることなく、減算器25および除算器26にそれぞれ入力データを与える。   Therefore, as shown in the timing chart of FIG. 14, when the sampling value of the monitor signal changes from negative to positive, the sign information is switched from negative to positive, and the output of the rising zero-cross detection circuit 29 becomes “high”. The data mask circuits 56 to 58 provide input data to the subtracter 25 and the divider 26, respectively, without masking the input data.

しかし、それ以外の期間(立上りゼロクロス検出回路29の出力のロウ期間)では、データマスク回路56〜58は入力データをマスクすることになるため、データマスク回路56〜58は減算器25および除算器26にそれぞれ固定値を与える。   However, in other periods (low period of the output of the rising zero cross detection circuit 29), the data mask circuits 56 to 58 mask the input data, so that the data mask circuits 56 to 58 include the subtractor 25 and the divider. A fixed value is given to each of 26.

減算器25および除算器26は、それぞれ複数のスイッチング素子を組み合わせて構成され、これらの演算器は多数のスイッチング素子をオンオフ切換えすることで演算処理しているが、演算処理するとスイッチング損失が増加する。   The subtractor 25 and the divider 26 are each configured by combining a plurality of switching elements, and these arithmetic units perform arithmetic processing by switching on and off a large number of switching elements, but switching loss increases when arithmetic processing is performed. .

したがって、減算器25、除算器26に固定値が与えられている間は、スイッチング素子をオンオフ切換えすることがなくなるためスイッチング損失も発生しない(図14の低消費電力期間参照)。これにより、低消費電力期間において、減算器25および除算器26が演算処理することがなくなり消費電力を低減できる。   Therefore, while a fixed value is given to the subtractor 25 and the divider 26, switching elements are not switched on and off, so that no switching loss occurs (see the low power consumption period in FIG. 14). Thereby, in the low power consumption period, the subtracter 25 and the divider 26 do not perform arithmetic processing, and the power consumption can be reduced.

図14に示すように、減算器25および除算器26は、モニタ信号の一周期に一回演算処理するのみであるため消費電力を低減できる。
(第7実施形態)
図15および図16は、本発明の第7実施形態を示すもので、第1実施形態と異なるところは、位相補正部の減算器25(第1減算器に相当)および除算器26(第1除算器に相当)が演算停止対象とされており、演算許可/演算停止の切換可能に構成されているところにある。特に、減算器25および除算器26が、クロック生成部18が生成する符号クロックCLK1のロウ期間(符号情報の負期間)にて演算停止するところを特徴としている。前述実施形態と同一または類似部分については同一符号または類似符号を付して説明を省略し、以下、異なる部分について説明を行う。
As shown in FIG. 14, since the subtractor 25 and the divider 26 only perform the arithmetic processing once in one cycle of the monitor signal, the power consumption can be reduced.
(Seventh embodiment)
15 and 16 show a seventh embodiment of the present invention. The difference from the first embodiment is that a subtractor 25 (corresponding to the first subtractor) and a divider 26 (first subtractor) of the phase correction unit. (Corresponding to a divider) is set as the operation stop target, and is configured to be switchable between operation permission and operation stop. In particular, the subtractor 25 and the divider 26 are characterized in that the calculation is stopped in the low period (negative period of the code information) of the code clock CLK1 generated by the clock generator 18. Parts that are the same as or similar to those in the previous embodiment are assigned the same or similar reference numerals, and descriptions thereof are omitted. Hereinafter, different parts will be described.

図15は、図3に代わる位相補正部のブロック構成を概略的に示している。前述実施形態と同様に、位相補正部17aにはデータマスク回路56〜58が設けられており、これらのデータマスク回路56〜58には、クロック生成部18が生成した符号クロックCLK1がマスク信号として与えられている。   FIG. 15 schematically shows a block configuration of a phase correction unit instead of FIG. As in the previous embodiment, the phase correction unit 17a is provided with data mask circuits 56 to 58, and the code mask CLK1 generated by the clock generation unit 18 is used as a mask signal in these data mask circuits 56 to 58. Is given.

図16のタイミングチャートに示すように、クロック生成部18が符号クロックCLK1をハイ出力している間、各データマスク回路56〜58は入力データをそのまま減算器25および除算器26に与える。しかし、クロック生成部18が符号クロックCLK1をロウ出力している間は、各データマスク回路56〜58は入力データをマスクして固定値を減算器25および除算器26に与える。したがって、減算器25および除算器26に固定値が与えられている間、前述実施形態と同様に消費電力を低減できる。   As shown in the timing chart of FIG. 16, while the clock generator 18 outputs the sign clock CLK <b> 1 high, each data mask circuit 56 to 58 supplies the input data as it is to the subtracter 25 and the divider 26. However, while the clock generation unit 18 outputs the code clock CLK1 low, each of the data mask circuits 56 to 58 masks the input data and supplies a fixed value to the subtracter 25 and the divider 26. Therefore, while fixed values are given to the subtractor 25 and the divider 26, the power consumption can be reduced as in the above-described embodiment.

(第8実施形態)
図17は、本発明の第8実施形態を示すもので、前述実施形態と異なるところは、第2実施形態で説明した加算器40(第2加算器に相当)および除算器41(第2除算器に相当)を演算停止対象とし、第6実施形態または第7実施形態の特徴を適用したところにある。前述実施形態と同一または類似部分については同一または類似の符号を付して説明を省略し、以下、異なる部分について説明を行う。
(Eighth embodiment)
FIG. 17 shows an eighth embodiment of the present invention. The difference from the previous embodiment is that the adder 40 (corresponding to the second adder) and the divider 41 (second division) described in the second embodiment. The feature of the sixth embodiment or the seventh embodiment is applied. The same or similar parts as those in the above-described embodiment are denoted by the same or similar reference numerals, and the description thereof is omitted. Hereinafter, different parts will be described.

図17は、図9に代わる位相補正部のブロック構成を概略的に示している。この図17に示すように、位相補正部37に代わる位相補正部37aは、絶対値演算器38、遅延器39、加算器40、除算器41、乗算器42と共に、固定値設定器としてデータマスク回路62〜64を追加して組み合わせたハードウェアにより構成され、図示しないサンプリングホールド回路を介して位相補正値を出力する。   FIG. 17 schematically shows a block configuration of a phase correction unit instead of FIG. As shown in FIG. 17, a phase correction unit 37a instead of the phase correction unit 37 includes a data mask as a fixed value setter together with an absolute value calculator 38, a delay unit 39, an adder 40, a divider 41, and a multiplier 42. It is configured by hardware in which circuits 62 to 64 are added and combined, and outputs a phase correction value via a sampling hold circuit (not shown).

データマスク回路62〜64は、それぞれ、前述実施形態で説明したデータマスク回路56〜58と同様の回路で構成されており、これらのデータマスク回路62〜64は、低消費電力制御信号に応じた入力データをマスクし、加算器40および除算器41に出力する。   Each of the data mask circuits 62 to 64 is configured by a circuit similar to the data mask circuits 56 to 58 described in the above embodiment, and these data mask circuits 62 to 64 correspond to the low power consumption control signal. The input data is masked and output to the adder 40 and the divider 41.

この「低消費電力制御信号」は、第6実施形態に示したように、立上りゼロクロス検出回路29の出力であっても良いし、第7実施形態に示したように、クロック生成部18の符号クロックCLK1の出力であっても良い。   This “low power consumption control signal” may be the output of the rising zero cross detection circuit 29 as shown in the sixth embodiment, or the code of the clock generator 18 as shown in the seventh embodiment. It may be the output of the clock CLK1.

すなわち、第6実施形態で説明したように、立上りゼロクロス検出回路29の立上りゼロクロス検出信号がハイ期間のとき、データマスク回路62〜64が入力データをそのまま加算器40および除算器41に出力し、ゼロクロス検出信号がロウ期間のとき、データマスク回路62〜64が入力データをマスクして固定値を加算器40および除算器41に出力する。この場合、前述説明と同様に低消費電力化を図ることができる。   That is, as described in the sixth embodiment, when the rising zero cross detection signal of the rising zero cross detection circuit 29 is in the high period, the data mask circuits 62 to 64 output the input data as they are to the adder 40 and the divider 41, When the zero-cross detection signal is in the low period, the data mask circuits 62 to 64 mask the input data and output a fixed value to the adder 40 and the divider 41. In this case, low power consumption can be achieved as in the above description.

また、第7実施形態で説明したように、クロック生成部18の符号クロックCLK1の出力がハイ期間のとき、データマスク回路62〜64が入力データをそのまま加算器40および除算器41に出力し、符号クロックCLK1の出力がロウ期間のとき、データマスク回路62〜64が入力データをマスクして固定値を加算器40および除算器41に出力する。この場合も同様に低消費電力化を図ることができる。   Further, as described in the seventh embodiment, when the output of the sign clock CLK1 of the clock generation unit 18 is in the high period, the data mask circuits 62 to 64 output the input data as they are to the adder 40 and the divider 41, When the output of the sign clock CLK1 is in the low period, the data mask circuits 62 to 64 mask the input data and output a fixed value to the adder 40 and the divider 41. In this case as well, low power consumption can be achieved.

(他の実施形態)
本発明は、前記した実施形態に限定されるものではなく、例えば、以下に示す変形または拡張が可能である。
振動型角速度センサ10としては、セラミック音叉型、シリコン音叉型、容量式等の何れに適用しても良い。
アップダウンカウンタ36、44、47、54は、それぞれダウンカウントしてからカウント転換タイミングにてアップカウントを開始する形態を示したが、アップカウントしてからカウント転換タイミングにてダウンカウントを開始する形態に適用しても良い。
(Other embodiments)
The present invention is not limited to the above-described embodiments, and for example, the following modifications or expansions are possible.
The vibration type angular velocity sensor 10 may be applied to any of ceramic tuning fork type, silicon tuning fork type, capacitive type, and the like.
The up / down counters 36, 44, 47, and 54 are configured to start counting up at the count conversion timing after counting down, respectively, but are configured to start counting down at the count conversion timing after counting up. You may apply to.

前述実施形態では、位相同期回路13は全ての構成要素をデジタルブロックにより構成した実施形態を示したが、一部アナログブロックで構成しても良い。例えば、ループフィルタ21をアナログローパスフィルタにしても良く、DCO22をVCO(Voltage Controlled Oscillator)としても良い。このような場合、D/A変換器、A/D変換器などを別途挿入して構成しても良い。   In the above-described embodiment, the phase synchronization circuit 13 is an embodiment in which all the components are configured by digital blocks. However, a part of them may be configured by analog blocks. For example, the loop filter 21 may be an analog low-pass filter, and the DCO 22 may be a VCO (Voltage Controlled Oscillator). In such a case, a D / A converter, an A / D converter, or the like may be inserted separately.

第6実施形態、第7実施形態では、減算器25および除算器26が演算停止対象として構成され演算許可/演算停止の切換可能に構成された実施形態を示したが、何れか一方のみが切換えできるように構成されていても良く、また、その他の演算器(例えば乗算器27など)が演算停止機能を備えていても良い。同様に、第8実施形態では、加算器40および除算器41が演算許可/演算停止の切換可能に構成されている実施形態を示したが、何れか一方のみで切換えできるように構成されていても良く、また、その他の演算器(例えば乗算器42など)が演算停止機能を備えていても良い。   In the sixth embodiment and the seventh embodiment, the subtracter 25 and the divider 26 are configured as operation stop targets and the operation is allowed to be enabled / stopped. However, only one of them is switched. It may be configured so that other arithmetic units (for example, the multiplier 27 and the like) may have a calculation stop function. Similarly, in the eighth embodiment, the adder 40 and the divider 41 are configured so that the calculation can be permitted / stopped. However, the adder 40 and the divider 41 can be switched by only one of them. In addition, other arithmetic units (for example, the multiplier 42) may have a calculation stop function.

また、特に第1実施形態において、減算器25、除算器26、乗算器27がクロックに同期してデータを保持する構成であるとき、減算器25、除算器26、乗算器27の少なくとも何れか一つの演算を停止する間、演算停止対象となる演算器の動作クロックを停止するようにしても良い。   In particular, in the first embodiment, when the subtractor 25, the divider 26, and the multiplier 27 are configured to hold data in synchronization with the clock, at least one of the subtractor 25, the divider 26, and the multiplier 27 is used. While one operation is stopped, the operation clock of the operation unit to be stopped may be stopped.

前述実施形態の特に第2実施形態でも同様に、加算器40、除算器41、乗算器42がクロックに同期してデータを保持する構成であるとき、加算器40、除算器41、乗算器42の少なくとも何れか一つの演算を停止する間、演算停止対象となる演算器の動作クロックを停止するようにしても良い。このような場合、演算器の動作クロックによって動作するトランジスタのオンオフ時スイッチング損失を低減でき、演算停止中における消費電力を低減できる。   Similarly in the second embodiment, the adder 40, the divider 41, and the multiplier 42 are configured to hold data in synchronization with the clock. While at least one of the operations is stopped, the operation clock of the operation unit to be stopped may be stopped. In such a case, the switching loss at the on / off time of the transistor that operates according to the operation clock of the arithmetic unit can be reduced, and the power consumption during the operation stop can be reduced.

図面中、10は振動型角速度センサ(物理量検出センサ)、11は振動子、12は信号検出回路(信号検出部)、13は位相同期回路、13aはタイミング生成部、14はAGC、15は角速度検出部、16はAD変換器、17、37は位相補正部、18はクロック生成部、19、43、45、53は位相比較部、20は加算器(加減算部)、21はループフィルタ(調整出力部)、22はDCO(制御発振部)、23は分周器(分周部)、24は遅延器(第1遅延器)、25は減算器(第1減算器)、26は除算器(第1除算器)、27は乗算器(第1乗算器)、36、44、47、54はアップダウンカウンタ、38は絶対値演算器、39は遅延器(第2遅延器)、40は加算器(第2加算器)、41は除算器(第2除算器)、42は乗算器(第2乗算器)、48a、48b、55a、55bはアップカウンタ、56〜58、62〜64はデータマスク回路(固定値設定器)を示す。   In the drawings, 10 is a vibration type angular velocity sensor (physical quantity detection sensor), 11 is a vibrator, 12 is a signal detection circuit (signal detection unit), 13 is a phase synchronization circuit, 13a is a timing generation unit, 14 is AGC, and 15 is an angular velocity. Detection unit, 16 AD converter, 17, 37 phase correction unit, 18 clock generation unit, 19, 43, 45, 53 phase comparison unit, 20 adder (addition / subtraction unit), 21 loop filter (adjustment) (Output unit), 22 is a DCO (control oscillator), 23 is a frequency divider (frequency divider), 24 is a delay device (first delay device), 25 is a subtractor (first subtractor), and 26 is a divider. (First divider), 27 is a multiplier (first multiplier), 36, 44, 47 and 54 are up / down counters, 38 is an absolute value calculator, 39 is a delay unit (second delay unit), 40 is Adder (second adder), 41 is a divider (second divider), 42 is a multiplier Vessel (second multiplier), 48a, 48b, 55a, 55b are up-counter, 56~58,62~64 shows the data masking circuit (fixed value setting device).

Claims (16)

入力調整値に応じて調整したN逓倍周波数信号を発振出力する制御発振部と、
前記制御発振部のN逓倍周波数信号をN分周した分周クロックを出力する分周部と、
AD変換器のサンプリング値のゼロクロス前後のデジタル値を線形近似しゼロクロスタイミングの位相補正値を算出する位相補正部と、
前記AD変換器のサンプリング値の符号情報に応じて符号クロックを生成するクロック生成部と、
前記クロック生成部の符号クロックと前記分周部の分周クロックとの位相差を算出する位相比較部と、
前記位相比較部の位相算出値に前記位相補正部の位相補正値を加減算する加減算部と、
前記加減算部の出力値に応じた調整量を前記制御発振部の入力調整値として出力する調整出力部と、を備え、
前記位相比較部は、
前記クロック生成部の符号クロックによるカウント開始タイミングから一方向にカウントクロックによるカウントを開始し、前記分周部の分周クロックによるカウント転換タイミングにて前記一方向とは逆方向にカウントクロックによるカウントを逆転し、前記クロック生成部の符号クロックによるカウント終了タイミングまでカウントするアップダウンカウンタを備え、
前記クロック生成部の符号クロックと前記分周部の分周クロックの位相差を算出するときには、前記アップダウンカウンタによってカウント終了タイミングで得られたカウント値を前記位相算出値として出力することを特徴とするデジタル位相同期回路。
A control oscillation unit for oscillating and outputting an N-multiplied frequency signal adjusted according to an input adjustment value;
A frequency divider that outputs a frequency-divided clock obtained by dividing the N-multiplied frequency signal of the control oscillator by N;
A phase correction unit that linearly approximates a digital value before and after the zero crossing of the sampling value of the AD converter and calculates a phase correction value of the zero crossing timing;
A clock generation unit that generates a code clock according to code information of a sampling value of the AD converter;
A phase comparator that calculates a phase difference between the code clock of the clock generator and the divided clock of the divider;
An addition / subtraction unit for adding / subtracting the phase correction value of the phase correction unit to / from the phase calculation value of the phase comparison unit;
An adjustment output unit that outputs an adjustment amount according to an output value of the addition / subtraction unit as an input adjustment value of the control oscillation unit, and
The phase comparison unit includes:
Counting by the count clock is started in one direction from the count start timing by the code clock of the clock generator, and counting by the count clock is performed in the direction opposite to the one direction at the count conversion timing by the divided clock of the frequency divider. An up / down counter that reverses and counts up to a count end timing by the code clock of the clock generation unit,
When calculating the phase difference between the code clock of the clock generator and the divided clock of the divider, the count value obtained at the count end timing by the up / down counter is output as the phase calculated value. Digital phase synchronization circuit.
前記位相比較部は、
前記クロック生成部の符号クロックと前記分周部の分周クロックとの周波数および位相が互いに同一となるときのカウント値を基準出力する構成であり、
前記アップダウンカウンタは、前記クロック生成部の符号クロックの立上りタイミングから所定のカウントクロックに応じてダウンカウントし、当該ダウンカウントされてから前記分周部の分周クロックによる立下りタイミングを受け付けると当該立下りタイミングから前記カウントクロックに応じてアップカウントすることを特徴とする請求項1記載のデジタル位相同期回路。
The phase comparison unit includes:
The configuration is such that the count value when the frequency and phase of the code clock of the clock generation unit and the frequency division clock of the frequency division unit are the same as each other is output as a reference
The up / down counter counts down according to a predetermined count clock from the rising timing of the code clock of the clock generation unit, and receives the falling timing by the divided clock of the frequency dividing unit after the down counting. 2. The digital phase locked loop circuit according to claim 1, wherein up-counting is performed in accordance with the count clock from a falling timing.
前記アップダウンカウンタは、2つの同じカウンタを組み合わせてカウントすることを特徴とする請求項1または2記載のデジタル位相同期回路。   3. The digital phase synchronization circuit according to claim 1, wherein the up / down counter performs counting by combining two same counters. 前記位相補正部は、
アナログ値をサンプリングした前記AD変換器のサンプリング値を1サンプリングクロック分遅延させる第1遅延器と、
前記第1遅延部の遅延サンプリング値を前記AD変換器の現サンプリング値から減算する第1減算器と、
前記AD変換部の現サンプリング値を前記第1減算器の減算値により除算する第1除算器と、
前記AD変換器のサンプリング周期に相当する前記カウントクロックのカウント値を−2倍した定数値を前記第1除算部の除算値と乗算する第1乗算器とを備えたことを特徴とする請求項1ないし3の何れかに記載のデジタル位相同期回路。
The phase correction unit is
A first delay unit that delays the sampling value of the AD converter that has sampled the analog value by one sampling clock;
A first subtractor for subtracting a delay sampling value of the first delay unit from a current sampling value of the AD converter;
A first divider for dividing the current sampling value of the AD converter by the subtracted value of the first subtractor;
2. A first multiplier for multiplying a constant value obtained by multiplying a count value of the count clock corresponding to a sampling period of the AD converter by -2 with a division value of the first division unit. 4. The digital phase synchronization circuit according to any one of 1 to 3.
前記位相補正部の第1減算器、第1除算器および第1乗算器は、その少なくとも何れか一つが演算許可/演算停止の切換機能を有することを特徴とする請求項4記載のデジタル位相同期回路。   5. The digital phase synchronization according to claim 4, wherein at least one of the first subtractor, the first divider, and the first multiplier of the phase correction unit has a function of switching operation permission / operation stopped. circuit. 前記位相補正部の第1減算器、第1除算器および第1乗算器の少なくとも何れか一つの演算を停止するときに、演算停止対象となる演算器の入力を固定値に設定する固定値設定器を備えたことを特徴とする請求項5記載のデジタル位相同期回路。   Fixed value setting for setting the input of the arithmetic unit to be stopped to a fixed value when stopping at least one of the first subtractor, the first divider, and the first multiplier of the phase correction unit 6. The digital phase locked loop circuit according to claim 5, further comprising a counter. 前記位相補正部の第1減算器、第1除算器および第1乗算器がクロックに同期してデータを保持する構成であるときには、
前記第1減算器、第1除算器および第1乗算器の少なくとも何れか一つの演算を停止する間、演算停止対象となる演算器の動作クロックを停止することを特徴とする請求項5または6記載のデジタル位相同期回路。
When the first subtractor, the first divider and the first multiplier of the phase correction unit are configured to hold data in synchronization with the clock,
7. The operation clock of an arithmetic unit to be stopped is stopped while at least one of the first subtractor, the first divider, and the first multiplier is stopped. The digital phase synchronization circuit described.
AD変換器のサンプリング値がゼロクロスしたタイミングを検出するゼロクロス検出部を備え、
前記ゼロクロス検出部により検出されたゼロクロスタイミングの信号を用いて前記位相補正部の第1減算器、第1除算器および第1乗算器の少なくとも何れか一つの演算を停止する期間を設定することを特徴とする請求項5ないし7の何れかに記載のデジタル位相同期回路。
A zero-cross detector that detects the timing at which the sampling value of the AD converter has zero-crossed,
Using the zero-cross timing signal detected by the zero-cross detection unit, setting a period for stopping the calculation of at least one of the first subtractor, the first divider, and the first multiplier of the phase correction unit. 8. A digital phase locked loop according to claim 5, wherein
前記クロック生成部の符号クロックを用いて前記位相補正部の第1減算器、第1除算器および第1乗算器の少なくとも何れか一つの演算を停止する期間を設定することを特徴とする請求項5ないし7の何れかに記載のデジタル位相同期回路。   The period for stopping the calculation of at least one of the first subtractor, the first divider, and the first multiplier of the phase correction unit is set using the code clock of the clock generation unit. 8. The digital phase locked loop circuit according to any one of 5 to 7. 前記位相補正部は、
アナログ値をサンプリングした前記AD変換器のサンプリング値の絶対値を演算する絶対値演算器と、
前記絶対値演算器の演算値を1サンプリングクロック分遅延させる第2遅延器と、
前記第2遅延器の遅延サンプリング値と前記絶対値演算器の演算値とを加算する第2加算器と、
前記絶対値演算器の演算値を前記第2加算器の加算値により除算する第2除算器と、
前記AD変換器のサンプリング周期に相当する前記カウントクロックのカウント値を−2倍した定数値を前記第2除算部の除算値と乗算する第2乗算器とを備えたことを特徴とする請求項1ないし3の何れかに記載のデジタル位相同期回路。
The phase correction unit is
An absolute value calculator that calculates the absolute value of the sampling value of the AD converter that samples the analog value;
A second delay unit for delaying the operation value of the absolute value operation unit by one sampling clock;
A second adder for adding the delay sampling value of the second delay unit and the operation value of the absolute value calculator;
A second divider for dividing the calculated value of the absolute value calculator by the added value of the second adder;
2. A second multiplier that multiplies a constant value obtained by multiplying a count value of the count clock corresponding to a sampling period of the AD converter by -2 with a division value of the second division unit. 4. The digital phase synchronization circuit according to any one of 1 to 3.
前記位相補正部の第2減算器、第2除算器、第2乗算器は、その少なくとも何れか一つが演算許可/演算停止の切換機能を有することを特徴とする請求項10記載のデジタル位相同期回路。   11. The digital phase synchronization according to claim 10, wherein at least one of the second subtracter, the second divider, and the second multiplier of the phase correction unit has a function of switching operation permission / operation stopped. circuit. 前記位相補正部の第2減算器、第2除算器および第2乗算器の少なくとも何れか一つの演算を停止するときに、演算停止対象となる演算器の入力を固定値に設定する固定値設定器を備えたことを特徴とする請求項11記載のデジタル位相同期回路。   Fixed value setting that sets the input of the operation unit to be stopped to a fixed value when stopping the operation of at least one of the second subtractor, the second divider, and the second multiplier of the phase correction unit 12. The digital phase locked loop circuit according to claim 11, further comprising a counter. 前記位相補正部の第2減算器、第2除算器および第2乗算器がクロックに同期してデータを保持するデータ保持回路であるときには、
前記第2減算器、第2除算器および第2乗算器の少なくとも何れか一つの演算を停止する間、演算停止対象となる演算器の入力クロックを停止することを特徴とする請求項11または12記載のデジタル位相同期回路。
When the second subtractor, the second divider, and the second multiplier of the phase correction unit are data holding circuits that hold data in synchronization with a clock,
13. The input clock of an arithmetic unit to be stopped is stopped while at least one of the second subtracter, the second divider, and the second multiplier is stopped. The digital phase synchronization circuit described.
AD変換器のサンプリング値がゼロクロスしたタイミングを検出するゼロクロス検出部を備え、
前記ゼロクロス検出部により検出されたゼロクロスタイミングの信号を用いて前記位相補正部の第2減算器、第2除算器および第2乗算器の少なくとも何れか一つの演算を停止する期間を設定することを特徴とする請求項11ないし13の何れかに記載のデジタル位相同期回路。
A zero-cross detector that detects the timing at which the sampling value of the AD converter has zero-crossed,
Using the zero-cross timing signal detected by the zero-cross detection unit, setting a period for stopping the calculation of at least one of the second subtractor, the second divider, and the second multiplier of the phase correction unit. 14. The digital phase locked loop circuit according to claim 11, wherein the digital phase locked loop circuit is a digital phase locked loop.
前記クロック生成部の符号クロックを用いて前記位相補正部の第2減算器、第2除算器および第2乗算器の少なくとも何れか一つの演算を停止する期間を設定することを特徴とする請求項11ないし13の何れかに記載のデジタル位相同期回路。   The period during which at least one of the second subtracter, the second divider, and the second multiplier of the phase correction unit is stopped is set using the code clock of the clock generation unit. The digital phase locked loop circuit according to any one of 11 to 13. 駆動信号が与えられることにより基準方向に振動する振動子を備え当該振動子に与えられる物理量に応じてセンサ信号を出力する角速度検出部を具備する物理量検出センサであって、
入力信号の振幅を一定となるように制御し前記振動子に駆動信号を印加するAGCと、
前記基準方向の振動信号を検出する信号検出部と、
前記信号検出部の検出信号を入力しこの入力信号を位相同期して前記駆動信号出力部の入力信号として出力する請求項1ないし15の何れかに記載のデジタル位相同期回路と、を備えたことを特徴とする物理量検出センサ。
A physical quantity detection sensor comprising an vibrator that vibrates in a reference direction when given with a drive signal, and an angular velocity detection unit that outputs a sensor signal according to the physical quantity given to the vibrator,
AGC for controlling the amplitude of the input signal to be constant and applying a drive signal to the vibrator;
A signal detector for detecting a vibration signal in the reference direction;
16. The digital phase synchronization circuit according to claim 1, wherein the detection signal of the signal detection unit is input, the input signal is phase-synchronized and output as an input signal of the drive signal output unit. A physical quantity detection sensor characterized by.
JP2011182640A 2011-03-31 2011-08-24 Digital phase synchronization circuit and physical quantity detection sensor Expired - Fee Related JP5601292B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011182640A JP5601292B2 (en) 2011-03-31 2011-08-24 Digital phase synchronization circuit and physical quantity detection sensor

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2011078574 2011-03-31
JP2011078574 2011-03-31
JP2011182640A JP5601292B2 (en) 2011-03-31 2011-08-24 Digital phase synchronization circuit and physical quantity detection sensor

Publications (2)

Publication Number Publication Date
JP2012217121A true JP2012217121A (en) 2012-11-08
JP5601292B2 JP5601292B2 (en) 2014-10-08

Family

ID=47269457

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011182640A Expired - Fee Related JP5601292B2 (en) 2011-03-31 2011-08-24 Digital phase synchronization circuit and physical quantity detection sensor

Country Status (1)

Country Link
JP (1) JP5601292B2 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9590642B2 (en) 2015-03-30 2017-03-07 Seiko Epson Corporation Circuit device, electronic apparatus, and moving object
WO2017191804A1 (en) 2016-05-06 2017-11-09 国立研究開発法人産業技術総合研究所 Phase measurement device and instrument in which phase measurement device is applied
US10270633B2 (en) 2014-11-14 2019-04-23 National Institute Of Advanced Industrial Science And Technology Phase measuring device and apparatuses using the phase measuring device
US10704907B2 (en) 2015-01-22 2020-07-07 Seiko Epson Corporation Circuit device, electronic apparatus, moving object and method of manufacturing of physical quantity detection device
CN111867183A (en) * 2019-04-08 2020-10-30 华润矽威科技(上海)有限公司 LED drive circuit, power frequency square wave signal sampling circuit and method
WO2024080571A1 (en) * 2022-10-12 2024-04-18 주식회사 퀄리타스반도체 Clock phase calibration device and method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09161408A (en) * 1995-12-08 1997-06-20 Pioneer Electron Corp Bit synchronization circuit
JP2006209892A (en) * 2005-01-28 2006-08-10 Sanyo Electric Co Ltd Pll circuit and disk playback device
WO2009063603A1 (en) * 2007-11-12 2009-05-22 Panasonic Corporation Pll circuit and angular velocity sensor using the same

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09161408A (en) * 1995-12-08 1997-06-20 Pioneer Electron Corp Bit synchronization circuit
JP2006209892A (en) * 2005-01-28 2006-08-10 Sanyo Electric Co Ltd Pll circuit and disk playback device
WO2009063603A1 (en) * 2007-11-12 2009-05-22 Panasonic Corporation Pll circuit and angular velocity sensor using the same

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10270633B2 (en) 2014-11-14 2019-04-23 National Institute Of Advanced Industrial Science And Technology Phase measuring device and apparatuses using the phase measuring device
US10704907B2 (en) 2015-01-22 2020-07-07 Seiko Epson Corporation Circuit device, electronic apparatus, moving object and method of manufacturing of physical quantity detection device
US9590642B2 (en) 2015-03-30 2017-03-07 Seiko Epson Corporation Circuit device, electronic apparatus, and moving object
WO2017191804A1 (en) 2016-05-06 2017-11-09 国立研究開発法人産業技術総合研究所 Phase measurement device and instrument in which phase measurement device is applied
JPWO2017191804A1 (en) * 2016-05-06 2019-01-17 国立研究開発法人産業技術総合研究所 Phase measuring device and equipment to which the phase measuring device is applied
US10634563B2 (en) 2016-05-06 2020-04-28 National Institute Of Advanced Industrial Science And Technology Phase measurement device and instrument in which phase measurement device is applied
CN111867183A (en) * 2019-04-08 2020-10-30 华润矽威科技(上海)有限公司 LED drive circuit, power frequency square wave signal sampling circuit and method
WO2024080571A1 (en) * 2022-10-12 2024-04-18 주식회사 퀄리타스반도체 Clock phase calibration device and method

Also Published As

Publication number Publication date
JP5601292B2 (en) 2014-10-08

Similar Documents

Publication Publication Date Title
JP5601292B2 (en) Digital phase synchronization circuit and physical quantity detection sensor
WO2010092629A1 (en) Physical quantity sensor system, and physical quantity sensor device
US10088333B2 (en) Method and system for gyroscope real-time calibration
JP2022163176A (en) High linearity phase interpolator
JP5347534B2 (en) Phase comparator, PLL circuit, and phase comparator control method
JP4924630B2 (en) Clock generation circuit
JPWO2012153375A1 (en) Clock generation circuit
TW201318349A (en) Clock data recovery circuit
JP2010166392A (en) Digital phase locked-loop circuit
CN111642139B (en) Frequency regulator, frequency regulating method thereof and electronic equipment
JP2006119123A (en) Phase difference detection device
JP2009281888A (en) Physical quantity detection circuit, physical quantity sensor apparatus equipped with same, and physical quantity detection method
JP3179527B2 (en) Digital signal synthesis method and apparatus
JP2013197898A (en) Pll circuit, method of controlling pll circuit, and digital circuit
JP2012049660A (en) Phase lock loop
JP2010151669A (en) Physical quantity detection circuit and physical quantity sensor device
CN109391267A (en) Shake when using digital PLL S with ADCS and DAC reduces technology
JP2010273185A (en) Digital phase locked loop circuit
WO2020246092A1 (en) Phase synchronization circuit, electronic device, and method for controlling phase synchronization circuit
CN111642138B (en) Frequency locking ring, electronic equipment and frequency generation method
CN113193868A (en) Phase-locked detection device, phase-locked detection method and phase-locked loop
JP4299352B2 (en) Digital processing equipment
JP2000278126A (en) Pll circuit
JP2011229028A (en) Digital pll
JP2007274615A (en) Pll apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130925

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140529

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140624

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140702

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: 20140722

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140804

R151 Written notification of patent or utility model registration

Ref document number: 5601292

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees