JP2018100856A - Reciprocal count rate generation circuit and physical quantity sensor - Google Patents

Reciprocal count rate generation circuit and physical quantity sensor Download PDF

Info

Publication number
JP2018100856A
JP2018100856A JP2016245869A JP2016245869A JP2018100856A JP 2018100856 A JP2018100856 A JP 2018100856A JP 2016245869 A JP2016245869 A JP 2016245869A JP 2016245869 A JP2016245869 A JP 2016245869A JP 2018100856 A JP2018100856 A JP 2018100856A
Authority
JP
Japan
Prior art keywords
counter
latch
reference clock
count value
under measurement
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
JP2016245869A
Other languages
Japanese (ja)
Other versions
JP6812780B2 (en
Inventor
正義 轟原
Masayoshi Gohara
正義 轟原
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2016245869A priority Critical patent/JP6812780B2/en
Publication of JP2018100856A publication Critical patent/JP2018100856A/en
Application granted granted Critical
Publication of JP6812780B2 publication Critical patent/JP6812780B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Measuring Frequencies, Analyzing Spectra (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a reciprocal count rate generation circuit and a physical quantity sensor that have great accuracy and can reduce power consumption.SOLUTION: A reciprocal count rate generation circuit which counts a reference clock with timing stipulated by a measured signal comprises a plurality of first counters, which are electrically connected in parallel, and in which a plurality of the measured signals with different phases are input, and which detect an inversion edge representing inversion of levels of the plurality of measured signals using the reference clock, a second counter which counts the reference clock, and a reciprocal count rate generation unit, which integrates, in a section stipulated by the measured signal, a product of the detection number of the inversion edge of the measured signal in timing stipulated by the reference clock and a count rate of the second counter in the timing in order to generate a reciprocal count rate.SELECTED DRAWING: Figure 1

Description

本発明は、レシプロカルカウント値生成回路および物理量センサーに関するものである。   The present invention relates to a reciprocal count value generation circuit and a physical quantity sensor.

基準信号(基準クロック)の周波数と被測定信号の周波数との比に対応する信号を生成する周波数カウンターが知られている(例えば、特許文献1参照)。なお、特許文献1に記載の装置は、電気的に並列に接続された複数の周波数デルタシグマ変調部(以下、「FDSM(Frequency Delta Sigma Modulator)」と言う)を備えている。   A frequency counter that generates a signal corresponding to the ratio between the frequency of a reference signal (reference clock) and the frequency of a signal under measurement is known (for example, see Patent Document 1). The apparatus described in Patent Document 1 includes a plurality of frequency delta-sigma modulation units (hereinafter referred to as “FDSM (Frequency Delta Sigma Modulator)”) electrically connected in parallel.

周波数カウンターにおいて、直接カウント方式とレシプロカルカウント方式とのそれぞれを実現しようとする場合、直接カウント方式では、基準信号と被測定信号のうち、基準信号を動作クロックとして用いる。また、レシプロカルカウント方式では、前記とは逆に、被測定信号を動作クロックとして用いる。また、基準信号の周波数と被測定信号の周波数とを比較し、基準信号の周波数の方が低い場合は、直接カウント方式を採用し、被測定信号の周波数の方が低い場合は、レシプロカルカウント方式を採用することで、分解能をより高くして計測を行うことができると考えられている。したがって、被測定信号と基準信号のうち、周波数が低い方の信号を動作クロックとして用いる方式を採用するのが一般的である。   In the frequency counter, when the direct counting method and the reciprocal counting method are to be realized, the direct counting method uses a reference signal as an operation clock among the reference signal and the signal under measurement. In the reciprocal counting method, on the contrary, the signal under measurement is used as an operation clock. Also, the frequency of the reference signal is compared with the frequency of the signal under measurement. If the frequency of the reference signal is lower, the direct count method is used. If the frequency of the signal under measurement is lower, the reciprocal counting method is used. By adopting, it is considered that measurement can be performed with higher resolution. Therefore, it is common to employ a method in which the signal having the lower frequency of the signal under measurement and the reference signal is used as the operation clock.

特開2015−220552号公報JP 2015-220552 A

ここで、被測定信号の周波数が基準信号の周波数よりも低いと仮定し、レシプロカルカウント方式を採用し、また、周波数カウンターのカウンターとして、電気的に並列に接続された複数のFDSMを採用することを検討する。   Here, assuming that the frequency of the signal under measurement is lower than the frequency of the reference signal, a reciprocal counting method is adopted, and a plurality of FDSMs electrically connected in parallel are adopted as counters of the frequency counter. To consider.

まず、被測定信号と基準信号の位相関係がそれぞれ異なり、電気的に並列に接続された複数のFDSMにおいて、前記異なる位相関係を実現するための方法には、種々の方法がある。消費電力の観点からは、複数のFDSMに入力する複数の被測定信号を遅延素子により順次遅延させる構成を採用すると、基準信号を遅延させる構成を採用した場合に比べ、遅延素子により信号を遅延させる回数が少なくなり、好ましい。   First, there are various methods for realizing the different phase relationships in a plurality of FDSMs that are different in phase relationship between the signal under measurement and the reference signal and are electrically connected in parallel. From the viewpoint of power consumption, when a configuration in which a plurality of signals to be measured input to a plurality of FDSMs are sequentially delayed by a delay element is used, the signal is delayed by a delay element as compared to a configuration in which a reference signal is delayed. The number of times is reduced, which is preferable.

しかしながら、レシプロカルカウント方式では、被測定信号を動作クロックとして用いているので、被測定信号を遅延させる構成を採用すると、クロックスキューが大きくなるという問題がある。   However, in the reciprocal counting method, since the signal under measurement is used as an operation clock, there is a problem that the clock skew increases when a configuration in which the signal under measurement is delayed is employed.

本発明の目的は、精度が良く、消費電力を低減できるレシプロカルカウント値生成回路および物理量センサーを提供することにある。   An object of the present invention is to provide a reciprocal count value generation circuit and a physical quantity sensor that have high accuracy and can reduce power consumption.

本発明は、上述の課題の少なくとも一部を解決するためになされたものであり、以下の形態または適用例として実現することが可能である。   SUMMARY An advantage of some aspects of the invention is to solve at least a part of the problems described above, and the invention can be implemented as the following forms or application examples.

本発明のレシプロカルカウント値生成回路は、被測定信号で規定されるタイミングで基準クロックをカウントするレシプロカルカウント値生成回路であって、
電気的に並列に接続され、位相の異なる複数の前記被測定信号がそれぞれ入力され、前記基準クロックを用いて、前記複数の被測定信号のレベルの反転を表す反転エッジを検出する複数の第1のカウンターと、
前記基準クロックをカウントする第2のカウンターと、
前記基準クロックで規定されるタイミングにおける前記被測定信号の反転エッジの検出数と、前記タイミングにおける前記第2のカウンターのカウント値との積を、前記被測定信号で規定される区間において積算し、レシプロカルカウント値を生成するレシプロカルカウント値生成部と、を備えることを特徴とする。
A reciprocal count value generation circuit of the present invention is a reciprocal count value generation circuit that counts a reference clock at a timing defined by a signal under measurement.
A plurality of first signals that are electrically connected in parallel and each having a plurality of signals under different phases are input, and using the reference clock, a plurality of first edges that detect an inversion edge that represents a level inversion of the plurality of signals under measurement And the counter
A second counter for counting the reference clock;
The product of the number of inversion edges detected in the signal under measurement at the timing specified by the reference clock and the count value of the second counter at the timing is integrated in the interval specified by the signal under measurement, And a reciprocal count value generation unit for generating a reciprocal count value.

この発明では、複数の被測定信号の位相を異ならせるので、複数の基準クロックの位相を異ならせる場合に比べて、消費電力を低減することができる。   In the present invention, since the phases of the plurality of signals under measurement are made different, the power consumption can be reduced compared to the case where the phases of the plurality of reference clocks are made different.

また、各第1のカウンターに互いに位相の異なる被測定信号を入力することにより、アイドルトーンに起因する量子化雑音を抑制することができ、これによって、精度を向上させることができる。   In addition, by inputting signals under measurement having different phases to each first counter, it is possible to suppress quantization noise caused by idle tones, thereby improving accuracy.

また、不感期間無く漏れずにカウントすることができ、1次のノイズシェーピング効果が得られ、ノイズを高周波側に効果的にシフトすることができる。これによって、例えば、出力側にローパスフィルターを設けることにより、ノイズ成分を低減することができ、精度を向上させることができる。また、例えば、出力側に移動平均フィルターを設ける場合、その移動平均フィルターの構成や移動平均フィルター処理を簡素化することができる。   Moreover, it is possible to count without leaking without a dead period, a primary noise shaping effect is obtained, and noise can be effectively shifted to the high frequency side. Thereby, for example, by providing a low-pass filter on the output side, the noise component can be reduced and the accuracy can be improved. For example, when a moving average filter is provided on the output side, the configuration of the moving average filter and the moving average filter process can be simplified.

本発明のレシプロカルカウント値生成回路では、前記第1のカウンターは、前記基準クロックの立ち上がりエッジおよび立ち下がりエッジを用いて、前記反転エッジの検出を行い、
前記第2のカウンターは、前記基準クロックの立ち上がりエッジおよび立ち下がりエッジを用いて、前記基準クロックのカウントを行うことが好ましい。
In the reciprocal count value generation circuit of the present invention, the first counter detects the inversion edge using a rising edge and a falling edge of the reference clock,
The second counter preferably counts the reference clock using a rising edge and a falling edge of the reference clock.

これにより実効的に2倍の周波数をカウントすることになり、SN比を向上させることができる。   This effectively counts twice the frequency and improves the S / N ratio.

本発明のレシプロカルカウント値生成回路では、前記基準クロックの立ち上がりおよび立ち下がりを検出し、前記基準クロックの立ち上がりおよび立ち下がりに同期するパルス信号を生成する検出回路を備え、
前記第1のカウンターは、前記パルス信号を用いて、前記反転エッジの検出を行い、
前記第2のカウンターは、前記パルス信号を用いて、前記基準クロックのカウントを行うことが好ましい。
The reciprocal count value generation circuit of the present invention includes a detection circuit that detects a rising edge and a falling edge of the reference clock and generates a pulse signal synchronized with the rising edge and the falling edge of the reference clock.
The first counter detects the inversion edge using the pulse signal,
The second counter preferably counts the reference clock using the pulse signal.

これにより、簡易な構成で実効的に2倍の周波数をカウントすることになり、SN比を向上させることができる。   As a result, the double frequency is effectively counted with a simple configuration, and the SN ratio can be improved.

本発明のレシプロカルカウント値生成回路では、前記基準クロックの立ち上がりおよび立ち下がりを検出し、前記基準クロックの立ち上がりおよび立ち下がりに同期するパルス信号を生成する検出回路を備え、
前記第2のカウンターは、前記基準クロックの立ち上がりをカウントする第1のカウント部と、前記基準クロックの立ち下がりをカウントする第2のカウント部とを備え、
前記第1のカウンターは、前記パルス信号を用いて、前記反転エッジの検出を行い、
前記第2のカウンターは、前記基準クロックのカウントにおいて、前記第1のカウント部により前記基準クロックの立ち上がりをカウントし、前記第2のカウント部により前記基準クロックの立ち下がりをカウントする請求項1に記載のレシプロカルカウント値生成回路。
The reciprocal count value generation circuit of the present invention includes a detection circuit that detects a rising edge and a falling edge of the reference clock and generates a pulse signal synchronized with the rising edge and the falling edge of the reference clock.
The second counter includes a first counting unit that counts rising edges of the reference clock, and a second counting unit that counts falling edges of the reference clock,
The first counter detects the inversion edge using the pulse signal,
The said 2nd counter counts the rising of the said reference clock by the said 1st counting part in the count of the said reference clock, and counts the falling of the said reference clock by the said 2nd counting part. The reciprocal count value generation circuit described.

これにより、簡易な構成で実効的に2倍の周波数をカウントすることになり、SN比を向上させることができる。   As a result, the double frequency is effectively counted with a simple configuration, and the SN ratio can be improved.

本発明のレシプロカルカウント値生成回路では、前記被測定信号の反転エッジの検出数は、前記複数の被測定信号における信号の立ち上がり数または立ち下がり数であることが好ましい。
これにより、回路構成を簡素化することができる。
In the reciprocal count value generation circuit of the present invention, the number of inversion edges detected in the signal under measurement is preferably the number of rising or falling edges of the signal in the plurality of signals under measurement.
Thereby, the circuit configuration can be simplified.

本発明のレシプロカルカウント値生成回路では、前記被測定信号の反転エッジの検出数は、前記複数の被測定信号における信号の立ち上がり数と立ち下がり数の合計値であることが好ましい。   In the reciprocal count value generation circuit of the present invention, it is preferable that the number of inversion edges detected in the signal under measurement is a total value of the number of rising edges and the number of falling edges of the signals under measurement.

これにより、被測定信号の実効入力周波数が2倍になるので、オーバーサンプリング効果によりSN比を向上させることができる。   Thereby, since the effective input frequency of the signal under measurement is doubled, the SN ratio can be improved by the oversampling effect.

本発明の物理量センサーは、振動に関する物理量を検出する検出部と、
前記検出部から出力された被測定信号が入力される本発明のレシプロカルカウント値生成回路と、を備えることを特徴とする。
The physical quantity sensor of the present invention includes a detection unit that detects a physical quantity related to vibration,
And a reciprocal count value generation circuit of the present invention to which the signal under measurement output from the detection unit is input.

この発明では、複数の被測定信号の位相を異ならせるので、複数の基準クロックの位相を異ならせる場合に比べて、消費電力を低減することができる。   In the present invention, since the phases of the plurality of signals under measurement are made different, the power consumption can be reduced compared to the case where the phases of the plurality of reference clocks are made different.

また、各第1のカウンターに互いに位相の異なる被測定信号を入力することにより、アイドルトーンに起因する量子化雑音を抑制することができ、これによって、精度を向上させることができる。   In addition, by inputting signals under measurement having different phases to each first counter, it is possible to suppress quantization noise caused by idle tones, thereby improving accuracy.

また、不感期間無く漏れずにカウントすることができ、1次のノイズシェーピング効果が得られ、ノイズを高周波側に効果的にシフトすることができる。これによって、例えば、出力側にローパスフィルターを設けることにより、ノイズ成分を低減することができ、精度を向上させることができる。また、例えば、出力側に移動平均フィルターを設ける場合、その移動平均フィルターの構成や移動平均フィルター処理を簡素化することができる。   Moreover, it is possible to count without leaking without a dead period, a primary noise shaping effect is obtained, and noise can be effectively shifted to the high frequency side. Thereby, for example, by providing a low-pass filter on the output side, the noise component can be reduced and the accuracy can be improved. For example, when a moving average filter is provided on the output side, the configuration of the moving average filter and the moving average filter process can be simplified.

本発明の物理量センサーでは、前記物理量は振動に関する物理量であることが好ましい。
これにより、振動に関する物理量を精度良く検出することができる。
In the physical quantity sensor of the present invention, the physical quantity is preferably a physical quantity related to vibration.
Thereby, a physical quantity related to vibration can be detected with high accuracy.

本発明のレシプロカルカウント値生成回路の第1実施形態を示すブロック図である。1 is a block diagram showing a first embodiment of a reciprocal count value generation circuit of the present invention. FIG. 本発明のレシプロカルカウント値生成回路の第2実施形態を示すブロック図である。It is a block diagram which shows 2nd Embodiment of the reciprocal count value generation circuit of this invention. 図2に示すレシプロカルカウント値生成回路の動作を説明するためのタイミングチャートである。3 is a timing chart for explaining the operation of the reciprocal count value generation circuit shown in FIG. 2. 本発明のレシプロカルカウント値生成回路の第3実施形態を示すブロック図である。It is a block diagram which shows 3rd Embodiment of the reciprocal count value generation circuit of this invention. 本発明のレシプロカルカウント値生成回路の第4実施形態を示すブロック図である。It is a block diagram which shows 4th Embodiment of the reciprocal count value generation circuit of this invention. 本発明のレシプロカルカウント値生成回路の第5実施形態を示すブロック図である。It is a block diagram which shows 5th Embodiment of the reciprocal count value generation circuit of this invention. 本発明の物理量センサーの1例である加速度センサーの実施形態における検出部の内部構造を示す図である。It is a figure which shows the internal structure of the detection part in embodiment of the acceleration sensor which is an example of the physical quantity sensor of this invention. 図7中のA−A線での断面図である。It is sectional drawing in the AA line in FIG.

以下、本発明のレシプロカルカウント値生成回路および物理量センサーを添付図面に示す実施形態に基づいて詳細に説明する。   Hereinafter, a reciprocal count value generation circuit and a physical quantity sensor of the present invention will be described in detail based on embodiments shown in the accompanying drawings.

<第1実施形態>
図1は、本発明のレシプロカルカウント値生成回路の第1実施形態を示すブロック図である。
<First Embodiment>
FIG. 1 is a block diagram showing a first embodiment of a reciprocal count value generation circuit according to the present invention.

なお、図面には、被測定信号を「Fx」、基準クロック(基準信号)を「Fs」と記載する(他の実施形態の図面も同様)。   In the drawings, the signal under measurement is described as “Fx” and the reference clock (reference signal) is described as “Fs” (the same applies to the drawings of other embodiments).

また、以下の説明では、被測定信号の位相を異ならせた信号も「被測定信号」と言う。
また、信号のレベルが「ロー(Low)」の場合を「0」、信号のレベルが「ハイ(High)」の場合を「1」とも言う。
In the following description, a signal obtained by changing the phase of the signal under measurement is also referred to as a “signal under measurement”.
Further, the case where the signal level is “Low” is also referred to as “0”, and the case where the signal level is “High” is also referred to as “1”.

また、信号の反転には、信号の立ち上がり、すなわち、信号が「0」から「1」になる場合のみを表す場合と、信号の立ち下がり、すなわち、信号が「1」から「0」になる場合のみを表す場合と、信号の立ち上がりおよび立ち下がりの両方、すなわち、信号が「0」から「1」になる場合および信号が「1」から「0」になる場合の両方を表す場合とが含まれる。   Also, inversion of the signal, only the rising edge of the signal, that is, the case where the signal changes from “0” to “1”, and the falling edge of the signal, that is, the signal changes from “1” to “0”. Only the case, and both the rising and falling edges of the signal, that is, the case where the signal changes from “0” to “1” and the case where the signal changes from “1” to “0”. included.

また、信号の反転エッジは、信号のレベルの反転を表す部分であり、前記の通り、信号の反転エッジには、信号の立ち上がりエッジのみを表す場合と、信号の立ち下がりエッジのみを表す場合と、信号の立ち上がりエッジおよび立ち下がりエッジの両方(両エッジ)を表す場合とが含まれる。   The signal inversion edge is a part representing the inversion of the signal level. As described above, the signal inversion edge represents only the rising edge of the signal and only the falling edge of the signal. , Representing both the rising and falling edges (both edges) of the signal.

但し、以下の説明では、基準クロック(基準信号)および被測定信号のそれぞれについて、前記のうちの1つを例に挙げて説明を行う。本実施形態では、基準クロックについては、信号の反転は、信号の立ち上がりとし、被測定信号については、信号の反転は、信号の立ち上がりおよび立ち下がりの両方とする。   However, in the following description, each of the reference clock (reference signal) and the signal under measurement will be described by taking one of them as an example. In this embodiment, for the reference clock, the signal inversion is the rise of the signal, and for the signal under measurement, the inversion of the signal is both the rise and fall of the signal.

図1に示すレシプロカルカウント値生成回路1(レシプロカルカウント値生成装置)は、周波数が既知である基準クロック(基準信号)Fsの周波数と被測定信号Fxの周波数との比に対応する値(または前記値を生成するために用いられる値)であるレシプロカルカウント値(レシプロカルカウント値を示す信号)を生成する回路(装置)である。レシプロカルカウント値生成回路1では、レシプロカルカウント方式を採用しており、被測定信号を動作クロックとして用い、その被測定信号の周波数は、基準クロックの周波数よりも低い。   The reciprocal count value generation circuit 1 (reciprocal count value generation device) shown in FIG. 1 has a value corresponding to the ratio between the frequency of the reference clock (reference signal) Fs whose frequency is known and the frequency of the signal to be measured Fx (or the above-mentioned It is a circuit (apparatus) that generates a reciprocal count value (a signal indicating a reciprocal count value), which is a value used to generate a value. The reciprocal count value generation circuit 1 employs a reciprocal count method, uses a signal under measurement as an operation clock, and the frequency of the signal under measurement is lower than the frequency of the reference clock.

まず、レシプロカルカウント値生成回路1の概要について、特許請求の範囲に対応させて簡単に説明し、その後で詳細に説明する。   First, an outline of the reciprocal count value generation circuit 1 will be briefly described in accordance with the scope of claims, and then described in detail.

レシプロカルカウント値生成回路1は、被測定信号(Fx)で規定されるタイミングで基準クロック(Fs)をカウントする回路(レシプロカルカウント値生成回路)である。このレシプロカルカウント値生成回路1は、電気的に並列に接続され、位相の異なる複数の被測定信号(Fx)がそれぞれ入力され、基準クロック(Fs)を用いて、複数の被測定信号(Fx)のレベルの反転を表す反転エッジを検出する複数の第1のカウンターの1例である複数のカウンター3と、基準クロック(Fs)をカウントする第2のカウンターの1例であるカウンター5と、基準クロック(Fs)で規定されるタイミングにおける被測定信号(Fx)の反転エッジの検出数と、前記タイミングにおけるカウンター5のカウント値との積を、被測定信号(Fx)で規定される区間において積算し、レシプロカルカウント値を生成するレシプロカルカウント値生成部10とを備えている。以下、「電気的に接続」を単に「接続」とも言う。   The reciprocal count value generation circuit 1 is a circuit (reciprocal count value generation circuit) that counts a reference clock (Fs) at a timing defined by a signal under measurement (Fx). The reciprocal count value generation circuit 1 is electrically connected in parallel, and a plurality of signals under measurement (Fx) having different phases are respectively input thereto, and a plurality of signals under measurement (Fx) using a reference clock (Fs). A plurality of counters 3 as an example of a plurality of first counters for detecting an inversion edge representing inversion of the level of the counter, a counter 5 as an example of a second counter for counting a reference clock (Fs), and a reference The product of the number of inversion edges detected in the signal under test (Fx) at the timing specified by the clock (Fs) and the count value of the counter 5 at the timing is integrated in the interval specified by the signal under test (Fx). And a reciprocal count value generation unit 10 for generating a reciprocal count value. Hereinafter, “electrically connected” is also simply referred to as “connection”.

また、レシプロカルカウント値生成部10は、前記積を積算する場合のみならず、前記積を積算した場合と同様の結果を得ることが可能な構成も含まれる。   Further, the reciprocal count value generation unit 10 includes not only a case where the products are integrated, but also a configuration capable of obtaining the same result as that obtained when the products are integrated.

このレシプロカルカウント値生成回路1によれば、複数の被測定信号の位相を異ならせるので、周波数の高い複数の基準クロックの位相を異ならせる場合に比べて、消費電力を低減することができる。また、各カウンター3に互いに位相の異なる被測定信号を入力することにより、アイドルトーンに起因する量子化雑音を抑制することができ、これによって、精度を向上させることができる。   According to the reciprocal count value generation circuit 1, since the phases of the plurality of signals under measurement are made different, the power consumption can be reduced compared to the case where the phases of the plurality of reference clocks having high frequencies are made different. Further, by inputting signals under measurement having different phases to each counter 3, it is possible to suppress quantization noise caused by idle tones, thereby improving accuracy.

また、不感期間無く漏れずにカウントすることができ、1次のノイズシェーピング効果が得られ、ノイズを高周波側に効果的にシフトすることができる。これによって、例えば、出力側にローパスフィルターを設けることにより、ノイズ成分を低減することができ、精度を向上させることができる。また、例えば、出力側に移動平均フィルターを設ける場合、その移動平均フィルターの構成や移動平均フィルター処理を簡素化することができる。   Moreover, it is possible to count without leaking without a dead period, a primary noise shaping effect is obtained, and noise can be effectively shifted to the high frequency side. Thereby, for example, by providing a low-pass filter on the output side, the noise component can be reduced and the accuracy can be improved. For example, when a moving average filter is provided on the output side, the configuration of the moving average filter and the moving average filter process can be simplified.

また、各カウンターにおける被測定信号(Fx)の反転エッジの検出数は、複数の被測定信号(Fx)における信号の立ち上がり数と立ち下がり数の合計値である。これにより、被測定信号の実効入力周波数が2倍になるので、オーバーサンプリング効果によりSN比を向上させることができる。   The number of inversion edges detected in the signal under measurement (Fx) in each counter is the total value of the number of rising edges and the number of falling edges of the signals under measurement (Fx). Thereby, since the effective input frequency of the signal under measurement is doubled, the SN ratio can be improved by the oversampling effect.

また、各カウンターにおける被測定信号(Fx)の反転エッジの検出数は、前記合計値に限らず、複数の被測定信号(Fx)における信号の立ち上がり数または立ち下がり数であるのがよい。これにより、回路構成を簡素化することができる。以下、具体的に説明する。   Further, the number of inversion edges detected in the signal under measurement (Fx) in each counter is not limited to the total value, but may be the number of rising edges or the number of falling edges of the signals under measurement (Fx). Thereby, the circuit configuration can be simplified. This will be specifically described below.

レシプロカルカウント値生成回路1は、少なくとも1つの遅延素子2と、複数の第1のカウンターの1例である複数のカウンター3と、加算器4と、第2のカウンターの1例であるカウンター5と、乗算器6と、積分器7と、差分演算器8とを備えている。各カウンター3は、電気的に並列に接続されている。また、遅延素子2の数は、カウンター3の数よりも1つ少ない。本実施形態では、カウンター3の数をn(nは、2以上の整数)、遅延素子2の数をn−1とする。なお、nの上限は、特に限定されないが、例えば1000程度とすることができる。   The reciprocal count value generation circuit 1 includes at least one delay element 2, a plurality of counters 3 as an example of a plurality of first counters, an adder 4, and a counter 5 as an example of a second counter. , A multiplier 6, an integrator 7, and a difference calculator 8. Each counter 3 is electrically connected in parallel. The number of delay elements 2 is one less than the number of counters 3. In the present embodiment, the number of counters 3 is n (n is an integer of 2 or more), and the number of delay elements 2 is n-1. The upper limit of n is not particularly limited, but can be about 1000, for example.

また、各カウンター3と、加算器4と、乗算器6と、積分器7と、差分演算器8とは、入力側から出力側に向って、この順序で接続されている。   Each counter 3, adder 4, multiplier 6, integrator 7, and difference calculator 8 are connected in this order from the input side to the output side.

カウンター3は、本実施形態では、周波数デルタシグマ変調部(以下、「FDSM(Frequency Delta Sigma Modulator)」と言う)で構成されている。   In the present embodiment, the counter 3 includes a frequency delta sigma modulator (hereinafter referred to as “FDSM (Frequency Delta Sigma Modulator)”).

すなわち、カウンター3は、基準クロック(基準信号)Fsの立ち上がりエッジに同期して被測定信号Fxをラッチして第1データを出力するラッチ31(第1ラッチ)と、基準クロックの立ち上がりエッジに同期して前記第1データをラッチして第2データを出力するラッチ32(第2ラッチ)と、前記第1データと前記第2データの排他的論理和を演算して出力データを生成する排他的論理和回路33とを備えている。なお、ラッチ31、ラッチ32としては、それぞれ、例えば、Dラッチ等を用いることができ、ラッチ31およびラッチ32は、例えば、Dフリップフロップ回路等で構成される。   That is, the counter 3 is synchronized with the latch 31 (first latch) that latches the signal under measurement Fx and outputs the first data in synchronization with the rising edge of the reference clock (reference signal) Fs, and with the rising edge of the reference clock. A latch 32 (second latch) that latches the first data and outputs the second data, and generates an output data by calculating an exclusive OR of the first data and the second data. And an OR circuit 33. For example, a D latch or the like can be used as each of the latch 31 and the latch 32, and the latch 31 and the latch 32 include, for example, a D flip-flop circuit.

遅延素子2は、被測定信号を遅延する機能を有しており、隣り合う2つのカウンター3の入力側において、その2つのカウンター3の間に接続されている。したがって、被測定信号は、所定のカウンター3のラッチ31の入力端子に入力され、また、被測定信号は、遅延素子2で遅延され、別のカウンター3のラッチ31の入力端子に入力され、以下、同様に、被測定信号は、遅延素子2でさらに遅延され、別のカウンター3のラッチ31の入力端子に入力される。また、遅延素子2としては、本実施形態では、インバーターが用いられている。   The delay element 2 has a function of delaying the signal under measurement, and is connected between the two counters 3 on the input side of the two adjacent counters 3. Therefore, the signal under measurement is input to the input terminal of the latch 31 of the predetermined counter 3, and the signal under measurement is delayed by the delay element 2 and input to the input terminal of the latch 31 of another counter 3. Similarly, the signal under measurement is further delayed by the delay element 2 and input to the input terminal of the latch 31 of another counter 3. As the delay element 2, an inverter is used in the present embodiment.

また、カウンター5の入力端子には、基準クロックが入力され、カウンター5の出力端子は、乗算器6の一方の入力端子に接続されている。また、カウンター5としては、例えば、フリーランカウンター等を用いることができる。また、加算器4の出力端子は、乗算器6の他方の入力端子に接続されている。   A reference clock is input to the input terminal of the counter 5, and the output terminal of the counter 5 is connected to one input terminal of the multiplier 6. As the counter 5, for example, a free run counter or the like can be used. The output terminal of the adder 4 is connected to the other input terminal of the multiplier 6.

また、積分器7は、加算器71と、加算器71の出力側に電気的に接続されたラッチ72とを備えている。ラッチ72としては、例えば、Dラッチ等を用いることができる。   The integrator 7 includes an adder 71 and a latch 72 electrically connected to the output side of the adder 71. As the latch 72, for example, a D latch or the like can be used.

また、差分演算器8は、ラッチ81と、減算器82とを備えている。ラッチ81の出力端子は、減算器82のマイナス側の入力端子に接続されている。ラッチ81としては、例えば、Dラッチ等を用いることができる。   In addition, the difference calculator 8 includes a latch 81 and a subtracter 82. The output terminal of the latch 81 is connected to the negative input terminal of the subtractor 82. As the latch 81, for example, a D latch or the like can be used.

また、積分器7のラッチ72の出力端子は、差分演算器8の減算器82のプラス側の入力端子およびラッチ81の入力端子と、加算器71の一方の入力端子とに、それぞれ、接続されている。また、乗算器6の出力端子は、加算器71の他方の入力端子に接続されている。   The output terminal of the latch 72 of the integrator 7 is connected to the positive input terminal of the subtractor 82 of the difference calculator 8, the input terminal of the latch 81, and one input terminal of the adder 71. ing. The output terminal of the multiplier 6 is connected to the other input terminal of the adder 71.

なお、加算器4、乗算器6、積分器7および差分演算器8により、レシプロカルカウント値生成部10の主要部が構成される。   The adder 4, the multiplier 6, the integrator 7, and the difference calculator 8 constitute the main part of the reciprocal count value generation unit 10.

また、被測定信号は、複数のカウンター3のうちの所定のカウンター3のラッチ31の入力端子と、複数の遅延素子2のうちの初段の遅延素子2の入力端子と、積分器7の加算器71のリセット端子と、差分演算器8のラッチ81のクロック入力端子および減算器82のクロック入力端子とに、それぞれ、入力されている。   The signal under measurement includes an input terminal of a latch 31 of a predetermined counter 3 among the plurality of counters 3, an input terminal of the first delay element 2 among the plurality of delay elements 2, and an adder of the integrator 7. 71 is input to the reset terminal 71, the clock input terminal of the latch 81 of the difference calculator 8 and the clock input terminal of the subtractor 82, respectively.

また、基準クロックは、各カウンター3のラッチ31のクロック入力端子およびラッチ32のクロック入力端子と、カウンター5の入力端子と、積分器7のラッチ72のクロック入力端子とに、それぞれ、入力されている。   The reference clock is input to the clock input terminal of the latch 31 and the clock input terminal of the latch 32 of each counter 3, the input terminal of the counter 5, and the clock input terminal of the latch 72 of the integrator 7, respectively. Yes.

次に、レシプロカルカウント値生成回路1の動作について説明する。
なお、図面には、被測定信号を「Fx」、基準クロックを「Fs」と記載する。
Next, the operation of the reciprocal count value generation circuit 1 will be described.
In the drawing, the signal under measurement is described as “Fx”, and the reference clock is described as “Fs”.

図1に示すように、被測定信号は、複数のカウンター3のうちの所定のカウンター3のラッチ31の入力端子と、複数の遅延素子2のうちの初段の遅延素子2の入力端子と、積分器7の加算器71のリセット端子と、差分演算器8のラッチ81のクロック入力端子および減算器82のクロック入力端子とに、それぞれ、入力される。   As shown in FIG. 1, a signal under measurement includes an input terminal of a latch 31 of a predetermined counter 3 among a plurality of counters 3, an input terminal of a first delay element 2 among a plurality of delay elements 2, and integration. Is input to the reset terminal of the adder 71 of the calculator 7, the clock input terminal of the latch 81 of the difference calculator 8, and the clock input terminal of the subtractor 82.

また、基準クロックは、各カウンター3のラッチ31のクロック入力端子およびラッチ32のクロック入力端子と、カウンター5の入力端子と、積分器7のラッチ72のクロック入力端子とに、それぞれ、入力される。   Further, the reference clock is input to the clock input terminal of the latch 31 and the clock input terminal of the latch 32 of each counter 3, the input terminal of the counter 5, and the clock input terminal of the latch 72 of the integrator 7, respectively. .

また、被測定信号は、遅延素子2で遅延され、別のカウンター3のラッチ31の入力端子に入力される。これにより、各カウンター3のラッチ31の入力端子には、周波数が同一で位相の異なる被測定信号が入力される。   The signal under measurement is delayed by the delay element 2 and input to the input terminal of the latch 31 of another counter 3. As a result, signals to be measured having the same frequency and different phases are input to the input terminals of the latches 31 of the counters 3.

各カウンター3では、それぞれ、ラッチ31は、基準クロックの立ち上がりエッジに同期して被測定信号をラッチして第1データを出力し、ラッチ32は、基準クロックの立ち上がりエッジに同期して前記第1データをラッチして第2データを出力し、排他的論理和回路33は、前記第1データと前記第2データの排他的論理和を演算して出力データを生成し、出力する。すなわち、排他的論理和回路33は、基準クロックが1周期推移する間の被測定信号の反転回数が偶数であれば「0」、奇数であれば「1」を出力する。これにより、各カウンター3からは、被測定信号の立ち上がりおよび立ち下がりに対応してそれぞれ「1」が出力され、その他は「0」が出力される。   In each counter 3, the latch 31 latches the signal under measurement in synchronization with the rising edge of the reference clock and outputs the first data, and the latch 32 synchronizes with the rising edge of the reference clock. The data is latched and the second data is output, and the exclusive OR circuit 33 calculates the exclusive OR of the first data and the second data to generate and output the output data. That is, the exclusive OR circuit 33 outputs “0” if the number of inversions of the signal under measurement during the one-cycle transition of the reference clock is an even number, and “1” if it is an odd number. As a result, each counter 3 outputs “1” corresponding to the rise and fall of the signal under measurement, and “0” for the others.

各カウンター3から出力された信号は、それぞれ、加算器4に入力される。加算器4は、各カウンター3から出力された信号が示す数値を加算し、出力する。   The signal output from each counter 3 is input to the adder 4. The adder 4 adds the numerical values indicated by the signals output from the counters 3 and outputs the result.

また、カウンター5は、基準クロックをカウントし、その基準クロックのカウント値を出力する。   The counter 5 counts the reference clock and outputs the count value of the reference clock.

次に、乗算器6は、加算器4から出力された数値と、カウンター5から出力されたカウント値とを乗算し、その乗算値を出力する。   Next, the multiplier 6 multiplies the numerical value output from the adder 4 and the count value output from the counter 5 and outputs the multiplied value.

次に、積分器7では、加算器71は、現在の乗算値と、ラッチ72にラッチされている1つ前の乗算値とを加算し、出力する。この出力は、積算されたレシプロカルカウント値の総和である。   Next, in the integrator 7, the adder 71 adds the current multiplication value and the previous multiplication value latched in the latch 72 and outputs the result. This output is the sum of the accumulated reciprocal count values.

次に、差分演算器8では、減算器82は、現在の積分器7から出力された信号が示す値から、ラッチ81にラッチされている1つ前の信号が示す値を減算し、出力する。この出力は、レシプロカルカウント値の総和である。このレシプロカルカウント値の総和をカウンター3の数で除算すると、1つのカウンター3に対応するレシプロカルカウント値が得られる。   Next, in the difference calculator 8, the subtracter 82 subtracts the value indicated by the previous signal latched in the latch 81 from the value indicated by the signal output from the current integrator 7 and outputs the result. . This output is the sum of the reciprocal count values. When the sum of the reciprocal count values is divided by the number of counters 3, a reciprocal count value corresponding to one counter 3 is obtained.

ここで、本実施形態におけるレシプロカルカウント値は、複数のカウンター3の1つ分の出力に相当する値であり、被測定信号の立ち上がりエッジと立ち下がりエッジとの間に含まれる基準クロックの立ち上がりエッジの数である。   Here, the reciprocal count value in this embodiment is a value corresponding to the output of one of the plurality of counters 3, and the rising edge of the reference clock included between the rising edge and the falling edge of the signal under measurement. Is the number of

また、レシプロカルカウント値の総和は、すべてのカウンター3の出力から得られたレシプロカルカウント値を合計した値である。   The sum of the reciprocal count values is a value obtained by summing up the reciprocal count values obtained from the outputs of all the counters 3.

また、本発明におけるレシプロカルカウント値とは、本実施形態における狭義のレシプロカルカウント値に限らず、レシプロカルカウント値の総和、積算されたレシプロカルカウント値、積算されたレシプロカルカウント値の総和等を含む。   In addition, the reciprocal count value in the present invention is not limited to the reciprocal count value in the narrow sense in the present embodiment, but includes a sum of reciprocal count values, an integrated reciprocal count value, an integrated sum of reciprocal count values, and the like.

以降の動作については詳細な説明を省略するが、例えば、差分演算器8の出力側にローパスフィルター(フィルター)(図示せず)を設け、そのローパスフィルターで、差分演算器8から出力された信号に対して処理を行う。これにより、ローパスフィルターで、所定の遮断周波数以上の周波数成分が遮断または低減される。また、例えば、移動平均フィルター等を設けてもよい。   Although detailed description of subsequent operations is omitted, for example, a low-pass filter (filter) (not shown) is provided on the output side of the difference calculator 8, and the signal output from the difference calculator 8 by the low-pass filter. Process. As a result, the frequency component equal to or higher than the predetermined cutoff frequency is cut off or reduced by the low pass filter. For example, a moving average filter or the like may be provided.

以上説明したように、レシプロカルカウント値生成回路1によれば、複数の被測定信号の位相を異ならせるので、周波数の高い複数の基準クロックの位相を異ならせる場合に比べて、消費電力を低減することができる。   As described above, according to the reciprocal count value generation circuit 1, since the phases of the plurality of signals under measurement are made different, the power consumption is reduced compared to the case where the phases of the plurality of reference clocks having high frequencies are made different. be able to.

また、各カウンター3に互いに位相の異なる被測定信号を入力することにより、アイドルトーンに起因する量子化雑音を抑制することができる。これにより、精度を向上させることができる。   Further, by inputting signals under measurement having different phases to each counter 3, quantization noise caused by idle tones can be suppressed. Thereby, accuracy can be improved.

また、不感期間無く漏れずにカウントすることができ、1次のノイズシェーピング効果が得られ、ノイズを高周波側に効果的にシフトすることができる。これによって、例えば、出力側にローパスフィルターを設けることにより、ノイズ成分を低減することができ、精度を向上させることができる。また、例えば、出力側に移動平均フィルターを設ける場合、その移動平均フィルターの構成や移動平均フィルター処理を簡素化することができる。   Moreover, it is possible to count without leaking without a dead period, a primary noise shaping effect is obtained, and noise can be effectively shifted to the high frequency side. Thereby, for example, by providing a low-pass filter on the output side, the noise component can be reduced and the accuracy can be improved. For example, when a moving average filter is provided on the output side, the configuration of the moving average filter and the moving average filter process can be simplified.

また、以下に変形例を説明する。
(1)カウンター3およびカウンター5としては、それぞれ、前記の構成に限定されず、他の構成のカウンターを用いることができる。他のカウンターとしては、例えば、リプルカウンター等が挙げられる。
Further, modifications will be described below.
(1) The counter 3 and the counter 5 are not limited to the above-described configurations, and counters having other configurations can be used. Examples of other counters include a ripple counter.

(2)被測定信号の周波数は、基準クロックの周波数よりも高くてもよい。
(3)差分演算器8(エッジ検出数演算回路)よりも後段(出力側)の回路については、動作クロックとして、基準クロックを用いてもよく、また、被測定信号を用いてもよい。
(2) The frequency of the signal under measurement may be higher than the frequency of the reference clock.
(3) For the circuit at the subsequent stage (output side) of the difference calculator 8 (edge detection number calculation circuit), a reference clock may be used as an operation clock, or a signal under measurement may be used.

(3−1)差分演算器8(エッジ検出数演算回路)よりも後段の回路について、動作クロックとして基準クロックを用いる。   (3-1) A reference clock is used as an operation clock for a circuit subsequent to the difference calculator 8 (edge detection number calculation circuit).

これにより、被測定信号の周波数よりも基準クロックの周波数の方が高い場合、処理を分散させつつ、適確に時間内に演算を終了させることができる。   Thereby, when the frequency of the reference clock is higher than the frequency of the signal under measurement, it is possible to finish the calculation accurately in time while dispersing the processing.

(3−2)差分演算器8(エッジ検出数演算回路)よりも後段の回路について、動作クロックとして被測定信号を用いる。   (3-2) A signal under measurement is used as an operation clock for a circuit subsequent to the difference calculator 8 (edge detection number calculation circuit).

これにより、被測定信号の周波数よりも基準クロックの周波数の方が低い場合、低周波数のクロックでのパイプライン処理により消費電力を低減することができる。   Thereby, when the frequency of the reference clock is lower than the frequency of the signal under measurement, the power consumption can be reduced by pipeline processing with the low-frequency clock.

<第2実施形態>
図2は、本発明のレシプロカルカウント値生成回路の第2実施形態を示すブロック図である。図3は、図2に示すレシプロカルカウント値生成回路の動作を説明するためのタイミングチャートである。なお、図2では、回路中のバスを太線で示す(他の図も同様)。
Second Embodiment
FIG. 2 is a block diagram showing a second embodiment of the reciprocal count value generation circuit of the present invention. FIG. 3 is a timing chart for explaining the operation of the reciprocal count value generation circuit shown in FIG. In FIG. 2, buses in the circuit are indicated by thick lines (the same applies to other drawings).

なお、図面には、位相の異なる各被測定信号を区別するために、「Fx」に、添え字(0、1、・・・、31)を付す(他の実施形態の図面も同様)。   In the drawings, subscripts (0, 1,..., 31) are added to “Fx” in order to distinguish the signals under measurement having different phases (the same applies to the drawings of other embodiments).

また、図面には、各ラッチ31から出力された信号を「S」と記載し、前記各信号を区別するために、添え字(0、1、・・・、31)を付す(他の実施形態の図面も同様)。   In the drawing, a signal output from each latch 31 is described as “S”, and a subscript (0, 1,..., 31) is added to distinguish each signal (another implementation). The same applies to the drawings in the form)

以下、第2実施形態について、前述した実施形態との相違点を中心に説明し、同様の事項については、その説明を省略する。   Hereinafter, the second embodiment will be described with a focus on differences from the above-described embodiment, and description of similar matters will be omitted.

なお、第2実施形態では、基準クロックおよび被測定信号のそれぞれについて、信号の反転は、信号の立ち上がりおよび立ち下がりの両方とする。   In the second embodiment, for each of the reference clock and the signal under measurement, the inversion of the signal is both the rise and fall of the signal.

すなわち、第2実施形態では、カウンター3(第1のカウンター)は、基準クロック(Fs)の立ち上がりエッジおよび立ち下がりエッジを用いて、反転エッジの検出を行い、カウンター11(第2のカウンター)は、基準クロック(Fs)の立ち上がりエッジおよび立ち下がりエッジを用いて、基準クロック(Fs)のカウントを行う。   That is, in the second embodiment, the counter 3 (first counter) detects the inverted edge using the rising edge and falling edge of the reference clock (Fs), and the counter 11 (second counter) is The reference clock (Fs) is counted using the rising edge and falling edge of the reference clock (Fs).

これにより実効的に2倍の周波数をカウントすることになり、SN比を向上させることができる。以下、具体的に説明する。   This effectively counts twice the frequency and improves the S / N ratio. This will be specifically described below.

より詳細には、第2実施形態のレシプロカルカウント値生成回路1は、基準クロック(Fs)の立ち上がりおよび立ち下がりを検出し、基準クロック(Fs)の立ち上がりおよび立ち下がりに同期するパルス信号(P)を生成する検出回路の1例であるエッジ検出部9を備えている。そして、カウンター3(第1のカウンター)は、エッジ検出部9で生成されたパルス信号(P)を用いて、反転エッジの検出を行い、カウンター11(第2のカウンター)は、エッジ検出部9で生成されたパルス信号(P)を用いて、基準クロック(Fs)のカウントを行う。   More specifically, the reciprocal count value generation circuit 1 of the second embodiment detects the rising and falling edges of the reference clock (Fs), and synchronizes with the rising and falling edges of the reference clock (Fs). The edge detection unit 9 is an example of a detection circuit that generates The counter 3 (first counter) detects the inverted edge using the pulse signal (P) generated by the edge detection unit 9, and the counter 11 (second counter) detects the edge detection unit 9 The reference clock (Fs) is counted using the pulse signal (P) generated in step (1).

これにより、簡易な構成で、実効的に2倍の周波数をカウントすることになり、SN比を向上させることができる。以下、具体的に説明する。   As a result, with a simple configuration, twice the frequency is effectively counted, and the SN ratio can be improved. This will be specifically described below.

図2に示すように、第2実施形態のレシプロカルカウント値生成回路1は、エッジ検出部9と、第2のカウンターの1例であるカウンター11と、少なくとも1つの遅延素子12と、複数の第1のカウンターの1例である複数のカウンター3と、複数のラッチ13と、複数のラッチ14と、加算器4とを備えている。各カウンター3は、電気的に並列に接続されている。また、遅延素子12の数は、カウンター3の数よりも1つ少ない。本実施形態では、カウンター3の数を32、遅延素子12の数を31とする。また、ラッチ13およびラッチ14の数は、それぞれ、カウンター3の数と等しく、32である。   As shown in FIG. 2, the reciprocal count value generation circuit 1 according to the second embodiment includes an edge detection unit 9, a counter 11 that is an example of a second counter, at least one delay element 12, and a plurality of first count elements. A plurality of counters 3, which are an example of one counter, a plurality of latches 13, a plurality of latches 14, and an adder 4 are provided. Each counter 3 is electrically connected in parallel. The number of delay elements 12 is one less than the number of counters 3. In the present embodiment, the number of counters 3 is 32, and the number of delay elements 12 is 31. The number of latches 13 and 14 is equal to the number of counters 3 and is 32.

また、エッジ検出部9と、カウンター11と、各ラッチ14と、加算器4とは、入力側から出力側に向って、この順序で接続されている。   The edge detector 9, the counter 11, the latches 14, and the adder 4 are connected in this order from the input side to the output side.

また、エッジ検出部9は、遅延素子91と、排他的論理和回路92とを備えている。遅延素子91の出力端子は、排他的論理和回路92の一方の入力端子に接続されている。また、遅延素子91としては、本実施形態では、バッファーが用いられている。   The edge detection unit 9 includes a delay element 91 and an exclusive OR circuit 92. The output terminal of the delay element 91 is connected to one input terminal of the exclusive OR circuit 92. As the delay element 91, a buffer is used in the present embodiment.

このエッジ検出部9の出力端子は、カウンター11の入力端子に接続され、カウンター11の出力端子は、各ラッチ14の入力端子に接続されている。そして、ラッチ14の出力端子は、加算器4の入力端子に接続されている。また、カウンター11としては、例えば、アップカウンター等を用いることができる。   The output terminal of the edge detector 9 is connected to the input terminal of the counter 11, and the output terminal of the counter 11 is connected to the input terminal of each latch 14. The output terminal of the latch 14 is connected to the input terminal of the adder 4. As the counter 11, for example, an up counter can be used.

また、エッジ検出部9の出力端子は、各カウンター3のラッチ31のクロック入力端子およびラッチ32のクロック入力端子と、各ラッチ13のクロック入力端子とに、それぞれ、接続されている。また、各ラッチ13の出力端子は、各ラッチ14のクロック入力端子に接続されている。   The output terminals of the edge detector 9 are connected to the clock input terminals of the latches 31 and the latches 32 of the counters 3 and the clock input terminals of the latches 13, respectively. The output terminal of each latch 13 is connected to the clock input terminal of each latch 14.

また、各カウンター3の出力端子は、それぞれ、そのカウンター3に対応するラッチ13の入力端子に接続されている。また、各ラッチ13の出力端子は、それぞれ、そのラッチ13に対応するラッチ14のクロック入力端子に接続されている。また、ラッチ13およびラッチ14としては、それぞれ、例えば、Dラッチ等を用いることができる。   The output terminal of each counter 3 is connected to the input terminal of the latch 13 corresponding to the counter 3. The output terminal of each latch 13 is connected to the clock input terminal of the latch 14 corresponding to the latch 13. In addition, as the latch 13 and the latch 14, for example, a D latch or the like can be used.

遅延素子12は、被測定信号を遅延する機能を有しており、隣り合う2つのカウンター3の入力側において、その2つのカウンター3の間に接続されている。したがって、被測定信号は、所定のカウンター3のラッチ31に入力され、また、被測定信号は、遅延素子12で遅延され、別のカウンター3のラッチ31に入力され、以下、同様に、被測定信号は、遅延素子12でさらに遅延され、別のカウンター3のラッチ31に入力される。また、遅延素子12としては、本実施形態では、バッファーが用いられている。   The delay element 12 has a function of delaying the signal under measurement, and is connected between the two counters 3 on the input side of the two adjacent counters 3. Therefore, the signal under measurement is input to the latch 31 of the predetermined counter 3, and the signal under measurement is delayed by the delay element 12 and input to the latch 31 of another counter 3. The signal is further delayed by the delay element 12 and input to the latch 31 of another counter 3. In the present embodiment, a buffer is used as the delay element 12.

また、被測定信号は、複数のカウンター3のうちの所定のカウンター3のラッチ31の入力端子と、複数の遅延素子12のうちの初段の遅延素子12の入力端子とに、それぞれ、入力されている。   The signal under measurement is input to the input terminal of the latch 31 of the predetermined counter 3 among the plurality of counters 3 and the input terminal of the first delay element 12 among the plurality of delay elements 12. Yes.

また、基準クロックは、エッジ検出部9の排他的論理和回路92の一方の入力端子に接続されている遅延素子91の入力端子と、排他的論理和回路92の他方の入力端子とに、それぞれ、入力されている。   Further, the reference clock is supplied to the input terminal of the delay element 91 connected to one input terminal of the exclusive OR circuit 92 of the edge detection unit 9 and the other input terminal of the exclusive OR circuit 92, respectively. Have been entered.

次に、レシプロカルカウント値生成回路1の動作について説明する。
図2に示すように、被測定信号は、複数のカウンター3のうちの所定のカウンター3のラッチ31の入力端子と、複数の遅延素子12のうちの初段の遅延素子12の入力端子とに、それぞれ、入力される。
Next, the operation of the reciprocal count value generation circuit 1 will be described.
As shown in FIG. 2, the signal under measurement is supplied to the input terminal of the latch 31 of the predetermined counter 3 among the plurality of counters 3 and the input terminal of the first delay element 12 among the plurality of delay elements 12. Each is entered.

また、基準クロックは、エッジ検出部9の排他的論理和回路92の一方の入力端子に接続されている遅延素子91の入力端子と、排他的論理和回路92の他方の入力端子とに、それぞれ、入力される。   Further, the reference clock is supplied to the input terminal of the delay element 91 connected to one input terminal of the exclusive OR circuit 92 of the edge detection unit 9 and the other input terminal of the exclusive OR circuit 92, respectively. Is entered.

また、被測定信号は、遅延素子2で遅延され、別のカウンター3のラッチ31の入力端子に入力される。これにより、各カウンター3のラッチ31の入力端子には、周波数が同一で位相の異なる被測定信号が入力される(図3参照)。   The signal under measurement is delayed by the delay element 2 and input to the input terminal of the latch 31 of another counter 3. As a result, signals under measurement having the same frequency and different phases are input to the input terminals of the latches 31 of the counters 3 (see FIG. 3).

エッジ検出部9では、基準クロック(Fs)の立ち上がりエッジおよび立ち下がりエッジが検出される。すなわち、エッジ検出部9は、基準クロック(Fs)の立ち上がりエッジに同期したパルスおよび基準クロック(Fs)の立ち下がりエッジに同期したパルスを有するパルス信号(P)を出力する。   The edge detector 9 detects the rising edge and the falling edge of the reference clock (Fs). That is, the edge detector 9 outputs a pulse signal (P) having a pulse synchronized with the rising edge of the reference clock (Fs) and a pulse synchronized with the falling edge of the reference clock (Fs).

また、エッジ検出部9から出力されたパルス信号(P)は、カウンター11に入力され、カウンター11は、エッジ検出部9から出力されるパルス信号(P)のパルスをカウントし、そのパルスのカウント値を出力する。   The pulse signal (P) output from the edge detection unit 9 is input to the counter 11, and the counter 11 counts the pulses of the pulse signal (P) output from the edge detection unit 9, and counts the pulses. Output the value.

また、パルス信号(P)は、各カウンター3のラッチ31のクロック入力端子およびラッチ32のクロック入力端子と、ラッチ13のクロック入力端子とに、それぞれ、入力される。   The pulse signal (P) is input to the clock input terminal of the latch 31 and the clock input terminal of the latch 32 of each counter 3 and the clock input terminal of the latch 13, respectively.

また、各カウンター3では、それぞれ、ラッチ31は、基準クロックの立ち上がりエッジ(エッジ検出部9から出力されたパルス信号のパルスの立ち上がりエッジ)に同期して被測定信号(Fx0〜Fx31)をラッチして第1データを出力し、ラッチ32は、基準クロックの立ち上がりエッジに同期して前記第1データをラッチして第2データを出力し、排他的論理和回路33は、前記第1データと前記第2データの排他的論理和を演算して出力データを生成し、出力する。また、各カウンター3では、それぞれ、ラッチ31は、基準クロックの立ち下がりエッジに同期して被測定信号をラッチして第1データを出力し、ラッチ32は、基準クロックの立ち下がりエッジに同期して前記第1データをラッチして第2データを出力し、排他的論理和回路33は、前記第1データと前記第2データの排他的論理和を演算して出力データを生成し、出力する。すなわち、各カウンター3からは、被測定信号の立ち上がりおよび立ち下がりに対応してそれぞれ「1」が出力され、その他は「0」が出力される。   In each counter 3, the latch 31 latches the signal under measurement (Fx0 to Fx31) in synchronization with the rising edge of the reference clock (the rising edge of the pulse of the pulse signal output from the edge detector 9). The first data is output, the latch 32 latches the first data in synchronization with the rising edge of the reference clock and outputs the second data, and the exclusive OR circuit 33 outputs the first data and the first data. The exclusive OR of the second data is calculated to generate output data and output it. In each counter 3, the latch 31 latches the signal under measurement in synchronization with the falling edge of the reference clock and outputs the first data, and the latch 32 synchronizes with the falling edge of the reference clock. The first data is latched to output the second data, and the exclusive OR circuit 33 calculates the exclusive OR of the first data and the second data to generate and output the output data. . That is, each counter 3 outputs “1” corresponding to the rise and fall of the signal under measurement, and “0” for the others.

また、各カウンター3から出力された信号は、それぞれ、ラッチ13により、基準クロックの立ち上がりエッジおよび立ち下がりエッジに同期してラッチされ、出力される。   The signals output from the counters 3 are latched and output by the latch 13 in synchronization with the rising edge and falling edge of the reference clock.

また、カウンター11から出力されたカウント値は、各ラッチ14に入力される。各ラッチ14は、それぞれ、ラッチ13から出力された信号の立ち上がりエッジに同期して前記カウント値をラッチし、出力する。   The count value output from the counter 11 is input to each latch 14. Each latch 14 latches and outputs the count value in synchronization with the rising edge of the signal output from the latch 13.

図3に示す例では、各カウンター3のうちの所定のカウンター3のラッチ14から出力されたカウント値は、被測定信号の立ち上がりで、「6」、立ち下がりで、「34」である。すなわち、このカウンター3のみに着目すると、積算されたレシプロカルカウント値は、「6」と「34」であり、レシプロカルカウント値は、28(=34−6)である。   In the example shown in FIG. 3, the count value output from the latch 14 of a predetermined counter 3 among the counters 3 is “6” at the rising edge of the signal under measurement, and “34” at the falling edge. That is, paying attention only to this counter 3, the integrated reciprocal count values are “6” and “34”, and the reciprocal count value is 28 (= 34−6).

また、他のカウンター3のラッチ14から出力されたカウント値は、被測定信号の立ち上がりで、「7」、立ち下がりで、「34」である。すなわち、このカウンター3のみに着目すると、積算されたレシプロカルカウント値は、「7」と「34」であり、レシプロカルカウント値は、27(=34−7)である。   The count value output from the latch 14 of the other counter 3 is “7” at the rising edge of the signal under measurement, and “34” at the falling edge. That is, paying attention only to this counter 3, the integrated reciprocal count values are “7” and “34”, and the reciprocal count value is 27 (= 34−7).

また、他のカウンター3のラッチ14から出力されたカウント値は、被測定信号の立ち上がりで、「7」、立ち下がりで、「35」である。すなわち、このカウンター3のみに着目すると、積算されたレシプロカルカウント値は、「7」と「35」であり、レシプロカルカウント値は、28(=35−7)である。   The count value output from the latch 14 of the other counter 3 is “7” at the rising edge of the signal under measurement, and “35” at the falling edge. That is, paying attention only to this counter 3, the integrated reciprocal count values are “7” and “35”, and the reciprocal count value is 28 (= 35−7).

また、他のカウンター3のラッチ14から出力されたカウント値は、被測定信号の立ち上がりで、「10」、立ち下がりで、「37」である。すなわち、このカウンター3のみに着目すると、積算されたレシプロカルカウント値は、「10」と「37」であり、レシプロカルカウント値は、27(=37−10)である。   The count value output from the latch 14 of the other counter 3 is “10” at the rising edge of the signal under measurement and “37” at the falling edge. That is, paying attention only to this counter 3, the integrated reciprocal count values are “10” and “37”, and the reciprocal count value is 27 (= 37−10).

次に、加算器4は、各ラッチ14から出力されたカウント値を加算し、出力する。この出力は、積算されたレシプロカルカウント値の総和である。   Next, the adder 4 adds the count value output from each latch 14 and outputs the result. This output is the sum of the accumulated reciprocal count values.

ここで、本実施形態におけるレシプロカルカウント値は、複数のカウンター3のうちの1つの出力に相当する値であり、被測定信号の立ち上がりエッジと立ち下がりエッジとの間に含まれる基準クロックの立ち上がりエッジおよび立ち下がりエッジの数である。   Here, the reciprocal count value in this embodiment is a value corresponding to one output of the plurality of counters 3, and the rising edge of the reference clock included between the rising edge and the falling edge of the signal under measurement. And the number of falling edges.

また、レシプロカルカウント値の総和は、すべてのカウンター3の出力から得られた前記レシプロカルカウント値を合計した値である。   The sum of the reciprocal count values is a value obtained by summing the reciprocal count values obtained from the outputs of all the counters 3.

以降の動作については詳細な説明を省略するが、例えば、現在の積算されたレシプロカルカウント値の総和と、1つ前の積算されたレシプロカルカウント値の総和との差を求め、出力する。この出力は、レシプロカルカウント値の総和である。なお、レシプロカルカウント値の総和を求める方法としては、この方法に限定されず、他の方法を用いてもよい。また、第1実施形態で説明したように、例えば、ローパスフィルター、移動平均フィルター等のフィルター等を設けてもよい。   Although a detailed description of the subsequent operation is omitted, for example, the difference between the total sum of the currently accumulated reciprocal count values and the sum of the previous accumulated reciprocal count values is obtained and output. This output is the sum of the reciprocal count values. Note that the method for obtaining the sum of the reciprocal count values is not limited to this method, and other methods may be used. Further, as described in the first embodiment, for example, a filter such as a low-pass filter or a moving average filter may be provided.

以上のような第2実施形態によっても、前述した実施形態と同様の効果を発揮することができる。   According to the second embodiment as described above, the same effect as that of the above-described embodiment can be exhibited.

また、第2実施形態では、被測定信号だけでなく、基準クロックについても、信号の反転を、信号の立ち上がりおよび立ち下がりの両方と規定しているので、さらに精度を向上させることができる。   In the second embodiment, since not only the signal under measurement but also the reference clock is defined as both the rising and falling edges of the signal, the accuracy can be further improved.

<第3実施形態>
図4は、本発明のレシプロカルカウント値生成回路の第3実施形態を示すブロック図である。
<Third Embodiment>
FIG. 4 is a block diagram showing a third embodiment of the reciprocal count value generation circuit of the present invention.

以下、第3実施形態について、前述した実施形態との相違点を中心に説明し、同様の事項については、その説明を省略する。   Hereinafter, the third embodiment will be described with a focus on differences from the above-described embodiment, and description of similar matters will be omitted.

なお、第3実施形態では、基準クロックおよび被測定信号のそれぞれについて、信号の反転は、信号の立ち上がりおよび立ち下がりの両方とする。   In the third embodiment, for each of the reference clock and the signal under measurement, signal inversion is both rising and falling of the signal.

図4に示すように、第3実施形態のレシプロカルカウント値生成回路1は、エッジ検出部9と、第2のカウンターの1例であるカウンター11と、ラッチ18と、少なくとも1つの遅延素子(図示せず)と、複数の第1のカウンターの1例であるカウンター30(図示は1つ)と、複数のラッチ17(図示は1つ)と、数え上げ部19と、乗算器25と、カウンター20と、ラッチ24と、ラッチ26と、加算器27とを備えている。   As shown in FIG. 4, the reciprocal count value generation circuit 1 according to the third embodiment includes an edge detection unit 9, a counter 11 as an example of a second counter, a latch 18, and at least one delay element (see FIG. Not shown), a counter 30 (one shown) as an example of a plurality of first counters, a plurality of latches 17 (one shown), a counting unit 19, a multiplier 25, and a counter 20 A latch 24, a latch 26, and an adder 27.

本実施形態では、カウンター30は、第2実施形態の32個分のカウンター3と同様であり、1個で、32個分のカウンター3を示している(32個分のカウンター3の機能を有している)。すなわち、カウンター30は、第2実施形態の32個のラッチ31に相当する図示しない32個のラッチと、32個のラッチ32(図には、1個のみ図示されている)と、第2実施形態の32個の排他的論理和回路33に相当する32個の排他的論理和回路330(図には、1個のみ図示されている)とを備えている。同様に、ラッチ17は、第2実施形態の32個分のラッチ14と同様であり、1個で、32個分のラッチ14を示している(32個分のラッチ14の機能を有している)。したがって、カウンター30およびラッチ17については、その説明は省略する。   In this embodiment, the counter 30 is the same as the counter 3 for 32 in the second embodiment, and one counter indicates 32 counters 3 (the function of the counter 3 for 32 is provided). doing). That is, the counter 30 includes 32 latches (not shown) corresponding to the 32 latches 31 of the second embodiment, 32 latches 32 (only one is shown in the figure), and the second embodiment. 32 exclusive OR circuits 330 (only one is shown in the figure) corresponding to the 32 exclusive OR circuits 33 of the embodiment. Similarly, the latches 17 are the same as the 32 latches 14 of the second embodiment, and one latch 32 is shown (the function of the 32 latches 14 is provided). ) Therefore, the description of the counter 30 and the latch 17 is omitted.

また、カウンター30と、ラッチ17と、数え上げ部19と、乗算器25と、加算器27とは、入力側から出力側に向って、この順序で接続されている。また、数え上げ部19は、「1」ビットの数え上げを行う機能を有している。   The counter 30, the latch 17, the counting unit 19, the multiplier 25, and the adder 27 are connected in this order from the input side to the output side. The counting unit 19 has a function of counting “1” bits.

また、エッジ検出部9と、カウンター11と、ラッチ18と、乗算器25とは、入力側から出力側に向って、この順序で接続されている。   The edge detection unit 9, the counter 11, the latch 18, and the multiplier 25 are connected in this order from the input side to the output side.

また、カウンター20と、ラッチ24とは、入力側から出力側に向って、この順序で接続されている。   The counter 20 and the latch 24 are connected in this order from the input side to the output side.

なお、図示は省略するが、カウンター30の入力側には、前記第2実施形態と同様に、複数(本実施形態では、31個)の遅延素子が接続されている。   Although not shown, a plurality of (31 in this embodiment) delay elements are connected to the input side of the counter 30 as in the second embodiment.

また、カウンター20は、ラッチ21、ラッチ22および排他的論理和回路23を備えており、前記第1実施形態および第2実施形態のカウンター3と同様に構成されている。そして、被測定信号は、このカウンター20のラッチ21の入力端子に入力されている。   The counter 20 includes a latch 21, a latch 22, and an exclusive OR circuit 23, and is configured in the same manner as the counter 3 in the first and second embodiments. The signal under measurement is input to the input terminal of the latch 21 of the counter 20.

