Automatic correction circuit, variable gain amplifier and method for correcting output voltage of variable gain amplifier

By adjusting the resistance of the variable gain amplifier through the resistor and comparator circuit in the automatic correction circuit, the problem of the output voltage swing of the variable gain amplifier is solved, a stable output voltage is achieved, and the reliability of signal transmission is improved.

CN118694322APending Publication Date: 2024-09-24HIMAX TECH LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311574575.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-03-21
Filing Date
2023-11-23
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

In communication systems, the voltage swing output by the variable gain amplifier fluctuates, resulting in signal distortion. It is difficult for existing technology to effectively stabilize the output voltage.

Method used

An automatic correction circuit is designed, including a resistance circuit, a reference signal generation circuit and a comparator circuit. By converting the differential voltage into a common mode voltage, and using the correction resistor and current source to set the reference voltage, the comparator outputs a resistance control signal. By adjusting the variable resistance circuit, the output voltage of the variable gain amplifier can be automatically corrected.

Benefits of technology

It effectively reduces the fluctuation swing of the variable gain amplifier's output voltage, stabilizes the voltage output to the equalizer, and improves the reliability and linearity of signal transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118694322A
    Figure CN118694322A
Patent Text Reader

Abstract

The invention provides an automatic correction circuit, a variable gain amplifier and an automatic correction method for correcting the output voltage of the variable gain amplifier. The automatic correction circuit comprises a resistance circuit, a reference signal generation circuit and a comparator circuit. The resistance circuit is configured to receive the differential voltage from the variable gain amplifier and convert the differential voltage into a common-mode voltage; the reference signal generation circuit comprises a correction resistor for outputting a reference voltage; the comparator circuit is electrically connected to the reference signal generating circuit and the variable gain amplifier, and is configured to receive one of the differential voltages from the variable gain amplifier, and compare the one of the differential voltages with the reference voltage to output a resistance control signal for controlling a variable resistance circuit of the variable gain amplifier. In this way, the fluctuation swing of the output voltage of the variable gain amplifier can be reduced, and therefore the voltage output to the equalizer is stabilized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to an automatic correction circuit, a variable gain amplifier and an automatic correction method for correcting the output voltage of the variable gain amplifier (VGA). Background Art

[0002] In a communication system, the signal may be distorted due to loss or interference during the transmission path from the transmitter to the receiver. In order to restore the distorted signal, an equalizer is usually set at the receiver to compensate for the signal loss and improve the reliability of the transmitted signal. In addition, in the communication system, a variable gain amplifier (VGA) is also used to optimize the voltage amplitude of the transmitted signal.

[0003] However, the signal output from the variable gain amplifier to the equalizer may have a variable voltage swing. For example, the signal output from the variable gain amplifier may have a larger voltage swing at one point in time, but a smaller voltage swing at another point in time. The voltage swing variation may be caused by: the signal transmitted from the transmitter has a large voltage variation, the aging of the components in the variable gain amplifier, or due to changes in process, voltage or temperature (PVT variation). Summary of the invention

[0004] Therefore, an object of the present invention is to provide an automatic correction circuit, a variable gain amplifier and an automatic correction method for correcting the output voltage of a variable gain amplifier (VGA), which can reduce the fluctuation swing of the output voltage of the variable gain amplifier, thereby stabilizing the voltage output to an equalizer.

[0005] According to the purpose of the present invention, an automatic correction circuit for correcting the output voltage of a variable gain amplifier comprises: a resistance circuit, a reference signal generating circuit and a comparator circuit. The resistance circuit is electrically connected to the output part of the variable gain amplifier and is configured to receive a differential voltage from the output part of the variable gain amplifier and convert the differential voltage into a common mode voltage; the reference signal generating circuit is electrically connected to the resistance circuit, wherein the reference signal generating circuit comprises a correction resistor for outputting a reference voltage; the comparator circuit is electrically connected to the reference signal generating circuit and the output part of the variable gain amplifier and is configured to receive one of the differential voltages from the output part of the variable gain amplifier and compare one of the differential voltages with the reference voltage to output a resistance control signal for controlling the variable resistance circuit of the variable gain amplifier.

[0006] According to an embodiment of the present invention, the reference signal generating circuit further comprises: a first operational amplifier, a transistor and a current source. The first operational amplifier is electrically connected to the resistor circuit and configured to receive a common mode voltage. The transistor is electrically connected to the output terminal of the first operational amplifier and configured to form a feedback circuit with the first operational amplifier. The current source is electrically connected to the correction resistor and the comparator circuit and configured to set the reference voltage according to the common mode voltage and the correction resistor.

