[go: up one dir, main page]

JP2014053761A - Data spreading circuit and frequency measurement circuit - Google Patents

Data spreading circuit and frequency measurement circuit Download PDF

Info

Publication number
JP2014053761A
JP2014053761A JP2012196882A JP2012196882A JP2014053761A JP 2014053761 A JP2014053761 A JP 2014053761A JP 2012196882 A JP2012196882 A JP 2012196882A JP 2012196882 A JP2012196882 A JP 2012196882A JP 2014053761 A JP2014053761 A JP 2014053761A
Authority
JP
Japan
Prior art keywords
data
unit
input
signal
output
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
JP2012196882A
Other languages
Japanese (ja)
Other versions
JP6216499B2 (en
Inventor
Kiyoaki Hoshino
聖彰 星野
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.)
Rohm Co Ltd
Original Assignee
Rohm Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Rohm Co Ltd filed Critical Rohm Co Ltd
Priority to JP2012196882A priority Critical patent/JP6216499B2/en
Publication of JP2014053761A publication Critical patent/JP2014053761A/en
Application granted granted Critical
Publication of JP6216499B2 publication Critical patent/JP6216499B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Measuring Frequencies, Analyzing Spectra (AREA)

Abstract

【課題】後段に接続されるデジタルフィルタ回路のノイズを抑制する。
【解決手段】データ分散回路は、入力データINが同一の連続データから微小値だけ変化したときに、その変化量を複数回に分散させて連続データに順次加えながら後段に出力する。例えば、入力データINが「8」から「7」に−1LSB変化したとき、16倍の入力データIN×16は「128」から「112」に−16LSB変化する。このとき、データ分散回路は、分散入力データIN’として、「112」を1回出力するのではなく、所定の分散間隔を空けながら「124」を4回出力する。
【選択図】図7
Noise of a digital filter circuit connected to a subsequent stage is suppressed.
When the input data IN changes by a minute value from the same continuous data, the data distribution circuit distributes the change amount to a plurality of times and outputs it to the subsequent stage while sequentially adding it to the continuous data. For example, when the input data IN changes by −1 LSB from “8” to “7”, the 16 times input data IN × 16 changes by −16 LSB from “128” to “112”. At this time, the data distribution circuit does not output “112” once as the distributed input data IN ′, but outputs “124” four times with a predetermined distribution interval.
[Selection] Figure 7

Description

本明細書中に開示されている種々の発明のうち、第1の発明は、データ分散回路に関するものであり、第2の発明は、周波数測定回路に関するものである。   Of the various inventions disclosed in this specification, the first invention relates to a data distribution circuit, and the second invention relates to a frequency measurement circuit.

デジタルフィルタ回路のノイズ抑制技術に関連する従来技術の一例としては、特許文献1を挙げることができる。   Patent document 1 can be mentioned as an example of the prior art relevant to the noise suppression technique of a digital filter circuit.

また、周波数測定回路に関連する従来技術の一例としては、特許文献2〜特許文献5を挙げることができる。   Moreover, Patent Documents 2 to 5 can be cited as examples of conventional techniques related to the frequency measurement circuit.

特開2000−299622号公報JP 2000-299622 A 特開平6−326629号公報JP-A-6-326629 特開2003−143006号公報JP 2003-143006 A 特開2012−5022号公報JP 2012-5022 A 特開2009−250807号公報JP 2009-250807 A

特許文献1では、デジタルフィルタ回路の前後にゲイン調整回路を持たせることによって、微小データ入力時に発生するリミットサイクル発振を抑制している。しかしながら、デジタルフィルタ回路の前後では、同一データの処理に対応するゲイン調整タイミングが異なるので、ゲイン調整タイミングにおけるデータ変化が問題であった。   In Patent Document 1, by providing a gain adjustment circuit before and after the digital filter circuit, limit cycle oscillation that occurs when minute data is input is suppressed. However, before and after the digital filter circuit, the gain adjustment timing corresponding to the processing of the same data is different, so that data change at the gain adjustment timing is a problem.

特許文献2では、Dフリップフロップを用いて入力周波数f1と参照周波数f2との差分周波数foutを生成している。しかしながら、この従来方式では、差分周波数foutが低くなるので測定精度が上がらない(ノイズが発生する)という問題があり、差分周波数の高い検出精度が求められるアプリケーションには適用することが困難であった。   In Patent Document 2, a differential frequency fout between an input frequency f1 and a reference frequency f2 is generated using a D flip-flop. However, this conventional method has a problem that the measurement accuracy does not increase (noise is generated) because the differential frequency fout is low, and it is difficult to apply to an application that requires high detection accuracy of the differential frequency. .

特許文献3では、入力信号(例えばPLL[phase locked loop]出力信号)と基準クロック信号との差分周波数を有するビート波形信号を生成し、基準クロック信号をN分周した分周クロック信号とビート波形信号とを比較することにより、入力信号と基準クロック信号との差分周波数を測定している。しかしながら、この従来方式でも、特許文献2と同様に、ビート波形信号の出力周波数(入力信号と基準クロック信号との差分周波数)が低くなるので、測定精度が上がらないという問題があった。   In Patent Document 3, a beat waveform signal having a difference frequency between an input signal (for example, a PLL [phase locked loop] output signal) and a reference clock signal is generated, and a divided clock signal and a beat waveform obtained by dividing the reference clock signal by N. The difference frequency between the input signal and the reference clock signal is measured by comparing the signal. However, even in this conventional method, as in Patent Document 2, the output frequency of the beat waveform signal (the difference frequency between the input signal and the reference clock signal) is lowered, and there is a problem that the measurement accuracy does not increase.

特許文献4では、2つの入力信号の位相差検出を高精度で行うために、一方の入力信号に対して遅延回路を挿入し、エッジ検出を行って位相差を検出している。しかしながら、この従来方式は、あくまで2つの入力信号の位相差を検出するものであって、差分周波数を測定するためのものではなかった。   In Patent Document 4, in order to detect a phase difference between two input signals with high accuracy, a delay circuit is inserted into one input signal, and edge detection is performed to detect a phase difference. However, this conventional method is only for detecting the phase difference between two input signals and not for measuring the difference frequency.

特許文献5では、カウンタとローパスフィルタを用いて入力信号の周波数を測定するに際して、複数のカウンタを切り替えながら入力信号のパルス数をカウントすることにより周波数の測定精度を高める構成が開示されている。しかしながら、この従来方式では、あくまで入力信号が一系統であるため、応答速度を上げるためにローパスフィルタのカットオフ周波数を下げることができない場合には、たとえ複数のカウンタを用いたとしても、ローパスフィルタの出力信号にノイズが発生してしまうという問題があった。   Patent Document 5 discloses a configuration in which when measuring the frequency of an input signal using a counter and a low-pass filter, the frequency measurement accuracy is improved by counting the number of pulses of the input signal while switching a plurality of counters. However, in this conventional method, since the input signal is only one system, if the cutoff frequency of the low-pass filter cannot be lowered in order to increase the response speed, even if a plurality of counters are used, the low-pass filter There was a problem that noise was generated in the output signal.

本明細書中に開示されている種々の発明のうち、第1の発明は、本願の発明者により見出された上記の問題点に鑑み、後段に接続されるデジタルフィルタ回路のノイズを抑制することが可能なデータ分散回路を提供することを目的とする。
<第2の目的>
また、本明細書中に開示されている種々の発明のうち、第2の発明は、本願の発明者により見出された上記の問題点に鑑み、入力信号の周波数を高精度に測定することが可能な周波数測定回路を提供することを目的とする。
Of the various inventions disclosed in this specification, the first invention suppresses the noise of the digital filter circuit connected to the subsequent stage in view of the above-described problems found by the inventors of the present application. An object of the present invention is to provide a data distribution circuit that can perform the above-described processing.
<Second purpose>
Of the various inventions disclosed in this specification, the second invention measures the frequency of the input signal with high accuracy in view of the above-mentioned problems found by the inventors of the present application. An object of the present invention is to provide a frequency measurement circuit capable of performing

<第1の発明>
本明細書中に開示されている種々の発明のうち、第1の発明に係るデータ分散回路は、デジタルの入力データが同一の連続データから微小値だけ変化したときに、その変化量を複数回に分散させて前記連続データに順次加えながら後段に出力する構成(第1−1の構成)とされている。
<First invention>
Of the various inventions disclosed in this specification, the data distribution circuit according to the first invention, when digital input data changes by a minute value from the same continuous data, changes the amount of change multiple times. The data is output to the subsequent stage while being sequentially added to the continuous data (first-first configuration).

なお、上記第1−1の構成から成るデータ分散回路は、前記連続データを保持する連続データ保持部と、前記入力データの微小変化を検出する微小変化検出部と、前記連続データの連続回数を検出する連続回数検出部と、前記微小変化検出部及び前記連続回数検出部の各検出結果に基づいてデータ分散処理を制御する制御部と、前記制御部の指示に応じて前記入力データと前記連続データの一方を選択出力するセレクタ部と、前記セレクタ部の出力をゲイン倍する乗算部と、前記制御部の指示に応じて分散値を出力するデータ分散処理部と、前記乗算部の出力に前記分散値を加えて後段に出力する加算部と、を有する構成(第1−2の構成)にするとよい。   The data distribution circuit having the above configuration 1-1 includes a continuous data holding unit that holds the continuous data, a minute change detection unit that detects minute changes in the input data, and the number of continuous times of the continuous data. A continuous number detection unit to detect, a control unit that controls data distribution processing based on each detection result of the minute change detection unit and the continuous number detection unit, and the input data and the continuous in accordance with an instruction from the control unit A selector that selectively outputs one of the data, a multiplier that multiplies the output of the selector, a data distribution processor that outputs a variance value in accordance with an instruction from the controller, and an output of the multiplier It is preferable to have a configuration (1-2 configuration) having an addition unit that adds a dispersion value and outputs the added value to the subsequent stage.

また、上記第1−2の構成から成るデータ分散回路において、前記乗算部は、前記セレクタ部の出力を2m倍(ただしmは自然数)する構成(第1−3の構成)にするとよい。 In the data distribution circuit having the above-described configuration 1-2, the multiplication unit may have a configuration (configuration 1-3) that multiplies the output of the selector unit by 2 m (where m is a natural number).

また、上記第1−3の構成から成るデータ分散回路において、前記制御部は、前記連続データの連続回数が所定値以上であって、前記入力データの微小変化が検出されており、前周期の前記入力データと保持された前記連続データが一致しており、かつ、前記データ分散処理部が停止状態であるときに、前記データ分散処理部を動作状態とする構成(第1−4の構成)にするとよい。   Further, in the data distribution circuit having the above-described configuration 1-3, the control unit detects that a continuous change of the continuous data is equal to or greater than a predetermined value and a minute change in the input data is detected. Configuration in which the data distribution processing unit is in an operating state when the input data matches the held continuous data and the data distribution processing unit is in a stopped state (configuration 1-4) It is good to.

また、上記第1−3または第1−4の構成から成るデータ分散回路において、前記データ分散処理部は、前記連続データの連続回数に応じて、前記分散値の大きさと分散回数を決定する構成(第1−5の構成)にするとよい。   In the data distribution circuit having the above-described configuration 1-3 or 1-4, the data distribution processing unit determines the size of the distribution value and the number of distributions in accordance with the number of continuous data. (Structure 1-5) may be used.

また、上記第1−5の構成から成るデータ分散回路において、前記データ分散処理部は前記連続データの連続回数に応じて、前記分散値の分散間隔を決定する構成(第1−6の構成)にするとよい。   Further, in the data distribution circuit having the above configuration 1-5, the data distribution processing unit determines the distribution interval of the distribution values according to the number of consecutive continuous data (configuration 1-6) It is good to.

また、上記第1−3〜第1−6いずれかの構成から成るデータ分散回路において、前記データ分散処理部は、複数設けられており、一のデータ分散処理部が動作状態であるときに前記入力データの微小変化が検出された場合には、別のデータ分散処理部が並列的に動作状態とされる構成(第1−7の構成)にするとよい。   In the data distribution circuit having any one of the first to third to first-6 configurations, a plurality of the data distribution processing units are provided, and when one data distribution processing unit is in an operating state, When a minute change in input data is detected, another data distribution processing unit may be configured to operate in parallel (first to seventh configurations).

また、上記第1−1〜第1−7いずれかの構成から成るデータ分散回路において、前記微小値は±1LSBである構成(第1−8の構成)にするとよい。   In the data distribution circuit having any one of the first to first to seventh configurations, the minute value may be ± 1LSB (first to eighth configuration).

また、第1の発明に係るデータ処理回路は、上記第1−1〜第1−8いずれかの構成から成るデータ分散回路と、前記データ分散回路の後段に設けられたデジタルフィルタ回路と、を有する構成(第1−9の構成)とされている。   According to a first aspect of the present invention, there is provided a data processing circuit comprising: a data distribution circuit having any one of the first to first-8 configurations; and a digital filter circuit provided at a subsequent stage of the data distribution circuit. It is set as the structure (1-9th structure) to have.

また、第1の発明に係る周波数測定回路は、入力信号の周波数に応じた入力データを生成する入力データ生成回路と、上記した第1−1〜第1−8いずれかの構成から成るデータ分散回路と、前記データ分散回路の後段に設けられたデジタルフィルタ回路とを有する構成(第1−10の構成)とされている。   According to a first aspect of the present invention, there is provided a frequency measurement circuit comprising: an input data generation circuit for generating input data according to the frequency of an input signal; and a data distribution comprising any one of the above-described first to first-8 configurations. The configuration includes a circuit and a digital filter circuit provided in a subsequent stage of the data distribution circuit (first to tenth configurations).

なお、上記第1−10の構成から成る周波数測定回路において、前記入力データ生成回路は、第1入力信号と第2入力信号の差分周波数に応じた入力データを生成する構成(第1−11の構成)にするとよい。   In the frequency measurement circuit having the above configuration 1-10, the input data generation circuit generates input data according to the difference frequency between the first input signal and the second input signal (first 1-11). Configuration).

また、第1の発明に係る電子機器は、上記第1−11の構成から成る周波数測定回路と、前記周波数測定回路の測定結果に応じた処理を行う処理装置と、を有する構成(第1−12の構成)とされている。   According to a first aspect of the present invention, there is provided an electronic apparatus including: a frequency measurement circuit having the above configuration 1-11; and a processing apparatus that performs processing according to a measurement result of the frequency measurement circuit (first 1 12 configurations).

また、第1の発明に係る電子機器は、センサ信号を生成するセンサと、前記センサ信号をAD変換して入力データを生成するADコンバータと、上記第1−1〜第1−8いずれかの構成から成るデータ分散回路と、前記データ分散回路の後段に設けられたデジタルフィルタ回路と、前記デジタルフィルタ回路の出力データに応じた処理を行う処理装置と、を有する構成(第1−13の構成)とされている。   An electronic apparatus according to a first aspect of the present invention includes a sensor that generates a sensor signal, an AD converter that AD-converts the sensor signal to generate input data, and any one of the first to first-8. A data distribution circuit having a configuration; a digital filter circuit provided at a subsequent stage of the data distribution circuit; and a processing device that performs processing according to output data of the digital filter circuit (configuration 1-13) ).

なお、上記第1−13の構成から成る電子機器において、前記センサはマイクであり、前記処理装置は録音装置である構成(第1−14の構成)にするとよい。   In the electronic apparatus having the above-described configuration 1-13, the sensor may be a microphone, and the processing device may be a recording device (configuration 1-14).

<第2の発明>
また、本明細書中に開示されている種々の発明のうち、第2の発明に係る周波数測定回路は、複数の差分信号生成部と、第1入力信号と第2入力信号の一方が前記複数の差分信号生成部に対して各々異なる位相で入力されるように遅延を与える遅延部と、を有し、複数の差分信号から前記第1入力信号と前記第2入力信号の差分周波数に応じた出力信号を生成する構成(第2−1の構成)とされている。
<Second invention>
Of the various inventions disclosed in this specification, the frequency measurement circuit according to the second invention includes a plurality of differential signal generators, and one of the first input signal and the second input signal is the plurality of A delay unit that delays the differential signal generation unit so that the differential signal generation unit is input at different phases, and according to a differential frequency between the first input signal and the second input signal from a plurality of differential signals. It is set as the structure (2-1 structure) which produces | generates an output signal.

なお、上記第2−1の構成から成る周波数測定回路において、前記差分信号生成部は、2m個(ただしmは自然数)設けられている構成(第2−2の構成)にするとよい。 In the frequency measurement circuit having the above-described configuration 2-1 described above, the differential signal generation unit may be configured to have 2 m (where m is a natural number) (configuration 2-2).

また、上記第2−1または第2−2の構成から成る周波数測定回路は、前記複数の差分信号の総和を取る加算部と、前記加算部の出力にフィルタ処理を施して前記出力信号を生成するフィルタ部と、を有する構成(第2−3の構成)にするとよい。   In addition, the frequency measuring circuit having the above configuration 2-1 or 2-2 generates an output signal by adding an adder that takes the sum of the plurality of difference signals and filtering the output of the adder. It is good to make it the structure (2-3 structure) which has a filter part to perform.

また、上記第2−1または第2−2の構成から成る周波数測定回路は、前記複数の差分信号を巡回的に選択出力するセレクタ部と、前記セレクタ部の出力にフィルタ処理を施して前記出力信号を生成するフィルタ部とを有する構成(第2−4の構成)にするとよい。   The frequency measurement circuit having the above configuration 2-1 or 2-2 is configured to select and output the plurality of differential signals cyclically, and to perform output processing by filtering the output of the selector unit. It is preferable to have a configuration (a second to fourth configuration) including a filter unit that generates a signal.

また、上記第2−1〜第2−4いずれかの構成から成る周波数測定回路において、前記複数の差分信号生成部は、それぞれ、前記第1入力信号がクロック信号として入力されて前記第2入力信号がデータ信号として入力されるDフリップフロップと、ゲート信号によって定まるゲート期間毎に前記Dフリップフロップの出力パルス数をカウントしてカウント値を出力するカウンタ部と、を含む構成(第2−5の構成)にするとよい。   Further, in the frequency measurement circuit having any one of the above configurations 2-1 to 2-4, each of the plurality of differential signal generation units receives the first input signal as a clock signal and outputs the second input. A configuration including a D flip-flop in which a signal is input as a data signal, and a counter unit that counts the number of output pulses of the D flip-flop and outputs a count value for each gate period determined by a gate signal (second 2-5) (Configuration).

また、上記第2−1〜第2−5いずれかの構成から成る周波数測定回路において、前記遅延部は、バッファ、インバータ、及び、Dフリップフロップの少なくとも一つを含む構成(第2−6の構成)にするとよい。   Further, in the frequency measurement circuit having any one of the above configurations 2-1 to 2-5, the delay unit includes at least one of a buffer, an inverter, and a D flip-flop. Configuration).

また、第2の発明に係る周波数測定回路は、ゲート信号によって定まるゲート期間毎に入力信号のパルス数をカウントしてカウント値を出力する複数のカウンタ部と、前記入力信号が前記複数のカウンタ部に対して各々異なる位相で入力されるように遅延を与える遅延部と、を有し、複数のカウント値から前記入力信号の周波数に応じた出力信号を生成する構成(第2−7の構成)とされている。   According to a second aspect of the present invention, there is provided a frequency measuring circuit comprising: a plurality of counter units that count the number of pulses of an input signal for each gate period determined by a gate signal and output a count value; and the input signal includes the plurality of counter units. And a delay unit that gives a delay so that the signals are input in different phases, and generates an output signal corresponding to the frequency of the input signal from a plurality of count values (second to seventh configuration) It is said that.

なお、上記第2−7の構成から成る周波数測定回路において、前記カウンタ部は、2m個(ただしmは自然数)設けられている構成(第2−8の構成)にするとよい。 In the frequency measurement circuit having the above-described configuration 2-7, the counter section may be configured to have 2 m (where m is a natural number) (configuration 2-8).

また、上記第2−7または第2−8の構成から成る周波数測定回路は、前記複数のカウント値の総和を取る加算部と、前記加算部の出力にフィルタ処理を施して前記出力信号を生成するフィルタ部と、を有する構成(第2−9の構成)にするとよい。   The frequency measuring circuit having the above-described configuration 2-7 or 2-8 generates an output signal by adding an adder for summing up the plurality of count values and filtering the output of the adder And a filter section (second 9th configuration).

また、上記第2−7または第2−8の構成から成る周波数測定回路は、前記複数のカウント値を巡回的に選択出力するセレクタ部と、前記セレクタ部の出力にフィルタ処理を施して前記出力信号を生成するフィルタ部と、を有する構成(第2−10の構成)にするとよい。   Further, the frequency measuring circuit having the above-described configuration 2-7 or 2-8, a selector unit for cyclically selecting and outputting the plurality of count values, and filtering the output of the selector unit to output the output And a filter section for generating a signal (configuration 2-10).

また、第2の発明に係る電子機器は、上記第2−1〜第2−10いずれかの構成から成る周波数測定回路と、前記周波数測定回路の測定結果に応じた処理を行う処理装置と、を有する構成(第2−11の構成)とされている。   An electronic apparatus according to a second aspect of the present invention includes a frequency measurement circuit having any one of the above configurations 2-1 to 2-10, a processing device that performs processing according to a measurement result of the frequency measurement circuit, It is set as the structure (2-11th structure).

第1の発明に係るデータ分散回路であれば、後段に接続されるデジタルフィルタ回路のノイズを抑制することが可能となる。   With the data distribution circuit according to the first invention, it is possible to suppress noise in the digital filter circuit connected to the subsequent stage.

また、第2の発明に係る周波数測定回路であれば、入力信号の周波数を高精度に測定することが可能となる。   Further, with the frequency measurement circuit according to the second invention, it is possible to measure the frequency of the input signal with high accuracy.

デジタルフィルタ回路の一構成例を示すブロック図Block diagram showing one configuration example of digital filter circuit デジタルフィルタ回路100の第1動作例を示すタイミングチャートTiming chart showing a first operation example of the digital filter circuit 100 デジタルフィルタ回路100の第2動作例を示すタイミングチャートTiming chart showing a second operation example of the digital filter circuit 100 入力データの微小変化時におけるノイズ発生メカニズムを説明するためのタイミングチャートTiming chart for explaining the mechanism of noise generation at the time of minute change of input data データ処理回路の一構成例を示すブロック図Block diagram showing one configuration example of a data processing circuit データ分散部210の一構成例を示すブロック図The block diagram which shows one structural example of the data distribution part 210 データ分散処理の一例を示すタイミングチャートTiming chart showing an example of data distribution processing データ分散処理部218−xの一構成例を示すブロック図The block diagram which shows the example of 1 structure of the data distribution process part 218-x 分散値出力処理の一例を示すタイミングチャートTiming chart showing an example of distributed value output processing データ分散処理テーブルの一例を示す図The figure which shows an example of a data distribution processing table 分散間隔制御の一例を示す図Diagram showing an example of distributed interval control 差分周波数測定回路への適用例を示すブロック図Block diagram showing application example to differential frequency measurement circuit 周波数f2と標準偏差σとの相関図Correlation diagram between frequency f2 and standard deviation σ 電子機器の第1構成例(リモコン)を示すブロック図The block diagram which shows the 1st structural example (remote control) of an electronic device. 電子機器の第1構成例(リモコン)を示す外観図External view showing a first configuration example (remote control) of an electronic device 電子機器の第2構成例(センシング機器)を示すブロック図Block diagram showing a second configuration example (sensing device) of an electronic device 電子機器の第3構成例(オーディオ機器)を示すブロック図The block diagram which shows the 3rd structural example (audio equipment) of an electronic device. 差分周波数測定回路の第1構成例を示すブロック図Block diagram showing a first configuration example of a differential frequency measurement circuit 差分周波数(f1−f2)と標準偏差σとの相関図Correlation diagram of difference frequency (f1-f2) and standard deviation σ メタステーブル対策の第1例を示す図The figure which shows the 1st example of a metastable countermeasure メタステーブル対策の第2例を示す図The figure which shows the 2nd example of a metastable countermeasure 差分周波数測定回路の第2構成例を示すブロック図Block diagram showing a second configuration example of the differential frequency measurement circuit 差分周波数測定回路の第3構成例を示すブロック図Block diagram showing a third configuration example of the differential frequency measurement circuit 差分周波数測定回路の第4構成例を示すブロック図Block diagram showing a fourth configuration example of the differential frequency measurement circuit 差分周波数測定回路の第5構成例を示すブロック図Block diagram showing a fifth configuration example of the differential frequency measurement circuit 差分周波数測定回路の第6構成例を示すブロック図Block diagram showing a sixth configuration example of the differential frequency measurement circuit 周波数測定回路への適用例を示すブロック図Block diagram showing an example of application to a frequency measurement circuit

<デジタルフィルタ回路>
図1は、デジタルフィルタ回路の一構成例を示すブロック図である。本構成例のデジタルフィルタ回路100は、クロック信号CLK(周波数:fs)に同期して動作するIIR[infinite impulse response]フィルタ回路(カットオフ周波数:1.1×fs)であり、乗算部101と、加算部102と、遅延部103と、乗算部104と、を含む。
<Digital filter circuit>
FIG. 1 is a block diagram illustrating a configuration example of a digital filter circuit. The digital filter circuit 100 of this configuration example is an IIR [infinite impulse response] filter circuit (cut-off frequency: 1.1 × fs) that operates in synchronization with the clock signal CLK (frequency: fs). , An adder 102, a delay unit 103, and a multiplier 104.

乗算部101は、mビットの入力データINを2n倍(nビット左シフト)することにより、(m+n)ビットの乗算データS1を生成する。 The multiplication unit 101 generates (m + n) -bit multiplication data S1 by multiplying the m-bit input data IN by 2 n times (n-bit left shift).

加算部102は、(m+n)ビットの乗算データS1と(m+n)ビットの帰還データS3とを足し合わせることにより、(m+n+1)ビットの加算データS2を生成する。   The adder 102 adds (m + n) -bit multiplication data S1 and (m + n) -bit feedback data S3 to generate (m + n + 1) -bit addition data S2.

遅延部103は、(m+n+1)ビットの加算データS2をクロック信号CLKの1周期分(=1/fs)だけ遅延させることにより、(m+n+1)ビットの出力データOUTを生成する。   The delay unit 103 generates (m + n + 1) -bit output data OUT by delaying the (m + n + 1) -bit added data S2 by one cycle (= 1 / fs) of the clock signal CLK.

乗算部104は、(m+n+1)ビットの出力データOUTを1/2倍(1ビット右シフト)することにより、(m+n)ビットの帰還データS3を生成する。ただし、帰還データS3の小数点以下は切り捨てられる。   The multiplier 104 generates (m + n) -bit feedback data S3 by multiplying the (m + n + 1) -bit output data OUT by 1/2 (1-bit right shift). However, the decimal part of the feedback data S3 is rounded down.

図2は、デジタルフィルタ回路100の第1動作例(m=5、n=0)を示すタイミングチャートであり、上から順番に、クロック信号CLK、入力データIN、乗算データS1、加算データS2、出力データOUT、及び、帰還データS3が描写されている。   FIG. 2 is a timing chart showing a first operation example (m = 5, n = 0) of the digital filter circuit 100. The clock signal CLK, input data IN, multiplication data S1, addition data S2, Output data OUT and feedback data S3 are depicted.

初期状態では、OUT=[0]であり、S3=[0](=OUT[0]/2)である。また、n=0では、乗算部101のゲインが1倍(20倍)となるので、S1=INである。従って、IN=[7]であれば、S1=[7]となり、S2=[7](=S1[7]+S3[0])となる。 In the initial state, OUT = [0] and S3 = [0] (= OUT [0] / 2). Further, the n = 0, the gain multiplier 101 is 1 times (2 0 times), a S1 = IN. Therefore, if IN = [7], S1 = [7] and S2 = [7] (= S1 [7] + S3 [0]).

クロック信号CLKにパルスが立ち上がると、その立上りエッジに同期して直前の加算データS2が出力データOUTとして遅延出力される。従って、OUT=[7]となり、S3=[3](=OUT[7]/2)となる。このとき、IN=[8]であれば、S1=[8]となり、S2=[11](=S1[8]+S3[3])となる。   When a pulse rises in the clock signal CLK, the immediately preceding addition data S2 is delayed and output as output data OUT in synchronization with the rising edge. Therefore, OUT = [7], and S3 = [3] (= OUT [7] / 2). At this time, if IN = [8], S1 = [8] and S2 = [11] (= S1 [8] + S3 [3]).

クロック信号CLKに次のパルスが立ち上がると、その立上りエッジに同期して直前の加算データS2が出力データOUTとして遅延出力される。従って、OUT=[11]となり、S3=[5](=OUT[11]/2)となる。このとき、IN=[6]であればS1=[6]となり、S2=[11](=S1[6]+S3[5])となる。   When the next pulse rises in the clock signal CLK, the immediately preceding addition data S2 is delayed and output as output data OUT in synchronization with the rising edge. Accordingly, OUT = [11], and S3 = [5] (= OUT [11] / 2). At this time, if IN = [6], S1 = [6] and S2 = [11] (= S1 [6] + S3 [5]).

以降も、クロック信号CLKにパルスが立ち上がる毎に、上記と同様の動作が繰り返される。その結果、例えば、入力データINの平均値が[7]である場合には、出力データOUTの平均値が[14](=IN×2)に近付いていく。   Thereafter, the same operation as described above is repeated each time a pulse rises in the clock signal CLK. As a result, for example, when the average value of the input data IN is [7], the average value of the output data OUT approaches [14] (= IN × 2).

