Background technology
In present radio-frequency transmitter, zero-if architecture is used more and more widely.So-called zero intermediate frequency reciver is meant that radiofrequency signal directly becomes the receiver structure that centre frequency is zero baseband signal by mixing, and this structure chip integration height needs external device few, and monolithic is integrated easily, has low, the low in energy consumption advantage of cost.But zero-if architecture is also introduced some other problemses, and such as direct current offset, local-oscillator leakage, the interference of low noise amplifier even-order harmonic, flicker noise etc., a wherein most important problem is a direct current offset.
Direct current offset mainly is that the self-mixing owing to local oscillation signal produces in downconversion process.Because the local oscillator mouth and the isolation performance between the radio frequency mouth of frequency converter can not be desirable, local oscillation signal can be from the radio frequency mouth output of frequency converter, leak into antenna by high-frequency amplifier again, the local oscillation signal that leaks is got back to high-frequency amplifier from antenna, enter the radio frequency mouth of low-converter, the local oscillation signal that it and local oscillator mouth enter is through mixing, and difference frequency is a zero frequency, is direct current offset.In addition, not matching of the even distortion of signal and baseband circuit also can produce direct current offset.All these direct current offsets are superimposed upon on the baseband signal, and these direct current offsets often noise than radio-frequency front-end are also big, this not only can make the signal to noise ratio variation, and these big direct current offsets also may make the amplifiers at different levels behind the frequency mixer saturated, can't amplify useful signal.If direct current offset enters digital baseband, can produce further influence to the performance of whole receiving system.Therefore from the application point of chip, must consider direct current offset is eliminated that the direct current offset in the data how cancellation receiver receives also just becomes problem demanding prompt solution.
A solution of prior art is: utilize following formula to calculate the average of the data that receive:
Wherein, x (i) is the data that receive at digital baseband, and N is the number that is used to estimate the data of direct current, and DC is direct current offset;
To calculate average, then, from the data that receive, deduct the direct current offset that calculates again, so eliminate as current direct current offset.
Yet when averaging in the reality, because the restriction of statistics length, the average that calculates can not reflect the size of dc offset exactly.Therefore, above-mentioned use averaging method is carried out the direct current offset elimination, however can make data introduce certain distortion, thus the performance of system is affected, measure as SNR and forbidden degradation under the systematic function.Particularly for the situation that bursty interference is arranged in the signal, the signal waveform that has burst as shown in Figure 1, when bursty interference is arranged,, have a strong impact on the performance of system if the employing averaging method is carried out the elimination meeting of direct current offset because the influence of bursty interference causes the estimation of DC component inaccurate.
Summary of the invention
The embodiment of the invention provides a kind of method and device of cancellation of DC offset, eliminates the direct current offset in the radio frequency reception effectively, improves the radio frequency receptivity, and can suppress the bursty interference that averaging method can't overcome.
For this reason, the embodiment of the invention provides following technical scheme:
A kind of method of cancellation of DC offset comprises:
Obtain the data of the predetermined number that receives at digital baseband;
Calculate the intermediate value of the data of described predetermined number, and with described intermediate value as current direct current offset;
In the data that digital baseband receives, deduct the data of described direct current offset as the digital baseband actual reception.
Preferably, the intermediate value of the data of the described predetermined number of described calculating comprises:
Calculate the average M of the data of described predetermined number, described predetermined number is N;
Determine that numerical value is less than the number K of described average M in the described N data;
If
Then will be less than the intermediate value of the maximum in K the data of average M as the data of described predetermined number;
Otherwise, from a described N data, take out partial data according to the value of K and sort, with the intermediate value of the sequence after the ordering as the intermediate value of the data of described predetermined number.
Preferably, partial data sorted and comprises during described value according to K was got from a described N data:
If
Then take out K data, according to descending rank order less than M;
If
Then take out N-K data, according to ascending rank order greater than M.
Alternatively, the intermediate value of the data of the described predetermined number of described calculating comprises:
To the data of described predetermined number according to ascending or descending rank order, with the intermediate value of the sequence after the ordering intermediate value as the data of described predetermined number.
A kind of device of cancellation of DC offset comprises:
Acquiring unit is used to obtain the data in the predetermined number of digital baseband reception;
Computing unit calculates the intermediate value of the data of described predetermined number, and with described intermediate value as current direct current offset;
Eliminate the unit, be used for deducting the data of described direct current offset as the digital baseband actual reception in the data that digital baseband receives.
Preferably, described computing unit comprises:
The mean value computation subelement is used to calculate the average M of the data of described predetermined number, and described predetermined number is N;
Quantity is determined subelement, is used for determining the number K of described N data numerical value less than described average M;
Subelement relatively, be used for comparison K with
Size;
First determines subelement, is used for
The time, will be less than the intermediate value of the maximum in K the data of average M as the data of described predetermined number;
Second determines subelement, is used for
The time, from a described N data, take out partial data according to the value of K and sort, with the intermediate value of the sequence after the ordering as the intermediate value of the data of described predetermined number.
Preferably, described second determines that subelement comprises:
The ordering subelement is used for
Taking-up is less than K the data of M, according to descending rank order;
Taking-up is greater than N-K the data of M, according to ascending rank order;
Intermediate value is chosen subelement, is used for intermediate value with the sequence after the ordering as the intermediate value of the data of described predetermined number.
Alternatively, described computing unit specifically is used for data to described predetermined number according to ascending or descending rank order, with the intermediate value of the sequence after the ordering intermediate value as the data of described predetermined number.
The method of embodiment of the invention cancellation of DC offset and device are by obtaining the data of the predetermined number that receives at digital baseband; Calculate the intermediate value of the data of described predetermined number, and with described intermediate value as current direct current offset; In the data that digital baseband receives, deduct the data of described direct current offset as the digital baseband actual reception.Can eliminate the direct current offset in the radio frequency reception effectively, improve the radio frequency receptivity, and can suppress the bursty interference that averaging method can't overcome.
Embodiment
In order to make those skilled in the art person understand the scheme of the embodiment of the invention better, the embodiment of the invention is described in further detail below in conjunction with drawings and embodiments.
At utilizing the averaging method cancellation of DC offset to have in signal under the situation of bursty interference in the prior art, the estimation of DC component is inaccurate, and then influences the problem of the performance of system, and the embodiment of the invention adopts median method that direct current offset is eliminated.
By probability theory as can be known, as long as the data length long enough of statistics is not having under the situation of direct current offset, the distribution of data on 0 value both sides that influenced by white Gaussian noise is equiprobable.
As shown in Figure 2, be not have under the situation of direct current offset, be subjected to the simulation result schematic diagram of the CDF (Cumulative Distribution Function, cumulative distribution function) of the data that white Gaussian noise disturbs.Fig. 3 is not having under the situation of direct current offset, is subjected to the simulation result schematic diagram of the PDF (ProbabilityDistribution Function, probability-distribution function) of the data that white Gaussian noise disturbs.
Wherein, the real part of Real representative data, the imaginary part of Imag representative data.As seen from the figure, the data on 0 value both sides are that strict equiprobability distributes.
Can prove that by above theory analysis and simulation result as long as the data length long enough of statistics, the data on 0 value both sides are that strict equiprobability distributes.In like manner, can release, when having direct current offset DC, data also are to wait general the distribution on the DC both sides.According to this good distribution character, can think that intermediate value can reflect the size of direct current offset comparatively exactly, the elimination of adopting median method to carry out direct current offset is feasible.
For this reason, the method for embodiment of the invention cancellation of DC offset is by obtaining the data of the predetermined number that receives at digital baseband; Calculate the intermediate value of the data of described predetermined number, and with described intermediate value as current direct current offset; In the data that digital baseband receives, deduct the data of described direct current offset as the digital baseband actual reception.
As shown in Figure 4, be the flow chart of the method for embodiment of the invention cancellation of DC offset, may further comprise the steps:
Step 401 is obtained the data in the predetermined number of digital baseband reception;
Step 402 is calculated the intermediate value of the data of described predetermined number, and with described intermediate value as current direct current offset;
Step 403 deducts the data of described direct current offset as the digital baseband actual reception in the data that digital baseband receives.
Median method can be eliminated the direct current offset in the radio frequency reception effectively for realizing more simple averaging method, improve the radio frequency receptivity, and can suppress the bursty interference that averaging method can't overcome.And for adopting filter or special direct current to eliminate for the circuit, median method has the low advantage of implementation complexity.It is that a kind of performance is more excellent that the median method direct current is eliminated, and the method that implementation complexity is low is convenient to use in practice very much.Especially when having the situation of spread spectrum and many code channels, because spread spectrum can be eliminated the DC component (spreading code is positive and negative replacing) of extra introducing, and under many code channels situation, the data volume that participates in median calculation increases, thereby the intermediate value that obtains is more accurate.
Need to prove, when in above-mentioned steps 302, calculating the intermediate value of data of described predetermined number, can adopt the mode that all data are sorted, particularly, to the data of described predetermined number according to ascending or descending rank order, with the intermediate value of the sequence after the ordering intermediate value as the data of described predetermined number.
Certainly, in order further to reduce amount of calculation, the embodiment of the invention also provides a kind of preferred method for simplifying.
As shown in Figure 5, be a kind of specific implementation flow chart of the method for embodiment of the invention cancellation of DC offset, may further comprise the steps:
Step 501 is obtained N the data x (i) that receives at digital baseband;
Step 502 is calculated the average M of described N data x (i);
Step 503 determines that numerical value is less than the number K of M in N the data;
Step 504 judges whether K equals
If then execution in step 505; Otherwise execution in step 506;
Step 505 is taken out the maximum less than K the data of M, and with this maximum as current direct current offset; Then, execution in step 509;
Step 506, further judge K whether greater than
If then execution in step 507; Otherwise execution in step 508;
Step 507 is taken out K data less than M, according to descending rank order, with the intermediate value of the sequence after sorting as current direct current offset, promptly
Then, execution in
step 509;
Step 508 is taken out N-K data greater than M, according to ascending rank order, with the intermediate value of the sequence after sorting as current direct current offset, promptly
Step 509 deducts the data of described direct current offset as the digital baseband actual reception in the data that digital baseband receives.
Certainly, the embodiment of the invention also is not limited only to aforesaid way when calculating intermediate value, also can adopt the mode of other calculating intermediate value.
As seen, the method for this embodiment cancellation of DC offset not only can be eliminated the direct current offset in the radio frequency reception effectively, improves the radio frequency receptivity, and can suppress the bursty interference that averaging method can't overcome; And reduced amount of calculation.
Further, the result has also confirmed the improvement of the embodiment of the invention to the radio frequency receptivity respectively from measurement accuracy and systematic function two aspects by experiment.
As shown in Figure 6, be that radio-frequency transmitter rear end SNR (Signal to Noise Ratio, signal to noise ratio) measures curve.
Wherein, Middle value, i.e. curve 61 expressions utilize the method for the embodiment of the invention to carry out the curve that direct current offset is eliminated; Mean value, i.e. the curve of curve 62 expression averaging method direct current offsets eliminations; NoDCO, i.e. the curve that direct current offset is eliminated is not done in curve 60 expressions.
As shown in Figure 7, be the BLER (Block Error Ratio, Block Error Rate) that tests at the FRC (Fixed Reference Channel, fixed reference channel) of HSDPA (High Speed Downlink Packet Access, high speed downlink packet inserts).
Abscissa Ior among the figure (The received power spectral density)/Ioc (The power spectraldensity) is the size of signal to noise ratio, and wherein Ior and Ioc are respectively UE receiving end signal power spectral density and noise (comprising presence of intercell interference and other noises) power spectral density.
As seen from Figure 7, use the scheme of the embodiment of the invention, eliminate with the averaging method direct current offset and compare, when high s/n ratio, receptivity can promote about 0.5dB.Performance is consistent when adopting the median method direct current offset to eliminate almost with no direct current offset.
As seen, utilize the scheme of the embodiment of the invention can improve the accuracy that the radio-frequency transmitter rear end is measured, improve receptivity, the receptivity during especially than high s/n ratio.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to instruct relevant hardware to finish by program, described program can be stored in the computer read/write memory medium, described storage medium, as: ROM/RAM, magnetic disc, CD etc.
Correspondingly, the embodiment of the invention also provides a kind of device of cancellation of DC offset, as shown in Figure 8, is a kind of structural representation of this device.
In this embodiment, described device comprises:
Acquiring unit 801 is used to obtain the data in the predetermined number of digital baseband reception;
Computing unit 802 calculates the intermediate value of the data of described predetermined number, and with described intermediate value as current direct current offset;
Eliminate unit 803, be used for deducting the data of described direct current offset as the digital baseband actual reception in the data that digital baseband receives.
In embodiments of the present invention, described computing unit 802 can adopt the mode that all data are sorted to calculate the intermediate value of the data of described predetermined number, particularly, to the data of described predetermined number according to ascending or descending rank order, with the intermediate value of the sequence after the ordering intermediate value as the data of described predetermined number.
Certainly, in order further to reduce amount of calculation, the embodiment of the invention also provides a kind of preferred embodiment to described computing unit 802.
As shown in Figure 9, be a kind of preferred structure schematic diagram of computing unit in the embodiment of the invention.
In this embodiment, described computing unit comprises:
Mean value computation subelement 901 is used to calculate the average M of the data of described predetermined number, and described predetermined number is N;
Quantity is determined subelement 902, is used for determining the number K of described N data numerical value less than described average M;
Subelement 903 relatively, be used for comparison K with
Size;
First determines subelement 904, is used for
The time, will be less than the intermediate value of the maximum in K the data of average M as the data of described predetermined number;
Second determines subelement 905, is used for
The time, according to the value of K from a described N data
Take out partial data and sort, with the intermediate value of the sequence after the ordering intermediate value as the data of described predetermined number.
Described second determines that subelement 905 comprises: ordering subelement and intermediate value are chosen subelement.Wherein, described ordering subelement is used for
Taking-up is less than K the data of M, according to descending rank order;
Taking-up is greater than N-K the data of M, according to ascending rank order; Described intermediate value is chosen subelement, is used for intermediate value with the sequence after the ordering as the intermediate value of the data of described predetermined number.
The device of embodiment of the invention cancellation of DC offset can be eliminated the direct current offset in the radio frequency reception effectively, improves the radio frequency receptivity, and can suppress the bursty interference that averaging method can't overcome.
More than the embodiment of the invention is described in detail, used embodiment herein the present invention set forth, the explanation of above embodiment just is used for help understanding method and apparatus of the present invention; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.