CN101771399A - Singlechip-based MDAC narrowband tracking filter and realizing method thereof - Google Patents

Singlechip-based MDAC narrowband tracking filter and realizing method thereof Download PDF

Info

Publication number
CN101771399A
CN101771399A CN 201010129319 CN201010129319A CN101771399A CN 101771399 A CN101771399 A CN 101771399A CN 201010129319 CN201010129319 CN 201010129319 CN 201010129319 A CN201010129319 A CN 201010129319A CN 101771399 A CN101771399 A CN 101771399A
Authority
CN
China
Prior art keywords
timer
reference pulse
multiplying digital
analog converter
interrupt
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
CN 201010129319
Other languages
Chinese (zh)
Other versions
CN101771399B (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.)
SHANGHAI SCHIAK TESTING MACHINERY CO Ltd
Original Assignee
SHANGHAI SCHIAK TESTING MACHINERY CO Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHANGHAI SCHIAK TESTING MACHINERY CO Ltd filed Critical SHANGHAI SCHIAK TESTING MACHINERY CO Ltd
Priority to CN201010129319A priority Critical patent/CN101771399B/en
Publication of CN101771399A publication Critical patent/CN101771399A/en
Application granted granted Critical
Publication of CN101771399B publication Critical patent/CN101771399B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a singlechip-based MDAC narrowband tracking filter and a realizing method thereof. The filter comprises a first multiplying digital-to-analog converter, a second multiplying digital-to-analog converter, a first low pass filter connected with the first multiplying digital-to-analog converter, a second low pass filter connected with the second multiplying digital-to-analog converter, and a singlechip connected with input ends of the first and second multiplying digital-to-analog converters. The realizing method comprises the following steps: receiving a basic pulse signal in common frequency with rotating speed; respectively outputting the signal after processing which comprises of receiving a pulse sequence of the basic pulse signal and responding external once and interrupting in each basic pulse cycle; timing the basic pulse signal to acquire cycle time; and respectively outputting a sinusoidal waveform and a cosine waveform by a 8-bit numbers mode in one cycle time. The filter and the method have simple hardware structure, and realize signal generation by sufficiently utilizing the singlechip to ensure that the production cost and manufacture cost are greatly reduced.

Description