また、前記ラッチ17、ラッチ18、ラッチ21、ラッチ22およびラッチ26としては、それぞれ、例えば、Dラッチ等を用いることができる。   Further, as the latch 17, the latch 18, the latch 21, the latch 22, and the latch 26, for example, a D latch or the like can be used.

また、エッジ検出部9の出力端子は、カウンター30の第2実施形態の各ラッチ31に相当する図示しない各ラッチのクロック入力端子および各ラッチ32のクロック入力端子と、カウンター11の入力端子と、ラッチ18のクロック入力端子と、ラッチ26のクロック入力端子と、各ラッチ17のクロック入力端子と、カウンター20のラッチ21のクロック入力端子およびラッチ22のクロック入力端子と、ラッチ24のクロック入力端子とに、それぞれ、接続されている。   Further, the output terminals of the edge detector 9 are clock input terminals of latches not shown and clock inputs of the latches 32 corresponding to the latches 31 of the counter 30 of the second embodiment, input terminals of the counter 11, and A clock input terminal of the latch 18, a clock input terminal of the latch 26, a clock input terminal of each latch 17, a clock input terminal of the latch 21 of the counter 20 and a clock input terminal of the latch 22, and a clock input terminal of the latch 24 Are connected to each other.

また、カウンター11の出力端子は、ラッチ18の入力端子に接続されている。また、ラッチ18の出力端子は、乗算器25の一方の入力端子に接続されている。また、数え上げ部19の出力端子は、乗算器25の他方の入力端子に接続されている。   The output terminal of the counter 11 is connected to the input terminal of the latch 18. The output terminal of the latch 18 is connected to one input terminal of the multiplier 25. Further, the output terminal of the counting unit 19 is connected to the other input terminal of the multiplier 25.

また、乗算器25の出力端子は、加算器27の一方の入力端子に接続されている。また、加算器27の出力端子は、ラッチ26の入力端子に接続され、ラッチ26の出力端子は、加算器27の他方の入力端子に接続されている。また、ラッチ24の出力端子は、加算器27のリセット端子に接続されている。   The output terminal of the multiplier 25 is connected to one input terminal of the adder 27. The output terminal of the adder 27 is connected to the input terminal of the latch 26, and the output terminal of the latch 26 is connected to the other input terminal of the adder 27. The output terminal of the latch 24 is connected to the reset terminal of the adder 27.

また、基準クロックは、エッジ検出部9の排他的論理和回路92の一方の入力端子に接続されている遅延素子91の入力端子と、排他的論理和回路92の他方の入力端子とに、それぞれ、入力されている。   Further, the reference clock is supplied to the input terminal of the delay element 91 connected to one input terminal of the exclusive OR circuit 92 of the edge detection unit 9 and the other input terminal of the exclusive OR circuit 92, respectively. Have been entered.

次に、レシプロカルカウント値生成回路1の動作について説明する。
図4に示すように、途中までは、第2実施形態と同様であり、カウンター30の排他的論理和回路330からは、被測定信号の立ち上がりおよび立ち下がりに対応してそれぞれ「1」が出力され、その他は「0」が出力される。
Next, the operation of the reciprocal count value generation circuit 1 will be described.
As shown in FIG. 4, the process is the same as in the second embodiment until halfway, and “1” is output from the exclusive OR circuit 330 of the counter 30 corresponding to the rise and fall of the signal under measurement. Otherwise, “0” is output.

また、エッジ検出部9から出力され、基準クロックの立ち上がりエッジに同期したパルスおよび基準クロックの立ち下がりエッジに同期したパルスを有するパルス信号は、カウンター11と、ラッチ18のクロック入力端子と、ラッチ26のクロック入力端子と、ラッチ17のクロック入力端子と、カウンター20のラッチ21のクロック入力端子およびラッチ22のクロック入力端子と、ラッチ24のクロック入力端子とに、それぞれ、入力される。   The pulse signal output from the edge detection unit 9 and having a pulse synchronized with the rising edge of the reference clock and a pulse synchronized with the falling edge of the reference clock is supplied to the counter 11, the clock input terminal of the latch 18, and the latch 26. Are input to a clock input terminal of the latch 17, a clock input terminal of the latch 17, a clock input terminal of the latch 21 of the counter 20, a clock input terminal of the latch 22, and a clock input terminal of the latch 24, respectively.

また、カウンター30から出力された信号は、それぞれ、ラッチ17により、基準クロックの立ち上がりエッジ(エッジ検出部9から出力されたパルス信号のパルスの立ち上がりエッジ)に同期してラッチされ、出力される。   The signals output from the counter 30 are latched and output by the latch 17 in synchronization with the rising edge of the reference clock (the rising edge of the pulse of the pulse signal output from the edge detector 9).

次に、数え上げ部19は、カウンター30から出力された信号の「1」ビットの数え上げを行う。すなわち、カウンター11の各カウント値のときのカウンター30から出力された信号の「1」の数を数える。   Next, the counting unit 19 counts “1” bits of the signal output from the counter 30. That is, the number of “1” s of the signal output from the counter 30 at each count value of the counter 11 is counted.

また、カウンター11から出力されたカウント値は、ラッチ18に入力される。ラッチ18は、基準クロックの立ち上がりエッジ(エッジ検出部9から出力されたパルス信号のパルスの立ち上がりエッジ)に同期して前記カウント値をラッチし、出力する。   The count value output from the counter 11 is input to the latch 18. The latch 18 latches and outputs the count value in synchronization with the rising edge of the reference clock (the rising edge of the pulse of the pulse signal output from the edge detection unit 9).

次に、乗算器25は、数え上げ部19から出力された数値と、ラッチ18から出力されたカウンター11のカウント値とを乗算し、その乗算値を出力する。この乗算値は、加算器27の一方の入力端子に入力される。   Next, the multiplier 25 multiplies the numerical value output from the counting unit 19 and the count value of the counter 11 output from the latch 18 and outputs the multiplied value. This multiplication value is input to one input terminal of the adder 27.

また、カウンター20では、ラッチ21は、基準クロックの立ち上がりエッジ(エッジ検出部9から出力されたパルス信号のパルスの立ち上がりエッジ)に同期して被測定信号をラッチして第1データを出力し、ラッチ22は、基準クロックの立ち上がりエッジおよび立ち下がりエッジに同期して前記第1データをラッチして第2データを出力し、排他的論理和回路23は、前記第1データと前記第2データの排他的論理和を演算して出力データを生成し、出力する。すなわち、カウンター20からは、被測定信号の立ち上がりおよび立ち下がりに対応してそれぞれ「1」が出力され、その他は「0」が出力される。   In the counter 20, the latch 21 latches the signal under measurement in synchronization with the rising edge of the reference clock (the rising edge of the pulse of the pulse signal output from the edge detection unit 9) and outputs the first data, The latch 22 latches the first data in synchronization with the rising edge and falling edge of the reference clock and outputs the second data, and the exclusive OR circuit 23 outputs the first data and the second data. An exclusive OR is calculated and output data is generated and output. That is, the counter 20 outputs “1” corresponding to the rise and fall of the signal under measurement, and outputs “0” for the others.

カウンター20から出力された信号は、ラッチ24により、基準クロックの立ち上がりエッジおよび立ち下がりエッジに同期してラッチされ、出力され、加算器27のリセット端子に入力される。   The signal output from the counter 20 is latched by the latch 24 in synchronization with the rising edge and falling edge of the reference clock, output, and input to the reset terminal of the adder 27.

乗算器25から出力された乗算値は、加算器27の一方の入力端子に入力される。また、加算器27の出力は、ラッチ26により、基準クロックの立ち上がりエッジおよび立ち下がりエッジに同期してラッチされ、出力され、加算器27の他方の入力端子に入力される。   The multiplication value output from the multiplier 25 is input to one input terminal of the adder 27. The output of the adder 27 is latched and output by the latch 26 in synchronization with the rising edge and falling edge of the reference clock, and input to the other input terminal of the adder 27.

加算器27は、現在の乗算値と、ラッチ26にラッチされている1つ前の乗算値とを加算し、出力する。この出力は、積算されたレシプロカルカウント値の総和である。   The adder 27 adds the current multiplication value and the previous multiplication value latched in the latch 26 and outputs the result. This output is the sum of the accumulated reciprocal count values.

