CN103176042B - A kind of frequency measurement method, device and frequency meter - Google Patents

A kind of frequency measurement method, device and frequency meter Download PDF

Info

Publication number
CN103176042B
CN103176042B CN201110431534.6A CN201110431534A CN103176042B CN 103176042 B CN103176042 B CN 103176042B CN 201110431534 A CN201110431534 A CN 201110431534A CN 103176042 B CN103176042 B CN 103176042B
Authority
CN
China
Prior art keywords
frequency measurement
frequency
counter
measured signal
edge
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.)
Active
Application number
CN201110431534.6A
Other languages
Chinese (zh)
Other versions
CN103176042A (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

Abstract

Embodiments providing a kind of frequency measurement method, device and frequency meter, method includes: input inside digital logic device after measured signal is become the data signal of standard by signal conditioning circuit;Detected the edge of described measured signal by edge sense circuit inside digital logic device;If detecting, the edge of described measured signal occurs, then frequency measurement state of a control machine carries out equally accurate frequency measurement according to frequency measurement command signal or the survey cycle obtains the frequency of described measured signal.The embodiment of the present invention make use of integration and the flexibility of digital logic device, simplify circuit structure, decrease the external environment condition impact on frequency measurement circuit, simultaneously can also be by reset operation recovery original state when system occurs abnormal when, increase the robustness of Frequency Measurement System, finally also add survey cyclic pattern, decrease the measurement time of low frequency signal.

Description

A kind of frequency measurement method, device and frequency meter
Technical field
The present invention relates to signal measurement field, particularly relate to a kind of frequency measurement method, device and frequency meter.
Background technology
In electronic technology, frequency is one of most basic parameter, and with the measurement side of many electric parameters Case, measurement result have very close relationship.Therefore the measurement of frequency just seems even more important.
China Patent No. be the patent application of CN2274348Y provide a kind of low cost, equally accurate complete from Dynamic frequency meter (shown in Fig. 1).Its scheme be by amplification and rectification circuit, gate circuit, counting circuit, with Step circuit, timing circuit, time base circuit, cpu circuit and display circuit composition.
The operation principle of such scheme is as follows: measured signal inputs from amplification and rectification circuit input, amplifies Shaping circuit is output as the TTL data signal of standard, the opening time of gate circuit by synchronous circuit control, Synchronous circuit controls time keeping circuitry simultaneously, so that the initial time of timing and counting is opened with gate circuit Time synchronized, counting circuit, timing circuit, display circuit pass through data/address bus form and cpu circuit phase Even, when synchronous circuit sends interrupt requests, cpu circuit reads in and processes in counting circuit and timing circuit Data, after high accuracy floating-point operation processes, just obtain the measured signal frequency data of equally accurate, and Control, from selecting range, finally to deliver to display circuit by software by the frequency size measured.When starting to measure, The I/O end of cpu circuit exports high level to synchronous circuit, and declining occurs in the measured signal after amplifying shaping Along time, synchronous circuit is output as high level, and cpu circuit measures synchronous circuit when being output as high level, continues Keeping I/O end to export high level a period of time to synchronous circuit, the length of this retention time is one to set in advance The fixed value put, afterwards, I/O end is to synchronous circuit output low level, if that now amplifies after shaping is to be measured When there is trailing edge in signal, synchronous circuit output low level.
Such scheme it is crucial that gate circuit is by synchronous circuit control, and the control of synchronous circuit output The rising edge of signal is Tong Bu with the trailing edge of the front pulse of the measured signal after amplification shaping, and this control The trailing edge of signal is Tong Bu, so that gate is electric with the front pulse edge of the measured signal after amplification shaping The road opening time is the integral multiple in the cycle of measured signal, and then it is intrinsic to ensure not produce mantissa during counting Quantization error, the frequency values f=N/T of measured signal, the pulse in wherein N is the gate circuit opening time Number, T is the gate circuit opening time, the frequency height of the frequency measurement accuracy of this method and measured signal Unrelated, gate circuit open-interval certainty of measurement determine, thus low-and high-frequency signal is had same by realization The certainty of measurement of sample, i.e. achieves equal precision measurement.
But, such scheme remains following defect:
1, whole scheme uses discrete component to build hardware circuit to realize frequency measurement function, adds PCB The difficulty of Butut and the difficulty of debugging, the quality of frequency measurement is by external environment such as temperature, humidity, electricity Pressure, noise impact bigger.
2, synchronous circuit crucial in scheme, is made up of JK flip-flop and phase inverter, once JK flip-flop Occurring metastable state in circuit, circuit can not eliminate, and will mistake be continued, and causes whole system not Can normally work.
3, owing to only with equal precision measuring frequency way, this, measuring low frequency signal when, can be greatly increased survey The amount time.
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 knot Structure, reduces the external environment condition impact on frequency measurement circuit, increases the robustness of Frequency Measurement System and reduces low frequency The measurement time of signal.
On the one hand, embodiments providing a kind of frequency measurement method, the method includes: by be measured Signal is inputted inside digital logic device become the data signal of standard by signal conditioning circuit after;Counting The internal edge being detected described measured signal by edge sense circuit of word logical device;If detecting described The edge of measured signal occurs, then frequency measurement state of a control machine carries out equally accurate frequency measurement according to frequency measurement command signal Or the survey cycle obtains the frequency of described measured signal.
Preferably, in the embodiment of the present invention, frequency measurement state of a control machine carries out equally accurate according to frequency measurement command signal Frequency measurement includes: when the edge of described measured signal occurs, frequency measurement state of a control machine enables time counting simultaneously Device and measured signal number timer, when the value of described time counter arrives the gate time and again preset Secondary edge measured signal being detected occurs, then terminate to measure and according to described time counter and letter to be measured Number number timer calculates measured signal frequency, the edge wherein detected for twice be all upper edge or under Edge.
Preferably, the embodiment of the present invention carries out the survey cycle according to frequency measurement command signal to include: treat described When the edge of survey signal occurs, frequency measurement state of a control machine enables time counter, when letter to be measured again being detected Number edge when occurring, then terminate to measure and calculate measured signal frequency according to the value of described time counter Rate, the edge wherein detected for twice is all upper edge or lower edge.
Preferably, the method for the embodiment of the present invention also includes: if after receiving frequency measurement command signal, pass through Preset Time is not fully complete frequency measurement, then reset Frequency Measurement System.
Preferably, the method for the embodiment of the present invention also includes: automatically carry out frequency according to frequency measurement command signal Measure, specifically include: judge whether gate time alreadys more than maximum, if the maximum of alreading more than, Then carry out the frequency surveying cycleoperation to measure measured signal, if not less than maximum, then carry out equally accurate Frequency measurement operation is to measure the frequency of measured signal.
Preferably, the embodiment of the present invention carries out equally accurate frequency measurement behaviour when gate time not less than maximum Make to include with measurement measured signal frequency: step 1, transmission trigger an equally accurate and survey after stopping frequency measurement order Frequently;Step 2, after a stand-by period, judging whether equally accurate frequency measurement completes, if completing, entering step 3, if being not fully complete, enter step 4, the wherein said stand-by period is more than set gate time;Step 3, Send stop frequency measurement order retaking of a year or grade measured signal counter in time between the value of counter, when described individual The value of counter is more than predetermined number Nfreq, and the value of described counter and described time counter Value when at least differing 1, or when the value of described counter is more than predetermined number Nfreq, and currently When gate time is maximum, frequency measurement completes;Otherwise change gate time and return step 1;Step 4, Send stop frequency measurement order retaking of a year or grade measured signal counter in time between the value of counter, when described individual The value of counter is more than predetermined number Nfreq, and the value of described counter and described time counter Value when at least differing 1, increase the described stand-by period and wait that equally accurate frequency measurement completes;Otherwise change lock The door time also returns step 1.
On the other hand, the embodiment of the present invention additionally provides a kind of frequency measuring equipment, and this device includes: letter Number modulate circuit, digital logic device, digital signal processor and Man Machine Interface, described numeral is patrolled Collect device and include edge sense circuit, frequency measurement state of a control machine and frequency measurement module, wherein: signal condition electricity Road, for measured signal becomes the data signal of standard, and exports to the edge in digital logic device Testing circuit and frequency measurement module;Digital signal processor, is used for being received by described Man Machine Interface The frequency measurement command signal at family;Edge sense circuit, for detecting the edge of described measured signal;Frequency measurement control State machine processed, for when the edge that described edge sense circuit detects measured signal occurs, according to institute State frequency measurement command signal control described frequency measurement module carry out equally accurate frequency measurement or the survey cycle obtain described in treat Survey the frequency of signal.
Preferably, the frequency measurement module of the embodiment of the present invention includes time counter and measured signal number timing Device, when carrying out equally accurate frequency measurement, described frequency measurement state of a control machine is specifically at described measured signal When edge occurs, frequency measurement state of a control machine enables time counter and measured signal number timer simultaneously, when The value of described time counter arrives the gate time preset and again detects that the edge of measured signal goes out Existing, then terminate to measure, the edge wherein detected for twice is all upper edge or lower edge;Described numeral letter Number processor is for calculating letter to be measured according to the value of described time counter and measured signal number timer Number frequency.
Preferably, the embodiment of the present invention when carrying out the survey cycle, described frequency measurement state of a control machine specifically for When the edge of described measured signal occurs, frequency measurement state of a control machine enables time counter, when again detecting When edge to measured signal occurs, then terminating to measure, the edge wherein detected for twice is all upper edge Or lower edge;Described digital signal processor is for calculating letter to be measured according to the value of described time counter Number frequency.
Preferably, the digital logic device of the embodiment of the present invention also includes reseting module, for receiving survey Frequently after command signal, if being not fully complete frequency measurement through Preset Time, then reset frequency measuring device.
Preferably, the digital signal processor of the embodiment of the present invention is additionally operable to by described Man Machine Interface Receiving the automatic frequency measurement command signal of user, described digital signal processor also includes: judging unit, uses In when receiving automatic frequency measurement command signal, it is judged that gate time has arrived maximum;Equally accurate Frequency measurement control unit, for when gate time not less than maximum time, carry out equally accurate frequency measurement control;Survey Periodic Control unit, for when exceeding maximum gate time, carries out surveying periodic Control.
Preferably, the equally accurate frequency measurement control unit of the embodiment of the present invention includes: stop frequency measurement module, uses Frequency measurement order is stopped in sending;Trigger module, for triggering an equally accurate frequency measurement;First judge module, For judging whether equally accurate frequency measurement completes after a stand-by period, waiting time is more than set gate Time;Retaking of a year or grade module, the value of counter between retaking of a year or grade measured signal counter is timely;Second sentences Disconnected module, for judging whether the value of a counter is more than predetermined number Nfreq, and described counting number The value of device and the value of described time counter the most at least differ 1, or judge when current gate time is as When being worth greatly, it is judged that whether the value of described counter is more than predetermined number Nfreq;Gate time changes mould Block, for when described second judge module judged result is no, changes gate time;Stand-by period changes Becoming module, for judging that equally accurate frequency measurement is not fully complete when described first judge module, and described second judges When module is judged as YES, increase the described stand-by period.
On the other hand, the embodiment of the present invention additionally provides a kind of frequency meter, surveys including frequency as above Amount device.
The embodiment of the present invention make use of integration and the flexibility of digital logic device, simplifies circuit structure, Decrease the external environment condition impact on frequency measurement circuit, can also pass through when system occurs abnormal when simultaneously Reset operation recovery original state, increases the robustness of Frequency Measurement System, finally also add survey cyclic pattern, Decrease the measurement time of low frequency signal.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to reality Execute the required accompanying drawing used in example or description of the prior art to be briefly described, it should be apparent that below, Accompanying drawing in description is only some embodiments of the present invention, for those of ordinary skill in the art, Do not pay creation laborious on the premise of, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
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;
The structural representation of a kind of equally accurate frequency measurement control unit 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.
Detailed description of the invention
In order to make the object, technical solutions and advantages of the present invention clearer, below in conjunction with concrete real Execute mode and accompanying drawing, the present invention is described in further details.Here, the schematic embodiment party of the present invention Formula and explanation thereof are used for explaining the present invention, but not as a limitation of the invention.
It is illustrated in figure 1 the schematic flow sheet of a kind of frequency measurement method that the embodiment of the present invention provides, should Method comprises the steps:
S101: input numeral after measured signal is become by signal conditioning circuit the data signal of standard and patrol Collect device inside.
In the present embodiment, signal conditioning circuit can be amplified to measured signal, filter, decay etc. Operation, so that it is converted into the data signal of the standard that digital logic device can identify, it should be pointed out that , this signal conditioning circuit can't change the frequency of measured signal.And the numeral in the present embodiment is patrolled Collect device and such as can use i.e. field programmable gate array (Field-Programmable Gate Array, FPGA), CPLD (Complex Programmable Logic Device, CPLD) or ASIC (Application Specific Integrated Circuit, ASIC) etc..
S102: by the edge of edge sense circuit detection measured signal in digital logic device.
In the present embodiment, the upper edge of detection measured signal can both have been set, it is also possible to set letter to be measured Number lower edge, be not limited at this.
S103: the edge of measured signal occurs if detecting, then frequency measurement state of a control machine instructs according to frequency measurement Signal carries out equally accurate frequency measurement or the survey cycle obtains the frequency of measured signal.
Frequency measurement state of a control machine in the present embodiment falls within a part for digital logic device, and it can connect Receive the frequency measurement command signal that issues of user, user such as can by Man Machine Interface to data signal at Reason device (DSP) issues frequency measurement command signal, is conveyed to frequency measurement state of a control machine by DSP the most again and controls Frequency measurement operates.In the present embodiment, according to the difference of user instruction, equally accurate frequency measurement can be carried out respectively Or side cycleoperation.
As one embodiment of the present of invention, frequency measurement state of a control machine carries out waiting essence according to frequency measurement command signal Degree frequency measurement comprises the steps: that frequency measurement state of a control machine enables number simultaneously when the edge of measured signal occurs Time counter within word logical device and measured signal number timer, when the value of time counter arrives Reach default gate time and (this edge type and beginning when the edge of measured signal occurs again detected During counting, the edge type of institute's foundation is identical, is i.e. all upper edge or lower edge), then terminate to measure and root Measured signal frequency is calculated according to time counter and measured signal number timer.? The calculating process of rear frequency can be completed by DSP, it is assumed that the value of time counter is T, measured signal The value of counter is N, then the frequency of measured signal is f=N/T.
As one embodiment of the present of invention, frequency measurement state of a control machine carries out surveying week according to frequency measurement command signal Phase comprises the steps: that frequency measurement state of a control machine enables time counter when the edge of measured signal occurs, When edge measured signal again being detected occurs, then terminate measurement the value meter according to time counter Calculate measured signal frequency.The calculating process of last frequency can be completed by DSP in the present embodiment, The value assuming time counter is T, then the frequency of measured signal is f=1/T.
In the present embodiment, only need during equally accurate frequency measurement to use time counter and measured signal counter two Individual stone counter, decreases a counter relative to 3 counters of prior art, thus saves The practicality of counter, decreases the waste of hardware resource.As one embodiment of the present of invention, if DSP exists After receiving frequency measurement command signal, it is not fully complete frequency measurement through Preset Time, then reset frequency measurement state of a control Machine, time counter and measured signal counter return original state.
As one embodiment of the present of invention, DSP can also receive the automatic frequency measurement command signal of user, so After carry out automatic frequency measurement, be illustrated in figure 2 the embodiment of the present invention provide a kind of automatic frequency measure Schematic flow sheet, the method comprises the steps:
S201: judge whether gate time alreadys more than maximum, if the maximum of alreading more than, enters step S202, if not less than maximum, then enters step S206.
If gate time has arrived maximum, illustrate that measured signal frequency is relatively low, therefore use cycle test method relatively For properly, otherwise, equal precision measuring frequency way can be used.
S202: trigger and once survey cycleoperation, i.e. DSP send and survey cycles per instruction to frequency measurement state of a control machine, Controlled corresponding counter by frequency measurement state of a control to carry out surveying cycleoperation.
S203: wait a Preset Time, this Preset Time is more than measured signal cycle time.
S204: judge whether the survey cycle completes, if completing, then the value of retaking of a year or grade time counter, otherwise returns Return step S203.
S205: judge the maximum cycle the value whether periodic quantity calculated can be surveyed less than equal precision measuring frequency way, The most then return step S201, otherwise terminate to measure.
S206: send and trigger an equally accurate frequency measurement after stopping frequency measurement order.
Equally accurate frequency measurement specifically may refer to the description of above-described embodiment, does not repeats them here.
S207: through a stand-by period, waiting time is more than set gate time.
S208: judge whether equally accurate frequency measurement completes, if completing, enters step S209, otherwise enters step S211。
S209: send stop frequency measurement order retaking of a year or grade measured signal counter timely between the value of counter.
S210: judge whether the value of measured signal counter is more than predetermined number Nfreq, and letter to be measured Number the value of counter and the value of time counter the most at least differ 1, the most then frequency measurement completes, if Otherwise enter step S213.If it is pointed out that the most maximum gate time, then have only to The value meeting survey signal counter is more than predetermined number Nfreq, completes with regard to frequency measurement.
S211: send stop frequency measurement order retaking of a year or grade measured signal counter timely between the value of counter.
S212: judge whether the value of measured signal counter is more than predetermined number Nfreq, and letter to be measured Number the value of counter and the value of time counter the most at least differ 1, if being to increase the described stand-by period And wait that equally accurate frequency measurement completes, so it is possible to prevent to occur because the stand-by period is inadequate, and is mistakenly considered to survey Frequency does not complete (if actually waited long enough for, be to complete operation), thus just It is no longer necessary to change and re-starts equally accurate frequency measurement and operate gate time, save the frequency measurement time.
S213: change gate time and return step S201.Here change and generally refer to gate time increase Gate time.
The embodiment of the present invention make use of integration and the flexibility of digital logic device, simplifies circuit structure, Decrease the external environment condition impact on frequency measurement circuit, can also pass through when system occurs abnormal when simultaneously Reset operation recovery original state, increases the robustness of Frequency Measurement System, finally also add survey cyclic pattern, Decrease the measurement time of low frequency signal.
It is illustrated in figure 3 the structural representation of a kind of frequency measuring equipment that the embodiment of the present invention provides, should Device includes: signal conditioning circuit 310, digital logic device 320, digital signal processor 330 and people Machine interactive interface 340, wherein digital logical processor 320 also includes edge sense circuit 321, frequency measurement shape State controls machine 322 and frequency measurement module 323.
Signal conditioning circuit 310 is for becoming by measured signal into the data signal of standard, and exports to numeral Edge sense circuit 321 in logical device 320 and frequency measurement module 323.Signal conditioning circuit 310 is permissible Be amplified to measured signal, filter, the operation such as decay so that it is converted into digital logic device 320 The data signal of the standard that can identify, this signal conditioning circuit 310 can't change the frequency of measured signal Rate.And the digital logic device in the present embodiment such as can use FPGA, CPLD or ASIC etc..
Digital signal processor 330 for receiving the frequency measurement instruction letter of user by Man Machine Interface 340 Number.Frequency measurement command signal in the present embodiment such as can include equally accurate frequency measurement, survey cycle or automatically Frequency measurement etc..
Edge sense circuit 321 is for detecting the edge of measured signal.In the present embodiment, Edge check Circuit 321 both can set the upper edge of detection measured signal, it is also possible to sets the lower edge of measured signal, It is not limited at this.
When edge sense circuit 321, frequency measurement state of a control machine 322 is for detecting that the edge of measured signal goes out Now, control frequency measurement module 323 according to frequency measurement command signal and carry out equally accurate frequency measurement or survey cycle Frequency to measured signal.
As one embodiment of the present of invention, as shown in Figure 4, frequency measurement module 323 includes time counter 3231 and measured signal counter 3232.
When carrying out equally accurate frequency measurement, frequency measurement state of a control machine 322 is specifically for the edge at measured signal Enable time counter 3231 and measured signal number timer 3232 during appearance simultaneously, work as time counter The value of 3231 arrives the gate time preset and again detects that the edge of measured signal occurs, then terminate to survey Amount.Now digital signal processor 330 is for according to time counter 3231 and measured signal number timing The value of device 3232 calculates measured signal frequency.The value assuming time counter is T, measured signal number The value of counter is N, then the frequency of measured signal is f=N/T.
When carrying out the survey cycle, frequency measurement state of a control machine 322 is for making when the edge of measured signal occurs Energy time counter 3231, when the edge that edge sense circuit 321 detects measured signal again occurs, Terminate to measure.Now digital signal processor 330 is treated for calculating according to the value of time counter 3231 Survey signal frequency.The value assuming time counter 3231 is T, then the frequency of measured signal is f=1/T.
As one embodiment of the present of invention, time counter 3231 and measured signal counter 3232 Can be with the internal stone counter of common numbers logical device.
As one embodiment of the present of invention, digital logic device 320 can also include a reseting module (not Illustrate), it is for after receiving frequency measurement command signal, if being not fully complete frequency measurement through Preset Time, Then reset frequency measurement state of a control machine 322, time counter 3231 and measured signal counter 3232.
As one embodiment of the present of invention, when digital signal processor 330 receives the automatic frequency measurement of user During command signal, digital signal processor 330 also includes: judging unit 331, equally accurate frequency measurement control single Unit 332 and survey periodic Control unit 333.
It is illustrated in figure 5 the structural representation of a kind of equally accurate frequency measurement control unit that the embodiment of the present invention provides Figure, such Precision Measuring Frequency control unit 332 includes: stop frequency measurement module 3321, trigger module 3322, First judge module 3323, retaking of a year or grade module the 3324, second judge module 3325, gate time change module 3326 and the stand-by period change module 3327.
Stop frequency measurement module 3321 to be used for sending stopping frequency measurement order.
Trigger module 3322 is for triggering an equally accurate frequency measurement, it should be pointed out that at trigger module 3322 Before triggering an equally accurate frequency measurement, stopping frequency measurement module 3321 needs first to send once stopping frequency measurement order, The situation by last frequency measurement this frequency measurement value of worthwhile one-tenth so it is possible to prevent to occur.
First judge module 3323, should for judging whether equally accurate frequency measurement completes after a stand-by period Stand-by period is more than set gate time.
Retaking of a year or grade module 3324 is the value of counter between retaking of a year or grade measured signal counter is timely, no matter the The judged result of one judge module 3323 why, and this retaking of a year or grade module 3324 all says retaking of a year or grade measured signal number Counter and the value of time counter, and before retaking of a year or grade, stopping frequency measurement module 3321 also can send once stops Only frequency measurement order.
Second judge module 3325 is for judging that whether the value of a counter is more than predetermined number Nfreq. And the value of the value of described counter and described time counter the most at least differs 1, or judge when working as When the early gate time is maximum, it is judged that whether the value of described counter is more than predetermined number Nfreq.
Change module 3326 gate time for when the second judge module 3325 judged result is no, changing Become gate time, and notification triggers module 3322 triggers equally accurate frequency measurement again, changes gate time here Generally refer to increase gate time.
Stand-by period changes module 3327 for judging that equally accurate frequency measurement is the completeest when the first judge module 3323 Become, and when the second judge module 3325 is judged as YES, increases the stand-by period, and continue waiting for equally accurate survey Frequency completes.
The embodiment of the present invention make use of integration and the flexibility of digital logic device, simplifies circuit structure, Decrease the external environment condition impact on frequency measurement circuit, can also pass through when system occurs abnormal when simultaneously Reset operation recovery original state, increases the robustness of Frequency Measurement System, finally also add survey cyclic pattern, Decrease the measurement time of low frequency signal.
It is illustrated in figure 6 the structural representation of a kind of frequency meter that the embodiment of the present invention provides, this frequency meter 600 include that frequency measuring equipment 601, the description of frequency measuring equipment 601 may refer to above-described embodiment Describe, do not repeat them here.
Above-described detailed description of the invention, is carried out the purpose of the present invention, technical scheme and beneficial effect Further describe, be it should be understood that the foregoing is only the present invention detailed description of the invention and , the protection domain being not intended to limit the present invention, all within the spirit and principles in the present invention, done Any modification, equivalent substitution and improvement etc., should be included within the scope of the present invention.

Claims (7)

1. a frequency measurement method, it is characterised in that described method includes:
Digital logic device is inputted after measured signal is become by signal conditioning circuit the data signal of standard Internal;
Detected the edge of described measured signal by edge sense circuit inside digital logic device;
If detecting, the edge of described measured signal occurs, then frequency measurement state of a control machine is according to frequency measurement instruction letter Number carry out equally accurate frequency measurement or the survey cycle obtains the frequency of described measured signal;
Automatically carry out frequency measurement according to frequency measurement command signal, specifically include: judge that gate time is the most Through exceeding maximum, if the maximum of alreading more than, then carry out the frequency surveying cycleoperation to measure measured signal Rate, if not less than maximum, then carries out the equally accurate frequency measurement operation frequency with measurement measured signal,
Wherein, equally accurate frequency measurement operation is carried out to measure measured signal when gate time not less than maximum Frequency includes:
Step 1, transmission trigger an equally accurate frequency measurement after stopping frequency measurement order;
Step 2, after a stand-by period, judging whether equally accurate frequency measurement completes, if completing, entering step 3, if being not fully complete, enter step 4, the wherein said stand-by period is more than set gate time;
Counter between step 3, transmission stopping frequency measurement order retaking of a year or grade measured signal counter are timely Value, when the value of described counter is more than predetermined number Nfreq, and the value of described counter and institute State the value of time counter when at least differing 1, or when the value of described counter is more than predetermined number N Freq, and when current gate time is maximum, frequency measurement completes;Otherwise change gate time and according to survey Frequently command signal carries out frequency measurement automatically;
Counter between step 4, transmission stopping frequency measurement order retaking of a year or grade measured signal counter are timely Value, when the value of described counter is more than predetermined number Nfreq, and the value of described counter and institute State the value of time counter when at least differing 1, increase the described stand-by period and wait that equally accurate frequency measurement completes; Otherwise change gate time and automatically carry out frequency measurement according to frequency measurement command signal.
2. frequency measurement method as claimed in claim 1, it is characterised in that described according to frequency measurement instruction Signal carries out the survey cycle and includes:
When the edge of described measured signal occurs, frequency measurement state of a control machine enables time counter, when again Detect when the edge of measured signal occurs, then terminate to measure and calculate according to the value of described time counter Going out measured signal frequency, the edge wherein detected for twice is all upper edge or lower edge.
3. frequency measurement method as claimed in claim 2, it is characterised in that described method also includes: If after receiving frequency measurement command signal, being not fully complete frequency measurement through Preset Time, then reset Frequency Measurement System.
4. a frequency measuring equipment, it is characterised in that described device includes: signal conditioning circuit, number Word logical device, digital signal processor and Man Machine Interface, described digital logic device includes edge Testing circuit, frequency measurement state of a control machine and frequency measurement module, wherein:
Signal conditioning circuit, for measured signal becomes the data signal of standard, and exports and patrols to numeral Collect the edge sense circuit in device and frequency measurement module;
Digital signal processor, for receiving the frequency measurement command signal of user by described Man Machine Interface;
Edge sense circuit, for detecting the edge of described measured signal;
Frequency measurement state of a control machine, for detecting that when described edge sense circuit the edge of measured signal occurs Time, control described frequency measurement module according to described frequency measurement command signal and carry out equally accurate frequency measurement or survey cycle Obtain the frequency of described measured signal,
Described digital signal processor also includes:
Judging unit, for when receiving frequency measurement command signal, it is judged that gate time has arrived Big value;
Equally accurate frequency measurement control unit, for when gate time not less than maximum time, carry out equally accurate survey Frequency controls;
Survey periodic Control unit, for when exceeding maximum gate time, carry out surveying periodic Control,
Wherein, described equally accurate frequency measurement control unit includes:
Stop frequency measurement module, be used for sending stopping frequency measurement order;
Trigger module, for triggering an equally accurate frequency measurement;
First judge module, for judging whether equally accurate frequency measurement completes after a stand-by period, such The time for the treatment of is more than set gate time;
Retaking of a year or grade module, the value of counter between retaking of a year or grade measured signal counter is timely;
Second judge module, for judging whether the value of a counter is more than predetermined number Nfreq, and institute State a value of counter and the value of described time counter the most at least differs 1, or judge to work as front brake When the door time is maximum, it is judged that whether the value of described counter is more than predetermined number Nfreq;
Gate time changes module, for when described second judge module judged result is no, changes lock The door time;
Stand-by period changes module, for judging that equally accurate frequency measurement is not fully complete when described first judge module, And described second judge module is when being judged as YES, increase the described stand-by period.
5. frequency measuring equipment as claimed in claim 4, it is characterised in that when carrying out the survey cycle,
Described frequency measurement state of a control machine controls shape specifically for the frequency measurement when the edge of described measured signal occurs State machine enables time counter, when edge measured signal again being detected occurs, then terminates to measure, The edge wherein detected for twice is all upper edge or lower edge;
Described digital signal processor is for calculating measured signal frequency according to the value of described time counter Rate.
6. frequency measuring equipment as claimed in claim 5, it is characterised in that described digital logic device Also include reseting module, for after receiving frequency measurement command signal, if being not fully complete frequency through Preset Time Measure, then reset rate measurement apparatus.
7. a frequency meter, it is characterised in that include the frequency measurement as described in claim 4-6 is arbitrary Device.
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 CN103176042A (en) 2013-06-26
CN103176042B true 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)

Families Citing this family (9)

* 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
CN104007313A (en) * 2014-05-08 2014-08-27 深圳市硅格半导体有限公司 Chip detection method and system in testing process
CN105353212B (en) * 2015-10-13 2017-12-29 珠海格力电器股份有限公司 A kind of method and device of detection signal frequency
CN106918740B (en) * 2015-12-28 2020-06-19 普源精电科技股份有限公司 Equal-precision frequency measurement 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
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 (1)

* 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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2052266B1 (en) * 2006-08-08 2018-02-28 Nxp B.V. Device and method for measuring the frequency of a signal coded modulated carrier signal

Patent Citations (1)

* 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

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种基于等精度测频原理的频率计;蔡教武等;《电子测试》;20071231;74-76,48 *

Also Published As

Publication number Publication date
CN103176042A (en) 2013-06-26

Similar Documents

Publication Publication Date Title
CN103176042B (en) A kind of frequency measurement method, device and frequency meter
CN104344875B (en) A kind of pulse timing counting device and method for fluid flow calibrating
CN101872004A (en) Calibrating test device of electronic type transformer checking instrument
CN103018554B (en) Frequency detecting method and device
CN106706997A (en) Current dynamic detection method and device
CN111520191A (en) Testing device and testing method for digital coal mine safety monitoring system
CN103457671B (en) The defining method of optical receiver sensitivity and device
CN201654223U (en) Verification device for electric energy meters
CN106411483B (en) A kind of method and system detecting the accuracy of instrument communication baud rate
CN102457268B (en) Implementation method for 32-bit capture register
CN203480800U (en) Display screen switching response time test system
CN202033322U (en) High-precision digital and intelligent cotton moisture detector
CN201508207U (en) Data acquisition terminal for thermal power plant energy-conserving scheduling system
CN206610099U (en) The configurable time synchronization test system in scene
CN102889915B (en) Flowmeter and calorimeter asynchronous metering and detecting method and detecting system based on communication
CN102353408B (en) Output signal detection circuit and detection method of dish-washing machine flowmeter
CN111174842B (en) Random number sampling method for electronic meter
CN200979574Y (en) A piezoelectric quartz detector based on a complex programmable logic device technology
CN114353891A (en) Ultrasonic water flow metering method and device, electronic equipment and storage medium
CN102832911A (en) Digital signal recovery method and device
CN202731884U (en) Intelligent feedback measurement and control device for borehole water-pressure test
CN103823134B (en) Electronic device detection system and method
CN114236455B (en) Error calculation device and method for electric energy meter verification for processing missing pulse
CN112881968B (en) Ammeter calibrating device and method
CN109491540A (en) Touch detecting system and method applied to system on chip low-power consumption

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