Transceiver Circuit, and Chip and Terminal Device That Use Transceiver Circuit
20220123743 · 2022-04-21
Inventors
Cpc classification
H03K17/16
ELECTRICITY
H04N21/42221
ELECTRICITY
International classification
Abstract
The invention provides a transceiver circuit including a first interface and a second interface that are connected to an optical transceiver device, a receiver circuit, a transmitter circuit, and a compensation circuit. The receiver circuit includes a differential amplifier, where a first phase input terminal of the differential amplifier is coupled to the first interface, and a second phase input terminal of the differential amplifier is coupled to the second interface. The transmitter circuit includes a first transistor, where a terminal of the first transistor is coupled to the second phase input terminal, and another terminal of the first transistor is coupled to a ground terminal. The compensation circuit is configured to provide a leakage path for the first phase input terminal, or provide a compensation current for the second phase input terminal.
Claims
1. A transceiver circuit, comprising a first interface and a second interface that are connected to an optical transceiver device, a receiver circuit, a transmitter circuit, and a compensation circuit, wherein the receiver circuit comprises a differential amplifier, wherein a first phase input terminal of the differential amplifier is coupled to the first interface, and a second phase input terminal of the differential amplifier is coupled to the second interface; the transmitter circuit comprises a first transistor, wherein a terminal of the first transistor is coupled to the second phase input terminal, and another terminal of the first transistor is coupled to a ground terminal; and the compensation circuit is configured to provide a leakage path for the first phase input terminal, or provide a compensation current for the second phase input terminal.
2. The transceiver circuit according to claim 1, wherein the transmitter circuit further comprises a transmitter drive circuit, and the transmitter drive circuit is configured to control turn-on or turn-off of the first transistor.
3. The transceiver circuit according to claim 1, wherein when the compensation circuit is configured to provide the leakage path for the first phase input terminal, the compensation circuit comprises a second transistor, wherein a first terminal of the second transistor is coupled to the first phase input terminal, and a second terminal and a gate control terminal of the second transistor are coupled to a ground terminal.
4. The transceiver circuit according to claim 1, wherein when the compensation circuit is configured to provide the leakage path for the first phase input terminal, the compensation circuit comprises a second transistor, wherein a first terminal of the second transistor is coupled to the first phase input terminal, a gate control terminal of the second transistor is coupled to the first interface, and a second terminal of the second transistor is coupled to a ground terminal.
5. The transceiver circuit according to claim 1, wherein when the compensation circuit is configured to provide the leakage path for the first phase input terminal, the compensation circuit comprises a second transistor, a third transistor, a fourth transistor, a fifth transistor, and a sixth transistor, wherein a first terminal of the sixth transistor is coupled to the first phase input terminal, a second terminal of the sixth transistor is coupled to a ground terminal, and a gate control terminal of the sixth transistor is coupled to a gate control terminal of the fifth transistor; the gate control terminal of the fifth transistor is coupled to a first terminal of the fifth transistor, the first terminal of the fifth transistor is coupled to a first terminal of the fourth transistor, and a second terminal of the fifth transistor is coupled to a ground terminal; a second terminal of the fourth transistor is coupled to the first interface, and a gate control terminal of the fourth transistor is coupled to the gate control terminal of the third transistor; a first terminal of the third transistor is coupled to the first interface, a second terminal of the third transistor is coupled to a first terminal of the second transistor, and the second terminal of the third transistor is coupled to a gate control terminal of the third transistor; and a second terminal of the second transistor and a gate control terminal of the second transistor are coupled to a ground terminal; or a gate control terminal of the second transistor is coupled to the first interface, and a second terminal of the second transistor is coupled to a ground terminal.
6. The transceiver circuit according to claim 1, wherein when the compensation circuit is configured to provide the compensation current for the second phase input terminal, the compensation circuit comprises a second transistor and a current mirror, wherein a terminal of the second transistor is coupled to a ground terminal, a terminal of the current mirror is coupled to a terminal of the second transistor, and another terminal of the current mirror is coupled to the second phase input terminal; the second transistor is configured to provide a leakage current that flows to the ground terminal; and the current mirror is configured to amplify the leakage current to obtain the compensation current, wherein the compensation current is injected into the second phase input terminal.
7. The transceiver circuit according to claim 6, wherein the current mirror comprises a third transistor and a fourth transistor; a first terminal and a gate control terminal of the second transistor are coupled to the ground terminal, and a second terminal of the second transistor is coupled to a first terminal of the third transistor; or a first terminal of the second transistor is coupled to the ground terminal, a gate control terminal of the second transistor is coupled to the first interface, and a second terminal of the second transistor is coupled to a first terminal of the third transistor; a second terminal of the third transistor is coupled to the first interface, the first terminal of the third transistor is coupled to a gate control terminal of the third transistor, and the gate control terminal of the third transistor is coupled to a gate control terminal of the fourth transistor; and a first terminal of the fourth transistor is coupled to the first interface, and a second terminal of the fourth transistor is coupled to the second phase input terminal.
8. A transceiver circuit, comprising a first interface and a second interface that are connected to an optical transceiver device, a receiver circuit, a transmitter circuit, and a compensation circuit, wherein the receiver circuit comprises a differential amplifier, wherein a first phase input terminal of the differential amplifier is coupled to the first interface, and a second phase input terminal of the differential amplifier is coupled to the second interface; the transmitter circuit comprises a first transistor, wherein a terminal of the first transistor is coupled to the second phase input terminal, and another terminal of the transistor is coupled to a ground terminal; and the compensation circuit is configured to reduce impact of a non-ideal characteristic of the first transistor on the differential amplifier.
9. A chip, comprising a transceiver circuit, the transceiver circuit comprising a first interface and a second interface that are connected to an optical transceiver device, a receiver circuit, a transmitter circuit, and a compensation circuit, wherein, the receiver circuit comprises a differential amplifier, wherein a first phase input terminal of the differential amplifier is coupled to the first interface, and a second phase input terminal of the differential amplifier is coupled to the second interface; the transmitter circuit comprises a first transistor, wherein a terminal of the first transistor is coupled to the second phase input terminal, and another terminal of the first transistor is coupled to a ground terminal; and the compensation circuit is configured to provide a leakage path for the first phase input terminal, or provide a compensation current for the second phase input terminal.
10. A terminal device, comprising a transceiver circuit, the transceiver circuit comprising a first interface and a second interface that are connected to an optical transceiver device, a receiver circuit, a transmitter circuit, and a compensation circuit, wherein, the receiver circuit comprises a differential amplifier, wherein a first phase input terminal of the differential amplifier is coupled to the first interface, and a second phase input terminal of the differential amplifier is coupled to the second interface; the transmitter circuit comprises a first transistor, wherein a terminal of the first transistor is coupled to the second phase input terminal, and another terminal of the first transistor is coupled to a ground terminal; and the compensation circuit is configured to provide a leakage path for the first phase input terminal, or provide a compensation current for the second phase input terminal.
Description
BRIEF DESCRIPTION OF DRAWINGS
[0021]
[0022]
[0023]
[0024]
[0025]
[0026]
[0027]
[0028]
[0029]
DESCRIPTION OF EMBODIMENTS
[0030] The embodiments of this application are used to: when a mobile terminal is used as a remote control, compensate for electric leakage of a transistor in an infrared analog front end in the mobile terminal, to effectively reduce impact of the electric leakage on the infrared receiving analog front end.
[0031] This application provides a transceiver circuit. The transceiver circuit may be integrated into a communications chip in a terminal device. Usually, the transceiver circuit may be integrated into a short-range communications chip. The terminal device may be a device such as a mobile phone or a tablet computer.
[0032] A transceiver circuit used for a wireless personal area network (such as Bluetooth), a wireless local area network, or the like may be integrated into the short-range communications chip. The transceiver circuit may be connected to an optical transceiver device outside the short-range communications chip. If the electronic device performs remote control by using infrared light, the optical transceiver device may be an infrared light-emitting diode (light-emitting diode, LED). The transceiver circuit learns infrared remote control information by using the infrared LED, and remotely controls an electric appliance based on the learned remote control information.
[0033] A structure of the transceiver circuit is shown in
[0034] The transceiver circuit in this embodiment of this application is disposed in an electronic device such as a terminal device. The receiver circuit is configured to receive a remote control signal, such as infrared light, generated by a remote control device other than the terminal device when the remote control device remotely controls an electric appliance. The transmitter circuit is configured to send a remote control signal to the electric appliance by using the optical transceiver device. The receiver circuit may receive the remote control signal when a user uses a remote control of the electric appliance to remotely control the electric appliance. Specifically, if a distance between the optical transceiver device of the terminal device and an optical transceiver device of another remote control falls within an identifiable distance range, when the user uses the remote control to remotely control the electric appliance, the optical transceiver device of the terminal device may sense infrared light of the remote control. In this case, a current is generated in the receiver circuit, and a direction of the current may be shown as Isense in
[0035] Refer to
[0036] Therefore, to reduce impact of a leakage current, an embodiment of this application provides a transceiver circuit, having the following similar parts to that in
[0037] Based on the provided compensation circuit, an embodiment of this application provides a transceiver circuit. The transceiver circuit includes the compensation circuit, and the compensation circuit is configured to provide a leakage path for a first phase input terminal of a differential amplifier, or provide a compensation current to a second phase input terminal.
[0038] The providing a leakage path for a first phase input terminal of a differential amplifier may be understood as providing, in a current path connected to the first phase input terminal, a leakage current in a same direction as a leakage current of the second phase input terminal. In this way, both the first phase input terminal and the second phase input terminal of the differential amplifier have leakage currents that flow to ground terminals, and an offset voltage generated by the leakage current of the leakage path at the first phase input terminal can be used to reduce an offset voltage generated by the leakage current of the first transistor at the second phase input terminal, to reduce impact of a non-ideal characteristic of the first transistor on the differential amplifier.
[0039] The providing a compensation current to a second phase input terminal may be understood as injecting a current into the second phase input terminal. Because the second phase input terminal has a leakage current that flows to a ground terminal of a first transistor, in this application, the current is injected into the second phase input terminal, so that impact of an offset voltage generated by the leakage current of the first transistor at the second phase input terminal can be reduced, to reduce impact of a non-ideal characteristic of the first transistor on the differential amplifier.
[0040] The following first further describes the fact that the compensation circuit is configured to provide a leakage path for a first phase input terminal of a differential amplifier.
[0041] Refer to
[0042] The receiver circuit includes a differential amplifier P, where a first phase input terminal of the differential amplifier P is coupled to the first interface X, and a second phase input terminal of the differential amplifier P is coupled to the second interface Y.
[0043] The transmitter circuit includes a first transistor MN1, where a terminal r of the first transistor MN1 is coupled to the second phase input terminal, and another terminal t of the first transistor MN1 is coupled to a ground terminal. It should be noted that, in
[0044] The compensation circuit includes a second transistor MN2, a first terminal u of the second transistor MN2 is coupled to the first phase input terminal, and a gate control terminal v and a second terminal w of the second transistor MN2 are coupled to a ground. In this case, the second transistor MN2 may be an NMOS transistor, that is, the second transistor MN2 is always in a turn-off state. In this case, in this application, the second transistor MN2 is also introduced at the first phase input terminal of the differential amplifier P. When the first transistor MN1 is not turned on, the second transistor MN2 is also turned off. Therefore, both the two transistors generate leakage currents. For the differential amplifier P, electric leakage occurs at both the first phase input terminal and the second phase input terminal of the differential amplifier P. This reduces impact of electric leakage of the first transistor MN1 at the second phase input terminal on output of the differential amplifier P. If a size of the second transistor MN2 is the same as a size of the first transistor MN1, that is, the transistors has a same width and length (W and L), when the first transistor MN1 generates a leakage current Ileakage, the second transistor MN2 also generates a leakage current Ileakage that has a same current value and that flows to the ground. In this way, an offset voltage generated at the second phase input terminal of the differential amplifier P due to the leakage current of the first transistor MN1 may be almost completely canceled by an offset voltage generated at the first phase input terminal of the differential amplifier P due to the leakage current of the second transistor MN2.
[0045] In addition, the transmitter circuit further includes a transmitter drive circuit, and the transmitter drive circuit is configured to control turn-on or turn-off of the first transistor MN1. The transmitter drive circuit turns off the first transistor MN1 when the transmitter circuit does not work, or when the receiver circuit works.
[0046] An idea of the compensation circuit in this embodiment of this application is that the gate control terminal of the second transistor MN2 is grounded to enable the second transistor MN2 to be always in a turn-off state. In actual use, alternatively, the gate control terminal of the second transistor MN2 may be coupled to a signal source similar to the transmitter drive circuit in the transmitter circuit. Provided that the second transistor MN2 is also turned off when the first transistor MN1 is turned off, electric leakage of the first transistor MN1 can be compensated for by using the second transistor MN2.
[0047] In this embodiment of this application, the receiver circuit further includes resistors R1 and R2, and further includes the differential amplifier P, a low-pass filter LPF, and a comparator C.
[0048] For a specific connection relationship of the circuit, refer to
[0049] Due to existence of the two resistors R1 and R2, the offset voltage generated by the first transistor MN1 at the inverting input terminal of the amplifier P can be expressed as R1×Ileakage, the offset voltage generated by the second transistor MN2 at the non-inverting input terminal of the amplifier P may be expressed as R2×Ileakage. When the resistor R1 and the resistor R2 have a same resistance value, the offset voltage generated at the second phase input terminal of the differential amplifier P due to the leakage current of the first transistor MN1 may be canceled by the offset voltage generated at the first phase input terminal of the differential amplifier P due to the leakage current of the second transistor MN2.
[0050] Therefore, in this application, to cancel the offset voltage generated by the first transistor MN1 at the inverting input terminal of the differential amplifier P, the compensation circuit, that is, the second transistor MN2, is additionally introduced, and a layout area of the transceiver circuit is increased by a device area of the second transistor MN2 compared with that in
[0051] It may be understood that, in
[0052] For that the compensation circuit is configured to provide a leakage path for a first phase input terminal of a differential amplifier, an embodiment of this application further provides a transceiver circuit, to cancel an offset voltage generated by a first transistor MN1 at a second phase input terminal of a differential amplifier P. Refer to
[0053] Refer to
[0054] A first terminal j of the sixth transistor MN4 is coupled to a first phase input terminal, a second terminal m of the sixth transistor MN4 is coupled to a ground terminal, and a gate control terminal o of the sixth transistor MN4 is coupled to a gate control terminal q of the fifth transistor MN3.
[0055] The gate control terminal q of the fifth transistor MN3 is coupled to a first terminal x of the fifth transistor MN3, the first terminal x of the fifth transistor MN3 is coupled to a first terminal p of the fourth transistor MP2, and a second terminal y of the fifth transistor MN3 is coupled to a ground terminal.
[0056] A second terminal z of the fourth transistor MP2 is coupled to the first interface X, and a gate control terminal A of the fourth transistor MP2 is coupled to a gate control terminal B of the third transistor MP1.
[0057] A first terminal D of the third transistor MP1 is coupled to the first interface X, a second terminal E of the third transistor MP1 is coupled to a first terminal u of the second transistor MN2, and the gate control terminal B of the third transistor MP1 is coupled to the second terminal E of the third transistor MP1.
[0058] A gate control terminal v of the second transistor MN2 and a second terminal w of the second transistor MN2 are coupled to a ground. In this case, the second transistor MN2 may be an NMOS transistor.
[0059] It may be learned that the gate control terminal of the fourth transistor MP2 is coupled to the gate control terminal of the third transistor MP1 to constitute a first current mirror structure, and the gate control terminal of the sixth transistor MN4 is coupled to the gate control terminal of the fifth transistor MN3 to constitute a second current mirror structure.
[0060] For circuit connection descriptions of the receiver circuit and the transmitter circuit in
[0061] Based on the circuit connection relationship, when the receiver circuit in the transceiver circuit works, the first transistor MN1 is not turned on and has a leakage current Ileakage. Therefore, an offset voltage is generated at the second phase input terminal of the differential amplifier P. In this embodiment of this application, because the first terminal D of the third transistor MP1 is coupled to the power supply pin X, and the second terminal w and the gate control terminal v of the second transistor MN2 are coupled to the ground, the second transistor MN2 is also turned off. Therefore, both the first transistor MN1 and the second transistor MN2 generate leakage currents. When the second transistor MN2 generates a leakage current, the third transistor MP1 on a same branch as the second transistor MN2 also has a leakage current, and the leakage current also flows through the sixth transistor MN4 under the action of the first current mirror and the second current mirror. Therefore, an offset voltage is generated at the first phase input terminal of the differential amplifier P. In this case, for the differential amplifier P, electric leakage occurs at both the first phase input terminal and the second phase input terminal of the differential amplifier P, so that the offset voltage at the first phase input terminal of the differential amplifier P can be used to reduce impact of the offset voltage of the first transistor MN1 at the second phase input terminal on output of the differential amplifier P.
[0062] For example, as shown in
[0063] It may be learned that functions of the sixth transistor MN4, the fifth transistor MN3, the third transistor MP1, the fourth transistor MP2, and the second transistor MN2 in the circuit structure corresponding to
[0064] In
[0065] Alternatively, as shown in
[0066] When the compensation circuit provided in this application is configured to provide the compensation current to the second phase input terminal of the differential amplifier P, as shown in
[0067] In this embodiment of this application, when the compensation circuit is configured to provide a compensation current for a second phase input terminal, as shown in
[0068] A first terminal w and a gate control terminal v of the second transistor MN2 are coupled to a ground, and a second terminal u of the second transistor MN2 is coupled to a first terminal E of the third transistor MP1.
[0069] A second terminal D of the third transistor MP1 is coupled to the first interface X, the first terminal E of the third transistor MP1 is coupled to a gate control terminal B of the third transistor MP1, and the gate control terminal B of the third transistor MP1 is coupled to a gate control terminal A of the fourth transistor MP2.
[0070] A first terminal z of the fourth transistor MP2 is coupled to the first interface X, and a second terminal p of the fourth transistor MP2 is coupled to the second phase input terminal, where a coupling node is shown as F.
[0071] The gate control terminal of the third transistor MP1 is coupled to the gate control terminal of the fourth transistor MP2 to constitute a current mirror structure.
[0072] In the circuit shown in
[0073] According to the circuit provided in
[0074] In
[0075] It may be learned from the foregoing embodiments that, in this application, the compensation circuit is introduced to handle a case that electric leakage of the first transistor MN1 affects a voltage of the second phase input terminal of the differential amplifier, affecting accuracy of the infrared receiver circuit. The compensation circuit may introduce a leakage path at the first phase input terminal of the differential amplifier, or introduce an electric leakage compensation current in an opposite direction at the second phase input terminal of the differential amplifier, to reduce impact of the non-ideal characteristic of the first transistor MN1 on the differential amplifier. In addition, compared with a circuit provided in the conventional technology, the layout area of the circuit is reduced, thereby reducing costs.
[0076] An embodiment of this application further provides a chip. As shown in
[0077] An embodiment of this application further provides a terminal device. As shown in
[0078] The foregoing descriptions are merely specific implementations of this application, but are not intended to limit the protection scope of this application. Any variation or replacement readily figured out by a person skilled in the art within the technical scope disclosed in this application shall fall within the protection scope of this application. Therefore, the protection scope of this application shall be subject to the protection scope of the claims.