図3は、デジタルフィルタ回路100の第2動作例(m=5、n=4)を示すタイミングチャートであり、上から順番に、クロック信号CLK、入力データIN、乗算データS1、加算データS2、出力データOUT、及び、帰還データS3が描写されている。   FIG. 3 is a timing chart showing a second operation example (m = 5, n = 4) of the digital filter circuit 100. The clock signal CLK, input data IN, multiplication data S1, addition data S2, Output data OUT and feedback data S3 are depicted.

先と同じく、初期状態では、OUT=[0]であり、S3=[0](=OUT[0]/2)である。また、n=4では、乗算部101のゲインが16倍(24倍)となるので、S1=IN×16である。従って、IN=[7]であれば、S1=[112]となり、S2=[112](=S1[112]+S3[0])となる。 As before, in the initial state, OUT = [0] and S3 = [0] (= OUT [0] / 2). Further, in the n = 4, the gain multiplier 101 is 16 times (2 4x), and S1 = IN × 16. Therefore, if IN = [7], S1 = [112] and S2 = [112] (= S1 [112] + S3 [0]).

クロック信号CLKにパルスが立ち上がると、その立上りエッジに同期して直前の加算データS2が出力データOUTとして遅延出力される。従って、OUT=[112]となり、S3=[56](=OUT[112]/2)となる。このとき、IN=[8]であれば、S1=[128]となり、S2=[184](=S1[128]+S3[56])となる。   When a pulse rises in the clock signal CLK, the immediately preceding addition data S2 is delayed and output as output data OUT in synchronization with the rising edge. Accordingly, OUT = [112], and S3 = [56] (= OUT [112] / 2). At this time, if IN = [8], S1 = [128] and S2 = [184] (= S1 [128] + S3 [56]).

クロック信号CLKに次のパルスが立ち上がると、その立上りエッジに同期して直前の加算データS2が出力データOUTとして遅延出力される。従って、OUT=[184]となり、S3=[92](=OUT[184]/2)となる。このとき、IN=[6]であれば、S1=[96]となり、S2=[188](=S1[96]+S3[92])となる。   When the next pulse rises in the clock signal CLK, the immediately preceding addition data S2 is delayed and output as output data OUT in synchronization with the rising edge. Accordingly, OUT = [184], and S3 = [92] (= OUT [184] / 2). At this time, if IN = [6], S1 = [96] and S2 = [188] (= S1 [96] + S3 [92]).

以降も、クロック信号CLKにパルスが立ち上がる毎に、上記と同様の動作が繰り返される。その結果、例えば、入力データINの平均値が[7]である場合には、出力データOUTの平均値が[224](=IN×16×2)に近付いていく。   Thereafter, the same operation as described above is repeated each time a pulse rises in the clock signal CLK. As a result, for example, when the average value of the input data IN is [7], the average value of the output data OUT approaches [224] (= IN × 16 × 2).

このように、入力データINのビット数に対して出力データOUTのビット数を上げると、乗算部104で生じる丸め誤差(小数点以下の切り捨て)が小さくなるので、デジタルフィルタ回路100のフィルタ精度を高めることができる。しかしながら、入力データINのビット数に対して出力データOUTのビット数を上げると、入力データINの微小変化時にノイズが大きくなるという問題が判明した。   As described above, when the number of bits of the output data OUT is increased with respect to the number of bits of the input data IN, the rounding error (truncation after the decimal point) generated in the multiplication unit 104 is reduced, so that the filter accuracy of the digital filter circuit 100 is improved. Can do. However, it has been found that increasing the number of bits of the output data OUT with respect to the number of bits of the input data IN increases the noise when the input data IN changes slightly.

図4は、入力データINの微小変化時におけるノイズ発生メカニズムを説明するためのタイミングチャートであり、上から順に、クロック信号CLK、入力データIN、及び、出力データOUTが描写されている。   FIG. 4 is a timing chart for explaining the noise generation mechanism when the input data IN is slightly changed. The clock signal CLK, the input data IN, and the output data OUT are depicted in order from the top.

本図の例では、入力データINの平均値が「8」よりも僅かに小さく、入力データINがクロック信号CLKの複数周期に亘って「8」に維持された後、一周期だけ「7」に変化するという状態が繰り返されている。このように、入力データINが同一の連続データから微小値だけ変化するような状態に陥ると、入力データINが±1LSB変化しただけで、出力データOUTが数十LSB〜100LSB程度(16ビット出力時)も変化してしまい、これが大きなノイズ(20LSBrms以上)の原因となる。   In the example of this figure, the average value of the input data IN is slightly smaller than “8”, and after the input data IN is maintained at “8” over a plurality of cycles of the clock signal CLK, it is “7” for one cycle. The state of changing to is repeated. As described above, when the input data IN changes to a minute value from the same continuous data, the input data IN is changed by ± 1 LSB, and the output data OUT is about several tens LSB to 100 LSB (16-bit output). Change), which causes large noise (20LSBrms or more).

特に、デジタルフィルタ回路100が組み込まれるデータ処理回路の入出力応答速度を上げるために、デジタルフィルタ回路100のカットオフ周波数fcを低く設定することができない場合には、出力データOUTの変動がデジタルフィルタ回路100で平滑化しきれずにノイズとなって現れる。   In particular, when the cut-off frequency fc of the digital filter circuit 100 cannot be set low in order to increase the input / output response speed of the data processing circuit in which the digital filter circuit 100 is incorporated, fluctuations in the output data OUT may be caused by the digital filter. The circuit 100 is not smoothed and appears as noise.

<データ処理回路>
図5は、上記の課題を解決し得るデータ処理回路の一構成例を示すブロック図である。本構成例のデータ処理回路200は、データ分散部210と、デジタルフィルタ部220と、を有する。
<Data processing circuit>
FIG. 5 is a block diagram illustrating a configuration example of a data processing circuit that can solve the above-described problem. The data processing circuit 200 of this configuration example includes a data distribution unit 210 and a digital filter unit 220.

データ分散部210は、クロック信号CLKの入力を受けて動作し、xビット(例えば5ビット)の入力データINが同一の連続データから微小値(±1LSB)だけ変化したときに、その変化量を複数回に分散させて連続データに順次加えながらyビット(例えば10ビット)の分散入力データIN’を生成し、これを後段のデジタルフィルタ部220に出力する。   The data distribution unit 210 operates in response to the input of the clock signal CLK. When the x-bit (for example, 5 bits) input data IN changes from the same continuous data by a minute value (± 1LSB), the amount of change is calculated. The distributed input data IN ′ of y bits (for example, 10 bits) is generated while being distributed to a plurality of times and sequentially added to continuous data, and this is output to the digital filter unit 220 at the subsequent stage.

デジタルフィルタ部220は、クロック信号CLKの入力を受けて動作し、分散入力データIN’に所定のフィルタ処理を施してzビット(例えば16ビット)の出力データOUTを生成する。なお、デジタルフィルタ部220としては、例えば、図1のデジタルフィルタ回路100を用いることができる。   The digital filter unit 220 operates in response to the input of the clock signal CLK, and performs a predetermined filtering process on the distributed input data IN ′ to generate z-bit (for example, 16 bits) output data OUT. As the digital filter unit 220, for example, the digital filter circuit 100 of FIG. 1 can be used.

<データ分散部>
図6はデータ分散部210の一構成例を示すブロック図である。本構成例のデータ分散部210は、連続データ保持部211と、微小変化検出部212と、連続回数検出部213と、制御部214と、セレクタ部215と、ORゲート部216と、乗算部217と、データ分散処理部218−x(図6の例では、x=1、2、3)と、加算部219a〜219cと、を含む。
<Data distribution unit>
FIG. 6 is a block diagram illustrating a configuration example of the data distribution unit 210. The data distribution unit 210 of this configuration example includes a continuous data holding unit 211, a minute change detection unit 212, a continuous number detection unit 213, a control unit 214, a selector unit 215, an OR gate unit 216, and a multiplication unit 217. And a data distribution processing unit 218-x (x = 1, 2, 3 in the example of FIG. 6) and addition units 219a to 219c.

連続データ保持部211は、5ビットの入力データINを監視して、連続データ(=連続して入力される同一値の入力データIN)を保持する処理ブロックであり、入力遅延レジスタ211aと、一致判定部211bと、連続データレジスタ211cと、を含む。   The continuous data holding unit 211 is a processing block that monitors the 5-bit input data IN and holds continuous data (= input data IN of the same value that is continuously input) and matches the input delay register 211a. A determination unit 211b and a continuous data register 211c are included.

入力遅延レジスタ211aは、クロック信号CLKのパルス毎に、入力データINを5ビットのレジスタ値in_dlyとして新たに保持する一方、それまで保持していたレジスタ値in_dly(前周期の入力データINに相当)を出力する。   The input delay register 211a newly holds the input data IN as a 5-bit register value in_dly for each pulse of the clock signal CLK, while holding the register value in_dly (corresponding to the input data IN of the previous cycle). Is output.

一致判定部211bは、入力データINとレジスタ値in_dlyが一致しているか否かを判定する。   The match determination unit 211b determines whether or not the input data IN and the register value in_dly match.

連続データレジスタ211cは、入力データINとレジスタ値in_dlyが一致しているときに、入力データINを5ビットのレジスタ値main_data(連続データに相当)として保持する。   The continuous data register 211c holds the input data IN as a 5-bit register value main_data (corresponding to continuous data) when the input data IN and the register value in_dly match.

微小変化検出部212は、入力データINを監視して、微小変化が生じたか否かを表すレジスタ値in_nearと、微小変化の正負極性を示すレジスタ値pnmを出力する。なお、レジスタ値in_nearは、入力データINが(in_dly+1)または(in_dly−1)と一致しているときに「1:真値(微小変化あり)」とし、いずれとも一致していないときに「0:偽値(微小変化なし)」とすればよい。また、レジスタ値pnmは、入力データINが(in_dly+1)と一致しているときに「1:真値(正極性)」とし、一致していないときに「0:偽値(負極性)」とすれば足りる。   The minute change detection unit 212 monitors the input data IN and outputs a register value in_near indicating whether or not a minute change has occurred and a register value pnm indicating the positive / negative polarity of the minute change. Note that the register value in_near is “1: true value (with minute change)” when the input data IN matches (in_dly + 1) or (in_dly−1), and “0” when neither of them matches. : False value (no minute change) ”. The register value pnm is “1: true value (positive polarity)” when the input data IN matches (in_dly + 1), and “0: false value (negative polarity)” when the input data IN does not match. All you need is enough.

連続回数検出部213は、一致判定部211bの判定結果を監視して、連続データの連続回数(入力データINとレジスタ値in_dlyが何回連続して一致していると判定されたか)を検出し、その検出結果を10ビットのレジスタ値(cnt_same)として保持する。   The continuous number detection unit 213 monitors the determination result of the coincidence determination unit 211b and detects the continuous number of continuous data (how many times the input data IN and the register value in_dly have been determined to be consistent). The detection result is held as a 10-bit register value (cnt_same).

制御部214は、微小変化検出部212及び連続回数検出部213の各検出結果に基づいてデータ分散処理部218−xの起動制御を行う。より具体的に述べると、制御部214は、連続データの連続回数が所定値以上(例えばcnt_same≧16)であり、入力データINの微小変化が検出(in_near=1)されており、レジスタ値in_dly(前周期の入力データINに相当)とレジスタ値main_data(連続データに相当)が一致しており、かつ、データ分散処理部218−xが停止状態(ax=0)であるときに、停止状態のデータ分散処理部218−xを適宜動作状態とするように、ロード信号LDxを生成する。   The control unit 214 performs activation control of the data distribution processing unit 218-x based on the detection results of the minute change detection unit 212 and the continuous frequency detection unit 213. More specifically, the control unit 214 detects that a continuous change of the continuous data is greater than or equal to a predetermined value (for example, cnt_same ≧ 16), a minute change in the input data IN is detected (in_near = 1), and the register value in_dly. When the register value main_data (corresponding to the continuous data) matches (corresponding to the input data IN in the previous cycle) and the data distribution processing unit 218-x is in the stopped state (ax = 0), the stopped state The load signal LDx is generated so that the data distribution processing unit 218-x is appropriately operated.

なお、入力データINの微小変化が生じたときに、データ分散処理部218−xが全て停止状態(a1=a2=a3=0)である場合、制御部214は、ロード信号LD1にパルスを立ち上げてデータ分散処理部218−1を動作状態とする。   When the data distribution processing unit 218-x is all in a stopped state (a1 = a2 = a3 = 0) when a minute change of the input data IN occurs, the control unit 214 sets a pulse on the load signal LD1. The data distribution processing unit 218-1 is put into an operating state.

一方、入力データINの微小変化が生じたときに、データ分散処理部218−1が既に動作状態(a1=1)であって、データ分散処理部218−2及び218−3が共に停止状態(a2=a3=0)である場合、制御部214は、ロード信号LD2にパルスを立ち上げてデータ分散処理部218−2を動作状態とする。   On the other hand, when a slight change occurs in the input data IN, the data distribution processing unit 218-1 is already in an operating state (a1 = 1), and both the data distribution processing units 218-1 and 218-3 are in a stopped state ( When a2 = a3 = 0), the control unit 214 raises a pulse to the load signal LD2 to set the data distribution processing unit 218-2 in an operating state.

また、入力データINの微小変化が生じたときに、データ分散処理部218−1及び218−2が既に動作状態(a1=a2=1)であって、データ分散処理部218−3のみが停止状態(a3=0)である場合、制御部214は、ロード信号LD3にパルスを立ち上げてデータ分散処理部218−3を動作状態とする。   Further, when the minute change of the input data IN occurs, the data distribution processing units 218-1 and 218-2 are already in the operating state (a1 = a2 = 1), and only the data distribution processing unit 218-3 is stopped. In the state (a3 = 0), the control unit 214 raises a pulse to the load signal LD3 to place the data distribution processing unit 218-3 in an operating state.

このように、制御部214は、データ分散処理部218−xが動作状態であるか停止状態であるかを個別に監視しており、一のデータ分散処理部が動作状態であるときに入力データINの微小変化が検出された場合には、それまで停止状態であった別のデータ分散処理部を並列的に動作状態とする。   In this way, the control unit 214 individually monitors whether the data distribution processing unit 218-x is in the operating state or the stopped state, and the input data when one data distribution processing unit is in the operating state. When a small change in IN is detected, another data distribution processing unit that has been in a stopped state is set in an operating state in parallel.

なお、入力データINの微小変化が生じたときに、データ分散処理部218−xが全て動作状態(a1=a2=a3=1)である場合、制御部214は、ロード信号LD1〜LD3のいずれにもパルスを立ち上げない。その結果、選択信号MUXにパルスが立ち上がらず、セレクタ215は、入力データINをスルー出力する状態に維持される。   When the data distribution processing unit 218-x is all in the operating state (a1 = a2 = a3 = 1) when the minute change of the input data IN occurs, the control unit 214 determines which of the load signals LD1 to LD3. Also don't launch a pulse. As a result, a pulse does not rise in the selection signal MUX, and the selector 215 is maintained in a state in which the input data IN is output through.

