[embodiment]
Figure 1 shows that DC bias eliminating system of the present invention, this DC bias eliminating system comprises differential amplification module 10, multiplexer 20, numeral 30, add circuit 40, same phase vector/orthogonal vectors (inphase/quadrature, I/Q) modulator 50, spectrum analysis module 60, DC bias cancellation module 70 and conversion control circuit 80.
The outside baseband signal that differential amplification module 10 is used for receiving is converted to differential baseband signal, and it can comprise differential amplifier D1 and D2.Usually, baseband signal comprises vectorial I and vectorial Q.In the present embodiment, differential amplifier D1 and D2 receive vectorial I and vectorial Q respectively, and vectorial I and vectorial Q are converted to differential vectorial I+, I-and Q+, Q-.
Numeral 30 comprises digital/analog converter 21,22,23 and 24, and it is respectively applied for the digital DC deviator adjustment parameter that will receive and is converted into analog DC deviator adjustment parameter I A, IB, QA and QB.In the present embodiment, the analog DC deviator adjusts parameter I A and IB is defined as first group of analog DC deviator adjustment parameter, and the analog DC deviator adjusts parameter QA and QB is defined as second group of analog DC deviator adjustment parameter.
Add circuit 40 comprises adder S1, S2, S3 and S4, described adder S1, S2, S3 and S4 are corresponding to respectively after analog DC deviator adjustment parameter I A, IB, QA, QB and external differential baseband signal I+, I-, Q+, the Q-addition, export corresponding pin I+, I-, Q+, the Q-of I/Q modulator 50 to.In detail, first adder S1 adjusts parameter I A addition with differential vectorial I+ and analog DC deviator, and exports the pin I+ of I/Q modulator 50 to.Second adder S2 adjusts parameter I B addition with differential vectorial I-and analog DC deviator, and exports the pin I-of I/Q modulator 50 to.The 3rd adder S3 adjusts parameter QA addition with differential vectorial Q+ and analog DC deviator, and exports the pin Q+ of I/Q modulator 50 to.The 4th adder S4 adjusts parameter QB addition with differential vectorial Q-and analog DC deviator, and exports the pin Q-of I/Q modulator 50 to.
The differential baseband signal of I/Q modulator 50 after with the addition that receives is converted to radio frequency (RF) signal.In the present embodiment, I/Q modulator 50 is differential modulator, and then its input signal is required to be differential wave.So the baseband signal of input needs to be converted to differential wave by differential amplification module 10, exports I/Q modulator 50 again to.
In other execution mode of the present invention, if I/Q modulator 50 is non-differential modulator, then Shu Ru baseband signal need not to be converted to differential wave, can be directly inputted into modulator.Therefore, under this kind situation, above-mentioned differential amplification module 10 can be omitted.
Spectrum analysis module 60 is connected between I/Q modulator 50 and the DC bias cancellation module 70, is used for according to the existing DC bias size of the radiofrequency signal that receives output energy change value.The factor that influences spectrum analysis module 60 output energy values variations is many, for example: DC bias, thermal noise etc.So, in the present embodiment, eliminate DC bias and carry out in preferable environment, promptly the average of the caused by factors energy changing beyond the DC bias is the Gaussian curve distribution near zero.Therefore, spectrum analysis module 60 energy change value that obtains of analyzing is only relevant with DC bias, and increases along with the increase of DC bias.
DC bias cancellation module 70 reads the caused energy change value of DC bias, and by the size of conversion control circuit 80 with analog DC deviator adjustment parameter I A, IB, QA and the QB of 30 outputs of multiplexer 20 adjustment numeral, thereby change the size of DC bias, make that the DC bias value reaches minimum in the system, and then make the energy change value minimum that spectrum analysis module 60 is analyzed.
Because the signal of DC bias cancellation module 70 outputs is a digital radio signal, and the signal that numeral 30 is received is a baseband signal.So, the conversion control circuit 80 that is connected between DC bias cancellation module 70 and the multiplexer 20 is converted to baseband signal with the radiofrequency signal of DC bias cancellation module 70 output, and exports respective digital/analog converter in the numeral 30 to by the multiplexer 20 that is connected between conversion control circuit 80 and the numeral 30.In the present embodiment, conversion control circuit 80 can be an i/q demodulator.
In other execution mode of the present invention, conversion control circuit 80 can be the change-over circuit of other type.
In order to make power supply energy not be depleted in communication process, in the present embodiment, DC bias eliminating system needs to eliminate the DC bias that I/Q modulator 50 is produced before communication.Therefore, when adjusting the DC bias value, turn-off the baseband signal input earlier, promptly do not have the condition downward modulation straightening stream offset value of any signal input in system.
Consult Fig. 2 simultaneously, be depicted as the internal module figure of DC bias cancellation module 70 of the present invention, DC bias cancellation module 70 comprises initialization module 701, read module 702, adjusting module 703 and judge module 704.
When adjusting DC bias, at first, initialization module 701 is adjusted parameter I A, IB, QA, QB in order to initialization analog DC deviator, and the numerical value that makes the analog DC deviator adjust parameter I A, IB, QA, QB equates.The initialization value that I/Q modulator 50 is adjusted parameter I A, IB, QA, QB according to the analog DC deviator is exported initial radiofrequency signal, if the no any variation on fixing energy foundation of spectrum analysis module 60 this moment shows that then no DC bias exists in the system; If this moment, the energy of spectrum analysis module 60 analyses changed on fixing energy foundation, then show to have DC bias in the system.
When spectrum analysis module 60 had energy changing, read module 702 read the primary power changing value that spectrum analysis module 60 is analyzed, and it is corresponding with the DC bias that exists in the initial radiofrequency signal.
Adjusting module 703 by conversion control circuit 80 and multiplexer 20 first group of analog DC deviator is adjusted parameter I A and IB is fixed as initialization value, adjust second group of analog DC deviator simultaneously and adjust parameter QA and QB, promptly adjust parameter QA and the QB variable x that adds deduct simultaneously second group of analog DC deviator.Therefore, it is IA, IB, [QA+x1], [QB+x1] that the analog DC deviator is adjusted parameter transformation, in the present embodiment, variable x1 can on the occasion of, can also be negative value.At this moment, I/Q modulator 50 output first radiofrequency signal, then spectrum analysis module 60 is just analyzed and is obtained first energy change value, and it is corresponding with the DC bias that exists in first radiofrequency signal.
Judge module 704 judges whether first energy change value is minimum value, i.e. first energy change value minimum when the analog DC deviator is adjusted parameter and is IA, IB, [QA+x1], [QB+x1] whether.If first energy change value is not during for minimum value, then continue to adjust second group of analog DC deviator and adjust parameter [QA+x1], [QB+x1], promptly adjust the size of variable x1, make the energy change value of winning for minimum.In the present embodiment, minimum value is defined as according to a certain specific resulting change energy value of analog DC deviator adjustment parameter and adjusts the change energy value of parameter gained compared to other analog DC deviator for minimum.
When first energy change value is adjusted to minimum value, adjusting module 703 is not only fixed first group of analog DC deviator adjustment parameter I A and IB is an initialization value, and the fixing second group of analog DC deviator that obtains the first minimum energy change value adjusted any parameter in the parameter, for example: [QA+x1], adjust another parameter in adjusted second group of analog DC deviator adjustment parameter simultaneously, for example: [QB+x1], and [QB+x1] be adjusted into [QB+x1+y1].Wherein, y1 also is a variable, and its can on the occasion of or negative value.At this moment, I/Q modulator 50 output second radiofrequency signal, then spectrum analysis module 60 is analyzed second energy change value, and the DC bias that exists in second energy change value and second radiofrequency signal is corresponding.
Judge module 704 judges once more whether second energy change value is minimum value, promptly judges whether minimum when the analog DC deviator is adjusted parameter and is IA, IB, [QA+x1], [QB+x1+y1] of this second energy change value.If second energy change value is not during for minimum value, continue to adjust second group of analog DC deviator and adjust [QB+x1+y1] in the parameter, promptly adjust the size of variable y1, make second energy change value for minimum.In the present embodiment, second energy change value is less than first energy change value.
When second energy change value for hour, it is that [QB+x1+y1] is constant that adjusting module 703 fixing adjusted second group of analog DC deviator are adjusted parameter [QA+x1], corresponding minimum second energy change value of described parameter is adjusted first group of analog DC deviator adjustment parameter I A and IB and is [IB+x2] for [IA+x2].Wherein, x2 is a variable, and its can be on the occasion of, also can be negative value.At this moment, I/Q modulator 50 output the 3rd radio frequency signal, then spectrum analysis module 60 analyzes the 3rd energy change value, and the DC bias that exists in the 3rd energy change value and the 3rd radio frequency signal is corresponding.Equally, adjusting module 703 is adjusted the size of variable x2, makes the 3rd energy change value for minimum, i.e. the 3rd energy change value minimum when the analog DC deviator is adjusted parameter and is [IA+x2], [IB+x2], [QA+x1], [QB+x1+y1] whether.In the present embodiment, the 3rd energy change value is less than second energy change value.
When the 3rd energy change value is adjusted to minimum value, adjusting module 703 is not only fixed second group of analog DC deviator adjustment parameter and is [QB+x1+y1] for [QA+x1], also fix first group of analog DC deviator and adjust arbitrary parameter in the parameter, for example: [IA+x2], adjust first group of analog DC deviator simultaneously and adjust another parameter in the parameter, for example: [IB+x2], and be converted into [IB+x2+y2].Wherein, y2 is a variable, and it can be on the occasion of also can being negative value.At this moment, I/Q modulating module 50 output the 4th radiofrequency signal, then spectrum analysis module 60 analyzes the 4th energy change value, and the DC bias that exists in the 4th energy change value and the 4th radiofrequency signal is corresponding.Equally, modulating module 704 is adjusted the size of variable y2, makes the 4th energy change value for minimum, i.e. the 4th energy change value minimum when the analog DC deviator is adjusted parameter and is [IA+x2], [IB+x2+y2], [QA+x1], [QB+x1+y1] whether.In the present embodiment, the 4th energy change value is less than the 3rd energy change value.
In summary, in the whole DC bias adjustment process, the corresponding system of the 4th energy change value minimum direct current offset value, and analog DC deviator adjustment parameter [IA+x2], [IB+x2+y2], [QA+x1], [QB+x1+y1] of the system of acquisition minimum direct current offset value are that the best simulation DC bias is adjusted parameter.In the present embodiment, DC bias eliminating system is adjusted to minimum with the 4th energy change value.
When system's DC bias is adjusted into minimum value, analog DC deviator adjustment parameter I A, IB, QA, QB are fixed to the best simulation DC bias and adjust parameter, thereby being superimposed upon on the described best simulation DC bias adjustment parameter, baseband signal carries out conversion of signals, thereby make baseband signal DC bias value minimum in transfer process, the conserver power source energy.
In other execution mode of the present invention, adjusting module 703 also can be fixed second group of analog DC deviator earlier and adjust parameter, adjusts first group of analog DC deviator and adjusts parameter, makes system's DC bias value reach minimum.And, in the present invention, reading and regulate energy change value and be not limited to the number of times described in the present embodiment, it can change according to actual conditions.
Fig. 3 is the flow chart of DC bias removing method of the present invention.At step S210, initialization module 701 initialization analog DC deviators are adjusted parameter I A, IB, QA, QB, and are identical numerical value with described parameter setting.At step S220, read module 702 reads the primary power changing value from spectrum analysis module 60, and it is corresponding with the DC bias value that exists in the initial radiofrequency signal.At step S230, it is initialization value that adjusting module 703 is fixed first group of analog DC deviator adjustment parameter, adjust second group of analog DC deviator and adjust parameter, make energy change value minimum when first group of analog DC deviator adjusted parameter and be initialization value of frequency spectrum module 60 gained.At step S240, adjusting module 704 fixing adjusted second group of analog DC deviator are adjusted parameter, adjust first group of analog DC deviator and adjust parameter, make when second group of analog DC deviator adjustment parameter is adjusted value the energy change value minimum that spectrum analysis module 60 obtains.
In other execution mode of the present invention, it is initialization value that adjusting module 703 also can be fixed second group of analog DC deviator adjustment parameter earlier, adjusts first group of analog DC deviator and adjusts parameter, the energy change value minimum that makes spectrum analysis module 60 outputs.Then, first group of analog DC deviator fixedly adjusting adjusted parameter, adjusts second group of analog DC deviator and adjusts parameter, the energy change value minimum that makes spectrum analysis module 60 outputs.
Fig. 4 is the flow chart that has of step S230 among Fig. 3 of the present invention and S240.Step S231, adjusting module 703 is fixed first group of analog DC deviator adjustment parameter I A and IB is an initialization value, adjusts second group of analog DC deviator adjustment parameter QA and QB and is [QA+x1] and [QB+x1], wherein, x1 is a variable, and it can be on the occasion of also can negative value.Step S232, read module 702 reads first energy change value.Step S233, judge module 703 judge whether first energy change value is minimum.If first energy change value for hour, does not re-execute step S231.
If first energy change value is for hour, execution in step S234, it is initialization value that adjusting module 703 is fixed first group of analog DC deviator adjustment parameter, and fixing adjusted second energy is adjusted arbitrary parameter in the parameter, for example: [QA+x1], adjust second energy simultaneously and adjust another parameter in the parameter, for example: [QB+x1] is adjusted into it [QB+x1+y1].Wherein, y1 is a variable, and it can be on the occasion of also being negative value.Step S235, read module 702 reads second energy change value.Step S236, judge module 703 judge whether second energy change value is minimum.If second energy change value is not minimum, re-execute step S234.
If second energy change value is for hour, execution in step S241, adjusting module 703 fix second group of analog DC deviator and adjust parameter and be [QA+x1] and [QB+x1+y1], and adjusting first energy, to adjust parameter I A be [IA+x2] and [IB+x2] with IB.Wherein, x2 is a variable, and it can be on the occasion of also can being negative value.Step S242, read module 702 reads the 3rd energy change value.Step S243, judge module 703 judge whether the 3rd energy change value is minimum.If the 3rd energy change value for hour, does not re-execute step S241.
If the 3rd energy change value is for hour, execution in step S244, adjusting module 703 is fixed second group of analog DC deviator adjustment parameter and is [QA+x1] and [QB+x1+y1], and fixing adjusted first group of analog DC deviator adjusted arbitrary parameter in the parameter, for example: [IA+x2], adjust first energy simultaneously and adjust another parameter in the parameter, for example: [IB+x2] is adjusted into it [IB+x2+y2].Wherein, y2 is a variable, and it can be on the occasion of also being negative value.Step S245, read module 702 reads the 4th energy change value.Step S246, judge module 703 judge whether the 4th energy change value is minimum.If the 4th energy change value is not minimum, re-execute step S244.If the 4th energy change value is for hour, the end of whole system flow process.
The present invention utilizes DC bias cancellation module 70 that DC bias in the system is adjusted to minimum, makes in the subsequent communications process, effectively the conserver power source energy loss.