以降の動作については詳細な説明を省略するが、例えば、現在の積算されたレシプロカルカウント値の総和と、1つ前の積算されたレシプロカルカウント値の総和との差を求め、出力する。この出力は、レシプロカルカウント値の総和である。なお、レシプロカルカウント値の総和を求める方法としては、この方法に限定されず、他の方法を用いてもよい。また、第1実施形態で説明したように、例えば、ローパスフィルター、移動平均フィルター等のフィルター等を設けてもよい。   Although a detailed description of the subsequent operation is omitted, for example, the difference between the total sum of the currently accumulated reciprocal count values and the sum of the previous accumulated reciprocal count values is obtained and output. This output is the sum of the reciprocal count values. Note that the method for obtaining the sum of the reciprocal count values is not limited to this method, and other methods may be used. Further, as described in the first embodiment, for example, a filter such as a low-pass filter or a moving average filter may be provided.

以上のような第3実施形態によっても、前述した実施形態と同様の効果を発揮することができる。   According to the third embodiment as described above, the same effects as those of the above-described embodiment can be exhibited.

<第4実施形態>
図5は、本発明のレシプロカルカウント値生成回路の第4実施形態を示すブロック図である。
<Fourth embodiment>
FIG. 5 is a block diagram showing a fourth embodiment of the reciprocal count value generation circuit of the present invention.

以下、第4実施形態について、前述した実施形態との相違点を中心に説明し、同様の事項については、その説明を省略する。   Hereinafter, the fourth embodiment will be described with a focus on differences from the above-described embodiment, and description of similar matters will be omitted.

なお、第4実施形態では、基準クロックおよび被測定信号のそれぞれについて、信号の反転は、信号の立ち上がりおよび立ち下がりの両方とする。   In the fourth embodiment, for each of the reference clock and the signal under measurement, signal inversion is both rising and falling of the signal.

第4実施形態のレシプロカルカウント値生成回路1は、基準クロック(Fs)の立ち上がりおよび立ち下がりを検出し、基準クロック(Fs)の立ち上がりおよび立ち下がりに同期するパルス信号(P)を生成する検出回路の1例であるエッジ検出部9を備えている。また、第2のカウンターの1例であるカウンター110は、基準クロック(Fs)の立ち上がりをカウントする第1のカウント部111と、基準クロック(Fs)の立ち下がりをカウントする第2のカウント部112とを備えている。そして、カウンター3(第1のカウンター)は、エッジ検出部9で検出されたパルス信号(P)を用いて、反転エッジの検出を行い、カウンター110(第2のカウンター)は、基準クロック(Fs)のカウントにおいて、第1のカウント部111により基準クロック(Fs)の立ち上がりをカウントし、第2のカウント部112により基準クロック(Fs)の立ち下がりをカウントする。   A reciprocal count value generation circuit 1 according to the fourth embodiment detects a rising edge and a falling edge of a reference clock (Fs) and generates a pulse signal (P) synchronized with the rising edge and the falling edge of the reference clock (Fs). An edge detection unit 9 is provided as an example. The counter 110, which is an example of the second counter, includes a first count unit 111 that counts the rising edge of the reference clock (Fs) and a second counting unit 112 that counts the falling edge of the reference clock (Fs). And. The counter 3 (first counter) detects the inverted edge using the pulse signal (P) detected by the edge detection unit 9, and the counter 110 (second counter) detects the reference clock (Fs). ), The first count unit 111 counts the rising edge of the reference clock (Fs), and the second counting unit 112 counts the falling edge of the reference clock (Fs).

これにより、簡易な構成で実効的に2倍の周波数をカウントすることになり、SN比を向上させることができる。以下、具体的に説明する。   As a result, the double frequency is effectively counted with a simple configuration, and the SN ratio can be improved. This will be specifically described below.

図5に示すように、第4実施形態のレシプロカルカウント値生成回路1は、エッジ検出部9と、第2のカウンターの1例であるカウンター110と、少なくとも1つの遅延素子12と、複数の第1のカウンターの1例である複数のカウンター3と、複数のラッチ13と、複数のラッチ141と、複数のラッチ142と、加算器4とを備えている。各カウンター3は、電気的に並列に接続されている。また、遅延素子12の数は、カウンター3の数よりも1つ少ない。本実施形態では、カウンター3の数を32、遅延素子12の数を31とする。また、ラッチ13、ラッチ141およびラッチ142の数は、それぞれ、カウンター3の数と等しく、32である。   As shown in FIG. 5, the reciprocal count value generation circuit 1 according to the fourth embodiment includes an edge detection unit 9, a counter 110 that is an example of a second counter, at least one delay element 12, and a plurality of first count elements. 1 includes a plurality of counters 3, a plurality of latches 13, a plurality of latches 141, a plurality of latches 142, and an adder 4. Each counter 3 is electrically connected in parallel. The number of delay elements 12 is one less than the number of counters 3. In the present embodiment, the number of counters 3 is 32, and the number of delay elements 12 is 31. The number of latches 13, latch 141, and latch 142 is 32, which is equal to the number of counters 3, respectively.

なお、エッジ検出部9、各遅延素子12および各カウンター3については、それぞれ、前記第2実施形態と同様であるので、その説明は省略する。   Note that the edge detection unit 9, each delay element 12, and each counter 3 are the same as those in the second embodiment, and a description thereof will be omitted.

カウンター110は、第1のカウント部111と、第2のカウント部112と、インバーター113(位相反転回路)とを備えている。第2のカウント部112は、インバーター113の出力側に接続されている。そして、インバーター113と第2のカウント部112とで構成される直列回路と、第1のカウント部111とは、並列に接続されている。また、第1のカウント部111の出力端子は、各ラッチ141の入力端子に接続され、第2のカウント部112の出力端子は、各ラッチ142の入力端子に接続されている。そして、各ラッチ141の出力端子および各ラッチ142の出力端子は、それぞれ、加算器4の入力端子に接続されている。また、第1のカウント部111および第2のカウント部112としては、それぞれ、例えば、アップカウンター等を用いることができる。   The counter 110 includes a first count unit 111, a second count unit 112, and an inverter 113 (phase inversion circuit). The second count unit 112 is connected to the output side of the inverter 113. And the series circuit comprised by the inverter 113 and the 2nd count part 112 and the 1st count part 111 are connected in parallel. The output terminal of the first count unit 111 is connected to the input terminal of each latch 141, and the output terminal of the second count unit 112 is connected to the input terminal of each latch 142. The output terminal of each latch 141 and the output terminal of each latch 142 are connected to the input terminal of the adder 4, respectively. Further, as the first count unit 111 and the second count unit 112, for example, an up counter can be used, for example.

また、エッジ検出部9の出力端子は、各カウンター3のラッチ31のクロック入力端子およびラッチ32のクロック入力端子と、各ラッチ13のクロック入力端子とに、それぞれ、接続されている。   The output terminals of the edge detector 9 are connected to the clock input terminals of the latches 31 and the latches 32 of the counters 3 and the clock input terminals of the latches 13, respectively.

また、各カウンター3の出力端子は、それぞれ、そのカウンター3に対応するラッチ13の入力端子に接続されている。また、各ラッチ13の出力端子は、それぞれ、そのラッチ13に対応するラッチ141のクロック入力端子およびラッチ142のクロック入力端子に接続されている。また、ラッチ13、ラッチ141およびラッチ142としては、それぞれ、例えば、Dラッチ等を用いることができる。   The output terminal of each counter 3 is connected to the input terminal of the latch 13 corresponding to the counter 3. The output terminal of each latch 13 is connected to the clock input terminal of the latch 141 corresponding to the latch 13 and the clock input terminal of the latch 142, respectively. Further, as the latch 13, the latch 141, and the latch 142, for example, a D latch or the like can be used.

また、被測定信号は、複数のカウンター3のうちの所定のカウンター3のラッチ31の入力端子と、複数の遅延素子12のうちの初段の遅延素子12の入力端子とに、それぞれ、入力されている。   The signal under measurement is input to the input terminal of the latch 31 of the predetermined counter 3 among the plurality of counters 3 and the input terminal of the first delay element 12 among the plurality of delay elements 12. Yes.

また、基準クロックは、エッジ検出部9の排他的論理和回路92の一方の入力端子に接続されている遅延素子91の入力端子と、排他的論理和回路92の他方の入力端子と、カウンター110の第1のカウント部111の入力端子およびインバーター113の入力端子とに、それぞれ、入力されている。   The reference clock includes an input terminal of the delay element 91 connected to one input terminal of the exclusive OR circuit 92 of the edge detection unit 9, the other input terminal of the exclusive OR circuit 92, and a counter 110. Are input to the input terminal of the first count unit 111 and the input terminal of the inverter 113, respectively.

次に、レシプロカルカウント値生成回路1の動作について説明する。
図5に示すように、途中までは、第2実施形態と同様であり、各カウンター3からは、被測定信号の立ち上がりおよび立ち下がりに対応してそれぞれ「1」が出力され、その他は「0」が出力される。
Next, the operation of the reciprocal count value generation circuit 1 will be described.
As shown in FIG. 5, the process is the same as in the second embodiment until halfway, and each counter 3 outputs “1” corresponding to the rise and fall of the signal under measurement, and the others are “0”. Is output.

一方、基準クロックは、カウンター110に入力される。第1のカウント部111は、基準クロックの立ち上がりエッジをカウントし、その基準クロックの立ち上がりエッジのカウント値を出力する。   On the other hand, the reference clock is input to the counter 110. The first count unit 111 counts the rising edge of the reference clock and outputs the count value of the rising edge of the reference clock.

また、基準クロックは、インバーター113で、その位相が反転され、第2のカウント部112に入力される。第2のカウント部112は、基準クロックの位相を反転してなる反転基準クロックの立ち上がりエッジ、すなわち、基準クロックの立ち下がりエッジをカウントし、その基準クロックの立ち下がりエッジのカウント値を出力する。   The phase of the reference clock is inverted by the inverter 113 and input to the second count unit 112. The second count unit 112 counts the rising edge of the inverted reference clock obtained by inverting the phase of the reference clock, that is, the falling edge of the reference clock, and outputs the count value of the falling edge of the reference clock.

各カウンター3から出力された信号は、それぞれ、ラッチ13により、基準クロックの立ち上がりエッジおよび立ち下がりエッジに同期してラッチされ、出力される。   The signals output from each counter 3 are latched and output by the latch 13 in synchronization with the rising edge and falling edge of the reference clock.

また、第1のカウント部111から出力されたカウント値は、各ラッチ141に入力される。各ラッチ141は、それぞれ、ラッチ13から出力された信号の立ち上がりエッジに同期して前記カウント値をラッチし、出力する。   Further, the count value output from the first count unit 111 is input to each latch 141. Each latch 141 latches and outputs the count value in synchronization with the rising edge of the signal output from the latch 13.

同様に、第2のカウント部112から出力されたカウント値は、各ラッチ142に入力される。各ラッチ142は、それぞれ、ラッチ13から出力された信号の立ち上がりエッジに同期して前記カウント値をラッチし、出力する。   Similarly, the count value output from the second count unit 112 is input to each latch 142. Each latch 142 latches and outputs the count value in synchronization with the rising edge of the signal output from the latch 13.

次に、加算器4は、各ラッチ141および各ラッチ142から出力されたカウント値を加算し、出力する。この出力は、積算されたレシプロカルカウント値の総和である。   Next, the adder 4 adds the count value output from each latch 141 and each latch 142, and outputs it. This output is the sum of the accumulated reciprocal count values.

以降の動作については詳細な説明を省略するが、例えば、現在の積算されたレシプロカルカウント値の総和と、1つ前の積算されたレシプロカルカウント値の総和との差を求め、出力する。この出力は、レシプロカルカウント値の総和である。なお、レシプロカルカウント値の総和を求める方法としては、この方法に限定されず、他の方法を用いてもよい。また、第1実施形態で説明したように、例えば、ローパスフィルター、移動平均フィルター等のフィルター等を設けてもよい。   Although a detailed description of the subsequent operation is omitted, for example, the difference between the total sum of the currently accumulated reciprocal count values and the sum of the previous accumulated reciprocal count values is obtained and output. This output is the sum of the reciprocal count values. Note that the method for obtaining the sum of the reciprocal count values is not limited to this method, and other methods may be used. Further, as described in the first embodiment, for example, a filter such as a low-pass filter or a moving average filter may be provided.

以上のような第4実施形態によっても、前述した実施形態と同様の効果を発揮することができる。   According to the fourth embodiment as described above, the same effect as that of the above-described embodiment can be exhibited.

<第5実施形態>
図6は、本発明のレシプロカルカウント値生成回路の第5実施形態を示すブロック図である。
<Fifth Embodiment>
FIG. 6 is a block diagram showing a fifth embodiment of the reciprocal count value generation circuit of the present invention.

以下、第5実施形態について、前述した実施形態との相違点を中心に説明し、同様の事項については、その説明を省略する。   Hereinafter, the fifth embodiment will be described with a focus on differences from the above-described embodiments, and description of similar matters will be omitted.

なお、第5実施形態では、基準クロックおよび被測定信号のそれぞれについて、信号の反転は、信号の立ち上がりおよび立ち下がりの両方とする。   In the fifth embodiment, for each of the reference clock and the signal under measurement, signal inversion is both rising and falling of the signal.

図6に示すように、第5実施形態のレシプロカルカウント値生成回路1は、インバーター115(位相反転回路)と、第2のカウンターの1例であるカウンター110と、少なくとも1つの遅延素子12と、複数の第1のカウンターの1例である複数のカウンター280と、複数のラッチ141と、複数のラッチ142と、加算器4と、差分演算器8とを備えている。各カウンター280は、電気的に並列に接続されている。また、遅延素子12の数は、カウンター280の数よりも1つ少ない。本実施形態では、カウンター280の数を32、遅延素子12の数を31とする。また、ラッチ141およびラッチ142の数は、それぞれ、カウンター280の数と等しく、32である。   As shown in FIG. 6, the reciprocal count value generation circuit 1 of the fifth embodiment includes an inverter 115 (phase inverting circuit), a counter 110 that is an example of a second counter, at least one delay element 12, A plurality of counters 280, which are an example of a plurality of first counters, a plurality of latches 141, a plurality of latches 142, an adder 4, and a difference calculator 8 are provided. Each counter 280 is electrically connected in parallel. Further, the number of delay elements 12 is one less than the number of counters 280. In this embodiment, the number of counters 280 is 32, and the number of delay elements 12 is 31. The number of latches 141 and 142 is equal to the number of counters 280 and is 32.

カウンター280は、第1のカウント部28と、第2のカウント部29と、ラッチ131と、ラッチ132と、オア回路133とを備えている。   The counter 280 includes a first count unit 28, a second count unit 29, a latch 131, a latch 132, and an OR circuit 133.

第1のカウント部28は、ラッチ281、282および排他的論理和回路283を備えている。また、第2のカウント部29は、ラッチ291、292および排他的論理和回路293を備えている。この第1のカウント部28および第2のカウント部29については、それぞれ、前記第1、第2、第4実施形態のカウンター3と同様であるので、その説明は省略する。   The first count unit 28 includes latches 281 and 282 and an exclusive OR circuit 283. The second count unit 29 includes latches 291 and 292 and an exclusive OR circuit 293. The first count unit 28 and the second count unit 29 are the same as those of the counter 3 of the first, second, and fourth embodiments, respectively, and thus description thereof is omitted.