セレクタ部215は、選択信号MUXがローレベルであるときに入力データINを選択出力し、選択信号MUXがハイレベルであるときにレジスタ値main_data(連続データに相当)を選択出力する。すなわち、セレクタ部215は、ロード信号LDxに応じてデータ分散処理部218−xが起動される度に、入力データINをスルー出力する状態から、レジスタ値main_dataを出力する状態に切り替わる。   The selector unit 215 selects and outputs the input data IN when the selection signal MUX is at a low level, and selectively outputs the register value main_data (corresponding to continuous data) when the selection signal MUX is at a high level. That is, every time the data distribution processing unit 218-x is activated in accordance with the load signal LDx, the selector unit 215 switches from a state in which the input data IN is output through to a state in which the register value main_data is output.

ORゲート部216は、ロード信号LD1〜LD3の論理和演算を行うことにより選択信号MUXを生成する。従って、選択信号MUXは、ロード信号LD1〜LD3の少なくとも一つがハイレベルであるときにハイレベルとなり、ロード信号LD1〜LD3が全てローレベルであるときにローレベルとなる。   The OR gate unit 216 generates a selection signal MUX by performing an OR operation on the load signals LD1 to LD3. Accordingly, the selection signal MUX is at a high level when at least one of the load signals LD1 to LD3 is at a high level, and is at a low level when all of the load signals LD1 to LD3 are at a low level.

乗算部217は、セレクタ部215の5ビット出力をゲイン倍(本構成例では、16倍(=24倍))することにより9ビット出力を行う。ただし、乗算部217のゲインは、上記に限定されるものではなく、任意のゲイン(5倍や7.5倍など)を設定することが可能である。例えば、乗算部217のゲインを16倍に設定した場合には、16倍の入力データIN×16に生じる微小変化(±16LSB)を±1LSB×16回に分散して出力すればよく、乗算部217のゲインを5倍に設定した場合には、5倍の入力データIN×5に生じる微小変化(±5LSB)を±1LSB×5回に分散して出力すればよい。なお、乗算部217のゲインを小数倍(例えば7.5倍)に設定した場合には、回路はやや複雑になるものの、入力信号INの微小変化が生じる毎に分散回数を変化させて対応することができる。具体的に述べると、7.5倍の入力データIN×7.5に生じる微小変化(±7.5LSB)を±1LSB×7回に分散して出力した後、再び同一の微小変化(±7.5LSB)が生じたときには、±1LSB×8回に分散して出力すればよい。 Multiplication unit 217 (in this configuration example, 16 times (= 2 4-fold)) gain multiple 5-bit output of the selector unit 215 performs nine bits output by. However, the gain of the multiplication unit 217 is not limited to the above, and an arbitrary gain (5 times, 7.5 times, etc.) can be set. For example, when the gain of the multiplication unit 217 is set to 16 times, a minute change (± 16 LSB) occurring in the 16-times input data IN × 16 may be distributed and output in ± 1 LSB × 16 times. When the gain of 217 is set to 5 times, a minute change (± 5 LSB) that occurs in the input data IN × 5 that is 5 times may be dispersed and output in ± 1 LSB × 5 times. Note that when the gain of the multiplication unit 217 is set to a fractional multiple (for example, 7.5 times), the circuit becomes slightly complicated, but each time a slight change of the input signal IN occurs, the number of dispersion is changed. can do. More specifically, a minute change (± 7.5LSB) generated in 7.5 times the input data IN × 7.5 is output after being dispersed in ± 1LSB × 7 times, and then again the same minute change (± 7). .5LSB) occurs, it may be dispersed and output in ± 1LSB × 8 times.

データ分散処理部218−xは、制御部214から入力されるロード信号LDxに応じて5ビットの分散値dxを出力する。その際、データ分散処理部218−xは、連続データの連続回数(cnt_same)に応じて、分散値dxの大きさ、分散回数、及び、分散間隔を決定する。なお、データ分散処理部218−xの構成や動作については、後ほど詳細に説明する。   The data distribution processing unit 218-x outputs a 5-bit distribution value dx according to the load signal LDx input from the control unit 214. At this time, the data distribution processing unit 218-x determines the size of the distributed value dx, the number of distributions, and the distribution interval in accordance with the number of consecutive continuous data (cnt_same). The configuration and operation of the data distribution processing unit 218-x will be described in detail later.

加算部219a〜219cは、乗算部217の9ビット出力に分散値dxを加えて10ビットの分散入力データIN’を生成し、これを後段に出力する。   The adders 219a to 219c add the variance value dx to the 9-bit output of the multiplier 217 to generate 10-bit distributed input data IN ', and output this to the subsequent stage.

図7はデータ分散処理の一例を示すタイミングチャートであり、上から順に、クロック信号CLK、入力データIN、16倍の入力データIN×16、分散入力データIN’、及び、出力データOUTが描写されている。本図の例では、先出の図4と同様、入力データINの平均値が「8」よりも僅かに小さく、入力データINがクロック信号CLKの複数周期に亘って「8」に維持された後、一周期だけ「7」に変化するという状態が繰り返されている。   FIG. 7 is a timing chart showing an example of data distribution processing. From the top, a clock signal CLK, input data IN, 16 times input data IN × 16, distributed input data IN ′, and output data OUT are depicted. ing. In the example of this figure, like the previous FIG. 4, the average value of the input data IN is slightly smaller than “8”, and the input data IN is maintained at “8” over a plurality of cycles of the clock signal CLK. Thereafter, the state of changing to “7” for one period is repeated.

ここで、データ分散部210は、入力データINが同一の連続データから微小値だけ変化したときに、その変化量を複数回に分散させて連続データに順次加えながら後段に出力する。例えば、入力データINが「8」から「7」に−1LSB変化したとき、16倍の入力データIN×16は「128」から「112」に−16LSB変化する。このとき、データ分散部210は、分散入力データIN’として、「112」を1回出力するのではなく、所定の分散間隔を空けながら「124」を4回出力する。   Here, when the input data IN changes by a minute value from the same continuous data, the data distribution unit 210 distributes the change amount to a plurality of times and outputs it to the subsequent stage while sequentially adding it to the continuous data. For example, when the input data IN changes by −1 LSB from “8” to “7”, the 16 times input data IN × 16 changes by −16 LSB from “128” to “112”. At this time, the data distribution unit 210 does not output “112” once as the distributed input data IN ′, but outputs “124” four times while leaving a predetermined distribution interval.

すなわち、データ分散部210は、入力データINに−1LSBの微小変化が生じたことを検出したときに、16倍の入力データIN×16に生じる変化量(−16LSB)を4回に分割した分散値dx(=−4LSB)を生成し、これを16倍の連続データ「128」に順次加えながら、分散入力データIN’として後段に出力する。   That is, when the data distribution unit 210 detects that a small change of −1LSB has occurred in the input data IN, the data distribution unit 210 divides the amount of change (−16LSB) generated in the input data IN × 16 by 16 times into four times. A value dx (= −4LSB) is generated, and this is sequentially added to 16 times continuous data “128”, and output to the subsequent stage as distributed input data IN ′.

このようなデータ分散処理を行うことにより、後段に設けられたデジタルフィルタ部220の出力データOUTが安定化する。従って、デジタルフィルタ部220のカットオフ周波数fcを不要に引き下げることなく、出力データOUTのノイズ量を減少させることができるので、データ処理回路200の入出力応答速度を上げることが可能となる。   By performing such data distribution processing, the output data OUT of the digital filter unit 220 provided in the subsequent stage is stabilized. Therefore, the noise amount of the output data OUT can be reduced without unnecessarily lowering the cut-off frequency fc of the digital filter unit 220, so that the input / output response speed of the data processing circuit 200 can be increased.

図8は、データ分散処理部218−xの一構成例を示すブロック図である。本構成例のデータ分散処理部218−xは、レジスタ218a〜218eを含む。   FIG. 8 is a block diagram illustrating a configuration example of the data distribution processing unit 218-x. The data distribution processing unit 218-x of this configuration example includes registers 218a to 218e.

レジスタ218aは、3ビットのレジスタ値shiftを格納する。レジスタ値shftは、分散値dxの大きさを定めるレジスタ値である。分散値dxは、16倍の入力データIN×16に生じる変化量(−16LSB)をレジスタ値shiftに応じたシフト量だけ右シフトさせることにより生成される。例えば、レジスタ値shiftが「2」である場合、分散値dxは、−16LSBを2ビット右シフトさせた値、すなわち、−4LSB(=−16LSB/4)となる。   The register 218a stores a 3-bit register value “shift”. The register value shft is a register value that determines the size of the variance value dx. The variance value dx is generated by right-shifting the amount of change (−16 LSB) occurring in the 16-times input data IN × 16 by a shift amount corresponding to the register value shift. For example, when the register value shift is “2”, the variance value dx is a value obtained by shifting -16LSB to the right by 2 bits, that is, -4LSB (= -16LSB / 4).

レジスタ218bは、7ビットのレジスタ値DCNT_MAXを格納する。レジスタ値DCNT_MAXは、レジスタ値dcnt_aの初期値(分散値dxの分散間隔に相当)を定めるレジスタ値である。レジスタ値DCNT_MAXが大きいほど、分散値dxの分散間隔は長くなる。   The register 218b stores a 7-bit register value DCNT_MAX. The register value DCNT_MAX is a register value that determines an initial value of the register value dcnt_a (corresponding to the dispersion interval of the dispersion value dx). The greater the register value DCNT_MAX, the longer the dispersion interval of the dispersion value dx.

レジスタ218cは、7ビットのレジスタ値dcnt_aを格納する。レジスタ値dcnt_aは、クロック信号CLKのパルス毎に1つずつデクリメントされるダウンカウンタのカウント値である。また、レジスタ値dcnt_aは、レジスタ値dcnt_bのデクリメント毎に、レジスタ値DCNT_MAXで定められた初期値にリセットされる。   The register 218c stores a 7-bit register value dcnt_a. The register value dcnt_a is a count value of a down counter that is decremented by one for each pulse of the clock signal CLK. The register value dcnt_a is reset to an initial value determined by the register value DCNT_MAX every time the register value dcnt_b is decremented.

レジスタ218dは、5ビットのレジスタ値dcnt_bを格納する。レジスタ値dcnt_bは、レジスタ値dcnt_aが0となるタイミングで1つデクリメントされるダウンカウンタのカウント値である。なお、レジスタ値dcnt_bの初期値は、分散値dxの分散回数に相当する。   The register 218d stores a 5-bit register value dcnt_b. The register value dcnt_b is a count value of a down counter that is decremented by 1 at a timing when the register value dcnt_a becomes 0. Note that the initial value of the register value dcnt_b corresponds to the number of distributions of the distribution value dx.

レジスタ218eは、1ビットのレジスタ値pnmを格納する。レジスタ値pnmは、入力データINに生じた微小変化の正負極性を示すレジスタ値であり、微小変化検出部212から入力される。   The register 218e stores a 1-bit register value pnm. The register value pnm is a register value indicating the positive / negative polarity of the minute change generated in the input data IN, and is input from the minute change detection unit 212.

図9は、分散値出力処理の一例を示すタイミングチャートであり、上から順番に、クロック信号CLK、ロード入力load(ロード信号LDxに相当)、レジスタ値shift、レジスタ値DCNT_MAX、レジスタ値dcnt_b、レジスタ値dcnt_a、レジスタ値pnm、アクティブ出力active(アクティブ信号axに相当)、及び、分散出力diff_out(分散値dxに相当)が描写されている。   FIG. 9 is a timing chart showing an example of the distributed value output processing. In order from the top, the clock signal CLK, the load input load (corresponding to the load signal LDx), the register value shift, the register value DCNT_MAX, the register value dcnt_b, the register A value dcnt_a, a register value pnm, an active output active (corresponding to the active signal ax), and a distributed output diff_out (corresponding to the distributed value dx) are depicted.

ロード入力loadにパルスが立ち上がると、連続データの連続回数(cut_same)に応じて、レジスタ値shift、レジスタ値DCNT_MAX、及び、レジスタ値dcnt_bがセットされると共に、入力データINに生じた微小変化の正負極性に応じて、レジスタ値pnmがセットされる。   When a pulse rises in the load input load, the register value shift, the register value DCNT_MAX, and the register value dcnt_b are set according to the number of times of continuous data (cut_same), and the sign of the minute change that occurs in the input data IN The register value pnm is set according to the polarity.

図9の例では、レジスタ値shiftが2であり、レジスタ値pnmが0(負極性)であることから、分散値dxは、−16LSBを2ビット右シフトさせた値、すなわち、−4LSB(=−16LSB/4)となる。   In the example of FIG. 9, since the register value shift is 2 and the register value pnm is 0 (negative polarity), the dispersion value dx is a value obtained by shifting -16LSB to the right by 2 bits, that is, -4LSB (= −16LSB / 4).

その後、クロック信号CLKのパルス毎に、レジスタ値dcnt_aが1つずつデクリメントされる。そして、レジスタ値dcnt_aが1となる毎に、分散値dxとして−4LSBの出力が行われる。その余のタイミングでは、分散値dxとして0が出力される。   Thereafter, the register value dcnt_a is decremented by one for each pulse of the clock signal CLK. Every time the register value dcnt_a becomes 1, -4LSB is output as the variance value dx. At the remaining timing, 0 is output as the variance value dx.

また、レジスタ値dcnt_aが0となるタイミングで、レジスタ値dcnt_bが1つデクリメントされ、レジスタ値dcnt_aが初期値(=DCNT_MAX)にリセットされる。なお、レジスタ値dcnt_aのリセット動作(延いては分散値dxの出力処理)は、レジスタ値dcnt_bが0となるまで繰り返される。   At the timing when the register value dcnt_a becomes 0, the register value dcnt_b is decremented by 1, and the register value dcnt_a is reset to the initial value (= DCNT_MAX). Note that the reset operation of the register value dcnt_a (and the output process of the distributed value dx) is repeated until the register value dcnt_b becomes zero.

図9の例では、レジスタ値DCNT_MAXが6であり、レジスタ値dcnt_bの初期値が4であることから、分散値dxの出力処理は、クロック信号CLKの6パルス毎に1回ずつ、合計4回実施されることになる。   In the example of FIG. 9, since the register value DCNT_MAX is 6 and the initial value of the register value dcnt_b is 4, the output process of the distributed value dx is performed once every 6 pulses of the clock signal CLK, for a total of 4 times. Will be implemented.

このように、分散値dxの大きさ(−4LSB)と出力回数(4回)は、分散すべき変化量(−16LSB)と、分散値dxの合計量(−4LSB×4回)とが等しくなるように設定される。   Thus, the magnitude of the variance value dx (−4 LSB) and the number of outputs (4 times) are equal to the amount of change (−16 LSB) to be dispersed and the total amount of variance values dx (−4 LSB × 4 times). Is set to be

なお、ロード入力loadにパルスが立ち上がってから、レジスタ値dcnt_bが0となるまでの間、アクティブ出力activeがハイレベル(ax=1)とされる。これにより、制御部214は、データ分散処理部218−xが動作状態であるか停止状態であるかを判断することが可能となる。   The active output active is set to the high level (ax = 1) from when the pulse rises to the load input load until the register value dcnt_b becomes 0. Thereby, the control unit 214 can determine whether the data distribution processing unit 218-x is in an operating state or a stopped state.

図10は、データ分散処理テーブルの一例を示す図である。このデータ分散処理テーブルは、連続回数cnt_sameと、レジスタ値dcnt_b、レジスタ値shift、及び、分散出力diff_outとの相関関係を示すものであり、データ分散処理部218−xに実装されている。   FIG. 10 is a diagram illustrating an example of the data distribution processing table. This data distribution processing table shows the correlation between the continuous count cnt_same, the register value dcnt_b, the register value shift, and the distributed output diff_out, and is implemented in the data distribution processing unit 218-x.

例えば、cnt_same=16CLKである場合には、dcnt_b=2、shift=1にセットされ、diff_out=±8LSBとなる。すなわち、±16LSBの変化量が±8LSB×2回に分散して出力される。   For example, when cnt_name = 16 CLK, dcnt_b = 2 and shift = 1 are set, and diff_out = ± 8LSB. In other words, the change amount of ± 16 LSB is dispersed and output in ± 8 LSB × 2 times.

また、cnt_same=32CLKである場合には、dcnt_b=4、shift=2にセットされ、diff_out=±4LSBとなる。すなわち、±16LSBの変化量が±4LSB×4回に分散して出力される。   When cnt_name = 32CLK, dcnt_b = 4 and shift = 2 are set, and diff_out = ± 4LSB. In other words, the change amount of ± 16 LSB is dispersed and output in ± 4 LSB × 4 times.

また、cnt_same=64CLKである場合には、dcnt_b=8、shift=3にセットされ、diff_out=±2LSBとなる。すなわち、±16LSBの変化量が±2LSB×8回に分散して出力される。   When cnt_same = 64 CLK, dcnt_b = 8 and shift = 3 are set, and diff_out = ± 2LSB. In other words, the change amount of ± 16 LSB is dispersed and output in ± 2 LSB × 8 times.

また、cnt_same=128CLKである場合には、dcnt_b=16、shift=4にセットされ、diff_out=±1LSBとなる。すなわち、±16LSBの変化量が±1LSB×16回に分散して出力される。   When cnt_same = 128 CLK, dcnt_b = 16 and shift = 4 are set, and diff_out = ± 1LSB. In other words, the change amount of ± 16 LSB is dispersed and output in ± 1 LSB × 16 times.

上記したように、データ分散処理部218−xは、連続データの連続回数(cnt_same)が大きいほど、分散値dxを小さくして分散回数を増やす。このような構成とすることにより、出力データOUTの変動を適切に抑制することが可能となる。   As described above, the data distribution processing unit 218-x decreases the distribution value dx and increases the number of distributions as the number of consecutive continuous data (cnt_same) increases. With such a configuration, it is possible to appropriately suppress fluctuations in the output data OUT.

図11は、分散間隔制御の一例を示す図である。データ分散処理部218−xは、分散値dxの分散回数を変化させることなく、連続データの連続回数(cnt_same)に比例して、分散値dxの分散間隔(レジスタ値DCNT_MAX)を長くセットする機能も備えている。   FIG. 11 is a diagram illustrating an example of distributed interval control. The data distribution processing unit 218-x sets the distribution interval (register value DCNT_MAX) of the distributed value dx longer in proportion to the continuous number of continuous data (cnt_same) without changing the number of distributions of the distributed value dx. It also has.

例えば、cnt_same=16CLKとcnt_same=24CLKとを比較した場合、分散回数はいずれも2回で変わらないが、分散間隔はTaからTbに延長されている。このような構成とすることにより、連続データの入力期間中に分散値dxを均等分散することができるので、出力データOUTの変動を適切に抑制することが可能となる。また、cnt_same=16CLKとcnt_same=32CLKとを比較した場合には、分散回数が2回から4回に増えるので、分散間隔はいずれもTaとなる。   For example, when cnt_same = 16CLK and cnt_same = 24CLK are compared, the number of times of dispersion does not change by two, but the time interval of dispersion is extended from Ta to Tb. With such a configuration, the variance dx can be evenly distributed during the continuous data input period, so that fluctuations in the output data OUT can be appropriately suppressed. In addition, when cnt_name = 16CLK and cnt_name = 32CLK are compared, the number of dispersion increases from 2 to 4, so that the dispersion interval is Ta.

なお、入力データINの微小変化が一定間隔で出現する場合には、データ分散処理部218−xを1つ設けておけば足りると考えられる。一方、入力データINの微小変化が不定期で出現する場合には、一のデータ分散処理部218−xがデータ分散処理を行っている途中に次の微小変化が生じ得ることに鑑み、データ分散処理部218−xを複数設けておくことが望ましい。   If minute changes in the input data IN appear at regular intervals, it may be sufficient to provide one data distribution processing unit 218-x. On the other hand, in the case where minute changes in the input data IN appear irregularly, in view of the fact that the next minute change may occur while one data distribution processing unit 218-x is performing data distribution processing, the data distribution It is desirable to provide a plurality of processing units 218-x.

<差分周波数測定回路への適用例>
図12は、差分周波数測定回路への適用例を示すブロック図である。本適用例の差分周波数測定回路300は、カウンタ部310及び320と、減算部330と、データ分散部340と、ローパスフィルタ部350と、を有する。
<Application example to differential frequency measurement circuit>
FIG. 12 is a block diagram showing an application example to the differential frequency measurement circuit. The differential frequency measurement circuit 300 of this application example includes counter units 310 and 320, a subtraction unit 330, a data distribution unit 340, and a low-pass filter unit 350.

カウンタ部310は、ゲート信号Sg(周波数:fg)によって定まるゲート期間Tg(=1/fg)毎に、入力信号IN1(周波数:f1)のパルス数をカウントしてカウント値D1を出力する。   The counter unit 310 counts the number of pulses of the input signal IN1 (frequency: f1) and outputs a count value D1 for each gate period Tg (= 1 / fg) determined by the gate signal Sg (frequency: fg).

カウンタ部320は、上記のゲート期間Tg毎に、入力信号IN2(周波数:f2)のパルス数をカウントしてカウント値D2を出力する。   The counter unit 320 counts the number of pulses of the input signal IN2 (frequency: f2) for each gate period Tg and outputs a count value D2.

減算部330は、カウント値D1からカウント値D2を差し引いて差分カウント値を生成し、これを入力データINとして出力する。   The subtractor 330 generates a difference count value by subtracting the count value D2 from the count value D1, and outputs this as input data IN.

上記のカウンタ部310及び320と減算部330は、入力信号IN1及びIN2の差分周波数に応じた入力データINを生成する入力データ生成回路として機能する。なお、単一の入力信号を周波数測定の対象とする場合には、入力データ生成回路としてカウンタ部を一つだけ設ければよい。   The counter units 310 and 320 and the subtracting unit 330 function as an input data generation circuit that generates input data IN corresponding to the difference frequency between the input signals IN1 and IN2. When a single input signal is a frequency measurement target, only one counter unit needs to be provided as an input data generation circuit.

データ分散部340は、入力データINが同一の連続データから微小値(±1LSB)だけ変化したときに、その変化量を複数回に分散させて連続データに順次加えながら分散入力データIN’を生成し、これを後段のローパスフィルタ部340に出力する。なお、データ分散部340の構成及び動作は、先述のデータ分散部210と同一であるため、重複した説明は割愛する。   When the input data IN changes by a minute value (± 1 LSB) from the same continuous data, the data distribution unit 340 generates the distributed input data IN ′ by distributing the change amount to a plurality of times and sequentially adding the continuous data to the continuous data. Then, this is output to the low-pass filter section 340 at the subsequent stage. Note that the configuration and operation of the data distribution unit 340 are the same as those of the data distribution unit 210 described above, and a duplicate description is omitted.

ローパスフィルタ部350は、上記のゲート期間Tg毎に得られる一連の分散入力データIN’にローパスフィルタ処理(カットオフ周波数:fc)を施して、出力データOUTを生成するデジタルフィルタ回路である。ローパスフィルタ部350としては、例えば図1のデジタルフィルタ回路100を用いることができる。   The low-pass filter unit 350 is a digital filter circuit that performs low-pass filter processing (cut-off frequency: fc) on a series of distributed input data IN ′ obtained every gate period Tg to generate output data OUT. As the low-pass filter unit 350, for example, the digital filter circuit 100 of FIG. 1 can be used.

上記構成から成る周波数測定回路300では、カウンタ部310及び320として、比較的短いゲート期間Tg(1s以下)で入力信号IN1及びIN2のパルス数をカウントする方式のカウンタ部(いわゆる短ゲートタイムカウンタ部)が用いられている。このような方式を採用したカウンタ部310及び320からゲート期間Tg毎に出力される一連のカウント値D1及びD2は、ある種のパルス列として振る舞い、入力信号IN1及びIN2の周波数変化に応じて各々の頻度(粗密)が変化する。   In the frequency measuring circuit 300 configured as described above, the counter units 310 and 320 are counter units (so-called short gate time counter units) that count the number of pulses of the input signals IN1 and IN2 in a relatively short gate period Tg (1 s or less). ) Is used. A series of count values D1 and D2 output for each gate period Tg from the counter units 310 and 320 adopting such a method behave as a kind of pulse train, and each of the count values D1 and D2 corresponds to the frequency change of the input signals IN1 and IN2. The frequency (roughness) changes.

