CN103176042A - Frequency measurement method and device and frequency meter - Google Patents

Frequency measurement method and device and frequency meter Download PDF

Info

Publication number
CN103176042A
CN103176042A CN2011104315346A CN201110431534A CN103176042A CN 103176042 A CN103176042 A CN 103176042A CN 2011104315346 A CN2011104315346 A CN 2011104315346A CN 201110431534 A CN201110431534 A CN 201110431534A CN 103176042 A CN103176042 A CN 103176042A
Authority
CN
China
Prior art keywords
frequency
frequency measurement
measured signal
edge
counter
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
CN2011104315346A
Other languages
Chinese (zh)
Other versions
CN103176042B (en
Inventor
张沁涛
丁新宇
王悦
王铁军
李维森
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Rigol Technologies Inc
Original Assignee
Rigol Technologies Inc
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 Rigol Technologies Inc filed Critical Rigol Technologies Inc
Priority to CN201110431534.6A priority Critical patent/CN103176042B/en
Publication of CN103176042A publication Critical patent/CN103176042A/en
Application granted granted Critical
Publication of CN103176042B publication Critical patent/CN103176042B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Measuring Frequencies, Analyzing Spectra (AREA)

Abstract

An embodiment of the invention provides a frequency measurement method and device and a frequency meter. The frequency measurement method includes that a signal to be measured is changed to a standard digital signal through a signal conditioning circuit and then is input into a digital logic device; the edge of the signal to be measured is detected through an edge detection circuit in the digital logic device; and if the edge of the signal to be measured is detected to appear, a frequency measurement control state machine performs equal precision frequency measurement or period measurement according to frequency measurement instruction signals so as to obtain the frequency of the signal to be measured. According to the frequency measurement method and device and the frequency meter, integrity and flexibility of the digital logic device are used, the circuit structure is simplified, and influence of external environments on a frequency measurement circuit is reduced; and simultaneously, when a system is abnormal, the initial state of the system can be restored through reset operation, robustness of the frequency measurement system is improved, the period measurement mode is added, and low-frequency signal measurement time is reduced.

Description

A kind of frequency measurement method, device and frequency meter
Technical field
The present invention relates to the signal measurement field, relate in particular to a kind of frequency measurement method, device and frequency meter.
Background technology
In electronic technology, frequency is one of the most basic parameter, and with measurement scheme, the measurement result of many electric parameters, very close relationship is arranged.Therefore the measurement of frequency just seems even more important.
China Patent No. for the patented claim of CN2274348Y provide a kind of low cost, etc. the full-automatic frequency meter (shown in Figure 1) of precision.Its scheme is comprised of amplification and rectification circuit, gate circuit, counting circuit, synchronizing circuit, timing circuit, time base circuit, cpu circuit and display circuit.
the principle of work of such scheme is as follows: measured signal is inputted from the amplification and rectification circuit input end, amplification and rectification circuit is output as the TTL digital signal of standard, the opening time of gate circuit is controlled by synchronizing circuit, synchronizing circuit is controlled the circuit that clocks simultaneously, so that the zero-time of timing and counting was synchronizeed with the gate circuit opening time, counting circuit, timing circuit, display circuit is connected with cpu circuit by the data bus form, when synchronizing circuit sends interrupt request, cpu circuit reads in and processes the data in counting circuit and timing circuit, measured signal frequency data through precision such as just obtaining after the processing of high precision floating-point operation, and certainly select range by the frequency size of measuring by software control, deliver at last display circuit.When beginning to measure, the I/O end of cpu circuit is to synchronizing circuit output high level, when negative edge appears in the measured signal after amplifying shaping, synchronizing circuit is output as high level, when cpu circuit is measured synchronizing circuit and is output as high level, continue to keep the I/O end to synchronizing circuit output high level a period of time, the length of this retention time is a fixed value that sets in advance, afterwards, the I/O end is to the synchronizing circuit output low level, when if negative edge appears in the measured signal after amplification shaping this moment, the synchronizing circuit output low level.
the key of such scheme is that gate circuit is controlled by synchronizing circuit, and the negative edge of the front end pulse of the measured signal after the rising edge of the control signal of synchronizing circuit output and amplification shaping is synchronizeed, and the negative edge of this control signal with amplify shaping after the front end pulse edge of measured signal synchronize, thereby making the gate circuit opening time is the integral multiple in the cycle of measured signal, and then do not produce the intrinsic quantization error of mantissa when guaranteeing counting, the frequency values f=N/T of measured signal, wherein N is the pulse number of gate circuit in the opening time, T is the gate circuit opening time, the frequency measurement accuracy of this method and the frequency of measured signal are just irrelevant, determined by gate circuit open-interval measuring accuracy, thereby realize that the low-and high-frequency signal is had same measuring accuracy, namely realized equal precision measurement.
But such scheme still exists following defective:
1, whole scheme adopts discrete component to build hardware circuit to realize the frequency measurement function having increased the difficulty of PCB Butut and the difficulty of debugging, and the quality of frequency measurement is subjected to the impact of external environment such as temperature, humidity, voltage, noise larger.
2, the synchronizing circuit of key in scheme, be made of JK flip-flop and phase inverter, in case metastable state occurs in the JK flip-flop circuit, circuit can not be eliminated, and mistake will be continued, and causes the whole system cisco unity malfunction.
3, owing to only adopting equal precision measuring frequency way, this can increase Measuring Time greatly when measuring low frequency signal.
Summary of the invention
The embodiment of the present invention provides a kind of frequency measurement method, device and frequency meter, is used for simplifying circuit structure, reduces external environment condition to the impact of frequency measurement circuit, increases the robustness of Frequency Measurement System and the Measuring Time that reduces low frequency signal.
On the one hand, the embodiment of the present invention provides a kind of frequency measurement method, and the method comprises: measured signal is become the digital signal of standard by signal conditioning circuit after, the input digital logic device is inner; Detect the edge of described measured signal by edge sense circuit in digital logic device inside; Occur if the edge of described measured signal detected, frequency measurement state of a control machine waits Precision Measuring Frequency or survey cycle to obtain the frequency of described measured signal according to the frequency measurement command signal.
Preferably, in the embodiment of the present invention, frequency measurement state of a control machine waits Precision Measuring Frequency to comprise according to the frequency measurement command signal: when occurring at the edge of described measured signal, frequency measurement state of a control machine enables time counter and measured signal number timer simultaneously, when the gate time that the value arrival of described time counter is preset and the edge appearance that measured signal again detected, finish measure and calculate the measured signal frequency according to described time counter and measured signal number timer, the edge that wherein detects for twice is all upper edge or lower edge.
Preferably, carrying out the survey cycle according to the frequency measurement command signal in the embodiment of the present invention comprises: when occurring at the edge of described measured signal, frequency measurement state of a control machine enables time counter, when the edge that measured signal again detected occurs, finish measuring and calculate the measured signal frequency according to the value of described time counter, the edge that wherein detects for twice is all upper edge or lower edge.
Preferably, the method for the embodiment of the present invention also comprises: if after receiving the frequency measurement command signal, do not complete frequency measurement through Preset Time, Frequency Measurement System resets.
Preferably, the method of the embodiment of the present invention also comprises: automatically carry out frequency measurement according to the frequency measurement command signal, specifically comprise: judge whether surpassed maximal value gate time, if surpassed maximal value, survey cycleoperation to measure the frequency of measured signal, if do not surpass maximal value, wait Precision Measuring Frequency to operate to measure the frequency of measured signal.
Preferably, do not surpass maximal value and wait Precision Measuring Frequency to operate to measure the measured signal frequency to comprise when gate time in the embodiment of the present invention: step 1, send stop the frequency measurement order after triggering one inferior Precision Measuring Frequency; Whether step 2, complete through the Precision Measuring Frequency such as judging after the stand-by period, enter step 3 if complete, enter step 4 if do not complete, the wherein said stand-by period is greater than set gate time; Step 3, send stop the frequency measurement order and a retaking of a year or grade measured signal counter timely between the value of counter, when the value of described counter greater than default number Nfreq, and the value of described counter and the value of described time counter differed 1 o'clock at least, perhaps work as the value of described counter greater than default number Nfreq, and current gate time, when being maximal value, frequency measurement was completed; Otherwise change gate time and return to step 1; Step 4, send stop the frequency measurement order and a retaking of a year or grade measured signal counter timely between the value of counter, when the value of described counter greater than default number Nfreq, and the value of described counter and the value of described time counter differed 1 o'clock at least, increased the Precision Measuring Frequencies such as described stand-by period and wait and completed; Otherwise change gate time and return to step 1.
On the other hand, the embodiment of the present invention also provides a kind of frequency measuring equipment, this device comprises: signal conditioning circuit, digital logic device, digital signal processor and Man Machine Interface, described digital logic device comprises edge sense circuit, frequency measurement state of a control machine and frequency measurement module, wherein: signal conditioning circuit, be used for measured signal is become the digital signal of standard, and export to edge sense circuit and frequency measurement module in digital logic device; Digital signal processor is used for the frequency measurement command signal by described Man Machine Interface reception user; Edge sense circuit is for detection of the edge of described measured signal; Frequency measurement state of a control machine when occurring for the edge that measured signal detected when described edge sense circuit, is controlled described frequency measurement module according to described frequency measurement command signal and is waited Precision Measuring Frequency or survey cycle to obtain the frequency of described measured signal.
Preferably, the frequency measurement module of the embodiment of the present invention comprises time counter and measured signal number timer, when waiting Precision Measuring Frequency, when described frequency measurement state of a control machine specifically is used for occurring at the edge of described measured signal, frequency measurement state of a control machine enables time counter and measured signal number timer simultaneously, when the gate time that the value arrival of described time counter is preset and the edge appearance that measured signal again detected, finish to measure, the edge that wherein detects for twice is all upper edge or lower edge; Described digital signal processor is used for calculating the measured signal frequency according to the value of described time counter and measured signal number timer.
Preferably, the embodiment of the present invention is when surveying the cycle, when described frequency measurement state of a control machine specifically is used for occurring at the edge of described measured signal, frequency measurement state of a control machine enables time counter, when the edge that measured signal again detected occurs, finish to measure, the edge that wherein detects for twice is all upper edge or lower edge; Described digital signal processor is used for calculating the measured signal frequency according to the value of described time counter.
Preferably, the digital logic device of the embodiment of the present invention also comprises reseting module, is used for after receiving the frequency measurement command signal, if do not complete frequency measurement through Preset Time, frequency measuring device resets.
Preferably, the digital signal processor of the embodiment of the present invention also is used for receiving by described Man Machine Interface user's automatic frequency measurement command signal, described digital signal processor also comprises: judging unit, be used for judging whether arrived maximal value gate time when receiving the automatic frequency measurement command signal; Deng the Precision Measuring Frequency control module, be used for waiting Precision Measuring Frequency to control when not surpass maximal value gate time; Survey periodic Control unit is used for surveying periodic Control when surpass maximal value gate time.
Preferably, the Precision Measuring Frequency control module that waits of the embodiment of the present invention comprises: stop the frequency measurement module, be used for transmission and stop the frequency measurement order; Trigger module is used for triggering an inferior Precision Measuring Frequency; Whether the first judge module is used for completing through Precision Measuring Frequencies such as judgements after the stand-by period, and waiting time is greater than set gate time; The retaking of a year or grade module, be used for a retaking of a year or grade measured signal counter timely between the value of counter; The second judge module, whether be used for the value of a judgement counter greater than default number Nfreq, and whether the value of described counter and the value of described time counter differ 1 at least, perhaps judgement when be maximal value current gate time, judges that whether the value of described counter is greater than default number Nfreq; Change module gate time, be used for when described the second judge module when the determination result is NO, change gate time; Stand-by period changes module, be used for not completing when Precision Measuring Frequencies such as described the first judge module judgements, and described the second judge module increases the described stand-by period when being judged as YES.
On the other hand, the embodiment of the present invention also provides a kind of frequency meter, comprises frequency measuring equipment as above.
The embodiment of the present invention has been utilized integration and the dirigibility of digital logic device, simplified circuit structure, reduced the impact of external environment condition on frequency measurement circuit, can also restPose by reset operation when system's appearance is abnormal simultaneously, increase the robustness of Frequency Measurement System, also increase at last the survey cyclic pattern, reduced the Measuring Time of low frequency signal.
Description of drawings
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, the below will do to introduce simply to the accompanying drawing of required use in embodiment or description of the Prior Art, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, not paying under the prerequisite of creating work, can also obtain according to these accompanying drawings other accompanying drawing.
The schematic flow sheet of a kind of frequency measurement method that Fig. 1 provides for the embodiment of the present invention;
The schematic flow sheet that Fig. 2 measures for a kind of automatic frequency that the embodiment of the present invention provides;
The structural representation of a kind of frequency measuring equipment that Fig. 3 provides for the embodiment of the present invention;
The structural representation of a kind of frequency measurement module that Fig. 4 provides for the embodiment of the present invention;
A kind of structural representation that waits the Precision Measuring Frequency control module that Fig. 5 provides for the embodiment of the present invention;
The structural representation of a kind of frequency meter that Fig. 6 provides for the embodiment of the present invention.
Embodiment
In order to make the purpose, technical solutions and advantages of the present invention clearer, below in conjunction with embodiment and accompanying drawing, the present invention is described in further details.At this, exemplary embodiment of the present invention and explanation thereof are used for explanation the present invention, but not as a limitation of the invention.
Be illustrated in figure 1 as the schematic flow sheet of a kind of frequency measurement method that the embodiment of the present invention provides, the method comprises the steps:
S101: measured signal is become the digital signal of standard by signal conditioning circuit after, the input digital logic device is inner.
In the present embodiment, the operations such as signal conditioning circuit can amplify to measured signal, filtering, decay, thereby make it convert the digital signal of the standard that digital logic device can identify to, it is pointed out that this signal conditioning circuit can't change the frequency of measured signal.And the digital logic device in the present embodiment is field programmable gate array (Field-Programmable Gate Array such as adopting, FPGA), CPLD (Complex Programmable Logic Device, CPLD) or Application Specific Integrated Circuit (Application Specific Integrated Circuit, ASIC) etc.
S102: the edge that detects measured signal in digital logic device by edge sense circuit.
In the present embodiment, both can set the upper edge of detecting measured signal, also can set the lower edge of measured signal, do not limited at this.
S103: occur if the edge of measured signal detected, frequency measurement state of a control machine waits Precision Measuring Frequency or survey cycle to obtain the frequency of measured signal according to the frequency measurement command signal.
Frequency measurement state of a control machine in the present embodiment also belongs to the part of digital logic device, it can receive the frequency measurement command signal that the user issues, the user be such as can issue the frequency measurement command signal to digital signal processor (DSP) by Man Machine Interface, and then conveys to frequency measurement state of a control machine by DSP and control the frequency measurement operation.In the present embodiment, according to the difference of user instruction, can wait respectively Precision Measuring Frequency or side cycleoperation.
as one embodiment of the present of invention, when frequency measurement state of a control machine waits Precision Measuring Frequency to comprise the steps: to occur at the edge of measured signal according to the frequency measurement command signal, frequency measurement state of a control machine enables time counter and the measured signal number timer of digital logic device inside simultaneously, (this edge type is identical with the edge type that begins to count time institute's foundation when the edge that the value of time counter arrives default gate time and measured signal again detected occurs, namely be all upper edge or lower edge), finish measure and calculate the measured signal frequency according to time counter and measured signal number timer.The computation process of last frequency can be completed by DSP in the present embodiment, and the value of supposing time counter is T, and the value of a measured signal counter is N, and the frequency of measured signal is f=N/T.
As one embodiment of the present of invention, frequency measurement state of a control machine according to the frequency measurement command signal carry out the survey cycle when comprising the steps: to occur at the edge of measured signal frequency measurement state of a control machine enable time counter, when the edge that measured signal again detected occurs, finish to measure and calculate the measured signal frequency according to the value of time counter.The computation process of last frequency can be completed by DSP in the present embodiment, and the value of supposing time counter is T, and the frequency of measured signal is f=1/T.
In the present embodiment, only need use time counter and two stone counters of measured signal counter when waiting Precision Measuring Frequency, reduced by a counter with respect to 3 counters of prior art, thereby the practicality of having saved counter reduce the waste of hardware resource.As one embodiment of the present of invention, if DSP after receiving the frequency measurement command signal, does not complete frequency measurement through Preset Time, the frequency measurement state of a control that resets machine, time counter and a measured signal counter are returned original state.
As one embodiment of the present of invention, DSP can also receive user's automatic frequency measurement command signal, and then carry out automatic frequency and measure, the schematic flow sheet that a kind of automatic frequency that being illustrated in figure 2 as the embodiment of the present invention provides is measured, the method comprises the steps:
S201: judge whether surpassed maximal value gate time, if surpassed maximal value, enter step S202, if do not surpass maximal value, enter step S206.
If arrived maximal value gate time, illustrate that the measured signal frequency is lower, therefore adopt all methods of survey comparatively suitable, otherwise, can adopt equal precision measuring frequency way.
S202: trigger and once survey cycleoperation, namely DSP sends and surveys cycles per instruction to frequency measurement state of a control machine, controls the corresponding counts device by the frequency measurement state of a control and surveys cycleoperation.
S203: wait for a Preset Time, this Preset Time is greater than measured signal cycle length.
S204: judge whether the survey cycle complete, if complete, the value of retaking of a year or grade time counter, otherwise return to step S203.
S205: the maximum cycle the value whether periodic quantity that calculates of judgement can be surveyed less than equal precision measuring frequency way, if, return to step S201, otherwise the end measurement.
S206: transmission stops triggering an inferior Precision Measuring Frequency after the frequency measurement order.
Specifically can referring to the description of above-described embodiment, not repeat them here Deng Precision Measuring Frequency.
S207: through a stand-by period, waiting time is greater than set gate time.
S208: whether the Precision Measuring Frequencies such as judgement are completed, and enter step S209 if complete, otherwise enter step S211.
S209: send stop the frequency measurement order and a retaking of a year or grade measured signal counter timely between the value of counter.
S210: whether judge the value of a measured signal counter greater than default number Nfreq, and whether the value of the value of a measured signal counter and time counter differ 1 at least, if frequency measurement is completed, enter if not step S213.If it is pointed out that it is just in time maximum gate time now, the value that only needs to satisfy a survey signal counter is completed with regard to frequency measurement greater than default number Nfreq.
S211: send stop the frequency measurement order and a retaking of a year or grade measured signal counter timely between the value of counter.
S212: judge that whether the value of a measured signal counter is greater than default number Nfreq, and whether the value of a measured signal counter and the value of time counter differ 1 at least, if increasing the Precision Measuring Frequencies such as described stand-by period and wait completes, can prevent like this because the stand-by period inadequate, and think that frequency measurement do not complete (if in fact wait for the sufficiently long time by mistake, can complete operation), thereby just no longer needing to change the Precision Measuring Frequency such as re-starts gate time and has operated, and has saved the frequency measurement time.
S213: change gate time and return to step S201.Here change and generally refer to increase gate time gate time.
The embodiment of the present invention has been utilized integration and the dirigibility of digital logic device, simplified circuit structure, reduced the impact of external environment condition on frequency measurement circuit, can also restPose by reset operation when system's appearance is abnormal simultaneously, increase the robustness of Frequency Measurement System, also increase at last the survey cyclic pattern, reduced the Measuring Time of low frequency signal.
Be illustrated in figure 3 as the structural representation of a kind of frequency measuring equipment that the embodiment of the present invention provides, this device comprises: signal conditioning circuit 310, digital logic device 320, digital signal processor 330 and Man Machine Interface 340, wherein digital logical processor 320 also comprises edge sense circuit 321, frequency measurement state controller 322 and frequency measurement module 323.
Signal conditioning circuit 310 is used for measured signal is become the digital signal of standard, and exports to edge sense circuit 321 and frequency measurement module 323 in digital logic device 320.The operations such as signal conditioning circuit 310 can amplify to measured signal, filtering, decay, thus make its digital signal that converts 320 standards that can identify of digital logic device to, and this signal conditioning circuit 310 can't change the frequency of measured signal.And the digital logic device in the present embodiment is such as adopting FPGA, CPLD or ASIC etc.
Digital signal processor 330 is used for receiving by Man Machine Interface 340 user's frequency measurement command signal.Frequency measurement command signal in the present embodiment is such as Precision Measuring Frequency, survey cycle or the automatic frequency measurement etc. such as comprising.
Edge sense circuit 321 is for detection of the edge of measured signal.In the present embodiment, edge sense circuit 321 both can have been set the upper edge of detecting measured signal, also can set the lower edge of measured signal, was not limited at this.
When frequency measurement state of a control machine 322 occurs for the edge that measured signal detected when edge sense circuit 321, control frequency measurement module 323 according to the frequency measurement command signal and wait Precision Measuring Frequency or survey cycle to obtain the frequency of measured signal.
As one embodiment of the present of invention, as shown in Figure 4, frequency measurement module 323 comprises time counter 3231 and a measured signal counter 3232.
When waiting Precision Measuring Frequency, frequency measurement state of a control machine 322 is concrete for enabling simultaneously time counter 3231 and measured signal number timer 3232 when occurring at the edge of measured signal, when the gate time that the value arrival of time counter 3231 is preset and the edge appearance that measured signal again detected, finish to measure.Digital signal processor 330 is used for calculating the measured signal frequency according to the value of time counter 3231 and measured signal number timer 3232 at this moment.The value of supposing time counter is T, and the value of a measured signal counter is N, and the frequency of measured signal is f=N/T.
When surveying the cycle, frequency measurement state of a control machine 322 is used for enabling when occurring at the edge of measured signal time counter 3231, when the edge that edge sense circuit 321 detects measured signal again occurs, finishes to measure.Digital signal processor 330 is used for calculating the measured signal frequency according to the value of time counter 3231 at this moment.The value of supposing time counter 3231 is T, and the frequency of measured signal is f=1/T.
As one embodiment of the present of invention, time counter 3231 an and measured signal counter 3232 can the inner stone counter of common numbers logical device.
As one embodiment of the present of invention, digital logic device 320 can also comprise a reseting module (not illustrating), it is used for after receiving the frequency measurement command signal, if do not complete frequency measurement, the frequency measurement state of a control that resets machine 322, time counter 3231 and a measured signal counter 3232 through Preset Time.
As one embodiment of the present of invention, when digital signal processor 330 received users' automatic frequency measurement command signal, digital signal processor 330 also comprised: judging unit 331, etc. Precision Measuring Frequency control module 332 and survey periodic Control unit 333.
Be illustrated in figure 5 as a kind of structural representation that waits the Precision Measuring Frequency control module that the embodiment of the present invention provides, these Precision Measuring Frequency control modules 332 comprise: stop frequency measurement module 3321, trigger module 3322, the first judge module 3323, retaking of a year or grade module 3324, the second judge module 3325, gate time changes module 3326 and the stand-by period changes module 3327.
Stop frequency measurement module 3321 and stop the frequency measurement order for sending.
Trigger module 3322 is used for triggering an inferior Precision Measuring Frequency, it is to be noted, before trigger module 3322 triggered an inferior Precision Measuring Frequency, stopping frequency measurement module 3321 needed first to send once to stop the frequency measurement order, can prevent from like this situation of this frequency measurement value of the worthwhile one-tenth of last frequency measurement is occurred.
Whether the first judge module 3323 is used for completing through Precision Measuring Frequencies such as judgements after the stand-by period, and waiting time is greater than set gate time.
The value of counter between retaking of a year or grade module 3324 is timely for a retaking of a year or grade measured signal counter, no matter the judged result of the first judge module 3323 why, this retaking of a year or grade module 3324 is all said the value of counter between a retaking of a year or grade measured signal counter in time, and before retaking of a year or grade, stop frequency measurement module 3321 and also can send and once stop the frequency measurement order.
Whether the second judge module 3325 is used for the value of a judgement counter greater than default number Nfreq.And whether the value of described counter and the value of described time counter differ 1 at least, and perhaps judgement when be maximal value current gate time, judges that whether the value of described counter is greater than default number Nfreq.
Change module 3326 gate time and be used for when the second judge module 3325 when the determination result is NO, change gate time, and notification triggers module 3322 Precision Measuring Frequency such as triggering again, change here and generally refer to increase gate time gate time.
Stand-by period changes module 3327 and is used for waiting Precision Measuring Frequency not to complete when the first judge module 3323 judgements, and the second judge module 3325 increases the stand-by period when being judged as YES, and the Precision Measuring Frequency such as continuation wait is completed.
The embodiment of the present invention has been utilized integration and the dirigibility of digital logic device, simplified circuit structure, reduced the impact of external environment condition on frequency measurement circuit, can also restPose by reset operation when system's appearance is abnormal simultaneously, increase the robustness of Frequency Measurement System, also increase at last the survey cyclic pattern, reduced the Measuring Time of low frequency signal.
Be illustrated in figure 6 as the structural representation of a kind of frequency meter that the embodiment of the present invention provides, this frequency meter 600 comprises frequency measuring equipment 601, and the description of frequency measuring equipment 601 can referring to the description of above-described embodiment, not repeat them here.
Above-described embodiment; purpose of the present invention, technical scheme and beneficial effect are further described; institute is understood that; the above is only the specific embodiment of the present invention; the protection domain that is not intended to limit the present invention; within the spirit and principles in the present invention all, any modification of making, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (13)

1. a frequency measurement method, is characterized in that, described method comprises:
Measured signal is become the digital signal of standard by signal conditioning circuit after, the input digital logic device is inner;
Detect the edge of described measured signal by edge sense circuit in digital logic device inside;
Occur if the edge of described measured signal detected, frequency measurement state of a control machine waits Precision Measuring Frequency or survey cycle to obtain the frequency of described measured signal according to the frequency measurement command signal.
2. frequency measurement method as claimed in claim 1, is characterized in that, described frequency measurement state of a control machine waits Precision Measuring Frequency to comprise according to the frequency measurement command signal:
Frequency measurement state of a control machine enables time counter and measured signal number timer simultaneously when the edge of described measured signal occurs, when the gate time that the value arrival of described time counter is preset and the edge appearance that measured signal again detected, finish measure and calculate the measured signal frequency according to described time counter and measured signal number timer, the edge that wherein detects for twice is all upper edge or lower edge.
3. frequency measurement method as claimed in claim 1, is characterized in that, describedly carries out the survey cycle according to the frequency measurement command signal and comprise:
Frequency measurement state of a control machine enables time counter when the edge of described measured signal occurs, when the edge that measured signal again detected occurs, finish measuring and calculate the measured signal frequency according to the value of described time counter, the edge that wherein detects for twice is all upper edge or lower edge.
4. frequency measurement method as claimed in claim 2 or claim 3, is characterized in that, described method also comprises: if after receiving the frequency measurement command signal, do not complete frequency measurement through Preset Time, Frequency Measurement System resets.
5. frequency measurement method as claimed in claim 1, is characterized in that, described method also comprises: automatically carry out frequency measurement according to the frequency measurement command signal, specifically comprise:
Judge whether surpassed maximal value gate time, if surpassed maximal value, survey cycleoperation to measure the frequency of measured signal, if do not surpass maximal value, wait Precision Measuring Frequency to operate to measure the frequency of measured signal.
6. frequency measurement method as claimed in claim 5, is characterized in that, do not surpass maximal value and wait Precision Measuring Frequency to operate to measure the measured signal frequency to comprise when gate time:
Step 1, transmission stop triggering an inferior Precision Measuring Frequency after the frequency measurement order;
Whether step 2, complete through the Precision Measuring Frequency such as judging after the stand-by period, enter step 3 if complete, enter step 4 if do not complete, the wherein said stand-by period is greater than set gate time;
Step 3, send stop the frequency measurement order and a retaking of a year or grade measured signal counter timely between the value of counter, when the value of described counter greater than default number Nfreq, and the value of described counter and the value of described time counter differed 1 o'clock at least, perhaps work as the value of described counter greater than default number Nfreq, and current gate time, when being maximal value, frequency measurement was completed; Otherwise change gate time and return to step 1;
Step 4, send stop the frequency measurement order and a retaking of a year or grade measured signal counter timely between the value of counter, when the value of described counter greater than default number Nfreq, and the value of described counter and the value of described time counter differed 1 o'clock at least, increased the Precision Measuring Frequencies such as described stand-by period and wait and completed; Otherwise change gate time and return to step 1.
7. frequency measuring equipment, it is characterized in that, described device comprises: signal conditioning circuit, digital logic device, digital signal processor and Man Machine Interface, described digital logic device comprise edge sense circuit, frequency measurement state of a control machine and frequency measurement module, wherein:
Signal conditioning circuit is used for measured signal is become the digital signal of standard, and exports to edge sense circuit and frequency measurement module in digital logic device;
Digital signal processor is used for the frequency measurement command signal by described Man Machine Interface reception user;
Edge sense circuit is for detection of the edge of described measured signal;
Frequency measurement state of a control machine when occurring for the edge that measured signal detected when described edge sense circuit, is controlled described frequency measurement module according to described frequency measurement command signal and is waited Precision Measuring Frequency or survey cycle to obtain the frequency of described measured signal.
8. frequency measuring equipment as claimed in claim 7, is characterized in that, described frequency measurement module comprises time counter and measured signal number timer, when waiting Precision Measuring Frequency,
Described frequency measurement state of a control machine specifically is used for enabling simultaneously when occurring at the edge of described measured signal time counter and measured signal number timer, when the gate time that the value arrival of described time counter is preset and the edge appearance that measured signal again detected, finish to measure, the edge that wherein detects for twice is all upper edge or lower edge;
Described digital signal processor is used for calculating the measured signal frequency according to the value of described time counter and measured signal number timer.
9. frequency measuring equipment as claimed in claim 8, is characterized in that, when surveying the cycle,
When described frequency measurement state of a control machine specifically is used for occurring at the edge of described measured signal, frequency measurement state of a control machine enables time counter, when the edge that measured signal again detected occurs, finish to measure, the edge that wherein detects for twice is all upper edge or lower edge;
Described digital signal processor is used for calculating the measured signal frequency according to the value of described time counter.
10. frequency measuring equipment as claimed in claim 8 or 9, is characterized in that, described digital logic device also comprises reseting module, is used for after receiving the frequency measurement command signal, if do not complete frequency measurement through Preset Time, described frequency measuring device resets.
11. frequency measuring equipment as claimed in claim 7 is characterized in that, described digital signal processor also is used for receiving by described Man Machine Interface user's automatic frequency measurement command signal, and described digital signal processor also comprises:
Judging unit is used for judging whether arrived maximal value gate time when receiving the automatic frequency measurement command signal;
Deng the Precision Measuring Frequency control module, be used for waiting Precision Measuring Frequency to control when not surpass maximal value gate time;
Survey periodic Control unit is used for surveying periodic Control when surpass maximal value gate time.
12. frequency measuring equipment as claimed in claim 11 is characterized in that, the described Precision Measuring Frequency control module that waits comprises:
Stop the frequency measurement module, be used for transmission and stop the frequency measurement order;
Trigger module is used for triggering an inferior Precision Measuring Frequency;
Whether the first judge module is used for completing through Precision Measuring Frequencies such as judgements after the stand-by period, and waiting time is greater than set gate time;
The retaking of a year or grade module, be used for a retaking of a year or grade measured signal counter timely between the value of counter;
The second judge module, whether be used for the value of a judgement counter greater than default number Nfreq, and whether the value of described counter and the value of described time counter differ 1 at least, perhaps judgement when be maximal value current gate time, judges that whether the value of described counter is greater than default number Nfreq;
Change module gate time, be used for when described the second judge module when the determination result is NO, change gate time;
Stand-by period changes module, be used for not completing when Precision Measuring Frequencies such as described the first judge module judgements, and described the second judge module increases the described stand-by period when being judged as YES.
13. a frequency meter is characterized in that, comprises described frequency measuring equipment as arbitrary in claim 7-12.
CN201110431534.6A 2011-12-21 2011-12-21 A kind of frequency measurement method, device and frequency meter Active CN103176042B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110431534.6A CN103176042B (en) 2011-12-21 2011-12-21 A kind of frequency measurement method, device and frequency meter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110431534.6A CN103176042B (en) 2011-12-21 2011-12-21 A kind of frequency measurement method, device and frequency meter

Publications (2)

Publication Number Publication Date
CN103176042A true CN103176042A (en) 2013-06-26
CN103176042B CN103176042B (en) 2016-09-07

Family

ID=48636034

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110431534.6A Active CN103176042B (en) 2011-12-21 2011-12-21 A kind of frequency measurement method, device and frequency meter

Country Status (1)

Country Link
CN (1) CN103176042B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103383412A (en) * 2013-07-10 2013-11-06 珠海许继芝电网自动化有限公司 Adaptive software and hardware frequency tracking and sampling method
CN104007313A (en) * 2014-05-08 2014-08-27 深圳市硅格半导体有限公司 Chip detection method and system in testing process
CN105353212A (en) * 2015-10-13 2016-02-24 珠海格力电器股份有限公司 Method and device for detecting signal frequency
CN105467207A (en) * 2016-01-19 2016-04-06 江苏省电力公司电力科学研究院 High precision voltage power frequency measurement system and method based on intelligent substation
CN106918740A (en) * 2015-12-28 2017-07-04 苏州普源精电科技有限公司 A kind of equally accurate frequency measuring device and method
CN106918731A (en) * 2017-02-09 2017-07-04 深圳市鼎阳科技有限公司 A kind of digital oscilloscope and its signal frequency measuring method
CN109239386A (en) * 2018-09-11 2019-01-18 陕西千山航空电子有限责任公司 A kind of signal acquisition method
CN110954745A (en) * 2019-11-14 2020-04-03 中国航空工业集团公司西安航空计算技术研究所 High-precision frequency acquisition method and device based on FPGA
CN113533848A (en) * 2021-06-07 2021-10-22 杭州加速科技有限公司 Method and device for measuring digital signal

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101221200A (en) * 2008-01-30 2008-07-16 北京英华达电力电子工程科技有限公司 Frequency measurement method and apparatus
CN101501506A (en) * 2006-08-08 2009-08-05 Nxp股份有限公司 Device and method for measuring the frequency of a signal coded modulated carrier signal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101501506A (en) * 2006-08-08 2009-08-05 Nxp股份有限公司 Device and method for measuring the frequency of a signal coded modulated carrier signal
CN101221200A (en) * 2008-01-30 2008-07-16 北京英华达电力电子工程科技有限公司 Frequency measurement method and apparatus

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李兰芳等: "CPLD 在等精度测频***中的应用", 《仪表技术》 *
蔡教武等: "一种基于等精度测频原理的频率计", 《电子测试》 *

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103383412B (en) * 2013-07-10 2015-08-26 珠海许继芝电网自动化有限公司 A kind of method of self-adaptation software and hardware frequency-tracking sampling
CN103383412A (en) * 2013-07-10 2013-11-06 珠海许继芝电网自动化有限公司 Adaptive software and hardware frequency tracking and sampling method
CN104007313A (en) * 2014-05-08 2014-08-27 深圳市硅格半导体有限公司 Chip detection method and system in testing process
CN105353212B (en) * 2015-10-13 2017-12-29 珠海格力电器股份有限公司 Method and device for detecting signal frequency
CN105353212A (en) * 2015-10-13 2016-02-24 珠海格力电器股份有限公司 Method and device for detecting signal frequency
CN106918740B (en) * 2015-12-28 2020-06-19 普源精电科技股份有限公司 Equal-precision frequency measurement device and method
CN106918740A (en) * 2015-12-28 2017-07-04 苏州普源精电科技有限公司 A kind of equally accurate frequency measuring device and method
CN105467207B (en) * 2016-01-19 2019-07-19 江苏省电力公司电力科学研究院 A kind of high-accuracy voltage power frequency measuring system and method based on intelligent substation
CN105467207A (en) * 2016-01-19 2016-04-06 江苏省电力公司电力科学研究院 High precision voltage power frequency measurement system and method based on intelligent substation
CN106918731A (en) * 2017-02-09 2017-07-04 深圳市鼎阳科技有限公司 A kind of digital oscilloscope and its signal frequency measuring method
CN109239386A (en) * 2018-09-11 2019-01-18 陕西千山航空电子有限责任公司 A kind of signal acquisition method
CN110954745A (en) * 2019-11-14 2020-04-03 中国航空工业集团公司西安航空计算技术研究所 High-precision frequency acquisition method and device based on FPGA
CN113533848A (en) * 2021-06-07 2021-10-22 杭州加速科技有限公司 Method and device for measuring digital signal

Also Published As

Publication number Publication date
CN103176042B (en) 2016-09-07

Similar Documents

Publication Publication Date Title
CN103176042A (en) Frequency measurement method and device and frequency meter
CN105790754B (en) Digital isolation circuit and control method thereof
CN101685135B (en) Test device and test method for testing circuit board
CN102830247A (en) Method and device for detecting rotation state of rotation part
CN108965082A (en) low-power data bus receiver
WO2015014162A1 (en) Apparatus and method for awakening mcu of soc chip
CN102156584B (en) Touch screen terminal and method for solving deadlock of touch screen
CN103645794A (en) Chip and method for achieving sleep mode wake-up through edge detection circuit
CN105790756B (en) A kind of method and device communicating calibration clock using UART
JP2003068312A (en) Battery exchange time discrimination method and apparatus
EP2965458B1 (en) Dithering circuit for sampling serial data transmission
CN101865951B (en) Anti-interference frequency measuring method
CN110247656A (en) The clock detection circuit of damage for phaselocked loop
CN110887992A (en) Clock frequency detection circuit
CN111520191A (en) Testing device and testing method for digital coal mine safety monitoring system
CN110826112B (en) Method and system for identifying hardware version number
CN106160735B (en) readout system
CN1333529C (en) Clock signal detection method and apparatus in electronic devices
CN102457268A (en) Implementation method for 32-bit capture register
CN103716020B (en) Method and apparatus for detecting cut-off frequency of pulse signal
CN102353408B (en) Output signal detection circuit and detection method of dish-washing machine flowmeter
CN112214098B (en) IO wake-up circuit, microcontroller and IO wake-up method
CN108001764B (en) welding rod packaging, weighing and counting method
CN203798513U (en) Helium mass spectrometer data change detection additional apparatus
CN112881968B (en) Ammeter calibrating device and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant