WO2022091329A1 - Frequency detector - Google Patents

Frequency detector Download PDF

Info

Publication number
WO2022091329A1
WO2022091329A1 PCT/JP2020/040780 JP2020040780W WO2022091329A1 WO 2022091329 A1 WO2022091329 A1 WO 2022091329A1 JP 2020040780 W JP2020040780 W JP 2020040780W WO 2022091329 A1 WO2022091329 A1 WO 2022091329A1
Authority
WO
WIPO (PCT)
Prior art keywords
frequency
index
frequency detector
amplitude
detector
Prior art date
Application number
PCT/JP2020/040780
Other languages
French (fr)
Japanese (ja)
Inventor
勝己 高橋
將 白石
Original Assignee
三菱電機株式会社
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 三菱電機株式会社 filed Critical 三菱電機株式会社
Priority to PCT/JP2020/040780 priority Critical patent/WO2022091329A1/en
Publication of WO2022091329A1 publication Critical patent/WO2022091329A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R23/00Arrangements for measuring frequencies; Arrangements for analysing frequency spectra
    • G01R23/16Spectrum analysis; Fourier analysis

Definitions

  • the present disclosure technique relates to a device that detects a frequency in real time using a fast Fourier transform (hereinafter referred to as "FFT").
  • FFT fast Fourier transform
  • Patent Document 1 discloses applications such as Doppler radar and Doppler sonar, and discloses a technique for obtaining a Doppler frequency by FFTing a reflected echo signal.
  • Patent Document 1 provides a technique for adding zero data to a digital data string so as to reach the reference sample number, with the sample number required for the fast Fourier transform as the reference sample number in order to satisfy the required frequency resolution. It is disclosed.
  • Patent Document 1 has a problem that the processing speed is halved and the circuit scale is doubled when the double resolution is obtained.
  • An object of the present disclosure technique is to provide a frequency detector that increases the resolution while maintaining the processing speed and suppressing the increase in the circuit scale.
  • the frequency detector according to the present disclosure technique detects an FFT device that calculates N Fourier transform results from N sampling data, and an index of the Fourier transform results in the order of frequencies having the maximum amplitude.
  • a frequency detector comprising a detector, wherein the frequency detector further comprises an adjacency calculator having a phase multiplier and an accumulator, wherein the adjacency calculator has a frequency corresponding to the index and the index. Calculate the amplitude at a frequency in the middle of the frequency corresponding to the index before or after.
  • the frequency detector according to the present disclosure technique has the above configuration, it is possible to obtain the result of the Fourier transform with double resolution in the vicinity of the peak frequency without performing the 2N Fourier transform from the N sampling data. can. Therefore, it is possible to realize a frequency detector that increases the resolution while maintaining the processing speed and suppressing the increase in the circuit scale.
  • FIG. 1 is a block diagram showing a configuration of a frequency detector according to the first embodiment.
  • FIG. 2 is a block diagram showing a configuration of an adjacent calculator in the frequency detector according to the first embodiment.
  • FIG. 3 is a block diagram showing a configuration of an adjacent calculator in the frequency detector according to the second embodiment.
  • FIG. 4 is a block diagram showing a configuration of the frequency detector according to the fifth embodiment.
  • FIG. 5 is a block diagram showing a configuration of the frequency detector according to the sixth embodiment.
  • FIG. 6 is a reference diagram showing the processing timing of the frequency detector according to the sixth embodiment.
  • FIG. 7 is a block diagram showing a configuration of the frequency detector according to the seventh embodiment.
  • FIG. 1 is a block diagram showing a configuration of a frequency detector 1 according to the first embodiment.
  • the frequency detector 1 includes an input line 2 that receives input data, an output line 3 that sends out detection results, an FFT device 4 that performs FFT, a detector 5 that detects signals, and First-In First-that temporarily holds data. It is composed of a FIFO type memory 6 which is an Out type memory, an adjacency calculator 7 for calculating an adjacent frequency value, and a selector 8 for selecting a detection result.
  • the FFT device 4 may be one that carries out a discrete Fourier transform.
  • the operation of the frequency detector 1 will be clarified by the following specific example. Specifically, the case where the number of sample data is N and the resolution is doubled is illustrated.
  • the N sample data are sent to the FFT device 4 and the FIFO type memory 6 via the input line 2.
  • the FFT device 4 Fourier transforms the sent N sample data, and also outputs the N Fourier transform results to the detector 5.
  • N sampling data are ⁇ x 0 , x 1 , ..., X N-1 ⁇
  • the FFT device 4 has N Fourier transform calculation results ⁇ F (f 0 ), F (f 1 ), ... F ( f N-1 ) ⁇ is calculated.
  • f 0 , f 1 , ... f N-1 are frequencies arranged in ascending order
  • the Fourier transform calculation result F (.) Is a complex number.
  • the FIFO type memory 6 stores N sent sample data.
  • the detector 5 first calculates the absolute value of the complex number which is the result of the Fourier transform calculation.
  • the absolute value of a complex number is the distance from the origin when the complex number is plotted on the complex plane.
  • the absolute value of the Fourier transform calculation result F (f 1 ) is represented by using the symbol
  • is called "amplitude" at the frequency f 1 .
  • the detector 5 detects an index of the peak frequency having the maximum amplitude and the frequency having the maximum amplitude among the frequencies having the maximum amplitude (hereinafter referred to as “peak frequency”).
  • the index means the order in which the frequencies of the FFT results are arranged in ascending order. More specifically, the index is the symbols f 0 , f 1 , ... f N-1 , and the subscripts 0, 1, ... N-1 representing the frequency.
  • the detector 5 dares to double the index and output it to the selector 8. That is, the detector 5 assigns the FFT results to 0, 1, ... In ascending order of frequency, and when the peak frequency at which the amplitude is maximum is fm, the detector 5 doubles m to 2 m as a new index. Is output to the selector 8.
  • the detector 5 outputs an adjacent index adjacent to the doubled index as described above to the adjacent calculator 7 and the selector 8. Adjacent indicators will be clarified in the details below.
  • the selector 8 selects the data having the larger amplitude from the data consisting of the peak frequency transmitted from the detector 5 and the adjacent calculator 7 and the amplitude at the peak frequency and the corresponding index, and selects the corresponding peak frequency. Output to output line 3.
  • the frequency detector 1 can output the peak frequency having the maximum amplitude.
  • Adjacent indicators are clarified by the following detailed examples.
  • the peak frequency at which the amplitude is maximum is fm as a result of the Fourier transform calculation.
  • the detector 5 considers that the index 2m indicates that the candidate for the peak frequency having the maximum amplitude is 0, 1 out of 2N, and is at or near the 2mth. That is, 2m-1 and 2m + 1 out of 2N can be considered as candidates for the adjacent index. Therefore, the detector 5 counts as 0, 1 among the N calculation results, and is the amplitude of the m-1st calculation result
  • the selector 8 defines 2m-1 if the former is large and 2m + 1 if the latter is large as an adjacent index in 2N.
  • the adjacency index sent by the detector 5 to the adjacency calculator 7 is 2 m + 1 in this specific example.
  • FIG. 2 is a block diagram showing a configuration of an adjacent calculator 7 in the frequency detector 1 according to the first embodiment.
  • the adjacency calculator 7 includes a phase multiplier 9 that multiplies the input by the phase, and a calculator 10 that accumulates the inputs.
  • the adjacency calculator 7 will be clarified by the following specific example.
  • the adjacency index is set to 2 m + 1 as described above.
  • the phase multiplier 9 receives the adjacency index 2m + 1 from the detector 5 and calculates the phase increment ⁇ [rad].
  • the phase increment of the basic harmonic of the Fourier transform is 2 ⁇ / N
  • the phase increment of the m harmonic is 2m ⁇ / N
  • the phase increment of the m + 1 harmonic is 2 (m + 1) ⁇ . / N. That is, it can be seen that the phase increment ⁇ of the phase multiplier 9 represented by the equation (1) is an intermediate value between the m-fold wave and the m + 1-fold wave in the FFT device 4.
  • the accumulator 10 sequentially receives the results from the phase multiplier 9 and outputs the absolute values of N accumulation results.
  • the absolute value here is the distance from the origin when the complex number is plotted on the complex plane.
  • the meaning of the adjacent calculator 7 including the phase multiplier 9 and the accumulator 10 becomes clear when compared with the mathematical expression of the discrete Fourier transform performed by the FFT device 4.
  • the frequency of the basic harmonic of the series that is the result of the Fourier transform is uniquely determined from the sampling period T and the number of sample points N. That is, the phase of the fundamental harmonic is 0 to 2 ⁇ in the integration interval from the 0th sampling to just before the Nth sampling. That is, the integration interval is exactly the length of one cycle of the basic harmonics.
  • the multiple waves have a phase of 0 to 2 ⁇ (including an integral multiple of 2 ⁇ ) in the integration interval.
  • the intent of the present disclosure technique is the intermediate frequency ⁇ (f 0 + f 1 ) / of the N frequencies ⁇ f 0 , f 1 , ... f N-1 ⁇ calculated by the FFT device 4. 2, (f 1 + f 2 ) / 2, ... (F N-1 + f N ) / 2 ⁇ is also to be calculated.
  • the selector 8 can also obtain the corresponding frequency from the information of the index.
  • the index and frequency are one-to-one interchangeable values. Therefore, the selector 8 may output the index as it is without converting it into a frequency.
  • the frequency detector according to the first embodiment doubles the frequency resolution without reducing the processing speed and doubling the circuit scale as compared with the conventional frequency detector. Can be.
  • the processing speed and circuit scale in the effect of the invention need a little explanation, so they will be described here.
  • the processing speed here refers to the throughput.
  • the circuit scale of an FFT device capable of real-time processing doubles as the number of points doubles. Therefore, the circuit scale of the adjacent calculator 7 is sufficiently smaller than that of the FFT device 4, except in a special case where the number of sample points is small. That is, the frequency detector in the present disclosed technique can have a smaller circuit scale than the configuration of the FFT device that doubles the points without slowing down the processing speed.
  • the resolution of the frequency detector requires a little explanation, so it will be described here.
  • the resolution is a value obtained by "input sampling frequency / FFT score".
  • Patent Document 1 which is an example of the prior art, instead of the configuration of two FFT devices that sample at alternating timings, the same number of 0s are added to the input data to double the number of FFT points and the resolution is 2. I'm showing it twice.
  • Embodiment 2 As the frequency detector according to the first embodiment, the configuration in which the adjacent calculator 7 includes one phase multiplier 9 and one accumulator 10 is described. However, in the present disclosed technique, one phase multiplier 9 and one accumulator 10 only show the minimum required number, and are not limited to this.
  • the frequency detector according to the second embodiment includes a plurality of phase multipliers 9 (9a, 9b, 9c) and a plurality of accumulators 10 (10a, 10b, 10c).
  • FIG. 3 is a block diagram showing the configuration of the adjacent calculator 7 in the frequency detector according to the second embodiment.
  • the adjacent calculator 7 of the second embodiment includes a plurality of phase multipliers 9 (9a, 9b, 9c) for multiplying an input by a phase, and a plurality of accumulators 10 (10a, 10b, 10c) for accumulating inputs. To prepare for.
  • the operation of the adjacent calculator 7 of the second embodiment will be clarified by the following specific example.
  • the technique according to the second embodiment considers quadrupling the resolution.
  • the configuration of the frequency detector excluding the adjacent calculator is the same as that of the first embodiment.
  • the operation of the FFT device 4 and the FIFO type memory 6 is the same as that of the first embodiment.
  • the operation of the frequency detector 1 according to the second embodiment will be clarified by the following specific example. Specifically, the case where the number of sample data is N and the resolution is quadrupled is illustrated.
  • the N sample data are sent to the FFT device 4 and the FIFO type memory 6 via the input line 2.
  • the FFT device 4 Fourier transforms the sent N sample data, and also outputs the N Fourier transform results to the detector 5.
  • the FIFO type memory 6 stores N sent sample data.
  • the detector 5 first converts the Fourier transform result into an absolute value.
  • the detector 5 detects the peak frequency having the maximum amplitude and its index.
  • the detector 5 intentionally quadruples the index and outputs it to the selector 8. That is, the detector 5 assigns the FFT results to 1, 2, ... In ascending order of frequency, and when the peak frequency at which the amplitude is maximum is the mth, the detector 8 is set to the selector 8 with 4 m, which is quadrupled, as an index.
  • Output the case where
  • the detector 5 outputs an adjacent index adjacent to the index quadrupled as described above to the adjacent calculator 7 and the selector 8. Adjacent indicators will be clarified in the details below.
  • the selector 8 selects the data having a large amplitude from the data consisting of the peak frequency transmitted from the detector 5 and the adjacent calculator 7 and the amplitude at the peak frequency and the corresponding index, and selects the corresponding peak frequency. Output to output line 3.
  • the frequency detector 1 can output the peak frequency having the maximum amplitude.
  • Adjacent indicators are clarified by the following detailed concrete examples. As a result of performing the Fourier transform in the FFT device 4, it is assumed that the peak frequency at which the amplitude is maximum is fm. In this case, the detector 5 considers that the amplitude becomes maximum at or near the 4mth index out of 4N. Candidates for adjacent indicators are 4m-1 and 4m + 1 out of 4N. Therefore, among the N calculation results, the m-1st amplitude and the m + 1st amplitude are compared, and if the former amplitude is large, 4m-1 is used, and if the latter amplitude is large, 4m + 1 is used. Is defined as. The adjacency index sent by the detector 5 to the adjacency calculator 7 is 4 m + 1 in this specific example.
  • the operation of the adjacency calculator 7 will be clarified by the following specific example.
  • the adjacent index is 4 m + 1.
  • the phase multiplier 9 (9a, 9b, 9c) receives the adjacency index 4m + 1 from the detector 5 and calculates the phase increment ⁇ [rad], respectively.
  • Each phase increment ⁇ is calculated by the following formula.
  • the phase increment ⁇ of the phase multiplier 9a can be obtained by the following mathematical formula.
  • (4m + 1) ⁇ ⁇ / 2N ⁇ ⁇ ⁇ (5)
  • the phase increment ⁇ of the phase multiplier 9b can be obtained by the following mathematical formula.
  • the phase multiplier 9 (9a, 9b, 9c) multiplies the input by the phase and outputs the multiplication result to the accumulator 10 (10a, 10b, 10c), respectively. At this time, the initial value of the phase is set to 0, and the phase increment ⁇ is added to the phase.
  • the accumulator 10 (10a, 10b, 10c) sequentially receives the multiplication results transmitted from the phase multipliers 9 (9a, 9b, 9c), calculates N accumulations, and is a complex number that is the result of the accumulation.
  • the absolute value of, that is, the amplitude is output to the selector 8.
  • the selector 8 can also obtain the corresponding frequency from the information of the index.
  • the corresponding frequency is calculated from the following formula.
  • Frequency Input sampling frequency x (Index + 1) ⁇ (4N) ⁇ ⁇ ⁇ (8)
  • the selector 8 receives the indexes of 4m, 4m + 1, 4m + 2, and 4m + 3, and converts the one having the largest amplitude among the four into a frequency and outputs it. ..
  • the index and frequency are one-to-one interchangeable values. Therefore, the selector 8 may output the index as it is without converting it into a frequency.
  • the frequency detector according to the second embodiment has a frequency resolution that does not reduce the processing speed and does not increase the circuit scale by four times as compared with the conventional frequency detector. It can be quadrupled.
  • the disclosed technique can improve the frequency resolution by a factor of L by having L-1 pairs of phase multipliers and accumulators.
  • the adjacent calculator 7 is provided with an L-1 pair of a phase multiplier and a accumulator.
  • the formula for calculating the phase increment ⁇ of each phase multiplier in this case is shown below.
  • ((adjacent index mod L) + k) ⁇ 2 ⁇ / (L ⁇ N) ⁇ ⁇ ⁇ (9)
  • mod is a remainder operator
  • k is a serial number possessed by each phase multiplier. This serial number starts from 1.
  • the phase multiplier 9a is 1
  • the phase multiplier 9b is 2
  • the phase multiplier 9c is 3.
  • Embodiment 3 The frequency detector according to the first embodiment and the second embodiment is configured to output only the result of one peak frequency.
  • the frequency detector according to the third embodiment can detect signals of three different frequencies at the same time.
  • the configuration of the frequency detector according to the third embodiment is the same as that of the frequency detector according to the second embodiment.
  • the operation of the FFT device 4 and the FIFO type memory 6 according to the third embodiment is the same as that of the second embodiment.
  • the same reference numerals are used for the components common to the first embodiment or the second embodiment. Further, the description overlapping with the first embodiment or the second embodiment will be omitted as appropriate.
  • the detector 5 selects three indexes having peaks in descending order of amplitude, and outputs a value obtained by doubling each index and the corresponding amplitude to the selector 8. Further, the detector 5 outputs each index adjacent to each peak to the adjacent calculator 7 and the selector 8.
  • the adjacency calculator 7 receives the adjacency index from the detector 5, calculates the amplitude at the frequency indicated by the adjacency index, and sends the calculated amplitude to the selector 8.
  • the selector 8 receives the calculation result from the detector 5 and the adjacent calculator 7, selects the one having the larger amplitude at each peak, converts the selected index into a frequency, and sends it to the output line 3.
  • the frequency detector 1 according to the third embodiment can output three peak frequencies.
  • the frequency detector 1 according to the third embodiment includes as many pairs of phase multipliers and accumulators as the number of selected peaks inside the adjacent calculator 7.
  • the detector 5 selects three peaks. In each of these, as in the case of the first embodiment, the detector 5 calculates the adjacency index and outputs it to the adjacency calculator 7.
  • the phase multipliers 9a-9c of the adjacency calculator 7 receive three adjacency indices individually. For example, if the adjacency index is "2m + 1,2n-1,2o + 1", the adjacency calculator 7 calculates the increment based on each index, calculates each amplitude, and outputs it to the selector 8.
  • the frequency detector according to the third embodiment simultaneously uses a plurality of frequencies without reducing the processing speed and doubling the circuit scale as compared with the conventional frequency detector. It can be detected and the frequency resolution of each can be doubled.
  • the selection is limited by appropriately setting a threshold value for the amplitude of the selected peak frequency, and the number of calculated amplitudes is reduced. May be.
  • the number of the plurality of peak frequencies to be detected is set to an upper limit, and the resolution of the individual detection frequency can be set for each order of the magnitude of the amplitude at the peak frequency.
  • each of the phase multipliers 9 (9a, 9b, 9c) is configured on the premise of the same resolution.
  • each of the phase multipliers 9 (9a, 9b, 9c) is configured assuming different resolutions.
  • the configuration of the frequency detector according to the fourth embodiment is the same as that of the frequency detector according to the third embodiment.
  • the operation of the FFT device 4 and the FIFO type memory 6 according to the fourth embodiment is the same as that of the third embodiment.
  • the same reference numerals are used for the components common to the above-described embodiments. Further, the description overlapping with the above-described embodiment will be omitted as appropriate.
  • the detector 5 selects two indexes having peaks in descending order of amplitude. The one with the largest amplitude triples the index, and the one with the second largest amplitude doubles the index and outputs it to the selector 8. Further, the detector 5 outputs each index adjacent to each peak to the adjacent calculator 7 and the selector 8.
  • the adjacency calculator 7 receives the adjacency index from the detector 5, calculates the amplitude at the frequency indicated by the adjacency index, and sends the calculated amplitude to the selector 8.
  • the selector 8 receives the calculation result from the detector 5 and the adjacent calculator 7, selects the one having the larger amplitude at each peak, converts the selected index into a frequency, and sends it to the output line 3.
  • the frequency detector 1 according to the fourth embodiment can output two peak frequencies. Further, the frequency resolution of the frequency detector 1 according to the fourth embodiment is three times in the vicinity of the maximum amplitude and twice in the vicinity of the second largest amplitude.
  • the adjacency index received by the adjacency calculator 7 is "3m + 1,2n-1".
  • 3m + 1 is an adjacency index of the maximum amplitude
  • 2n-1 is an adjacency index of the second largest amplitude.
  • the frequency detector according to the fourth embodiment divides the phase multiplier and the accumulator in the adjacency calculator 7 into 2: 1 and sets two as the adjacency index of the maximum amplitude and 1 as the adjacency index of the second largest amplitude. Assign a pair.
  • the operation of each set is the same as that of the above-described embodiment.
  • phase increment ⁇ of the phase multiplier 9 (9a, 9b, 9c).
  • the frequency detector according to the fourth embodiment simultaneously uses a plurality of frequencies without reducing the processing speed and doubling the circuit scale as compared with the conventional frequency detector. It can be detected and the frequency resolution of each can be improved. Further, the frequency detector according to the fourth embodiment can adjust the degree of improvement in frequency resolution.
  • the frequency detector according to the third and fourth embodiments doubles or more the resolution of all the detected frequencies, but is not limited to this.
  • the frequency detector according to the present disclosure technique may include a peak in the output that does not improve the resolution.
  • the detector 5 also outputs the index of the peak that does not improve the resolution to the selector 8, but it is sufficient to transmit only the adjacent index that improves the resolution to the adjacent calculator 7.
  • Embodiment 5 The frequency detector according to the above-described embodiment has a FIFO type memory 6 inside, but the frequency detector is not limited to this.
  • the frequency detector according to the fifth embodiment is configured to use an external memory.
  • FIG. 4 is a block diagram showing a configuration of the frequency detector according to the fifth embodiment.
  • the frequency detector 1 includes a memory controller 11 instead of the FIFO type memory 6.
  • the memory controller 11 is connected to the external memory 12 and controls the external memory 12.
  • the frequency detector 1 uses the external memory 12 to further reduce the circuit scale as compared with the apparatus according to the above-described embodiment.
  • Embodiment 6 The frequency detector according to the above-described embodiment has a configuration in which a memory controller 11 for controlling a FIFO type memory 6 or an external memory 12 is provided in front of an adjacent calculator 7.
  • the frequency detector according to the sixth embodiment adopts a configuration in which nothing is provided in front of the adjacent calculator 7 and the input line 2 is directly connected to the adjacent calculator 7.
  • FIG. 5 is a block diagram showing a configuration of the frequency detector according to the sixth embodiment.
  • the frequency detector according to the above-described embodiment it is guaranteed that the FFT device 4 and the adjacent calculator 7 use the same input data due to the effect of the FIFO type memory 6 provided in front of the adjacent calculator 7. There is.
  • the FIFO type memory 6 provided in the previous stage is intentionally removed, and the "delay in processing speed caused between the FFT device 4 and the detector 5" is positively used. ..
  • the signal to be sampled is a periodic signal in a period requiring N samplings, that is, a period obtained by multiplying the sampling period T by N.
  • FIG. 6 is a reference diagram showing the processing timing of the frequency detector according to the sixth embodiment.
  • the adjacent index calculated from the first output result of the FFT device 4 is obtained in the fourth front in the unit of the data block. Therefore, the adjacency calculator 7 cannot calculate the amplitude of the adjacency index for the first to third chunks of data.
  • the adjacent calculator 7 first outputs the amplitude is the amplitude calculated from the fourth (Data # 4) chunk of data.
  • the adjacent index used for the calculation is an index calculated from the first (Data # 1) chunk of data.
  • the selector 8 outputs the frequency with improved resolution when receiving the amplitude from the adjacent calculator 7, and outputs the frequency with the conventional resolution when receiving "no amplitude".
  • the frequency detector according to the present disclosed technique has a period of the signal to be sampled NT, it is assumed that all data blocks including the phase are the same. That is, the frequency detector according to the sixth embodiment utilizes the above-mentioned property, and the adjacent calculator 7 performs speculative execution. Therefore, by providing the above configuration, the frequency detector according to the sixth embodiment reduces the circuit scale as compared with the one according to the first embodiment in a period in which the frequency fluctuation of the signal to be detected is almost nonexistent. The same effect as that of 1 can be obtained.
  • Embodiment 7 The frequency detector according to the above-described embodiment has been described on the premise that a dedicated processing circuit is used, but the present invention is not limited to this.
  • the frequency detector according to the seventh embodiment adopts a configuration that realizes the function of the frequency detector according to the above-described embodiment by using a general processor.
  • FIG. 7 is a block diagram showing a configuration of the frequency detector according to the seventh embodiment.
  • the frequency detector 21 has an input line 22 for receiving data, an output line 23 for outputting a detection result, an input / output device 24 for input / output to / from the outside, data, and the like. It includes a memory 25 for storing and a processor 26 for performing arithmetic processing such as Fourier transform.
  • the input / output device 24 outputs N sampling data received via the input line 22 to the memory 25.
  • the processor 26 performs a Fourier transform on N sampling data stored in the memory 25.
  • the processor 26 performs an absolute value calculation on N complex numbers which are the calculation results of the Fourier transform, and calculates the amplitude at each frequency.
  • the processor 26 selects an index of the frequency having the maximum amplitude.
  • the processor 26 calculates an adjacent index from the selected index having the maximum amplitude.
  • the processor 26 multiplies the N sampling data stored in the memory 25 by the phase and calculates the total sum. As for the phase to be multiplied, the initial value is set to 0, and the phase increment corresponding to the adjacent index is added every time the multiplication is performed.
  • the processor 26 compares the maximum amplitude with the absolute value of the sum, and selects the index corresponding to the larger one.
  • the processor 26 converts the selected index into a frequency, and outputs the value of the frequency to the output line 23 via the input / output device 24.
  • the frequency detector 21 according to the seventh embodiment can output the frequency having the maximum amplitude.

Landscapes

  • Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • General Physics & Mathematics (AREA)
  • Radar Systems Or Details Thereof (AREA)

Abstract

A frequency detector according to this disclosure comprises an FFT device for calculating N Fourier transform results from N items of sampling data and a detector for detecting an index that is the order of a frequency from among the Fourier transform results that has the greatest amplitude. The frequency detector comprises an adjacency calculator having a phase multiplier and accumulator, and the adjacency calculator calculates the amplitude of an intermediate frequency between the frequency corresponding to the index and the frequency corresponding to an index before or after the index.

Description

周波数検出器Frequency detector
 本開示技術は、高速フーリエ変換(以下「FFT」という)を用いてリアルタイムに周波数を検出する機器に関する。 The present disclosure technique relates to a device that detects a frequency in real time using a fast Fourier transform (hereinafter referred to as "FFT").
 FFTを用いた周波数検出は、広い分野で用いられている。例えば、特許文献1には、ドップラーレーダー、ドップラーソナー等の用途が示され、反射エコー信号をFFTすることによりドップラー周波数を求める技術が開示されている。 Frequency detection using FFT is used in a wide range of fields. For example, Patent Document 1 discloses applications such as Doppler radar and Doppler sonar, and discloses a technique for obtaining a Doppler frequency by FFTing a reflected echo signal.
 また、特許文献1は、必要とされる周波数分解能を満たすために高速フーリエ変換において必要なサンプル数を基準サンプル数として、基準サンプル数に達するように、デジタルデータ列にゼロデータを付加する技術を開示している。 Further, Patent Document 1 provides a technique for adding zero data to a digital data string so as to reach the reference sample number, with the sample number required for the fast Fourier transform as the reference sample number in order to satisfy the required frequency resolution. It is disclosed.
特開2012-247304号公報Japanese Unexamined Patent Publication No. 2012-247304
 特許文献1により開示された技術は、倍の分解能を得る際、処理速度が半減し、回路規模が倍増するという課題があった。本開示技術は、処理速度を維持し、回路規模の増大を抑えた上で、分解能を上げる周波数検出器を提供することを目的とする。 The technique disclosed in Patent Document 1 has a problem that the processing speed is halved and the circuit scale is doubled when the double resolution is obtained. An object of the present disclosure technique is to provide a frequency detector that increases the resolution while maintaining the processing speed and suppressing the increase in the circuit scale.
 本開示技術にかかる周波数検出器は、N個のサンプリングデータからN個のフーリエ変換結果を算出するFFT器と、前記フーリエ変換結果のうち、振幅が極大となる周波数の順番である指標を検出する検出器と、を備える周波数検出器であって、周波数検出器は、さらに位相乗算器と累算器とを有する隣接算出器を備え、前記隣接算出器は、前記指標に対応する周波数と前記指標の前又は後の指標に対応する周波数との中間の周波数における振幅を算出する。 The frequency detector according to the present disclosure technique detects an FFT device that calculates N Fourier transform results from N sampling data, and an index of the Fourier transform results in the order of frequencies having the maximum amplitude. A frequency detector comprising a detector, wherein the frequency detector further comprises an adjacency calculator having a phase multiplier and an accumulator, wherein the adjacency calculator has a frequency corresponding to the index and the index. Calculate the amplitude at a frequency in the middle of the frequency corresponding to the index before or after.
 本開示技術にかかる周波数検出器は、上記構成を備えるため、N個のサンプリングデータから2N個のフーリエ変換を実施せずとも、ピーク周波数近傍で、倍の分解能のフーリエ変換の結果を得ることができる。このため、処理速度を維持し、回路規模の増大を抑えた上で、分解能を上げる周波数検出器を実現することができる。 Since the frequency detector according to the present disclosure technique has the above configuration, it is possible to obtain the result of the Fourier transform with double resolution in the vicinity of the peak frequency without performing the 2N Fourier transform from the N sampling data. can. Therefore, it is possible to realize a frequency detector that increases the resolution while maintaining the processing speed and suppressing the increase in the circuit scale.
図1は、実施の形態1にかかる周波数検出器の構成を示すブロック図である。FIG. 1 is a block diagram showing a configuration of a frequency detector according to the first embodiment. 図2は、実施の形態1にかかる周波数検出器における隣接算出器の構成を示すブロック図である。FIG. 2 is a block diagram showing a configuration of an adjacent calculator in the frequency detector according to the first embodiment. 図3は、実施の形態2にかかる周波数検出器における隣接算出器の構成を示すブロック図である。FIG. 3 is a block diagram showing a configuration of an adjacent calculator in the frequency detector according to the second embodiment. 図4は、実施の形態5にかかる周波数検出器の構成を示すブロック図である。FIG. 4 is a block diagram showing a configuration of the frequency detector according to the fifth embodiment. 図5は、実施の形態6にかかる周波数検出器の構成を示すブロック図である。FIG. 5 is a block diagram showing a configuration of the frequency detector according to the sixth embodiment. 図6は、実施の形態6にかかる周波数検出器の処理タイミングを示す参考図である。FIG. 6 is a reference diagram showing the processing timing of the frequency detector according to the sixth embodiment. 図7は、実施の形態7にかかる周波数検出器の構成を示すブロック図である。FIG. 7 is a block diagram showing a configuration of the frequency detector according to the seventh embodiment.
 本開示技術を実施するための形態は、図面に沿った以下の説明により、明らかにされる。 The form for implementing the disclosed technique will be clarified by the following description along with the drawings.
実施の形態1.
 図1は、実施の形態1にかかる周波数検出器1の構成を示すブロック図である。周波数検出器1は、入力データを受け取る入力線2、検出結果を送り出す出力線3、FFTを実施するFFT器4、信号を検出する検出器5、データを一時的に保持するFirst-In First-Out型メモリであるFIFO型メモリ6、隣接周波数の値を算出する隣接算出器7、検出結果を選択するセレクタ8から構成されている。FFT器4は、離散フーリエ変換を実施するものであってもよい。
Embodiment 1.
FIG. 1 is a block diagram showing a configuration of a frequency detector 1 according to the first embodiment. The frequency detector 1 includes an input line 2 that receives input data, an output line 3 that sends out detection results, an FFT device 4 that performs FFT, a detector 5 that detects signals, and First-In First-that temporarily holds data. It is composed of a FIFO type memory 6 which is an Out type memory, an adjacency calculator 7 for calculating an adjacent frequency value, and a selector 8 for selecting a detection result. The FFT device 4 may be one that carries out a discrete Fourier transform.
 周波数検出器1の動作は、以下の具体例により明らかにされる。具体的にはサンプルデータの数がN個であり、分解能を倍加する場合を例示する。N個のサンプルデータは、入力線2を介し、FFT器4及びFIFO型メモリ6へ送られる。FFT器4は、送られたN個のサンプルデータをフーリエ変換し、同じくN個のフーリエ変換結果を検出器5へ出力する。N個のサンプリングデータを{x,x,…,xN-1}とすると、FFT器4はN個のフーリエ変換計算結果{F(f)、F(f)、…F(fN-1)}を算出する。ここで、f、f、…fN-1は低い順に並べられた周波数であり、フーリエ変換計算結果F(・)は複素数である。 The operation of the frequency detector 1 will be clarified by the following specific example. Specifically, the case where the number of sample data is N and the resolution is doubled is illustrated. The N sample data are sent to the FFT device 4 and the FIFO type memory 6 via the input line 2. The FFT device 4 Fourier transforms the sent N sample data, and also outputs the N Fourier transform results to the detector 5. Assuming that N sampling data are {x 0 , x 1 , ..., X N-1 }, the FFT device 4 has N Fourier transform calculation results {F (f 0 ), F (f 1 ), ... F ( f N-1 )} is calculated. Here, f 0 , f 1 , ... f N-1 are frequencies arranged in ascending order, and the Fourier transform calculation result F (.) Is a complex number.
 FIFO型メモリ6は、送られたN個のサンプルデータを蓄える。検出器5は、まずフーリエ変換計算結果である複素数の絶対値を算出する。複素数の絶対値とは、複素数を複素平面にプロットしたときの原点からの距離のことである。例えば、フーリエ変換計算結果F(f)の絶対値は|F(f)|というように、絶対値の記号|・|を用いて表す。また、|F(f)|は周波数fにおける「振幅」と呼ぶ。検出器5は、振幅が極大となる周波数(以下「ピーク周波数」という)のうち、振幅が最大となるピーク周波数及び振幅最大の周波数の指標を検出する。指標とは、FFT結果の周波数が低い順に並べた順番をいう。より具体的にいえば、指標とは、周波数を表す記号f、f、…fN-1の下添え字の0、1、…N-1のことである。なお、後述により明らかにされるが、検出器5は、あえて指標を2倍にしてセレクタ8に出力する。すなわち、検出器5は、FFT結果を周波数の低い順に0、1、…と番号を振り、振幅が最大となるピーク周波数がfであった場合、mを2倍にした2mをあらたな指標としてセレクタ8に出力する。 The FIFO type memory 6 stores N sent sample data. The detector 5 first calculates the absolute value of the complex number which is the result of the Fourier transform calculation. The absolute value of a complex number is the distance from the origin when the complex number is plotted on the complex plane. For example, the absolute value of the Fourier transform calculation result F (f 1 ) is represented by using the symbol | · | of the absolute value, such as | F (f 1 ) |. Further, | F (f 1 ) | is called "amplitude" at the frequency f 1 . The detector 5 detects an index of the peak frequency having the maximum amplitude and the frequency having the maximum amplitude among the frequencies having the maximum amplitude (hereinafter referred to as “peak frequency”). The index means the order in which the frequencies of the FFT results are arranged in ascending order. More specifically, the index is the symbols f 0 , f 1 , ... f N-1 , and the subscripts 0, 1, ... N-1 representing the frequency. As will be clarified later, the detector 5 dares to double the index and output it to the selector 8. That is, the detector 5 assigns the FFT results to 0, 1, ... In ascending order of frequency, and when the peak frequency at which the amplitude is maximum is fm, the detector 5 doubles m to 2 m as a new index. Is output to the selector 8.
 検出器5は、上記のとおり2倍にした指標に隣接する隣接指標を、隣接算出器7及びセレクタ8に出力する。隣接指標は、後述の詳細により明らかにされる。セレクタ8は、検出器5と隣接算出器7とから送信されたピーク周波数とピーク周波数での振幅と対応する指標とからなるデータの中から、振幅が大きい方を選択し、対応するピーク周波数を出力線3に出力する。以上の動作により、周波数検出器1は、振幅が最大となるピーク周波数を出力できる。 The detector 5 outputs an adjacent index adjacent to the doubled index as described above to the adjacent calculator 7 and the selector 8. Adjacent indicators will be clarified in the details below. The selector 8 selects the data having the larger amplitude from the data consisting of the peak frequency transmitted from the detector 5 and the adjacent calculator 7 and the amplitude at the peak frequency and the corresponding index, and selects the corresponding peak frequency. Output to output line 3. By the above operation, the frequency detector 1 can output the peak frequency having the maximum amplitude.
 隣接指標は、以下の詳細な具体例により明らかにされる。具体例は、フーリエ変換計算の結果、振幅が最大となるピーク周波数がfmだったと仮定する。この場合、検出器5は、指標2mが、振幅が最大となるピーク周波数の候補が2N個中の0、1、と数えて2m番目もしくはその近傍にあることを表す、と考える。つまり、隣接指標の候補には、2N個中の2m-1と2m+1とが考えられる。そこで、検出器5は、N個の計算結果中、0、1、と数えてm-1番目の計算結果の振幅である|F(fm-1)|とm+1番目の計算結果の振幅である|F(fm+1)|とを比較する。セレクタ8は、前者が大きければ2m-1を、後者が大きければ2m+1を、2N個中の隣接指標と定義する。検出器5が隣接算出器7に送る隣接指標は、この具体例では2m+1とする。 Adjacent indicators are clarified by the following detailed examples. In a specific example, it is assumed that the peak frequency at which the amplitude is maximum is fm as a result of the Fourier transform calculation. In this case, the detector 5 considers that the index 2m indicates that the candidate for the peak frequency having the maximum amplitude is 0, 1 out of 2N, and is at or near the 2mth. That is, 2m-1 and 2m + 1 out of 2N can be considered as candidates for the adjacent index. Therefore, the detector 5 counts as 0, 1 among the N calculation results, and is the amplitude of the m-1st calculation result | F (fm -1 ) | and the amplitude of the m + 1st calculation result. Compare with a certain | F (fm + 1 ) |. The selector 8 defines 2m-1 if the former is large and 2m + 1 if the latter is large as an adjacent index in 2N. The adjacency index sent by the detector 5 to the adjacency calculator 7 is 2 m + 1 in this specific example.
 図2は、実施の形態1にかかる周波数検出器1における隣接算出器7の構成を示すブロック図である。隣接算出器7は、入力に位相を乗算する位相乗算器9と、入力を累算する累算器10と、を備える。 FIG. 2 is a block diagram showing a configuration of an adjacent calculator 7 in the frequency detector 1 according to the first embodiment. The adjacency calculator 7 includes a phase multiplier 9 that multiplies the input by the phase, and a calculator 10 that accumulates the inputs.
 隣接算出器7の動作は、以下の具体例により明らかにされる。具体例は、前述と同様に、隣接指標が2m+1とする。位相乗算器9は、検出器5から隣接指標2m+1を受け取り、位相増分α[rad]を算出する。位相増分αは、以下の数式により求める。
 α=(2m+1)×π/N   ・・・(1)
FFT器4が行うフーリエ変換と比較すると、フーリエ変換の基本調波の位相増分は2π/Nであり、m倍波の位相増分は2mπ/N、m+1倍波の位相増分は2(m+1)π/Nである。すなわち、式(1)が表す位相乗算器9の位相増分αは、FFT器4におけるm倍波とm+1倍波の中間の値であることがわかる。
The operation of the adjacency calculator 7 will be clarified by the following specific example. In a specific example, the adjacency index is set to 2 m + 1 as described above. The phase multiplier 9 receives the adjacency index 2m + 1 from the detector 5 and calculates the phase increment α [rad]. The phase increment α is calculated by the following formula.
α = (2m + 1) × π / N ・ ・ ・ (1)
Compared with the Fourier transform performed by the FFT device 4, the phase increment of the basic harmonic of the Fourier transform is 2π / N, the phase increment of the m harmonic is 2mπ / N, and the phase increment of the m + 1 harmonic is 2 (m + 1) π. / N. That is, it can be seen that the phase increment α of the phase multiplier 9 represented by the equation (1) is an intermediate value between the m-fold wave and the m + 1-fold wave in the FFT device 4.
 位相乗算器9は、入力に位相を乗算し、乗算結果を累算器10へ出力する。このとき、位相の初期値は0とし、位相に位相増分αを加算していく。入力に位相を乗算することは、具体例を用いると明らかになる。入力線2に入る入力信号xが{x,x,…,xN-1}であるとして、例えばxに位相φを乗算するとは、実際には、x×θを計算していることをいう。ただし、ここでのθは、θ=exp(jφ)=cos(φ)+j・sin(φ)を満たす複素数である。 The phase multiplier 9 multiplies the input by the phase and outputs the multiplication result to the accumulator 10. At this time, the initial value of the phase is set to 0, and the phase increment α is added to the phase. Multiplying the input by phase becomes clear using a concrete example. Assuming that the input signal x entering the input line 2 is {x 0 , x 1 , ..., X N-1 }, for example, multiplying x 0 by the phase φ actually calculates x 0 × θ. It means that you are. However, θ here is a complex number satisfying θ = exp (jφ) = cos (φ) + j · sin (φ).
 累算器10は、位相乗算器9から順次結果を受け取り、N個の累算結果の絶対値を出力する。ここでいう絶対値とは、複素数を複素平面にプロットしたときの原点からの距離のことである。以上の動作により、隣接算出器7は、隣接指標の振幅を算出し、その値をセレクタ8に出力する。 The accumulator 10 sequentially receives the results from the phase multiplier 9 and outputs the absolute values of N accumulation results. The absolute value here is the distance from the origin when the complex number is plotted on the complex plane. By the above operation, the adjacency calculator 7 calculates the amplitude of the adjacency index and outputs the value to the selector 8.
 位相乗算器9及び累算器10からなる隣接算出器7は、FFT器4が行う離散フーリエ変換を数式化したものと照らし合わせてみると、その意味が明らかになる。離散フーリエ変換の公式は、いくつかの流儀があるが、例えば、以下のものがある。

Figure JPOXMLDOC01-appb-I000001
ただし、ここでkは指標を表す。位相乗算器9は、位相増分α[rad]を計算し、θ=exp(-jnα)を入力信号x={x,x,…,xN-1}のそれぞれに乗算して累算する。このことの意味は、数式を比較することにより明らかになる。

Figure JPOXMLDOC01-appb-I000002
 FFT器4が行うフーリエ変換では、サンプリング周期Tとサンプル点数Nから、フーリエ変換の結果である級数の基本調波の周波数が一意に決められる。すなわち、基本調波は、ちょうど0番目のサンプリングからN番目のサンプリング直前までの積分区間で位相が0から2πとなる。すなわち、積分区間はちょうど基本調波の1周期分の長さである。式(2A)でいえば、n=0のときの位相が0で、n=Nのときの位相が2πである。基本調波のみならず、その倍数波も積分区間では位相が0から2π(2πの整数倍を含む)になる。
The meaning of the adjacent calculator 7 including the phase multiplier 9 and the accumulator 10 becomes clear when compared with the mathematical expression of the discrete Fourier transform performed by the FFT device 4. There are several ways to formulate the discrete Fourier transform, for example:

Figure JPOXMLDOC01-appb-I000001
However, here, k represents an index. The phase multiplier 9 calculates the phase increment α [rad] and multiplies each of the input signals x = {x 0 , x 1 , ..., X N-1 } by θ n = exp (−jnα) and accumulates. Calculate. The meaning of this becomes clear by comparing mathematical formulas.

Figure JPOXMLDOC01-appb-I000002
In the Fourier transform performed by the FFT device 4, the frequency of the basic harmonic of the series that is the result of the Fourier transform is uniquely determined from the sampling period T and the number of sample points N. That is, the phase of the fundamental harmonic is 0 to 2π in the integration interval from the 0th sampling to just before the Nth sampling. That is, the integration interval is exactly the length of one cycle of the basic harmonics. In the equation (2A), the phase when n = 0 is 0, and the phase when n = N is 2π. Not only the basic harmonics, but also the multiple waves have a phase of 0 to 2π (including an integral multiple of 2π) in the integration interval.
 結局のところ、本開示技術が意図することは、FFT器4が計算するN個の周波数{f、f、…fN-1}の、中間値の周波数{(f+f)/2、(f+f)/2、…(fN-1+f)/2}における振幅の値も計算することにある。以下のごく簡単な例は、このことを説明する。N=3個のサンプル数において、基本調波の周波数fが2Hz、2倍波の周波数fが4Hz、3倍波の周波数fが6Hzだったとする。サンプル点数を2N=6個にするということは、あらたな基本調波の周波数fが1Hz、2倍波の周波数fが2Hz、3倍波の周波数fが3Hz、4倍波の周波数fが4H、5倍波の周波数fが5Hz、6倍波の周波数fが6Hz、として、級数展開の係数を求めることといえる。サンプル点数を倍にすることは、ちょうど中間の周波数も考慮に入れることと等価になる。
 ただし、すべての中間値の周波数について計算をする必要はないため、FFT器4が計算するN個の周波数{f、f、…fN-1}について、振幅が最大である周波数に隣接した中間値の周波数においてのみ演算を実施する、というものである。
After all, the intent of the present disclosure technique is the intermediate frequency {(f 0 + f 1 ) / of the N frequencies {f 0 , f 1 , ... f N-1 } calculated by the FFT device 4. 2, (f 1 + f 2 ) / 2, ... (F N-1 + f N ) / 2} is also to be calculated. The following very simple example illustrates this. It is assumed that the frequency f 0 of the fundamental tuning is 2 Hz, the frequency f 1 of the second harmonic is 4 Hz, and the frequency f 2 of the third harmonic is 6 Hz in the number of N = 3 samples. Setting the number of sample points to 2N = 6 means that the frequency f 0 of the new fundamental tuning is 1 Hz, the frequency f 1 of the second harmonic is 2 Hz, the frequency f 2 of the third harmonic is 3 Hz, and the frequency of the fourth harmonic. It can be said that the coefficient of the series expansion is obtained by assuming that f 3 is 4H, the frequency f 4 of the 5th harmonic is 5Hz, and the frequency f 5 of the 6th harmonic is 6Hz. Doubling the sample score is equivalent to taking into account just the middle frequencies.
However, since it is not necessary to calculate the frequencies of all the intermediate values, the N frequencies {f 0 , f 1 , ... F N-1 } calculated by the FFT device 4 are adjacent to the frequencies having the maximum amplitude. The calculation is performed only at the frequency of the intermediate value.
 セレクタ8は、指標の情報から対応する周波数を求めることもできる。対応する周波数は、以下の式から求める。
 周波数=入力のサンプリング周波数×(指標+1)÷(2N)   ・・・(4)
2N個中の隣接指標が2m+1である具体例に基づいていえば、セレクタ8は、2mと2m+1の指標を受け取り、2つのうち振幅の大きい方に対応する指標を周波数に変換して出力する。なお、指標と周波数とは、1対1の相互変換可能な値である。このため、セレクタ8は、指標を周波数に変換せずそのまま出力しても良い。
The selector 8 can also obtain the corresponding frequency from the information of the index. The corresponding frequency is calculated from the following formula.
Frequency = input sampling frequency x (index + 1) ÷ (2N) ... (4)
Based on the specific example in which the adjacent index in 2N is 2m + 1, the selector 8 receives the index of 2m and 2m + 1, converts the index corresponding to the larger amplitude of the two into a frequency, and outputs the index. The index and frequency are one-to-one interchangeable values. Therefore, the selector 8 may output the index as it is without converting it into a frequency.
 以上の構成を備えることにより、実施の形態1にかかる周波数検出器は、従来の周波数検出器に比べ、処理速度を低下させることなく、かつ、回路規模も倍増させることなく、周波数分解能を2倍にすることができる。 By providing the above configuration, the frequency detector according to the first embodiment doubles the frequency resolution without reducing the processing speed and doubling the circuit scale as compared with the conventional frequency detector. Can be.
 発明の効果における処理速度及び回路規模は、少し説明を要するのでここで述べる。ここでの処理速度とは、スループットのことを指す。また、一般に、リアルタイム処理可能なFFT器は、点数の倍増に伴い回路規模も倍増する。そのため、サンプル点数が少ない特殊な場合を除き、隣接算出器7の回路規模は、FFT器4に比べて十分小さい。すなわち、本開示技術における周波数検出器は、処理速度を落とさずに点数を倍にするFFT器の構成と比べて回路規模は小さくてすむ。 The processing speed and circuit scale in the effect of the invention need a little explanation, so they will be described here. The processing speed here refers to the throughput. Further, in general, the circuit scale of an FFT device capable of real-time processing doubles as the number of points doubles. Therefore, the circuit scale of the adjacent calculator 7 is sufficiently smaller than that of the FFT device 4, except in a special case where the number of sample points is small. That is, the frequency detector in the present disclosed technique can have a smaller circuit scale than the configuration of the FFT device that doubles the points without slowing down the processing speed.
 また、周波数検出器の分解能は、これについても少し説明を要するため、ここで述べる。分解能は、「入力のサンプリング周波数÷FFT点数」で求められる値である。従来技術の一例である特許文献1は、交互のタイミングでサンプリングする2台のFFT器の構成の代わりに、入力されるデータに同数の0を追加してFFT点数を2倍にし、分解能を2倍に見せている。 Also, the resolution of the frequency detector requires a little explanation, so it will be described here. The resolution is a value obtained by "input sampling frequency / FFT score". In Patent Document 1, which is an example of the prior art, instead of the configuration of two FFT devices that sample at alternating timings, the same number of 0s are added to the input data to double the number of FFT points and the resolution is 2. I'm showing it twice.
実施の形態2.
 実施の形態1にかかる周波数検出器は、隣接算出器7が1つの位相乗算器9と1つの累算器10を備える構成のものについて述べた。ただし、本開示技術において、1つの位相乗算器9と1つの累算器10は最低限必要な台数を示したに過ぎず、これに限定したものではない。実施の形態2にかかる周波数検出器は、複数の位相乗算器9(9a、9b、9c)と複数の累算器10(10a、10b、10c)を備える。
Embodiment 2.
As the frequency detector according to the first embodiment, the configuration in which the adjacent calculator 7 includes one phase multiplier 9 and one accumulator 10 is described. However, in the present disclosed technique, one phase multiplier 9 and one accumulator 10 only show the minimum required number, and are not limited to this. The frequency detector according to the second embodiment includes a plurality of phase multipliers 9 (9a, 9b, 9c) and a plurality of accumulators 10 (10a, 10b, 10c).
 実施の形態2の説明は、実施の形態1と共通する構成要素には同じ符号を用いる。また、実施の形態1と重複する説明は、適宜、省略する。 In the description of the second embodiment, the same reference numerals are used for the components common to the first embodiment. Further, the description overlapping with the first embodiment will be omitted as appropriate.
 図3は、実施の形態2にかかる周波数検出器における隣接算出器7の構成を示すブロック図である。実施の形態2の隣接算出器7は、入力に位相を乗算する複数の位相乗算器9(9a、9b、9c)と、入力を累算する複数の累算器10(10a、10b、10c)を備える。 FIG. 3 is a block diagram showing the configuration of the adjacent calculator 7 in the frequency detector according to the second embodiment. The adjacent calculator 7 of the second embodiment includes a plurality of phase multipliers 9 (9a, 9b, 9c) for multiplying an input by a phase, and a plurality of accumulators 10 (10a, 10b, 10c) for accumulating inputs. To prepare for.
 実施の形態2の隣接算出器7の動作は、以下の具体例により明らかにされる。実施の形態2にかかる技術は、分解能を4倍化することを考える。隣接算出器を除く周波数検出器の構成は、実施の形態1と同じである。また、FFT器4とFIFO型メモリ6の動作も実施の形態1と同じである。 The operation of the adjacent calculator 7 of the second embodiment will be clarified by the following specific example. The technique according to the second embodiment considers quadrupling the resolution. The configuration of the frequency detector excluding the adjacent calculator is the same as that of the first embodiment. Further, the operation of the FFT device 4 and the FIFO type memory 6 is the same as that of the first embodiment.
 実施の形態2にかかる周波数検出器1の動作は、以下の具体例により明らかにされる。具体的にはサンプルデータの数がN個であり、分解能を4倍加する場合を例示する。N個のサンプルデータは、入力線2を介し、FFT器4及びFIFO型メモリ6へ送られる。FFT器4は、送られたN個のサンプルデータをフーリエ変換し、同じくN個のフーリエ変換結果を検出器5へ出力する。FIFO型メモリ6は、送られたN個のサンプルデータを蓄える。検出器5は、まずフーリエ変換結果を絶対値変換する。検出器5は、振幅が最大となるピーク周波数及びその指標を検出する。なお、実施の形態2では、検出器5は、あえて指標を4倍にしてセレクタ8に出力する。すなわち、検出器5は、FFT結果を周波数の低い順に1、2、…と番号を振り、振幅が最大となるピーク周波数がm番目であった場合、4倍にした4mを指標としてセレクタ8に出力する。 The operation of the frequency detector 1 according to the second embodiment will be clarified by the following specific example. Specifically, the case where the number of sample data is N and the resolution is quadrupled is illustrated. The N sample data are sent to the FFT device 4 and the FIFO type memory 6 via the input line 2. The FFT device 4 Fourier transforms the sent N sample data, and also outputs the N Fourier transform results to the detector 5. The FIFO type memory 6 stores N sent sample data. The detector 5 first converts the Fourier transform result into an absolute value. The detector 5 detects the peak frequency having the maximum amplitude and its index. In the second embodiment, the detector 5 intentionally quadruples the index and outputs it to the selector 8. That is, the detector 5 assigns the FFT results to 1, 2, ... In ascending order of frequency, and when the peak frequency at which the amplitude is maximum is the mth, the detector 8 is set to the selector 8 with 4 m, which is quadrupled, as an index. Output.
 検出器5は、上記のとおり4倍にした指標に隣接する隣接指標を、隣接算出器7及びセレクタ8に出力する。隣接指標は、後述の詳細により明らかにされる。セレクタ8は、検出器5と隣接算出器7とから送信されたピーク周波数とピーク周波数での振幅と対応する指標とからなるデータの中から、振幅が大きいものを選択し、対応するピーク周波数を出力線3に出力する。以上の動作により、周波数検出器1は、振幅が最大となるピーク周波数を出力できる。 The detector 5 outputs an adjacent index adjacent to the index quadrupled as described above to the adjacent calculator 7 and the selector 8. Adjacent indicators will be clarified in the details below. The selector 8 selects the data having a large amplitude from the data consisting of the peak frequency transmitted from the detector 5 and the adjacent calculator 7 and the amplitude at the peak frequency and the corresponding index, and selects the corresponding peak frequency. Output to output line 3. By the above operation, the frequency detector 1 can output the peak frequency having the maximum amplitude.
 隣接指標は、以下の詳細な具体例により明らかにされる。FFT器4でのフーリエ変換を実施した結果、振幅が最大となるピーク周波数がfmだったとする。この場合、検出器5は、指標が4N個中の4m番目もしくはその近傍において振幅が最大となる、と考える。隣接指標の候補には、4N個中の4m-1と4m+1とが考えられる。そこで、N個の計算結果中、m-1番目の振幅とm+1番目の振幅を比較し、前者の振幅が大きければ4m-1を、後者の振幅が大きければ4m+1を、4N個中の隣接指標と定義する。検出器5が隣接算出器7に送る隣接指標は、この具体例では4m+1とする。 Adjacent indicators are clarified by the following detailed concrete examples. As a result of performing the Fourier transform in the FFT device 4, it is assumed that the peak frequency at which the amplitude is maximum is fm. In this case, the detector 5 considers that the amplitude becomes maximum at or near the 4mth index out of 4N. Candidates for adjacent indicators are 4m-1 and 4m + 1 out of 4N. Therefore, among the N calculation results, the m-1st amplitude and the m + 1st amplitude are compared, and if the former amplitude is large, 4m-1 is used, and if the latter amplitude is large, 4m + 1 is used. Is defined as. The adjacency index sent by the detector 5 to the adjacency calculator 7 is 4 m + 1 in this specific example.
 隣接算出器7の動作は、以下の具体例により明らかにされる。具体例は、隣接指標が4m+1とする。位相乗算器9(9a、9b、9c)は、検出器5から隣接指標4m+1を受け取り、位相増分α[rad]をそれぞれ算出する。それぞれの位相増分αは、以下の数式により求める。
位相乗算器9aの位相増分αは、以下の数式により求まる。
 α=(4m+1)×π/2N   ・・・(5)
位相乗算器9bの位相増分αは、以下の数式により求まる。
 α=(4m+2)×π/2N   ・・・(6)
位相乗算器9cの位相増分αは、以下の数式により求まる。
 α=(4m+3)×π/2N   ・・・(7)
The operation of the adjacency calculator 7 will be clarified by the following specific example. In a specific example, the adjacent index is 4 m + 1. The phase multiplier 9 (9a, 9b, 9c) receives the adjacency index 4m + 1 from the detector 5 and calculates the phase increment α [rad], respectively. Each phase increment α is calculated by the following formula.
The phase increment α of the phase multiplier 9a can be obtained by the following mathematical formula.
α = (4m + 1) × π / 2N ・ ・ ・ (5)
The phase increment α of the phase multiplier 9b can be obtained by the following mathematical formula.
α = (4m + 2) × π / 2N ・ ・ ・ (6)
The phase increment α of the phase multiplier 9c can be obtained by the following mathematical formula.
α = (4m + 3) × π / 2N ・ ・ ・ (7)
 位相乗算器9(9a、9b、9c)は、入力に位相を乗算し、乗算結果をそれぞれ累算器10(10a、10b、10c)へ出力する。このとき、位相の初期値は0とし、位相に位相増分αを加算していく。 The phase multiplier 9 (9a, 9b, 9c) multiplies the input by the phase and outputs the multiplication result to the accumulator 10 (10a, 10b, 10c), respectively. At this time, the initial value of the phase is set to 0, and the phase increment α is added to the phase.
 累算器10(10a、10b、10c)は、位相乗算器9(9a、9b、9c)から送信された乗算結果を順次受け取り、N個の累算を計算し、累算した結果である複素数の絶対値、すなわち振幅をセレクタ8へ出力する。 The accumulator 10 (10a, 10b, 10c) sequentially receives the multiplication results transmitted from the phase multipliers 9 (9a, 9b, 9c), calculates N accumulations, and is a complex number that is the result of the accumulation. The absolute value of, that is, the amplitude is output to the selector 8.
 セレクタ8は、指標の情報から対応する周波数を求めることもできる。対応する周波数は、以下の式から求める。
 周波数=入力のサンプリング周波数×(指標+1)÷(4N)   ・・・(8)
4N個中の隣接指標が4m+1である具体例に基づいていえば、セレクタ8は、4m、4m+1、4m+2、及び4m+3の指標を受け取り、4つのうち振幅が最も大きいものを周波数に変換して出力する。なお、指標と周波数とは、1対1の相互変換可能な値である。このため、セレクタ8は、指標を周波数に変換せずそのまま出力しても良い。
The selector 8 can also obtain the corresponding frequency from the information of the index. The corresponding frequency is calculated from the following formula.
Frequency = Input sampling frequency x (Index + 1) ÷ (4N) ・ ・ ・ (8)
Based on the specific example in which the adjacent index in 4N is 4m + 1, the selector 8 receives the indexes of 4m, 4m + 1, 4m + 2, and 4m + 3, and converts the one having the largest amplitude among the four into a frequency and outputs it. .. The index and frequency are one-to-one interchangeable values. Therefore, the selector 8 may output the index as it is without converting it into a frequency.
 以上の構成を備えることにより、実施の形態2にかかる周波数検出器は、従来の周波数検出器に比べ、処理速度を低下させることなく、かつ、回路規模も4倍に増やすことなく、周波数分解能を4倍にすることができる。より一般化した表現を用いれば、本開示技術は、位相乗算器と累算器のペアをL-1組有することで、周波数分解能をL倍に向上させることができる。 By providing the above configuration, the frequency detector according to the second embodiment has a frequency resolution that does not reduce the processing speed and does not increase the circuit scale by four times as compared with the conventional frequency detector. It can be quadrupled. Using a more generalized representation, the disclosed technique can improve the frequency resolution by a factor of L by having L-1 pairs of phase multipliers and accumulators.
 分解能をL倍にすることは、説明を要するためここで補足する。分解能をL倍にする場合、図3における変更点は、隣接算出器7に、位相乗算器と累算器のペアをL-1組備える点である。この場合の各位相乗算器の位相増分αの算出式は、以下に示す。
 α=((隣接指標 mod L)+k)×2π/(L×N)   ・・・(9)
ただし、modは剰余演算子、kは各位相乗算器が持つ通し番号である。この通し番号は1を起点とする。図3の隣接算出器7であれば、位相乗算器9aが1、位相乗算器9bが2、位相乗算器9cが3である。なお、セレクタ8での指標から周波数への変換式は、以下のとおりである。
 周波数=入力のサンプリング周波数×(指標+1)÷(L×N)   ・・・(10)
Since increasing the resolution to L times requires explanation, it is supplemented here. When the resolution is multiplied by L, the change in FIG. 3 is that the adjacent calculator 7 is provided with an L-1 pair of a phase multiplier and a accumulator. The formula for calculating the phase increment α of each phase multiplier in this case is shown below.
α = ((adjacent index mod L) + k) × 2π / (L × N) ・ ・ ・ (9)
However, mod is a remainder operator, and k is a serial number possessed by each phase multiplier. This serial number starts from 1. In the case of the adjacent calculator 7 of FIG. 3, the phase multiplier 9a is 1, the phase multiplier 9b is 2, and the phase multiplier 9c is 3. The conversion formula from the index to the frequency in the selector 8 is as follows.
Frequency = input sampling frequency x (index + 1) ÷ (L x N) ... (10)
実施の形態3.
 実施の形態1及び実施の形態2にかかる周波数検出器は、1つのピーク周波数の結果のみを出力する構成のものであった。実施の形態3にかかる周波数検出器は、同時に3つの異なる周波数の信号を検出することができる。実施の形態3にかかる周波数検出器の構成は、実施の形態2にかかる周波数検出器と同じである。また、実施の形態3にかかるFFT器4とFIFO型メモリ6の動作も、実施の形態2のものと同じである。実施の形態3の説明は、実施の形態1又は実施の形態2と共通する構成要素には同じ符号を用いる。また、実施の形態1又は実施の形態2と重複する説明は、適宜、省略する。
Embodiment 3.
The frequency detector according to the first embodiment and the second embodiment is configured to output only the result of one peak frequency. The frequency detector according to the third embodiment can detect signals of three different frequencies at the same time. The configuration of the frequency detector according to the third embodiment is the same as that of the frequency detector according to the second embodiment. Further, the operation of the FFT device 4 and the FIFO type memory 6 according to the third embodiment is the same as that of the second embodiment. In the description of the third embodiment, the same reference numerals are used for the components common to the first embodiment or the second embodiment. Further, the description overlapping with the first embodiment or the second embodiment will be omitted as appropriate.
 実施の形態3にかかる検出器5は、振幅の大きい順にピークを持つ指標を3つ選出し、それぞれの指標を2倍した値と対応する振幅をセレクタ8に出力する。また、検出器5は、各ピークに隣接するそれぞれの指標を、隣接算出器7とセレクタ8に出力する。 The detector 5 according to the third embodiment selects three indexes having peaks in descending order of amplitude, and outputs a value obtained by doubling each index and the corresponding amplitude to the selector 8. Further, the detector 5 outputs each index adjacent to each peak to the adjacent calculator 7 and the selector 8.
 隣接算出器7は、検出器5から隣接指標を受け取り、隣接指標が示す周波数における振幅を算出し、算出した振幅をセレクタ8に送る。 The adjacency calculator 7 receives the adjacency index from the detector 5, calculates the amplitude at the frequency indicated by the adjacency index, and sends the calculated amplitude to the selector 8.
 セレクタ8は、検出器5と隣接算出器7から算出結果を受け取り、各ピークにおいて振幅が大きい方を選択し、選択した指標を周波数に変換して出力線3に送る。以上の動作により、実施の形態3にかかる周波数検出器1は、3つのピーク周波数を出力することができる。より一般化した表現を用いれば、実施の形態3にかかる周波数検出器1は、隣接算出器7の内部に、選出するピークと同数だけ位相乗算器と累算器のペアを備える。 The selector 8 receives the calculation result from the detector 5 and the adjacent calculator 7, selects the one having the larger amplitude at each peak, converts the selected index into a frequency, and sends it to the output line 3. By the above operation, the frequency detector 1 according to the third embodiment can output three peak frequencies. To use a more generalized representation, the frequency detector 1 according to the third embodiment includes as many pairs of phase multipliers and accumulators as the number of selected peaks inside the adjacent calculator 7.
 検出器5は、3つのピークを選出する。この各々において、実施の形態1の場合と同様に、検出器5は、隣接指標を算出し、隣接算出器7に出力する。隣接算出器7の位相乗算器9a~9cは、3つの隣接指標を個別に受け取る。例えば、隣接指標が「2m+1,2n-1,2o+1」であれば、隣接算出器7は、それぞれの指標を元に増分を算出し、各振幅を算出し、セレクタ8に出力する。この具体例における位相増分αは、以下の式で求まる。
 位相乗算器9aの位相増分α=(2m+1)×π/N   ・・・(11A)
 位相乗算器9bの位相増分α=(2n-1)×π/N   ・・・(11B)
 位相乗算器9cの位相増分α=(2o+1)×π/N   ・・・(11C)
The detector 5 selects three peaks. In each of these, as in the case of the first embodiment, the detector 5 calculates the adjacency index and outputs it to the adjacency calculator 7. The phase multipliers 9a-9c of the adjacency calculator 7 receive three adjacency indices individually. For example, if the adjacency index is "2m + 1,2n-1,2o + 1", the adjacency calculator 7 calculates the increment based on each index, calculates each amplitude, and outputs it to the selector 8. The phase increment α in this specific example can be obtained by the following equation.
Phase increment of phase multiplier 9a α = (2m + 1) × π / N ... (11A)
Phase increment of phase multiplier 9b α = (2n-1) × π / N ... (11B)
Phase increment of phase multiplier 9c α = (2o + 1) × π / N ... (11C)
 以上の構成を備えることにより、実施の形態3にかかる周波数検出器は、従来の周波数検出器に比べ、処理速度を低下させることなく、かつ、回路規模も倍増させることなく、複数の周波数を同時に検出し、かつ、各々の周波数分解能を倍化することができる。 By providing the above configuration, the frequency detector according to the third embodiment simultaneously uses a plurality of frequencies without reducing the processing speed and doubling the circuit scale as compared with the conventional frequency detector. It can be detected and the frequency resolution of each can be doubled.
 また、上記は位相乗算器の数と同数のピークを選択する構成を示したが、適宜、選出するピーク周波数の振幅に閾値を設けることにより選択に制限を設け、算出する振幅の数を減らす構成としてもよい。言い換えれば、実施の形態3にかかる周波数検出器は、検出する複数のピーク周波数の数に上限が設けられ、ピーク周波数における振幅の大きさの順位ごとに個別の検出周波数の分解能を設定できる。 Further, although the above shows the configuration in which the same number of peaks as the number of phase multipliers is selected, the selection is limited by appropriately setting a threshold value for the amplitude of the selected peak frequency, and the number of calculated amplitudes is reduced. May be. In other words, in the frequency detector according to the third embodiment, the number of the plurality of peak frequencies to be detected is set to an upper limit, and the resolution of the individual detection frequency can be set for each order of the magnitude of the amplitude at the peak frequency.
実施の形態4.
 実施の形態3にかかる周波数検出器は、位相乗算器9(9a、9b、9c)のそれぞれが、同じ分解能を前提に構成したものである。実施の形態4にかかる周波数検出器は、位相乗算器9(9a、9b、9c)のそれぞれが、異なった分解能を想定して構成する。実施の形態4にかかる周波数検出器の構成は、実施の形態3にかかる周波数検出器と同じである。また、実施の形態4にかかるFFT器4とFIFO型メモリ6の動作も、実施の形態3のものと同じである。実施の形態4の説明は、既出の実施の形態と共通する構成要素には同じ符号を用いる。また、既出の実施の形態と重複する説明は、適宜、省略する。
Embodiment 4.
In the frequency detector according to the third embodiment, each of the phase multipliers 9 (9a, 9b, 9c) is configured on the premise of the same resolution. In the frequency detector according to the fourth embodiment, each of the phase multipliers 9 (9a, 9b, 9c) is configured assuming different resolutions. The configuration of the frequency detector according to the fourth embodiment is the same as that of the frequency detector according to the third embodiment. Further, the operation of the FFT device 4 and the FIFO type memory 6 according to the fourth embodiment is the same as that of the third embodiment. In the description of the fourth embodiment, the same reference numerals are used for the components common to the above-described embodiments. Further, the description overlapping with the above-described embodiment will be omitted as appropriate.
 実施の形態4にかかる検出器5は、振幅の大きい順にピークを持つ指標を2つ選出する。振幅が最も大きいものは指標を3倍にし、振幅が2番目に大きいものは指標を2倍にしてセレクタ8に出力する。また、検出器5は、各ピークに隣接するそれぞれの指標を、隣接算出器7とセレクタ8に出力する。 The detector 5 according to the fourth embodiment selects two indexes having peaks in descending order of amplitude. The one with the largest amplitude triples the index, and the one with the second largest amplitude doubles the index and outputs it to the selector 8. Further, the detector 5 outputs each index adjacent to each peak to the adjacent calculator 7 and the selector 8.
 隣接算出器7は、検出器5から隣接指標を受け取り、隣接指標が示す周波数における振幅を算出し、算出した振幅をセレクタ8に送る。 The adjacency calculator 7 receives the adjacency index from the detector 5, calculates the amplitude at the frequency indicated by the adjacency index, and sends the calculated amplitude to the selector 8.
 セレクタ8は、検出器5と隣接算出器7から算出結果を受け取り、各ピークにおいて振幅が大きい方を選択し、選択した指標を周波数に変換して出力線3に送る。以上の動作により、実施の形態4にかかる周波数検出器1は、2つのピーク周波数を出力することができる。また、実施の形態4にかかる周波数検出器1の周波数分解能は、最大振幅の近傍は3倍で、2つめに大きい振幅の近傍では2倍である。 The selector 8 receives the calculation result from the detector 5 and the adjacent calculator 7, selects the one having the larger amplitude at each peak, converts the selected index into a frequency, and sends it to the output line 3. By the above operation, the frequency detector 1 according to the fourth embodiment can output two peak frequencies. Further, the frequency resolution of the frequency detector 1 according to the fourth embodiment is three times in the vicinity of the maximum amplitude and twice in the vicinity of the second largest amplitude.
 実施の形態4にかかる隣接算出器7の動作は、具体例により明らかにされる。具体例は、隣接算出器7が受け取る隣接指標が「3m+1,2n-1」とする。3m+1は最大振幅の隣接指標、2n-1は2番目に大きい振幅の隣接指標とする。実施の形態4にかかる周波数検出器は、隣接算出器7にある位相乗算器と累算器を2:1に分け、最大振幅の隣接指標に2組、2番目に大きい振幅の隣接指標に1組割り当てる。各組の動作は、既出の実施の形態と同様である。相違点は、位相乗算器9(9a、9b、9c)の位相増分αのみである。この具体例における位相増分αは、以下の式で求まる。
 位相乗算器9aの位相増分α=(3m+1)×2π/3N   ・・・(12A)
 位相乗算器9bの位相増分α=(3m+2)×2π/3N   ・・・(12B)
 位相乗算器9cの位相増分α=(2n-1)×π/N   ・・・(12C)
The operation of the adjacent calculator 7 according to the fourth embodiment will be clarified by a specific example. In a specific example, the adjacency index received by the adjacency calculator 7 is "3m + 1,2n-1". 3m + 1 is an adjacency index of the maximum amplitude, and 2n-1 is an adjacency index of the second largest amplitude. The frequency detector according to the fourth embodiment divides the phase multiplier and the accumulator in the adjacency calculator 7 into 2: 1 and sets two as the adjacency index of the maximum amplitude and 1 as the adjacency index of the second largest amplitude. Assign a pair. The operation of each set is the same as that of the above-described embodiment. The only difference is the phase increment α of the phase multiplier 9 (9a, 9b, 9c). The phase increment α in this specific example can be obtained by the following equation.
Phase increment of phase multiplier 9a α = (3m + 1) × 2π / 3N ・ ・ ・ (12A)
Phase increment of phase multiplier 9b α = (3m + 2) × 2π / 3N ・ ・ ・ (12B)
Phase increment of phase multiplier 9c α = (2n-1) × π / N ... (12C)
 以上の構成を備えることにより、実施の形態4にかかる周波数検出器は、従来の周波数検出器に比べ、処理速度を低下させることなく、かつ、回路規模も倍増させることなく、複数の周波数を同時に検出し、かつ、各々の周波数分解能を向上させることができる。さらに、実施の形態4にかかる周波数検出器は、周波数分解能の向上度合を調整することができる。 By providing the above configuration, the frequency detector according to the fourth embodiment simultaneously uses a plurality of frequencies without reducing the processing speed and doubling the circuit scale as compared with the conventional frequency detector. It can be detected and the frequency resolution of each can be improved. Further, the frequency detector according to the fourth embodiment can adjust the degree of improvement in frequency resolution.
 実施の形態3及び実施の形態4にかかる周波数検出器は、検出する全ての周波数の分解能を2倍以上としているが、これに限定しない。本開示技術にかかる周波数検出器は、分解能を向上させないピークを出力に含んでいても良い。この場合、検出器5は、分解能を向上させないピークの指標もセレクタ8に出力するが、隣接算出器7には分解能を向上させる分の隣接指標のみを送信すればよい。 The frequency detector according to the third and fourth embodiments doubles or more the resolution of all the detected frequencies, but is not limited to this. The frequency detector according to the present disclosure technique may include a peak in the output that does not improve the resolution. In this case, the detector 5 also outputs the index of the peak that does not improve the resolution to the selector 8, but it is sufficient to transmit only the adjacent index that improves the resolution to the adjacent calculator 7.
実施の形態5.
 既出の実施の形態にかかる周波数検出器は、内部にFIFO型メモリ6をそなえていたが、これに限定するものではない。実施の形態5にかかる周波数検出器は、外部のメモリを利用する構成である。図4は、実施の形態5にかかる周波数検出器の構成を示すブロック図である。
Embodiment 5.
The frequency detector according to the above-described embodiment has a FIFO type memory 6 inside, but the frequency detector is not limited to this. The frequency detector according to the fifth embodiment is configured to use an external memory. FIG. 4 is a block diagram showing a configuration of the frequency detector according to the fifth embodiment.
 実施の形態5にかかる周波数検出器1は、FIFO型メモリ6に変えて、メモリ制御器11を備える。メモリ制御器11は、外部メモリ12と接続されており、外部メモリ12を制御する。 The frequency detector 1 according to the fifth embodiment includes a memory controller 11 instead of the FIFO type memory 6. The memory controller 11 is connected to the external memory 12 and controls the external memory 12.
 実施の形態5にかかる周波数検出器1は、外部メモリ12を利用することにより、既出の実施の形態にかかる装置よりもさらに回路規模を削減している。 The frequency detector 1 according to the fifth embodiment uses the external memory 12 to further reduce the circuit scale as compared with the apparatus according to the above-described embodiment.
実施の形態6.
 既出の実施の形態にかかる周波数検出器は、FIFO型メモリ6又は外部メモリ12を制御するメモリ制御器11が隣接算出器7の前段に設けられている構成である。実施の形態6にかかる周波数検出器は、隣接算出器7の前段に何も設けられてなく、入力線2が直に隣接算出器7へと接続されている構成を採用している。図5は、実施の形態6にかかる周波数検出器の構成を示すブロック図である。
Embodiment 6.
The frequency detector according to the above-described embodiment has a configuration in which a memory controller 11 for controlling a FIFO type memory 6 or an external memory 12 is provided in front of an adjacent calculator 7. The frequency detector according to the sixth embodiment adopts a configuration in which nothing is provided in front of the adjacent calculator 7 and the input line 2 is directly connected to the adjacent calculator 7. FIG. 5 is a block diagram showing a configuration of the frequency detector according to the sixth embodiment.
 既出の実施の形態にかかる周波数検出器は、隣接算出器7の前段に設けられたFIFO型メモリ6の効果により、FFT器4と隣接算出器7は、同じ入力データを用いることが保証されている。一方、実施の形態6にかかる周波数検出器は、あえて前段に設けられたFIFO型メモリ6を外し、積極的に「FFT器4と検出器5との間で生じる処理速度の遅延」を利用する。なお、本開示技術にかかる周波数検出器を使用する前提として、サンプリングする信号は、N個のサンプリングを要する期間、すなわちサンプリング周期TにNを乗算した期間において、周期的な信号であるとしている。 As for the frequency detector according to the above-described embodiment, it is guaranteed that the FFT device 4 and the adjacent calculator 7 use the same input data due to the effect of the FIFO type memory 6 provided in front of the adjacent calculator 7. There is. On the other hand, in the frequency detector according to the sixth embodiment, the FIFO type memory 6 provided in the previous stage is intentionally removed, and the "delay in processing speed caused between the FFT device 4 and the detector 5" is positively used. .. As a premise of using the frequency detector according to the present disclosure technique, it is assumed that the signal to be sampled is a periodic signal in a period requiring N samplings, that is, a period obtained by multiplying the sampling period T by N.
 図6は、実施の形態6にかかる周波数検出器の処理タイミングを示す参考図である。FFT器4が図6に示す遅延を持つとき、FFT器4の最初の出力結果から算出した隣接指標が得られるのは、データの塊の単位で4番目の手前である。このため、隣接算出器7は、1番目から3番目のデータの塊に対して、隣接指標の振幅を算出できない。隣接算出器7が最初に振幅を出力するのは、4番目(Data#4)のデータの塊で算出した振幅である。また、その算出に用いた隣接指標は、最初(Data#1)のデータの塊で算出した指標である。このため、検出器5から4番目(Data#4)のデータの塊で算出した隣接指標を受け取った際、2つを比較し、隣接指標が一致したら振幅をセレクタ8に送信し、不一致の場合は、「振幅なし」をセレクタ8に出力する。これにより、セレクタ8は、隣接算出器7から振幅を受け取った際に、分解能を向上させた周波数を出力し、「振幅なし」を受信した場合は、従来の分解能の周波数を出力する。 FIG. 6 is a reference diagram showing the processing timing of the frequency detector according to the sixth embodiment. When the FFT device 4 has the delay shown in FIG. 6, the adjacent index calculated from the first output result of the FFT device 4 is obtained in the fourth front in the unit of the data block. Therefore, the adjacency calculator 7 cannot calculate the amplitude of the adjacency index for the first to third chunks of data. The adjacent calculator 7 first outputs the amplitude is the amplitude calculated from the fourth (Data # 4) chunk of data. The adjacent index used for the calculation is an index calculated from the first (Data # 1) chunk of data. Therefore, when the adjacent index calculated from the 4th (Data # 4) data block from the detector 5 is received, the two are compared, and if the adjacent indexes match, the amplitude is transmitted to the selector 8 and if they do not match. Outputs "no amplitude" to the selector 8. As a result, the selector 8 outputs the frequency with improved resolution when receiving the amplitude from the adjacent calculator 7, and outputs the frequency with the conventional resolution when receiving "no amplitude".
 本開示技術にかかる周波数検出器は、サンプリングする信号の周期がNTであるとしているため、どのデータの塊も、位相を含めて、同じであるとしている。すなわち、実施の形態6にかかる周波数検出器は、上記性質を利用し、隣接算出器7が投機的実行を行っている。よって、以上の構成を備えることにより、実施の形態6にかかる周波数検出器は、検出する信号の周波数変動がほぼない期間において、実施の形態1のものよりも回路規模を削減し、実施の形態1のものと同様の効果を得ることができる。 Since the frequency detector according to the present disclosed technique has a period of the signal to be sampled NT, it is assumed that all data blocks including the phase are the same. That is, the frequency detector according to the sixth embodiment utilizes the above-mentioned property, and the adjacent calculator 7 performs speculative execution. Therefore, by providing the above configuration, the frequency detector according to the sixth embodiment reduces the circuit scale as compared with the one according to the first embodiment in a period in which the frequency fluctuation of the signal to be detected is almost nonexistent. The same effect as that of 1 can be obtained.
実施の形態7.
 既出の実施の形態にかかる周波数検出器は、専用の処理回路を用いることを前提に説明を行ったが、これに限定するものではない。実施の形態7にかかる周波数検出器は、既出の実施の形態にかかる周波数検出器の機能を、一般的なプロセッサを用いて実現する構成を採用する。図7は、実施の形態7にかかる周波数検出器の構成を示すブロック図である。
Embodiment 7.
The frequency detector according to the above-described embodiment has been described on the premise that a dedicated processing circuit is used, but the present invention is not limited to this. The frequency detector according to the seventh embodiment adopts a configuration that realizes the function of the frequency detector according to the above-described embodiment by using a general processor. FIG. 7 is a block diagram showing a configuration of the frequency detector according to the seventh embodiment.
 図7が示すように、実施の形態7にかかる周波数検出器21は、データを受け取る入力線22、検出結果を出力する出力線23、外部との入出力を行う入出力器24、データ等を蓄えるメモリ25、フーリエ変換等の演算処理を行うプロセッサ26を備える。 As shown in FIG. 7, the frequency detector 21 according to the seventh embodiment has an input line 22 for receiving data, an output line 23 for outputting a detection result, an input / output device 24 for input / output to / from the outside, data, and the like. It includes a memory 25 for storing and a processor 26 for performing arithmetic processing such as Fourier transform.
 入出力器24は、入力線22を介して受信するN個のサンプリングデータを、メモリ25に出力する。 The input / output device 24 outputs N sampling data received via the input line 22 to the memory 25.
 プロセッサ26は、メモリ25に蓄えられたN個のサンプリングデータに対しフーリエ変換を実施する。プロセッサ26は、フーリエ変換の演算結果であるN個の複素数に対して、絶対値演算を行い、各周波数における振幅を算出する。プロセッサ26は、振幅が最大となる周波数の指標を選出する。プロセッサ26は、前記選出した振幅最大の指標から、隣接指標を算出する。プロセッサ26は、メモリ25に蓄えられたN個のサンプリングデータに対して位相を乗算し、その総和を算出する。乗算する位相は、初期値を0として、隣接する指標に応じた位相増分を、乗算する毎に加えていく。プロセッサ26は、前記最大振幅と前記総和の絶対値とを比較して、大きい方に対応する指標を選択する。プロセッサ26は、前記選択した指標を周波数に変換し、その周波数の値を入出力器24を介して出力線23へ出力する。 The processor 26 performs a Fourier transform on N sampling data stored in the memory 25. The processor 26 performs an absolute value calculation on N complex numbers which are the calculation results of the Fourier transform, and calculates the amplitude at each frequency. The processor 26 selects an index of the frequency having the maximum amplitude. The processor 26 calculates an adjacent index from the selected index having the maximum amplitude. The processor 26 multiplies the N sampling data stored in the memory 25 by the phase and calculates the total sum. As for the phase to be multiplied, the initial value is set to 0, and the phase increment corresponding to the adjacent index is added every time the multiplication is performed. The processor 26 compares the maximum amplitude with the absolute value of the sum, and selects the index corresponding to the larger one. The processor 26 converts the selected index into a frequency, and outputs the value of the frequency to the output line 23 via the input / output device 24.
 以上の動作により、実施の形態7にかかる周波数検出器21は、振幅が最大となる周波数を出力できる。 By the above operation, the frequency detector 21 according to the seventh embodiment can output the frequency having the maximum amplitude.
 周波数検出器 1、21; 入力線 2、22; 出力線 3、23; FFT器 4; 検出器 5; FIFO型メモリ 6; 隣接算出器 7; セレクタ 8; 位相乗算器 9、9a、9b、9c; 累算器 10、10a、10b、10c; メモリ制御器 11; 外部メモリ 12; 入出力器 24; メモリ 25; プロセッサ 26。 Frequency detector 1, 21; Input line 2, 22; Output line 3, 23; FFT device 4; Detector 5; FIFA type memory 6; Adjacent calculator 7; Selector 8; Phase multiplier 9, 9a, 9b, 9c Accumulator 10, 10a, 10b, 10c; Memory controller 11; External memory 12; Input / output device 24; Memory 25; Processor 26.

Claims (7)

  1.  N個のサンプリングデータからN個のフーリエ変換結果を算出するFFT器と、
     前記フーリエ変換結果のうち、振幅が極大となる周波数の順番である指標を検出する検出器と、
     を備える周波数検出器であって、
     周波数検出器は、さらに位相乗算器と累算器とを有する隣接算出器を備え、
     前記隣接算出器は、前記指標に対応する周波数と前記指標の前又は後の指標に対応する周波数との中間の周波数における振幅を算出することを特徴とする周波数検出器。
    An FFT device that calculates N Fourier transform results from N sampling data,
    Among the Fourier transform results, a detector that detects an index that is in the order of frequencies at which the amplitude becomes maximum, and a detector.
    It is a frequency detector equipped with
    The frequency detector further comprises an adjacency calculator with a phase multiplier and a accumulator.
    The adjacent calculator is a frequency detector that calculates an amplitude at a frequency intermediate between a frequency corresponding to the index and a frequency corresponding to an index before or after the index.
  2.  前記隣接算出器は、前記位相乗算器と前記累算器とからなる回路を複数備えていることを特徴とする請求項1に記載の周波数検出器。 The frequency detector according to claim 1, wherein the adjacent calculator includes a plurality of circuits including the phase multiplier and the accumulator.
  3.  請求項1に記載の周波数検出器であって、振幅が極大となるピーク周波数を複数検出することを特徴とする周波数検出器。 The frequency detector according to claim 1, wherein a plurality of peak frequencies having maximum amplitudes are detected.
  4.  請求項3に記載の周波数検出器であって、検出する複数の前記ピーク周波数は数に上限が設けられ、前記ピーク周波数における振幅の大きさの順位ごとに個別の検出周波数の分解能を設定できることを特徴とする周波数検出器。 The frequency detector according to claim 3, wherein the number of the plurality of the peak frequencies to be detected is set to an upper limit, and the resolution of each detection frequency can be set for each order of the magnitude of the amplitude at the peak frequency. Characteristic frequency detector.
  5.  請求項1から請求項4のいずれか1項に記載の周波数検出器であって、外部メモリを制御するメモリ制御器を備えることを特徴とする周波数検出器。 The frequency detector according to any one of claims 1 to 4, wherein the frequency detector includes a memory controller for controlling an external memory.
  6.  請求項1から請求項4のいずれか1項に記載の周波数検出器であって、前記隣接算出器は投機的実行を行っていることを特徴とする周波数検出器。 The frequency detector according to any one of claims 1 to 4, wherein the adjacent calculator performs speculative execution.
  7.  N個のサンプリングデータからN個のフーリエ変換結果を算出する処理を実行し、
     前記フーリエ変換結果のうち、振幅が極大となる周波数の順番である指標を検出する処理を実行する、プロセッサを備える周波数検出器であって、
     前記プロセッサは、さらに位相乗算と累算を実行し、
     前記指標に対応する周波数と前記指標の前又は後の指標に対応する周波数との中間の周波数における振幅を算出することを特徴とする周波数検出器。
    The process of calculating the N Fourier transform results from the N sampling data is executed.
    A frequency detector including a processor that executes a process of detecting an index in the order of frequencies at which the amplitude becomes maximum among the Fourier transform results.
    The processor further performs phase multiplication and accumulation,
    A frequency detector comprising calculating an amplitude at a frequency intermediate between a frequency corresponding to the index and a frequency corresponding to the index before or after the index.
PCT/JP2020/040780 2020-10-30 2020-10-30 Frequency detector WO2022091329A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/JP2020/040780 WO2022091329A1 (en) 2020-10-30 2020-10-30 Frequency detector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2020/040780 WO2022091329A1 (en) 2020-10-30 2020-10-30 Frequency detector

Publications (1)

Publication Number Publication Date
WO2022091329A1 true WO2022091329A1 (en) 2022-05-05

Family

ID=81382076

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2020/040780 WO2022091329A1 (en) 2020-10-30 2020-10-30 Frequency detector

Country Status (1)

Country Link
WO (1) WO2022091329A1 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10213613A (en) * 1996-11-29 1998-08-11 Anritsu Corp Frequency measuring apparatus
JP2001042033A (en) * 1999-07-30 2001-02-16 Fujitsu Ten Ltd Peak frequency computing method in fft signal processing
JP2006234811A (en) * 2005-02-25 2006-09-07 Nemerix Sa Method obtaining frequency difference between input signal and standard frequency and discriminator executing this method, gps receiver and computer program
KR20080089953A (en) * 2007-04-03 2008-10-08 주식회사 대웅컨설턴트 Method for measuring unique frequency of vibrating wire
US20160097671A1 (en) * 2013-05-16 2016-04-07 Endress+Hauser Gmbh+Co. Kg Fill level measurement with improved distance determination
CN105891600A (en) * 2015-01-23 2016-08-24 北京空间飞行器总体设计部 Quaternary phase shift keying signal spectrum estimation method
US20200011911A1 (en) * 2017-04-13 2020-01-09 No. 24 Research Institute of China Electronics Technology Group Corporation High-precision frequency measuring system and method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10213613A (en) * 1996-11-29 1998-08-11 Anritsu Corp Frequency measuring apparatus
JP2001042033A (en) * 1999-07-30 2001-02-16 Fujitsu Ten Ltd Peak frequency computing method in fft signal processing
JP2006234811A (en) * 2005-02-25 2006-09-07 Nemerix Sa Method obtaining frequency difference between input signal and standard frequency and discriminator executing this method, gps receiver and computer program
KR20080089953A (en) * 2007-04-03 2008-10-08 주식회사 대웅컨설턴트 Method for measuring unique frequency of vibrating wire
US20160097671A1 (en) * 2013-05-16 2016-04-07 Endress+Hauser Gmbh+Co. Kg Fill level measurement with improved distance determination
CN105891600A (en) * 2015-01-23 2016-08-24 北京空间飞行器总体设计部 Quaternary phase shift keying signal spectrum estimation method
US20200011911A1 (en) * 2017-04-13 2020-01-09 No. 24 Research Institute of China Electronics Technology Group Corporation High-precision frequency measuring system and method

Similar Documents

Publication Publication Date Title
US20200011911A1 (en) High-precision frequency measuring system and method
JPH11515100A (en) Acoustic measurement of fluid flow.
JPH07100064B2 (en) Ultrasonic Doppler velocity meter
JP2019165365A (en) Signal processing device
WO2022091329A1 (en) Frequency detector
JP5492606B2 (en) Arithmetic device and flow meter provided with arithmetic device
JP5035815B2 (en) Frequency measuring device
US6750798B2 (en) Apparatus for processing knock sensor signal
JPWO2003036313A1 (en) Clock skew measuring apparatus and clock skew measuring method
JP6527472B2 (en) Semiconductor device, position detection device, and control method of semiconductor device
JP6425298B1 (en) Phase analysis circuit
JP3728756B2 (en) Device for correcting delay time of discrete Fourier transform value
JP7204064B2 (en) frequency detector
JP2001264370A (en) Frequency measuring apparatus
RU2568391C1 (en) Generator of sinusoidal signal
US20090125576A1 (en) Pade approximation convert circuit of direct digital frequency synthesizer
US8339160B2 (en) Clock generating device and jitter reducing method in the clock generating device
CN100378463C (en) Wave detection device, method, program, and recording medium
RU2591742C1 (en) Method of measuring frequency of harmonic signal and device therefor
RU2137142C1 (en) Method measuring law of retuning of carrier frequency of radio pulses with frequency modulation and device to realize it
US9939475B2 (en) Phase frequency detection device
RU2415392C1 (en) Device for remote pressure measurement
Divya et al. Implementation of Radar Digital Receiver based on Xeon-Processor using Intel IPP
CN101490671A (en) Folding of input data values to a transform function
SU813290A1 (en) Device for measuring central frequency of signal spectrum

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20959847

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20959847

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: JP