MULTIPLEXING CIRCUIT AND MOBILE TERMINAL
20210321177 · 2021-10-14
Assignee
Inventors
Cpc classification
G06F13/4022
PHYSICS
G06F3/162
PHYSICS
H03H11/34
ELECTRICITY
G10L19/008
PHYSICS
International classification
G10L19/008
PHYSICS
H03H11/34
ELECTRICITY
Abstract
A multiplexing circuit and a mobile terminal, related to the field of electronic and communications technologies, that resolve a problem that product costs are high when a mobile phone uses an integrated switch. In the multiplexing circuit, a first switch circuit transmits, to a first signal transmission end, a right sound channel audio signal provided by a right sound channel transmission end. A second switch circuit transmits, to a second signal transmission end, a left sound channel audio signal provided by a left sound channel transmission end. Signal transmission between the first signal transmission end and a first output end and signal transmission between the second signal transmission end and a second output end are implemented by using a third switch circuit. The first switch circuit includes a first transistor and a first constant voltage control circuit.
Claims
1-13. (canceled)
14. A multiplexing circuit, comprising: a first switch circuit, a second switch circuit, and a third switch circuit, a first signal transmission end, a second signal transmission end, a right sound channel transmission end, a left sound channel transmission end, a first output end, and a second output end; the first switch circuit is coupled to the first signal transmission end and the right sound channel transmission end, and the first switch circuit is configured to: receive a first voltage, and transmit, to the first signal transmission end under control of the first voltage, a right sound channel audio signal provided by the right sound channel transmission end; the second switch circuit is coupled to the second signal transmission end and the left sound channel transmission end, and the second switch circuit is configured to: receive the first voltage, and transmit, to the second signal transmission end under control of the first voltage, a left sound channel audio signal provided by the left sound channel transmission end; and the third switch circuit is coupled to the first signal transmission end, the second signal transmission end, the first output end, and the second output end, and the third switch circuit is configured to: receive a second voltage, transmit, to the first output end under control of the second voltage, a signal provided by the first signal transmission end, and transmit, to the second output end, a signal provided by the second signal transmission end; or the third switch circuit is configured to: receive the second voltage, transmit, to the first signal transmission end under control of the second voltage, a signal provided by the first output end, and transmit, to the second signal transmission end, a signal provided by the second output end; wherein the first switch circuit comprises a first transistor and a first constant voltage control circuit, wherein a gate electrode of the first transistor is configured to receive the first voltage, a first electrode is coupled to the first signal transmission end, and a second electrode is coupled to the right sound channel transmission end; and the first constant voltage control circuit is coupled to the gate electrode and the second electrode of the first transistor, and the first constant voltage control circuit is configured to load the right sound channel audio signal to the gate electrode of the first transistor; and the second switch circuit comprises a second transistor and a second constant voltage control circuit, wherein a gate electrode of the second transistor is configured to receive the first voltage, a first electrode is coupled to the second signal transmission end, and a second electrode is coupled to the left sound channel transmission end; and the second constant voltage control circuit is coupled to the gate electrode and the second electrode of the second transistor, and the second constant voltage control circuit is configured to load the left sound channel audio signal to the gate electrode of the second transistor.
15. The multiplexing circuit according to claim 14, wherein the first constant voltage control circuit comprises a first capacitor, one end of the first capacitor is coupled to the gate electrode of the first transistor, and another end of the first capacitor is coupled to the second electrode of the first transistor.
16. The multiplexing circuit according to claim 15, wherein a capacitance value of the first capacitor ranges from 4 μF to 10 μF.
17. The multiplexing circuit according to claim 15, wherein the first constant voltage control circuit further comprises a first inductor, one end of the first inductor is coupled to the gate electrode of the first transistor, and another end of the first inductor is coupled to the second electrode of the first transistor.
18. The multiplexing circuit according to claim 14, wherein the first switch circuit further comprises a first resistor; and one end of the first resistor is coupled to the gate electrode of the first transistor, and another end of the first resistor is configured to receive the first voltage.
19. The multiplexing circuit according to claim 14, wherein the second constant voltage control circuit comprises a second capacitor, one end of the second capacitor is coupled to the gate electrode of the second transistor, and another end of the second capacitor is coupled to the second electrode of the second transistor.
20. The multiplexing circuit according to claim 19, wherein a capacitance value of the second capacitor ranges from 4 μF to 10 μF.
21. The multiplexing circuit according to claim 19, wherein the second constant voltage control circuit further comprises a second inductor, one end of the second inductor is coupled to the gate electrode of the second transistor, and another end of the second inductor is coupled to the second electrode of the second transistor.
22. The multiplexing circuit according to claim 14, wherein the second switch circuit further comprises a second resistor, one end of the second resistor is coupled to the gate electrode of the second transistor, and another end of the second resistor is configured to receive the first voltage.
23. The multiplexing circuit according to claim 14, wherein the third switch circuit comprises a third transistor and a fourth transistor; a gate electrode of the third transistor is configured to receive the second voltage, a first electrode is coupled to the first output end, and a second electrode is coupled to the first signal transmission end; and a gate electrode of the fourth transistor is configured to receive the second voltage, a first electrode is coupled to the second output end, and a second electrode is coupled to the second signal transmission end.
24. The multiplexing circuit according to claim 23, wherein the third switch circuit is further coupled to the right sound channel transmission end and the left sound channel transmission end, and the third switch circuit further comprises a third capacitor and a fourth capacitor, wherein one end of the third capacitor is coupled to the gate electrode of the third transistor, and another end of the third capacitor is coupled to the right sound channel transmission end; and one end of the fourth capacitor is coupled to the gate electrode of the fourth transistor, and another end of the fourth capacitor is coupled to the left sound channel transmission end.
25. The multiplexing circuit according to claim 23, wherein the third switch circuit further comprises a third resistor, a fourth resistor, a fifth resistor, and a sixth resistor, wherein one end of the third resistor is configured to receive the second voltage, and another end of the third resistor is coupled to the gate electrode of the third transistor; one end of the fourth resistor is coupled to the gate electrode of the third transistor, and another end of the fourth resistor is grounded; one end of the fifth resistor is configured to receive the second voltage, and another end of the fifth resistor is coupled to the gate electrode of the fourth transistor; and one end of the sixth resistor is coupled to the gate electrode of the fourth transistor, and another end of the sixth resistor is grounded.
26. A mobile terminal, comprising a central processing unit, an audio codec, an external interface configured to be coupled to an external device, and a multiplexing circuit, wherein the external interface comprises a D+ pin and a D− pin that are specified according to a Type-C interface protocol; the multiplexing circuit comprising: a first switch circuit, a second switch circuit, and a third switch circuit, wherein the multiplexing circuit further comprises a first signal transmission end, a second signal transmission end, a right sound channel transmission end, a left sound channel transmission end, a first output end, and a second output end; the first switch circuit is coupled to the first signal transmission end and the right sound channel transmission end, and the first switch circuit is configured to: receive a first voltage, and transmit, to the first signal transmission end under control of the first voltage, a right sound channel audio signal provided by the right sound channel transmission end; the second switch circuit is coupled to the second signal transmission end and the left sound channel transmission end, and the second switch circuit is configured to: receive the first voltage, and transmit, to the second signal transmission end under control of the first voltage, a left sound channel audio signal provided by the left sound channel transmission end; and the third switch circuit is coupled to the first signal transmission end, the second signal transmission end, the first output end, and the second output end, and the third switch circuit is configured to: receive a second voltage, transmit, to the first output end under control of the second voltage, a signal provided by the first signal transmission end, and transmit, to the second output end, a signal provided by the second signal transmission end; or the third switch circuit is configured to: receive the second voltage, transmit, to the first signal transmission end under control of the second voltage, a signal provided by the first output end, and transmit, to the second signal transmission end, a signal provided by the second output end; wherein the first switch circuit comprises a first transistor and a first constant voltage control circuit, wherein a gate electrode of the first transistor is configured to receive the first voltage, a first electrode is coupled to the first signal transmission end, and a second electrode is coupled to the right sound channel transmission end; and the first constant voltage control circuit is coupled to the gate electrode and the second electrode of the first transistor, and the first constant voltage control circuit is configured to load the right sound channel audio signal to the gate electrode of the first transistor; and the second switch circuit comprises a second transistor and a second constant voltage control circuit, wherein a gate electrode of the second transistor is configured to receive the first voltage, a first electrode is coupled to the second signal transmission end, and a second electrode is coupled to the left sound channel transmission end; and the second constant voltage control circuit is coupled to the gate electrode and the second electrode of the second transistor, and the second constant voltage control circuit is configured to load the left sound channel audio signal to the gate electrode of the second transistor; a first signal transmission end of the multiplexing circuit is coupled to the D+ pin, a second signal transmission end is coupled to the D− pin, and a right sound channel transmission end and a left sound channel transmission end are coupled to the audio codec; the audio decoder is further coupled to the central processing unit, and the audio codec is configured to: decode an audio signal output by the central processing unit, provide a right sound channel audio signal to the right sound channel transmission end, and provide a left sound channel audio signal to the left sound channel transmission end; and a first output end and a second output end of the multiplexing circuit are coupled to the central processing unit, and the multiplexing circuit is configured to: provide a signal of the D+ pin and a signal of the D− pin to the central processing unit through the first output end and the second output end respectively, or provide a signal of the central processing unit for the D+ pin and the D− pin through the first output end and the second output end respectively.
27. The mobile terminal according to claim 26, wherein the first constant voltage control circuit comprises a first capacitor, one end of the first capacitor is coupled to the gate electrode of the first transistor, and another end of the first capacitor is coupled to the second electrode of the first transistor.
28. The mobile terminal according to claim 27, wherein a capacitance value of the first capacitor ranges from 4 μF to 10 μF.
29. The mobile terminal according to claim 27, wherein the first constant voltage control circuit further comprises a first inductor, one end of the first inductor is coupled to the gate electrode of the first transistor, and another end of the first inductor is coupled to the second electrode of the first transistor.
30. The mobile terminal according to claim 26, wherein the first switch circuit further comprises a first resistor; and one end of the first resistor is coupled to the gate electrode of the first transistor, and another end of the first resistor is configured to receive the first voltage.
31. The mobile terminal according to claim 26, wherein the second constant voltage control circuit comprises a second capacitor, one end of the second capacitor is coupled to the gate electrode of the second transistor, and another end of the second capacitor is coupled to the second electrode of the second transistor.
32. The mobile terminal according to claim 31, wherein a capacitance value of the second capacitor ranges from 4 μF to 10 μF.
33. The mobile terminal according to claim 31, wherein the second constant voltage control circuit further comprises a second inductor, one end of the second inductor is coupled to the gate electrode of the second transistor, and another end of the second inductor is coupled to the second electrode of the second transistor.
Description
BRIEF DESCRIPTION OF DRAWINGS
[0021]
[0022]
[0023]
[0024]
[0025]
[0026]
[0027]
[0028]
[0029]
[0030]
[0031]
DESCRIPTION OF EMBODIMENTS
[0032] The following terms “first” and “second”, and the like are merely intended for a purpose of description, and shall not be understood as an indication or implication of relative importance or implicit indication of the number of indicated technical features. Therefore, a feature limited by “first” or “second”, or the like may explicitly or implicitly include one or more features.
[0033] Some embodiments provide a multiplexing circuit 100. As shown in
[0034] In addition, the multiplexing circuit 100 further includes a first signal transmission end ST1, a second signal transmission end ST2, a right sound channel transmission end HSR, a left sound channel transmission end HSL, a first output end OP1, and a second output end OP2.
[0035] The first switch circuit 10 is coupled to the first signal transmission end ST1 and the right sound channel transmission end HSR. The first switch circuit 10 is configured to: receive a first voltage V1, and transmit, to the first signal transmission end ST1 under control of the first voltage V1, a right sound channel audio signal provided by the right sound channel transmission end HSR.
[0036] The second switch circuit 20 is coupled to the second signal transmission end ST2 and the left sound channel transmission end HSL. The second switch circuit 20 is configured to: receive the first voltage V1, and transmit, to the second signal transmission end ST2 under control of the first voltage V1, a left sound channel audio signal provided by the left sound channel transmission end HSL.
[0037] The third switch circuit 30 is coupled to the first signal transmission end ST1, the second signal transmission end ST2, the first output end OP1, and the second output end OP2. The third switch circuit 30 is configured to: receive a second voltage V2, transmit, to the first output end OP1 under control of the second voltage V2, a signal provided by the first signal transmission end ST1, and transmit, to the second output end OP2, a signal provided by the second signal transmission end ST2. Alternatively, the third switch circuit 30 is configured to: receive the second voltage V2, transmit, to the first signal transmission end ST1 under control of the second voltage V2, a signal provided by the first output end OP1, and transmit, to the second signal transmission end ST1, a signal provided by the second output end OP2. Therefore, when the third switch circuit 30 is enabled, signal transmission between the first signal transmission end ST1 and the first output end OP1 and signal transmission between the second signal transmission end ST2 and the second output end OP2 can be implemented.
[0038] In addition, a mobile terminal having the multiplexing circuit 100 includes an external interface 110 (as shown in
[0039] In this case, when the mobile terminal having the multiplexing circuit 100, for example, a mobile phone, is coupled to a headset through the Type-C interface, the CC pin may identify that the external device coupled to the Type-C interface is the headset. In this case, a power supply (for example, a battery of the mobile phone) may provide the first voltage V1 for the first switch circuit 10 and the second switch circuit 20 based on an identification result of the CC pin, and provide the second voltage V2 for the third switch circuit 30. The first switch circuit 10 and the second switch circuit 20 are enabled under control of the first voltage V1. In addition, the third switch circuit 30 is disabled under control of the second voltage V2. In this way, the right sound channel audio signal and the left sound channel audio signal of the mobile phone may be output, through the right sound channel transmission end HSR and the left sound channel audio signal HSL respectively, to the headset coupled to the external interface.
[0040] Alternatively, when the mobile terminal, for example, the mobile phone, is coupled to a data cable through the external interface, the CC pin identifies that the external device coupled to the Type-C interface is not the headset, but another external device coupled to the data cable, for example, a charger, a mobile storage device, a mobile phone, a computer, or the like. In this case, a power supply (for example, a battery of a mobile phone or an external device) may provide the second voltage V2 for the third switch circuit 30 based on an identification result of the CC pin, and provide the first voltage V1 for the first switch circuit 10 and the second switch circuit 20. The third switch circuit 30 is enabled under control of the second voltage V2. In addition, the first switch circuit 10 and the second switch circuit 20 are disabled under control of the first voltage V1. In this way, external data or a charging voltage may be transmitted to the first output end OP1 and the second output end OP2 of the multiplexing circuit 100 through the data cable coupled to the external interface. Alternatively, the first output end OP1 and the second output end OP2 of the multiplexing circuit 100 may transmit, through the data cable coupled to the Type-C interface of the mobile terminal, data in the mobile terminal to the external device coupled to the data cable.
[0041] It can be noted that, it can be understood from the foregoing description that the first voltage V1 provided by the power supply (for example, the battery of the mobile phone) can not only control the first switch circuit 10 and the second switch circuit 20 to be enabled, but also control the first switch circuit 10 and the second switch circuit 20 to be disabled. For ease of description, the first voltage V1 used to control the first switch circuit 10 and the second switch circuit 20 to be enabled is referred to as an effective first voltage V1. The first voltage V1 used to control the first switch circuit 10 and the second switch circuit 20 to be disabled is referred to as an invalid first voltage V1. Similarly, the second voltage V2 used to control the third switch circuit 30 to be enabled is referred to as an effective second voltage V2. The second voltage V2 used to control the third switch circuit 30 to be disabled is referred to as an invalid second voltage V2.
[0042] In addition, as shown in
[0043] A gate (G) electrode of the first transistor M1 is configured to receive the first voltage V1, a first electrode (for example, a drain electrode) is coupled to the first signal transmission end ST1, and a second electrode (for example, a source electrode) is coupled to the right sound channel transmission end HSR.
[0044] In this case, after receiving the first voltage V1, the gate electrode of the first transistor M1 is in a conducting status, so that the right sound channel transmission end HSR may transmit the right sound channel audio signal of the mobile phone to the first signal transmission end ST1 through the first transistor M1.
[0045] Based on this, because an audio signal is an alternating-current signal, the audio signal fluctuates, in other words, a voltage loaded on the second electrode of the first transistor M1 fluctuates. The first voltage V1 used to control the first transistor M1 to be conducted is a direct current voltage, for example, 3 V. In this way, a voltage difference Vgs between the gate electrode and the second electrode of the first transistor M1 changes with fluctuation of the right sound channel audio signal, so that impedance of the first transistor M1 changes. Consequently, a total harmonic distortion-noise (THD-N) indice of audio is affected.
[0046] To resolve the foregoing problem, as shown in
[0047] The first constant voltage control circuit 101 is coupled to the gate electrode and the second electrode of the first transistor M1. As shown in
[0048] In addition, as shown in
[0049] A gate electrode of the second transistor M2 is configured to receive the first voltage V1, a first electrode is coupled to the second signal transmission end ST2, and a second electrode is coupled to the left sound channel transmission end HSL. In this case, after receiving the first voltage V1, the gate electrode of the second transistor M2 is in the conducting status, so that the left sound channel transmission end HSL may transmit the left sound channel audio signal of the mobile phone to the second signal transmission end ST2 through the second transistor M2.
[0050] Similarly, the second switch circuit 20 further includes a second constant voltage control circuit 201 to reduce a probability that impedance of the second transistor M2 changes.
[0051] The second constant voltage control circuit 201 is coupled to the gate electrode and the second electrode of the second transistor M2, and the constant voltage control circuit 201 is configured to load the left sound channel audio signal to the gate electrode of the second transistor M2, so that a voltage difference Vgs between the gate electrode and the second electrode of the second transistor M2 is equal to V1 and is equal to 3V, which is the constant direct current voltage.
[0052] It can be noted that, in the embodiments, the first transistor M1 and the second transistor M2 may be metal-oxide-semiconductor field-effect transistors, thin film transistors (TFT), or triodes, this is not limited.
[0053] In the embodiments, a first electrode of a transistor may be a source (S) electrode, and a second electrode may be a drain (D) electrode. Alternatively, the first electrode is the drain electrode, and the second electrode is the source electrode. For ease of description, the following embodiments of all use an example in which the transistor is an NMOS transistor, the first electrode is the drain electrode, and the second electrode is the source electrode for description.
[0054] In addition, a direct current power supply, for example, the battery of the mobile phone, may be disposed in the mobile phone, and is configured to provide the first voltage V1 for the gate electrode of the first transistor M1 and the gate electrode of the second transistor M2.
[0055] For example, the first transistor M1 and the second transistor M2 are n-type transistors. When the CC pin in the Type-C interface of the mobile phone identifies that the external device coupled to the Type-C interface is the headset, the first transistor M1 and the second transistor M2 need to be conducted, to enable the first switch circuit 10 and the second switch circuit 20 respectively. In this case, the first voltage V1 that is provided by the direct current power supply based on the identification result of the CC pin is at a constant high level (namely, the effective first voltage V1). When the CC pin in the Type-C interface of the mobile phone identifies that the external device coupled to the Type-C interface is not the headset, but another external device coupled to the data cable, for example the charger, the mobile storage device, the mobile phone, the computer, or the like, the first transistor M1 and the second transistor M2 need to be cut off, to enable the first switch circuit 10 and the second switch circuit 20 respectively. In this case, the first voltage V1 that is provided by the direct current power supply based on the identification result of the CC pin is at a constant low level (namely, the invalid first voltage V1).
[0056] The following describes a structure of the first constant voltage control circuit 101 and a structure of the second constant voltage control circuit 201 in detail with examples.
[0057] In some embodiments, as shown in
[0058] In this case, because the first capacitor C1 supports an alternating current but blocks a direct current, an alternating current signal, namely, the right sound channel audio signal, at the right sound channel transmission end HSR can be transmitted to the gate electrode of the first transistor M1 through the first capacitor C1. Therefore, a voltage difference Vgs between the gate electrode and the second electrode of the first transistor M1 is equal to V1. In addition, a first direct current voltage V1 cannot be transmitted to the right sound channel transmission end HSR through the first capacitor C1.
[0059] Similarly, as shown in
[0060] In this case, because the second capacitor C2 supports an alternating current but blocks a direct current, the left sound channel audio signal at the left sound channel transmission end HSL can be transmitted to the gate electrode of the second transistor M2 through the second capacitor C2. Therefore, a voltage difference Vgs between the gate electrode and the second electrode of the second transistor M2 is equal to V1. In addition, a first direct current voltage V2 cannot be transmitted to the left sound channel transmission end HSL through the second capacitor C2.
[0061] In some embodiments, capacitance values of the first capacitor C1 and the second capacitor C2 may be from 4 μF to 10 μF. When a resistance value of the capacitor is less than 4 μF, because the capacitance value is comparatively small, a blocking effect on the direct current voltage is comparatively poor, resulting in that an audio signal at the right sound channel transmission end HSR or an audio signal at the left sound channel transmission end HSL has comparatively large noise. When the resistance value of the capacitor is greater than 10 μF, the capacitor can well support an alternating current but block a direct current. However, a size of the capacitor is comparatively large, so that comparatively large cabling space of the mobile phone is occupied.
[0062] In some embodiments, the capacitance values of the first capacitor C1 and the second capacitor C2 may be 4.5 μF, 4.7 μF, 5 μF, 7 μF, or the like.
[0063] In addition, in some embodiments, the structure of the first constant voltage control circuit 101 and the structure of the second constant voltage control circuit 201 further include an inductor. As shown in
[0064] In this case, in comparison with the structure of the first constant voltage control circuit 101 shown in
[0065] Similarly, as shown in
[0066] In this case, in comparison with the structure of the second constant voltage control circuit 201 shown in
[0067] Thus, when the first transistor M1 is conducted, the right sound channel audio signal provided by the right sound channel transmission end HSR may be transmitted to the first signal transmission end ST1 through one transistor in the first switch circuit 10, for example, the first transistor M1. In addition, the first capacitor C1 is coupled between the gate electrode and the second electrode of the first transistor M1, or the first capacitor C1 and the first inductor L1 that are connected in parallel are coupled between the gate electrode and the second electrode of the first transistor M1, to avoid a change in the impedance of the first transistor M1 when the first transistor M1 is affected by the fluctuation of the right sound channel audio signal. Therefore, the first capacitor C1 loads the alternating current right sound channel audio signal to the gate electrode of the first transistor M1, so that the voltage difference Vgs between the gate electrode and the second electrode of the first transistor M1 is a fixed value, and a probability that the impedance of the first transistor M1 changes with the fluctuation of the right sound channel audio signal is reduced.
[0068] Based on this, for a solution in which an integrated switch is used, at least one pair of an NMOS transistor and a PMOS transistor that are coupled to each other are usually disposed in the integrated switch, to avoid a change in impedance of the integrated switch in a process of transmitting an audio signal. The NMOS transistor increases with the fluctuation of the audio signal, and the impedance increases. The PMOS transistor decreases with the fluctuation of the audio signal, and the impedance decreases. In this way, an impedance change of the NMOS transistor and an impedance change of the PMOS transistor are superimposed, to reduce a probability that the impedance of the integrated switch changes. In comparison with the integrated switch, in the first switch circuit 10 provided in the foregoing embodiments, a quantity of transistors is smaller, a simpler structure facilitates in reducing product costs, and an impedance change of the first switch circuit 10 can be effectively reduced.
[0069] In addition, a technical effect of the second switch circuit 20 is the same as that described above, and details are not described herein again.
[0070] In some embodiments, as shown in
[0071] Similarly, as shown in
[0072] The following describes a structure of the third switch circuit 30.
[0073] In some embodiments, as shown in
[0074] A gate electrode of the third transistor M3 is configured to receive the second voltage V2, a first electrode is coupled to the first output end OP1, and a second electrode is coupled to the first signal transmission end ST1.
[0075] A gate electrode of the fourth transistor M4 is configured to receive the second voltage V2, a first electrode is coupled to the second output end OP2, and a second electrode is coupled to the second signal transmission end ST2.
[0076] In this case, when the mobile terminal having the multiplexing circuit 100, for example, the mobile phone, is coupled to the data cable through the external interface (for example, the Type_C interface), the first transistor M1 and the second transistor M2 are cut off under control of the first voltage V1. In addition, the third transistor M3 and the fourth transistor M4 are conducted under control of the second voltage V2. In this way, the data cable coupled to the external interface transmits the external data or the charging voltage to the first signal transmission end ST1, and then transmits the external data or the charging voltage to the first output end OP1 through the third transistor M3. In addition, the data cable coupled to the external interface further transmits the external data or the charging voltage to the second signal transmission end ST2, and then transmits the external data or the charging voltage to the second output end OP2 through the fourth transistor M4. Alternatively, the first output end OP1 of the multiplexing circuit 100 may transmit the data in the mobile terminal to the first signal transmission end ST1 through the third transistor M3, and the second output end OP2 of the multiplexing circuit 100 may transmit the data in the mobile terminal to the second signal transmission end ST2 through the fourth transistor M4. In this way, the data cable coupled to the external interface receives the data in the mobile terminal, and transmits the data to the external device coupled to the data cable.
[0077] For example, the third transistor M3 and the fourth transistor M4 are n-type transistors. When the CC pin in the Type-C interface of the mobile phone identifies that the external device coupled to the Type-C interface is the headset, the third transistor M3 and the fourth transistor M4 need to be cut off, to disable the third switch circuit 30. In this case, the second voltage V2 that is provided by the direct current power supply (for example, the battery of the mobile phone or the external device) based on the identification result of the CC pin is at a constant low level (namely, the invalid second voltage V2).
[0078] When the CC pin in the Type-C interface of the mobile phone identifies that the external device coupled to the Type-C interface is not the headset, but another external device coupled to the data cable, for example, the charger, the mobile storage device, the mobile phone, the computer, or the like, the third transistor M3 and the fourth transistor M4 need to be conducted, to enable the third switch circuit 30. In this case, the second voltage V2 that is provided by the direct current power supply based on the identification result of the CC pin is at a constant high level (namely, the effective voltage V2).
[0079] Based on this, when the second voltage V2 is at the high level, the second voltage V2 may be provided by the external device coupled to the Type-C interface. For example, when the Type-C interface is coupled to the charger, the second voltage V2 is provided by the charger, and the charger is the direct current power supply. For another example, when the Type-C interface is coupled to the mobile storage device (for example, a USB flash drive or a removable hard disk), the battery of the mobile phone supplies power to the storage device. In this case, the storage device can provide the second voltage V2 for the gate electrode of the third transistor M3 and the gate electrode of the fourth transistor M4, and the storage device is the direct current power supply. Alternatively, the battery of the mobile phone may perform system power supply on the second voltage V2. In this case, the battery of the mobile phone is the direct current power supply.
[0080] Based on this, in the multiplexing circuit 100 provided, one of circuit structures related to the foregoing two power supply manners of the second voltage V2 may be selected and disposed. Alternatively, both circuit structures related to the foregoing two power supply manners are disposed in the multiplexing circuit 100. However, in a use process, a power supply path in which the second voltage V2 is at the high level may be formed by a gating switch selecting a circuit structure of only one power supply manner.
[0081] In addition, when the second voltage V2 is at the high level, and regardless of whether a charger power supply manner or a system power supply manner is used to provide the second voltage V2 for the third transistor M3 and the fourth transistor M4, as shown in
[0082] One end of the third resistor R3 is configured to receive the second voltage V2, and another end is coupled to the gate electrode of the third transistor M3. One end of the fourth resistor R4 is coupled to the gate electrode of the third transistor M3, and another end is grounded. In this way, a resistance value of the third resistor R3 and a resistance value of the fourth resistor R4 are set, so that the third resistor R3 and the fourth resistor R4 can divide the second voltage V2, to reduce a voltage on the gate electrode of the third transistor M3.
[0083] Similarly, the third switch circuit 30 further includes a fifth resistor R5 and a sixth resistor R6.
[0084] One end of the fifth resistor R5 is configured to receive the second voltage V2, and another end is coupled to the gate electrode of the fourth transistor M4. One end of the sixth resistor R6 is coupled to the gate electrode of the fourth transistor M4, and another end is grounded. In this way, a resistance value of the fifth resistor R5 and a resistance value of the sixth resistor R6 are set, so that the fifth resistor R5 and the sixth resistor R6 can divide the second voltage V2, to reduce a voltage on the gate electrode of the fourth transistor M4.
[0085] In this case, when the third transistor M3 and the fourth transistor M4 need to be cut off, a circuit powered by the charger or a system may be disconnected from the gate electrode of the third transistor M3 and the gate electrode of the fourth transistor M4. In this case, the fourth resistor R4 and the sixth resistor R6 in which one end of the fourth resistor R4 and one end of the sixth resistor R6 are grounded decrease a gate electrode voltage of the third transistor M3 and a gate electrode voltage of the fourth transistor M4. In this case, the second voltage V2 is at the low level, and the third transistor M3 and the fourth transistor M4 are cut off.
[0086] Based on this, a structure shown in
[0087] To resolve the foregoing problem, as shown in
[0088] In this case, the third switch circuit 30 further includes a third capacitor C3.
[0089] One end of the third capacitor C3 is coupled to the gate electrode of the third transistor M3, and another end of the third capacitor C3 is coupled to the right sound channel transmission end HSR. In this case, the right sound channel audio signal at the right sound channel transmission end HSR is transmitted to the gate electrode of the third transistor M3 through the third capacitor C3. In this case, when the right sound channel audio signal transmitted to the first signal transmission end ST1 is applied to the second electrode (S) of the third transistor M3, a voltage difference Vgs between the gate electrode and the second electrode of the third transistor M3 is equal to 0, and the third transistor M3 is still in a cut-off status. This avoids that the first signal transmission end ST1 and the first output end OP1 form a signal path used to transmit the external data or the charging voltage when the headset is inserted into the mobile phone.
[0090] Similarly, the third switch circuit 30 further includes a fourth capacitor C4. One end of the fourth capacitor C4 is coupled to the gate electrode of the fourth transistor M4, and another end of the fourth capacitor C4 is coupled to the left sound channel transmission end HSL. In this case, the left sound channel audio signal at the left sound channel transmission end HSL is transmitted to the gate electrode of the fourth transistor M4 through the fourth capacitor C4. In this case, when the left sound channel audio signal transmitted to the second signal transmission end ST2 is applied to the second electrode (S) of the fourth transistor M4, a voltage difference Vgs between the gate electrode and the second electrode of the fourth transistor M4 is equal to 0, and the fourth transistor M4 is still in the cut-off status. This avoids that the second signal transmission end ST2 and the second output end OP2 form a signal path used to transmit the external data or the charging voltage when the headset is inserted into the mobile phone.
[0091] An example in which the signal transmission between the first signal transmission end ST1 and the first output end OP1 is implemented through the third transistor M3, and the signal transmission between the second signal transmission end ST2 and the second output end OP2 is implemented through the fourth transistor M4 is used for description. In some other embodiments, if cabling space and product costs permit, the integrated switch including the NMOS transistor and the PMOS transistor may be used to replace the third transistor M3 and the fourth transistor M4.
[0092] The structure shown in
TABLE-US-00001 TABLE 1 Resistor Parameter Capacitor Parameter R1 2 kΩ C1 4.7 μF R2 2 kΩ C2 4.7 μF R3 2 kΩ or 1 kΩ C3 4.7 μF R4 1 kΩ C4 4.7 μF R5 2 kΩ or 1 kΩ R6 1 kΩ
[0093] It can be noted that, when the external device (for example, the charger) is used to provide the second voltage V2 (which is at the high level) for the gate electrode of the third transistor M3 and the gate electrode of the fourth transistor M4, a resistance value of the third resistor R3 and a resistance value of the fifth resistor R5 may be 2 kΩ in consideration of a high voltage provided by the charger. When the second voltage V2 (which is at the high level) is provided to the gate electrode of the third transistor M3 and the gate electrode of the fourth transistor M4 in the system power supply manner, the resistance value of the third resistor R3 and the resistance value of the fifth resistor R5 may be 1 kΩ.
[0094] In a THD indice test process, as shown in
[0095] In addition, after an eye pattern test is performed on the external interface coupled to the multiplexing circuit 100, for example, the Type-C interface, an obtained eye pattern is comparatively centralized. Therefore, a signal transmission effect of the external interface coupled to the multiplexing circuit 100 is excellent. Therefore, the multiplexing circuit 100 provided not only has a simple structure and relatively low costs, but also has the comparatively high THD indice, to ensure the high audio quality in an audio transmission process. When the multiplexing circuit 100 is manufactured, the first transistor M1, the second transistor M2, the third transistor M3, and the fourth transistor M4 that have relatively small parasitic capacitance may be selected to further improve the signal transmission effect of the external interface coupled to the multiplexing circuit 100.
[0096] Some embodiments provide a mobile terminal. As shown in
[0097] As shown in
[0098] A first signal transmission end ST1 of the multiplexing circuit 100 is coupled to the D+ pin, a second signal transmission end ST2 is coupled to the D− pin, and a right sound channel transmission end HSR and a left sound channel transmission end HSL are coupled to the audio codec 113.
[0099] The audio decoder 103 is coupled to the central processing unit 112 through a serial low-power inter-chip media bus, (SLIMbus) and an internal-integrated circuit (I.sup.2C) bus.
[0100] When the external device is a headset, the headset is coupled to the D+ pin and the D− pin of the Type-C interface. In this case, the audio codec 113 is configured to: decode an audio signal output by the central processing unit 112, provide a right sound channel audio signal to the right sound channel transmission end HSR, and provide a left sound channel audio signal to the left sound channel transmission end HSL.
[0101] In this case, in the multiplexing circuit 100, a first transistor M1 and a second transistor M2 are conducted; and a third transistor M3 and a fourth transistor M4 are cut off. The right sound channel transmission end HSR and the left sound channel transmission end HSL separately transmit the right sound channel audio signal and the left sound channel audio signal to the D+ pin and the D− pin through the first transistor M1 and the second transistor M2, so that a user can receive the audio signal through the headset.
[0102] In addition, a first output end OP1 and a second output end OP2 of the multiplexing circuit 100 are coupled to the central processing unit 112. When the external device is a non-headset device such as a charger, a mobile phone, a computer, a tablet computer, a vehicle-mounted device, or a mobile storage device, the external device is coupled to the D+ pin and the D− pin of the Type-C interface.
[0103] In this case, in the multiplexing circuit 100, the third transistor M3 and the fourth transistor M4 are conducted; and the first transistor M1 and the second transistor M2 are cut off. A signal of the D+ pin is transmitted to the first output end OP1 through the third transistor M3, and then provided to the central processing unit 112 by the first output end OP1. A signal of the D− pin is transmitted to the second output end OP2 through the fourth transistor M4, and then provided to the central processing unit 112 by the second output end OP2. In this way, transmission of a charging voltage or external data is implemented. Alternatively, the first output end OP1 of the multiplexing circuit 100 may transmit data in the central processing unit 112 of the mobile terminal to the D+ pin through the third transistor M3, and to the D− pin through the fourth transistor M4. In this case, after receiving the data in the central processing unit 112, a data cable coupled to the Type-C interface transmits the data to the external device coupled to the data cable.
[0104] In addition, when the headset is coupled to the Type-C interface, a microphone (MIC) of the headset is coupled to an SBU1 pin of the Type-C interface, and a ground end of the headset is coupled to an SBU2 pin of the Type-C interface. A signal at a MIC end of the headset can be transmitted to the audio codec 113, and then is transmitted to the central processing unit after being encoded by the audio codec 113.
[0105] In addition, the SBU1 pin and the SBU2 pin of the Type-C interface are located on a side A and a side B, respectively, of the Type-C interface. In this case, when the headset is inserted into the Type-C interface in a forward insertion (electrically coupled to the side A) manner, the MIC end of the headset is coupled to the SBU1 pin, the ground end is coupled to the SBU2 pin, and the signal at the MIC end can be normally input to the audio codec 113.
[0106] However, when the headset is inserted into the Type-C interface in a reverse insertion (electrically coupled to the side B) manner, the MIC end of the headset is coupled to the SBU2 pin, the ground end is coupled to the SBU1 pin, and the signal at the MIC end cannot be normally input to the audio codec 113. Therefore, the mobile terminal further includes an analog handover switch 114. The analog handover switch 114 may be used to switch a manner in which the SBU1 pin and the SBU2 pin are coupled to the headset. Therefore, regardless of whether the headset uses the forward insertion manner or the reverse insertion manner, it can be ensured that the MIC end of the headset is coupled to the SBU1 pin, and the ground end is coupled to the SBU2 pin.
[0107] In addition, a CC pin disposed on the Type-C interface may identify a type of the external device coupled to the Type-C interface. When the external device is identified to be the headset, a signal path that is in the multiplexing circuit 100 and that is used to transmit audio is enabled. Alternatively, when the external device is identified to be the non-headset device such as the charger, the mobile phone, the computer, or the mobile storage device, a signal path that is in the multiplexing circuit 100 and that is used to transmit the charging voltage or the external data is enabled.
[0108] It can be noted that the mobile terminal may include a mobile phone, a tablet computer, a personal digital assistant (PDA), a vehicle-mounted computer, and the like. A specific form of the mobile terminal is not limited in the embodiments. For ease of description, an example in which the mobile terminal is the mobile phone is used for description in the embodiments. In addition, the mobile terminal has a technical effect that is the same as that of the multiplexing circuit 100 provided in the foregoing embodiments. Details are not described herein again.
[0109] Some embodiments provide a working process of a terminal having any multiplexing circuit 100 described above. The terminal has the foregoing external interface, for example, a Type-C interface, and the Type-C includes a CC pin. As shown in
[0110] S101: A CC pin identifies a type of an external device coupled to a Type-C interface, and identifies that the external device coupled to the Type-C interface is a headset.
[0111] S102: A power supply in a terminal provides a valid first voltage V1 for a first switch circuit 10 and a second switch circuit 20, and provides an invalid second voltage V2 for a third switch circuit 30.
[0112] S103: The terminal controls, through the effective first voltage V1, the first switch circuit 10 to be enabled, where the first switch circuit 10 transmits, to a first signal transmission end ST1, a right sound channel audio signal provided by a right sound channel transmission end HSR, and loads the right sound channel audio signal to a gate electrode of a first transistor M1 in the first switch circuit 10.
[0113] As shown in
[0114] S104: The terminal controls, through the effective first voltage V1, the second switch circuit 20 to be enabled, where the second switch circuit 20 transmits, to a second signal transmission end ST2, a left sound channel audio signal provided by a left sound channel transmission end HSL, and loads the left sound channel audio signal to a gate electrode of a second transistor M2 in the second switch circuit 20.
[0115] Similarly, as shown in
[0116] S105: The terminal controls, through the invalid second voltage V2, the third switch circuit 30 to be disabled.
[0117] As shown in
[0118] Some other embodiments provide a working process of a terminal having any multiplexing circuit 100 described above. The terminal has the foregoing external interface, for example, a Type-C interface, and the Type-C includes a CC pin. As shown in
[0119] S201: A CC pin identifies a type of an external device coupled to a Type-C interface, and identifies that the external device coupled to the Type-C interface is not a headset, but another external device coupled to a data cable, for example, a charger, a mobile storage device, a mobile phone, a computer, or the like.
[0120] S202: A power supply in a terminal provides an invalid first voltage V1 for a first switch circuit 10 and a second switch circuit 20, and provides a valid second voltage V2 for a third switch circuit 30.
[0121] S203: The terminal controls, through the invalid first voltage V1, the first switch circuit 10 and the second switch circuit 20 to be disabled.
[0122] As shown in
[0123] S204: The terminal controls, through the effective second voltage V2, the third switch circuit 30 to be enabled, where the third switch circuit 30 transmits, to a first output end OP1, a signal provided by a first signal transmission end ST1, and transmits, to a second output end OP2, a signal provided by a second signal transmission end ST2.
[0124] As shown in
[0125] It can be noted that the terminal may be a computer, a smart television, a vehicle-mounted device, or the like. Alternatively, the terminal may be the foregoing mobile terminal, such as the mobile phone or the tablet computer.
[0126] The foregoing descriptions are merely specific implementations, but are not intended to limit the protection scope. Any variation or replacement within the technical scope disclosed herein shall fall within the protection scope.