入力信号IN1及びIN2の差分周波数に関する情報は、パルス列として振る舞う入力データIN(延いては、分散入力データIN’)の周波数スペクトルの低域成分に存在する。従って、ローパスフィルタ部350を用いて、分散入力データIN’から低域成分を抽出する(量子化誤差に起因する高調波成分を除去する)ことにより、入力信号IN1及びIN2の差分周波数に関する情報を抽出(復調)し、これを出力データOUTとして出力することができる。   Information regarding the difference frequency between the input signals IN1 and IN2 exists in the low frequency component of the frequency spectrum of the input data IN (and thus the distributed input data IN ') that behaves as a pulse train. Therefore, the low-pass filter unit 350 is used to extract low-frequency components from the dispersion input data IN ′ (remove harmonic components due to quantization errors), thereby obtaining information on the difference frequency between the input signals IN1 and IN2. It can be extracted (demodulated) and output as output data OUT.

図13は、入力信号IN2の周波数f2と出力データOUT(16ビット:−32768〜+32767)の標準偏差σとの相関図である。図中の実線は入力データINのデータ分散処理ありの挙動を示しており、図中の破線は入力データINのデータ分散処理なしの挙動を示している。なお、出力データOUTの揺れ具合(ノイズ量)は、その標準偏差σを指標として評価することが可能である。   FIG. 13 is a correlation diagram between the frequency f2 of the input signal IN2 and the standard deviation σ of the output data OUT (16 bits: −32768 to +32767). The solid line in the figure shows the behavior of the input data IN with the data distribution process, and the broken line in the figure shows the behavior of the input data IN without the data distribution process. Note that the degree of fluctuation (noise amount) of the output data OUT can be evaluated using the standard deviation σ as an index.

また、図13では、入力信号IN1の周波数f1を160kHzに固定した上で、入力信号IN2の周波数f2を160kHz近傍でスイープしながら、各周波数において約300ms毎に出力信号OUTを10回ずつ測定し、各10回の測定結果に基づいて標準偏差σを算出した結果が描写されている。   In FIG. 13, the frequency f1 of the input signal IN1 is fixed at 160 kHz, and the output signal OUT is measured 10 times every about 300 ms at each frequency while sweeping the frequency f2 of the input signal IN2 near 160 kHz. The result of calculating the standard deviation σ based on the measurement results of 10 times is depicted.

その結果、入力データINのデータ分散処理なし(破線)では、特定の周波数で出力データOUTのノイズが増大していた。具体的に述べると、周波数f2を160kHzに設定した状態では、標準偏差σが5LSBrms以下であるのに対して、周波数f2を160.02kHzに設定した状態では、標準偏差σが25LSBrmsまで増大していた。   As a result, the noise of the output data OUT increased at a specific frequency without the data distribution processing of the input data IN (broken line). More specifically, when the frequency f2 is set to 160 kHz, the standard deviation σ is 5 LSBrms or less, whereas when the frequency f2 is set to 160.02 kHz, the standard deviation σ increases to 25 LSBrms. It was.

このように特定の周波数で生じるノイズ増大は、入力データINの平均値が整数(例えば「8」)よりも僅かに小さくなると、先出の図4で示したように、入力データINがクロック信号CLKの複数周期に亘って「8」に維持された後、一周期だけ「7」に微小変化するという状態が繰り返されることに起因する。   As described above, when the average value of the input data IN is slightly smaller than an integer (for example, “8”), the noise increase occurring at a specific frequency causes the input data IN to become a clock signal as shown in FIG. This is due to the fact that after being maintained at “8” over a plurality of cycles of CLK, the state of minute change to “7” for one cycle is repeated.

一方、入力データINのデータ分散処理あり(実線)では、周波数f2を160.02kHzに設定した状態であっても、標準偏差σがほぼ8LSBrmsまで低下することが確認された。従って、本適用例の周波数測定回路300であれば、入力信号IN1及びIN2の差分周波数を精度良く測定することが可能となる。   On the other hand, it was confirmed that the standard deviation σ decreased to almost 8LSBrms even when the frequency f2 was set to 160.02 kHz when the input data IN was distributed (solid line). Therefore, the frequency measurement circuit 300 of this application example can accurately measure the difference frequency between the input signals IN1 and IN2.

<電子機器への適用例>
図14及び図15は、それぞれ周波数測定回路が搭載される電子機器の第1構成例(リモコン)を示すブロック図及び外観図である。本構成例のリモコン400は、その内部にMEMS[micro electro mechanical systems]モーションセンサ410及び420と、差分周波数測定IC430と、マイコン440と、を有する。
<Application examples to electronic devices>
14 and 15 are a block diagram and an external view showing a first configuration example (remote control) of an electronic device on which the frequency measurement circuit is mounted, respectively. The remote controller 400 of this configuration example includes MEMS [micro electro mechanical systems] motion sensors 410 and 420, a differential frequency measurement IC 430, and a microcomputer 440 therein.

MEMSモーションセンサ410及び420は、それぞれ、リモコン400に設けられたボタンの動き(押し具合)に応じて、互いに異なる出力特性(感受性)を持って周波数が変化する入力信号IN1及びIN2を生成する。例えば、或るボタンが押下されたときに、MEMSモーションセンサ410は、ボタンの動きに対して入力信号IN1の周波数を比較的緩慢に変化させる一方、MEMSモーションセンサ420は、ボタンの動きに対して入力信号IN2の周波数を比較的急峻に変化させる。その結果、入力信号IN1及びIN2の差分周波数は、ボタンの動きに応じて変化することになる。   The MEMS motion sensors 410 and 420 respectively generate input signals IN1 and IN2 having different output characteristics (sensitivity) and changing frequencies according to the movement (pressing state) of a button provided on the remote controller 400. For example, when a button is pressed, the MEMS motion sensor 410 changes the frequency of the input signal IN1 relatively slowly with respect to the button movement, while the MEMS motion sensor 420 changes with respect to the button movement. The frequency of the input signal IN2 is changed relatively steeply. As a result, the difference frequency between the input signals IN1 and IN2 changes according to the movement of the button.

差分周波数測定IC430は、先の周波数測定回路300を集積化して成り、入力信号IN1及びIN2の差分周波数に応じた出力データOUTを生成するモノリシック半導体装置である。なお、周波数測定回路300を半導体装置として実現するのではなく、市販のディスクリート部品を用いて組み立てることも可能である。   The differential frequency measurement IC 430 is a monolithic semiconductor device that is formed by integrating the previous frequency measurement circuit 300 and generates output data OUT corresponding to the differential frequency of the input signals IN1 and IN2. Note that the frequency measurement circuit 300 may not be realized as a semiconductor device, but may be assembled using commercially available discrete components.

マイコン440は、出力データOUTに応じた演算処理を行い、ボタンが押されているか否かをデジタル的に検出するだけでなく、ボタンがどの程度の力で押されているかをアナログ的に検出する。   The microcomputer 440 performs an arithmetic process according to the output data OUT, and not only digitally detects whether or not the button is pressed, but also detects how much the button is pressed in an analog manner. .

本構成例のリモコン400であれば、例えば、ボタンを強く押下したときには第1の処理を行う一方、ボタンを弱く押下したときには第2の処理を行うというように、単一のボタンに複数の機能を持たせることができるので、リモコン400の多機能化と小型化を両立することが可能となる。   In the case of the remote controller 400 of this configuration example, for example, the first process is performed when the button is pressed down strongly, while the second process is performed when the button is pressed down weakly. Therefore, it is possible to achieve both multi-functionality and miniaturization of the remote control 400.

図16は、電子機器の第2構成例(センシング機器)を示すブロック図である。第2構成例の電子機器500は、センサ510と、ADコンバータ520と、データ分散回路530と、デジタルフィルタ回路540と、マイコン550と、を有する。   FIG. 16 is a block diagram illustrating a second configuration example (sensing device) of the electronic device. The electronic device 500 of the second configuration example includes a sensor 510, an AD converter 520, a data distribution circuit 530, a digital filter circuit 540, and a microcomputer 550.

センサ510は、アナログのセンサ信号Daを生成する。センサ510としては、光センサ、温度センサ、モーションセンサなど、いかなるセンサを用いても構わない。   The sensor 510 generates an analog sensor signal Da. As the sensor 510, any sensor such as an optical sensor, a temperature sensor, or a motion sensor may be used.

ADコンバータ520は、アナログのセンサ信号DaをAD変換してデジタルの入力データINを生成する。   The AD converter 520 performs AD conversion on the analog sensor signal Da to generate digital input data IN.

データ分散回路530は、入力データINが同一の連続データから微小値だけ変化したときに、その変化量を複数回に分散させて連続データに順次加えながら分散入力データIN’を生成し、これを後段のデジタルフィルタ回路540に出力する。なお、データ分散回路530の構成及び動作は、先のデータ分散部210と同一であるため、重複した説明は割愛する。   When the input data IN changes by a minute value from the same continuous data, the data distribution circuit 530 generates the distributed input data IN ′ while distributing the change amount to a plurality of times and sequentially adding to the continuous data. The data is output to the subsequent digital filter circuit 540. Note that the configuration and operation of the data distribution circuit 530 are the same as those of the data distribution unit 210 described above, and thus redundant description is omitted.

デジタルフィルタ回路540は、分散入力データIN’に所定のフィルタ処理を施して出力データOUTを生成する。なお、デジタルフィルタ回路540としては、例えば、図1のデジタルフィルタ回路100を用いることができる。   The digital filter circuit 540 performs predetermined filter processing on the distributed input data IN ′ to generate output data OUT. As the digital filter circuit 540, for example, the digital filter circuit 100 in FIG. 1 can be used.

マイコン550は、出力データOUTに応じた処理を行う処理装置である。なお、処理装置としては、マイコン550に限らず、DSP[digital signal processor]やFPGA[field-programmable gate array]、或いは、パソコンなどを用いることもできる。   The microcomputer 550 is a processing device that performs processing according to the output data OUT. The processing device is not limited to the microcomputer 550, and a DSP [digital signal processor], an FPGA [field-programmable gate array], or a personal computer can also be used.

このように、データ分散回路530は、リモコンだけでなく、様々なセンシング機器にも適用することが可能である。   As described above, the data distribution circuit 530 can be applied not only to the remote controller but also to various sensing devices.

図17は、電子機器の第3構成例(オーディオ機器)を示すブロック図である。本構成例の電子機器500は、先の第2構成例とほぼ同様の構成であり、センサ510に代えてマイク560を有し、マイコン550に代えて録音装置570を有する。このように、データ分散回路530は、オーディオ機器にも適用することが可能である。   FIG. 17 is a block diagram illustrating a third configuration example (audio device) of the electronic device. The electronic apparatus 500 of this configuration example has substantially the same configuration as that of the second configuration example, and includes a microphone 560 instead of the sensor 510 and a recording device 570 instead of the microcomputer 550. Thus, the data distribution circuit 530 can be applied to audio equipment.

<差分周波数測定回路>
図18は、差分周波数測定回路の第1構成例を示すブロック図である。本構成例の差分周波数測定回路600は、入力信号IN1(周波数:f1)と入力信号IN2(周波数:f2<f1)との差分周波数(f1−f2)に応じた出力信号OUTを生成する回路であり、差分信号生成部610−X(ただしX=1、2、…、x)と、加算部620と、ローパスフィルタ部630と、遅延部640−Y(ただしY=1、2、…、y(=x−1))と、を有する。
<Differential frequency measurement circuit>
FIG. 18 is a block diagram illustrating a first configuration example of the differential frequency measurement circuit. The differential frequency measurement circuit 600 of this configuration example is a circuit that generates an output signal OUT corresponding to the differential frequency (f1-f2) between the input signal IN1 (frequency: f1) and the input signal IN2 (frequency: f2 <f1). Yes, a differential signal generator 610-X (where X = 1, 2,..., X), an adder 620, a low-pass filter 630, and a delay unit 640-Y (where Y = 1, 2,..., Y) (= X-1)).

差分信号生成部610−Xは、入力信号IN1及びIN2の差分周波数(f1−f2)に応じたnビットの差分データBXを生成する回路ブロックであり、Dフリップフロップ611−Xと、カウンタ部612−Xと、を含む。なお、差分信号生成部610−Xは、2m個(ただしmは自然数)設けることが望ましい。このような構成とすることにより、加算部620で生成される総和データCが(n+m)ビットとなるので、差分周波数測定回路600の設計が容易となる。 The difference signal generation unit 610-X is a circuit block that generates n-bit difference data BX corresponding to the difference frequency (f1-f2) between the input signals IN1 and IN2, and includes a D flip-flop 611-X and a counter unit 612. -X. Note that it is desirable to provide 2 m differential signal generation units 610-X (where m is a natural number). With such a configuration, the total data C generated by the adder 620 becomes (n + m) bits, so that the design of the differential frequency measurement circuit 600 is facilitated.

Dフリップフロップ611−Xは、入力信号IN1がクロック信号として入力され、入力信号IN2がデータ信号として入力される順序回路である。   The D flip-flop 611-X is a sequential circuit in which the input signal IN1 is input as a clock signal and the input signal IN2 is input as a data signal.

カウンタ部612−Xは、ゲート信号Sg(周波数:fg)によって定まるゲート期間(=1/fg)毎に、Dフリップフロップ611−Xで生成される出力信号AXのパルス数をカウントし、そのカウント値をnビットの差分データBXとして出力する。   The counter unit 612-X counts the number of pulses of the output signal AX generated by the D flip-flop 611-X every gate period (= 1 / fg) determined by the gate signal Sg (frequency: fg), and the count The value is output as n-bit difference data BX.

加算部620は、差分データBXの総和を取ることにより、(n+m)ビットの総和データCを生成する。   The adder 620 generates the sum data C of (n + m) bits by taking the sum of the difference data BX.

ローパスフィルタ部630は、総和データCにローパスフィルタ処理を施して出力信号OUTを生成するデジタルフィルタ回路である。   The low-pass filter unit 630 is a digital filter circuit that performs low-pass filter processing on the sum data C and generates an output signal OUT.

遅延部640−Yは、入力信号IN1が複数の差分信号生成部610−Xに対して各々異なる位相で入力されるように遅延を与える。図18の例において、差分信号生成部610−1には、入力信号IN1が遅延なく入力されている。また、差分信号生成部610−2には、入力信号IN1を遅延部640−1で1回遅延させた遅延入力信号IN1d1が入力されている。また、差分信号生成部610−xには、入力信号IN1を遅延部640−1〜yでY回遅延させた遅延信号IN1dyが入力されている。   The delay unit 640-Y provides a delay so that the input signal IN1 is input to the plurality of differential signal generation units 610-X with different phases. In the example of FIG. 18, the input signal IN1 is input to the differential signal generation unit 610-1 without delay. Further, the differential signal generation unit 610-2 receives a delayed input signal IN1d1 obtained by delaying the input signal IN1 by the delay unit 640-1 once. Further, the differential signal generation unit 610-x receives a delay signal IN1dy obtained by delaying the input signal IN1 Y times by the delay units 640-1 to y.

なお、遅延部640−Yとしては、バッファ(ないしはディレイバッファ)を用いることができる。バッファは、インバータを偶数個直列に接続することで形成される。なお、バッファのうち、遅延量の大きいものはディレイバッファと呼ばれる。ディレイバッファは、インバータの個数を増やすか、或いは、2つのインバータ間に抵抗とキャパシタを挿入して遅延を持たせることにより形成される。   As the delay unit 640-Y, a buffer (or a delay buffer) can be used. The buffer is formed by connecting an even number of inverters in series. A buffer having a large delay amount is called a delay buffer. The delay buffer is formed by increasing the number of inverters or inserting a resistor and a capacitor between the two inverters to provide a delay.

なお、2m個の差分信号生成部610−Xを設ける場合には、入力信号IN1の周期T1(=1/f1)に対して、遅延部640−Y毎の遅延量をT1/2mに設定することが望ましい。 When 2 m differential signal generation units 610-X are provided, the delay amount for each delay unit 640-Y is set to T1 / 2 m with respect to the cycle T1 (= 1 / f1) of the input signal IN1. It is desirable to set.

このように、複数の差分信号生成部610−Xに対して入力信号IN1を異なる位相で入力することにより、ローパスフィルタ部630のカットオフ周波数を不要に低下させることなく、出力信号OUTのノイズを抑制することが可能となる。例えば、差分信号生成部610−Xを2m個設けた場合には、出力信号OUTのビット数がmビット増加するので、出力信号OUTのノイズは1/2mになる。 In this way, by inputting the input signal IN1 with different phases to the plurality of differential signal generation units 610-X, the noise of the output signal OUT is reduced without unnecessarily reducing the cutoff frequency of the low-pass filter unit 630. It becomes possible to suppress. For example, when 2 m differential signal generation units 610-X are provided, the number of bits of the output signal OUT increases by m bits, so that the noise of the output signal OUT becomes 1/2 m .

図19は、入力信号IN1及びIN2の差分周波数(f1−f2)と出力信号OUTの標準偏差σとの相関図である。図中の実線は、複数の差分信号生成部610−Xに対して入力信号IN1を異なる位相で入力した場合の挙動を示しており、図中の破線は、差分信号生成部610を一つだけ設けた場合の挙動(従来の挙動)を示している。   FIG. 19 is a correlation diagram between the difference frequency (f1−f2) between the input signals IN1 and IN2 and the standard deviation σ of the output signal OUT. The solid line in the figure shows the behavior when the input signal IN1 is input to the plurality of differential signal generation units 610-X with different phases, and the broken line in the figure shows only one differential signal generation unit 610. The behavior when provided (conventional behavior) is shown.

図中の実線と破線を比べると明らかなように、複数の差分信号生成部610−Xに対して入力信号IN1を異なる位相で入力することにより、出力信号OUTの標準偏差σが大幅に低下することが確認された。従って、本構成例の周波数測定回路600であれば、入力信号IN1及びIN2の差分周波数を精度良く測定することが可能となる。   As is clear from the comparison between the solid line and the broken line in the figure, the standard deviation σ of the output signal OUT is significantly reduced by inputting the input signal IN1 with different phases to the plurality of differential signal generation units 610-X. It was confirmed. Therefore, the frequency measurement circuit 600 of this configuration example can accurately measure the difference frequency between the input signals IN1 and IN2.

なお、図18では、差分信号生成部610−Xに単一のDフリップフロップ611−Xが含まれている構成を例示したが、入力信号IN1及びIN2は、互いに非同期で入力されるので、メタステーブル対策が必要となる。   18 illustrates a configuration in which the differential signal generation unit 610-X includes a single D flip-flop 611-X. However, since the input signals IN1 and IN2 are input asynchronously to each other, Table measures are required.

図20は、メタステーブル対策の第1例を示す図である。本構成例のDフリップフロップ611−Xは、Dフリップフロップ611a及び611bを含む。Dフリップフロップ611aには、入力信号IN1(または遅延入力信号IN1dY)がクロック信号として入力されており、入力信号IN2がデータ信号として入力されている。一方、Dフリップフロップ611bには、入力信号IN1(または遅延入力信号IN1dY)がクロック信号として入力されており、Dフリップフロップ611aの出力信号がデータ信号として入力されている。   FIG. 20 is a diagram illustrating a first example of measures against metastable. The D flip-flop 611-X of this configuration example includes D flip-flops 611a and 611b. An input signal IN1 (or delayed input signal IN1dY) is input as a clock signal to the D flip-flop 611a, and an input signal IN2 is input as a data signal. On the other hand, the input signal IN1 (or the delayed input signal IN1dY) is input to the D flip-flop 611b as a clock signal, and the output signal of the D flip-flop 611a is input as a data signal.

図21は、メタステーブル対策の第2例を示す図である。本構成例のDフリップフロップ611−Xは、Dフリップフロップ611a及び611bと、インバータ611cと、を含む。Dフリップフロップ611aには、入力信号IN1(または遅延入力信号IN1dY)がクロック信号として入力されており、入力信号IN2がデータ信号として入力されている。一方、Dフリップフロップ611bには、入力信号IN1(または遅延入力信号IN1dY)の論理反転信号がクロック信号として入力されており、Dフリップフロップ611aの出力信号がデータ信号として入力されている。   FIG. 21 is a diagram illustrating a second example of a countermeasure against metastable. The D flip-flop 611-X of this configuration example includes D flip-flops 611a and 611b, and an inverter 611c. An input signal IN1 (or delayed input signal IN1dY) is input as a clock signal to the D flip-flop 611a, and an input signal IN2 is input as a data signal. On the other hand, a logically inverted signal of the input signal IN1 (or delayed input signal IN1dY) is input to the D flip-flop 611b as a clock signal, and an output signal of the D flip-flop 611a is input as a data signal.