また、第1のカウント部28の出力端子は、ラッチ131の入力端子に接続され、第2のカウント部29の出力端子は、ラッチ132の入力端子に接続されている。なお、第1のカウント部28およびラッチ131で構成される直列回路と、第2のカウント部29およびラッチ132で構成される直列回路とは、電気的に並列に接続されている。また、ラッチ131の出力端子およびラッチ132の出力端子は、それぞれ、オア回路133の入力端子に接続されている。また、ラッチ131およびラッチ132としては、例えば、Dラッチ等を用いることができる。なお、遅延素子12については、前記第4実施形態の遅延素子12と同様であるので、その説明は省略する。   The output terminal of the first count unit 28 is connected to the input terminal of the latch 131, and the output terminal of the second count unit 29 is connected to the input terminal of the latch 132. Note that the series circuit constituted by the first count unit 28 and the latch 131 and the series circuit constituted by the second count unit 29 and the latch 132 are electrically connected in parallel. The output terminal of the latch 131 and the output terminal of the latch 132 are connected to the input terminal of the OR circuit 133, respectively. Further, as the latch 131 and the latch 132, for example, a D latch or the like can be used. Since the delay element 12 is the same as the delay element 12 of the fourth embodiment, description thereof is omitted.

また、カウンター110は、互いに並列に接続された第1のカウント部111と、第2のカウント部112とを備えている。また、第1のカウント部111の出力端子は、各ラッチ141の入力端子に接続され、第2のカウント部112の出力端子は、各ラッチ142の入力端子に接続されている。そして、各ラッチ141の出力端子および各ラッチ142の出力端子は、それぞれ、加算器4の入力端子に接続されている。また、第1のカウント部111および第2のカウント部112としては、それぞれ、例えば、アップカウンター等を用いることができる。また、各ラッチ141および各ラッチ142としては、例えば、Dラッチ等を用いることができる。   The counter 110 includes a first count unit 111 and a second count unit 112 connected in parallel to each other. The output terminal of the first count unit 111 is connected to the input terminal of each latch 141, and the output terminal of the second count unit 112 is connected to the input terminal of each latch 142. The output terminal of each latch 141 and the output terminal of each latch 142 are connected to the input terminal of the adder 4, respectively. Further, as the first count unit 111 and the second count unit 112, for example, an up counter can be used, for example. Moreover, as each latch 141 and each latch 142, D latch etc. can be used, for example.

また、差分演算器8は、ラッチ81と、減算器82とを備えている。ラッチ81の出力端子は、減算器82のマイナス側の入力端子に接続されている。ラッチ81としては、例えば、Dラッチ等を用いることができる。   In addition, the difference calculator 8 includes a latch 81 and a subtracter 82. The output terminal of the latch 81 is connected to the negative input terminal of the subtractor 82. As the latch 81, for example, a D latch or the like can be used.

また、加算器4の出力端子は、差分演算器8の減算器82のプラス側の入力端子およびラッチ81の入力端子に、それぞれ、接続されている。   The output terminal of the adder 4 is connected to the plus-side input terminal of the subtractor 82 of the difference calculator 8 and the input terminal of the latch 81, respectively.

また、インバーター115の出力端子は、カウンター110の第2のカウント部112の入力端子と、各カウンター280の第1のカウント部28のラッチ281のクロック入力端子、ラッチ282のクロック入力端子およびラッチ131のクロック入力端子とに、それぞれ、接続されている。   The output terminal of the inverter 115 includes the input terminal of the second count unit 112 of the counter 110, the clock input terminal of the latch 281 of the first count unit 28 of each counter 280, the clock input terminal of the latch 282, and the latch 131. Are respectively connected to the clock input terminals.

また、各カウンター280のうち、遅延素子12により遅延されていない被測定信号が入力されるカウンター280については、出力端子は、対応するラッチ141のクロック入力端子と、対応するラッチ142のクロック入力端子と、差分演算器8のラッチ81のクロック入力端子および減算器82のクロック入力端子とに、それぞれ、接続されている。また、その他のカウンター280については、それぞれ、出力端子は、対応するラッチ141のクロック入力端子および対応するラッチ142のクロック入力端子に、それぞれ、接続されている。なお、前記カウンター280に代えて、他のカウンター280の出力端子が差分演算器8のラッチ81のクロック入力端子および減算器82のクロック入力端子に接続されていてもよい。また、各ラッチ141、各ラッチ142およびラッチ81としては、それぞれ、例えば、Dラッチ等を用いることができる。   Among the counters 280, the counter 280 to which the signal under measurement that is not delayed by the delay element 12 is input has a clock input terminal of the corresponding latch 141 and a clock input terminal of the corresponding latch 142. Are connected to the clock input terminal of the latch 81 of the difference calculator 8 and the clock input terminal of the subtractor 82, respectively. For the other counters 280, the output terminals are connected to the clock input terminal of the corresponding latch 141 and the clock input terminal of the corresponding latch 142, respectively. Instead of the counter 280, the output terminal of another counter 280 may be connected to the clock input terminal of the latch 81 of the difference calculator 8 and the clock input terminal of the subtractor 82. Further, as each of the latch 141, each of the latch 142, and the latch 81, for example, a D latch or the like can be used.

また、被測定信号は、複数のカウンター280のうちの所定のカウンター280のラッチ281の入力端子およびラッチ291の入力端子と、複数の遅延素子12のうちの初段の遅延素子12の入力端子とに、それぞれ、入力されている。   In addition, the signal under measurement is input to the input terminal of the latch 281 and the input terminal of the latch 291 of the predetermined counter 280 of the plurality of counters 280 and to the input terminal of the first delay element 12 of the plurality of delay elements 12. , Respectively.

また、基準クロックは、カウンター110の第1のカウント部111の入力端子と、インバーター115の入力端子と、各カウンター280の第2のカウント部29のラッチ291のクロック入力端子、ラッチ292のクロック入力端子およびラッチ132のクロック入力端子とに、それぞれ、入力されている。   The reference clock includes an input terminal of the first count unit 111 of the counter 110, an input terminal of the inverter 115, a clock input terminal of the latch 291 of the second count unit 29 of each counter 280, and a clock input of the latch 292. And the clock input terminal of the latch 132, respectively.

次に、レシプロカルカウント値生成回路1の動作について説明する。
図6に示すように、基準クロックは、カウンター110の第1のカウント部111およびインバーター115にそれぞれ入力される。第1のカウント部111は、基準クロックの立ち上がりエッジをカウントし、その基準クロックの立ち上がりエッジのカウント値を出力する。
Next, the operation of the reciprocal count value generation circuit 1 will be described.
As shown in FIG. 6, the reference clock is input to the first count unit 111 and the inverter 115 of the counter 110, respectively. The first count unit 111 counts the rising edge of the reference clock and outputs the count value of the rising edge of the reference clock.

また、基準クロックは、インバーター115で、その位相が反転され、第2のカウント部112に入力される。第2のカウント部112は、基準クロックの位相を反転してなる反転基準クロックの立ち上がりエッジ、すなわち、基準クロックの立ち下がりエッジをカウントし、その基準クロックの立ち下がりエッジのカウント値を出力する。   The phase of the reference clock is inverted by the inverter 115 and input to the second count unit 112. The second count unit 112 counts the rising edge of the inverted reference clock obtained by inverting the phase of the reference clock, that is, the falling edge of the reference clock, and outputs the count value of the falling edge of the reference clock.

また、各カウンター280の第1のカウント部28からは、それぞれ、被測定信号の立ち上がりおよび立ち下がりに対応してそれぞれ「1」が出力され、その他は「0」が出力される。   Further, from the first count section 28 of each counter 280, “1” is output corresponding to the rise and fall of the signal under measurement, and “0” is output otherwise.

また、各カウンター280の第2のカウント部29からは、それぞれ、被測定信号の立ち上がりおよび立ち下がりに対応してそれぞれ「1」が出力され、その他は「0」が出力される。   Further, from the second count section 29 of each counter 280, “1” is output corresponding to the rise and fall of the signal under measurement, and “0” is output otherwise.

但し、第1のカウント部28と第2のカウント部29とでは、そのクロック入力端子に入力される信号が、第1のカウント部28では、前記インバーター115で基準クロックの位相を反転してなる反転基準クロックであり、第2のカウント部29では、基準クロックである点が異なる。   However, in the first count unit 28 and the second count unit 29, the signal input to the clock input terminal is inverted in the phase of the reference clock by the inverter 115 in the first count unit 28. This is an inverted reference clock, and the second count unit 29 is different in that it is a reference clock.

また、各カウンター280の第1のカウント部28から出力された信号は、それぞれ、ラッチ131により、前記インバーター115で基準クロックの位相を反転してなる反転基準クロックの立ち上がりエッジ、すなわち、基準クロックの立ち下がりエッジに同期してラッチされ、出力される。   Further, the signals output from the first count unit 28 of each counter 280 are respectively supplied to the rising edge of the inverted reference clock obtained by inverting the phase of the reference clock by the inverter 115 by the latch 131, that is, the reference clock. It is latched and output in synchronization with the falling edge.

また、各カウンター280の第2のカウント部29から出力された信号は、それぞれ、ラッチ132により、基準クロックの立ち上がりエッジに同期してラッチされ、出力される。   The signals output from the second count unit 29 of each counter 280 are latched and output by the latch 132 in synchronization with the rising edge of the reference clock.

次に、各カウンター280において、それぞれ、ラッチ131から出力された信号およびラッチ132から出力された信号は、それぞれ、オア回路133に入力され、そのオア回路133で所定の演算処理が行われ、出力される。   Next, in each counter 280, the signal output from the latch 131 and the signal output from the latch 132 are respectively input to the OR circuit 133, and predetermined OR processing is performed in the OR circuit 133 for output. Is done.

また、第1のカウント部111から出力されたカウント値は、各ラッチ141に入力される。各ラッチ141は、それぞれ、対応するカウンター280から出力された信号の立ち上がりエッジに同期して前記カウント値をラッチし、出力する。   Further, the count value output from the first count unit 111 is input to each latch 141. Each latch 141 latches and outputs the count value in synchronization with the rising edge of the signal output from the corresponding counter 280.

同様に、第2のカウント部112から出力されたカウント値は、各ラッチ142に入力される。各ラッチ142は、それぞれ、対応するカウンター280から出力された信号の立ち上がりエッジに同期して前記カウント値をラッチし、出力する。   Similarly, the count value output from the second count unit 112 is input to each latch 142. Each latch 142 latches and outputs the count value in synchronization with the rising edge of the signal output from the corresponding counter 280.

次に、加算器4は、各ラッチ141および各ラッチ142から出力されたカウント値を加算し、出力する。この出力は、積算されたレシプロカルカウント値の総和である。   Next, the adder 4 adds the count value output from each latch 141 and each latch 142, and outputs it. This output is the sum of the accumulated reciprocal count values.

次に、差分演算器8では、減算器82は、現在の加算器4から出力された信号が示す値から、ラッチ81にラッチされている1つ前の信号が示す値を減算し、出力する。この出力は、レシプロカルカウント値の総和である。   Next, in the difference calculator 8, the subtracter 82 subtracts the value indicated by the previous signal latched in the latch 81 from the value indicated by the signal output from the current adder 4 and outputs the result. . This output is the sum of the reciprocal count values.

以上のような第5実施形態によっても、前述した実施形態と同様の効果を発揮することができる。   According to the fifth embodiment as described above, the same effect as that of the above-described embodiment can be exhibited.

また、エッジ検出部9(アナログ要素)を用いないので、より安定した動作が可能となる。   Further, since the edge detection unit 9 (analog element) is not used, a more stable operation is possible.

<物理量センサーの実施形態>
図7は、本発明の物理量センサーの1例である加速度センサーの実施形態における検出部の内部構造を示す図である。図8は、図7中のA−A線での断面図である。
<Embodiment of physical quantity sensor>
FIG. 7 is a diagram showing an internal structure of a detection unit in an embodiment of an acceleration sensor which is an example of the physical quantity sensor of the present invention. 8 is a cross-sectional view taken along line AA in FIG.

以下、物理量センサーの1例である加速度センサーの実施形態について、前述した実施形態との相違点を中心に説明し、同様の事項については、その説明を省略する。   Hereinafter, an embodiment of an acceleration sensor, which is an example of a physical quantity sensor, will be described with a focus on differences from the above-described embodiment, and description of similar matters will be omitted.

図7および図8に示すように、本実施形態の加速度センサー100(物理量センサー)は、振動に関する物理量の1例である加速度を検出する検出部200と、検出部200から出力された被測定信号が入力されるレシプロカルカウント値生成回路1(レシプロカルカウント値生成回路1については、図1等を参照)とを備えている。検出部200とレシプロカルカウント値生成回路1とは電気的に接続されている。なお、レシプロカルカウント値生成回路1については、既に説明したので、その説明は省略する。   As shown in FIGS. 7 and 8, the acceleration sensor 100 (physical quantity sensor) of the present embodiment includes a detection unit 200 that detects acceleration, which is an example of a physical quantity related to vibration, and a signal under measurement output from the detection unit 200. Is input to the reciprocal count value generation circuit 1 (see FIG. 1 and the like for the reciprocal count value generation circuit 1). The detection unit 200 and the reciprocal count value generation circuit 1 are electrically connected. Since the reciprocal count value generation circuit 1 has already been described, the description thereof is omitted.

検出部200は、平板状のベース部210と、ベース部210に継ぎ手部211を介して接続された略矩形平板状の可動部212と、ベース部210と可動部212とに掛け渡された物理量検出素子の1例である加速度検出素子213と、少なくとも上記各構成要素を内部に収納するパッケージ220とを備えている。   The detection unit 200 includes a flat base portion 210, a substantially rectangular flat plate-shaped movable portion 212 connected to the base portion 210 via a joint portion 211, and a physical quantity spanned between the base portion 210 and the movable portion 212. An acceleration detection element 213 that is an example of the detection element, and a package 220 that houses at least each of the above-described components are provided.

この検出部200は、外部端子227、228、内部端子224、225、外部接続端子214e、214f、接続端子210b、210c等を経由して加速度検出素子213の励振電極に印加される駆動信号によって、加速度検出素子213の振動梁213a、213bが所定の周波数で発振(共振)する。そして、検出部200は、加わる加速度に応じて変化する加速度検出素子213の共振周波数を被測定信号(検出信号)として出力する。   The detection unit 200 is driven by a drive signal applied to the excitation electrode of the acceleration detection element 213 via the external terminals 227 and 228, the internal terminals 224 and 225, the external connection terminals 214e and 214f, the connection terminals 210b and 210c, and the like. The vibrating beams 213a and 213b of the acceleration detecting element 213 oscillate (resonate) at a predetermined frequency. And the detection part 200 outputs the resonance frequency of the acceleration detection element 213 which changes according to the applied acceleration as a to-be-measured signal (detection signal).

この被測定信号は、レシプロカルカウント値生成回路1に入力され、レシプロカルカウント値生成回路1は、前記実施形態で説明したように動作する。   This signal under measurement is input to the reciprocal count value generation circuit 1, and the reciprocal count value generation circuit 1 operates as described in the above embodiment.

また、検出部200の数は、本実施形態では1つであるが、これに限らず、例えば、2つ、または3つでもよい。検出部200を3つ設け、各検出部200の検出軸を互いに直交(交差)させることにより、互いに直交する3つの検出軸のそれぞれの軸方向の加速度を検出することが可能である。   Moreover, although the number of the detection parts 200 is one in this embodiment, it is not restricted to this, For example, two or three may be sufficient. By providing three detection units 200 and making the detection axes of each detection unit 200 orthogonal (cross) each other, it is possible to detect the acceleration in the axial direction of each of the three detection axes orthogonal to each other.

以上のような加速度センサー100によっても、その加速度センサー100が備えるレシプロカルカウント値生成回路1は、前述した実施形態と同様の効果を発揮することができる。これにより、加速度センサー100は、加速度を精度良く検出することができる。   Even with the acceleration sensor 100 as described above, the reciprocal count value generation circuit 1 included in the acceleration sensor 100 can exhibit the same effects as those of the above-described embodiment. Thereby, the acceleration sensor 100 can detect the acceleration with high accuracy.

以上、本発明のレシプロカルカウント値生成回路および物理量センサーを、図示の実施形態に基づいて説明したが、本発明はこれに限定されるものではなく、各部の構成は、同様の機能を有する任意の構成のものに置換することができる。また、他の任意の構成物が付加されていてもよい。   As described above, the reciprocal count value generation circuit and the physical quantity sensor according to the present invention have been described based on the illustrated embodiment. However, the present invention is not limited to this, and the configuration of each unit may be any arbitrary function having the same function. It can be replaced with that of the configuration. Moreover, other arbitrary components may be added.

また、本発明は、前記各実施形態のうちの、任意の2以上の構成(特徴)を組み合わせたものであってもよい。   Further, the present invention may be a combination of any two or more configurations (features) of the above embodiments.

また、前記実施形態では、物理量センサーとして、加速度センサーを例に挙げて説明したが、本発明では、物理量センサーは、物理量の変化を周波数変化として検出することが可能なものであれば、これに限定されず、この他、例えば、質量センサー、超音波センサー、角加速度センサー、容量センサー等が挙げられる。   In the above embodiment, the acceleration sensor is described as an example of the physical quantity sensor. However, in the present invention, if the physical quantity sensor can detect a change in physical quantity as a frequency change, In addition, for example, a mass sensor, an ultrasonic sensor, an angular acceleration sensor, a capacitance sensor, and the like can be given.

また、本発明の物理量センサーは、例えば、傾斜計、地震計、ナビゲーション装置、姿勢制御装置、ゲームコントローラー、携帯電話、スマートフォン、デジタルスチルカメラ等の各種の電子機器や、自動車等の各種の移動体等に適用することが可能である。すなわち、本発明では、本発明の物理量センサーを備えた電子機器、本発明の物理量センサーを備えた移動体等を提供することが可能である。   The physical quantity sensor of the present invention includes, for example, various electronic devices such as an inclinometer, a seismometer, a navigation device, an attitude control device, a game controller, a mobile phone, a smartphone, a digital still camera, and various moving bodies such as an automobile. It is possible to apply to. That is, according to the present invention, it is possible to provide an electronic device including the physical quantity sensor of the present invention, a moving object including the physical quantity sensor of the present invention, and the like.

1…レシプロカルカウント値生成回路、2…遅延素子、3…カウンター、4…加算器、5…カウンター、6…乗算器、7…積分器、8…差分演算器、9…エッジ検出部、10…レシプロカルカウント値生成部、11…カウンター、12…遅延素子、13…ラッチ、14…ラッチ、17…ラッチ、18…ラッチ、19…数え上げ部、20…カウンター、21…ラッチ、22…ラッチ、23…排他的論理和回路、24…ラッチ、25…乗算器、26…ラッチ、27…加算器、28…第1のカウント部、29…第2のカウント部、30…カウンター、31…ラッチ、32…ラッチ、33…排他的論理和回路、71…加算器、72…ラッチ、81…ラッチ、82…減算器、91…遅延素子、92…排他的論理和回路、100…加速度センサー、110…カウンター、111…第1のカウント部、112…第2のカウント部、113…インバーター、115…インバーター、131…ラッチ、132…ラッチ、133…オア回路、141…ラッチ、142…ラッチ、200…検出部、210…ベース部、210b…接続端子、210c…接続端子、211…継ぎ手部、212…可動部、213…加速度検出素子、213a…振動梁、213b…振動梁、214e…外部接続端子、214f…外部接続端子、220…パッケージ、224…内部端子、225…内部端子、227…外部端子、228…外部端子、280…カウンター、281…ラッチ、282…ラッチ、283…排他的論理和回路、291…ラッチ、292…ラッチ、293…排他的論理和回路、330…排他的論理和回路   DESCRIPTION OF SYMBOLS 1 ... Reciprocal count value generation circuit, 2 ... Delay element, 3 ... Counter, 4 ... Adder, 5 ... Counter, 6 ... Multiplier, 7 ... Integrator, 8 ... Difference calculator, 9 ... Edge detection part, 10 ... Reciprocal count value generation unit, 11 ... counter, 12 ... delay element, 13 ... latch, 14 ... latch, 17 ... latch, 18 ... latch, 19 ... counting unit, 20 ... counter, 21 ... latch, 22 ... latch, 23 ... Exclusive OR circuit, 24 ... latch, 25 ... multiplier, 26 ... latch, 27 ... adder, 28 ... first count unit, 29 ... second count unit, 30 ... counter, 31 ... latch, 32 ... Latch, 33 ... exclusive OR circuit, 71 ... adder, 72 ... latch, 81 ... latch, 82 ... subtractor, 91 ... delay element, 92 ... exclusive OR circuit, 100 ... acceleration sensor, 110 Counter 111 111 First count 112 112 Second count 113 Inverter 115 Inverter 131 Latch 132 Latch 133 OR circuit 141 Latch 142 Latch 200 Detection 210, base portion, 210b, connection terminal, 210c, connection terminal, 211, joint portion, 212, movable portion, 213, acceleration detecting element, 213a, vibration beam, 213b, vibration beam, 214e, external connection terminal, 214f. ... External connection terminal, 220 ... Package, 224 ... Internal terminal, 225 ... Internal terminal, 227 ... External terminal, 228 ... External terminal, 280 ... Counter, 281 ... Latch, 282 ... Latch, 283 ... Exclusive OR circuit, 291 ... Latch, 292 ... Latch, 293 ... Exclusive OR circuit, 330 ... Exclusive OR circuit

Claims (8)

被測定信号で規定されるタイミングで基準クロックをカウントするレシプロカルカウント値生成回路であって、
電気的に並列に接続され、位相の異なる複数の前記被測定信号がそれぞれ入力され、前記基準クロックを用いて、前記複数の被測定信号のレベルの反転を表す反転エッジを検出する複数の第1のカウンターと、
前記基準クロックをカウントする第2のカウンターと、
前記基準クロックで規定されるタイミングにおける前記被測定信号の反転エッジの検出数と、前記タイミングにおける前記第2のカウンターのカウント値との積を、前記被測定信号で規定される区間において積算し、レシプロカルカウント値を生成するレシプロカルカウント値生成部と、を備えることを特徴とするレシプロカルカウント値生成回路。
A reciprocal count value generation circuit that counts a reference clock at a timing defined by a signal under measurement,
A plurality of first signals that are electrically connected in parallel and each having a plurality of signals under different phases are input, and using the reference clock, a plurality of first edges that detect an inversion edge representing an inversion of the levels of the plurality of signals under measurement are detected. And the counter
A second counter for counting the reference clock;
The product of the number of inversion edges detected in the signal under measurement at the timing specified by the reference clock and the count value of the second counter at the timing is integrated in the interval specified by the signal under measurement, A reciprocal count value generation circuit comprising: a reciprocal count value generation unit that generates a reciprocal count value.
前記第1のカウンターは、前記基準クロックの立ち上がりエッジおよび立ち下がりエッジを用いて、前記反転エッジの検出を行い、
前記第2のカウンターは、前記基準クロックの立ち上がりエッジおよび立ち下がりエッジを用いて、前記基準クロックのカウントを行う請求項1に記載のレシプロカルカウント値生成回路。
The first counter detects the inversion edge using a rising edge and a falling edge of the reference clock,
The reciprocal count value generation circuit according to claim 1, wherein the second counter counts the reference clock using a rising edge and a falling edge of the reference clock.
前記基準クロックの立ち上がりおよび立ち下がりを検出し、前記基準クロックの立ち上がりおよび立ち下がりに同期するパルス信号を生成する検出回路を備え、
前記第1のカウンターは、前記パルス信号を用いて、前記反転エッジの検出を行い、
前記第2のカウンターは、前記パルス信号を用いて、前記基準クロックのカウントを行う請求項1に記載のレシプロカルカウント値生成回路。
A detection circuit for detecting a rising edge and a falling edge of the reference clock and generating a pulse signal synchronized with the rising edge and the falling edge of the reference clock;
The first counter detects the inversion edge using the pulse signal,
The reciprocal count value generation circuit according to claim 1, wherein the second counter counts the reference clock using the pulse signal.
前記基準クロックの立ち上がりおよび立ち下がりを検出し、前記基準クロックの立ち上がりおよび立ち下がりに同期するパルス信号を生成する検出回路を備え、
前記第2のカウンターは、前記基準クロックの立ち上がりをカウントする第1のカウント部と、前記基準クロックの立ち下がりをカウントする第2のカウント部とを備え、
前記第1のカウンターは、前記パルス信号を用いて、前記反転エッジの検出を行い、
前記第2のカウンターは、前記基準クロックのカウントにおいて、前記第1のカウント部により前記基準クロックの立ち上がりをカウントし、前記第2のカウント部により前記基準クロックの立ち下がりをカウントする請求項1に記載のレシプロカルカウント値生成回路。
A detection circuit for detecting a rising edge and a falling edge of the reference clock and generating a pulse signal synchronized with the rising edge and the falling edge of the reference clock;
The second counter includes a first counting unit that counts rising edges of the reference clock, and a second counting unit that counts falling edges of the reference clock,
The first counter detects the inversion edge using the pulse signal,
The said 2nd counter counts the rising of the said reference clock by the said 1st counting part in the count of the said reference clock, and counts the falling of the said reference clock by the said 2nd counting part. The reciprocal count value generation circuit described.
前記被測定信号の反転エッジの検出数は、前記複数の被測定信号における信号の立ち上がり数または立ち下がり数である請求項1に記載のレシプロカルカウント値生成回路。   2. The reciprocal count value generation circuit according to claim 1, wherein the number of inversion edges detected in the signal under measurement is the number of rising or falling edges of the signal in the plurality of signals under measurement. 前記被測定信号の反転エッジの検出数は、前記複数の被測定信号における信号の立ち上がり数と立ち下がり数の合計値である請求項1ないし4のいずれか1項に記載のレシプロカルカウント値生成回路。   5. The reciprocal count value generation circuit according to claim 1, wherein the number of inversion edges detected in the signal under measurement is a total value of the number of rising edges and the number of falling edges of the plurality of signals under measurement. . 物理量を検出する検出部と、
前記検出部から出力された被測定信号が入力される請求項1ないし6のいずれか1項に記載のレシプロカルカウント値生成回路と、を備えることを特徴とする物理量センサー。
A detection unit for detecting a physical quantity;
A physical quantity sensor comprising: the reciprocal count value generation circuit according to claim 1, to which the signal under measurement output from the detection unit is input.
前記物理量は振動に関する物理量である請求項7に記載の物理量センサー。   The physical quantity sensor according to claim 7, wherein the physical quantity is a physical quantity related to vibration.
JP2016245869A 2016-12-19 2016-12-19 Reciprocal count value generation circuit and physical quantity sensor Active JP6812780B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016245869A JP6812780B2 (en) 2016-12-19 2016-12-19 Reciprocal count value generation circuit and physical quantity sensor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016245869A JP6812780B2 (en) 2016-12-19 2016-12-19 Reciprocal count value generation circuit and physical quantity sensor

Publications (2)

Publication Number Publication Date
JP2018100856A true JP2018100856A (en) 2018-06-28
JP6812780B2 JP6812780B2 (en) 2021-01-13

Family

ID=62715226

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016245869A Active JP6812780B2 (en) 2016-12-19 2016-12-19 Reciprocal count value generation circuit and physical quantity sensor

Country Status (1)

Country Link
JP (1) JP6812780B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10560101B2 (en) 2018-04-27 2020-02-11 Seiko Epson Corporation Count value generation circuit, physical quantity sensor module, and structure monitoring device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10560101B2 (en) 2018-04-27 2020-02-11 Seiko Epson Corporation Count value generation circuit, physical quantity sensor module, and structure monitoring device
US10693465B2 (en) 2018-04-27 2020-06-23 Seiko Epson Corporation Count value generation circuit, physical quantity sensor module, and structure monitoring device

Also Published As

Publication number Publication date
JP6812780B2 (en) 2021-01-13

Similar Documents

Publication Publication Date Title
JP6812781B2 (en) Delay circuit, count value generation circuit and physical quantity sensor
JP6844310B2 (en) Frequency ratio measuring device and physical quantity sensor
JP6844368B2 (en) Time digital converter
JP6274818B2 (en) Characteristic measuring device with surface acoustic wave sensor
JP6812780B2 (en) Reciprocal count value generation circuit and physical quantity sensor
JP2014052282A (en) Frequency measurement circuit
JP6809201B2 (en) Sampling rate conversion circuit, reciprocal count value generation circuit and physical quantity sensor
JP6787105B2 (en) Digital filter, reciprocal count value generation circuit and physical quantity sensor
JP7040572B2 (en) Delay circuit, count value generation circuit and physical quantity sensor
JP6862901B2 (en) Frequency ratio measuring device and physical quantity sensor
JP6972604B2 (en) Counter circuit, measuring device and physical quantity sensor
JP4696920B2 (en) DDS signal generator
JP6957901B2 (en) Frequency ratio measuring device and physical quantity sensor
JP5883705B2 (en) Signal generator
TWI504160B (en) Time domain switched analog-to-digital converter apparatus and methods
JP7044184B2 (en) Time digital converter
JP6759636B2 (en) Frequency delta-sigma modulation signal output device
JP4814136B2 (en) Signal processing method and signal processing apparatus
JP5593857B2 (en) Voltage measuring apparatus and voltage measuring method
Petrović New method and circuit for processing of band-limited periodic signals
JP6410919B2 (en) Phase frequency detector
JP2018132461A5 (en)
JPH1183914A (en) Period detecting equipment and period detecting method
JP4640086B2 (en) Inspection signal generation device and semiconductor inspection device
US8649474B2 (en) Synchronous detection method and device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190910

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200729

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20201130

R150 Certificate of patent or registration of utility model

Ref document number: 6812780

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150