A kind of SCM Based MDAC narrow band tracking filter and its implementation
Technical field
The present invention relates to a kind of filter and its implementation, relate in particular to a kind of SCM Based MDAC narrow band tracking filter and its implementation.
Background technology
Imbalance is the main cause that rotating machinery produces noise and breaks down, and will eliminate the amount of unbalance that rotor unbalance just must at first be measured rotating machinery.The measurement of amount of unbalance mainly is to realize by the vibration signal that detects rotating shaft (or supporting).
The vibratory response that is caused by amount of unbalance is and the signal of rotor speed with frequency, and the actual vibration signal that obtains by vibrating sensor, except that including homogenous frequency signal, also comprise the noise signal that produces owing to influences such as being subjected to rotor, bearing, foundation structure and environment thereof.For this reason, must adopt the method for filtering from strong jamming, to extract the vibration signal that amount of unbalance causes.Because the instability of rotor speed, correspondingly, the unbalance vibration response frequency also can change thereupon.This requires the filter in the dynamic balancing measurement system not only extremely narrow bandwidth will be arranged, and wants to follow the tracks of change in rotational speed.
The narrow band tracking filter of using in the dynamic balancing measurement system mainly contains wattmeter, switched capacitor filter and based on multiplying digital-to-analog converter (MDAC) narrow band tracking filter of EPROM etc.Wattmeter is a kind of mechanical type multiplication filter, and its shortcoming is a limited bandwidth, and luminous point can occur rock when low frequency.Switching capacity filter signal filtering field has obtained using widely, but when being applied to vibration signal processing, it has the some shortcomings part, mainly show: the one, because there is the sampling process to analog signal in switching capacity filter, preposition low pass filter is had relatively high expectations, easily cause HF noise signal is brought the aliasing in spectra error; The 2nd, the output waveform of switching capacity filter is stepped sine wave, and the waveform of vibration signal is deformed, and has introduced additive error, and the subsequent processes more complicated.
Based on the MDAC narrow band tracking filter of EPROM as shown in Figure 1, f wherein 0Expression and the reference pulse signal of rotating speed with frequency, e (t) represents vibration signal, E 1, E 2Be respectively low pass filter 1 ' output.
By E 1, E 2Can obtain the once per revolution vibration signal amplitude that imbalance causes is
Figure GDA0000020105790000021
The phase difference of once per revolution vibration signal and reference pulse signal is
Figure GDA0000020105790000022
Based on the advantage of the MDAC narrow band tracking filter of EPROM is the weak point that has overcome wattmeter, switched capacitor filter, has good certainty of measurement, shortcoming be adopt in this method of measurement 512 frequency multipliers 2 ', 512 system ring counters 3 ' and EPROM sine, cosine function generator 4 ', 5 ' just producing, cosine function, hardware is comparatively complicated, the cost height.Owing to adopt example, in hardware, make that the modification of circuit design is comparatively inconvenient in addition.
Summary of the invention
The objective of the invention is to overcome the defective of prior art and a kind of SCM Based MDAC narrow band tracking filter and its implementation are provided, its hardware configuration is simple, make full use of single-chip microcomputer and realize the generation of signal, make production and manufacturing cost reduce greatly.
The technical scheme that realizes above-mentioned purpose is:
One of the present invention's a kind of SCM Based MDAC narrow band tracking filter, comprise first multiplying digital-to-analog converter, second multiplying digital-to-analog converter, first low pass filter that links to each other with first multiplying digital-to-analog converter, second low pass filter that links to each other with second multiplying digital-to-analog converter, described first multiplying digital-to-analog converter and second multiplying digital-to-analog converter all receive a vibration signal, wherein, comprise that also one is connected in the single-chip microcomputer of the input of described first multiplying digital-to-analog converter and second multiplying digital-to-analog converter, the input of this single-chip microcomputer receives a reference pulse signal, and output exports the digital sine signal respectively and the digital cosine signal is given described first multiplying digital-to-analog converter and second multiplying digital-to-analog converter.
Above-mentioned SCM Based MDAC narrow band tracking filter, wherein, described single-chip microcomputer outputs signal to described first multiplying digital-to-analog converter and second multiplying digital-to-analog converter by its I/O mouth.
Above-mentioned SCM Based MDAC narrow band tracking filter, wherein, described single-chip microcomputer includes interrupt pin, and this interrupt pin receives described reference pulse signal.
Above-mentioned SCM Based MDAC narrow band tracking filter, wherein, described single-chip microcomputer comprises an external interrupt module, a first timer and a second timer, wherein:
Described external interrupt module receives the pulse train of described reference pulse signal, and external interrupt of response outputs signal to first timer in the cycle of each reference pulse;
Described first timer is used for the time span between twice external interrupt of timing, is the cycle duration T of a reference pulse, wherein, and T bit period duration;
Described second timer carries out this cycle to obtain T/N behind the branches such as N, and it carries out timing to the interval time length between two discrete points among the T/N, and this time is counted, and wherein, N is a positive integer.
Above-mentioned SCM Based MDAC narrow band tracking filter, wherein, described first and second timers are the timer with counting and timing interrupt function.
The implementation method of the present invention's two a kind of SCM Based MDAC narrow band tracking filter, receive and the reference pulse signal of rotating speed with frequency, this signal is exported to two groups of multiplying digital-to-analog converters that are connected in series and low pass filter after treatment respectively, comprise when wherein, reference pulse signal being handled:
Receive the pulse train of described reference pulse signal, external interrupt of response in the cycle of each reference pulse;
The reference pulse signal that receives is carried out timing, obtain the one-period duration;
In the one-period duration, export a sinusoidal waveform and a cosine waveform to two multiplying digital-to-analog converters respectively with 8 bit digital forms, these two waveforms are formed by N discrete point, and wherein, N is a positive integer.
The implementation method of above-mentioned SCM Based MDAC narrow band tracking filter, wherein, described processing to reference pulse signal is by a chip microcontroller that comprises external interrupt module, first timer and second timer, this single-chip microcomputer is connected in the input of described multiplying digital-to-analog converter, wherein:
Described external interrupt module receives the pulse train of described reference pulse signal, external interrupt of response in the cycle of each reference pulse;
Described first timer is used for the time span between twice external interrupt of timing, is the cycle duration of a reference pulse, and this cycle is carried out obtaining T/N behind the branches such as N, wherein, and T bit period duration;
Described second timer carries out this cycle to obtain T/N behind the branches such as N, it carries out timing to the interval time length between two discrete points among the T/N, and this time counted, behind the counting, export a sinusoidal waveform and a cosine waveform to two multiplying digital-to-analog converters respectively with 8 bit digital forms, wherein, N is a positive integer.
The implementation method of above-mentioned SCM Based MDAC narrow band tracking filter, wherein, described implementation method comprises the steps:
Step S1, initialization step, finish the initialization of system, set each hardware and enter operating state, two timers are set to timing mode, and wherein first timer is used for the period T of measuring basis pulse signal, and second timer carries out this cycle obtaining T/N behind the branches such as N, and count, and the storehouse of single-chip microcomputer is carried out initialization;
Step S2 opens interrupt step, and the interruption of open single-chip microcomputer comprises that external interrupt and timer interrupt, wherein:
When the external interrupt module receives reference pulse signal, then trigger external interrupt, described external interrupt is used to respond reference pulse, responds one time external interrupt in the cycle at each reference pulse;
Timer interrupts comprising that first timer interrupts and second timer interrupts,
When cycle of the reference pulse that measures during greater than the timing maximum of first timer, thereby first timer overflowed to produce and interrupted this moment, will turn to first timer to interrupt then automatically;
When the T/N time span regularly finishes, second timer produces and overflows interruption, then turns to second timer to interrupt automatically;
Step S3 waits for interrupt step, waits for external interrupt.
The implementation method of above-mentioned SCM Based MDAC narrow band tracking filter, wherein, described external interrupt comprises the steps:
Step S211 stops timer, promptly stops the timing of first, second timer, so that give their attached initial values;
Step S212, export sin (0), cos (0) respectively to two multiplying digital-to-analog converters, respectively to N point discrete sine ripple, the cosine wave of first, second digital to analog converter output, this sine wave and cosine wave equally spaced are dispersed among the reference pulse period T, and sinusoidal wave first sin (0) and first cos (0) of cosine wave promptly sent in the zero hour in reference pulse cycle;
Step S213, the initialization second timer, is set to T/N at the initialization timing time of initialization second timer;
Step S214 starts second timer, starts second timer and carries out timing, finishes the timing of T/N time until second timer, then enters step S215;
Step S215, just, the attached initial value of cosine pointer, promptly respectively to two multiplying digital-to-analog converters outputs sin (1), sin (2) ... and cos (1), cos (2)
Step S216, the initialization first timer, the initialization first timer is measured the new reference pulse cycle after the initialization;
Step S217 finishes external interrupt.
The implementation method of above-mentioned SCM Based MDAC narrow band tracking filter, wherein:
Described first timer interrupts comprising: give the attached initial value of first timer earlier, restart first timer then, overflow number of times and add one automatically;
Described second timer interrupts comprising: at first with the manual zero clearing of interrupt identification, the each interruption, second timer can be exported a sine value and a cosine value respectively to two multiplying digital-to-analog converters, then just, move one behind the cosine pointer, prepare output next time, in the one-period, second timer can interrupt once every the time of T/N, and exported sine value and the cosine value of a corresponding time.
The invention has the beneficial effects as follows: hardware configuration of the present invention is simple, the function that has made full use of single-chip microcomputer realizes the generation of signal, substituted the circuit structure of original complexity, and can very convenient modification frequency, for example be revised as 512 etc., utilize most of single-chip microcomputers of supply in the market all can realize the present invention by 256.
Description of drawings
Fig. 1 is based on the structural representation of the MDAC narrow band tracking filter of EPROM in the prior art;
Fig. 2 is the structural representation of one of the present invention's SCM Based MDAC narrow band tracking filter;
Fig. 3 is the flow chart of implementation method of the present invention's two SCM Based MDAC narrow band tracking filter;
Fig. 4 is the flow chart of the present invention's two external interrupt.
Embodiment
The invention will be further described below in conjunction with accompanying drawing.
See also Fig. 2, there is shown one of the present invention's a kind of SCM Based MDAC narrow band tracking filter, comprise first multiplying digital-to-analog converter 1, second multiplying digital-to-analog converter 2, first low pass filter 3 that links to each other with first multiplying digital-to-analog converter 1, second low pass filter 4 that links to each other with second multiplying digital-to-analog converter 1, first multiplying digital-to-analog converter 1 and second multiplying digital-to-analog converter 2 all receive a vibration signal e (t), comprise that also one is connected in the single-chip microcomputer 5 of the input of first multiplying digital-to-analog converter 1 and second multiplying digital-to-analog converter 2, the input of this single-chip microcomputer 5 receives a reference pulse signal f 0, output exports the digital sine signal respectively and the digital cosine signal is given first multiplying digital-to-analog converter 1 and second multiplying digital-to-analog converter 2.
Single-chip microcomputer 5 outputs signal to first multiplying digital-to-analog converter 1 and second multiplying digital-to-analog converter 2 by its I/O mouth, and single-chip microcomputer 5 includes interrupt pin INT, and this interrupt pin INT receives reference pulse signal f 0, f 0Expression and the reference pulse signal of rotating speed with frequency, E 1, E 2Be respectively the output of filter.Single-chip microcomputer 5 receives reference pulse signal, and this signal promptly produces once at each swing circle and interrupts as interrupt signal, and this interruption moment point can be used as a time reference point, and carries out corresponding interrupt routine.The function of interrupt routine comprises: 1. period T of measuring basis pulse, and calculated rate or rotating speed; 2. produce digital sine signal and digital cosine signal, I/O by single-chip microcomputer 5 outputs to first, second multiplying digital-to- analog converter 1,2, most of single-chip microcomputers that utilization of the present invention is supplied in the market can be realized, the model of the single-chip microcomputer 5 that adopts in the present embodiment is AT89S52, the model of first, second multiplying digital-to- analog converter 1,2 is TLC7825, and first, second low pass filter 3,4 adopts the low pass filter that is made of operational amplifier OP07 and resistance, electric capacity.
Single-chip microcomputer 5 comprises an external interrupt module (not shown), one 16 a first timer (not shown) and a second timer (not shown), and first and second timers are to have the counting and the timer of interrupt function regularly, wherein:
The external interrupt module receives the pulse train of described reference pulse signal, and external interrupt of response outputs signal to first timer in the cycle of each reference pulse;
First timer is used for the time span between twice external interrupt of timing, is the cycle duration T of a reference pulse, wherein, and T bit period duration;
Second timer carries out this cycle to obtain T/N behind the branches such as N, and it carries out timing to the interval time length between two discrete points among the T/N, and this time is counted, and wherein, N is a positive integer, and N is 256.The second timer of AT89S52 can be as one 16 Timer of resetting automatically.The TH2 of second timer, TL2 constitute 16 up counters, RCAP2H, RCAP2L constitute 16 initial registers, and when count value is overflowed, interrupt identification TF2 is put 1, the initial value that presets among RCAP2H, the RCAP2L will pack into automatically TH2, TL2, timer begins to count again from initial value.Interrupt flag bit needs the manual zero clearing of user.
Operation principle:
Suppose that tested vibration signal is
Figure GDA0000020105790000061
In the formula, A, ω 0,
Figure GDA0000020105790000062
Be respectively vibration signal amplitude, angular frequency, with the phase difference of reference signal, n (t) is for sneaking into the interference signal in the vibration signal.
The digital sine signal and the digital cosine signal that produce by single-chip microcomputer 5 can be expressed as respectively
e sin(t)=sin(ω 0t),e cos(t)=cos(ω 0t) (2)
The output of first multiplying digital-to-analog converter 1 and second multiplying digital-to-analog converter 2 is respectively
Figure GDA0000020105790000063
Figure GDA0000020105790000064
Figure GDA0000020105790000071
Figure GDA0000020105790000072
First in formula (3) and the formula (4) is DC terms (constant term), and second and third is the interchange item, therefore can remove and exchange item by low pass filter, and the taking-up DC terms, i.e. the output of low pass filter is respectively
Figure GDA0000020105790000073
Figure GDA0000020105790000074
Can obtain once per revolution vibration signal amplitude that imbalance causes and the phase difference of this once per revolution vibration signal and reference pulse signal is by formula (5), formula (6)
Figure GDA0000020105790000075
The implementation method of the present invention's two a kind of SCM Based MDAC narrow band tracking filter, receive and the reference pulse signal of rotating speed with frequency, this signal is exported to two groups of multiplying digital-to-analog converters that are connected in series and low pass filter after treatment respectively, reference pulse signal is handled the chip microcontroller that comprises external interrupt module, first timer and second timer by, this single-chip microcomputer is connected in the input of described multiplying digital-to-analog converter, and method comprises:
Receive the pulse train of reference pulse signal, external interrupt of response realizes this process by the external interrupt module in the cycle of each reference pulse;
The reference pulse signal that receives is carried out timing, obtain the one-period duration, promptly first timer is used for the time span between twice external interrupt of timing, it is the cycle duration of a reference pulse, and this cycle carried out obtaining T/N behind the branches such as N, wherein, T is a cycle duration;
In the one-period duration, export a sinusoidal waveform and a cosine waveform to two multiplying digital-to-analog converters respectively with 8 bit digital forms, these two waveforms are formed by N discrete point, wherein, N is a positive integer, be 256 in the present embodiment, also can be set to 512 etc., be that second timer carries out this cycle to obtain T/N behind the branches such as N, it carries out timing to the interval time length between two discrete points among the T/N, and this time is counted, behind the counting, export a sinusoidal waveform and a cosine waveform to two multiplying digital-to-analog converters respectively with 8 bit digital forms, wherein, N is a positive integer.Because the rotor speed changes relatively slowly and continuously, thus can be with the duration of last time-count cycle, as the time span of the complete waveform in this cycle.
See also Fig. 3 below, show the present invention's two flow chart, implementation method comprises the steps:
Step S1, initialization step is finished the initialization of system, sets each hardware and enters operating state, two timers are set to timing mode, second timer is the cycle count of resetting automatically, and external interrupt module trailing edge triggers, and wherein first timer is used for the period T of measuring basis pulse signal, second timer carries out this cycle to obtain T/N behind the branches such as N, and count, the storehouse of single-chip microcomputer is carried out initialization, to guarantee that single-chip microcomputer can normally move when carrying out redirect;
Step S2 opens interrupt step, and the interruption of open single-chip microcomputer comprises that external interrupt and timer interrupt, wherein:
When the external interrupt module receives reference pulse signal, then trigger external interrupt, external interrupt is used to respond reference pulse, responds one time external interrupt in the cycle at each reference pulse;
Timer interrupts comprising that first timer interrupts and second timer interrupts,
When cycle of the reference pulse that measures during greater than the timing maximum of first timer, thereby first timer overflowed to produce and interrupted this moment, will turn to first timer to interrupt then automatically;
When the T/N time span regularly finishes, second timer produces and overflows interruption, then turns to second timer to interrupt automatically;
Step S3 waits for interrupt step, waits for external interrupt.
To be described further each interruption below.
See also Fig. 4, flow chart for the present invention's two external interrupt, after external interrupt triggers, one-period finishes, enter the next cycle, before giving the attached initial value of timer, for begin in the next cycle just output just, cosine waveform, to 8 bit digital quantity of MDAC output sin (0) and cos (0), time delay is reduced to minimum at once.Write down the count value T of first timer and overflow number of times, just can obtain the time span in the cycle of counting, and give the attached initial value of second timer, the TH2=RCAP2H=first timer overflows number of times, RCAP2L=TH1, the TL2=TH1+ compensation rate, so the timing of second timer is T/256.Start second timer afterwards, make the 2nd sin value and cos value also can in time export.Because the counting of first timer is grown (one-period time), thus can in the attached initial value of timer, add a time bias, and first timer is placed on last startup.External interrupt comprises the steps:
Step S211, stop timer, promptly stop the timing of first, second timer, so that give their attached initial values, the cycle of reference pulse is corresponding with the rotating speed of rotor, rotor whenever rotates a circle and just produces a reference pulse, because the rotating speed of rotor may change, therefore the cycle of reference pulse also changes, thereby to the measurement in reference pulse cycle of finishing by first timer with finish 256 five equilibriums in this cycle by second timer and must be upgraded again when each reference pulse generation;
Step S212, export sin (0), cos (0) respectively to two multiplying digital-to-analog converters, respectively to N point discrete sine ripple, the cosine wave of first, second digital to analog converter output, this sine wave and cosine wave equally spaced are dispersed among the reference pulse period T, and sinusoidal wave first sin (0) and first cos (0) of cosine wave promptly sent in the zero hour in reference pulse cycle;
Step S213, the initialization second timer, is set to T/N at the initialization timing time of initialization second timer;
Step S214 starts second timer, starts second timer and carries out timing, finishes the timing of T/N time until second timer, then enters step S215;
Step S215, just, the attached initial value of cosine pointer, promptly respectively to two multiplying digital-to-analog converters outputs sin (1), sin (2) ... and cos (1), cos (2)
Step S216, the initialization first timer, the initialization first timer is measured the new reference pulse cycle after the initialization;
Step S217 finishes external interrupt.
First timer interrupts only can occurring in first timer and interrupts counting when overflowing, be the maximum clocking value of the length of time-count cycle greater than 16 bit timing devices, this explanation rotor speed this moment is smaller, rotary speed is slow, comprise: give the attached initial value of first timer earlier, restart first timer then, overflow number of times and add one automatically;
Second timer interrupts comprising: at first with the manual zero clearing of interrupt identification, the each interruption, second timer can be exported a sine value and a cosine value respectively to two multiplying digital-to-analog converters, then just, move one behind the cosine pointer, prepare output next time, in the one-period, second timer can interrupt once every the time of T/N, and exported sine value and the cosine value of a corresponding time.
256 discrete datas sinusoidal wave and cosine wave are deposited in the program storage in order, their positions in memory are fixing, the address that is them is fixed, like this, second timer interrupted once every the time of T/256, according to the sinusoidal pointer of the address of pointing to sinusoidal wave data with point to the position of memory of cosine pointed of the address of cosine wave data, to corresponding sine and the cosine data of MDAC output.Because the data of sinusoidal wave and cosine wave are arranged according to the order of sequence, therefore after finishing data output, sinusoidal pointer and cosine pointer all should add 1, to point to the data address that the next one will be exported.
Among the present invention, single-chip microcomputer receives reference pulse signal, and this signal promptly produces once at each swing circle and interrupts as interrupt signal, and this interruption moment point can be used as a time reference point, and carries out corresponding interrupt routine.Single-chip microcomputer causes external interrupt by reference pulse signal, externally starting the reference pulse cycle count in the break in service interrupts, come to finish the reference pulse cycle count in next reference pulse signal external interrupt, with sinusoidal, the cosine signal of this cycle insertion temporarily.
Most of single-chip microcomputers that utilization of the present invention is supplied in the market can be realized.Basic demand to single-chip microcomputer is: 1. at least one outer interrupt module; 2. at least 2 16 counting modules, and have counting/timing interrupt function.
Above embodiment is only for the usefulness that the present invention is described, but not limitation of the present invention, person skilled in the relevant technique, under the situation that does not break away from the spirit and scope of the present invention, can also make various conversion or modification, therefore all technical schemes that are equal to also should belong to category of the present invention, should be limited by each claim.

Claims (10)

1. SCM Based MDAC narrow band tracking filter, comprise first multiplying digital-to-analog converter, second multiplying digital-to-analog converter, first low pass filter that links to each other with first multiplying digital-to-analog converter, second low pass filter that links to each other with second multiplying digital-to-analog converter, described first multiplying digital-to-analog converter and second multiplying digital-to-analog converter all receive a vibration signal, it is characterized in that, comprise that also one is connected in the single-chip microcomputer of the input of described first multiplying digital-to-analog converter and second multiplying digital-to-analog converter, the input of this single-chip microcomputer receives a reference pulse signal, and output exports the digital sine signal respectively and the digital cosine signal is given described first multiplying digital-to-analog converter and second multiplying digital-to-analog converter.
2. SCM Based MDAC narrow band tracking filter according to claim 1 is characterized in that described single-chip microcomputer outputs signal to described first multiplying digital-to-analog converter and second multiplying digital-to-analog converter by its I/O mouth.
3. SCM Based MDAC narrow band tracking filter according to claim 1 is characterized in that described single-chip microcomputer includes interrupt pin, and this interrupt pin receives described reference pulse signal.
4. SCM Based MDAC narrow band tracking filter according to claim 1 is characterized in that described single-chip microcomputer comprises an external interrupt module, a first timer and a second timer, wherein:
Described external interrupt module receives the pulse train of described reference pulse signal, and external interrupt of response outputs signal to first timer in the cycle of each reference pulse;
Described first timer is used for the time span between twice external interrupt of timing, is the cycle duration T of a reference pulse, wherein, and T bit period duration;
Described second timer carries out this cycle to obtain T/N behind the branches such as N, and it carries out timing to the interval time length between two discrete points among the T/N, and this time is counted, and wherein, N is a positive integer.
5. SCM Based MDAC narrow band tracking filter according to claim 4 is characterized in that, described first and second timers are the timer with counting and timing interrupt function.
6. the implementation method of a SCM Based MDAC narrow band tracking filter, receive and the reference pulse signal of rotating speed with frequency, this signal is exported to two groups of multiplying digital-to-analog converters that are connected in series and low pass filter after treatment respectively, it is characterized in that, comprise when reference pulse signal is handled:
Receive the pulse train of described reference pulse signal, external interrupt of response in the cycle of each reference pulse;
The reference pulse signal that receives is carried out timing, obtain the one-period duration;
In the one-period duration, export a sinusoidal waveform and a cosine waveform to two multiplying digital-to-analog converters respectively with 8 bit digital forms, these two waveforms are formed by N discrete point, and wherein, N is a positive integer.
7. the implementation method of SCM Based MDAC narrow band tracking filter according to claim 6, it is characterized in that, described processing to reference pulse signal is by a chip microcontroller that comprises external interrupt module, first timer and second timer, this single-chip microcomputer is connected in the input of described multiplying digital-to-analog converter, wherein:
Described external interrupt module receives the pulse train of described reference pulse signal, external interrupt of response in the cycle of each reference pulse;
Described first timer is used for the time span between twice external interrupt of timing, is the cycle duration of a reference pulse, and this cycle is carried out obtaining T/N behind the branches such as N, wherein, and T bit period duration;
Described second timer carries out this cycle to obtain T/N behind the branches such as N, it carries out timing to the interval time length between two discrete points among the T/N, and this time counted, behind the counting, export a sinusoidal waveform and a cosine waveform to two multiplying digital-to-analog converters respectively with 8 bit digital forms, wherein, N is a positive integer.
8. according to the implementation method of claim 6 or 7 described SCM Based MDAC narrow band tracking filters, it is characterized in that described implementation method comprises the steps:
Step S1, initialization step, finish the initialization of system, set each hardware and enter operating state, two timers are set to timing mode, and wherein first timer is used for the period T of measuring basis pulse signal, and second timer carries out this cycle obtaining T/N behind the branches such as N, and count, and the storehouse of single-chip microcomputer is carried out initialization;
Step S2 opens interrupt step, and the interruption of open single-chip microcomputer comprises that external interrupt and timer interrupt, wherein:
When the external interrupt module receives reference pulse signal, then trigger external interrupt, described external interrupt is used to respond reference pulse, responds one time external interrupt in the cycle at each reference pulse;
Timer interrupts comprising that first timer interrupts and second timer interrupts,
When cycle of the reference pulse that measures during greater than the timing maximum of first timer, thereby first timer overflowed to produce and interrupted this moment, will turn to first timer to interrupt then automatically;
When the T/N time span regularly finishes, second timer produces and overflows interruption, then turns to second timer to interrupt automatically;
Step S3 waits for interrupt step, waits for external interrupt.
9. the implementation method of SCM Based MDAC narrow band tracking filter according to claim 8 is characterized in that, described external interrupt comprises the steps:
Step S211 stops timer, promptly stops the timing of first, second timer, so that give their attached initial values;
Step S212, export sin (0), cos (0) respectively to two multiplying digital-to-analog converters, respectively to N point discrete sine ripple, the cosine wave of first, second digital to analog converter output, this sine wave and cosine wave equally spaced are dispersed among the reference pulse period T, and sinusoidal wave first sin (0) and first cos (0) of cosine wave promptly sent in the zero hour in reference pulse cycle;
Step S213, the initialization second timer, is set to T/N at the initialization timing time of initialization second timer;
Step S214 starts second timer, starts second timer and carries out timing, finishes the timing of T/N time until second timer, then enters step S215;
Step S215, just, the attached initial value of cosine pointer, promptly respectively to two multiplying digital-to-analog converters outputs sin (1), sin (2) ... and cos (1), cos (2) ...;
Step S216, the initialization first timer, the initialization first timer is measured the new reference pulse cycle after the initialization;
Step S217 finishes external interrupt.
10. the implementation method of SCM Based MDAC narrow band tracking filter according to claim 8 is characterized in that:
Described first timer interrupts comprising: give the attached initial value of first timer earlier, restart first timer then, overflow number of times and add one automatically;
Described second timer interrupts comprising: at first with the manual zero clearing of interrupt identification, the each interruption, second timer can be exported a sine value and a cosine value respectively to two multiplying digital-to-analog converters, then just, move one behind the cosine pointer, prepare output next time, in the one-period, second timer can interrupt once every the time of T/N, and exported sine value and the cosine value of a corresponding time.
CN201010129319A 2010-03-22 2010-03-22 Singlechip-based MDAC narrowband tracking filter and realizing method thereof Expired - Fee Related CN101771399B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010129319A CN101771399B (en) 2010-03-22 2010-03-22 Singlechip-based MDAC narrowband tracking filter and realizing method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010129319A CN101771399B (en) 2010-03-22 2010-03-22 Singlechip-based MDAC narrowband tracking filter and realizing method thereof

Publications (2)

Publication Number Publication Date
CN101771399A true CN101771399A (en) 2010-07-07
CN101771399B CN101771399B (en) 2012-10-17

Family

ID=42504057

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010129319A Expired - Fee Related CN101771399B (en) 2010-03-22 2010-03-22 Singlechip-based MDAC narrowband tracking filter and realizing method thereof

Country Status (1)

Country Link
CN (1) CN101771399B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110411474A (en) * 2019-07-22 2019-11-05 杭州沃朴物联科技有限公司 Step-recording method, equipment, medium, device, chicken board and management system for breeding

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1375817A (en) * 2001-03-19 2002-10-23 北京阜国数字技术有限公司 Audio signal comprssing coding/decoding method based on wavelet conversion
CN101257248A (en) * 2007-06-20 2008-09-03 兰州理工大学 Small power single-phase / three phase low distortion frequency conversion power source
CN101474081A (en) * 2008-12-30 2009-07-08 深圳市蓝韵实业有限公司 Device for producing orthogonal local oscillation signal in continuous Doppler ultrasound imaging system
CN201656935U (en) * 2010-03-22 2010-11-24 上海辛克试验机有限公司 MDAC (Multiplying Digital-to-Analog Converter) narrowband tracking filter based on singlechip

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1375817A (en) * 2001-03-19 2002-10-23 北京阜国数字技术有限公司 Audio signal comprssing coding/decoding method based on wavelet conversion
CN101257248A (en) * 2007-06-20 2008-09-03 兰州理工大学 Small power single-phase / three phase low distortion frequency conversion power source
CN101474081A (en) * 2008-12-30 2009-07-08 深圳市蓝韵实业有限公司 Device for producing orthogonal local oscillation signal in continuous Doppler ultrasound imaging system
CN201656935U (en) * 2010-03-22 2010-11-24 上海辛克试验机有限公司 MDAC (Multiplying Digital-to-Analog Converter) narrowband tracking filter based on singlechip

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110411474A (en) * 2019-07-22 2019-11-05 杭州沃朴物联科技有限公司 Step-recording method, equipment, medium, device, chicken board and management system for breeding

Also Published As

Publication number Publication date
CN101771399B (en) 2012-10-17

Similar Documents

Publication Publication Date Title
CN103048486B (en) Device and method for measuring rotation speeds and positions of rotors of birotor permanent magnet wind-driven generator
CN102155989B (en) Vibration analyzer for wind-driven generator
CN201035098Y (en) Power consumer harmonic monitoring statistical device
CN100388267C (en) Periodic signal equivalent sampling method based on parametric model
WO2017000514A1 (en) Synchronous printing and dyeing control system for dsp- and fpga-based embedded controller
CN103257271A (en) Device and method for detecting micro grid harmonic wave and inter-harmonics based on STM32F107VCT6
CN201277904Y (en) Wireless vibration monitoring apparatus for hydroelectric generating set
CN102661786B (en) Method for acquiring and analyzing rotor vibration signal of variable-rotation wind generation set
CN109283354A (en) A kind of change M/T speed-measuring method based on incremental optical-electricity encoder
CN102680728A (en) Motor rotation speed measuring method used in precise electromechanical equipment
CN101771399B (en) Singlechip-based MDAC narrowband tracking filter and realizing method thereof
CN202793576U (en) Torsional vibration measurement device of wind turbine transmission system
CN105203020A (en) Rotary transformer demodulation device for excitation synchronization
CN105043667A (en) Method for calculating amplitude and phase of unbalanced vibration signal of rotor in real time
CN102661787A (en) Transform analysis method of rotor vibration signal of variable-rotation wind generation set
CN201656935U (en) MDAC (Multiplying Digital-to-Analog Converter) narrowband tracking filter based on singlechip
CN205484836U (en) Multichannel pulse amplitude analyzer
CN200979669Y (en) An internal integration clock generation circuit in USB equipment square chip
CN109739122A (en) A kind of half wave excitation fast lock phase method
CN102175264A (en) Method for measuring bandwidth of optical fiber gyroscope
CN212748964U (en) Rotating speed indicator
CN205025689U (en) Aerogenerator gear box early warning device
CN205785503U (en) A kind of rotating machinery vibrating measures system
CN203404021U (en) Detector for yaw direction and angle of wind-driven generator
CN101363766A (en) Method for implementing whole cycle sampling for dynamic balancing measurement

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
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20121017

Termination date: 20140322