A variable gain amplifier
By introducing the acquisition module and the gain control module into the variable gain amplifier, the initial gain signal is corrected according to the detection signal difference of the output signal, which solves the overshoot problem caused by inaccurate gain adjustment in the existing technology and realizes the adjustment of the amplifier gain. Precise control and stability of signal transmission.
Patent Information
- Application Number
- CN202011253428.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-11
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2040-11-11
AI Technical Summary
Existing variable gain amplifiers have inaccurate gain adjustment when the input signal is large, causing the output signal to overshoot, affecting the subsequent circuit and possibly causing bit errors.
A variable gain amplifier including an acquisition module and a gain control module is designed. The acquisition module converts the output signal of the first amplifier into a detection signal, and the gain control module corrects the initial gain signal according to the difference in the detection signal to generate an offset signal. To control the gain of the amplifier and reduce the amplitude of the output signal.
It achieves precise correction of amplifier gain, suppresses overshoot, and ensures the accuracy of signal transmission and the stability of the subsequent circuit.
Smart Images

Figure CN112332791B
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the technical field of amplifiers, and in particular to a variable gain amplifier. Background Art
[0002] A variable gain amplifier refers to an amplifier structure whose gain can be dynamically adjusted and is widely used in signal links for data transmission.
[0003] Variable gain amplifiers need to have a sufficiently large adjustable gain range. For use environments with a large range of input signals, the gain of the amplifier is often set redundantly, and the actual required gain is less than the set value. Especially when the input signal is large, there is a situation where the output signal is too large. And if the input signal is in a state of intermittent transmission, that is, there is an ON (transmission) / OFF (stop transmission) state, when the input changes from the ON state to the OFF state, due to the parasitic capacitance in the circuit or the DC blocking capacitor that may exist in the circuit itself, the output signal will have a large overshoot. And the greater the gain, the greater the amplitude of the overshoot. The inaccuracy of the output signal will have a great impact on the subsequent circuits connected to the amplifier, and may even cause bit errors. Therefore, the existing variable gain amplifiers have the problem of inaccurate gain adjustment and overshoot. Summary of the invention
[0004] The embodiment of the present invention provides a variable gain amplifier to accurately correct the gain of the amplifier and suppress overshoot.
[0005] An embodiment of the present invention provides a variable gain amplifier, the variable gain amplifier comprising: a first amplifier, a collection module and a gain control module;
[0006] The first amplifier comprises a first input terminal, a second input terminal, an output terminal and a gain control terminal;
[0007] The acquisition module comprises an input end, a first output end, and a second output end; the input end of the acquisition module is electrically connected to the output end of the first amplifier; the acquisition module is used to acquire the output signal of the first amplifier and convert it into a first detection signal and a second detection signal; the first detection signal is output from the first output end of the acquisition module, and the second detection signal is output from the second output end of the acquisition module;
[0008] The gain control module includes a first input end, a second input end, a third input end and an output end; the first input end of the gain control module is electrically connected to the first output end of the acquisition module, the second input end of the gain control module is electrically connected to the second output end of the acquisition module, the third input end of the gain control module is connected to an initial gain signal, and the output end of the gain control module is electrically connected to a gain control end of the first amplifier; the gain control module is used to correct the initial gain signal according to the difference between the first detection signal and the second detection signal, and generate a bias signal to control the gain of the first amplifier.
[0009] Optionally, the output end of the first amplifier includes a first output end and a second output end;
[0010] The input end of the acquisition module includes a first input end and a second input end; the first input end of the acquisition module is electrically connected to the first output end of the first amplifier, and the second input end of the acquisition module is electrically connected to the second output end of the first amplifier.
[0011] Optionally, the acquisition module includes: a second amplifier, a first resistor, a second resistor, a first transistor and a first current source;
[0012] The first input end of the second amplifier is the first input end of the acquisition module, the second input end of the second amplifier is the second input end of the acquisition module, the output end of the second amplifier is electrically connected to the first end of the first resistor; the second end of the first resistor is electrically connected to the first end of the second resistor; the first end of the second resistor is the first output end of the acquisition module, and the second end of the second resistor is the second output end of the acquisition module;
[0013] The first end of the first current source is connected to a first power supply signal, the gate of the first transistor is electrically connected to the first electrode of the first transistor, the first output end of the acquisition module and the second end of the first current source respectively, and the second electrode of the first transistor is grounded.
[0014] Optionally, the gain control module includes: a current conversion unit and a current transfer unit;
[0015] The first input end of the current conversion unit is the first input end of the gain control module, the second input end of the current conversion unit is the second input end of the gain control module, and the third input end of the current conversion unit is the third input end of the gain control module; the current conversion unit is used to convert the initial gain signal into a detection current according to the difference between the first detection signal and the second detection signal;
[0016] The input end of the current transfer unit is electrically connected to the output end of the current conversion unit, and the output end of the current transfer unit is the output end of the gain control module; the current transfer unit is used to convert the detection current into a bias current output to control the gain of the first amplifier.
[0017] Optionally, the current conversion unit includes: a second transistor, a third transistor, a second current source, a third current source, a third resistor, a fourth resistor, a fifth resistor, a sixth resistor, a first triode, a second triode, a third triode and a fourth triode;
[0018] The gate of the second transistor is the first input terminal of the current conversion unit, and the second terminal of the second transistor is grounded; the gate of the third transistor is the second input terminal of the current conversion unit, and the second terminal of the third transistor is grounded; the first terminal of the second current source is connected to the second power supply signal, and the second terminal of the second current source is electrically connected to the first terminal of the second transistor; the first terminal of the third current source is connected to the second power supply signal, and the second terminal of the third current source is electrically connected to the first terminal of the third transistor;
[0019] The first electrode of the second transistor is electrically connected to the first end of the third resistor, the second end of the third resistor is electrically connected to the first end of the fourth resistor, the second end of the fourth resistor is electrically connected to the first end of the fifth resistor, the second end of the fifth resistor is electrically connected to the first end of the sixth resistor, and the second end of the sixth resistor is electrically connected to the first electrode of the third transistor;
[0020] The base of the fourth triode is the third input terminal of the current conversion unit, and the emitter of the fourth triode is grounded; the emitter of the first triode, the emitter of the second triode and the emitter of the third triode are all electrically connected to the collector of the fourth triode; the base of the first triode is electrically connected to the second end of the third resistor, the base of the second triode is electrically connected to the second end of the fourth resistor, and the base of the third triode is electrically connected to the second end of the fifth resistor; the collector of the first triode and the collector of the third triode are both connected to the third power supply signal; the collector of the second triode is the output terminal of the current conversion unit.
[0021] Optionally, the current transfer unit includes: a fourth transistor, a fifth transistor, a sixth transistor and a seventh transistor;
[0022] The first pole of the fourth transistor is the input end of the current transfer unit, the gate of the fourth transistor is electrically connected to the first pole of the fourth transistor, and the second pole of the fourth transistor is connected to the third power supply signal; the gate of the fifth transistor is electrically connected to the gate of the fourth transistor, the second pole of the fifth transistor is connected to the third power supply signal, and the first pole of the fifth transistor is electrically connected to the first pole of the sixth transistor; the gate of the sixth transistor is electrically connected to the first pole of the sixth transistor and the gate of the seventh transistor respectively, and the second pole of the sixth transistor is grounded; the second pole of the seventh transistor is grounded, and the first pole of the seventh transistor is the output end of the current transfer unit.
[0023] Optionally, the current transfer unit further includes: a seventh resistor and a first capacitor;
[0024] The first end of the seventh resistor is electrically connected to the gate of the fourth transistor, and the second end of the seventh resistor is electrically connected to the gate of the fifth transistor; the first end of the first capacitor is electrically connected to the second electrode of the fifth transistor, and the second end of the first capacitor is electrically connected to the gate of the fifth transistor.
[0025] Optionally, the current transfer unit further includes: an eighth transistor and an envelope detection unit;
[0026] The first electrode of the eighth transistor is electrically connected to the gate of the fourth transistor, the second electrode of the eighth transistor is electrically connected to the first end of the seventh resistor, and the gate of the eighth transistor is electrically connected to the output end of the envelope detection unit.
[0027] Optionally, the current transfer unit further comprises: a digital control unit;
[0028] The input end of the digital control unit is electrically connected to the output end of the envelope detection unit; the output end of the digital control unit is electrically connected to the gate of the eighth transistor.
[0029] Optionally, the amplification factor of the first triode is the same as the amplification factor of the third triode; the amplification factor of the second triode is N times the amplification factor of the first triode; wherein N is greater than 1.
[0030] In the variable gain amplifier provided by the embodiment of the present invention, an acquisition module and a gain control module are provided. The acquisition module acquires the output signal of the first amplifier, and converts it into a first detection signal and a second detection signal and outputs it to the gain control module. The gain control module corrects the initial gain signal according to the difference between the first detection signal and the second detection signal, and generates a bias signal to control the gain of the first amplifier. The difference between the first detection signal and the second detection signal represents the magnitude of the output signal of the first amplifier. When the output signal of the first amplifier increases, the difference between the first detection signal and the second detection signal increases and the difference is reflected to the gain control module through the acquisition module. The gain control module corrects the original initial gain signal of the system according to the change of the difference, generates a bias signal, and transmits it to the first amplifier through the gain control terminal of the first amplifier to reduce the gain of the first amplifier, so that the output signal of the first amplifier is not too large to affect the subsequent circuit. It is equivalent to dynamically correcting the initial gain signal of the first amplifier according to the amplitude of the output signal. Therefore, compared with the prior art, the embodiment of the present invention can accurately correct the gain of the amplifier and suppress overshoot. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 The waveform diagram of an overshoot phenomenon of an open-loop amplifier caused by ON / OFF of an input signal in the prior art is shown.
[0032] Figure 2 is a structural schematic diagram of a variable gain amplifier provided by an embodiment of the present invention;
[0033] Figure 3 is a schematic diagram of the structure of another variable gain amplifier provided by an embodiment of the present invention;
[0034] Figure 4 is a circuit diagram of a gain control module provided by an embodiment of the present invention;
[0035] Figure 5 is a circuit diagram of a current transfer unit provided by an embodiment of the present invention;
[0036] Figure 6 4 is a waveform diagram of a start-up signal of an eighth transistor provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0037] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0038] In the prior art, variable gain amplifiers are generally divided into two structures: open-loop and closed-loop.
[0039] Among them, the closed-loop structure is mainly based on operational amplifiers. The closed-loop structure uses an amplifier with a resistor feedback network, and the gain is adjustable by adjusting the ratio of the resistor feedback network. This structure requires the operational amplifier to have high gain, large bandwidth, low noise, and low distortion, which makes the circuit design more complicated and the power consumption relatively high. Moreover, due to the limitations of the operational amplifier itself, it is difficult to achieve the high bandwidth requirement.
[0040] For an open-loop structure, the amplifier gain is generally expressed as the product of the equivalent input transconductance and the equivalent output resistance. Gain changes can be achieved by changing the transconductance or the output resistance. Directly changing the output resistance is a simple way to adjust the gain. However, since the output node is usually the main pole of the amplifier, changes in the output resistance will result in changes in the bandwidth. The higher the gain, the smaller the bandwidth.
[0041] Moreover, when the input signal has an ON / OFF state, especially when the input signal is a modulated signal containing a carrier like PWM, the input and output waveforms of the amplifier are as follows: Figure 1 As shown. When the input changes from the ON state to the OFF state, the output signal should return to the common mode level. However, due to the parasitic capacitance in the circuit or the DC blocking capacitance that may exist in the circuit itself, the output will have a large overshoot. When the gain is larger, the amplitude of the overshoot is larger. This overshoot will have a great impact on the subsequent circuit and even cause bit errors. The existing solution to this type of overshoot is generally to add a filtering circuit. However, this filtering circuit will affect the bandwidth of the entire signal chain.
[0042] In summary, the inventors have discovered that the variable gain amplifier in the prior art has the problem of inaccurate gain adjustment and overshoot.
[0043] In order to solve the above problem, an embodiment of the present invention provides a variable gain amplifier. Figure 2 Schematic diagram of a variable gain amplifier provided by an embodiment of the present invention. Figure 2 As shown, the variable gain amplifier includes: a first amplifier AMP1, a collection module 110 and a gain control module 120.
[0044] Among them, the first amplifier AMP1 includes a first input terminal, a second input terminal, an output terminal and a gain control terminal; the acquisition module 110 includes an input terminal 111, a first output terminal 112 and a second output terminal 113; the input terminal 111 of the acquisition module 110 is electrically connected to the output terminal of the first amplifier AMP1; the acquisition module 110 is used to collect the output signal OUT of the first amplifier AMP1 and convert it into a first detection signal and a second detection signal; the first detection signal is output by the first output terminal 112 of the acquisition module 110, and the second detection signal is output by the second output terminal 113 of the acquisition module 110.
[0045] The gain control module 120 includes a first input terminal 121, a second input terminal 122, a third input terminal 123 and an output terminal 124; the first input terminal 121 of the gain control module 120 is electrically connected to the first output terminal 112 of the acquisition module 110, the second input terminal 122 of the gain control module 120 is electrically connected to the second output terminal 113 of the acquisition module 110, the third input terminal 123 of the gain control module 120 is connected to the initial gain signal Vg, and the output terminal 124 of the gain control module 120 is electrically connected to the gain control terminal of the first amplifier AMP1; the gain control module 120 is used to correct the initial gain signal Vg according to the difference between the first detection signal and the second detection signal, and generate a bias signal to control the gain of the first amplifier AMP1. Exemplarily, when the difference between the first detection signal and the second detection signal is large, the initial gain signal Vg is corrected downward, and the generated bias signal is smaller than the initial gain signal Vg, thereby reducing the gain of the first amplifier AMP1.
[0046] The working principle of the variable gain amplifier is as follows:
[0047] The first amplifier AMP1 serves as the main amplification function part, converting the first input signal IN1 and the second input signal IN2 into an output signal OUT, and outputting it to the subsequent circuit. Optionally, the first amplifier AMP1 is an amplifier with an open-loop structure and adjustable transconductance, and its gain can be adjusted by adjusting the value of its transconductance. For example, its gain can be reduced by reducing the transconductance of AMP1. The first amplifier AMP1 itself is a variable gain amplifier, and the initial gain signal Vg in the system is generated according to factors such as noise or external environment, and is used to roughly adjust the gain of the first amplifier AMP1. When the gain control module 120 is not included in the system, the initial gain signal Vg is directly transmitted through the gain control terminal of the first amplifier AMP1.
[0048] The acquisition module 110 samples the output signal OUT and converts the output signal OUT into a first detection signal and a second detection signal for output. The difference between the first detection signal and the second detection signal is used to characterize the amplitude of the output signal OUT; the larger the difference, the larger the amplitude of the output signal OUT, and at this time, the gain of the first amplifier AMP1 needs to be reduced. Optionally, the acquisition module 110 can be composed of devices such as resistors and transistors, or can be composed of a dedicated sampling chip. Both the first detection signal and the second detection signal can be voltage signals.
[0049] The gain control module 120 converts the initial gain signal Vg into a bias signal according to the input first detection signal and the second detection signal, and transmits it to the first amplifier AMP1 via the bias control terminal of the first amplifier AMP1. Optionally, the gain control module 120 can be composed of devices such as resistors and transistors, or can be composed of a dedicated adjustment chip. Optionally, the bias signal can be a bias current, which is applied to the drain of the working tube in the first amplifier AMP1 through the bias control terminal, according to the formula Gm=2Ids / (Vgs-Vt), where Gm is the transconductance of the first amplifier AMP1, Ids is the current between the source and drain of the working tube (i.e., the transistor in the first amplifier AMP1 that amplifies the signal), Vgs is the threshold voltage of the working tube, and Vt is the temperature equivalent. When the temperature remains unchanged, the threshold voltage Vgs of the working tube remains unchanged, and the transconductance Gm of the first amplifier AMP1 can be changed by changing the current Ids between the source and drain of the working tube. That is, the transconductance Gm can be changed by adjusting the magnitude of the bias current, thereby achieving the purpose of adjusting the amplifier gain. This method is simple to implement and can achieve a wider bandwidth and a larger gain adjustment range as well as a lower noise level.
[0050] Exemplarily, on the basis of the initial gain signal Vg being constant, the bias signal output by the gain control module 120 is negatively correlated with the difference between the first detection signal and the second detection signal. When the difference becomes larger, the amplitude of the output signal OUT representing the first amplifier AMP1 becomes larger. At this time, the bias signal output by the gain control module 120 decreases, so that the transconductance Gm of the first amplifier AMP1 decreases, thereby reducing the gain of the first amplifier AMP1, and then reducing the output signal OUT of the first amplifier AMP1, thereby realizing the dynamic correction of the gain of the first amplifier AMP1. In the case where the gain of the first amplifier AMP1 has been reduced, if the input signal changes from the ON state to the OFF state, the output signal OUT will not be too large to affect the subsequent circuit.
[0051] In the variable gain amplifier provided in the embodiment of the present invention, an acquisition module 110 and a gain control module 120 are provided. The acquisition module 110 acquires the output signal OUT of the first amplifier AMP1, and converts it into a first detection signal and a second detection signal and outputs it to the gain control module 120. The gain control module 120 corrects the initial gain signal according to the difference between the first detection signal and the second detection signal, and generates a bias signal to control the gain of the first amplifier AMP1. The difference between the first detection signal and the second detection signal represents the magnitude of the output signal OUT of the first amplifier AMP1. When the output signal OUT of the first amplifier AMP1 increases, the difference between the first detection signal and the second detection signal increases and the difference is reflected to the gain control module 120 through the acquisition module 110. The gain control module 120 corrects the original initial gain signal of the system according to the change of the difference, generates a bias signal, and transmits it to the first amplifier AMP1 through the gain control terminal of the first amplifier AMP1 to reduce the gain of the first amplifier AMP1, so that the output signal OUT of the first amplifier AMP1 is not too large to affect the subsequent circuit. It is equivalent to dynamically correcting the initial gain signal of the first amplifier AMP1 according to the amplitude of the output signal OUT. Therefore, the embodiment of the present invention can accurately correct the gain of the amplifier and suppress overshoot.
[0052] Figure 3 is a schematic diagram of the structure of another variable gain amplifier provided by an embodiment of the present invention. Figure 3 As shown, based on the above embodiments, optionally, the output end of the first amplifier AMP1 includes a first output end and a second output end; the input end of the acquisition module 110 includes a first input end and a second input end; the first input end of the acquisition module 110 is electrically connected to the first output end of the first amplifier AMP1, and the second input end of the acquisition module 110 is electrically connected to the second output end of the first amplifier AMP1.
[0053] Specifically, the first amplifier AMP1 is a dual-input dual-output type amplifier, and its input signal is a first input voltage Vin1 and a second input voltage Vin2; the output signal is a first output voltage Vout1 and a second output voltage Vout2. The acquisition module 110 samples the first output voltage Vout1 and the second output voltage Vout2 and converts them into a first detection signal and a second detection signal. In this embodiment, the first input voltage Vin1 and the second input voltage Vin2 can be positive at the same time, or one positive and one negative, or both negative. The difference between the first detection signal and the second detection signal represents the difference between the first input voltage Vin1 and the second input voltage Vin2. The larger the difference between the first input voltage Vin1 and the second input voltage Vin2, the smaller the gain control module 120 needs to adjust the gain of the first amplifier AMP1.
[0054] Continue to see Figure 3 Based on the above embodiments, this embodiment provides an optional implementation of the structure of the acquisition module 110. Optionally, the acquisition module 110 includes: a second amplifier AMP2, a first resistor R1, a second resistor R2, a first transistor M1 and a first current source I1.
[0055] The first input end of the second amplifier AMP2 is the first input end of the acquisition module 110, the second input end of the second amplifier AMP2 is the second input end of the acquisition module 110, the output end of the second amplifier AMP2 is electrically connected to the first end of the first resistor R1; the second end of the first resistor R1 is electrically connected to the first end of the second resistor R2; the first end of the second resistor R2 is the first output end of the acquisition module 110, and the second end of the second resistor R2 is the second output end of the acquisition module 110. The first end of the first current source I1 is connected to the first power supply signal V1, the gate of the first transistor M1 is electrically connected to the first electrode of the first transistor M1, the first output end of the acquisition module 110 and the second end of the first current source I1, and the second electrode of the first transistor M1 is grounded.
[0056] Among them, the second amplifier AMP2 is an amplifier for converting double-ended output to single-ended output at the rear stage of the first amplifier AMP1, and is used to convert the first output voltage Vout1 and the second output voltage Vout2 into an output signal, so that the first resistor R1 and the second resistor R2 can sample the output signal. In addition, negative values may appear in the first output voltage Vout1 and the second output voltage Vout2. If the two are directly sampled, complex steps such as determining the signal polarity and then calculating are required in the subsequent processing process. In this embodiment, the second amplifier AMP2 is used to directly convert the double-ended output to the single-ended output, which can avoid the problem of different polarities of the two detection signals and make the subsequent processing circuit simple and easy.
[0057] After the output signal of the second amplifier AMP2 is divided by the first resistor R1 and the second resistor R2, two detection voltages are output from both ends of the second resistor R2 to the gain control module 120. The first transistor M1 is connected by a diode, providing a path to the ground for the first resistor R1 and the second resistor R2. The first current source I1 provides a bias current for the first transistor M1 to adjust the operating point of the first transistor M1. Exemplarily, the first current source I1 can be a current mirror circuit.
[0058] In this embodiment, the amplification factor of the second amplifier AMP2 can be adjusted according to the magnitude of the two output voltages of the first amplifier AMP1, so that the voltage across the second resistor R2 is not too large to damage the gain control module 120. And the magnitudes of the first resistor R1 and the second resistor R2 can be adjusted according to the recognition accuracy of the gain control module 120 to adjust the magnitudes of the first detection signal and the second detection signal. Therefore, the acquisition module 110 is easy to implement and the adjustment method is flexible and simple.
[0059] Based on the above implementations, this embodiment illustrates the structure of the gain control module. Figure 4 is a circuit diagram of a gain control module provided by an embodiment of the present invention. Figure 4 As shown, the gain control module includes: a current conversion unit 310 and a current transfer unit 320 .
[0060] The first input end of the current conversion unit 310 is the first input end of the gain control module, the second input end of the current conversion unit is the second input end of the gain control module, and the third input end of the current conversion unit 310 is the third input end of the gain control module; the current conversion unit 310 is used to convert the initial gain signal Vg into a detection current according to the difference between the first detection signal Vx and the second detection signal Vy. The input end of the current transfer unit 320 is electrically connected to the output end of the current conversion unit 310, and the output end of the current transfer unit 320 is the output end of the gain control module; the current transfer unit 320 is used to convert the detection current into a bias current Ibias output to control the gain of the first amplifier.
[0061] The first input terminal of the current conversion unit 310 is connected to the first detection signal Vx, the second input terminal of the current conversion unit 310 is connected to the second detection signal Vy, and the third input terminal of the current conversion unit 310 is connected to the initial gain signal Vg. The current conversion unit 310 converts the initial gain signal Vg into a detection current output according to the first detection signal Vx and the second detection signal Vy.
[0062] Further, the current conversion unit 310 includes: a second transistor M2, a third transistor M3, a second current source I2, a third current source I3, a third resistor R3, a fourth resistor R4, a fifth resistor R5, a sixth resistor R6, a first transistor N1, a second transistor N2, a third transistor N3 and a fourth transistor N4.
[0063] The gate of the second transistor M2 is the first input terminal of the current conversion unit 310, and the second pole of the second transistor M2 is grounded; the gate of the third transistor M2 is the second input terminal of the current conversion unit 310, and the second pole of the third transistor M3 is grounded; the first terminal of the second current source I2 is connected to the second power supply signal V2, and the second terminal of the second current source I2 is electrically connected to the first pole of the second transistor M2; the first terminal of the third current source I3 is connected to the second power supply signal V2, and the second terminal of the third current source I3 is electrically connected to the first pole of the third transistor M3. Among them, the second current source I2 can be a current mirror circuit to provide a bias current for the second transistor M2. The third current source I3 can be a current mirror circuit to provide a bias current for the third transistor M3. Optionally, the second power supply signal V2 can be the same power supply signal as the first power supply signal.
[0064] The first pole of the second transistor M2 is electrically connected to the first terminal of the third resistor R3, the second terminal A of the third resistor R3 is electrically connected to the first terminal of the fourth resistor R4, the second terminal B of the fourth resistor R4 is electrically connected to the first terminal of the fifth resistor R5, the second terminal C of the fifth resistor R5 is electrically connected to the first terminal of the sixth resistor R6, and the second terminal of the sixth resistor R6 is electrically connected to the first pole of the third transistor M3.
[0065] The base of the fourth triode N4 is the third input terminal of the current conversion unit 310, and the emitter of the fourth triode N4 is grounded; the emitters of the first triode N1, the second triode N2, and the third triode N3 are all electrically connected to the collector of the fourth triode N4; the base of the first triode N1 is electrically connected to the second terminal A of the third resistor R3, the base of the second triode N2 is electrically connected to the second terminal B of the fourth resistor R4, and the base of the third triode N3 is electrically connected to the second terminal C of the fifth resistor R5; the collectors of the first triode N1 and the third triode N3 are both connected to the third power supply signal VDD; the collector of the second triode N2 is the output terminal of the current conversion unit 310. Optionally, the third power supply signal VDD and the second power supply signal V2 can be the same power supply signal.
[0066] The working principle of the current conversion unit 310 is as follows:
[0067] The third resistor R3, the fourth resistor R4, the fifth resistor R5, and the sixth resistor R6 are connected in series between the second transistor M2 and the third transistor M3. When the first detection signal Vx is equal to the second detection signal Vy, the voltages at points A, B, and C are equal; when the first detection signal Vx > the second detection signal Vy, the voltage at point A < the voltage at point B < the voltage at point C; when the first detection signal Vx < the second detection signal Vy, the voltage at point A > the voltage at point B > the voltage at point C.
[0068] The voltages at points A, B, and C drive the bases of the first transistor N1, the second transistor N2, and the third transistor N3, respectively. The base of the fourth transistor N4 is driven by the initial gain signal Vg, and its emitter is grounded. The initial gain signal Vg can be set manually or automatically by the existing adjustment module according to the input and output signals of the first amplifier. In each adjustment cycle, the initial gain signal Vg remains unchanged, so the current flowing through the fourth transistor N4 remains unchanged. From the connection relationship of the four transistors, it can be seen that the currents flowing through these transistors have the following relationship: the current of the fourth transistor N4 is equal to the sum of the currents of the first transistor N1, the second transistor N2, and the third transistor N3.
[0069] The sum of the currents of the first transistor N1 and the third transistor N3 is △I. When △I increases, since the total current remains unchanged, the current output by the second transistor N2, that is, the detection current output by the current conversion unit 310 will decrease. The absolute value of the difference between the first detection signal Vx and the second detection signal Vy is △V, which represents the amplitude of the output signal of the first amplifier. The relationship between the current of the transistor and the driving voltage of its base is shown in the following formula: IC=Is*exp(Vb / Vtn). Among them, IC represents the current of the transistor, Is is the reverse saturation current, Vb is the driving voltage of the base, and Vtn is the temperature equivalent. Since there is an exponential relationship between the current IC of the transistor and the driving voltage Vb of the base, a small fluctuation of the base voltage will cause a sharp change in the collector current. Therefore, △I is positively correlated with △V. When △V=0, △I reaches a minimum value, and the detection current output by the current conversion unit 310 reaches a maximum value; when △V is maximum, for example, when the voltage at point A is less than the voltage at point C, although the current of the first transistor N1 decreases slightly, the current increase of the third transistor N3 is large, so △I also reaches a maximum value, and the detection current output by the current conversion unit 310 reaches a minimum value.
[0070] Preferably, the amplification factor of the first triode N1 is the same as that of the third triode N3; the amplification factor of the second triode N2 is N times the amplification factor of the first triode N1; wherein N is greater than 1. This ensures that more current still flows through the second triode N2, thereby preventing a greater impact on the current output by the gain control module when ΔV is small, thereby ensuring the accuracy of the gain control module.
[0071] Preferably, the resistance values of the third resistor R3, the fourth resistor R4, the fifth resistor R5 and the sixth resistor R6 are all equal to ensure that the voltages at points A, B and C are in a linear relationship, and the voltage difference between points AB and BC is equal, which facilitates the setting of the control logic.
[0072] To sum up, the detection current generated by the current conversion unit 310 is negatively correlated with the absolute value △V of the difference between the first detection signal Vx and the second detection signal Vy, so that when the output amplitude of the first amplifier increases, its gain will be corrected downward; when the output amplitude of the first amplifier decreases, its gain will be corrected back.
[0073] Based on the above embodiments, this embodiment describes the structure of the current transfer unit 320. Figure 4 Optionally, the current transfer unit 320 includes: a fourth transistor M4, a fifth transistor M5, a sixth transistor M6 and a seventh transistor M7.
[0074] The first electrode of the fourth transistor M4 is the input end of the current transfer unit 320, the gate of the fourth transistor M4 is electrically connected to the first electrode of the fourth transistor M4, and the second electrode of the fourth transistor M4 is connected to the third power supply signal VDD; the gate of the fifth transistor M5 is electrically connected to the gate of the fourth transistor M4, the second electrode of the fifth transistor M5 is connected to the third power supply signal VDD, and the first electrode of the fifth transistor M5 is electrically connected to the first electrode of the sixth transistor M6; the gate of the sixth transistor M6 is electrically connected to the first electrode of the sixth transistor M6 and the gate of the seventh transistor M7 respectively, and the second electrode of the sixth transistor M6 is grounded; the second electrode of the seventh transistor M7 is grounded, and the first electrode of the seventh transistor M7 is the output end of the current transfer unit 320.
[0075] The fourth transistor M4 and the fifth transistor M5 form a mirror circuit, which transmits the detection current output by the current conversion unit 310 to the first electrode of the fifth transistor M5. The sixth transistor M6 and the seventh transistor M7 form a mirror circuit, which transmits the current of the first electrode of the fifth transistor M5 to the first electrode of the seventh transistor M7 and outputs it as a bias current Ibias.
[0076] Further, Figure 5 is a circuit diagram of a current transfer unit provided by an embodiment of the present invention. Figure 5 As shown, the current transfer unit further includes: a seventh resistor R7 and a first capacitor C1.
[0077] The first end of the seventh resistor R7 is electrically connected to the gate of the fourth transistor M4, and the second end of the seventh resistor R7 is electrically connected to the gate of the fifth transistor M5; the first end of the first capacitor C1 is electrically connected to the second electrode of the fifth transistor M5, and the second end of the first capacitor C1 is electrically connected to the gate of the fifth transistor M5. The detection current Itest output by the current conversion unit 310 is still output through two mirror circuits. The seventh resistor R7 and the first capacitor C1 form a low-pass filter for eliminating burrs and high-frequency interference on the bias current Ibias.
[0078] Further, see Figure 5 The current transfer unit further includes: an eighth transistor M8 and an envelope detection unit 520. A first electrode of the eighth transistor M8 is electrically connected to the gate of the fourth transistor M4, a second electrode of the eighth transistor M8 is electrically connected to the first end of the seventh resistor R7, and a gate of the eighth transistor M8 is electrically connected to the output end of the envelope detection unit 520.
[0079] The envelope detection unit 520 is used to detect the envelope contours of the input signal in the ON state and the OFF state and transmit them to the eighth transistor M8. When the input signal is in the ON state, the eighth transistor M8 is controlled to be turned on to perform correction of the initial gain signal to adjust the gain of the first amplifier, thereby adjusting the output signal of the first amplifier. Since the gain is often a redundant setting, correcting the gain is beneficial to adapting the system to a larger dynamic range of the input signal; especially when the input signal is large, appropriately reducing the gain can effectively prevent signal saturation.
[0080] When the input signal is in the OFF state, the eighth transistor is controlled to be turned off, and the voltage between the gate and the second electrode of the fifth transistor M5 is clamped by the first capacitor C1 and remains unchanged, so the output bias current Ibias remains unchanged, and the gain of the first amplifier remains unchanged. This can prevent the gain from changing when the input signal is in the OFF state.
[0081] Continue to see Figure 5 On the basis of the above embodiments, optionally, the current transfer unit further includes: a digital control unit 510. The input end of the digital control unit 510 is electrically connected to the output end of the envelope detection unit 520; the output end of the digital control unit 510 is electrically connected to the gate of the eighth transistor M8.
[0082] The on and off of the eighth transistor M8 is controlled by the digital logic output by the digital control unit 510, and its function is to control the gain correction time of the variable gain amplifier. The envelope detection unit 520 detects the envelope contours of the input signal in the ON state and the OFF state, and outputs them to the digital control unit 510. The digital control unit 510 generates Figure 6 The start signal V of the eighth transistor M8 is shown M8-G When the input signal is in the ON state for the first few cycles, the control start signal V M8-G is high, the eighth transistor M8 is turned on, the gain control module works normally, and the gain of the first amplifier is adjusted according to the output signal of the first amplifier, and the adjustment is completed within these cycles. M8-Gis low, the eighth transistor M8 is turned off, and the voltage between the gate and the second electrode of the fifth transistor M5 is clamped by the first capacitor C1 and remains unchanged, so the output bias current Ibias remains unchanged, and the gain of the first amplifier remains unchanged. This control method effectively prevents the gain from jittering during signal transmission, ensuring that the gain is always in a low state to suppress overshoot when a large signal is input. And when the input signal is OFF, the gain is kept unchanged, effectively suppressing the overshoot problem of the output signal when the input signal is OFF.
[0083] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A variable gain amplifier, characterized in that: include: A first amplifier, an acquisition module and a gain control module; The first amplifier comprises a first input terminal, a second input terminal, an output terminal and a gain control terminal; The acquisition module comprises an input end, a first output end, and a second output end; the input end of the acquisition module is electrically connected to the output end of the first amplifier; the acquisition module is used to acquire the output signal of the first amplifier and convert it into a first detection signal and a second detection signal; the first detection signal is output from the first output end of the acquisition module, and the second detection signal is output from the second output end of the acquisition module; The gain control module comprises a first input terminal, a second input terminal, a third input terminal and an output terminal; the first input terminal of the gain control module is electrically connected to the first output terminal of the acquisition module, the second input terminal of the gain control module is electrically connected to the second output terminal of the acquisition module, the third input terminal of the gain control module is connected to an initial gain signal, and the output terminal of the gain control module is electrically connected to the gain control terminal of the first amplifier; The gain control module is used to correct the initial gain signal according to the difference between the first detection signal and the second detection signal, and generate a bias signal to control the gain of the first amplifier; The gain control module includes: a current conversion unit and a current transmission unit; The first input end of the current conversion unit is the first input end of the gain control module, the second input end of the current conversion unit is the second input end of the gain control module, and the third input end of the current conversion unit is the third input end of the gain control module; the current conversion unit is used to convert the initial gain signal into a detection current according to the difference between the first detection signal and the second detection signal; The input end of the current transfer unit is electrically connected to the output end of the current conversion unit, and the output end of the current transfer unit is the output end of the gain control module; the current transfer unit is used to convert the detection current into a bias current output to control the gain of the first amplifier; The current conversion unit includes: a second transistor, a third transistor, a second current source, a third current source, a third resistor, a fourth resistor, a fifth resistor, a sixth resistor, a first triode, a second triode, a third triode and a fourth triode; The gate of the second transistor is the first input terminal of the current conversion unit, and the second terminal of the second transistor is grounded; the gate of the third transistor is the second input terminal of the current conversion unit, and the second terminal of the third transistor is grounded; the first terminal of the second current source is connected to the second power supply signal, and the second terminal of the second current source is electrically connected to the first terminal of the second transistor; the first terminal of the third current source is connected to the second power supply signal, and the second terminal of the third current source is electrically connected to the first terminal of the third transistor; The first electrode of the second transistor is electrically connected to the first end of the third resistor, the second end of the third resistor is electrically connected to the first end of the fourth resistor, the second end of the fourth resistor is electrically connected to the first end of the fifth resistor, the second end of the fifth resistor is electrically connected to the first end of the sixth resistor, and the second end of the sixth resistor is electrically connected to the first electrode of the third transistor; The base of the fourth triode is the third input terminal of the current conversion unit, and the emitter of the fourth triode is grounded; the emitter of the first triode, the emitter of the second triode and the emitter of the third triode are all electrically connected to the collector of the fourth triode; the base of the first triode is electrically connected to the second end of the third resistor, the base of the second triode is electrically connected to the second end of the fourth resistor, and the base of the third triode is electrically connected to the second end of the fifth resistor; the collector of the first triode and the collector of the third triode are both connected to the third power supply signal; the collector of the second triode is the output terminal of the current conversion unit.
2. The variable gain amplifier according to claim 1, characterized in that: The output end of the first amplifier includes a first output end and a second output end; The input end of the acquisition module includes a first input end and a second input end; the first input end of the acquisition module is electrically connected to the first output end of the first amplifier, and the second input end of the acquisition module is electrically connected to the second output end of the first amplifier.
3. The variable gain amplifier according to claim 2, characterized in that: The acquisition module includes: a second amplifier, a first resistor, a second resistor, a first transistor and a first current source; The first input end of the second amplifier is the first input end of the acquisition module, the second input end of the second amplifier is the second input end of the acquisition module, the output end of the second amplifier is electrically connected to the first end of the first resistor; the second end of the first resistor is electrically connected to the first end of the second resistor; the first end of the second resistor is the first output end of the acquisition module, and the second end of the second resistor is the second output end of the acquisition module; The first end of the first current source is connected to a first power supply signal, the gate of the first transistor is electrically connected to the first electrode of the first transistor, the first output end of the acquisition module and the second end of the first current source respectively, and the second electrode of the first transistor is grounded.
4. The variable gain amplifier according to claim 1, characterized in that: The current transfer unit includes: a fourth transistor, a fifth transistor, a sixth transistor and a seventh transistor; The first pole of the fourth transistor is the input end of the current transfer unit, the gate of the fourth transistor is electrically connected to the first pole of the fourth transistor, and the second pole of the fourth transistor is connected to the third power supply signal; the gate of the fifth transistor is electrically connected to the gate of the fourth transistor, the second pole of the fifth transistor is connected to the third power supply signal, and the first pole of the fifth transistor is electrically connected to the first pole of the sixth transistor; the gate of the sixth transistor is electrically connected to the first pole of the sixth transistor and the gate of the seventh transistor respectively, and the second pole of the sixth transistor is grounded; the second pole of the seventh transistor is grounded, and the first pole of the seventh transistor is the output end of the current transfer unit.
5. The variable gain amplifier according to claim 4, characterized in that: The current transfer unit further includes: a seventh resistor and a first capacitor; The first end of the seventh resistor is electrically connected to the gate of the fourth transistor, and the second end of the seventh resistor is electrically connected to the gate of the fifth transistor; the first end of the first capacitor is electrically connected to the second electrode of the fifth transistor, and the second end of the first capacitor is electrically connected to the gate of the fifth transistor.
6. The variable gain amplifier according to claim 5, characterized in that: The current transfer unit further includes: an eighth transistor and an envelope detection unit; The first electrode of the eighth transistor is electrically connected to the gate of the fourth transistor, the second electrode of the eighth transistor is electrically connected to the first end of the seventh resistor, and the gate of the eighth transistor is electrically connected to the output end of the envelope detection unit.
7. The variable gain amplifier according to claim 6, characterized in that: The current transfer unit further includes: a digital control unit; The input end of the digital control unit is electrically connected to the output end of the envelope detection unit; the output end of the digital control unit is electrically connected to the gate of the eighth transistor.
8. The variable gain amplifier according to claim 1, characterized in that: The amplification factor of the first triode is the same as the amplification factor of the third triode; the amplification factor of the second triode is N times the amplification factor of the first triode; wherein N is greater than 1.
Citation Information
Patent Citations
Variable-gain operational amplifier for infrared receiver
CN103066934A
Variable gain audio-frequency amplifier
CN107181468A
Driver circuit and method for initiating gain control circuit
JP2005065135A
Stable AGC transimpedance amplifier with expanded dynamic range
US20020101285A1
Headphone automatic gain control system
US20040120534A1