図22は、差分周波数測定回路の第2構成例を示すブロック図である。本構成例の差分周波数測定回路600は、2個の差分信号生成部610−X(ただし、X=1、2)を設けた構成である。本構成例であれば、入力信号IN1の周期T1に対して、遅延部640の遅延量をT1/2に設定することが望ましいので、遅延部640として単純なインバータを用いることができる。   FIG. 22 is a block diagram illustrating a second configuration example of the differential frequency measurement circuit. The differential frequency measurement circuit 600 of this configuration example has a configuration in which two differential signal generation units 610-X (X = 1, 2) are provided. In this configuration example, it is desirable to set the delay amount of the delay unit 640 to T1 / 2 with respect to the cycle T1 of the input signal IN1, and thus a simple inverter can be used as the delay unit 640.

図23は、差分周波数測定回路の第3構成例を示すブロック図である。本構成例の差分周波数測定回路600は、4個の差分信号生成部610−X(ただし、X=1、2、3、4)を設けた構成である。本構成例において、例えばf1=100kHz(T1=10μs)である場合、遅延部640−Y(ただし、Y=1、2、3)毎の遅延量は、2.5μs(=10μs/22)となる。そのため、遅延部640−Yを一般的なインバータ(遅延量:1ns以下)のみで形成しようとすると、多くの素子が必要となるので、遅延部640−Yの回路規模が大きくなってしまう。 FIG. 23 is a block diagram illustrating a third configuration example of the differential frequency measurement circuit. The differential frequency measurement circuit 600 of this configuration example has a configuration in which four differential signal generation units 610-X (where X = 1, 2, 3, 4) are provided. In this configuration example, for example, when f1 = 100 kHz (T1 = 10 μs), the delay amount for each delay unit 640-Y (Y = 1, 2, 3) is 2.5 μs (= 10 μs / 2 2 ). It becomes. Therefore, if the delay unit 640-Y is formed only by a general inverter (delay amount: 1 ns or less), a large number of elements are required, and the circuit scale of the delay unit 640-Y is increased.

そこで、第3構成例の差分周波数測定回路600は、周波数fs(例えば10MHz)のクロック信号CLKに同期して入力信号IN1を遅延させるDフリップフロップを用いて、遅延部640−Yを形成する構成とされている。このような構成とすることにより、遅延部640−Yの回路規模を不要に増大させずに済む。   Therefore, the differential frequency measurement circuit 600 of the third configuration example has a configuration in which the delay unit 640-Y is formed using a D flip-flop that delays the input signal IN1 in synchronization with the clock signal CLK having the frequency fs (for example, 10 MHz). It is said that. With this configuration, the circuit scale of the delay unit 640-Y can be prevented from being unnecessarily increased.

図24は、差分周波数測定回路の第4構成例を示すブロック図である。本構成例の差分周波数測定回路600は、第3構成例(図23)と同様の構成であり、遅延部640−1をDフリップフロップで形成する一方、遅延部640−2及び640−3をいずれもインバータで形成する点に特徴を有している。なお、遅延部640−2では、入力信号IN1にインバータ遅延を与えることにより遅延入力信号IN1d2が生成されている。また、遅延部640−3では、遅延部640−1で生成される遅延入力信号IN1d1にインバータ遅延を与えることにより遅延入力信号IN1d3が生成されている。このような構成とすることにより、遅延部640−Yの回路規模をさらに縮小することが可能となる。   FIG. 24 is a block diagram illustrating a fourth configuration example of the differential frequency measurement circuit. The differential frequency measurement circuit 600 of this configuration example has the same configuration as that of the third configuration example (FIG. 23). The delay unit 640-1 is formed of a D flip-flop, while the delay units 640-2 and 640-3 are configured. Both have the feature that they are formed by inverters. In the delay unit 640-2, the delay input signal IN1d2 is generated by applying an inverter delay to the input signal IN1. Further, in the delay unit 640-3, the delay input signal IN1d3 is generated by applying an inverter delay to the delay input signal IN1d1 generated by the delay unit 640-1. With this configuration, the circuit scale of the delay unit 640-Y can be further reduced.

図25は、差分周波数測定回路の第5構成例を示すブロック図である。本構成の差分周波数測定回路600は、第1構成例(図18)と同様の構成であり、入力信号IN1ではなく入力信号IN2に遅延を与える構成とされている。このように、複数の差分信号生成部610−Xに対して入力信号IN2を異なる位相で入力する構成とすることにより、第1構成例と同様、出力信号OUTのノイズを低減して、入力信号IN1及びIN2の差分周波数を精度良く測定することが可能となる。   FIG. 25 is a block diagram illustrating a fifth configuration example of the differential frequency measurement circuit. The differential frequency measurement circuit 600 of this configuration has the same configuration as that of the first configuration example (FIG. 18), and is configured to delay the input signal IN2 instead of the input signal IN1. In this way, by adopting a configuration in which the input signal IN2 is input to the plurality of differential signal generation units 610-X with different phases, the noise of the output signal OUT is reduced and the input signal OUT is reduced as in the first configuration example. It becomes possible to accurately measure the difference frequency between IN1 and IN2.

図26は、差分周波数測定回路の第6構成例を示すブロック図である。本構成例の差分周波数測定回路600は、第3構成例(図23)と同様の構成であり、加算部620に代えてセレクタ部650を設けると共に、分周部660を別途追加した構成とされている。   FIG. 26 is a block diagram illustrating a sixth configuration example of the differential frequency measurement circuit. The differential frequency measurement circuit 600 of this configuration example has the same configuration as that of the third configuration example (FIG. 23), and has a configuration in which a selector unit 650 is provided instead of the addition unit 620 and a frequency division unit 660 is added separately. ing.

セレクタ部650は、2ビットの選択信号MUX2に応じて4系統の差分信号B1〜B4を巡回的に選択出力する。例えば、セレクタ部650は、選択信号MUX2が「11」であるときに差分信号B1を選択出力し、選択信号MUX2が「10」であるときに差分信号B2を選択出力し、選択信号MUX2が「01」であるときに差分信号B3を選択出力し、選択信号MUX2が「00」であるときに差分信号B4を選択出力する。   The selector unit 650 cyclically selects and outputs the four systems of difference signals B1 to B4 according to the 2-bit selection signal MUX2. For example, the selector unit 650 selects and outputs the difference signal B1 when the selection signal MUX2 is “11”, selects and outputs the difference signal B2 when the selection signal MUX2 is “10”, and the selection signal MUX2 is “ The differential signal B3 is selected and output when it is "01", and the differential signal B4 is selectively output when the selection signal MUX2 is "00".

分周部660は、10MHzのクロック信号CLKから10kHzの上位ビット信号BITaと20kHzの下位ビット信号BITbを生成し、これらを2ビットの選択信号MUX2としてセレクタ部650に出力する一方、上位ビット信号BITaのみをゲート信号Sgとして差分信号生成部610−Xに出力する。   The frequency dividing unit 660 generates a 10 kHz upper bit signal BITa and a 20 kHz lower bit signal BITb from the 10 MHz clock signal CLK, and outputs them to the selector unit 650 as a 2-bit selection signal MUX2, while the upper bit signal BITa. Is output as a gate signal Sg to the differential signal generation unit 610-X.

このような構成とすることにより、ローパスフィルタ部630から出力される選択出力信号Cのサンプル数を増やすことができるので、入力信号IN1及びIN2の差分周波数を精度良く測定することが可能となる。   With this configuration, the number of samples of the selection output signal C output from the low-pass filter unit 630 can be increased, so that the differential frequency between the input signals IN1 and IN2 can be measured with high accuracy.

また、加算部620またはセレクタ部650と、ローパスフィルタ部630との間に、先出のデータ分散部210(図6)を挿入することより、さらなるノイズ低減を図ることも可能である。   Further, noise can be further reduced by inserting the above-described data distribution unit 210 (FIG. 6) between the addition unit 620 or the selector unit 650 and the low-pass filter unit 630.

なお、上記で説明した差分周波数測定回路600は、先出の差分周波数測定回路300と同じく、様々な電子機器に組み込むことが可能である。   Note that the differential frequency measurement circuit 600 described above can be incorporated into various electronic devices in the same manner as the differential frequency measurement circuit 300 described above.

<周波数測定回路への適用例>
図27は、周波数測定回路への適用例を示すブロック図である。本構成例の周波数測定回路700は、第1構成例(図18)の差分周波数測定回路600をシングル入力形式に変更した構成であり、差分信号生成部610−Xに代えてカウンタ部710−X(ただしX=1、2、…、x)が設けられている以外、基本的な構成は第1構成例と同様である。
<Application example to frequency measurement circuit>
FIG. 27 is a block diagram showing an application example to the frequency measurement circuit. The frequency measurement circuit 700 of this configuration example has a configuration in which the differential frequency measurement circuit 600 of the first configuration example (FIG. 18) is changed to a single input format, and instead of the difference signal generation unit 610-X, a counter unit 710-X. The basic configuration is the same as that of the first configuration example except that (where X = 1, 2,..., X) is provided.

カウンタ部710−Xは、ゲート信号Sgによって定まるゲート期間毎に入力信号IN(または遅延入力信号INdY)のパルス数をカウントしてカウント値BXを出力する。   The counter unit 710-X counts the number of pulses of the input signal IN (or delayed input signal INdY) for each gate period determined by the gate signal Sg, and outputs a count value BX.

このように、複数のカウンタ部710−Xに対して入力信号INを異なる位相で各々入力することにより、入力信号INの周波数を精度良く測定することが可能となる。   In this way, by inputting the input signal IN to the counter units 710-X with different phases, the frequency of the input signal IN can be measured with high accuracy.

<その他の変形例>
なお、本明細書中に開示されている種々の技術的特徴は、上記実施形態のほか、その技術的創作の主旨を逸脱しない範囲で種々の変更を加えることが可能である。すなわち、上記実施形態は、全ての点で例示であって制限的なものではないと考えられるべきであり、本発明の技術的範囲は、上記実施形態の説明ではなく、特許請求の範囲によって示されるものであり、特許請求の範囲と均等の意味及び範囲内に属する全ての変更が含まれると理解されるべきである。
<Other variations>
The various technical features disclosed in the present specification can be variously modified within the scope of the technical creation in addition to the above-described embodiment. That is, the above-described embodiment is to be considered in all respects as illustrative and not restrictive, and the technical scope of the present invention is indicated not by the description of the above-described embodiment but by the scope of the claims. It should be understood that all modifications that fall within the meaning and range equivalent to the terms of the claims are included.

本明細書中に開示されている種々の発明のうち、第1の発明に係るデータ分散回路は、例えば、センサの信号処理部、オーディオ機器、及び、画像処理装置(デジタルスチルカメラ、デジタルビデオカメラ、DVD再生装置)などに利用することが可能である。   Among various inventions disclosed in this specification, a data distribution circuit according to a first invention includes, for example, a signal processing unit of a sensor, an audio device, and an image processing device (digital still camera, digital video camera). , DVD playback device) and the like.

また、本明細書中に開示されている種々の発明のうち、第2の発明に係る周波数測定回路は、例えば、リモコンのスイッチ判定回路、PLL回路、及び高周波回路(無線通信回路)などに利用することが可能である。   Of the various inventions disclosed in this specification, the frequency measurement circuit according to the second invention is used for, for example, a switch determination circuit of a remote control, a PLL circuit, and a high frequency circuit (wireless communication circuit). Is possible.

100 デジタルフィルタ回路
101 乗算部
102 加算部
103 遅延部
104 乗算部
200 データ処理回路
210 データ分散部
211 連続データ保持部
211a 入力遅延レジスタ
211b 一致判定部
211c 連続データレジスタ
212 微小変化検出部
213 連続回数検出部
214 制御部
215 セレクタ部
216 ORゲート部
217 乗算部
218 データ分散処理部
218a〜218e レジスタ
219a〜219c 加算部
220 デジタルフィルタ部
300 差分周波数測定回路
310、320 カウンタ部(短ゲートタイムカウンタ部)
330 減算部
340 データ分散部
350 ローパスフィルタ部
400 電子機器(リモコン)
410、420 MEMSモーションセンサ
430 差分周波数測定IC
440 マイコン
500 電子機器(センシング機器、オーディオ機器など)
510 センサ(光、温度、モーションなど)
520 ADコンバータ
530 データ分散回路
540 デジタルフィルタ回路
550 マイコン
560 マイク
570 録音装置
600 差分周波数測定回路
610 差分信号生成部
611 Dフリップフロップ
611a、611b Dフリップフロップ
611c インバータ
612 カウンタ部
620 加算部
630 ローパスフィルタ部
640 遅延部(Dフリップフロップ、インバータなど)
650 セレクタ部
660 分周部
700 周波数測定回路
710 カウンタ部
720 加算部
730 ローパスフィルタ部
740 遅延部
DESCRIPTION OF SYMBOLS 100 Digital filter circuit 101 Multiplication part 102 Addition part 103 Delay part 104 Multiplication part 200 Data processing circuit 210 Data distribution part 211 Continuous data holding part 211a Input delay register 211b Match determination part 211c Continuous data register 212 Minute change detection part 213 Continuous frequency detection Unit 214 control unit 215 selector unit 216 OR gate unit 217 multiplication unit 218 data distribution processing unit 218a to 218e register 219a to 219c addition unit 220 digital filter unit 300 differential frequency measurement circuit 310, 320 counter unit (short gate time counter unit)
330 Subtraction unit 340 Data distribution unit 350 Low-pass filter unit 400 Electronic device (remote control)
410, 420 MEMS motion sensor 430 Differential frequency measurement IC
440 Microcomputer 500 Electronic equipment (sensing equipment, audio equipment, etc.)
510 sensors (light, temperature, motion, etc.)
520 AD converter 530 Data distribution circuit 540 Digital filter circuit 550 Microcomputer 560 Microphone 570 Recording device 600 Differential frequency measurement circuit 610 Differential signal generation unit 611 D flip-flop 611a, 611b D flip-flop 611c Inverter 612 Counter unit 620 Addition unit 630 Low-pass filter unit 640 delay unit (D flip-flop, inverter, etc.)
650 Selector unit 660 Divider unit 700 Frequency measurement circuit 710 Counter unit 720 Adder unit 730 Low-pass filter unit 740 Delay unit

Claims (25)

