Integrated circuit and control method thereof, radio frequency transceiver and terminal

CN118923048AActive Publication Date: 2024-11-08HUAWEI TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202280094041.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2022-03-29
Publication Date
2024-11-08
Estimated Expiration
2042-03-29

AI Technical Summary

Technical Problem

In radio frequency communications, the gain of the amplifier fluctuates due to external reasons, causing the power of the radio frequency signal to change and needs to be adjusted to maintain signal quality.

Method used

By introducing the first and second attenuators into the amplifier chain, using digital signals to control the first attenuator and analog signals to control the second attenuator, the attenuation of the radio frequency signal is adjusted to adjust the gain of the amplifier to ensure the stability of signal transmission. .

Benefits of technology

It realizes dynamic adjustment of amplifier gain, adapts to environmental temperature changes and other factors, and maintains the stability and quality of signal transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118923048A_ABST
    Figure CN118923048A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an integrated circuit and a control method thereof, a radio frequency transceiver and a terminal, relates to the technical field of circuits, and can adjust the gain of a link where an amplifier is located by using a first attenuator and a second attenuator. The integrated circuit includes an amplification circuit. The amplifying circuit comprises an input end, an output end, an amplifier and a radio frequency signal transmission line, wherein the amplifier and the radio frequency signal transmission line are coupled between the input end and the output end. The radio frequency signal transmission line is coupled with the amplifier. And the amplifying circuit is used for amplifying the radio-frequency signal coupled at the input end and then outputting the radio-frequency signal through the output end. The amplification circuit also includes a first attenuator and a second attenuator. The first attenuator comprises a plurality of first transistors coupled to the ground, and is used for controlling the on-off number of the plurality of first transistors under the control of the digital signal. And the second attenuator comprises a second transistor which is coupled to the ground and is used for adjusting the attenuation amount of the radio frequency signal by adjusting the impedance of the second transistor under the control of the analog signal. The plurality of first transistors are connected in parallel with the second transistor.
Need to check novelty before this filing date? Find Prior Art

Description

Integrated circuit and control method thereof, radio frequency transceiver and terminal Technical Field

[0001] The present application relates to the field of circuit technology, and in particular to an integrated circuit and a control method thereof, a radio frequency transceiver, and a terminal. Background Art

[0002] In radio frequency communications, the gain of an amplifier may fluctuate due to external factors. This change in amplifier gain will affect the power of the radio frequency signal output by the link where the amplifier is located.

[0003] Therefore, it is often necessary to adjust the size of the radio frequency signal transmitted by the link where the amplifier is located according to actual conditions.

[0004] Summary of the Invention

[0005] In order to solve the above technical problems, the present application provides an integrated circuit and a control method thereof, a radio frequency transceiver and a terminal, which can use a first attenuator and a second attenuator to adjust the gain of the link where the amplifier is located by adjusting the attenuation of the radio frequency signal.

[0006] In a first aspect, the present application provides an integrated circuit comprising an amplifier circuit. The amplifier circuit comprises an input terminal, an output terminal, and an amplifier and a radio frequency signal transmission line coupled between the input terminal and the output terminal, wherein the radio frequency signal transmission line is coupled to the amplifier. The amplifier circuit is configured to amplify the radio frequency signal coupled to the input terminal and output the amplified signal through the output terminal. The amplifier circuit also comprises a first attenuator and a second attenuator, which are used together to attenuate the radio frequency signal. The first attenuator comprises a plurality of first transistors coupled to ground, which are configured to control the number of on and off states of the plurality of first transistors under the control of a digital signal. The second attenuator comprises a second transistor coupled to ground, which is configured to adjust the attenuation of the radio frequency signal by adjusting the impedance of the second transistor under the control of an analog signal. The plurality of first transistors are connected in parallel with the second transistor.

[0007] In this application, taking the change in amplifier gain due to ambient temperature as an example, on the one hand, the first attenuator can be used to adjust the RF signal over a wide dynamic range; on the other hand, the second attenuator can be controlled by an analog signal to reduce the attenuation of the RF signal as the ambient temperature increases. This is contrary to the amplifier's characteristic of "gain decreases as temperature increases." Therefore, on the basis of using the first attenuator to adjust the amplifier's gain, the second attenuator can also be used to adjust the attenuation of the RF signal based on the ambient temperature to compensate for the amplifier's gain, thereby using the first attenuator and the second attenuator to jointly adjust the gain of the link where the amplifier is located. Of course, the solution of this application can also be applied to changes in the amplifier's gain due to other reasons.

[0008] In some possible implementations, the plurality of first and second transistors may be coupled between an input side of the amplifier and a ground terminal, and / or may be coupled between an output side of the amplifier and a ground terminal.

[0009] In some possible implementations, the RF signal transmission line can adjust the characteristic impedance of the RF signal transmission line to achieve good matching between the amplifier and the first attenuator and the second attenuator, respectively. The input side and the output side of the RF signal transmission line are both coupled to the first attenuator and the second attenuator.

[0010] Compared with coupling the first attenuator and the second attenuator on one side of the RF signal transmission line, the present application couples the first attenuator and the second attenuator on both the input side and the output side of the RF signal transmission line, which can make the two sides of the RF signal transmission line more symmetrical, improve the port impedance of the mutual coupling between the amplifier and the first attenuator and the second attenuator, and optimize the scattering parameter (S parameter).

[0011] In some possible implementations, the plurality of first transistors are coupled between an input side of the amplifier and a ground terminal, and the second transistors are coupled between an output side of the amplifier and the ground terminal. Alternatively, the plurality of first transistors are coupled between an output side of the amplifier and a ground terminal, and the second transistors are coupled between an input side of the amplifier and the ground terminal.

[0012] In some possible implementations, the integrated circuit further includes a control circuit coupled to the gates of the plurality of first transistors and configured to input digital signals to the gates of the plurality of first transistors to control the number of on and off states of the plurality of first transistors.

[0013] In some possible implementations, the integrated circuit further includes a bias circuit. The bias circuit is coupled to the gate of the second transistor and is configured to input an analog signal to the gate of the second transistor. The bias circuit can dynamically input the analog signal to the gate of the second transistor based on external factors, such as changes in ambient temperature, to adjust the impedance of the second transistor, thereby enabling the second attenuator to achieve varying degrees of conduction, thereby attenuating the RF signal to varying degrees.

[0014] In some possible implementations, taking the external factor as the environment as an example, the ambient temperature is the temperature of the bias circuit. The bias circuit is used to input an analog signal to the second transistor according to the ambient temperature, so that the second attenuator, under the control of the analog signal, reduces the attenuation of the radio frequency signal as the ambient temperature increases. The bias circuit can input a dynamic analog signal to the gate of the second transistor in real time according to its own real-time temperature. Under the control of the analog signal, the impedance of the second transistor can change with the analog signal, and then the conduction degree of the second transistor changes, so that the attenuation of the radio frequency signal decreases with the increase of the ambient temperature and increases with the decrease of the ambient temperature, so as to compensate for the change in gain of the amplifier due to the change in ambient temperature.

[0015] In some possible implementations, taking the external factor of the environment as an example, the integrated circuit further includes a temperature detection circuit coupled to a bias circuit. The temperature detection circuit is configured to detect the ambient temperature and transmit the ambient temperature information to the bias circuit. The bias circuit is configured to transmit an analog signal to the gate of the second transistor based on the received ambient temperature information. Under the control of the analog signal, the impedance of the second transistor can change in response to the analog signal, thereby changing the degree of conduction of the second transistor. This causes the attenuation of the RF signal to decrease with increasing ambient temperature and increase with decreasing ambient temperature, thereby compensating for changes in amplifier gain caused by changes in ambient temperature.

[0016] In one possible implementation, the temperature detection circuit may send real-time ambient temperature information to the bias circuit; after receiving the real-time ambient temperature information, the bias circuit may input a real-time analog signal to the second attenuator to control the second attenuator to adjust the attenuation of the RF signal in real time based on the ambient temperature. Alternatively, the temperature detection circuit may send ambient temperature information to the bias circuit once at regular intervals; after receiving the ambient temperature information at regular intervals, the bias circuit may input an analog signal to the second attenuator to control the second attenuator to adjust the attenuation of the RF signal based on the ambient temperature within the regular period.

[0017] In some possible implementations, the first attenuator is a digital step attenuator, and the second attenuator is a voltage variable attenuator. The plurality of first transistors and the second transistors may be N-type transistors or P-type transistors.

[0018] Taking the case where all of the first transistors are N-type transistors as an example, if the control circuit inputs a high level (e.g., "1") to the gates of at least some of the first transistors, at least some of the first transistors are turned on. During the transmission of the RF signal in the amplifier circuit, part of the RF signal can also be released to ground through at least some of the turned-on first transistors. That is, at least some of the turned-on first transistors divide the voltage of the RF signal to attenuate the magnitude of the RF signal. Conversely, if the control circuit inputs a low level (e.g., "0") to the gates of at least some of the first transistors, at least some of the first transistors are turned off, and the turned-off at least some of the first transistors cannot attenuate the magnitude of the RF signal.

[0019] Taking the case where multiple first transistors are all P-type transistors as an example, if the control circuit inputs a low level (e.g., "0") to the gates of at least some of the first transistors, at least some of the first transistors are turned on, and during the transmission of the RF signal in the amplifier circuit, part of the RF signal can also be released to ground through at least some of the turned-on first transistors. That is, at least some of the turned-on first transistors divide the voltage of the RF signal to attenuate the magnitude of the RF signal. Conversely, if the control circuit inputs a high level (e.g., "1") to the gates of at least some of the first transistors, at least some of the first transistors are turned off, and the turned-off at least some of the first transistors cannot attenuate the magnitude of the RF signal.

[0020] Taking the second transistor as an N-type transistor as an example, if the analog signal input to the gate of the second transistor by the bias circuit is smaller, the impedance of the second transistor is larger, and the second transistor is less completely turned on. The smaller the portion of the RF signal released to ground through the second transistor, the smaller the attenuation of the RF signal by the second attenuator, and the greater the gain of the link where the amplifier is located. Conversely, if the analog signal input to the gate of the second transistor by the bias circuit is larger, the impedance of the second transistor is smaller, and the second transistor is more completely turned on. The larger the portion of the RF signal released to ground through the second transistor, the greater the attenuation of the RF signal by the second attenuator, and the smaller the gain of the link where the amplifier is located.

[0021] Taking the second transistor as a P-type transistor as an example, if the bias circuit inputs a larger analog signal to the gate of the second transistor, the impedance of the second transistor will be larger, and the second transistor will be less completely turned on. The smaller the portion of the RF signal released to ground through the second transistor, the smaller the attenuation of the RF signal by the second attenuator, and the greater the gain of the link where the amplifier is located. Conversely, if the bias circuit inputs a smaller analog signal to the gate of the second transistor, the impedance of the second transistor will be smaller, and the second transistor will be more completely turned on. The larger the portion of the RF signal released to ground through the second transistor, the greater the attenuation of the RF signal by the second attenuator, and the smaller the gain of the link where the amplifier is located.

[0022] In some possible implementations, the active layers of the multiple first transistors can have different sizes, so that different degrees of attenuation can be achieved by controlling the number of on- and off-states of the multiple first transistors of different sizes. If there is only one second transistor, the integrated circuit layout area can also be saved.

[0023] In a second aspect, a radio frequency transceiver is provided, comprising a transmitter and a receiver; both the transmitter and the receiver comprise the integrated circuit described in the first aspect.

[0024] The implementation of the second aspect corresponds to any implementation of the first aspect. The technical effects corresponding to the implementation of the second aspect can be found in the technical effects corresponding to the first aspect and any implementation of the first aspect, and will not be repeated here.

[0025] In a third aspect, a terminal is provided, comprising an antenna and the RF transceiver described in the second aspect, wherein the antenna is coupled to a transmitter and a receiver of the RF transceiver. The antenna is configured to transmit RF signals to the receiver and to receive RF signals transmitted by the transmitter.

[0026] The implementation of the third aspect corresponds to any implementation of the first aspect. The technical effects corresponding to the implementation of the third aspect can be found in the technical effects corresponding to the first aspect and any implementation of the first aspect, and will not be repeated here.

[0027] In a fourth aspect, a control method for an integrated circuit is provided. The integrated circuit includes an amplifier circuit; the amplifier circuit includes an input terminal, an output terminal, a first attenuator, a second attenuator, and an amplifier and a radio frequency signal transmission line coupled between the input terminal and the output terminal. The radio frequency signal transmission line is coupled to the amplifier; the first attenuator includes a plurality of first transistors, the second attenuator includes a second transistor, and the plurality of first transistors and the second transistors are connected in parallel. The control method for the integrated circuit includes: using the amplifier circuit to amplify the radio frequency signal coupled to the input terminal and outputting the amplified signal through the output terminal; under the control of a digital signal, adjusting the attenuation of the radio frequency signal by controlling the number of on and off switches of the plurality of first transistors; and under the control of an analog signal, adjusting the attenuation of the radio frequency signal by adjusting the impedance of the second transistor.

[0028] In this application, taking the change in amplifier gain due to ambient temperature as an example, on the one hand, the first attenuator can be used to adjust the RF signal over a wide dynamic range; on the other hand, the second attenuator can be controlled by an analog signal to reduce the attenuation of the RF signal as the ambient temperature increases, which is the opposite of the amplifier's characteristic of "gain decreases as temperature increases." Therefore, on the basis of using the first attenuator to adjust the amplifier's gain, the second attenuator can also be used to adjust the attenuation of the RF signal based on the ambient temperature to compensate for the amplifier's gain, thereby using the first attenuator and the second attenuator to jointly adjust the gain of the link where the amplifier is located. Of course, the solution of this application can also be applied to changes in the amplifier's gain due to other reasons.

[0029] In some possible implementations, the integrated circuit further includes a control circuit. The control circuit is coupled to the gates of the plurality of first transistors; and under the control of a digital signal, the control circuit adjusts the attenuation of the radio frequency signal by controlling the number of on-off states of the plurality of first transistors. This includes: inputting the digital signal to the gates of the plurality of first transistors using the control circuit, and adjusting the attenuation of the radio frequency signal by controlling the number of on-off states of the plurality of first transistors under the control of the digital signal.

[0030] In some possible implementations, the integrated circuit further includes a bias circuit coupled to the gate of the second transistor. Adjusting the attenuation of the RF signal by adjusting the impedance of the second transistor under the control of an analog signal includes: inputting an analog signal to the gate of the second transistor using the bias circuit, and adjusting the attenuation of the RF signal by adjusting the impedance of the second transistor under the control of the analog signal. The bias circuit can dynamically input an analog signal to the gate of the second transistor based on external factors, such as changes in ambient temperature, to adjust the impedance of the second transistor, thereby enabling the second attenuator to achieve varying degrees of conduction, thereby attenuating the RF signal to varying degrees.

[0031] In some possible implementations, taking the external factor as the environment as an example, the ambient temperature is the temperature of the bias circuit. According to the ambient temperature, an analog signal is input to the second transistor using the bias circuit, including: inputting an analog signal to the gate of the second transistor according to the ambient temperature through the bias circuit, so that the second attenuator, under the control of the analog signal, reduces the attenuation of the radio frequency signal as the ambient temperature increases. The bias circuit can input a dynamic analog signal to the gate of the second transistor in real time according to its own real-time temperature. Under the control of the analog signal, the impedance of the second transistor can change with the analog signal, and then the conduction degree of the second transistor changes, so that the attenuation of the radio frequency signal decreases as the ambient temperature increases and increases as the ambient temperature decreases, so as to compensate for the gain change of the amplifier due to the change in ambient temperature.

[0032] In some possible implementations, taking the external factor of the environment as an example, the integrated circuit further includes a temperature detection circuit coupled to a bias circuit. Based on the ambient temperature, an analog signal is input to the second transistor using the bias circuit, including: detecting the ambient temperature using the temperature detection circuit and transmitting the ambient temperature information to the bias circuit; and inputting an analog signal to the gate of the second transistor via the bias circuit based on the received ambient temperature information. Under the control of the analog signal, the impedance of the second transistor can change with the analog signal, thereby changing the degree of conduction of the second transistor. This causes the attenuation of the RF signal to decrease with increasing ambient temperature and increase with decreasing ambient temperature, thereby compensating for changes in the amplifier gain caused by changes in ambient temperature.

[0033] In one possible implementation, the temperature detection circuit may send real-time ambient temperature information to the bias circuit; after receiving the real-time ambient temperature information, the bias circuit may input a real-time analog signal to the second attenuator to control the second attenuator to adjust the attenuation of the RF signal in real time based on the ambient temperature. Alternatively, the temperature detection circuit may send ambient temperature information to the bias circuit once at regular intervals; after receiving the ambient temperature information at regular intervals, the bias circuit may input an analog signal to the second attenuator to control the second attenuator to adjust the attenuation of the RF signal based on the ambient temperature within the regular period.

[0034] In some possible implementations, the first attenuator is a digital step attenuator, and the second attenuator is a voltage variable attenuator. The plurality of first transistors and the second transistors may be N-type transistors or P-type transistors.

[0035] The operating principles of the multiple first transistors and the second transistors can be found in the first aspect above and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] FIG1 is a schematic diagram of an application scenario of a mobile phone provided in an embodiment of the present application;

[0037] FIG2a is a circuit diagram of an integrated circuit provided in an embodiment of the present application;

[0038] FIG2 b is a circuit diagram of another integrated circuit provided in an embodiment of the present application;

[0039] FIG3a is a circuit diagram of another integrated circuit provided in an embodiment of the present application;

[0040] FIG3 b is a circuit diagram of another integrated circuit provided in an embodiment of the present application;

[0041] FIG4 is a circuit diagram of another integrated circuit provided in an embodiment of the present application;

[0042] FIG5 is a circuit diagram of another integrated circuit provided in an embodiment of the present application;

[0043] FIG6 is a circuit diagram of another integrated circuit provided in an embodiment of the present application;

[0044] FIG7 a is a diagram showing the relationship between the gate voltage and amplifier gain of a second attenuator provided in an embodiment of the present application;

[0045] FIG7 b is a diagram showing the relationship between the gate voltage and amplifier gain of another second attenuator provided in an embodiment of the present application;

[0046] FIG8 a is a diagram showing the relationship between the gate voltage and the ambient temperature of a second attenuator provided in an embodiment of the present application;

[0047] FIG8 b is a diagram showing the relationship between the gate voltage and the ambient temperature of another second attenuator provided in an embodiment of the present application;

[0048] FIG9 a is a circuit diagram of another integrated circuit provided in an embodiment of the present application;

[0049] FIG9 b is a circuit diagram of another integrated circuit provided in an embodiment of the present application;

[0050] FIG10a is a schematic structural diagram of a radio frequency signal transmission line provided in an embodiment of the present application;

[0051] FIG10b is a circuit diagram of a radio frequency signal transmission line provided in an embodiment of the present application;

[0052] FIG11 is a diagram showing the connection relationship between the first attenuator and the second attenuator and the radio frequency signal transmission line provided by the related art;

[0053] FIG12 is a control flow chart of an integrated circuit provided in an embodiment of the present application.

[0054] Reference numerals:

[0055] 11-first attenuator; 12-second attenuator; 13-amplifier; 14-bias circuit; 15-temperature detection circuit; 16-control circuit; 17-RF signal transmission line; 21-routing layer; 22-insulation layer; 23-ground layer; 101-receiver; 102-transmitter; 103-antenna. DETAILED DESCRIPTION

[0056] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0057] The term "and / or" in this article is merely a description of the association relationship between associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0058] In the description and claims of the embodiments of this application, the terms "first" and "second" are used to distinguish different objects, rather than to describe a specific order of objects. For example, the terms "first target object" and "second target object" are used to distinguish different objects, rather than to describe a specific order of objects.

[0059] In the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.

[0060] In the description of the embodiments of this application, unless otherwise specified, "multiple" means two or more. For example, "multiple processing units" means two or more processing units; "multiple systems" means two or more systems.

[0061] The present application provides a terminal. The terminal may also be a mobile phone, base station, computer, tablet computer, personal digital assistant (PDA), smart wearable device, smart home device, or other device including an amplifier, but the present application does not limit this. For ease of explanation, the following description uses a mobile phone as an example.

[0062] Figure 1 shows a schematic diagram of an application scenario of a mobile phone provided by an embodiment of the present application. The mobile phone may include a radio frequency transceiver and an antenna 103. The radio frequency transceiver may include a receiver 101 and a transmitter 102. Antenna 103 is coupled to receiver 101 and transmitter 102, respectively, and is configured to transmit radio frequency signals to receiver 101 and receive radio frequency signals transmitted by transmitter 102.

[0063] To meet different application requirements, receiver 101 can amplify the RF signal after receiving it from antenna 103. The signal transmitted by transmitter 102 to antenna 103 can also be an amplified RF signal. Amplification of the RF signal can be achieved using amplifiers. That is, receiver 101 and transmitter 102 can include amplifiers. For example, receiver 101 can include a low-noise amplifier (LNA), and transmitter 102 can include a power amplifier (PA).

[0064] Of course, the receiver 101 and the transmitter 102 may also include other amplifiers.

[0065] In some scenarios, user A calls user B's phone using mobile phone A. During this call, the radio frequency signal emitted by mobile phone A must reach a certain strength before it can be transmitted to the base station. Therefore, mobile phone A must amplify the radio frequency signal before transmitting it. However, the distance between user A and the base station is not fixed. As the distance between user A and the base station changes, the strength of the radio frequency signal from mobile phone A received by the base station also changes. Similarly, as the distance between user A and the base station changes, the strength of the radio frequency signal from the base station received by mobile phone A also changes.

[0066] The above example illustrates an application scenario where the RF signal strength needs to be adjusted. Of course, in other application scenarios of mobile phones and base stations, or when the terminal is other electronic devices, there may also be scenarios where the RF signal needs to be adjusted. The embodiments of the present application are not limited to this.

[0067] Based on the above, in order to enable mobile phone A to send a stable RF signal to the base station, the transmitter 102 may also include an attenuator, which is used to adjust the attenuation of the RF signal transmitted by the transmitter 102 to adjust the gain of the link where the amplifier is located (i.e., the transmitter). Similarly, in order to enable mobile phone A to receive a stable RF signal sent by the base station, the receiver 101 may also include a first attenuator 11, which is used to adjust the attenuation of the RF signal mixed by the receiver 101 to adjust the gain of the link where the amplifier is located (i.e., the receiver). Of course, the first attenuator 11 can also be used to implement other functions, for example, the first attenuator 11 can be used to implement a large dynamic range adjustment of the RF signal to meet different application scenarios.

[0068] As mentioned in the background, the amplifier's gain can fluctuate due to external factors. This change in amplifier gain can affect the power of the RF signal output by the link in which the amplifier resides. For example, an amplifier exhibits gain drift over temperature, meaning its gain is temperature-dependent. Higher temperatures reduce the amplifier's gain, which in turn reduces the gain of the link in which the amplifier resides (e.g., receiver and transmitter). Lower temperatures increase the amplifier's gain, which in turn reduces the gain of the link in which the amplifier resides (e.g., receiver and transmitter).

[0069] Of course, there may be other reasons that cause the gain fluctuation of the amplifier, and the embodiments of the present application do not limit this.

[0070] Based on this, an embodiment of the present application provides an integrated circuit that integrates a first attenuator 11 and a second attenuator 12 in the link where the amplifier resides. Second attenuator 12 can be used to compensate for amplifier gain fluctuations caused by external factors. Furthermore, first attenuator 11 and second attenuator 12 are used to jointly adjust the attenuation of the RF signal, thereby adjusting the gain of the link where the amplifier resides.

[0071] Those skilled in the art should know that, in the present application, the gain of the amplifier refers to: the ratio X1 between the RF signal output from the amplifier and the RF signal input to the amplifier, and the gain Y1 of the amplifier can also be expressed as Y1=20lgX1. For example, the ratio between the RF signal output from the amplifier and the RF signal input to the amplifier is 11.22, and the gain of the amplifier can be expressed as 11.22 or 21dB. In the present application, the gain of the link where the amplifier is located refers to: the ratio X2 between the RF signal output from the link where the amplifier is located and the RF signal input to the link where the amplifier is located, and the gain Y2 of the link where the amplifier is located can also be expressed as Y2=20lgX2. For example, the ratio between the RF signal output from the link where the amplifier is located and the RF signal input to the link where the amplifier is located is 3.16, and the gain of the link where the amplifier is located can be expressed as 3.16 or 10dB.

[0072] The specific circuit diagram of the integrated circuit is introduced below in conjunction with the receiver 101 and the transmitter 102.

[0073] As shown in Figures 2a-3b, the integrated circuit includes an amplifier circuit. The amplifier circuit includes an input terminal IN, an output terminal OUT, an amplifier 13 coupled between the input terminal IN and the output terminal OUT, and a radio frequency signal transmission line 17. The radio frequency signal transmission line 17 is coupled to the amplifier 13. The amplifier circuit is configured to amplify the radio frequency signal coupled to the input terminal IN and output it through the output terminal OUT.

[0074] The amplifier circuit also includes the aforementioned first attenuator 11 and second attenuator 12, which are used together to attenuate the RF signal. The first attenuator 11 includes multiple grounded first transistors, which are used to adjust the attenuation of the RF signal by controlling the number of on / off states of the multiple first transistors under the control of a digital signal. The second attenuator 12 includes a grounded second transistor, which is used to adjust the attenuation of the RF signal by adjusting the impedance of the second transistor under the control of an analog signal. The multiple first transistors are connected in parallel with the second transistor.

[0075] When external factors affect the gain of the amplifier 13, causing the gain of the amplifier 13 to change, the first attenuator 11 and the second attenuator 12 can both be operated, and the number of on-off switches of the multiple first transistors can be controlled by adjusting the size of the digital signal input to the multiple first transistors, thereby adjusting the size of the RF signal attenuated by the first attenuator 11. For example, if there are five first transistors, three first transistors can be turned on and two first transistors can be turned off under the control of the digital signal to adjust the size of the RF signal attenuated by the first attenuator 11. In addition, by adjusting the size of the analog signal input to the second transistor, the impedance of the second transistor can be adjusted, thereby adjusting the size of the RF signal attenuated by the second attenuator 12. In this way, the gain of the link where the amplifier 13 is located can be jointly adjusted by the first attenuator 11 and the second attenuator 12.

[0076] Specifically, taking the example of amplifier 13 gain changes due to ambient temperature, first attenuator 11 can be used to adjust the RF signal over a wide dynamic range. Second, under the control of an analog signal, second attenuator 12 can reduce the RF signal attenuation as the ambient temperature increases, contrary to the amplifier 13 characteristic of "gain decreasing with increasing temperature." Therefore, in addition to adjusting the gain of amplifier 13 using first attenuator 11, second attenuator 12 can also be used to adjust the RF signal attenuation based on ambient temperature to compensate for the gain of amplifier 13. Consequently, the first and second attenuators 11, 12 can be used to jointly adjust the gain of the link to which amplifier 13 belongs.

[0077] Of course, if the gain of the amplifier 13 changes due to other reasons, the solution of the present application can also be applied, and no further details will be given here.

[0078] In some possible implementations, the embodiments of the present application do not limit the positional relationship between the multiple first transistors and the second transistors and the amplifier 13. As long as the multiple first transistors in the first attenuator 11 are connected in parallel with the second transistors in the second attenuator 12, and the multiple first transistors and the second transistors are coupled to the ground terminal, the attenuation of the RF signal can be adjusted by releasing part of the RF signal to the ground terminal.

[0079] Optionally, as shown in FIG2a , a plurality of first and second transistors may be coupled between the output side of the amplifier 13 and the ground terminal. The RF signal is attenuated by the first attenuator 11 and the second attenuator 12 before being input to the amplifier 13. After being amplified by the amplifier 13, the signal is output from the output terminal OUT. Alternatively, as shown in FIG2b , a plurality of first and second transistors may be coupled between the input side of the amplifier 13 and the ground terminal. After being amplified by the amplifier 13, the RF signal is input to the first attenuator 11 and the second attenuator 12. After passing through the first attenuator 11 and the second attenuator 12, the signal is output from the output terminal OUT.

[0080] Alternatively, as shown in FIG3a , a plurality of first transistors are coupled between the input side of amplifier 13 and the ground terminal, and a second transistor is coupled between the output side of amplifier 13 and the ground terminal. The RF signal is attenuated by first attenuator 11 and then input to amplifier 13. After being amplified by amplifier 13, the signal is attenuated by second attenuator 12 and then output from output terminal OUT. Alternatively, as shown in FIG3b , a plurality of first transistors are coupled between the output side of amplifier 13 and the ground terminal, and a second transistor is coupled between the input side of amplifier 13 and the ground terminal. The RF signal is attenuated by second attenuator 12 and then input to amplifier 13. After being amplified by amplifier 13, the signal is attenuated by first attenuator 11 and then output from output terminal OUT.

[0081] For the coupling relationship between the multiple first transistors, the second transistors, and the amplifier 13 shown in FIG2a to FIG3b, as an example, in combination with Table 1 and Table 2, taking the example of the gain of the amplifier 13 changing due to different ambient temperatures, and the first attenuator 11 and the second attenuator 12 adjusting the total gain of the link where the amplifier 13 is located under different ambient temperatures, the specific calculation process is as follows:

[0082] Assuming that the ambient temperature is room temperature, the gain Y1 of the amplifier 13 when working is 21 dB (X1=11.22); assuming that the ambient temperature is low, the gain Y1 of the amplifier 13 when working is 22 dB (X1=12.59), which is 1 dB higher than the original 21 dB (X1 increases by 1.37); assuming that the ambient temperature is high, the gain Y1 of the amplifier 13 when working is 20 dB (X1=10), which is 1 dB lower than the original 21 dB (X1 decreases by 1.22).

[0083] As previously mentioned, based on the positional relationship between mobile phone A and the base station, assume that the system requires amplifier 13 to have a variable gain range of 10dB to 20dB. When mobile phone A is close to the base station, first attenuator 11 consistently reduces amplifier 13's gain Y1 by 10dB. Alternatively, gain Y3 of first attenuator 11 is -10dB, and gain X3 of first attenuator 11 is 0.32. When mobile phone A is farther from the base station, first attenuator 11 consistently reduces amplifier 13's gain Y1 by 0dB. Alternatively, gain Y3 of first attenuator 11 is 0dB, and gain X3 of first attenuator 11 is 1. Here, Y3 = 201gX3.

[0084] Regardless of whether the distance between mobile phone A and the base station is relatively close, if the ambient temperature is normal, the second attenuator 12 reduces the gain Y1 of amplifier 13 by 1 dB. Alternatively, the gain Y4 of the second attenuator 12 is -1 dB, and the gain X4 of the second attenuator 12 is 0.89. If the ambient temperature is low, the gain attenuation of amplifier 13 by the second attenuator 12 is 2 dB. Alternatively, the gain Y4 of the second attenuator 12 is -2 dB, and the gain X4 of the second attenuator 12 is 0.79. If the ambient temperature is high, the second attenuator 12 reduces or increases the gain X4 of amplifier 13 by 0 dB. Alternatively, the gain Y4 of the second attenuator 12 is 0 dB, and the gain X4 of the second attenuator 12 is 1. Here, Y4 = 201gX4.

[0085] In summary, when mobile phone A is close to the base station, if the ambient temperature is low, the total gain Y2 of the link where amplifier 13 is located is 22dB-10dB-2dB=10dB, X2=12.59*0.32*0.79≈3.16. If the ambient temperature is normal, the total gain Y2 of the link where amplifier 13 is located is 21dB-10dB-1dB=10dB, X2=11.22*0.32*0.89≈3.16. If the ambient temperature is high, the total gain Y2 of the link where amplifier 13 is located is 20dB-10dB-0dB=10dB, X2=10*0.32*1≈3.16. In this way, based on different ambient temperatures, the first attenuator 11 and the second attenuator 12 can be used to ensure that the total gain Y2 of the link where amplifier 13 is located is always maintained at 10dB, and X2 is always maintained at 3.16.

[0086] When mobile phone A is far from the base station, if the ambient temperature is low, the total gain Y2 of the link where amplifier 13 is located is 22dB-0dB-2dB=20dB, where X2=12.59*1*0.79≈10. If the ambient temperature is normal, the total gain Y2 of the link where amplifier 13 is located is 21dB-0dB-1dB=20dB, where X2=11.22*1*0.89≈10. If the ambient temperature is high, the total gain Y2 of the link where amplifier 13 is located is 20dB-0dB-0dB=20dB, where X2=10*1*1≈10. In this way, based on different ambient temperatures, the first attenuator 11 and the second attenuator 12 can be used to ensure that the total gain Y2 of the link where amplifier 13 is located is always maintained at 20dB, and X2 is always maintained at 10.

[0087] Of course, the above calculation data are only examples. Other gain data obtained without departing from the above circuit connection method are all within the protection of this application.

[0088] Table 1

[0089]

[0090] Table 2

[0091]

[0092] Alternatively, as shown in FIG4 , the integrated circuit includes two groups of attenuators, each group including a first attenuator 11 and a second attenuator 12. The plurality of first transistors and second transistors in one group of attenuators are connected in parallel and coupled between the input side of an amplifier 13 and the ground terminal. The plurality of first transistors and second transistors in the other group of attenuators are connected in parallel and coupled between the output side of the amplifier 13 and the ground terminal. After being attenuated by the first attenuator 11 and the second attenuator 12 in one group, the RF signal is input to the amplifier 13. After being amplified by the amplifier 13, it is attenuated by the first attenuator 11 and the second attenuator 12 in the other group of attenuators and output from the output terminal OUT.

[0093] For the coupling relationship between the plurality of first transistors, the second transistors, and the amplifier 13 shown in FIG4 , as an example, in combination with Tables 3 and 4, taking the example of the gain of the amplifier 13 changing due to different ambient temperatures, and the first attenuator 11 and the second attenuator 12 adjusting the total gain of the link where the amplifier 13 is located under different ambient temperatures, the specific calculation process is as follows:

[0094] Assuming that the ambient temperature is room temperature, the gain Y1 of the amplifier 13 when working is 21 dB (X1=11.22); assuming that the ambient temperature is low, the gain Y1 of the amplifier 13 when working is 22 dB (X1=12.59), which is 1 dB higher than the original 21 dB (X1 increases by 1.37); assuming that the ambient temperature is high, the gain Y1 of the amplifier 13 when working is 20 dB (X1=10), which is 1 dB lower than the original 21 dB (X1 decreases by 1.22).

[0095] As previously mentioned, based on the positional relationship between mobile phone A and the base station, assume that the system requires amplifier 13 to have a variable gain range of 10dB to 20dB. When mobile phone A is close to the base station, the two first attenuators 11 consistently reduce amplifier 13's gain Y1 by 10dB. Alternatively, the total gain Y3 of the two first attenuators 11 is -10dB, and the total gain X3 of the two first attenuators 11 is 0.32. When mobile phone A is farther from the base station, the two first attenuators 11 consistently reduce amplifier 13's gain Y1 by 0dB. Alternatively, the total gain Y3 of the two first attenuators 11 is 0dB, and the total gain X3 of the two first attenuators 11 is 1. Here, Y3 = 201gX3.

[0096] Regardless of whether the distance between mobile phone A and the base station is relatively close, if the ambient temperature is normal, the two second attenuators 12 reduce the gain Y1 of amplifier 13 by 1 dB. In other words, the total gain Y4 of the two second attenuators 12 is -1 dB, and the total gain X4 of the two second attenuators 12 is 0.89. If the ambient temperature is low, the gain attenuation of amplifier 13 by the two second attenuators 12 is 2 dB. In other words, the total gain Y4 of the two second attenuators 12 is -2 dB, and the total gain X4 of the two second attenuators 12 is 0.79. If the ambient temperature is high, the two second attenuators 12 reduce or increase the gain X4 of amplifier 13 by 0 dB. In other words, the total gain Y4 of the two second attenuators 12 is 0 dB, and the total gain X4 of the two second attenuators 12 is 1. Here, Y4 = 201gX4.

[0097] In summary, when mobile phone A is close to the base station, if the ambient temperature is low, the total gain Y2 of the link where amplifier 13 is located is 22dB-10dB-2dB=10dB, X2=12.59*0.32*0.79≈3.16. If the ambient temperature is normal, the total gain Y2 of the link where amplifier 13 is located is 21dB-10dB-1dB=10dB, X2=11.22*0.32*0.89≈3.16. If the ambient temperature is high, the total gain Y2 of the link where amplifier 13 is located is 20dB-10dB-0dB=10dB, X2=10*0.32*1≈3.16. In this way, based on different ambient temperatures, the two first attenuators 11 and the two second attenuators 12 can be used to ensure that the total gain Y2 of the link where amplifier 13 is located is always maintained at 10dB, and X2 is always maintained at 3.16.

[0098] When mobile phone A is far from the base station, if the ambient temperature is low, the total gain Y2 of the link where amplifier 13 is located is 22dB-0dB-2dB=20dB, where X2=12.59*1*0.79≈10. If the ambient temperature is normal, the total gain Y2 of the link where amplifier 13 is located is 21dB-0dB-1dB=20dB, where X2=11.22*1*0.89≈10. If the ambient temperature is high, the total gain Y2 of the link where amplifier 13 is located is 20dB-0dB-0dB=20dB, where X2=10*1*1≈10. In this way, based on different ambient temperatures, the two first attenuators 11 and the two second attenuators 12 can be used to ensure that the total gain Y2 of the link where amplifier 13 is located is always maintained at 20dB, and X2 is always maintained at 10.

[0099] Of course, the above calculation data are only examples. Other gain data obtained without departing from the above circuit connection method are all within the protection of this application.

[0100] Table 3

[0101]

[0102] Table 4

[0103]

[0104] In some possible implementations, as shown in Figures 2a-3b, the embodiments of the present application do not limit the specific types and structures of the first attenuator 11 and the second attenuator 12. As long as the first attenuator 11 can achieve a large dynamic range adjustment of the RF signal, the attenuation of the RF signal by the second attenuator 12 can be dynamically adjusted according to external factors (for example, ambient temperature).

[0105] Optionally, the first attenuator 11 can be a digital step attenuator (DSA), and the second attenuator 12 can be a voltage variable attenuator (VVA). In addition, the multiple first transistors in the digital step attenuator and the second transistors in the voltage variable attenuator can be N-type transistors or P-type transistors. The multiple first transistors can all be N-type transistors or P-type transistors, or the multiple first transistors include N-type transistors and P-type transistors. The number of second transistors can be one or more. In the case of multiple second transistors, the multiple second transistors can all be N-type transistors or P-type transistors, or the multiple second transistors include N-type transistors and P-type transistors.

[0106] In some embodiments, as shown in Figures 5 and 6, the integrated circuit may further include a bias circuit 14, which is coupled to the gate of the second transistor. The bias circuit 14 can dynamically input an analog signal to the gate of the second transistor based on external factors, such as changes in ambient temperature, to adjust the impedance of the second transistor, so that the second attenuator 12 can achieve different degrees of conduction, thereby attenuating the radio frequency signal to different degrees. In addition, the first electrode of the second transistor is coupled to the input side or output side of the amplifier 13, and the second electrode of the second transistor is coupled to the ground terminal. The first electrode of the second transistor can be a source electrode, and the second electrode of the second transistor can be a drain electrode. Alternatively, the first electrode of the second transistor can be a drain electrode, and the second electrode of the second transistor can be a source electrode.

[0107] It should be noted that the aforementioned examples illustrate the case where there are one or two second attenuators 12. In the embodiment of the present application, the number of second attenuators 12 can be one or more. In the case where there are multiple second attenuators 12, the same bias circuit 14 can be used to control the multiple second attenuators 12. Alternatively, the bias circuit 14 can correspond one-to-one with the multiple second attenuators 12, with each bias circuit 14 controlling its corresponding second attenuator 12. Furthermore, in the case where the same bias circuit 14 controls the multiple second attenuators 12, the analog signal values ​​input by the same bias circuit 14 to the second transistors of the multiple second attenuators 12 can be the same or different.

[0108] The number of second transistors in each second attenuator 12 can be one or more. If a second attenuator 12 includes multiple second transistors, the same bias circuit 14 can be used to control the multiple second transistors in the second attenuator 12. Alternatively, a bias circuit 14 can correspond one-to-one with the multiple second transistors, with each bias circuit 14 controlling its corresponding second transistor. Furthermore, if the same bias circuit 14 controls the multiple second transistors, the analog signal values ​​input by the same bias circuit 14 to the multiple second transistors can be the same or different.

[0109] The analog signal inputted by the bias circuit 14 to the gate of the second transistor may be a voltage signal or a current signal. For the sake of convenience, the following description will take the analog signal inputted by the bias circuit 14 to the gate of the second transistor as an example.

[0110] Taking the change in the gain of the amplifier 13 caused by the ambient temperature as an example, the specific manner in which the bias circuit 14 controls the second attenuator 12 according to the ambient temperature is described in detail below.

[0111] In one possible implementation, as shown in FIG5 , the analog signal input by the bias circuit 14 to the gate of the second transistor can change as its own temperature changes. In this case, the ambient temperature can be the temperature of the bias circuit 14. In this way, the bias circuit 14 can input a dynamic analog signal to the gate of the second transistor in real time according to its own real-time temperature. Under the control of the analog signal, the impedance of the second transistor can change with the analog signal, and then the degree of conduction of the second transistor changes, so that the attenuation of the RF signal decreases as the ambient temperature increases and increases as the ambient temperature decreases, thereby compensating for the gain change of the amplifier 13 due to the ambient temperature change.

[0112] In another possible implementation, as shown in FIG6 , the integrated circuit may further include a temperature detection circuit 15 coupled to a bias circuit 14. The temperature detection circuit 15 is configured to detect the ambient temperature and transmit the ambient temperature information to the bias circuit 14. The bias circuit 14 is configured to transmit an analog signal to the gate of the second transistor based on the received ambient temperature information. Under the control of the analog signal, the impedance of the second transistor may change with the analog signal, thereby changing the degree of conduction of the second transistor. This causes the attenuation of the RF signal to decrease with increasing ambient temperature and increase with decreasing ambient temperature, thereby compensating for changes in the gain of the amplifier 13 due to changes in ambient temperature.

[0113] In this implementation, in one possible scenario, the temperature detection circuit 15 can send real-time ambient temperature information to the bias circuit 14; after receiving the real-time ambient temperature information, the bias circuit 14 can input a real-time analog signal to the second attenuator 12 to control the second attenuator 12 to adjust the attenuation of the RF signal in real time based on the ambient temperature. In another possible scenario, the temperature detection circuit 15 can send ambient temperature information to the bias circuit 14 once at regular intervals; after receiving the ambient temperature information at regular intervals, the bias circuit 14 can input an analog signal to the second attenuator 12 to control the second attenuator 12 to adjust the attenuation of the RF signal based on the ambient temperature within a certain period.

[0114] It should be noted that the embodiment of the present application does not limit the specific length of the certain time period. For example, the certain time period may be 20 ms or 1 s. Furthermore, the ambient temperature measured by the temperature detection circuit 15 may be the ambient temperature around the temperature detection circuit 15 or the ambient temperature around the amplifier 13.

[0115] Considering that the entire integrated circuit is very small if it is integrated onto a single chip, the ambient temperature around any component within the integrated circuit is similar to the ambient temperature around other components within the integrated circuit. Therefore, regardless of whether the ambient temperature represents the temperature of bias circuit 14 itself, the ambient temperature around temperature detection circuit 15, or the temperature of other components within the integrated circuit, the ambient temperature is the same as the ambient temperature around amplifier 13.

[0116] Of course, other methods may also be used to enable the bias circuit 14 to input an analog signal to the gate of the second transistor according to the ambient temperature, so that the attenuation of the RF signal by the second transistor decreases as the ambient temperature increases under the control of the analog signal.

[0117] In some embodiments, as shown in Figures 5 and 6, the integrated circuit may further include a control circuit 16. The control circuit 16 may be coupled to the gates of the plurality of first transistors and configured to input digital signals to the gates of the plurality of first transistors to control the number of on and off states of the plurality of first transistors. Furthermore, the first electrodes of the plurality of first transistors are coupled to the input side or the output side of the amplifier 13, and the second electrodes of the plurality of first transistors are coupled to the ground terminal. The first electrodes of the plurality of first transistors may be sources, and the second electrodes of the plurality of first transistors may be drains. Alternatively, the first electrodes of the plurality of first transistors may be drains, and the second electrodes of the plurality of first transistors may be sources.

[0118] It should be noted that there can be one or more first attenuators 11, and the same control circuit 16 can be used to control multiple first transistors in at least one first attenuator 11. A control circuit 16 can also correspond one-to-one to multiple first transistors, with each control circuit 16 controlling its corresponding first transistor. Furthermore, when the same control circuit 16 controls multiple first transistors, the digital signal values ​​input by the same control circuit 16 to the gates of the multiple first transistors can be the same or different.

[0119] Furthermore, the digital signal inputted by the control circuit 16 to the gates of the plurality of first transistors may be a voltage signal or a current signal. For ease of explanation, the following description will take the analog signal inputted by the control circuit 16 to the gates of the plurality of first transistors as an example.

[0120] The working principles of the plurality of first transistors and second transistors will be described in detail below in conjunction with the bias circuit 14 and the control circuit 16 .

[0121] Taking the case where multiple first transistors are all N-type transistors as an example, if the control circuit 16 inputs a high level (e.g., "1") to the gates of at least some of the first transistors, at least some of the first transistors are turned on. During the transmission of the RF signal in the amplifier circuit, part of the RF signal can also be released to ground through at least some of the turned-on first transistors. That is, at least some of the turned-on first transistors divide the voltage of the RF signal to attenuate the magnitude of the RF signal. Conversely, if the control circuit 16 inputs a low level (e.g., "0") to the gates of at least some of the first transistors, at least some of the first transistors are turned off, and the turned-off at least some of the first transistors cannot attenuate the magnitude of the RF signal.

[0122] Taking the case where multiple first transistors are all P-type transistors as an example, if the control circuit 16 inputs a low level (e.g., "0") to the gates of at least some of the first transistors, at least some of the first transistors are turned on, and during the transmission of the RF signal in the amplifier circuit, part of the RF signal can also be released to ground through at least some of the turned-on first transistors. That is, at least some of the turned-on first transistors divide the voltage of the RF signal to achieve attenuation of the magnitude of the RF signal. Conversely, if the control circuit 16 inputs a high level (e.g., "1") to the gates of at least some of the first transistors, at least some of the first transistors are turned off, and the turned-off at least some of the first transistors cannot attenuate the magnitude of the RF signal.

[0123] Taking the second transistor as an N-type transistor as an example, if the analog signal input by the bias circuit 14 to the gate of the second transistor is smaller, the impedance of the second transistor is larger, and the second transistor is less completely turned on. The smaller the portion of the RF signal released to ground through the second transistor, the smaller the attenuation of the RF signal by the second attenuator 12, and the greater the gain of the link where the amplifier 13 is located. Conversely, if the analog signal input by the bias circuit 14 to the gate of the second transistor is larger, the impedance of the second transistor is smaller, and the second transistor is more completely turned on. The larger the portion of the RF signal released to ground through the second transistor, the greater the attenuation of the RF signal by the second attenuator 12, and the smaller the gain of the link where the amplifier 13 is located.

[0124] Taking the second transistor as a P-type transistor as an example, if the bias circuit 14 inputs a larger analog signal to the gate of the second transistor, the impedance of the second transistor will be larger, and the second transistor will be less completely turned on. The smaller the portion of the RF signal released to ground through the second transistor, the smaller the attenuation of the RF signal by the second attenuator 12, and the greater the gain of the link where the amplifier 13 is located. Conversely, if the bias circuit 14 inputs a smaller analog signal to the gate of the second transistor, the smaller the impedance of the second transistor, and the second transistor will be more completely turned on. The larger the portion of the RF signal released to ground through the second transistor, the greater the attenuation of the RF signal by the second attenuator 12, and the smaller the gain of the link where the amplifier 13 is located.

[0125] Specifically, the gain G of the amplifier 13 is related to the digital signal code input to the plurality of first transistors and the analog signal V input to the second transistor, and can be expressed by Formula 1: G(code,V). As shown in FIG7a , if the second transistor is an N-type transistor, the smaller the analog signal received by the gate of the second transistor, the greater the gain of the amplifier 13, which can be expressed by Formula 2: As shown in FIG7b , if the second transistor is a P-type transistor, the greater the analog signal received by the gate of the second transistor, the greater the gain of the amplifier 13, which can be expressed by Formula 3: To express.

[0126] As the ambient temperature T increases, the attenuation of the radio frequency signal by the second attenuator 12 decreases, so that the gain of the amplifier 13 increases as the ambient temperature T increases. This can be expressed by Formula 4: To express.

[0127] Furthermore, as shown in FIG8 a and FIG8 b , a relationship curve between the analog signal V and the ambient temperature T may be set.

[0128] As shown in FIG8a , taking the second transistor as an N-type transistor as an example, the higher the ambient temperature T, the smaller the analog signal V received by the gate of the second transistor, and the smaller the attenuation of the RF signal by the second transistor. This can be expressed by Formula 5: V = a-bT, (b>0), where a and b are constants.

[0129] As shown in FIG8 , taking the second transistor as a P-type transistor as an example, the higher the ambient temperature T, the larger the analog signal V received by the gate of the second transistor, and the smaller the attenuation of the RF signal by the second transistor. This can be expressed by Formula 6: V = a + bT, (b > 0), where a and b are constants.

[0130] In this way, if the second transistor is an N-type transistor, the relationship between the ambient temperature T, the analog signal input to the gate of the second transistor, and the attenuation of the RF signal by the second transistor can be determined based on the parameters of the second transistor according to Formulas 1, 2, 4, and 5, thereby adjusting the gain of the link where the amplifier 13 is located according to the ambient temperature T.

[0131] For example, Equation 5 can be expressed as V = 1.44 - 0.012T. When the ambient temperature is -30°C, the analog signal input from bias circuit 14 to the gate of the second transistor can be 1.8V; when the ambient temperature is 120°C, the analog signal input from bias circuit 14 to the gate of the second transistor can be 0V. The size of the second transistor is adjusted so that when V = 0V, the gain of second attenuator 12 is 0dB; when V = 1.8V, the gain of second attenuator 12 is -2dB. This way, the temperature drift compensation range of second attenuator 12 is 2dB, which exactly compensates for the temperature drift of amplifier 13 and keeps the total gain of the link to which amplifier 13 belongs constant with temperature.

[0132] If the second transistor is a P-type transistor, the relationship between the ambient temperature T, the analog signal input to the gate of the second transistor, and the attenuation of the RF signal by the second transistor can be determined based on the parameters of the second transistor according to Formulas 1, 3, 4, and 6, thereby adjusting the gain of the link in which the amplifier 13 is located according to the ambient temperature T.

[0133] For example, Equation 6 can be expressed as V = 0.36 + 0.012T. When the ambient temperature is -30°C, the analog signal input from bias circuit 14 to the gate of the second transistor can be 0V; when the ambient temperature is 120°C, the analog signal input from bias circuit 14 to the gate of the second transistor can be 1.8V. The size of the second transistor is adjusted so that when V = 0V, the gain of second attenuator 12 is -2dB; when V = 1.8V, the gain of second attenuator 12 is 0dB. This way, the temperature drift compensation range of second attenuator 12 is 2dB, which exactly compensates for the temperature drift of amplifier 13 and keeps the total gain of the link to which amplifier 13 belongs constant with temperature.

[0134] In some possible implementations, the active layers of the multiple first transistors can have different sizes, so that different degrees of attenuation can be achieved by controlling the number of on- and off-states of the multiple first transistors of different sizes. If there is only one second transistor, the integrated circuit layout area can also be saved.

[0135] Furthermore, as shown in Figures 9a and 9b, in some embodiments, the characteristic impedance of the RF signal transmission line 17 can be adjusted to achieve good matching between the amplifier 13 and the first attenuator 11 and the second attenuator 12. The RF signal transmission line 17 is coupled between the amplifier 13 and the output terminal OUT. The RF signal transmission line 17 can be a microstrip line (Figure 10a), a coplanar waveguide, or a capacitor-inductor-capacitor (CLC) lumped transmission line (Figure 10b).

[0136] As shown in Figure 10a, a microstrip line includes a routing layer 21, an insulating layer 22, and a ground layer 23, stacked in sequence. RF signals can propagate along routing layer 21 and return to ground layer 23. As shown in Figure 10b, a CLC lumped transmission line includes an inductor L, a capacitor C coupled between the inductor input and ground, and a capacitor C coupled between the inductor output and ground. RF signals can propagate along the branch containing inductor L and return to ground through capacitor C.

[0137] In some possible implementations, as shown in FIG9a , the RF signal transmission line 17 may be coupled between the output side and the output terminal OUT of the amplifier 13 . Alternatively, as shown in FIG2b , the RF signal transmission line 17 may be coupled between the input terminal IN and the input side of the amplifier 13 .

[0138] In some possible implementations, as shown in Figures 2a and 2b, the first electrodes of the plurality of first transistors and the second transistors may be coupled to the input side of the RF signal transmission line 17. Alternatively, as shown in Figure 9a, the first electrodes of the plurality of first transistors and the second transistors may be coupled to the output side of the RF signal transmission line 17.

[0139] Alternatively, as shown in FIG9b , both the input and output sides of the RF signal transmission line 17 are coupled to the first attenuator 11 and the second attenuator 12. For example, in an amplifier circuit comprising two groups of attenuators, the first electrodes of the plurality of first transistors and second transistors in one group of attenuators are coupled to the input side of the RF signal transmission line 17, while the first electrodes of the plurality of first transistors and second transistors in the other group of attenuators are coupled to the output side of the RF signal transmission line 17.

[0140] Compared with the coupling of the first attenuator 11 and the second attenuator 12 on one side of the RF signal transmission line 17 shown in Figure 9a, the coupling of the first attenuator 11 and the second attenuator 12 on both the input side and the output side of the RF signal transmission line 17 shown in Figure 9b can make the two sides of the RF signal transmission line 17 more symmetrical, improve the port impedance of the mutual coupling between the amplifier 13 and the first attenuator 11 and the second attenuator 12, and optimize the scattering parameter (S parameter).

[0141] In addition, when the input and output sides of the RF signal transmission line 17 are both coupled with the first attenuator 11 or the second attenuator 12, Figure 11 shows another series connection scheme. Specifically, the link where the amplifier 13 is located includes a first group of attenuators 111 and a second group of attenuators 121 connected in series. The first group of attenuators 111 includes two first attenuators 11 connected in parallel, and the RF signal transmission line 17 is coupled between the two first attenuators 11. The second group of attenuators 121 includes two second attenuators 12 connected in parallel, and the RF signal transmission line 17 is coupled between the two second attenuators 12. That is, the two first attenuators 11 and the two second attenuators 12 require two RF signal transmission lines 17. The layout area occupied by the RF signal transmission line 17 is relatively large. If there are multiple first attenuators 11 and second attenuators 12 in the integrated circuit, the layout area occupied by the integrated circuit will be greatly increased.

[0142] In contrast, in the solution shown in FIG9b of the present application, although the link where the amplifier 13 is located includes an RF signal transmission line 17, the RF signal transmission line 17 is coupled between a group of multiple first and second transistors connected in parallel and another group of multiple first and second transistors connected in parallel, thereby achieving the presence of a first attenuator 11 and a second attenuator 12 on both sides of the RF signal transmission line 17. Compared to the solution shown in FIG11, the present application can optimize the scattering parameters while reducing the number of first attenuators 11 and second attenuators 12 by half, while keeping the number of first attenuators 11 and second attenuators 12 unchanged. This greatly reduces the layout area occupied by the RF signal transmission line 17, thereby reducing the layout area occupied by the integrated circuit.

[0143] An embodiment of the present application also provides a control method for an integrated circuit, which may be the integrated circuit described in any of the preceding embodiments. The integrated circuit includes an amplifier circuit. The amplifier circuit includes an input terminal IN, an output terminal OUT, a first attenuator 11, a second attenuator 12, an amplifier 13 coupled between the input terminal IN and the output terminal OUT, and a radio frequency signal transmission line 17. The radio frequency signal transmission line 17 is coupled to the amplifier 13. The first attenuator 11 includes a plurality of first transistors, and the second attenuator 12 includes a second transistor. The plurality of first transistors and the second transistor are connected in parallel.

[0144] As shown in FIG12 , the control method of the integrated circuit may include the following steps:

[0145] S110 , using an amplifier circuit to amplify the radio frequency signal coupled to the input terminal IN and output the amplified signal through the output terminal OUT.

[0146] S120 , under the control of the digital signal, adjusting the attenuation of the radio frequency signal by controlling the number of on and off switches of the plurality of first transistors.

[0147] In some possible implementations, the embodiments of the present application do not limit the specific type and structure of the first attenuator 11, as long as the first attenuator 11 can adjust the radio frequency signal in a large dynamic range.

[0148] Optionally, the first attenuator 11 may be a DSA. Furthermore, the plurality of first transistors in the digital step attenuator may be N-type transistors or P-type transistors. The plurality of first transistors may all be N-type transistors or P-type transistors, or the plurality of first transistors may include N-type transistors and P-type transistors.

[0149] In one possible scenario, as shown in Figures 5 and 6, the integrated circuit may further include a control circuit 16, which may be coupled to the gates of the plurality of first transistors and configured to input digital signals to the gates of the plurality of first transistors to control the number of on-off states of the plurality of first transistors. Furthermore, the first electrodes of the plurality of first transistors are coupled to the input side or the output side of the amplifier 13, and the second electrodes of the plurality of first transistors are coupled to the ground terminal. The first electrodes of the plurality of first transistors may be sources, and the second electrodes of the plurality of first transistors may be drains. Alternatively, the first electrodes of the plurality of first transistors may be drains, and the second electrodes of the plurality of first transistors may be sources.

[0150] It should be noted that there can be one or more first attenuators 11, and the same control circuit 16 can be used to control multiple first transistors in at least one first attenuator 11. A control circuit 16 can also correspond one-to-one to multiple first transistors, with each control circuit 16 controlling its corresponding first transistor. Furthermore, when the same control circuit 16 controls multiple first transistors, the digital signal values ​​input by the same control circuit 16 to the gates of the multiple first transistors can be the same or different.

[0151] Furthermore, the digital signal inputted by the control circuit 16 to the gates of the plurality of first transistors may be a voltage signal or a current signal. For ease of explanation, the following description will take the analog signal inputted by the control circuit 16 to the gates of the plurality of first transistors as an example.

[0152] The working principles of the plurality of first transistors will be described in detail below in conjunction with the control circuit 16 .

[0153] Taking the case where multiple first transistors are all N-type transistors as an example, if the control circuit 16 inputs a high level (e.g., "1") to the gates of at least some of the first transistors, at least some of the first transistors are turned on. During the transmission of the RF signal in the amplifier circuit, part of the RF signal can also be released to ground through at least some of the turned-on first transistors. That is, at least some of the turned-on first transistors divide the voltage of the RF signal to attenuate the magnitude of the RF signal. Conversely, if the control circuit 16 inputs a low level (e.g., "0") to the gates of at least some of the first transistors, at least some of the first transistors are turned off, and the turned-off at least some of the first transistors cannot attenuate the magnitude of the RF signal.

[0154] Taking the case where multiple first transistors are all P-type transistors as an example, if the control circuit 16 inputs a low level (e.g., "0") to the gates of at least some of the first transistors, at least some of the first transistors are turned on, and during the transmission of the RF signal in the amplifier circuit, part of the RF signal can also be released to ground through at least some of the turned-on first transistors. That is, at least some of the turned-on first transistors divide the voltage of the RF signal to achieve attenuation of the magnitude of the RF signal. Conversely, if the control circuit 16 inputs a high level (e.g., "1") to the gates of at least some of the first transistors, at least some of the first transistors are turned off, and the turned-off at least some of the first transistors cannot attenuate the magnitude of the RF signal.

[0155] S130 , under the control of the analog signal, adjusting the attenuation of the radio frequency signal by adjusting the impedance of the second transistor.

[0156] When external factors affect the gain of the amplifier 13, causing the gain of the amplifier 13 to change, the first attenuator 11 and the second attenuator 12 can both be operated, and the number of on-off switches of the multiple first transistors can be controlled by adjusting the size of the digital signal input to the multiple first transistors, thereby adjusting the size of the RF signal attenuated by the first attenuator 11. For example, if there are five first transistors, three first transistors can be turned on and two first transistors can be turned off under the control of the digital signal to adjust the size of the RF signal attenuated by the first attenuator 11. In addition, by adjusting the size of the analog signal input to the second transistor, the impedance of the second transistor can be adjusted, thereby adjusting the size of the RF signal attenuated by the second attenuator 12. In this way, the gain of the link where the amplifier 13 is located can be jointly adjusted by the first attenuator 11 and the second attenuator 12.

[0157] Specifically, taking the example of amplifier 13 gain changes due to ambient temperature, first attenuator 11 can be used to adjust the RF signal over a wide dynamic range. Second, under the control of an analog signal, second attenuator 12 can reduce the RF signal attenuation as the ambient temperature increases, contrary to the amplifier 13 characteristic of "gain decreasing with increasing temperature." Therefore, in addition to adjusting the gain of amplifier 13 using first attenuator 11, second attenuator 12 can also be used to adjust the RF signal attenuation based on ambient temperature to compensate for the gain of amplifier 13. Consequently, the first and second attenuators 11, 12 can be used to jointly adjust the gain of the link to which amplifier 13 belongs.

[0158] Of course, if the gain of the amplifier 13 changes due to other reasons, the solution of the present application can also be applied, and no further details will be given here.

[0159] In some possible implementations, the embodiments of the present application do not limit the positional relationship between the multiple first transistors and the second transistors and the amplifier 13. As long as the multiple first transistors and the second transistors are connected in parallel and the multiple first transistors and the second transistors are coupled to the ground terminal, the attenuation of the RF signal can be adjusted by releasing part of the RF signal to the ground terminal.

[0160] Optionally, as shown in FIG2a , a plurality of first and second transistors may be coupled between the output side of the amplifier 13 and the ground terminal. The RF signal is attenuated by the first attenuator 11 and the second attenuator 12 before being input to the amplifier 13. After being amplified by the amplifier 13, the signal is output from the output terminal OUT. Alternatively, as shown in FIG2b , a plurality of first and second transistors may be coupled between the input side of the amplifier 13 and the ground terminal. After being amplified by the amplifier 13, the RF signal is input to the first attenuator 11 and the second attenuator 12. After passing through the first attenuator 11 and the second attenuator 12, the signal is output from the output terminal OUT.

[0161] Alternatively, as shown in FIG3a , a plurality of first transistors are coupled between the input side of amplifier 13 and the ground terminal, and a second transistor is coupled between the output side of amplifier 13 and the ground terminal. The RF signal is attenuated by first attenuator 11 and then input to amplifier 13. After being amplified by amplifier 13, the signal is attenuated by second attenuator 12 and then output from output terminal OUT. Alternatively, as shown in FIG3b , a plurality of first transistors are coupled between the output side of amplifier 13 and the ground terminal, and a second transistor is coupled between the input side of amplifier 13 and the ground terminal. The RF signal is attenuated by second attenuator 12 and then input to amplifier 13. After being amplified by amplifier 13, the signal is attenuated by first attenuator 11 and then output from output terminal OUT.

[0162] For the coupling relationship between the multiple first transistors, the second transistors, and the amplifier 13 shown in FIG2a to FIG3b, as an example, in combination with Table 1 and Table 2, taking the example of the gain of the amplifier 13 changing due to different ambient temperatures, and the first attenuator 11 and the second attenuator 12 adjusting the total gain of the link where the amplifier 13 is located under different ambient temperatures, the specific calculation process is as follows:

[0163] Assuming that the ambient temperature is room temperature, the gain Y1 of the amplifier 13 when working is 21 dB (X1=11.22); assuming that the ambient temperature is low, the gain Y1 of the amplifier 13 when working is 22 dB (X1=12.59), which is 1 dB higher than the original 21 dB (X1 increases by 1.37); assuming that the ambient temperature is high, the gain Y1 of the amplifier 13 when working is 20 dB (X1=10), which is 1 dB lower than the original 21 dB (X1 decreases by 1.22).

[0164] As previously mentioned, based on the positional relationship between mobile phone A and the base station, assume that the system requires amplifier 13 to have a variable gain range of 10dB to 20dB. When mobile phone A is close to the base station, first attenuator 11 consistently reduces amplifier 13's gain Y1 by 10dB. Alternatively, gain Y3 of first attenuator 11 is -10dB, and gain X3 of first attenuator 11 is 0.32. When mobile phone A is farther from the base station, first attenuator 11 consistently reduces amplifier 13's gain Y1 by 0dB. Alternatively, gain Y3 of first attenuator 11 is 0dB, and gain X3 of first attenuator 11 is 1. Here, Y3 = 201gX3.

[0165] Regardless of whether the distance between mobile phone A and the base station is relatively close, if the ambient temperature is normal, the second attenuator 12 reduces the gain Y1 of amplifier 13 by 1 dB. Alternatively, the gain Y4 of the second attenuator 12 is -1 dB, and the gain X4 of the second attenuator 12 is 0.89. If the ambient temperature is low, the gain attenuation of amplifier 13 by the second attenuator 12 is 2 dB. Alternatively, the gain Y4 of the second attenuator 12 is -2 dB, and the gain X4 of the second attenuator 12 is 0.79. If the ambient temperature is high, the second attenuator 12 reduces or increases the gain X4 of amplifier 13 by 0 dB. Alternatively, the gain Y4 of the second attenuator 12 is 0 dB, and the gain X4 of the second attenuator 12 is 1. Here, Y4 = 201gX4.

[0166] In summary, when mobile phone A is close to the base station, if the ambient temperature is low, the total gain Y2 of the link where amplifier 13 is located is 22dB-10dB-2dB=10dB, X2=12.59*0.32*0.79≈3.16. If the ambient temperature is normal, the total gain Y2 of the link where amplifier 13 is located is 21dB-10dB-1dB=10dB, X2=11.22*0.32*0.89≈3.16. If the ambient temperature is high, the total gain Y2 of the link where amplifier 13 is located is 20dB-10dB-0dB=10dB, X2=10*0.32*1≈3.16. In this way, based on different ambient temperatures, the first attenuator 11 and the second attenuator 12 can be used to ensure that the total gain Y2 of the link where amplifier 13 is located is always maintained at 10dB, and X2 is always maintained at 3.16.

[0167] When mobile phone A is far from the base station, if the ambient temperature is low, the total gain Y2 of the link where amplifier 13 is located is 22dB-0dB-2dB=20dB, where X2=12.59*1*0.79≈10. If the ambient temperature is normal, the total gain Y2 of the link where amplifier 13 is located is 21dB-0dB-1dB=20dB, where X2=11.22*1*0.89≈10. If the ambient temperature is high, the total gain Y2 of the link where amplifier 13 is located is 20dB-0dB-0dB=20dB, where X2=10*1*1≈10. In this way, based on different ambient temperatures, the first attenuator 11 and the second attenuator 12 can be used to ensure that the total gain Y2 of the link where amplifier 13 is located is always maintained at 20dB, and X2 is always maintained at 10.

[0168] Of course, the above calculation data are only examples. Other gain data obtained without departing from the above circuit connection method are all within the protection of this application.

[0169] Alternatively, as shown in FIG4 , the integrated circuit includes two groups of attenuators, each group including a first attenuator 11 and a second attenuator 12. The plurality of first transistors and second transistors in one group of attenuators are connected in parallel and coupled between the input side of an amplifier 13 and a ground terminal. The plurality of first transistors and second transistors in the other group of attenuators are connected in parallel and coupled between the output side of amplifier 13 and a ground terminal. After being attenuated by the first attenuators 11 and second attenuators 12 in one group, the RF signal is input to amplifier 13. After being amplified by amplifier 13, the RF signal is attenuated by the first attenuators 11 and second attenuators 12 in the other group and output from output terminal OUT.

[0170] For the coupling relationship between the plurality of first transistors, the second transistors, and the amplifier 13 shown in FIG4 , as an example, in combination with Tables 3 and 4, taking the example of the gain of the amplifier 13 changing due to different ambient temperatures, and the first attenuator 11 and the second attenuator 12 adjusting the total gain of the link where the amplifier 13 is located under different ambient temperatures, the specific calculation process is as follows:

[0171] Assuming that the ambient temperature is room temperature, the gain Y1 of the amplifier 13 when working is 21 dB (X1=11.22); assuming that the ambient temperature is low, the gain Y1 of the amplifier 13 when working is 22 dB (X1=12.59), which is 1 dB higher than the original 21 dB (X1 increases by 1.37); assuming that the ambient temperature is high, the gain Y1 of the amplifier 13 when working is 20 dB (X1=10), which is 1 dB lower than the original 21 dB (X1 decreases by 1.22).

[0172] As previously mentioned, based on the positional relationship between mobile phone A and the base station, assume that the system requires amplifier 13 to have a variable gain range of 10dB to 20dB. When mobile phone A is close to the base station, the two first attenuators 11 consistently reduce amplifier 13's gain Y1 by 10dB. Alternatively, the total gain Y3 of the two first attenuators 11 is -10dB, and the total gain X3 of the two first attenuators 11 is 0.32. When mobile phone A is farther from the base station, the two first attenuators 11 consistently reduce amplifier 13's gain Y1 by 0dB. Alternatively, the total gain Y3 of the two first attenuators 11 is 0dB, and the total gain X3 of the two first attenuators 11 is 1. Here, Y3 = 201gX3.

[0173] Regardless of whether the distance between mobile phone A and the base station is relatively close, if the ambient temperature is normal, the two second attenuators 12 reduce the gain Y1 of amplifier 13 by 1 dB. In other words, the total gain Y4 of the two second attenuators 12 is -1 dB, and the total gain X4 of the two second attenuators 12 is 0.89. If the ambient temperature is low, the gain attenuation of amplifier 13 by the two second attenuators 12 is 2 dB. In other words, the total gain Y4 of the two second attenuators 12 is -2 dB, and the total gain X4 of the two second attenuators 12 is 0.79. If the ambient temperature is high, the two second attenuators 12 reduce or increase the gain X4 of amplifier 13 by 0 dB. In other words, the total gain Y4 of the two second attenuators 12 is 0 dB, and the total gain X4 of the two second attenuators 12 is 1. Here, Y4 = 201gX4.

[0174] In summary, when mobile phone A is close to the base station, if the ambient temperature is low, the total gain Y2 of the link where amplifier 13 is located is 22dB-10dB-2dB=10dB, X2=12.59*0.32*0.79≈3.16. If the ambient temperature is normal, the total gain Y2 of the link where amplifier 13 is located is 21dB-10dB-1dB=10dB, X2=11.22*0.32*0.89≈3.16. If the ambient temperature is high, the total gain Y2 of the link where amplifier 13 is located is 20dB-10dB-0dB=10dB, X2=10*0.32*1≈3.16. In this way, based on different ambient temperatures, the two first attenuators 11 and the two second attenuators 12 can be used to ensure that the total gain Y2 of the link where amplifier 13 is located is always maintained at 10dB, and X2 is always maintained at 3.16.

[0175] When mobile phone A is far from the base station, if the ambient temperature is low, the total gain Y2 of the link where amplifier 13 is located is 22dB-0dB-2dB=20dB, where X2=12.59*1*0.79≈10. If the ambient temperature is normal, the total gain Y2 of the link where amplifier 13 is located is 21dB-0dB-1dB=20dB, where X2=11.22*1*0.89≈10. If the ambient temperature is high, the total gain Y2 of the link where amplifier 13 is located is 20dB-0dB-0dB=20dB, where X2=10*1*1≈10. In this way, based on different ambient temperatures, the two first attenuators 11 and the two second attenuators 12 can be used to ensure that the total gain Y2 of the link where amplifier 13 is located is always maintained at 20dB, and X2 is always maintained at 10.

[0176] Of course, the above calculation data are only examples. Other gain data obtained without departing from the above circuit connection method are all within the protection of this application.

[0177] In some possible implementations, the embodiments of the present application do not limit the specific type and structure of the second attenuator 12, as long as the attenuation of the RF signal by the second attenuator 12 can be dynamically adjusted according to external factors (for example, ambient temperature).

[0178] Optionally, the second attenuator 12 may be a VVA. The second transistor in the voltage variable attenuator may be an N-type transistor or a P-type transistor. The number of second transistors may be one or more. When there are multiple second transistors, the multiple second transistors may all be N-type transistors or P-type transistors, or the multiple second transistors may include N-type transistors and P-type transistors.

[0179] In some possible implementations, as shown in Figures 5 and 6, the integrated circuit may further include a bias circuit 14, which is coupled to the gate of the second transistor. The bias circuit 14 may dynamically input an analog signal to the gate of the second transistor based on external factors, such as changes in ambient temperature, to adjust the impedance of the second transistor, so that the second attenuator 12 achieves different degrees of conduction, thereby attenuating the radio frequency signal to different degrees. In addition, the first electrode of the second transistor is coupled to the input side or output side of the amplifier 13, and the second electrode of the second transistor is coupled to the ground terminal. The first electrode of the second transistor may be a source electrode, and the second electrode of the second transistor may be a drain electrode. Alternatively, the first electrode of the second transistor may be a drain electrode, and the second electrode of the second transistor may be a source electrode.

[0180] It should be noted that the aforementioned examples illustrate the case where there are one or two second attenuators 12. In the embodiment of the present application, the number of second attenuators 12 can be one or more. In the case where there are multiple second attenuators 12, the same bias circuit 14 can be used to control the multiple second attenuators 12. Alternatively, the bias circuit 14 can correspond one-to-one with the multiple second attenuators 12, with each bias circuit 14 controlling its corresponding second attenuator 12. Furthermore, when the same bias circuit 14 controls the multiple second attenuators 12, the analog signal values ​​input by the same bias circuit 14 to the second transistors of the multiple second attenuators 12 can be the same or different.

[0181] The number of second transistors in each second attenuator 12 can be one or more. If a second attenuator 12 includes multiple second transistors, the same bias circuit 14 can be used to control the multiple second transistors in the second attenuator 12. Alternatively, a bias circuit 14 can correspond one-to-one with the multiple second transistors, with each bias circuit 14 controlling its corresponding second transistor. Furthermore, if the same bias circuit 14 controls the multiple second transistors, the analog signal values ​​input by the same bias circuit 14 to the multiple second transistors can be the same or different.

[0182] Furthermore, the analog signal inputted by the bias circuit 14 to the gate of the second transistor may be a voltage signal or a current signal. For convenience of description, the following description will take the analog signal inputted by the bias circuit 14 to the gate of the second transistor as an example.

[0183] Taking the change in the gain of the amplifier 13 caused by the ambient temperature as an example, the specific manner in which the bias circuit 14 controls the second attenuator 12 according to the ambient temperature is described in detail below.

[0184] In one possible implementation, as shown in FIG5 , the analog signal input by the bias circuit 14 to the gate of the second transistor can change as its own temperature changes. In this case, the ambient temperature can be the temperature of the bias circuit 14. In this way, the bias circuit 14 can input a dynamic analog signal to the gate of the second transistor in real time according to its own real-time temperature. Under the control of the analog signal, the impedance of the second transistor can change with the analog signal, and then the degree of conduction of the second transistor changes, so that the attenuation of the RF signal decreases as the ambient temperature increases and increases as the ambient temperature decreases, thereby compensating for the gain change of the amplifier 13 due to the ambient temperature change.

[0185] In another possible implementation, as shown in FIG6 , the integrated circuit may further include a temperature detection circuit 15 coupled to a bias circuit 14. The temperature detection circuit 15 is configured to detect the ambient temperature and transmit the ambient temperature information to the bias circuit 14. The bias circuit 14 is configured to transmit an analog signal to the gate of the second transistor based on the received ambient temperature information. Under the control of the analog signal, the impedance of the second transistor may change with the analog signal, thereby changing the degree of conduction of the second transistor. This causes the attenuation of the RF signal to decrease with increasing ambient temperature and increase with decreasing ambient temperature, thereby compensating for changes in the gain of the amplifier 13 due to changes in ambient temperature.

[0186] In this implementation, in one possible scenario, the temperature detection circuit 15 can send real-time ambient temperature information to the bias circuit 14; after receiving the real-time ambient temperature information, the bias circuit 14 can input a real-time analog signal to the second attenuator 12 to control the second attenuator 12 to adjust the attenuation of the RF signal in real time based on the ambient temperature. In another possible scenario, the temperature detection circuit 15 can send ambient temperature information to the bias circuit 14 once at regular intervals; after receiving the ambient temperature information at regular intervals, the bias circuit 14 can input an analog signal to the second attenuator 12 to control the second attenuator 12 to adjust the attenuation of the RF signal based on the ambient temperature within a certain period.

[0187] It should be noted that the embodiment of the present application does not limit the specific length of the certain time period. For example, the certain time period may be 20 ms or 1 s. Furthermore, the ambient temperature measured by the temperature detection circuit 15 may be the ambient temperature around the temperature detection circuit 15 or the ambient temperature around the amplifier 13.

[0188] Considering that the entire integrated circuit is very small if it is integrated onto a single chip, the ambient temperature around any component within the integrated circuit is similar to the ambient temperature around other components within the integrated circuit. Therefore, regardless of whether the ambient temperature represents the temperature of bias circuit 14 itself, the ambient temperature around temperature detection circuit 15, or the temperature of other components within the integrated circuit, the ambient temperature is the same as the ambient temperature around amplifier 13.

[0189] Of course, other methods may also be used to enable the bias circuit 14 to input an analog signal to the gate of the second transistor according to the ambient temperature, so that the attenuation of the RF signal by the second transistor decreases as the ambient temperature increases under the control of the analog signal.

[0190] The working principle of the second transistor will be described in detail below in conjunction with the bias circuit 14 .

[0191] Taking the second transistor as an N-type transistor as an example, if the analog signal input by the bias circuit 14 to the gate of the second transistor is smaller, the impedance of the second transistor is larger, and the second transistor is less completely turned on. The smaller the portion of the RF signal released to ground through the second transistor, the smaller the attenuation of the RF signal by the second attenuator 12, and the greater the gain of the link where the amplifier 13 is located. Conversely, if the analog signal input by the bias circuit 14 to the gate of the second transistor is larger, the impedance of the second transistor is smaller, and the second transistor is more completely turned on. The larger the portion of the RF signal released to ground through the second transistor, the greater the attenuation of the RF signal by the second attenuator 12, and the smaller the gain of the link where the amplifier 13 is located.

[0192] Taking the second transistor as a P-type transistor as an example, if the bias circuit 14 inputs a larger analog signal to the gate of the second transistor, the impedance of the second transistor will be larger, and the second transistor will be less completely turned on. The smaller the portion of the RF signal released to ground through the second transistor, the smaller the attenuation of the RF signal by the second attenuator 12, and the greater the gain of the link where the amplifier 13 is located. Conversely, if the bias circuit 14 inputs a smaller analog signal to the gate of the second transistor, the smaller the impedance of the second transistor, and the second transistor will be more completely turned on. The larger the portion of the RF signal released to ground through the second transistor, the greater the attenuation of the RF signal by the second attenuator 12, and the smaller the gain of the link where the amplifier 13 is located.

[0193] Specifically, the gain G of the amplifier 13 is related to the digital signal code input to the plurality of first transistors and the analog signal V input to the second transistor, and can be expressed by Formula 1: G(code,V). As shown in FIG7a , if the second transistor is an N-type transistor, the smaller the analog signal received by the gate of the second transistor, the greater the gain of the amplifier 13, which can be expressed by Formula 2: As shown in FIG7b , if the second transistor is a P-type transistor, the greater the analog signal received by the gate of the second transistor, the greater the gain of the amplifier 13, which can be expressed by Formula 3: To express.

[0194] As the ambient temperature T increases, the attenuation of the radio frequency signal by the second attenuator 12 decreases, so that the gain of the amplifier 13 increases as the ambient temperature T increases. This can be expressed by Formula 4: To express.

[0195] Furthermore, as shown in FIG8 a and FIG8 b , a relationship curve between the analog signal V and the ambient temperature T may be set.

[0196] As shown in FIG8a , taking the second transistor as an N-type transistor as an example, the higher the ambient temperature T, the smaller the analog signal V received by the gate of the second transistor, and the smaller the attenuation of the RF signal by the second transistor. This can be expressed by Formula 5: V = a-bT, (b>0), where a and b are constants.

[0197] As shown in FIG8 , taking the second transistor as a P-type transistor as an example, the higher the ambient temperature T, the larger the analog signal V received by the gate of the second transistor, and the smaller the attenuation of the RF signal by the second transistor. This can be expressed by Formula 6: V = a + bT, (b > 0), where a and b are constants.

[0198] In this way, if the second transistor is an N-type transistor, the relationship between the ambient temperature T, the analog signal input to the gate of the second transistor, and the attenuation of the RF signal by the second transistor can be determined based on the parameters of the second transistor according to Formulas 1, 2, 4, and 5, thereby adjusting the gain of the link where the amplifier 13 is located according to the ambient temperature T.

[0199] For example, Equation 5 can be expressed as V = 1.44 - 0.012T. When the ambient temperature is -30°C, the analog signal input from bias circuit 14 to the gate of the second transistor can be 1.8V; when the ambient temperature is 120°C, the analog signal input from bias circuit 14 to the gate of the second transistor can be 0V. The size of the second transistor is adjusted so that when V = 0V, the gain of second attenuator 12 is 0dB; when V = 1.8V, the gain of second attenuator 12 is -2dB. This way, the temperature drift compensation range of second attenuator 12 is 2dB, which exactly compensates for the temperature drift of amplifier 13 and keeps the total gain of the link to which amplifier 13 belongs constant with temperature.

[0200] If the second transistor is a P-type transistor, the relationship between the ambient temperature T, the analog signal input to the gate of the second transistor, and the attenuation of the RF signal by the second transistor can be determined based on the parameters of the second transistor according to Formulas 1, 3, 4, and 6, thereby adjusting the gain of the link in which the amplifier 13 is located according to the ambient temperature T.

[0201] For example, Equation 6 can be expressed as V = 0.36 + 0.012T. When the ambient temperature is -30°C, the analog signal input from bias circuit 14 to the gate of the second transistor can be 0V; when the ambient temperature is 120°C, the analog signal input from bias circuit 14 to the gate of the second transistor can be 1.8V. The size of the second transistor is adjusted so that when V = 0V, the gain of second attenuator 12 is -2dB; when V = 1.8V, the gain of second attenuator 12 is 0dB. This way, the temperature drift compensation range of second attenuator 12 is 2dB, which exactly compensates for the temperature drift of amplifier 13 and keeps the total gain of the link to which amplifier 13 belongs constant with temperature.

[0202] In some possible implementations, the active layers of the multiple first transistors can have different sizes, so that different degrees of attenuation can be achieved by controlling the number of on- and off-states of the multiple first transistors of different sizes. If there is only one second transistor, the integrated circuit layout area can also be saved.

[0203] In addition, it should be noted that the embodiment of the present application does not limit the order of steps S110, S120, and S130. After the RF signal corresponding to step S110 is transmitted in the amplifier circuit, step S120 can be performed first to adjust the attenuation of the RF signal by controlling the number of on-off switches of the plurality of first transistors under the control of the digital signal; then step S130 can be performed to adjust the attenuation of the RF signal by adjusting the impedance of the second transistor under the control of the analog signal; then step S110 can be performed to continue transmitting the attenuated RF signal in the amplifier circuit. Alternatively, after the RF signal corresponding to step S110 is transmitted in the amplifier circuit, step S130 can be performed first to adjust the attenuation of the RF signal by adjusting the impedance of the second transistor under the control of the analog signal; then step S120 can be performed to adjust the attenuation of the RF signal by controlling the number of on-off switches of the plurality of first transistors under the control of the digital signal; then step S110 can be performed to continue transmitting the attenuated RF signal in the amplifier circuit.

[0204] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.

Claims

1. An integrated circuit, characterized in that: including an amplifier circuit; The amplifying circuit includes an input end, an output end, and an amplifier and a radio frequency signal transmission line coupled between the input end and the output end; the radio frequency signal transmission line is coupled to the amplifier; The amplifier circuit is used to amplify the radio frequency signal coupled to the input end and output the amplified signal through the output end; The amplifying circuit further includes a first attenuator and a second attenuator, wherein the first attenuator and the second attenuator are used together to attenuate the radio frequency signal; The first attenuator includes a plurality of first transistors coupled to the ground, and is configured to adjust the attenuation of the radio frequency signal by controlling the number of on and off states of the plurality of first transistors under the control of a digital signal; The second attenuator includes a second transistor coupled to ground, and is used to adjust the attenuation of the radio frequency signal by adjusting the impedance of the second transistor under the control of an analog signal; wherein the multiple first transistors are connected in parallel with the second transistor.

2. The integrated circuit according to claim 1, wherein: The plurality of first transistors and the second transistor are coupled between an input side of the amplifier and a ground terminal.

3. The integrated circuit according to claim 1 or 2, characterized in that The plurality of first transistors and the second transistor are coupled between an output side of the amplifier and a ground terminal.

4. The integrated circuit according to claim 1 or 3, characterized in that The input side and the output side of the radio frequency signal transmission line are both coupled to the first attenuator and the second attenuator.

5. The integrated circuit according to claim 1, wherein: The plurality of first transistors are coupled between an input side of the amplifier and a ground terminal, and the second transistor is coupled between an output side of the amplifier and a ground terminal; or, The plurality of first transistors are coupled between an output side of the amplifier and a ground terminal, and the second transistor is coupled between an input side of the amplifier and a ground terminal.

6. The integrated circuit according to any one of claims 1 to 5, characterized in that: The integrated circuit further includes a control circuit; The control circuit is coupled to the gates of the plurality of first transistors and is configured to input the digital signal to the gates of the plurality of first transistors.

7. The integrated circuit according to any one of claims 1 to 6, characterized in that: The integrated circuit further includes a bias circuit; The bias circuit is coupled to the gate of the second transistor and is configured to input the analog signal to the gate of the second transistor.

8. The integrated circuit according to claim 7, wherein: The bias circuit is used to input the analog signal to the second transistor according to the ambient temperature, so that the attenuation of the radio frequency signal decreases as the ambient temperature increases.

9. The integrated circuit according to claim 8, wherein: The ambient temperature is the temperature of the bias circuit; The bias circuit is used to input the analog signal to the gate of the second transistor according to the ambient temperature, so that the second attenuator reduces the attenuation of the radio frequency signal as the ambient temperature increases under the control of the analog signal.

10. The integrated circuit according to claim 8, wherein: The integrated circuit further includes a temperature detection circuit coupled to the bias circuit; the temperature detection circuit is configured to detect the ambient temperature and send information about the ambient temperature to the bias circuit; The bias circuit is used to input the analog signal to the gate of the second transistor according to the received ambient temperature information, so that the second attenuator reduces the attenuation of the radio frequency signal as the ambient temperature increases under the control of the analog signal.

11. The integrated circuit according to any one of claims 8 to 10, characterized in that: The second transistor is an N-type transistor, and the higher the ambient temperature, the smaller the analog signal input to the gate of the second transistor by the bias circuit; or, The second transistor is a P-type transistor. The higher the ambient temperature, the larger the analog signal input to the gate of the second transistor by the bias circuit.

12. The integrated circuit according to any one of claims 1 to 11, characterized in that: The first attenuator is a digital step attenuator, and the second attenuator is a voltage variable attenuator.

13. The integrated circuit according to any one of claims 1 to 12, characterized in that: The active layers of the plurality of first transistors have different sizes.

14. A radio frequency transceiver, characterized in that: The radio frequency transceiver includes a transmitter and a receiver; the transmitter and the receiver both include the integrated circuit according to any one of claims 1 to 13.

15. A terminal, characterized in that: comprising an antenna and the radio frequency transceiver of claim 14, wherein the antenna is coupled to a transmitter and a receiver of the radio frequency transceiver; The antenna is used to send radio frequency signals to the receiver; The antenna is also used to receive the radio frequency signal sent by the transmitter.

16. A control method for an integrated circuit, characterized in that: The integrated circuit includes an amplifier circuit; the amplifier circuit includes an input terminal, an output terminal, a first attenuator, a second attenuator, and an amplifier and a radio frequency signal transmission line coupled between the input terminal and the output terminal; the radio frequency signal transmission line is coupled to the amplifier; the first attenuator includes a plurality of first transistors coupled to the ground, the second attenuator includes a second transistor coupled to the ground, and the plurality of first transistors are connected in parallel with the second transistor; The control method of the integrated circuit comprises: amplifying the radio frequency signal coupled to the input end by using the amplifier circuit and outputting the amplified signal through the output end; Under the control of a digital signal, adjusting the attenuation of the radio frequency signal by controlling the number of on and off switches of the plurality of first transistors; Under the control of the analog signal, the attenuation of the radio frequency signal is adjusted by adjusting the impedance of the second transistor.

17. The integrated circuit control method according to claim 16, wherein: The integrated circuit further includes a control circuit; the control circuit is coupled to the gates of the plurality of first transistors; The attenuation of the radio frequency signal is adjusted by controlling the number of on and off switches of the plurality of first transistors under the control of the digital signal, comprising: The digital signal is input to the gates of the plurality of first transistors by using the control circuit. Under the control of the digital signal, the attenuation of the radio frequency signal is adjusted by controlling the on-off number of the plurality of first transistors.

18. The integrated circuit control method according to claim 16 or 17, characterized in that: The integrated circuit further includes a bias circuit; the bias circuit is coupled to the gate of the second transistor; The step of adjusting the attenuation of the radio frequency signal by adjusting the impedance of the second transistor under the control of the analog signal comprises: The bias circuit is used to input the analog signal to the gate of the second transistor, and under the control of the analog signal, the impedance of the second transistor is adjusted to adjust the attenuation of the radio frequency signal.

19. The integrated circuit according to claim 18, wherein: The step of inputting the analog signal to the gate of the second transistor by using the bias circuit includes: The analog signal is input to the second transistor using the bias circuit according to the ambient temperature.

20. The integrated circuit according to claim 19, wherein: The ambient temperature is the temperature of the bias circuit; The step of inputting the analog signal to the second transistor using the bias circuit according to the ambient temperature includes: The analog signal is input to the gate of the second transistor through the bias circuit according to the ambient temperature, so that the second attenuator reduces the attenuation of the radio frequency signal as the ambient temperature increases under the control of the analog signal.

21. The integrated circuit control method according to claim 18, wherein: The integrated circuit further includes a temperature detection circuit coupled to the bias circuit; The step of inputting the analog signal to the second transistor using the bias circuit according to the ambient temperature includes: Detecting the ambient temperature using the temperature detection circuit, and sending information about the ambient temperature to the bias circuit; The bias circuit inputs the analog signal to the gate of the second transistor according to the received ambient temperature information, so that the second attenuator reduces the attenuation of the RF signal as the ambient temperature increases under the control of the analog signal.

22. The integrated circuit control method according to any one of claims 19 to 21, characterized in that: The second transistor is an N-type transistor; The step of inputting the analog signal to the second transistor using the bias circuit according to the ambient temperature includes: If the ambient temperature is higher, the analog signal input to the gate of the second transistor through the bias circuit is smaller; The second transistor is a P-type transistor; and the step of inputting the analog signal to the second transistor using the bias circuit according to the ambient temperature includes: If the ambient temperature is higher, the analog signal input to the gate of the second transistor through the bias circuit is larger.

Citation Information

Patent Citations

  • Attenuator device in radio frequency transmission stage

    CN108123733A

  • Attenuator and signal processing circuit using the attenuator

    JP1996340237A

  • Analog switch circuit and light receiving amplifier using it

    JP1998107563A

  • Input stage for an amplifier

    US20070004373A1

  • Hybrid system for control and monitoring of an amplifier

    US5977831A