[0007] According to an embodiment of the present invention, the calibration resistor and the current source are further configured to set the reference voltage to a desired peak voltage value of one of the differential voltages according to user requirements.

[0008] According to an embodiment of the present invention, the automatic correction circuit further includes a counter. The counter is electrically connected to the output of the variable gain amplifier and the comparator circuit, wherein the counter is configured to receive a resistance control signal and count the number of triggers according to the resistance control signal, thereby outputting a trigger result to the variable resistance circuit of the variable gain amplifier.

[0009] According to an embodiment of the present invention, the automatic calibration circuit further comprises a clock generator which is electrically connected to the comparator circuit and the counter and configured to output a synchronous trigger signal to the comparator circuit and the counter.

[0010] According to an embodiment of the present invention, the variable resistance circuit further includes a plurality of variable resistance modules, the plurality of variable resistance modules include a plurality of transistors and a plurality of resistors, and the counter is further configured to output a trigger result to the plurality of transistors to control the plurality of transistors, thereby controlling the total resistance value of the variable resistance circuit.

[0011] According to an embodiment of the present invention, the variable resistance circuit is at least one transistor, and the at least one transistor functions as a variable resistor, and the comparator circuit is further configured to output a resistance control signal to control the at least one transistor, thereby controlling the total resistance value of the variable resistance circuit.

[0012] According to the purpose of the present invention, a variable gain amplifier with an automatic correction function includes: a differential pair circuit, a variable resistance circuit and an automatic correction circuit. The automatic correction circuit includes: a resistance circuit, a reference signal generating circuit and a comparator circuit. The differential pair circuit includes a plurality of pull-up resistors, a plurality of transistors and a plurality of current sources. The variable resistance circuit is electrically connected to the differential pair circuit, wherein the variable resistance circuit is configured to adjust the differential voltage output from the differential pair circuit. The resistance circuit is electrically connected to the differential pair circuit, wherein the resistance circuit is configured to receive the differential voltage from the differential pair circuit and convert the differential voltage into a common mode voltage. The reference signal generating circuit is electrically connected to the resistance circuit, wherein the reference signal generating circuit includes a correction resistor for outputting a reference voltage. The comparator circuit is electrically connected to the reference signal generating circuit and the differential pair circuit, wherein the comparator circuit is configured to receive one of the differential voltages from the differential pair circuit and compare one of the differential voltages with a reference voltage to output a resistance control signal for controlling the variable resistance circuit of the variable gain amplifier.

[0013] According to an embodiment of the present invention, the reference signal generating circuit further comprises: a first operational amplifier, a transistor and a current source. The first operational amplifier is electrically connected to the resistor circuit and configured to receive a common mode voltage. The transistor is electrically connected to the output terminal of the first operational amplifier and configured to form a feedback circuit with the first operational amplifier. The current source is electrically connected to the correction resistor and the comparator circuit and configured to set the reference voltage according to the common mode voltage and the correction resistor.

[0014] According to an embodiment of the present invention, the reference voltage is set to a desired peak voltage value of one of the pair of differential voltages.

[0015] According to an embodiment of the present invention, the variable gain amplifier with automatic correction function further includes a counter. The counter is electrically connected to the output of the variable gain amplifier and the comparator circuit, wherein the counter is configured to receive a resistance control signal and calculate the number of triggers according to the resistance control signal, thereby outputting the trigger result to the variable resistance circuit of the variable gain amplifier.

[0016] According to an embodiment of the present invention, the variable resistance circuit further includes a plurality of variable resistance modules, the plurality of variable resistance modules include a plurality of transistors and a plurality of resistors, and the counter is further configured to output a trigger result to the plurality of transistors to control the plurality of transistors, thereby controlling the total resistance value of the variable resistance circuit.

[0017] According to an embodiment of the present invention, the variable resistance circuit is at least one transistor, and the at least one transistor functions as a variable resistor, and the comparator circuit is further configured to output a resistance control signal to control the at least one transistor, thereby controlling the total resistance value of the variable resistance circuit.

[0018] According to the purpose of the present invention, an automatic calibration method for calibrating the output voltage of a variable gain amplifier comprises: receiving a differential voltage from an output portion of the variable gain amplifier; converting the differential voltage into a common mode voltage by using a resistor circuit, wherein the resistor circuit comprises a plurality of resistors electrically connected in parallel; outputting a reference voltage by using a reference signal generating circuit, wherein the reference signal generating circuit comprises a calibration resistor and a current source to set the reference voltage to a desired peak voltage value of one of the differential voltages according to user requirements; comparing one of the differential voltages with the reference voltage by using a comparator circuit to output a resistance control signal; and controlling the variable resistance circuit of the variable gain amplifier according to the resistance control signal.

[0019] According to an embodiment of the present invention, an automatic correction method for correcting the output voltage of a variable gain amplifier further includes: using a counter to calculate the number of triggers according to a resistance control signal and generating a trigger result; wherein controlling the variable resistance circuit of the variable gain amplifier according to the resistance control signal includes: outputting the trigger result to the variable resistance circuit of the variable gain amplifier to adjust the resistance value of the variable resistance circuit.

[0020] According to an embodiment of the present invention, the automatic calibration method for calibrating the output voltage of a variable gain amplifier further includes: providing a synchronous trigger signal to a comparator circuit and a counter by using a clock generator. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] To make the above features, advantages and embodiments of the present invention more understandable, the attached drawings are described as follows:

[0022] Figure 1 is a schematic diagram of an automatic correction circuit for correcting the output voltage of a variable gain amplifier in an embodiment of the present invention;

[0023] Figure 2 is a schematic diagram of a variable resistor circuit in an embodiment of the present invention;

[0024] Figure 3 is a schematic diagram of a variable resistor circuit in an embodiment of the present invention;

[0025] Figure 4 is a flow chart of an automatic correction method for correcting the output voltage of a variable gain amplifier in an embodiment of the present invention;

[0026] Figure 5 is a flow chart of an automatic calibration method for calibrating an output voltage of a variable gain amplifier in an embodiment of the present invention; and

[0027] Figure 6 Schematic diagram of an automatic correction circuit, a variable gain amplifier and an equalizer in an embodiment of the present invention.

[0028]

Explanation of symbols

[0029] 100:Variable Gain Amplifier

[0030] 110: Differential pair circuit

[0031] 200: Automatic correction circuit

[0032] 210:Resistor Circuit

[0033] 220: Reference signal generating circuit

[0034] 221: Operational Amplifier

[0035] 230: Comparator circuit

[0036] 240: Counter

[0037] 250:Clock Generator

[0038] R1: The first resistor

[0039] R2: Second resistor

[0040] R D1 ,R D2 :Drain resistance

[0041] R S :Variable resistor circuit

[0042] Q1, Q2, Q3: transistors

[0043] R C :Correction resistor

[0044] I C : Correction current

[0045] I D1 ,I D2 :Current Source

[0046] O -1 ,O2: output terminal

[0047] V DD ,V CC :Power supply

[0048] V CM :Common mode voltage

[0049] V REF :Reference voltage

[0050] V IN1 ,V IN2 :Input signal

[0051] VOUT1 ,V OUT2 :Output voltage, differential voltage

[0052] 300: Automatic correction method

[0053] 301,302,303,304,305: Steps

[0054] 400: Automatic correction method

[0055] 401,402,403,404,405,406: Steps

[0056] 610:Equalizer DETAILED DESCRIPTION

[0057] Please refer to Figure 1 , Figure 1 FIG. 2 is a schematic diagram of an automatic calibration circuit 200 for calibrating the output voltage of a variable gain amplifier 100 according to an embodiment of the present invention. The variable gain amplifier 100 includes a differential pair circuit 110 and a variable resistor circuit R S The automatic calibration circuit 200 includes a resistor circuit 210, a reference signal generating circuit 220 and a comparator circuit 230, and is configured to calibrate the output voltage of the variable gain amplifier 100. When the signal output by the variable gain amplifier 100 has a large voltage swing, the automatic calibration circuit 200 can be used to stabilize the differential signal of the variable gain amplifier 100.

[0058] The variable gain amplifier 100 is a differential amplifier circuit configured to reduce common mode noise and amplify the voltage difference between two input terminals, thereby outputting a differential voltage signal (output voltage) V OUT1 and V OUT2 In the embodiment of the present invention, the variable gain amplifier 100 adopts a source degeneration resistor (variable resistor circuit) R S The source degenerated differential amplifier can improve linearity. Figure 1 As shown, the variable gain amplifier 100 is a symmetrical differential pair circuit including two drain resistors R D1 and R D2 (Drain resistance R D1 and drain resistor R D2 same), two transistors Q1 and Q2 (transistor Q1 and transistor Q2 are the same), two source current sources I D1 and I D2 (Current Source I D1 With current source I D2 same), and the variable resistance circuit R S . Drain resistance R D1 Electrically connected to the power supply V DDand the drain of transistor Q1, the drain resistor R D2 Electrically connected to the power supply V DD and the drain of transistor Q2, the current source I D1 is electrically connected between the source of transistor Q1 and ground, and the current source I D2 The variable resistor circuit R is electrically connected between the source of the transistor Q2 and the ground. S is electrically connected to the differential pair circuit 110. In this embodiment, the differential pair circuit 110 is designed as an output part to output a differential voltage signal V OUT1 and V OUT2 However, the embodiments of the present invention are not limited thereto. It should be known that the variable gain amplifier 100 used in the embodiments of the present invention can be any differential amplifier having a variable resistor, and the variable resistor has a characteristic of affecting the gain, so the output voltage can be controlled by the automatic correction circuit 200 of the present invention.

[0059] Please refer to Figure 1 , when the differential input signal V IN1 and V IN2 The voltage supplied to the gates of transistors Q1 and Q2 is amplified by gain and generates a differential voltage signal V at the output of the variable gain amplifier 100. OUT1 and V OUT2 An output terminal O1 of the output part is set at the drain of transistor Q1 and the drain resistor R D1 to generate the output signal V OUT1 , and the other output terminal O2 is set between the drain of transistor Q2 and the drain resistor R D2 to generate the output signal V OUT2 The gain of the variable gain amplifier 100 is expressed as equation (1):

[0060]

[0061] It can be found that the gain of the variable gain amplifier 100 is related to the drain resistance (R D1 or R D2 ) and the variable resistance circuit R S The drain resistance (R D1 or R D2 ) is set to a fixed value, the variable resistance circuit R S is much larger than the transfer conductance g m Therefore, by adjusting the variable resistance circuit R S The gain of the variable gain amplifier 100 can be corrected by adjusting the resistance value, thereby correcting the output voltage V of the variable gain amplifier 100. OUT1 and V OUT2function. As can be seen from equation 1, when the variable resistance circuit R S The smaller the value, the greater the gain. Conversely, when the variable resistor circuit R S The larger it is, the smaller the gain.

[0062] As mentioned above, by adjusting the variable resistance circuit R S The gain of the variable gain amplifier 100 can be adjusted by adjusting the resistance value of the variable resistance circuit R S The variable resistor circuit R S On the contrary, when fewer transistors are turned on, the resistors electrically connected in parallel will be smaller, and the variable resistor circuit R S The greater the resistance value will be. It should be understood that although Figure 2 Only one arrangement of resistors and transistors is shown in the figure, but in fact the variable resistor circuit R S It can be any combination of transistors and resistors that can achieve resistance change. In another embodiment of the present invention, the variable resistance circuit R S Contains Figure 3 The multiple transistors shown are used as variable resistors, and the gate voltages of the multiple transistors are adjusted to change the resistance values, thereby achieving gain control of the variable gain amplifier 100.

[0063] Please go back Figure 1 The automatic correction circuit 200 is electrically connected to the output portion of the variable gain amplifier 100 and is configured to correct the output voltage V OUT1 and V OUT2 , thereby achieving the output voltage V of the variable gain amplifier 100 OUT1 and V OUT2 regulation and correction to achieve a smaller voltage swing.

[0064] The first stage of the automatic calibration circuit 200 is a resistor circuit 210, which is directly connected to the output portion of the variable gain amplifier 100. The first resistor R1 is electrically connected between the output terminal O1 and the second resistor R2, and the second resistor R2 is electrically connected between the output terminal O2 and the first resistor R1. The resistor circuit 210 is configured to convert the output voltage V OUT1 and V OUT2 , and a common mode voltage V is obtained at the connection between the first resistor R1 and the second resistor R2 CM The connection point between the first resistor R1 and the second resistor R2 is electrically connected to the second stage of the automatic calibration circuit 200, and the common mode voltage V CMTransmitted to the second stage of the automatic correction circuit 200. The common mode voltage is expressed as equation (2):

[0065]

[0066] Please continue to refer to Figure 1 The second stage of the automatic correction circuit 200 is a reference signal generating circuit 220, which includes an operational amplifier 221, a transistor Q3, a correction resistor R C and correction current I C The operational amplifier 221 and the transistor Q3 are configured to form a feedback circuit. In the embodiment of the present invention, the negative terminal of the operational amplifier 221 is electrically connected to the connection point between the first resistor R1 and the second resistor R2 of the resistor circuit 210, and receives the common mode voltage V divided by the resistor circuit 210. CM The output terminal of the operational amplifier 221 is electrically connected to the gate of the transistor Q3, the positive terminal of the operational amplifier 221 is electrically connected to the drain of the transistor Q3, and the source of the transistor Q3 is electrically connected to the supply power V CC Based on the feedback circuit composed of the operational amplifier 221 and the transistor Q3, the voltage value of the drain of the transistor Q3 and the positive terminal of the operational amplifier 221 is fixed to the common mode voltage V CM In the embodiment of the present invention, although Figure 1 The transistor Q3 shown is a P-type channel transistor, but the embodiment of the present invention is not limited thereto.

[0067] The reference signal generating circuit 220 of the automatic calibration circuit 200 further includes a calibration resistor R C And the correction current I C , according to the common mode voltage V CM Generates a reference voltage V REF . Correction resistor R C is electrically connected to the transistor Q3 and the correction current I C The correction current I C Electrically connected to the calibration resistor R C Between the correction resistor R C The voltage at the junction between the transistor Q3 and the common mode voltage V CM , so the correction resistance R can be calculated C , Correction current I C With reference voltage V REF The relationship between . Equation (3) is expressed as follows:

[0068]

[0069] In the above equation, the reference voltage V REF The correction resistor R CWith the correction current I C The voltage at the connection between the correction resistor R C With the correction current I C The resulting voltage drop is equal to the common-mode voltage V CM With reference voltage V REF The difference between the two is also equal to half the amplitude of the desired output voltage (that is, the peak voltage value of one of the output voltages). Therefore, the output voltage can be controlled by setting the desired output voltage, where the desired output voltage is determined by the correction resistor R C With the correction current I C Set according to your needs.

[0070] Please continue to refer to Figure 1 The third stage of the automatic calibration circuit 200 is a comparator circuit 230, which is electrically connected to the reference signal generating circuit 220. The comparator circuit 230 is configured to receive a reference voltage V REF and one of the output voltages of the variable gain amplifier 100 (V OUT1 or V OUT2 ), and according to the reference voltage V REF and one of the output voltages (V OUT1 or V OUT2 ) generates a resistance control signal to the variable resistance circuit R of the variable gain amplifier 100. S The comparator circuit 230 is used to control the variable resistor circuit R S The resistance value of the comparator circuit 230 is set to achieve the output voltage correction of the variable gain amplifier 100. In the embodiment of the present invention, the negative terminal of the comparator circuit 230 is electrically connected to one of the output terminals (O1 or O2) of the variable gain amplifier 100, and receives one of the output voltages (V OUT1 or V OUT2 The positive terminal of the comparator circuit 230 is electrically connected to the calibration resistor R C With the correction current I C , so that the positive terminal of the comparator circuit 230 receives the reference voltage V REF Based on the working principle of the comparator circuit 230, the voltages of the positive terminal and the negative terminal are compared with each other, and a resistance control signal is generated to control the variable resistance circuit R S The resistance value makes one of the output voltages (V OUT1 or V OUT2 ) According to the reference voltage V REF Therefore, the comparator circuit 230 controls the variable resistance circuit R S The output voltage (V OUT1 or V OUT2), which can cause the comparator circuit 230 to operate and output a resistance control signal to correct the output voltage V OUT1 and V OUT2 .

[0071] In an embodiment of the present invention, a counter 240 is further included, which is electrically connected between the variable gain amplifier 100 and the output of the comparator circuit 230. The counter 240 is configured to receive a variable resistance control signal and count the number of triggers according to the variable resistance control signal, thereby outputting a trigger result to the variable resistance circuit R of the variable gain amplifier 100. S , to control the variable resistance circuit R S Specifically, the comparator circuit 230 converts one of the output voltages (V OUT1 or V OUT2 ) and the reference voltage V REF The counter 240 then counts the number of triggers according to the resistance control signal and finally generates a trigger result to the variable resistance circuit R of the variable gain amplifier 100. S , to control the variable resistance circuit R S The transistors in the circuit (in this embodiment, the transistors are used as switches) are turned on or off. When more transistors are turned on, more resistors are electrically connected in parallel. The smaller the resistance value, the greater the gain. Therefore, the output voltage V OUT1 and V OUT2 will increase; conversely, when fewer transistors are turned on, the resistors electrically connected in parallel will be fewer, the greater the resistance value, the smaller the gain will be, and therefore the output voltage V OUT1 and V OUT2 Therefore, based on the above-mentioned automatic correction circuit 200, the output voltage correction of the variable gain amplifier 100 can be achieved.

[0072] In another embodiment of the present invention, the comparator circuit 230 converts one of the output voltages (V OUT1 or V OUT2 ) and the reference voltage V REF The comparison is performed and a resistance control signal is generated to the variable resistance circuit R of the variable gain amplifier 100. S The resistance control signal controls the variable resistance circuit R S The transistor in the embodiment (in this embodiment, the transistor is used as a variable resistor) is used to adjust the gain of the variable gain amplifier 100 to achieve an output voltage V OUT1 and V OUT2 Therefore, based on the above-mentioned automatic correction circuit 200, the output voltage correction of the variable gain amplifier 100 can be achieved.

[0073] In an embodiment of the present invention, a clock generator 250 is further included, which is electrically connected to the comparator circuit 230 and the counter 240. The clock generator 250 is configured to provide a synchronous trigger signal to the comparator circuit 230 and the counter 240. Specifically, when the synchronous trigger signal comes, the comparator circuit 230 and the counter 240 are activated.

[0074] Please refer to Figure 4 , Figure 4 FIG. 3 is a flow chart of an automatic calibration method 300 for calibrating the output voltage of a variable gain amplifier according to an embodiment of the present invention. The automatic calibration method 300 may be performed by Figure 1 The configuration shown in the figure or other similar configurations are implemented. Figure 1 The configuration shown is explained as an example. OUT1 and V OUT2 The automatic calibration method 300 includes steps 301 to 305. First, step 301 is performed to receive a differential voltage V from the output portion of the variable gain amplifier 100. OUT1 and V OUT2 Specifically, the variable gain amplifier 100 is electrically connected to the automatic correction circuit 200. When the variable gain amplifier 100 amplifies the differential input voltage through gain, a differential voltage is output at the output part of the variable gain amplifier 100, and the differential voltage V is received by the automatic correction circuit 200. OUT1 and V OUT2 .

[0075] After step 301, step 302 is performed to convert the differential voltage V OUT1 and V OUT2 Specifically, the variable gain amplifier 100 is electrically connected to the resistor circuit 210 of the automatic calibration circuit 200, and converts the differential voltage V OUT1 and V OUT2 Divide the voltage to obtain the common mode voltage V CM .

[0076] After step 302, step 303 is then performed to output a reference voltage through the reference signal generating circuit 220. Specifically, the resistor circuit 210 is electrically connected to the reference signal generating circuit 220 and converts the common mode voltage V CM is transmitted to the reference signal generating circuit 220, wherein the common mode voltage V CM , the correction resistor R of the reference signal generating circuit 220 C and correction current I C Calculate the reference voltage V REFIn the embodiment of the present invention, the resistor R C And the correction current I C to obtain the desired peak voltage value.

[0077] After step 303, step 304 is then performed to compare one of the differential voltages with the reference voltage through the comparator circuit 230, and output the resistance control signal. Specifically, the comparator circuit 230 is electrically connected to the reference signal generating circuit 220 and one of the output terminals (O1 or O2) of the variable gain amplifier 100, and converts the reference voltage V REF The output voltage (V OUT1 or V OUT2 ) to generate a resistance control signal.

[0078] After step 304 is performed, step 305 is then performed to control the variable resistance circuit R of the variable gain amplifier 100 according to the resistance control signal. S The generated resistance control signal controls the variable resistance circuit R of the variable gain amplifier 100. S Specifically, when one of the output voltages (V OUT1 or V OUT2 ) is greater than the reference voltage V REF , the comparator circuit 230 will generate an increase in the variable resistance circuit R S The resistance value of the resistor controls the signal, thereby reducing the voltage gain and therefore the output voltage V OUT1 and V OUT2 On the contrary, when one of the output voltages (V OUT1 or V OUT2 ) is less than the reference voltage V REF , the comparator circuit 230 will generate a voltage that reduces the variable resistance circuit R S The resistance value of the resistor controls the signal, thereby increasing the voltage gain and thus the output voltage V OUT1 and V OUT2 Therefore, based on the above method for correcting the output voltage V of the variable gain amplifier 100 OUT1 and V OUT2 The automatic correction method 300 can realize the output voltage correction of the variable gain amplifier 100.

[0079] Please refer to Figure 5 , depicts an automatic calibration method 400 for calibrating the output voltage of the variable gain amplifier 100 according to another embodiment of the present invention. The automatic calibration method 400 may be performed by Figure 1 The configuration shown in the figure or other similar configurations are used to achieve this. Figure 1The configuration shown is explained as an example. OUT1 and V OUT2 The automatic calibration method 400 includes steps 401 to 406, wherein steps 401 to 404 are similar to steps 301 to 304 in the above-mentioned embodiment, and thus are not described in detail here. After step 404, step 405 is performed, where the counter 240 is used to count the number of triggers according to the resistance control signal and generate a trigger result. Specifically, the comparator circuit 230 converts one of the output voltages (V OUT1 or V OUT2 ) and the reference voltage V REF The resistors are compared and a resistance control signal is generated to the counter 240. Then, the counter 240 counts the trigger times according to the resistance control signal, thereby generating a trigger result.

[0080] After step 405, step 406 is performed to output the trigger result to the variable resistance circuit R of the variable gain amplifier 100. S , and then adjust the variable resistance circuit R S The counter 240 generates a trigger result to the variable resistance circuit R of the variable gain amplifier 100. S , to control the variable resistance circuit R S Specifically, when one of the output voltages (V OUT1 or V OUT2 ) is greater than the reference voltage V REF , counter 240 generates an increase in the variable resistance circuit R S The resistor value triggers the result, thereby reducing the voltage gain so that the output voltage V OUT1 and V OUT2 On the contrary, when one of the output voltages (V OUT1 or V OUT2 ) is less than the reference voltage V REF , counter 240 generates a voltage that reduces the variable resistance circuit R S The resistor value triggers the result, thereby increasing the voltage gain so that the output voltage V OUT1 and V OUT2 Therefore, based on the above method for correcting the output voltage V of the variable gain amplifier 100 OUT1 and V OUT2 The automatic correction method 400 can realize the output voltage correction of the variable gain amplifier 100.

[0081] For example, Figure 6As shown, although the voltage swing of the transmitter (TX) signal input to the variable gain amplifier 100 is large or the components in the variable gain amplifier 100 are aged, the variable gain amplifier 100 can still convert the differential voltage V with a smaller voltage swing into OUT1 and V OUT2 The output is sent to the equalizer 610 , thereby improving the performance of the equalizer 610 .

[0082] However, the above is only a preferred embodiment of the present invention and is not intended to limit the scope of the present invention. That is to say, any simple equivalent changes and modifications made according to the scope of the claims and the content of the specification of the present invention are still within the scope of the present invention.

Claims

1. An automatic calibration circuit for calibrating the output voltage of a variable gain amplifier (VGA), It is characterized in that Include: a resistor circuit electrically connected to an output portion of the variable gain amplifier, wherein the resistor circuit is configured to receive a pair of differential voltages from an output portion of the variable gain amplifier and convert the pair of differential voltages into a common mode voltage; a reference signal generating circuit electrically connected to the resistor circuit, wherein the reference signal generating circuit comprises a calibration resistor for outputting a reference voltage; and A comparator circuit is electrically connected to the reference signal generating circuit and the output portion of the variable gain amplifier, wherein the comparator circuit is configured to receive one of the pair of differential voltages from the output portion of the variable gain amplifier and compare the one of the pair of differential voltages with the reference voltage to output a resistance control signal for controlling a variable resistance circuit of the variable gain amplifier.

2. The automatic correction circuit according to claim 1, It is characterized in that The reference signal generating circuit further comprises: a first operational amplifier electrically connected to the resistor circuit and configured to receive the common mode voltage; a transistor electrically connected to an output terminal of the first operational amplifier and configured to form a feedback circuit with the first operational amplifier; as well as A current source is electrically connected to the correction resistor and the comparator circuit and is configured to set the reference voltage according to the common mode voltage and the correction resistor.

3. The automatic correction circuit according to claim 2, It is characterized in that The correction resistor and the current source are further configured to set the reference voltage to a desired peak voltage value of one of the pair of differential voltages according to user requirements.

4. The automatic correction circuit according to claim 1, It is characterized in that Also includes: A counter is electrically connected to the variable gain amplifier and an output of the comparator circuit, wherein the counter is configured to receive the resistance control signal and count a triggering number according to the resistance control signal, thereby outputting a triggering result to the variable resistance circuit of the variable gain amplifier.

5. The automatic correction circuit as claimed in claim 4, It is characterized in that Also includes: A clock generator is electrically connected to the comparator circuit and the counter and is configured to output a synchronous trigger signal to the comparator circuit and the counter.

6. The automatic correction circuit as claimed in claim 4, It is characterized in that The variable resistor circuit further includes a plurality of variable resistor modules, the plurality of variable resistor modules include a plurality of transistors and a plurality of resistors, and the counter is further configured to output the trigger result to the plurality of transistors to control the plurality of transistors, thereby controlling a total resistance value of the variable resistor circuit.

7. The automatic correction circuit according to claim 1, It is characterized in that The variable resistance circuit is at least one transistor, and the at least one transistor functions as a variable resistor, and the comparator circuit is further configured to output the resistance control signal to control the at least one transistor, thereby controlling a total resistance value of the variable resistance circuit.

8. A variable gain amplifier having an automatic correction function, It is characterized in that Include: a differential pair circuit, wherein the differential pair circuit comprises a plurality of pull-up resistors, a plurality of transistors and a plurality of current sources; a variable resistance circuit electrically connected to the differential pair circuit, wherein the variable resistance circuit is configured to adjust a pair of differential voltages output by the differential pair circuit; and An automatic correction circuit comprising: a resistor circuit electrically connected to the differential pair circuit, wherein the resistor circuit is configured to receive the pair of differential voltages from the differential pair circuit and convert the pair of differential voltages into a common mode voltage; a reference signal generating circuit electrically connected to the resistor circuit, wherein the reference signal generating circuit comprises a calibration resistor for outputting a reference voltage; and A comparator circuit is electrically connected to the reference signal generating circuit and the differential pair circuit, wherein the comparator circuit is configured to receive one of the pair of differential voltages from the differential pair circuit and compare the one of the pair of differential voltages with the reference voltage to output a resistance control signal for controlling the variable resistance circuit of the variable gain amplifier.

9. The variable gain amplifier with automatic correction function as claimed in claim 8, It is characterized in that The reference signal generating circuit further comprises: a first operational amplifier electrically connected to the resistor circuit and configured to receive the common mode voltage; a transistor electrically connected to an output terminal of the first operational amplifier and configured to form a feedback circuit with the first operational amplifier; as well as A current source is electrically connected to the correction resistor and the comparator circuit and is configured to set the reference voltage according to the common mode voltage and the correction resistor.

10. The variable gain amplifier with automatic correction function as claimed in claim 8, It is characterized in that The reference voltage is set to an expected peak voltage value of one of the pair of differential voltages.

11. The variable gain amplifier with automatic correction function as claimed in claim 8, It is characterized in that It also includes: A counter is electrically connected to the variable gain amplifier and an output of the comparator circuit, wherein the counter is configured to receive the resistance control signal and calculate a triggering number according to the resistance control signal, thereby outputting a triggering result to the variable resistance circuit of the variable gain amplifier.

12. The variable gain amplifier with automatic correction function as claimed in claim 11, It is characterized in that The variable resistor circuit further includes a plurality of variable resistor modules, the plurality of variable resistor modules include a plurality of transistors and a plurality of resistors, and the counter is further configured to output the trigger result to the plurality of transistors to control the plurality of transistors, thereby controlling a total resistance value of the variable resistor circuit.

13. The variable gain amplifier with automatic correction function as claimed in claim 8, It is characterized in that The variable resistance circuit is at least one transistor, and the at least one transistor functions as a variable resistor, and the comparator circuit is further configured to output the resistance control signal to control the at least one transistor, thereby controlling a total resistance value of the variable resistance circuit.

14. An automatic calibration method for calibrating the output voltage of a variable gain amplifier, It is characterized in that Include: receiving a pair of differential voltages from an output portion of the variable gain amplifier; converting the pair of differential voltages into a common mode voltage by using a resistor circuit, wherein the resistor circuit comprises a plurality of resistors electrically connected in parallel; Outputting a reference voltage by using a reference signal generating circuit, wherein the reference signal generating circuit comprises a calibration resistor and a current source, so as to set the reference voltage to a desired peak voltage value of one of the pair of differential voltages according to user requirements; comparing the one of the pair of differential voltages with the reference voltage to output a resistance control signal by using a comparator circuit; as well as A variable resistance circuit of the variable gain amplifier is controlled according to the resistance control signal.

15. The automatic calibration method for calibrating the output voltage of the variable gain amplifier as claimed in claim 14, It is characterized in that Also includes: By using a counter to count a triggering number according to the resistance control signal, and generate a triggering result; Controlling the variable resistance circuit of the variable gain amplifier according to the resistance control signal includes: outputting the trigger result to the variable resistance circuit of the variable gain amplifier to adjust a resistance value of the variable resistance circuit.

16. The automatic calibration method for calibrating the output voltage of the variable gain amplifier as claimed in claim 15, It is characterized in that Also includes: A clock generator is used to provide a synchronous trigger signal to the comparator circuit and the counter.