デジタルの入力データが同一の連続データから微小値だけ変化したときに、その変化量を複数回に分散させて前記連続データに順次加えながら後段に出力することを特徴とするデータ分散回路。   A data distribution circuit characterized in that when digital input data changes by a minute value from the same continuous data, the amount of change is distributed to a plurality of times and sequentially added to the continuous data and output to the subsequent stage. 前記連続データを保持する連続データ保持部と、
前記入力データの微小変化を検出する微小変化検出部と、
前記連続データの連続回数を検出する連続回数検出部と、
前記微小変化検出部及び前記連続回数検出部の各検出結果に基づいてデータ分散処理を制御する制御部と、
前記制御部の指示に応じて前記入力データと前記連続データの一方を選択出力するセレクタ部と、
前記セレクタ部の出力をゲイン倍する乗算部と、
前記制御部の指示に応じて分散値を出力するデータ分散処理部と、
前記乗算部の出力に前記分散値を加えて後段に出力する加算部と、
を有することを特徴とする請求項1に記載のデータ分散回路。
A continuous data holding unit for holding the continuous data;
A minute change detection unit for detecting minute changes in the input data;
A continuous number detection unit for detecting the continuous number of the continuous data;
A control unit for controlling data distribution processing based on each detection result of the minute change detection unit and the continuous number of times detection unit;
A selector unit that selectively outputs one of the input data and the continuous data in accordance with an instruction from the control unit;
A multiplier for multiplying the output of the selector by a gain;
A data distribution processing unit that outputs a distributed value in accordance with an instruction from the control unit;
An adder that adds the variance to the output of the multiplier and outputs it to the subsequent stage;
The data distribution circuit according to claim 1, comprising:
前記乗算部は、前記セレクタ部の出力を2m倍(ただしmは自然数)することを特徴とする請求項2に記載のデータ分散回路。 3. The data distribution circuit according to claim 2, wherein the multiplication unit multiplies the output of the selector unit by 2 m (where m is a natural number). 前記制御部は、前記連続データの連続回数が所定値以上であり、前記入力データの微小変化が検出されており、前周期の前記入力データと保持された前記連続データが一致しており、かつ、前記データ分散処理部が停止状態であるときに、前記データ分散処理部を動作状態とすることを特徴とする請求項3に記載のデータ分散回路。   The control unit has a continuous count of the continuous data equal to or greater than a predetermined value, a minute change in the input data is detected, the input data in the previous period and the held continuous data match, and 4. The data distribution circuit according to claim 3, wherein when the data distribution processing unit is in a stopped state, the data distribution processing unit is set in an operating state. 前記データ分散処理部は、前記連続データの連続回数に応じて、前記分散値の大きさと分散回数を決定することを特徴とする請求項3または請求項4に記載のデータ分散回路。   5. The data distribution circuit according to claim 3, wherein the data distribution processing unit determines the size of the distribution value and the number of distributions according to the number of continuous times of the continuous data. 前記データ分散処理部は、前記連続データの連続回数に応じて、前記分散値の分散間隔を決定することを特徴とする請求項5に記載のデータ分散回路。   The data distribution circuit according to claim 5, wherein the data distribution processing unit determines a distribution interval of the distribution values according to the number of continuous times of the continuous data. 前記データ分散処理部は、複数設けられており、一のデータ分散処理部が動作状態であるときに前記入力データの微小変化が検出された場合には、別のデータ分散処理部が並列的に動作状態とされることを特徴とすることを特徴とする請求項3〜請求項6のいずれかに記載のデータ分散回路。   A plurality of data distribution processing units are provided, and when a small change in the input data is detected when one data distribution processing unit is in an operating state, another data distribution processing unit is connected in parallel. The data distribution circuit according to claim 3, wherein the data distribution circuit is in an operating state. 前記微小値は、±1LSBであることを特徴とする請求項1〜請求項7のいずれかに記載のデータ分散回路。   The data distribution circuit according to claim 1, wherein the minute value is ± 1 LSB. 請求項1〜請求項8のいずれかに記載のデータ分散回路と、
前記データ分散回路の後段に設けられたデジタルフィルタ回路と、
を有することを特徴とするデータ処理回路。
A data distribution circuit according to any one of claims 1 to 8,
A digital filter circuit provided at a subsequent stage of the data distribution circuit;
A data processing circuit comprising:
入力信号の周波数に応じた入力データを生成する入力データ生成回路と、
請求項1〜請求項8のいずれかに記載のデータ分散回路と、
前記データ分散回路の後段に設けられたデジタルフィルタ回路と、
を有することを特徴とする周波数測定回路。
An input data generation circuit for generating input data according to the frequency of the input signal;
A data distribution circuit according to any one of claims 1 to 8,
A digital filter circuit provided at a subsequent stage of the data distribution circuit;
A frequency measurement circuit comprising:
前記入力データ生成回路は、第1入力信号と第2入力信号の差分周波数に応じた入力データを生成することを特徴とする請求項10に記載の周波数測定回路。   The frequency measurement circuit according to claim 10, wherein the input data generation circuit generates input data corresponding to a difference frequency between the first input signal and the second input signal. 請求項11に記載の周波数測定回路と、
前記周波数測定回路の測定結果に応じた処理を行う処理装置と、
を有することを特徴とする電子機器。
A frequency measurement circuit according to claim 11;
A processing device for performing processing according to the measurement result of the frequency measurement circuit;
An electronic device comprising:
センサ信号を生成するセンサと、
前記センサ信号をAD変換して入力データを生成するADコンバータと、
請求項1〜請求項8のいずれかに記載のデータ分散回路と、
前記データ分散回路の後段に設けられたデジタルフィルタ回路と、
前記デジタルフィルタ回路の出力データに応じた処理を行う処理装置と、
を有することを特徴とする電子機器。
A sensor that generates a sensor signal;
An AD converter that AD converts the sensor signal to generate input data;
A data distribution circuit according to any one of claims 1 to 8,
A digital filter circuit provided at a subsequent stage of the data distribution circuit;
A processing device for performing processing according to output data of the digital filter circuit;
An electronic device comprising:
前記センサはマイクであり、前記処理装置は録音装置であることを特徴とする請求項13に記載の電子機器。   The electronic apparatus according to claim 13, wherein the sensor is a microphone, and the processing device is a recording device. 複数の差分信号生成部と、
第1入力信号と第2入力信号の一方が前記複数の差分信号生成部に対して各々異なる位相で入力されるように遅延を与える遅延部と、
を有し、
複数の差分信号から前記第1入力信号と前記第2入力信号の差分周波数に応じた出力信号を生成することを特徴とする周波数測定回路。
A plurality of differential signal generators;
A delay unit that gives a delay so that one of the first input signal and the second input signal is input to each of the plurality of differential signal generation units with a different phase;
Have
An output signal corresponding to a difference frequency between the first input signal and the second input signal is generated from a plurality of difference signals.
前記差分信号生成部は、2m個(ただしmは自然数)設けられていることを特徴とする請求項15に記載の周波数測定回路。 The frequency measurement circuit according to claim 15, wherein 2 m differential signal generation units (where m is a natural number) are provided. 前記複数の差分信号の総和を取る加算部と、
前記加算部の出力にフィルタ処理を施して前記出力信号を生成するフィルタ部と、
を有することを特徴とする請求項15または請求項16に記載の周波数測定回路。
An adder for summing the plurality of difference signals;
A filter unit that performs filtering on the output of the adder unit to generate the output signal;
The frequency measurement circuit according to claim 15 or 16, characterized by comprising:
前記複数の差分信号を巡回的に選択出力するセレクタ部と、
前記セレクタ部の出力にフィルタ処理を施して前記出力信号を生成するフィルタ部と、
を有することを特徴とする請求項15または請求項16に記載の周波数測定回路。
A selector unit that cyclically selects and outputs the plurality of difference signals;
A filter unit that filters the output of the selector unit to generate the output signal;
The frequency measurement circuit according to claim 15 or 16, characterized by comprising:
前記複数の差分信号生成部は、それぞれ、
前記第1入力信号がクロック信号として入力されて前記第2入力信号がデータ信号として入力されるDフリップフロップと、
ゲート信号によって定まるゲート期間毎に前記Dフリップフロップの出力パルス数をカウントしてカウント値を出力するカウンタ部と、
を含むことを特徴とする請求項15〜請求項18のいずれかに記載の周波数測定回路。
Each of the plurality of differential signal generators is
A D flip-flop in which the first input signal is input as a clock signal and the second input signal is input as a data signal;
A counter unit that counts the number of output pulses of the D flip-flop for each gate period determined by a gate signal and outputs a count value;
The frequency measurement circuit according to claim 15, further comprising:
前記遅延部は、バッファ、インバータ、及び、Dフリップフロップの少なくとも一つを含むことを特徴とする請求項15〜請求項19のいずれかに記載の周波数測定回路。   The frequency measurement circuit according to claim 15, wherein the delay unit includes at least one of a buffer, an inverter, and a D flip-flop. ゲート信号によって定まるゲート期間毎に入力信号のパルス数をカウントしてカウント値を出力する複数のカウンタ部と、
前記入力信号が前記複数のカウンタ部に対して各々異なる位相で入力されるように遅延を与える遅延部と、
を有し、
複数のカウント値から前記入力信号の周波数に応じた出力信号を生成することを特徴とする周波数測定回路。
A plurality of counter units for counting the number of pulses of the input signal for each gate period determined by the gate signal and outputting a count value;
A delay unit that gives a delay so that the input signal is input to each of the plurality of counter units at different phases;
Have
An output signal corresponding to the frequency of the input signal is generated from a plurality of count values.
前記カウンタ部は、2m個(ただしmは自然数)設けられていることを特徴とする請求項21に記載の周波数測定回路。 The frequency measurement circuit according to claim 21, wherein the counter unit is provided with 2 m pieces (where m is a natural number). 前記複数のカウント値の総和を取る加算部と、
前記加算部の出力にフィルタ処理を施して前記出力信号を生成するフィルタ部と、
を有することを特徴とする請求項21または請求項22に記載の周波数測定回路。
An adder for summing the plurality of count values;
A filter unit that performs filtering on the output of the adder unit to generate the output signal;
The frequency measurement circuit according to claim 21, wherein the frequency measurement circuit has.
前記複数のカウント値を巡回的に選択出力するセレクタ部と、
前記セレクタ部の出力にフィルタ処理を施して前記出力信号を生成するフィルタ部と、
を有することを特徴とする請求項21または請求項22に記載の周波数測定回路。
A selector unit that cyclically selects and outputs the plurality of count values;
A filter unit that filters the output of the selector unit to generate the output signal;
The frequency measurement circuit according to claim 21, wherein the frequency measurement circuit has.
請求項15〜請求項24のいずれかに記載の周波数測定回路と、
前記周波数測定回路の測定結果に応じた処理を行う処理装置と、
を有することを特徴とする電子機器。
A frequency measurement circuit according to any one of claims 15 to 24;
A processing device for performing processing according to the measurement result of the frequency measurement circuit;
An electronic device comprising:
JP2012196882A 2012-09-07 2012-09-07 Data distribution circuit, frequency measurement circuit Expired - Fee Related JP6216499B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012196882A JP6216499B2 (en) 2012-09-07 2012-09-07 Data distribution circuit, frequency measurement circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012196882A JP6216499B2 (en) 2012-09-07 2012-09-07 Data distribution circuit, frequency measurement circuit

Publications (2)

Publication Number Publication Date
JP2014053761A true JP2014053761A (en) 2014-03-20
JP6216499B2 JP6216499B2 (en) 2017-10-18

Family

ID=50611836

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012196882A Expired - Fee Related JP6216499B2 (en) 2012-09-07 2012-09-07 Data distribution circuit, frequency measurement circuit

Country Status (1)

Country Link
JP (1) JP6216499B2 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH066216A (en) * 1991-08-30 1994-01-14 Nippon Columbia Co Ltd Bit length extending device
JPH066217A (en) * 1991-08-30 1994-01-14 Nippon Columbia Co Ltd Bit length expanding device
JPH10228732A (en) * 1997-02-07 1998-08-25 Nippon Columbia Co Ltd Bit expanding method and bit expanding device
US20080310568A1 (en) * 2007-06-15 2008-12-18 Matsushita Electric Industrial Co., Ltd. Digital Sampling Apparatuses and Methods
JP2011089896A (en) * 2009-10-22 2011-05-06 Seiko Epson Corp Frequency measuring apparatus, frequency measuring method and electric device provided with the frequency measuring apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH066216A (en) * 1991-08-30 1994-01-14 Nippon Columbia Co Ltd Bit length extending device
JPH066217A (en) * 1991-08-30 1994-01-14 Nippon Columbia Co Ltd Bit length expanding device
JPH10228732A (en) * 1997-02-07 1998-08-25 Nippon Columbia Co Ltd Bit expanding method and bit expanding device
US20080310568A1 (en) * 2007-06-15 2008-12-18 Matsushita Electric Industrial Co., Ltd. Digital Sampling Apparatuses and Methods
JP2011089896A (en) * 2009-10-22 2011-05-06 Seiko Epson Corp Frequency measuring apparatus, frequency measuring method and electric device provided with the frequency measuring apparatus

Also Published As

Publication number Publication date
JP6216499B2 (en) 2017-10-18

Similar Documents

Publication Publication Date Title
CN108206691B (en) Delay circuit, count value generation circuit, and physical quantity sensor
USRE43761E1 (en) Jitter measuring method and device
JP2006329987A (en) Apparatus for measuring jitter and method of measuring jitter
JP2010166392A (en) Digital phase locked-loop circuit
JP5218824B2 (en) Frequency measuring device
JP2007047160A (en) Adjustable time accumulator
EP1693966B1 (en) Digital phase locked loop apparatus
US9130578B2 (en) PLL circuit
JP2014052282A (en) Frequency measurement circuit
JP6182297B2 (en) Frequency measurement circuit
JP6216499B2 (en) Data distribution circuit, frequency measurement circuit
US11496049B2 (en) Instantaneous power estimation in a continuous time digital signal processing system
US6950375B2 (en) Multi-phase clock time stamping
JP2010273185A (en) Digital phase locked loop circuit
JP3665512B2 (en) Binary signal comparison device and PLL circuit using the same
US20090135975A1 (en) Apparatus and method for recovering data
JP7332557B2 (en) Clip detection circuit
JP6787105B2 (en) Digital filter, reciprocal count value generation circuit and physical quantity sensor
JP6812780B2 (en) Reciprocal count value generation circuit and physical quantity sensor
JP6809201B2 (en) Sampling rate conversion circuit, reciprocal count value generation circuit and physical quantity sensor
JP6972604B2 (en) Counter circuit, measuring device and physical quantity sensor
JP7040572B2 (en) Delay circuit, count value generation circuit and physical quantity sensor
JP2732419B2 (en) Aliasing detection method and apparatus
JP6862901B2 (en) Frequency ratio measuring device and physical quantity sensor
JPS5948658A (en) Aliasing error detection circuit

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150811

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20161108

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20161228

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20161228

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170530

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170726

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170925

R150 Certificate of patent or registration of utility model

Ref document number: 6216499

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees