Summary of the invention
The present invention proposes a kind of direct-current offset compensation method of modulus conversion chip, in order to solve the DC offset problem that the ADC chip exists, improves the dynamic range of ADC chip receive path signal identification.
The present invention is a kind of direct-current offset compensation method of modulus conversion chip, and the technical scheme of employing comprises that step is as follows: cut off the signal of modulus conversion chip receive path, the background noise of described modulus conversion chip output is sampled; To the fixing power statistic of duration of the sampled data that obtains, calculate the absolute value of direct current biasing offset according to this power statistic value; Again the described background noise of described modulus conversion chip output is sampled, according to the absolute value of described direct current biasing offset the sampled data that obtains is carried out the direct current biasing compensation; According to the direct current biasing compensation result, draw the direct current biasing offset; Connect the signal of described modulus conversion chip receive path, the signal that described modulus conversion chip is received according to described direct current biasing offset carries out the direct current biasing compensation.
A kind of direct-current offset compensation method of modulus conversion chip comprises that step is as follows:
The signal of step 1, cut-out modulus conversion chip receive path is sampled to the background noise of described modulus conversion chip output;
Step 2, to the fixing power statistic of duration of first sampled data that obtains, the power statistic value P first time that obtains, and calculate the absolute value of direct current biasing offset according to following algorithm:
Or
K is the absolute value of direct current biasing offset, and N is the sample number of sampling, and P is the power statistic value first time;
Step 3, again the described background noise of described modulus conversion chip output is sampled, second sampled data that obtains is added the absolute value of the above direct current biasing offset, obtain the sampled data after the direct current biasing compensation;
Step 4, to the fixing power statistic of duration of the sampled data after the direct current biasing compensation, obtain power statistic value P1 for the second time, relatively for the first time power statistic value P with the second time power statistic value P1 obtain the symbol of direct current biasing offset:
If P〉P1, then the symbol of direct current biasing offset is for negative;
If P<=P1, then the symbol of direct current biasing offset is for just;
The signal of step 5, the described modulus conversion chip receive path of connection, the signal that described modulus conversion chip is received according to described direct current biasing offset carries out the direct current biasing compensation.
A kind of direct-current offset compensation method of modulus conversion chip comprises that step is as follows:
The signal of step 1, cut-out modulus conversion chip receive path is sampled to the background noise of described modulus conversion chip output;
Step 2, to the fixing power statistic of duration of first sampled data that obtains, the power statistic value P first time that obtains, and calculate the absolute value of direct current biasing offset according to following algorithm:
Or
K is the absolute value of direct current biasing offset, and N is the sample number of sampling, and P is the power statistic value first time;
Step 3, again the described background noise of described modulus conversion chip output is sampled, second sampled data that obtains is deducted the absolute value of described direct current biasing offset, obtain the sampled data after the direct current biasing compensation;
Step 4, to the fixing power statistic of duration of the sampled data after the compensation of this direct current biasing, obtain power statistic value P1 for the second time, relatively for the first time power statistic value P with the second time power statistic value P1 obtain the symbol of direct current biasing offset:
If P〉P1, then the symbol of direct current biasing offset is for just;
If P<=P1, then the symbol of direct current biasing offset is for negative;
The signal of step 5, the described modulus conversion chip receive path of connection, the signal that described modulus conversion chip is received according to described direct current biasing offset carries out the direct current biasing compensation.
The present invention proposes a kind of direct-current offset compensation method of modulus conversion chip, comprising: cut off the signal of modulus conversion chip receive path, the background noise of described modulus conversion chip output is sampled; To the fixing power statistic of duration of the sampled data that obtains, calculate the absolute value of direct current biasing offset according to this power statistic value; Again the described background noise of described modulus conversion chip output is sampled, according to the absolute value of described direct current biasing offset the sampled data that obtains is carried out the direct current biasing compensation; According to the direct current biasing compensation result, draw the direct current biasing offset; Connect the signal of described modulus conversion chip receive path, the signal that described modulus conversion chip is received according to described direct current biasing offset carries out the direct current biasing compensation; Realized the direct current biasing compensation of modulus conversion chip, and this method structure is simple, need just can not realize that the direct current biasing of modulus conversion chip is calibrated voluntarily by any supplementary instrument, has improved the dynamic range of ADC chip receive path signal identification.
Embodiment
A kind of direct-current offset compensation method of modulus conversion chip as Fig. 1, comprises that step is as follows:
The signal of step 1, cut-out modulus conversion chip receive path is sampled to the background noise of described modulus conversion chip output.
Step 2, to the fixing power statistic of duration of first sampled data that obtains, the power statistic value P first time that obtains, and according to following algorithm:
(K is the absolute value of direct current biasing offset, and N is the sample number of sampling, and P is the power statistic value first time) calculates the absolute value of direct current biasing offset;
Described fixedly duration, determine according to the accuracy requirement of calculating, duration is more long, precision is more high, and on the contrary, then precision is more low, fixedly duration can be set to different values according to user's request, in the present embodiment, that described fixedly duration adopts is 5ms, namely the sampled data that obtains is continued the power statistic of 5ms;
A kind of concrete execution mode behind the absolute value of calculating direct current biasing offset, also comprises: to the step that the absolute value of described direct current biasing offset is verified, specific as follows:
Absolute value and the thresholding of described direct current biasing offset are compared:
If the absolute value of described direct current biasing offset is not less than described thresholding, the absolute value of then judging described direct current biasing offset is wrong, returning step 1 samples to the described background noise of described modulus conversion chip output again, and recomputate the absolute value of direct current biasing offset according to this sampled data and described algorithm, and if add up to judge that the absolute value of described direct current biasing offset is that wrong number of times surpasses preset threshold value, then stop the direct current biasing compensation, and provide the compensation failure information; Described preset threshold value determines that according to the debugging situation of modulus conversion chip in the present embodiment, described preset threshold value is 3;
If the absolute value of described direct current biasing offset is less than described thresholding, the absolute value of then judging described direct current biasing offset is correct, execution in step 3; Described thresholding is the given value that the technical manual of modulus conversion chip provides;
In addition, as another kind of embodiment, also can adopt another kind of algorithm to calculate the absolute value of described direct current biasing offset, specific algorithm is:
(K is the absolute value of direct current biasing offset, and N is the sample number of sampling, and P is the power statistic value first time);
Can only use wherein a kind of algorithm in the method, and when the absolute value of verifying described direct current biasing offset is mistake, then two kinds of algorithms can intersect use.
Step 3, again the described background noise of described modulus conversion chip output is sampled, second sampled data that obtains is added the absolute value of the above direct current biasing offset, obtain the sampled data after the direct current biasing compensation.
Step 4, to the fixing power statistic of duration of the sampled data after the direct current biasing compensation, obtain power statistic value P1 for the second time, relatively for the first time power statistic value P with the second time power statistic value P1 obtain the symbol of direct current biasing offset:
If P〉P1, then the symbol of direct current biasing offset is for negative;
If P<=P1, then the symbol of direct current biasing offset is for just;
In conjunction with the absolute value of described direct current biasing offset, obtain described direct current biasing offset again;
A kind of concrete execution mode, if P<=P1, obtain direct current configuration offset after, also comprise: to the step that described direct current biasing offset is verified, specific as follows:
Step 401, the described background noise of described modulus conversion chip output is sampled, according to described direct current biasing offset, the 3rd sampled data that obtains is carried out the direct current biasing compensation;
Step 402, to the fixing power statistic of duration of the 3rd sampled data after the direct current biasing compensation, obtain power statistic value P2 for the third time;
Step 403, will be for the third time power statistic value P2 compare with power statistic value P for the first time: if P2<P judges that then described direct current biasing offset is correct, execution in step 5; If P2 〉=P, judge that then described direct current biasing offset is wrong, stop the direct current biasing compensation and provide the compensation failure information.
The signal of step 5, the described modulus conversion chip receive path of connection, the signal that described modulus conversion chip is received according to described direct current biasing offset carries out the direct current biasing compensation.
The present invention also provides another embodiment of a kind of direct-current offset compensation method of modulus conversion chip, as Fig. 2, comprises that step is as follows:
The signal of step 1, cut-out modulus conversion chip receive path is sampled to the background noise of described modulus conversion chip output.
Step 2, to the fixing power statistic of duration of first sampled data that obtains, the power statistic value P first time that obtains, and according to following algorithm:
(K is the absolute value of direct current biasing offset, and N is the sample number of sampling, and P is the power statistic value first time) calculates the absolute value of direct current biasing offset;
Described fixedly duration, determine according to the accuracy requirement of calculating, duration is more long, precision is more high, and on the contrary, then precision is more low, fixedly duration can be set to different values according to user's request, in the present embodiment, that described fixedly duration adopts is 5ms, namely first sampled data that obtains is continued the power statistic of 5ms;
A kind of concrete execution mode behind the absolute value of calculating direct current biasing offset, also comprises: to the step that the absolute value of described direct current biasing offset is verified, specific as follows:
Absolute value and the thresholding of described direct current biasing offset are compared:
If the absolute value of described direct current biasing offset is not less than described thresholding, the absolute value of then judging described direct current biasing offset is wrong, returning step 1 samples to the described background noise of described modulus conversion chip output again, and recomputate the absolute value of direct current biasing offset according to this sampled data, and if add up to judge that the absolute value of described direct current biasing offset is that wrong number of times surpasses preset threshold value, then stop the direct current biasing compensation, and provide the compensation failure information; Described preset threshold value determines that according to the debugging situation of modulus conversion chip in the present embodiment, described preset threshold value is 3;
If the absolute value of described direct current biasing offset is less than described thresholding, the absolute value of then judging described direct current biasing offset is correct, execution in step 3; Described thresholding is the given value that the technical manual of modulus conversion chip provides;
In addition, as another kind of embodiment, also can adopt another kind of algorithm to calculate the absolute value of described direct current biasing offset, specifically:
(K is the absolute value of direct current biasing offset, and N is the sample number of sampling, and P is the power statistic value first time); Can only use wherein a kind of algorithm in the method, and when the absolute value of verifying described direct current biasing offset is mistake, then two kinds of algorithms can intersect use.
Step 3, again the described background noise of described modulus conversion chip output is sampled, second sampled data that obtains is deducted the absolute value of described direct current biasing offset, obtain the sampled data after the direct current biasing compensation;
Step 4, to the fixing power statistic of duration of the sampled data after the compensation of this direct current biasing, obtain power statistic value P1 for the second time, relatively for the first time power statistic value P with the second time power statistic value P1 obtain the symbol of direct current biasing offset:
If P〉P1, then the symbol of direct current biasing offset is for just;
If P<=P1, then the symbol of direct current biasing offset is for negative;
In conjunction with the absolute value of described direct current biasing offset, obtain described direct current biasing offset again;
A kind of concrete execution mode, if P<=P1, obtain the direct current biasing offset after, also comprise: to the step that described direct current biasing offset is verified, specific as follows:
Step 401, the described background noise of described modulus conversion chip output is sampled, according to described direct current biasing offset, the 3rd sampled data that obtains is carried out the direct current biasing compensation;
Step 402, to the fixing power statistic of duration of the sampled data after the direct current biasing compensation, obtain power statistic value P2 for the third time;
Step 403, will be for the third time power statistic value P2 compare with power statistic value P for the first time: if P2<P judges that then described direct current biasing offset is correct, execution in step 5; If P2 〉=P, judge that then described direct current biasing offset is wrong, stop the direct current biasing compensation and provide the compensation failure information.
The signal of step 5, the described modulus conversion chip receive path of connection, the signal that described modulus conversion chip is received according to described direct current biasing offset carries out the direct current biasing compensation.
Above-described embodiment of the present invention does not constitute the restriction to protection range of the present invention.Any modification of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., all should be included within the claim protection range of the present invention.