Summary of the invention
The equalizer that the main purpose of the application is to provide a kind of tunable gain equalizer, can automatically adjust gain
And the Gain Automatic adjusting method of power amplifier, by realizing the gain adjustment to wideband power amplifer, to solve, debugging cost is high, criticizes
Measure the poor problem of consistency.
To achieve the goals above, according to the one aspect of the application, a kind of tunable gain equalizer is provided, comprising:
First microstrip line, the second microstrip line, varactor and solid relay device;The end of second microstrip line connects institute
Varactor is stated, first microstrip line is in parallel with second microstrip line, the solid relay device and the transfiguration
Diodes in parallel.
To achieve the goals above, according to further aspect of the application, the equal of gain can be automatically adjusted by providing one kind
Weighing apparatus circuit.
The equalizer for automatically adjusting gain according to the application includes: tunable gain equalizer, radio-frequency power coupling
The input terminal of clutch, power detection pipe and microcontroller, the tunable gain equalizer and wideband power amplifer connects, institute
The output end that radio-frequency power coupler is connected to the wideband power amplifer is stated, the power detection pipe is coupled with the power
The output end of device connects, and the input terminal of the microcontroller is connect with the power detection pipe, the control terminal of the microcontroller
It being connect with the tunable gain equalizer, the power detection pipe is used to detect the feedback signal of the wideband power amplifer,
And by the feedback signal transmission to the microcontroller, so that the controller is described adjustable according to feedback signal control
The running parameter of gainequalizer realizes the gain adjustment to wideband power amplifer.
Further, the microcontroller includes analog-to-digital conversion port, the output end of the power detection pipe and institute
The connection of analog-to-digital conversion port is stated, detecting circuit VRMS is input to the port ADC of microcontroller.
It further, include the first digital analog converter and the second digital analog converter in the microcontroller;Institute
It states the first digital analog converter to connect with the control terminal of the varactor, export for controlling the varactor
The first voltage value, to control the control voltage of the varactor;Second digital analog converter and the number can
Resistor connection is adjusted, the second voltage value for controlling the solid relay device is exported, to control the digital adjustable electric
Hinder the resistance value of device.
To achieve the goals above, it according to the another aspect of the application, provides a kind of real based on above-mentioned equalizer
The method of the existing Gain Automatic adjusting of power amplifier.
The equalizer implementation method for automatically adjusting gain according to the application includes: to obtain the detection of power detection pipe
Current voltage value;Maximum voltage value is found in prestoring voltage value table according to the current voltage value;According to the maximum electricity
Pressure value adjusts first digital analog converter and second digital analog converter.
Further, first digital analog converter and the second digital mould are adjusted according to the maximum voltage value
After quasi- converter further include: by first digital analog converter, export for controlling the varactor
One voltage value, to control the control voltage of the varactor.
Further, first digital analog converter and the second digital mould are adjusted according to the maximum voltage value
After quasi- converter further include: by second digital analog converter, export for controlling the solid relay device
Second voltage value.
Further, judge whether the flat gain in working frequency range reaches predetermined target value by microcontroller, if
It is then to keep the voltage value in the first digital analog converter and the second digital analog converter.
Further, judge whether the flat gain in working frequency range reaches predetermined target value by microcontroller, if
It is no, then adjust the voltage value in the first digital analog converter and the second digital analog converter.
Further, before the current voltage value for obtaining the detection of power detection pipe, further includes: default in preset interval input
The point-frequency signal of power;Signal passes through the tunable gain equalizer and wideband power amplifer, then through radio-frequency power coupler
Coupled power detection tube detects detecting circuit;The detecting circuit is input to the analog-to-digital conversion end of the microcontroller
Mouthful;Frequency is established after saving the detecting circuit value in preset interval and voltage value obtains prestoring voltage value table.
In the embodiment of the present application, using tunable gain equalizer, radio-frequency power coupler, power detection pipe and micro-control
The input terminal of device processed, the tunable gain equalizer and wideband power amplifer connects, and the radio-frequency power coupler is connected to
The output end of the wideband power amplifer, the power detection pipe are connect with the output end of the power coupler, pass through institute
The input terminal for stating microcontroller is connect with the power detection pipe, and the control terminal of the microcontroller is balanced with the adjustable gain
Device connection, the power detection pipe are used to detect the feedback signal of the wideband power amplifer, and the feedback signal is passed
It is defeated to arrive the microcontroller, so that the controller is joined according to the work that the feedback signal controls the tunable gain equalizer
Number realizes the gain adjustment to wideband power amplifer.Achieve the purpose that automatically adjust gain, to realize according to needed for
Gain flatness situation in working frequency range is adjusted to the working frequency range, changes gain curve, reaches flat gain in compensation frequency range
The technical effect of the effect of degree, and then solve the technical problem that debugging cost is high, batch consistency is poor.
Specific embodiment
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application
Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only
The embodiment of the application a part, instead of all the embodiments.Based on the embodiment in the application, ordinary skill people
Member's every other embodiment obtained without making creative work, all should belong to the model of the application protection
It encloses.
It should be noted that the description and claims of this application and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way
Data be interchangeable under appropriate circumstances, so as to embodiments herein described herein.In addition, term " includes " and " tool
Have " and their any deformation, it is intended that cover it is non-exclusive include, for example, containing a series of steps or units
Process, method, system, product or equipment those of are not necessarily limited to be clearly listed step or unit, but may include without clear
Other step or units listing to Chu or intrinsic for these process, methods, product or equipment.
In addition, term " installation ", " setting ", " being equipped with ", " connection ", " connected ", " socket " shall be understood in a broad sense.For example,
It may be a fixed connection, be detachably connected or monolithic construction;It can be mechanical connection, or electrical connection;It can be direct phase
It even, or indirectly connected through an intermediary, or is two connections internal between device, element or component.
For those of ordinary skills, the concrete meaning of above-mentioned term in this application can be understood as the case may be.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase
Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
As shown in Figs. 1-2, one of the embodiment of the present application tunable gain equalizer, comprising: the first microstrip line 11, second
Microstrip line 10, varactor 12 and solid relay device 13;The end of second microstrip line 10 connects the transfiguration
Diode 12, first microstrip line 11 is in parallel with second microstrip line 10, the solid relay device 13 and the change
It is in parallel to hold diode 12.
Specifically, signal is inputted from the port RF-in, the first microstrip line 11, varactor 12, solid relay device 13
It is connected in parallel on the second microstrip line 10 respectively.It should be noted that microstrip line is micro- using 50 Ω characteristic impedances in the present embodiment
Band line.First microstrip line 11 long 15mm, wide 0.6mm, microstrip line copper thickness 0.0171mm, microstrip line medium high 0.33mm, PCB
Take relative dielectric constant 4.2.One can be concatenated in microstrip line (including the first microstrip line 11 and second microstrip line 10) end
Varactor D1 and number adjustable resistor a R1, varactor D1 and solid relay device R1 is to be connected in parallel,
Signal is exported after tunable gain equalizer processing by port RF-out later.
It should be noted that the junction capacity for applying varactor in tunable gain equalizer can be according to backward voltage
The different and characteristic that changes in a certain range.Therefore as shown in Fig. 2, when changing the size for controlling voltage V1, two pole of transfiguration
The junction capacity of pipe 12 will change, since varactor 12 is serially connected in microstrip line (including the first microstrip line 11 and
Two microstrip lines 10) end, change the junction capacity of varactor 12, that is, change microstrip line (including the first microstrip line 11
And second microstrip line 10) electrical length, realize resonance frequency and changed between 1000MHz~4000MHz.
It should be noted that the balanced device of automatic adjustment gain is realized by the wavelength wave traps principle of λ/4.Microstrip line presses feature
50 Ω of impedance production.Bandwidth of operation is 1000MHz~4000MHz.Center frequency point is 2500MHz.The micro-strip line length L is taken to be
1.5cm, and microstrip line end is concatenated varactor D1 can be with by adjusting the control voltage V1 of varactor D1
Microstrip line electrical length is adjusted, realizes the center frequency point of adjustment balanced device.The tunable digital potentiometer in parallel with varactor D1
R1 is to adjust attenuation, by changing tunable digital potentiometer R1 resistance value, thus it is possible to vary gain curve variation tendency reaches tune
The effect of whole link gain flatness.
As shown in Figure 1, additionally providing the equalizer that can automatically adjust gain in embodiments herein, comprising:
Tunable gain equalizer 1, radio-frequency power coupler 3, power detection pipe 5 and the microcontroller 4, the adjustable gain are equal
Weighing apparatus 1 is connect with the input terminal of wideband power amplifer 2, and the radio-frequency power coupler 3 is connected to the broadband power amplification
The output end of device 2, the power detection pipe 5 are connect with the output end of the radio-frequency power coupler 3, the microcontroller 4
Input terminal is connect with the power detection pipe 5, and the control terminal of the microcontroller 4 is connect with the tunable gain equalizer 1, institute
Power detection pipe 5 is stated for detecting the feedback signal of the wideband power amplifer 2, and by the feedback signal transmission described in
Microcontroller 4, so that the controller 4 controls the running parameter of the tunable gain equalizer according to the feedback signal, it is real
Now to the gain adjustment of wideband power amplifer 2.
Preferably, the microcontroller includes the port analog-to-digital conversion ADC, the output end of the power detection pipe and institute
The connection of the port analog-to-digital conversion ADC is stated, detecting circuit VRMS is input to the end analog-to-digital conversion ADC of microcontroller
Mouthful.The detecting circuit VRMS of the power detection pipe 5 is input to the port analog-to-digital conversion ADC of microcontroller.
It preferably, include the first digital analog converter DAC1 and the second digital analog converter in the microcontroller 4
DAC2;The first digital analog converter DAC1 is connect with the control terminal of the varactor, and output is described for controlling
The first voltage value of varactor, to control the control voltage of the varactor;Second digital analog converter
DAC2 is connect with the solid relay device, exports the second voltage value for controlling the solid relay device, with control
Make the resistance value of the solid relay device.Preferably, in the first digital analog converter DAC1 of the microcontroller and
Two digital analog converter DAC2 export the V1 for controlling varactor and for adjusting the solid relay respectively
The V2 of device.
Specifically, in order to complete the automatic electric tune of gain and frequency, one is concatenated in the rear end of wideband power amplifer 2 and is penetrated
Frequency power coupler 3, by the third port of radio-frequency power coupler 3 concatenate respectively a power detection pipe, one can make
The detecting circuit VRMS of the microcontroller microcontroller 4 of calculation process, power detection pipe 5 is input to microcontroller microcontroller 4
The port analog-to-digital conversion ADC, the digital quantity of calculating can be identified by being converted to microcontroller microcontroller 4.
Specifically, in working frequency range, believe in the point frequency that RF-in input terminal interval 10MHz inputs a constant power Pin
Number, it is coupled to average power detection by tunable gain equalizer 1 and wideband power amplifer 2, then through radio-frequency power coupler 3
Pipe 5 detects voltage VRMS in average power detection tube 5, and the analog-to-digital conversion ADC port translation for being input to microcontroller 4 is
Digital quantity.The in store VRMS voltage value every 10MHz of microcontroller 4, establishes the table of a frequency and voltage value.Pass through
MCU calculating is compared, and finds the maximum value of voltage value and corresponding frequency point in table, then adjust the first digital simulation of microcontroller 4
Converter DAC1 and the second digital analog converter DAC2, output voltage values V1 and V2, it is balanced to control automatic adjustment respectively respectively
The D1 and number adjustable resistor R1 of device gradually form the gain of one with power tube to change the gain curve of balanced device
The opposite curve of curve is finally reached the smallest purpose of gain flatness Δ.
In order to complete the automatic electric tune of gain and frequency, a radio-frequency power coupler, radio frequency function are concatenated in power amplifier rear end
The third port of rate coupler concatenates a power detection pipe, a microprocessor that can make calculation process, power inspection respectively
The detecting circuit VRMS of wave duct is input to the port analog-to-digital conversion ADC of microprocessor, and being converted to microprocessor can identify
The digital quantity of calculating.In working frequency range, believe in the point frequency that RF-in input terminal interval 10MHz inputs a constant power Pin
Number, it is coupled to average power detection tube by balanced device and wideband power amplifer, then through radio-frequency power coupler, detects voltage
VRMS, the analog-to-digital conversion ADC port translation for being input to microprocessor is digital quantity.Microprocessor is in store every 10MHz
VRMS voltage value, establish the table of a frequency and voltage value.Compared by microprocessor calculating, finds voltage value in table
Maximum value and corresponding frequency point, then adjust the DAC1 and DAC2 of microprocessor, respectively output voltage values V1 and V2, respectively control from
The dynamic D1 and number adjustable resistor R1 for adjusting balanced device gradually forms one and function to change the gain curve of balanced device
The opposite curve of the gain curve of pipe is put, flat gain is finally reached according to the maximum voltage value and adjusts the described first digital mould
After quasi- converter and second digital analog converter, further includes: by second digital analog converter, output is used
In the second voltage value for controlling the solid relay device.
As preferred in the present embodiment, judge whether the flat gain in working frequency range reaches pre- by microcontroller
If target value, if so, keeping the voltage value in the first digital analog converter and the second digital analog converter.
As preferred in the present embodiment, judge whether the flat gain in working frequency range reaches pre- by microcontroller
If target value, if it is not, then adjusting the voltage value in the first digital analog converter and the second digital analog converter.
As preferred in the present embodiment, before the current voltage value for obtaining the detection of power detection pipe, further includes:
In the point-frequency signal of preset interval input predetermined power;Signal passes through the tunable gain equalizer and broadband power
Amplifier, then detecting circuit is detected through radio-frequency power coupler coupled power detection tube;The detecting circuit is input to described
The port analog-to-digital conversion ADC of microcontroller;Frequency is established after saving the detecting circuit value in preset interval and voltage value obtains
To prestoring voltage value table.
It can be seen from the above description that the application realizes following technical effect:
The equalizer that gain can be automatically adjusted reduces debugging cost, improves batch consistency, and improve
Circuit application compatibility issue, meanwhile, it is little to occupy PCB surface product.The invention is adjustable by adjusting varactor voltage
Resonance frequency point, the resistance value for adjusting resistor can change gain, and the two will not influence each other, and debug convenient and efficient.It can basis
Gain flatness situation in required working frequency range is adjusted to the working frequency range, changes gain curve, reaches gain in compensation frequency range
The effect of flatness.
According to the embodiment of the present application, additionally provides and a kind of the Gain Automatic adjusting of power amplifier is realized based on the equalizer
Method, as shown in figure 3, this method comprises:
Step S100 obtains the current voltage value of power detection pipe detection;
Step S101 finds maximum voltage value in prestoring voltage value table according to the current voltage value;
Step S102 adjusts first digital analog converter and the second digital mould according to the maximum voltage value
Quasi- converter.
As preferred in the present embodiment, first digital analog converter and institute are adjusted according to the maximum voltage value
After stating the second digital analog converter further include: by first digital analog converter, export for controlling the change
Hold the first voltage value of diode, to control the control voltage of the varactor.
As preferred in the present embodiment, first digital analog converter and institute are adjusted according to the maximum voltage value
After stating the second digital analog converter further include: by second digital analog converter, export for controlling the number
The second voltage value of word adjustable resistor.
Specifically, in working frequency range, believe in the point frequency that RF-in input terminal interval 10MHz inputs a constant power Pin
Number, it is coupled to average power detection tube by balanced device and wideband power amplifer, then through radio-frequency power coupler, detects voltage
VRMS, the analog-to-digital conversion ADC port translation for being input to microcontroller is digital quantity.Microcontroller it is in store every
The VRMS voltage value of 10MHz, establishes the table of a frequency and voltage value.Compared by microcontroller calculating, finds table
The maximum value of middle voltage value and corresponding frequency point, then adjust the DAC1 and DAC2 of microcontroller, respectively output voltage values V1 and
V2, control automatically adjusts the D1 and digital adjustable resistor R1 of balanced device respectively, to change the gain curve of balanced device, gradually
A curve opposite with the gain curve of power tube is formed, the smallest purpose of gain flatness is finally reached.
Please referring to Fig. 4 is described not by the power amplifier gain profile of optimization.Wherein, in center frequency point
2000MHz, gain highest, and as frequency is down or up, gain is declined.Entire working frequency range gain fluctuation is about
3dB.Please referring to Fig. 5 is that description electricity adjusts balanced device gain curve obtained.The balanced device is decayed most in center frequency point 2000MHz
Greatly, in two sideband attenuation minimums of working frequency range, gain curve direction and power amplifier gain curve direction are just opposite.And it please join
It examines Fig. 6 and describes whole link gain situation.When the electricity adjusts balanced device to concatenate together with power amplifier, integrally increase in working frequency range
Beneficial flatness is optimized, and is optimized to about 1dB fluctuation from former 3dB gain fluctuation.It further include that Fig. 7 describes entire electricity and adjusts
The workflow of benefit and frequency.
The junction capacity that foregoing circuit applies varactor can occur in a certain range according to backward voltage difference
The characteristic of change.When the size for changing control voltage V1, the junction capacity of varactor will change, due to two pole of transfiguration
Pipe is serially connected in microstrip line (including the first microstrip line 11 and second microstrip line 10) end, changes the junction capacity of varactor,
The electrical length for namely changing microstrip line realizes the result that resonance frequency changes between 1000MHz~4000MHz.
As preferred in the present embodiment, judge whether the flat gain in working frequency range reaches pre- by microcontroller
If target value, if so, keeping the voltage value in the first digital analog converter and the second digital analog converter.
As preferred in the present embodiment, judge whether the flat gain in working frequency range reaches pre- by microcontroller
If target value, if it is not, then adjusting the voltage value in the first digital analog converter and the second digital analog converter.
As shown in fig. 7, in working frequency range, inputting a constant power in RF-in input terminal interval 10MHz after powering on
Size is the point-frequency signal of Pin, is coupled to mean value function by balanced device and wideband power amplifer, then through radio-frequency power coupler
Rate detection tube detects voltage VRMS, and the analog-to-digital conversion ADC port translation for being input to microprocessor is digital quantity.Micro process
The in store VRMS voltage value every 10MHz of device, establishes the table of a frequency and voltage value.Pass through microprocessor calculating ratio
Compared with finding in table the maximum value of voltage value and corresponding frequency point, then adjust the first digital analog converter DAC1 of microprocessor
With the second digital analog converter DAC2, output voltage values V1 and V2, control the D1 sum number of automatic adjustment balanced device respectively respectively
Word adjustable resistor R1, to change the gain curve of balanced device, gradually form one it is opposite with the gain curve of power tube
Curve is finally reached the smallest purpose of gain flatness Δ.
Obviously, those skilled in the art should be understood that each module of above-mentioned the application or each step can be with general
Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed
Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored
Be performed by computing device in the storage device, perhaps they are fabricated to each integrated circuit modules or by they
In multiple modules or step be fabricated to single integrated circuit module to realize.In this way, the application be not limited to it is any specific
Hardware and software combines.
The foregoing is merely preferred embodiment of the present application, are not intended to limit this application, for the skill of this field
For art personnel, various changes and changes are possible in this application.Within the spirit and principles of this application, made any to repair
Change, equivalent replacement, improvement etc., should be included within the scope of protection of this application.