Summary of the invention
The object of the embodiment of the present invention is to provide a kind of gain control method of radio frequency front-end device, be intended to solve in prior art, user adopts π type attenuator to finely tune the gain of radio frequency front-end device, easily cause the phenomenons such as rosin joint, solder skip or dry joint, and the action of welding repeatedly greatly reduces the reliability of product and the problem of qualification rate.
The embodiment of the present invention is achieved in that a kind of gain control method of radio frequency front-end device, said method comprising the steps of:
Receiving attenuation amount fine adjustment signal, and judge attenuation that described attenuation fine adjustment signal is corresponding and modulated attenuation and whether exceed default adjustable extent value;
When attenuation corresponding to the described attenuation fine adjustment signal of judgement and modulated attenuation and while not exceeding described default adjustable extent value, control the current attenuation variation attenuation corresponding with described attenuation fine adjustment signal of controllable attenuator;
Before the step of described receiving attenuation amount fine adjustment signal, afterwards or simultaneously, further comprising the steps of:
Record the attenuation of controllable attenuator under normal temperature, by default attenuation;
The ambient temperature of sampling radio frequency front-end device, obtains temperature detection value;
The temperature value that inquiry prestores and the mapping table of burst sequence, obtain the burst sequence that described temperature detection value is corresponding;
By described burst sequence, control the variation of the current attenuation of described controllable attenuator.
Another object of the embodiment of the present invention is to provide a kind of gain control system of radio frequency front-end device, the gain control system of described radio frequency front-end device is connected between two radio frequency amplifiers of described radio frequency front-end device, described system specifically comprises signal processing unit, and be connected with described signal processing unit, and be connected in the controllable attenuator between described two radio frequency amplifiers of described radio frequency front-end device;
Described signal processing unit is for recording the attenuation of controllable attenuator under normal temperature, by default attenuation;
Receiving attenuation amount fine adjustment signal, and judge attenuation that described attenuation fine adjustment signal is corresponding and modulated attenuation and whether exceed default adjustable extent value;
When attenuation corresponding to the described attenuation fine adjustment signal of judgement and modulated attenuation and while not exceeding described default adjustable extent value, control the current attenuation variation attenuation corresponding with described attenuation fine adjustment signal of described controllable attenuator;
Described signal processing unit can also be for the ambient temperature of the described radio frequency front-end device of sampling, obtain temperature detection value, afterwards, the temperature value that inquiry prestores and the mapping table of burst sequence, obtain the burst sequence that described temperature detection value is corresponding, by described burst sequence, control the variation of the current attenuation of described controllable attenuator.
The gain control method of the radio frequency front-end device that the embodiment of the present invention provides is by setting in advance the adjustable extent value of attenuation, and attenuation corresponding to the attenuation fine adjustment signal of user input and modulated attenuation when not exceeding this default adjustable extent value, the current attenuation of controlling controllable attenuator changes the attenuation corresponding with this attenuation fine adjustment signal, and do not need to use traditional π type attenuator to realize the fine setting to the gain of radio frequency front-end device, thereby avoided changing the rosin joint of causing that resistance causes, the phenomenon such as solder skip or dry joint, do not need welding action repeatedly, reliability and the qualification rate of product have been improved.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
The gain control method of the radio frequency front-end device that the embodiment of the present invention provides is by setting in advance the adjustable extent value of attenuation, and attenuation corresponding to the attenuation fine adjustment signal of user input and modulated attenuation and while not exceeding this default adjustable extent value, control the current attenuation variation attenuation corresponding with this attenuation fine adjustment signal of controllable attenuator.
Fig. 1 shows the flow process of the gain control method of the radio frequency front-end device that the embodiment of the present invention provides.
In step S101, receiving attenuation amount fine adjustment signal, and judge attenuation that this attenuation fine adjustment signal is corresponding and modulated attenuation and whether exceed default adjustable extent value.
In step S102, when attenuation corresponding to this attenuation fine adjustment signal of judgement and modulated attenuation and while not exceeding default adjustable extent value, control the current attenuation variation attenuation corresponding with this attenuation fine adjustment signal of controllable attenuator.
Controllable attenuator is wherein numerical-control attenuator or voltage-controlled attenuator.
Attenuation fine adjustment signal wherein can be both that the numerical value that user inputs by input terminal is adjusted signal, now, the attenuation that this attenuation fine adjustment signal is corresponding is the numerical value of user's input, for the controllable attenuator with step-by-step adjustment function, this attenuation fine adjustment signal can be also the step by step modulating signal that user inputs by input terminal, now, the stepping amount that the attenuation that each attenuation fine adjustment signal is corresponding is controllable attenuator.In the embodiment of the present invention, controllable attenuator is step attenuator, and in order to guarantee trimming precision, the stepping amount of this step attenuator is 0.25dB, because stepping accuracy is high, makes to adopt the trimming precision of aforesaid way well to be guaranteed.
Default adjustable extent value wherein refers to the predefined attenuation value range that can finely tune controllable attenuator, and in the embodiment of the present invention, this default adjustable extent value is 3dB.For instance, if current attenuation is 1dB, the attenuation having decayed is 2dB, for the step attenuator with 0.25dB stepping amount, when user need to finely tune attenuation, suppose that user inputs an attenuation fine adjustment signal, that is to say that user need to be by the attenuation fine setting 0.25dB of step attenuator, because this 0.25dB is with the 2dB's that decayed with not exceed default adjustable extent value be 3dB, can realize the fine setting to this step attenuator, and based on aforesaid way, calculate attenuation that the attenuation fine adjustment signal of user input is corresponding and modulated attenuation and exceed while presetting adjustable extent value, cannot to this step attenuator, finely tune according to this attenuation fine adjustment signal.
Because the gain control method of above-mentioned radio frequency front-end device is by setting in advance the adjustable extent value of attenuation, and attenuation corresponding to the attenuation fine adjustment signal of user input and modulated attenuation when not exceeding this default adjustable extent value, the current attenuation of controlling controllable attenuator changes the attenuation corresponding with this attenuation fine adjustment signal, and do not need to use traditional π type attenuator to realize the fine setting to the gain of radio frequency front-end device, thereby avoided changing the rosin joint of causing that resistance causes, the phenomenon such as solder skip or dry joint, do not need welding action repeatedly, reliability and the qualification rate of product have been improved.
For radio frequency front-end device, temperature characterisitic due to chip, can cause under state of temperature on a large scale (40-75 ℃), change in gain fluctuation can not meet performance requirement, for this reason, the circuit in the time of need to be to high temperature and low-temperature working carries out effective gain compensation, in the embodiment of the present invention, before step S101, afterwards or simultaneously, can further include following steps:
The ambient temperature of sampling radio frequency front-end device, obtains temperature detection value; The temperature value that inquiry prestores and the mapping table of burst sequence, obtain the burst sequence that this temperature detection value is corresponding; By this burst sequence, control the variation of the current attenuation of controllable attenuator.
Wherein, the temperature value prestoring and the mapping table of burst sequence both can record the corresponding relation of temperature value scope and burst sequence, now the trip point of burst sequence is two end values of temperature value scope, certainly, the temperature value prestoring and the mapping table of burst sequence also can record the corresponding relation of temperature spot and burst sequence, now, for unwritten temperature spot, when temperature detection value is not during by the corresponding relation table record of this temperature value and burst sequence, the burst sequence that temperature detection value is corresponding remains unchanged.Arranging of two end values of temperature value scope wherein or temperature spot can be determined according to the temperature characterisitic of amplifier chips at different levels in concrete required temperature compensation range and radio frequency front-end device.
Further, in the embodiment of the present invention, before the step of ambient temperature of sampling radio frequency front-end device, further comprising the steps of: to record the attenuation of controllable attenuator under normal temperature, by default attenuation.
Mapping table due to prestored temperature value and burst sequence, and detect in real time the ambient temperature of radio frequency front-end device, to obtain burst sequence corresponding to ambient temperature, and then the attenuation of controllable attenuator is controlled, realize the temperature-compensating of gain, temperature compensation range is large, has good control precision and stability, avoided the temperature-compensating gaining with traditional thermo-sensitive resistor, provided cost savings.
Fig. 2 shows the structural principle of the gain control system of the radio frequency front-end device that the embodiment of the present invention provides, and for convenience of explanation, only shows the part relevant to the embodiment of the present invention.
The gain control system 1 of this radio frequency front-end device is connected between two radio frequency amplifiers of radio frequency front-end device, specifically comprises: signal processing unit 11; And be connected with signal processing unit 11, and be connected in the controllable attenuator 12 between two radio frequency amplifiers of radio frequency front-end device.Signal processing unit 11 is for receiving attenuation amount fine adjustment signal, and judge attenuation that this attenuation fine adjustment signal is corresponding and modulated attenuation and whether exceed default adjustable extent value, when attenuation corresponding to this attenuation fine adjustment signal of judgement and modulated attenuation and while not exceeding default adjustable extent value, control the current attenuation variation attenuation corresponding with this attenuation fine adjustment signal of controllable attenuator 12.
Controllable attenuator 12 is wherein numerical-control attenuator or voltage-controlled attenuator.Attenuation fine adjustment signal wherein can be both that the numerical value that user inputs by input terminal is adjusted signal, now, the attenuation that this attenuation fine adjustment signal is corresponding is the numerical value of user's input, for the controllable attenuator 12 with step-by-step adjustment function, this attenuation fine adjustment signal can be also the step by step modulating signal that user inputs by input terminal, now, the attenuation that each attenuation fine adjustment signal is corresponding is the stepping amount of controllable attenuator 12.In the embodiment of the present invention, controllable attenuator 12 is step attenuator, and in order to guarantee trimming precision, the stepping amount of this step attenuator is 0.25dB, because stepping accuracy is high, makes to adopt the trimming precision of aforesaid way well to be guaranteed.Default adjustable extent value wherein refers to the predefined attenuation value range that can finely tune controllable attenuator 12, and in the embodiment of the present invention, this default adjustable extent value is 3dB.
Because the gain control system of above-mentioned radio frequency front-end device is by setting in advance the adjustable extent value of attenuation, and attenuation corresponding to the attenuation fine adjustment signal of user input and modulated attenuation when not exceeding this default adjustable extent value, the current attenuation of controlling controllable attenuator changes the attenuation corresponding with this attenuation fine adjustment signal, avoided using traditional π type attenuator to realize the fine setting to the gain of radio frequency front-end device, thereby avoided changing the rosin joint of causing that resistance causes, the phenomenon such as solder skip or dry joint, do not need welding action repeatedly, reliability and the qualification rate of product have been improved.
In order further to realize the temperature-compensating to the gain of radio frequency front-end device, in the embodiment of the present invention, signal processing unit 11 is the ambient temperature of sampling radio frequency front-end device further, obtain temperature detection value, afterwards, the temperature value that inquiry prestores and the mapping table of burst sequence, obtain the burst sequence that this temperature detection value is corresponding, by this burst sequence, control the variation of the current attenuation of controllable attenuator 12.Wherein, the temperature value prestoring and the mapping table of burst sequence as mentioned above, do not repeat them here.
Further, in the embodiment of the present invention, signal processing unit 11 can also record the attenuation of controllable attenuator under normal temperature, by default attenuation.
Due to the prestored mapping table of temperature value and burst sequence of signal processing unit 11, and detect in real time the ambient temperature of radio frequency front-end device, to obtain burst sequence corresponding to ambient temperature, and then the attenuation of controllable attenuator is controlled, realize the temperature-compensating of gain, temperature compensation range is large, has good control precision and stability, avoided the temperature-compensating gaining with traditional thermo-sensitive resistor, provided cost savings.
Fig. 3 shows the concrete structure of signal processing unit in Fig. 2 that one embodiment of the invention provides, and for convenience of explanation, only shows the part relevant to the embodiment of the present invention.
In this embodiment of the invention, signal processing unit 11 further comprises: signal receiving module 11, for receiving attenuation amount fine adjustment signal; Judge module 112, for judge attenuation that this attenuation fine adjustment signal is corresponding and modulated attenuation and whether exceed default adjustable extent value; Memory module 113, for the default adjustable extent value that prestores; The control module 114 being connected with controllable attenuator 12, for when attenuation corresponding to these attenuation fine adjustment signals of judge module 112 judgement and modulated attenuation with do not exceed while presetting adjustable extent value, the current attenuation of controlling controllable attenuator 12 changes the attenuation corresponding with this attenuation fine adjustment signal, when being failure to actuate with exceeding while presetting adjustable extent value of attenuation corresponding to judge module 112 these attenuation fine adjustment signals of judgement and modulated attenuation.
Fig. 4 shows the concrete structure of signal processing unit in Fig. 2 that another embodiment of the present invention provides, and for convenience of explanation, only shows the part relevant to the embodiment of the present invention.
From different shown in Fig. 3, in this embodiment of the invention, signal processing unit 11 also comprises temp-sensitive sensor 115 and enquiry module 116.Now, memory module 113 is also for the mapping table of prestore temperature value and burst sequence, and wherein, temp-sensitive sensor 115, for the ambient temperature of the radio frequency front-end device of sampling, obtains temperature detection value; Enquiry module 116, for the temperature value inquiring about memory module 113 and prestore and the mapping table of burst sequence, obtains the burst sequence that this temperature detection value is corresponding; Control module 114 is the burst sequence for obtaining by enquiry module 116 also, controls the variation of the current attenuation of controllable attenuator 12.
Fig. 5 shows a kind of circuit implementation of signal processing unit 11 in Fig. 3 or Fig. 4, and Fig. 6 is a kind of circuit implementation of controllable attenuator in Fig. 3 or Fig. 4.Signal processing unit 11 wherein adopts a singlechip chip U1 to carry out controllable attenuator 12 to control, and singlechip chip U1 is specially C8051F31X series; Controllable attenuator 12 is wherein that a stepping amount is 0.25dB, 6 high precision numerical control attenuator U2 of attenuation range 15.75dB, 6 I/O port P10, P11, P12, P13, P14, the corresponding connection of P15 of 6 control port C0.5, the C1 of numerical-control attenuator U2, C2, C4, C8, C16 and singlechip chip U1, singlechip chip U1 is by these 6 I/O port output pulse string sequences, thus the attenuation of control numerical-control attenuator U2.
Certainly, the gain control system of the above-mentioned radio frequency front-end device that the embodiment of the present invention provides can also be in conjunction with Auto-Test System (Auto Test Equipment, ATE) realize the performance test before the dispatching from the factory of radio frequency front-end device, now, signal processing unit 11 specifically passes through GPIB, Ethernet, the interfaces such as serial ports are connected with vowing net analyzer, gain detection threshold scope has prestored in arrow net analyzer, in test process, the gain of radio frequency front-end device can not meet index, while having exceeded the gain detection threshold scope prestoring, vow that net analyzer sends corresponding control command to signal processing unit 11, by signal processing unit 11, adopt above-mentioned steps, the gain-adjusted of realization to radio frequency front-end device, thereby realized the automatic regulation function to the gain of radio frequency front-end device.
The gain control method of the radio frequency front-end device that the embodiment of the present invention provides is by setting in advance the adjustable extent value of attenuation, and attenuation corresponding to the attenuation fine adjustment signal of user input and modulated attenuation when not exceeding this default adjustable extent value, the current attenuation of controlling controllable attenuator changes the attenuation corresponding with this attenuation fine adjustment signal, and do not need to use traditional π type attenuator to realize the fine setting to the gain of radio frequency front-end device, thereby avoided changing the rosin joint of causing that resistance causes, the phenomenon such as solder skip or dry joint, do not need welding action repeatedly, reliability and the qualification rate of product have been improved, have again, the gain control method of the radio frequency front-end device that the embodiment of the present invention provides can also be by the mapping table of prestore temperature value and burst sequence, and detect in real time the ambient temperature of radio frequency front-end device, to obtain burst sequence corresponding to ambient temperature, and then the attenuation of controllable attenuator is controlled, realize the temperature-compensating of gain, temperature compensation range is large, there is good control precision and stability, avoided the temperature-compensating gaining with traditional thermo-sensitive resistor, provided cost savings, have, the gain control system of the radio frequency front-end device that the embodiment of the present invention is provided combines with ATE again, can realize the automatic regulation function to the gain of radio frequency front-end device.
One of ordinary skill in the art will appreciate that all or part of step realizing in above-described embodiment method is can control relevant hardware by program to complete, described program can be in being stored in a computer read/write memory medium, described storage medium, as ROM/RAM, disk, CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any modifications of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.