Disclosure of Invention
In view of the above, the present application provides a method, an apparatus, and a storage medium for linearizing a radio frequency power amplifier, so as to solve the technical problem of nonlinear distortion of an output signal of an existing power amplifier, thereby facilitating real-time correction and linearization of the radio frequency output signal of the power amplifier.
In order to solve the above problem, in a first aspect, the present application provides a radio frequency power amplifier linearization device, where the device includes a predistortion module and a power amplification module, and the predistortion module is electrically connected to the power amplification module;
the predistortion module is used for acquiring the gain and the phase of a radio frequency input signal, acquiring the gain and the phase of a radio frequency output signal output by the power amplification module, comparing the gain of the radio frequency output signal with the gain of the radio frequency input signal, comparing the phase of the radio frequency output signal with the phase of the radio frequency input signal, reversely adjusting the radio frequency input signal according to the gain comparison result and the phase comparison result, and transmitting the adjusted radio frequency input signal to the power amplification module;
the power amplification module is used for obtaining the radio frequency input signal regulated by the predistortion module, then carrying out power amplification and outputting a linearized radio frequency output signal.
Optionally, the predistortion module includes a predistorter and a controller, and the predistorter is electrically connected to the controller; the predistorter is also electrically connected with the power amplification module;
the controller is used for comparing the gain of the radio frequency output signal with the gain of the radio frequency input signal to obtain a gain comparison result, comparing the phases of the radio frequency output signal and the radio frequency input signal to obtain a phase comparison result, determining a gain adjustment signal and a phase adjustment signal according to the gain comparison result and the phase comparison result, and transmitting the gain adjustment signal and the phase adjustment signal to the predistorter;
the predistorter is used for carrying out reverse adjustment on the gain and the phase of the radio frequency input signal according to the gain adjustment signal and the phase adjustment signal, and transmitting the radio frequency input signal after the reverse adjustment to the power amplification module.
Optionally, the predistorter includes a nonlinear attenuator, a nonlinear phase shifter and a linear attenuator; the nonlinear attenuator, the nonlinear phase shifter and the linear attenuator are sequentially and electrically connected, the linear attenuator is also electrically connected with the power amplification module, and the nonlinear attenuator and the nonlinear phase shifter are also respectively and electrically connected with the controller;
the nonlinear attenuator is used for acquiring a radio frequency input signal and the gain adjusting signal, adjusting the gain of the radio frequency input signal according to the gain adjusting signal, and transmitting the adjusted corresponding radio frequency input signal to the nonlinear phase shifter;
the nonlinear phase shifter is used for acquiring the phase adjusting signal, adjusting the phase of the transmitted radio frequency input signal according to the phase adjusting signal and transmitting the adjusted corresponding radio frequency input signal to the linear attenuator;
the linear attenuator is used for performing linear gain adjustment on the incoming radio frequency input signal and inputting the radio frequency input signal corresponding to the linear gain adjustment to the power amplification module.
Optionally, the apparatus further comprises a signal input module and a signal output module; the signal input module is electrically connected with the predistorter and the controller respectively, and the signal output module is electrically connected with the power amplification module and the controller respectively;
the signal input module is used for transmitting the radio frequency input signal to the predistorter and transmitting gain information and phase information of the radio frequency input signal to the controller;
the signal output module is used for outputting the radio frequency output signal of the power amplification module and transmitting the gain information and the phase information of the radio frequency output signal to the controller.
Optionally, the signal input module includes a first directional coupler and a first detector, the first directional coupler is electrically connected to the first detector, the first directional coupler is further electrically connected to the predistorter, and the first detector is further electrically connected to the controller;
the first directional coupler is used for acquiring a radio frequency input signal and respectively transmitting the radio frequency input signal to the predistorter and the first detector;
and the first detector is used for extracting gain information and phase information in the radio frequency input signal and transmitting the gain information and the phase information to the controller.
Optionally, the signal output module includes a second directional coupler and a second detector, the second directional coupler is electrically connected to the second detector, the second directional coupler is further electrically connected to the power amplification module, and the second detector is further electrically connected to the controller;
the second directional coupler is used for outputting the radio frequency output signal of the power amplification module and transmitting the radio frequency output signal to the second detector;
and the second detector is used for extracting the gain information and the phase information of the radio frequency output signal and transmitting the gain information and the phase information to the controller.
Optionally, the controller includes a single chip microcomputer, a first analog-to-digital converter, a second analog-to-digital converter, and a digital-to-analog converter; the first analog-to-digital converter is electrically connected with the single chip microcomputer; the second analog-to-digital converter, the single chip microcomputer and the digital-to-analog converter are sequentially and electrically connected, and the digital-to-analog converter is also electrically connected with the predistorter; the first analog-to-digital converter is also electrically connected with the first detector, and the second analog-to-digital converter is also electrically connected with the second detector;
the first analog-to-digital converter is used for acquiring gain information and phase information of the radio frequency input signal, performing analog-to-digital conversion and transmitting the gain information and the phase information to the single chip microcomputer;
the second analog-to-digital converter is used for acquiring gain information and phase information of the radio frequency output signal, performing analog-to-digital conversion and transmitting the gain information and the phase information to the single chip microcomputer;
the single chip microcomputer is used for comparing the gains of the radio frequency input signal and the radio frequency output signal, comparing the phases of the radio frequency input signal and the radio frequency output signal, determining a gain adjusting signal and a phase adjusting signal according to a gain comparison result and a phase comparison result, and transmitting the gain adjusting signal and the phase adjusting signal to the digital-to-analog converter;
and the digital-to-analog converter is used for performing digital-to-analog conversion on the gain adjusting signal and the phase adjusting signal and then transmitting the signals to the predistorter.
In a second aspect, the present application provides a method for linearizing a radio frequency power amplifier, applied to a device for linearizing a radio frequency power amplifier, the method comprising:
acquiring the gain and the phase of a radio frequency input signal, and acquiring the gain and the phase of a radio frequency output signal;
comparing the gains of the radio frequency input signal and the radio frequency output signal to obtain a gain comparison result; comparing the phases of the radio frequency input signal and the radio frequency output signal to obtain a phase comparison result;
and generating a gain adjusting signal and a phase adjusting signal according to the gain comparison result and the phase comparison result, and sending the gain adjusting signal and the phase adjusting signal to the predistorter so that the predistorter reversely adjusts the radio frequency input signal according to the gain adjusting signal and the phase adjusting signal.
Optionally, generating a gain adjustment signal according to the gain comparison result includes:
and calculating a gain error according to the gain comparison result and a preset gain coefficient, and determining a gain adjusting signal according to the gain error.
In a third aspect, the present application provides a storage medium, which adopts the following technical solutions:
a storage medium storing a computer program which, when executed by a processor, implements the steps of the radio frequency power amplifier linearization method.
The beneficial effects of adopting the above embodiment are: the predistortion module compares the gain of the radio frequency output signal and the gain of the radio frequency input signal in real time, compares the phases of the radio frequency output signal and the radio frequency input signal in real time, reversely adjusts the radio frequency input signal according to the gain comparison result and the phase comparison result, and transmits the adjusted radio frequency input signal to the power amplification module so as to compensate the amplification adjustment of the power amplification module on the radio frequency input signal, thereby linearizing the radio frequency output signal output by the power amplification module.
Detailed Description
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate preferred embodiments of the invention and, together with the description, serve to explain the principles of the invention and not to limit the scope of the application.
In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Referring to fig. 1, the present application provides a radio frequency power amplifier linearization device, which includes a predistortion module 101 and a power amplification module 102, where the predistortion module 101 is electrically connected to the power amplification module 101;
the predistortion module 101 is configured to obtain a gain and a phase of a radio frequency input signal, obtain a gain and a phase of a radio frequency output signal output by the power amplification module, compare the gain of the radio frequency output signal with the gain of the radio frequency input signal, compare the phases of the radio frequency output signal and the radio frequency input signal, reversely adjust the radio frequency input signal according to a gain comparison result and a phase comparison result, and transmit the adjusted radio frequency input signal to the power amplification module;
and the power amplification module 101 is configured to obtain the radio frequency input signal adjusted by the predistortion module, perform power amplification, and output a linearized radio frequency output signal.
It should be noted that, a general power amplification module has a fixed gain characteristic parameter (AM characteristic) and a fixed phase characteristic parameter (PM characteristic), but due to the influence of factors such as temperature, power supply voltage, aging of components, etc., the fast output power of the power amplification module changes, and further affects the gain characteristic and the phase characteristic thereof, so that the radio frequency output signal has nonlinear distortion.
In this embodiment, a predistortion module is added at the front end of a power amplification module, so that a radio frequency output signal and a radio frequency input signal are subjected to gain comparison and phase comparison in real time, and the gain and the phase of the radio frequency input signal are reversely adjusted according to the gain comparison result and the phase comparison result, so as to compensate the radio frequency input signal, so that after the adjusted radio frequency input signal is input to the power amplification module, linearization correction is obtained, and a linearized radio frequency output signal is output. Through closed-loop feedback, when the gain and/or phase of the radio frequency input signal and the radio frequency output signal are detected to be nonlinear, the gain and the phase of the radio frequency input signal are adjusted in the opposite direction, so that the obtained radio frequency output signal is linearized, and a dynamically adjustable predistortion module is formed. In addition, the predistortion of the embodiment can be applied to power amplification modules with different gain characteristics and phase characteristics, and the gain change and the phase change of different power amplification modules are automatically adjusted.
In one embodiment, referring to fig. 2, the predistortion module comprises a predistorter 201 and a controller 202, the predistorter 201 being electrically connected with the controller 202; the predistorter 201 is also electrically connected with the power amplification module 102;
the controller 202 is configured to compare gains of the radio frequency output signal and the radio frequency input signal to obtain a gain comparison result, compare phases of the radio frequency output signal and the radio frequency input signal to obtain a phase comparison result, determine a gain adjustment signal and a phase adjustment signal according to the gain comparison result and the phase comparison result, and transmit the gain adjustment signal and the phase adjustment signal to the predistorter;
the predistorter 201 is configured to perform inverse adjustment on the gain and the phase of the rf input signal according to the gain adjustment signal and the phase adjustment signal, and transmit the rf input signal after the inverse adjustment to the power amplification module.
It should be noted that, as shown in fig. 3(a), a waveform of the rf input signal, as shown in fig. 3(c), a waveform of the Gain signal and a waveform of the Phase signal when the power amplifier module (PA module) adjusts the rf input signal, the controller obtains the waveform of the Gain signal and the waveform of the Phase signal of the power amplifier module, and compares the waveforms with the waveform of the Gain signal and the waveform of the Phase signal of the rf input signal in real time, obtains a Gain variation curve and a Phase variation curve of the signal, thereby generating an inverse function curve of the Gain (Gain) variation curve of the signal, and generates an inverse function curve of the Phase (Phase) variation curve of the signal, as shown in fig. 3(b), thereby outputting a corresponding Gain adjustment signal and a corresponding Phase adjustment signal to the predistorter, so that the predistorter adjusts the Gain and the Phase of the rf input signal in reverse direction according to the Gain adjustment signal and the Phase adjustment signal, and transmits the adjusted rf input signal to the power amplification module, so that the power amplification module outputs a linear rf output signal, as shown in fig. 3 (d).
In one embodiment, referring to fig. 3, the rf power amplifier linearizing apparatus further includes a signal input module 103 and a signal output module 104; the signal input module 103 is electrically connected with the predistorter 201 and the controller 202 respectively, and the signal output module 104 is electrically connected with the power amplification module 102 and the controller 202 respectively;
the signal input module 103 is configured to transmit the radio frequency input signal to the predistorter, and further configured to transmit gain information and phase information of the radio frequency input signal to the controller;
and a signal output module 104, configured to output the radio frequency output signal of the power amplification module, and further configured to transmit gain information and phase information of the radio frequency output signal to the controller.
In one embodiment, the signal input module comprises a first directional coupler and a first detector, the first directional coupler is electrically connected with the first detector, the first directional coupler is also electrically connected with the predistorter, and the first detector is also electrically connected with the controller;
the first directional coupler is used for acquiring a radio frequency input signal and respectively transmitting the radio frequency input signal to the predistorter and the first detector;
and the first detector is used for extracting gain information and phase information in the radio frequency input signal and transmitting the gain information and the phase information to the controller.
In one embodiment, the signal output module comprises a second directional coupler and a second detector, the second directional coupler is electrically connected with the second detector, the second directional coupler is also electrically connected with the power amplification module, and the second detector is also electrically connected with the controller;
the second directional coupler is used for outputting the radio frequency output signal of the power amplification module and transmitting the radio frequency output signal to the second detector;
and the second detector is used for extracting the gain information and the phase information of the radio frequency output signal and transmitting the gain information and the phase information to the controller.
It should be noted that the first directional coupler and the second directional coupler are four-port components with directional transmission characteristics, and in a specific embodiment, a WR75(BJ120) radio frequency microwave waveguide directional coupler can be adopted, which has an applicable range of 14-14.5GHz and a gain of 45.8 db.
In one embodiment, the predistorter comprises a nonlinear attenuator, a nonlinear phase shifter, and a linear attenuator; the nonlinear attenuator, the nonlinear phase shifter and the linear attenuator are sequentially and electrically connected, the linear attenuator is also electrically connected with the power amplification module, and the nonlinear attenuator and the nonlinear phase shifter are also respectively and electrically connected with the controller;
the nonlinear attenuator is used for acquiring a radio frequency input signal and a gain adjusting signal, adjusting the gain of the radio frequency input signal according to the gain adjusting signal and transmitting the adjusted corresponding radio frequency input signal to the nonlinear phase shifter;
the nonlinear phase shifter is used for acquiring a phase adjusting signal, adjusting the phase of an incoming radio frequency input signal according to the phase adjusting signal and transmitting the adjusted corresponding radio frequency input signal to the linear attenuator;
and the linear attenuator is used for carrying out linear gain adjustment on the transmitted radio frequency input signal and inputting the radio frequency input signal corresponding to the linear gain adjustment to the power amplification module.
In one embodiment, the nonlinear attenuator may be an RUDAT-6200-120 type attenuator, the nonlinear phase shifter may be a JPHS-1000 type phase shifter, and the linear attenuator may be an EVA-23-75+ type attenuator.
In one embodiment, the controller comprises a single chip microcomputer, a first analog-to-digital converter, a second analog-to-digital converter and a digital-to-analog converter; the first analog-to-digital converter is electrically connected with the single chip microcomputer; the second analog-to-digital converter, the singlechip and the digital-to-analog converter are sequentially and electrically connected, and the digital-to-analog converter is also electrically connected with the predistorter; the first analog-to-digital converter is also electrically connected with the first detector, and the second analog-to-digital converter is also electrically connected with the second detector;
the first analog-to-digital converter is used for acquiring gain information and phase information of the radio frequency input signal, performing analog-to-digital conversion and transmitting the gain information and the phase information to the single chip microcomputer;
the second analog-to-digital converter is used for acquiring gain information and phase information of the radio frequency output signal, performing analog-to-digital conversion and transmitting the gain information and the phase information to the single chip microcomputer;
the single chip microcomputer is used for comparing the gains of the radio frequency input signal and the radio frequency output signal, comparing the phases of the radio frequency input signal and the radio frequency output signal, determining a gain adjusting signal and a phase adjusting signal according to a gain comparison result and a phase comparison result, and transmitting the gain adjusting signal and the phase adjusting signal to the digital-to-analog converter;
and the digital-to-analog converter is used for performing digital-to-analog conversion on the gain adjusting signal and the phase adjusting signal and then transmitting the gain adjusting signal and the phase adjusting signal to the predistorter.
In a specific embodiment, the singlechip can be an STM32F407ZGT6 singlechip of the Italian semiconductor company, the type of the singlechip has rich pins and high processing speed, and the design requirement can be met; the first analog-to-digital converter and the second analog-to-digital converter can adopt TI company ADC12D1800 chips; the digital-to-analog converter may be a DAC38J84 chip from TI corporation.
In one embodiment, the power amplification module (PA module) is a chip of model ATF54143_ PHEMT from agilent corporation.
Referring to fig. 4, the present application further discloses a radio frequency power amplifier linearization method, which is applied to the radio frequency power amplifier linearization device of the present application, and the method includes:
s1, acquiring the gain and phase of the radio frequency input signal, and acquiring the gain and phase of the radio frequency output signal;
s2, comparing the gains of the radio frequency input signal and the radio frequency output signal to obtain a gain comparison result; comparing the phases of the radio frequency input signal and the radio frequency output signal to obtain a phase comparison result;
and S3, generating a gain adjusting signal and a phase adjusting signal according to the gain comparison result and the phase comparison result, and sending the gain adjusting signal and the phase adjusting signal to the predistorter, so that the predistorter reversely adjusts the radio frequency input signal according to the gain adjusting signal and the phase adjusting signal.
In one embodiment, the generating the gain adjustment signal according to the gain comparison result in step S3 includes:
and calculating a gain error according to the gain comparison result and a preset gain coefficient, and determining a gain adjusting signal according to the gain error.
It should be noted that the preset gain coefficient refers to a fixed gain parameter, i.e., an amplification factor, of the power amplification module (PA module), and exemplarily, if the gain comparison result is 5.3 and the preset gain coefficient is 5, the gain error is 0.3, and the corresponding gain adjustment signal is-0.3; if the gain comparison result is 4.8 and the preset gain factor is 5, the gain error is-0.2, corresponding to a gain adjustment signal of 0.2.
In addition, in step S3 of this embodiment, a phase adjustment signal is generated according to the phase comparison result, it should be noted that the power amplification module does not amplify the phase of the radio frequency input signal, so the phase comparison result is the phase error between the radio frequency output signal and the radio frequency input signal, for example, if the phase comparison result is 20 °, the corresponding phase adjustment signal is-20 °; if the phase comparison result is-10 deg., the corresponding phase adjustment signal is 10 deg..
In the embodiment, the gain of the radio frequency output signal and the gain of the radio frequency input signal are compared in real time, and the phases of the radio frequency output signal and the radio frequency input signal are compared in real time, so that a gain adjusting signal and a phase adjusting signal are generated according to a gain comparison result and a phase comparison result; and reversely adjusting the gain and the phase of the radio frequency input signal according to the gain adjusting signal and the phase adjusting signal, and transmitting the adjusted radio frequency input signal to the power amplification module so as to compensate the amplification adjustment of the power amplification module on the radio frequency input signal, thereby linearizing the radio frequency output signal output by the power amplification module.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
The present embodiments also provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
acquiring the gain and the phase of a radio frequency input signal, and acquiring the gain and the phase of a radio frequency output signal;
comparing the gains of the radio frequency input signal and the radio frequency output signal to obtain a gain comparison result; comparing the phases of the radio frequency input signal and the radio frequency output signal to obtain a phase comparison result;
and generating a gain adjusting signal and a phase adjusting signal according to the gain comparison result and the phase comparison result, and sending the gain adjusting signal and the phase adjusting signal to the predistorter so that the predistorter reversely adjusts the radio frequency input signal according to the gain adjusting signal and the phase adjusting signal.
Those skilled in the art will appreciate that all or part of the flow of the method implementing the above embodiments may be implemented by a computer program, which is stored in a computer readable storage medium, to instruct related hardware. The computer readable storage medium is a magnetic disk, an optical disk, a read-only memory or a random access memory.
The above description is only for the preferred embodiment of the present application, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present application should be covered within the scope of the present application.