CN109144933B - USB Type-C interface circuit and electronic equipment - Google Patents

USB Type-C interface circuit and electronic equipment Download PDF

Info

Publication number
CN109144933B
CN109144933B CN201810929672.9A CN201810929672A CN109144933B CN 109144933 B CN109144933 B CN 109144933B CN 201810929672 A CN201810929672 A CN 201810929672A CN 109144933 B CN109144933 B CN 109144933B
Authority
CN
China
Prior art keywords
module
usb type
bus
rerouting
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810929672.9A
Other languages
Chinese (zh)
Other versions
CN109144933A (en
Inventor
孙长宇
郝宁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201810929672.9A priority Critical patent/CN109144933B/en
Publication of CN109144933A publication Critical patent/CN109144933A/en
Application granted granted Critical
Publication of CN109144933B publication Critical patent/CN109144933B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones

Abstract

The disclosure relates to a USB Type-C interface circuit and an electronic device. This USB Type-C interface circuit includes: the system comprises a USB Type-C female seat, a path changing module, a PMIC module and an AP module; the circuit switching module is characterized in that a first end is connected with a com1 end of the USB Type-C female seat, a second end is connected with a com2 end of the USB Type-C female seat, a third end is connected with a DP end of the PMIC module, a fourth end is connected with a DM end of the PMIC module, a fifth end is connected with an SBU1 end of the USB Type-C female seat, a sixth end is connected with an SBU2 end of the USB Type-C female seat, a seventh end is connected with a CC1 end of the USB Type-C female seat, an eighth end is connected with a CC2 end of the USB Type-C female seat, a ninth end is connected with a CC1 end of the PMIC module, and a tenth end is connected with a CC2 end of the PMIC module; the switch module is also connected to the AP module via an I2C bus and an I2S bus. This technical scheme can realize the function of normal transmission audio information when the public head of the USB Type-C of earphone inserts USB Type-C female seat under the prerequisite that does not influence USB Type-C interface circuit data transmission function to audio signal's loss when transmitting has been reduced, thereby user experience has been improved.

Description

USB Type-C interface circuit and electronic equipment
Technical Field
The utility model relates to the field of electronic technology, especially, relate to USBType-C interface circuit and electronic equipment.
Background
In recent years, with the enthusiasm of market competition of smart phones, in consideration of the fact that the cost of a 3.5mm audio interface on a smart phone is high, the 3.5mm audio interface occupies more space in the smart phone, in order to improve the competitiveness of products at home, all large mobile phone manufacturers do not provide a 3.5mm audio interface for the smart phone any more, but replace the 3.5mm audio interface with a USB interface, when the smart phone plays audio information or collects audio information, an earphone is used as one end of a USB device to be connected with the USB interface of the smart phone, and the audio information is output or collected through the USB interface.
Disclosure of Invention
To overcome the problems in the related art, embodiments of the present disclosure provide a USB Type-C interface circuit and an electronic device. The technical scheme is as follows:
according to a first aspect of embodiments of the present disclosure, there is provided a USB Type-C interface circuit, including:
the system comprises a USB Type-C female seat, a path changing module, a PMIC module and an AP module;
the first end of the commutation module is connected with the com1 end of the USB Type-C female seat, the second end of the commutation module is connected with the com2 end of the USB Type-C female seat, the third end of the commutation module is connected with the DP end of the PMIC module, the fourth end of the commutation module is connected with the DM end of the PMIC module, the fifth end of the commutation module is connected with the SBU1 end of the USBType-C female seat, the sixth end of the commutation module is connected with the SBU2 end of the USB Type-C female seat, the seventh end of the commutation module is connected with the CC1 end of the USB Type-C female seat, the eighth end of the commutation module is connected with the CC2 end of the USB Type-C female seat, the ninth end of the commutation module is connected with the CC1 end of the PMIC module, and the tenth end of the commutation module is connected;
the switching module is also connected with the AP module through an I2C bus and an I2S bus;
the switching module is used for controlling the first end of the switching module to be conducted with the third end of the switching module and controlling the second end of the switching module to be conducted with the fourth end of the switching module when the USB Type-C male head of the earphone is determined not to be inserted into the USB Type-C female seat;
and the switching module is further used for controlling the first end of the switching module and the second end of the switching module to be conducted with the I2C bus and the I2S bus when the USB Type-C male connector of the earphone is inserted into the USB Type-C female socket, so that the AP module transmits audio data to the first end of the switching module and the second end of the switching module through the I2C bus and the I2S bus.
In one embodiment, the rerouting module is further configured to control the sixth terminal of the rerouting module to be conducted with the I2C bus and the I2S bus when it is determined that the USB Type-C male plug of the earphone is inserted into the USB Type-C female socket and the impedance between the fifth terminal of the rerouting module and the sixth terminal of the rerouting module is greater than or equal to the preset impedance value, so that the AP module receives audio data from the sixth terminal of the rerouting module through the I2C bus and the I2S bus.
In an embodiment, the rerouting module is further configured to control the fifth terminal of the rerouting module to be conducted with the I2C bus and the I2S bus when it is determined that the USB Type-C male plug of the earphone is inserted into the USB Type-C female socket and the impedance between the fifth terminal of the rerouting module and the sixth terminal of the rerouting module is smaller than the preset impedance value, so that the AP module receives the audio data from the fifth terminal of the rerouting module through the I2C bus and the I2S bus.
In an embodiment, the rerouting module is further configured to control the fifth terminal of the rerouting module to be conducted with the I2C bus and the I2S bus when it is determined that the USB Type-C male plug of the earphone is inserted into the USB Type-C female socket and the impedance between the sixth terminal of the rerouting module and the fifth terminal of the rerouting module is greater than or equal to the preset impedance value, so that the AP module receives audio data from the fifth terminal of the rerouting module through the I2C bus and the I2S bus.
In one embodiment, the rerouting module is further configured to control the sixth terminal of the rerouting module to be conducted with the I2C bus and the I2S bus when it is determined that the USB Type-C male plug of the headset is not inserted into the USB Type-C female socket and the impedance between the sixth terminal of the rerouting module and the fifth terminal of the rerouting module is smaller than the preset impedance value, so that the AP module receives audio data from the sixth terminal of the rerouting module through the I2C bus and the I2S bus.
In an embodiment, the rerouting module is further configured to control the fifth terminal of the rerouting module to be conducted with the I2C bus and the I2S bus when it is determined that the USB Type-C male plug of the earphone is inserted into the USB Type-C female socket and the voltage difference between the first terminal of the rerouting module and the second terminal of the rerouting module is greater than or equal to a preset voltage difference, so that the AP module receives audio data from the fifth terminal of the rerouting module through the I2C bus and the I2S bus.
In an embodiment, the rerouting module is further configured to control the sixth terminal of the rerouting module to be conducted with the I2C bus and the I2S bus when it is determined that the USB Type-C male connector of the earphone is inserted into the USB Type-C female socket and the voltage difference between the first terminal of the rerouting module and the second terminal of the rerouting module is smaller than the preset voltage difference, so that the AP module receives the audio data from the sixth terminal of the rerouting module through the I2C bus and the I2S bus.
In one embodiment, the rerouting module is further configured to determine that the USB Type-C male plug of the earphone is inserted into the USB Type-C female socket when the seventh end of the rerouting module and the eighth end of the rerouting module are grounded simultaneously
In one embodiment, the USB Type-C female socket and the switching module are arranged on the same circuit board.
According to a second aspect of embodiments of the present disclosure, there is provided an electronic device comprising the USB Type-C interface circuit of any one of the first aspects of embodiments of the present disclosure.
In the technical scheme provided by the embodiment of the disclosure, by setting the switch module, when it is determined that the USB Type-C male head of the earphone is not inserted into the USB Type-C female seat, the first end of the switch module is controlled to be conducted with the third end of the switch module, and the second end of the switch module is controlled to be conducted with the fourth end of the switch module, so that when the USB Type-C male head of the earphone is not inserted into the USB Type-C female seat, the com1 end of the USB Type-C female seat is conducted with the DP end of the PMIC module, the com2 end of the USB Type-C female seat is conducted with the DM end of the PMIC module, and data can be transmitted from the com1 end/com 2 end of the USB Type-C male head to the DP end/DM end of the PMIC module when the USB Type-C male head of the earphone is not inserted into the USB Type-C female seat; and when the USB Type-C male head of the earphone is inserted into the USB Type-C female seat, the first end of the switching module and the second end of the switching module are controlled to be conducted with the I2C bus and the I2S bus, so that the AP module transmits audio data to the first end of the switching module and the second end of the switching module through the I2C bus and the I2S bus, and the earphone can normally play audio, in the USB Type-C interface circuit, because the audio signals are less lost in the I2C bus and the I2S bus, and the audio signals can be directly transmitted to the USB Type-C male head from the switching module, the scheme can realize the function of normally transmitting audio information when the USB Type-C male head of the earphone is inserted into the USB Type-C female seat without affecting the data transmission function of the USB Type-C interface circuit, and reduce the loss of the audio signals during transmission, the structure of the USB Type-C interface circuit is simplified, and therefore user experience is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a schematic block diagram illustrating an interface circuit according to an exemplary embodiment;
FIG. 2 is a schematic diagram illustrating the structure of a USB Type-C interface circuit in accordance with an exemplary embodiment;
FIG. 3 is a block diagram illustrating an electronic device in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
With the rapid development of scientific technology and the continuous improvement of living standards of people, in recent years, with the market competition of smart phones, considering that the cost of a 3.5mm audio interface on the smart phone is high, and the 3.5mm audio interface occupies more space in the smart phone, in order to improve the competitiveness of products at home, all large mobile phone manufacturers begin to avoid providing the 3.5mm audio interface for the smart phone, but replace the 3.5mm audio interface with a USB interface, when the smart phone plays audio information or collects audio information, one end of an earphone serving as a USB (Universal Serial Bus) device is connected with the USB interface of the smart phone, and the audio information is output or collected through the USB interface.
In the related art, the channel switching module is arranged in the USB Type-C interface circuit, so that an L channel end/R channel end of a Codec module and a DP end/DM end of a USB can multiplex a COM1 end/COM 2 end of the USBType-C interface, and the purpose of outputting audio information through the USB Type-C interface is achieved on the premise of not influencing the data transmission function of the USB Type-C interface.
As shown in fig. 1, an embodiment of the present disclosure provides an interface circuit 100, which includes a PMIC module (Power Management integrated circuit) 101, a Codec module 102, a USB (Universal Serial Bus) Type-C socket 103, a first rerouting module 104, and a second rerouting module 105.
The first end 1041 of the first switch module 104 is connected to the com1 end 1031 of the USB Type-C female socket 103, the second end 1042 of the first switch module 104 is connected to the com2 end 1032 of the USB Type-C female socket 103, the third end 1043 of the first switch module 104 is connected to the DP end 1011 of the PMIC module 101, the fourth end 1044 of the first switch module 104 is connected to the DM end 1012 of the PMIC module 101, the fifth end 1045 of the first switch module 104 is connected to the L channel end of the Codec module 102, the sixth end 1046 of the first switch module 104 is connected to the R channel end 1022 of the Codec module 102, and the Codec module 102 is connected to the AP (application Processor, AP module application Processor) module 106 through an I2C bus and an I2S bus. The CC1 terminal 1033 of the USBType-C female housing 103 is connected to the seventh terminal 1013 of the PMIC module 101, and the CC2 terminal 1034 of the USB Type-C female housing 103 is connected to the eighth terminal 1014 of the PMIC module 101.
The first end 1051 of the second rerouting module 105 is connected to the SBU1 end 1032 of the USB Type-C female socket 103, the second end 1052 of the second rerouting module 105 is connected to the SBU2 end 1034 of the USB Type-C female socket 103, and the third end 1053 of the second rerouting module 105 is connected to the MIC end 1023 of the Codec module 102.
When the PMIC module does not detect that the USB Type-C male connector of the earphone is not inserted into the USB Type-C female seat, the AP module maintains the first end of the first commutation module to be conducted with the third end of the first commutation module, the com1 end of the USB Type-C female seat is conducted with the DP end of the PMIC module, and the second end of the first commutation module is maintained to be conducted with the fourth end of the first commutation module, so that the com2 end of the USB Type-C female seat is conducted with the DM end of the PMIC module.
When the PMIC module detects that the USB Type-C male head of the earphone is inserted into the USB Type-C female seat, the PMIC module determines that the USB Type-C male head is inserted into the USB Type-C female seat when detecting the above condition, earphone insertion information is sent to the AP module, the AP module controls the first channel switching module to conduct the first end of the first channel switching module and the fifth end of the first channel switching module in response to the earphone insertion information, so that the com1 end of the USB Type-C female seat is conducted with the L sound channel end of the Codec module, and the second end of the first channel switching module is conducted with the sixth end of the first channel switching module, so that the com2 end of the USB Type-C female seat is conducted with the R sound channel end of the Codec module, and the audio information from the L sound channel end and the R sound channel end is transmitted to the AP module through a slim bus or I2S interface.
Although the scheme can enable the L channel end/R channel end of the Codec module and the DP end/DM end of the USB to multiplex the COM1 end/COM 2 end of the USBType-C interface, so that the purpose of outputting audio information through the USB Type-C interface is achieved on the premise of not influencing the data transmission function of the USB Type-C interface, due to the fact that audio data are transmitted between the USB Type-C interface female seat and the first routing changing module and transmitted between the USB Type-C interface female seat and the second routing changing module, loss of the audio signals during transmission is large possibly due to reasons of long wiring length and the like, and user experience is damaged.
An embodiment of the present disclosure provides a USB Type-C interface circuit, as shown in fig. 2, the USB Type-C interface circuit 200 includes:
the mobile terminal comprises a USB Type-C female seat 201, a commutation module 202, a PMIC module 203 and an AP module 204.
The first end 2021 of the rerouting module 202 is connected to the com1 end 2011 of the USB Type-C female housing 201, the second end 2022 is connected to the com2 end 2012 of the USB Type-C female housing 201, the third end 2023 is connected to the DP end 2031 of the PMIC module 203, the fourth end 2024 is connected to the DM end 2032 of the PMIC module 203, the fifth end 2025 is connected to the SBU1 end 2013 of the USB Type-C female housing 201, the sixth end 2026 is connected to the SBU2 end 2014 of the USB Type-C female housing 201, the seventh end 2027 is connected to the CC1 end 2015 of the USB Type-C female housing 201, the eighth end 2028 is connected to the CC2 end 2016 of the USB Type-C female housing 201, the ninth end 2029 is connected to the CC 2031 end 2033 of the PMIC module 203, and the tenth end is connected to the CC2 end 2020 of the PMIC module 203.
The switch module 202 is also connected to the AP module 204 via an I2C bus and an I2S bus.
The switch module 202 is configured to control the first end 2021 of the switch module 202 to be conducted with the third end 2023 of the switch module 202, and control the second end 2022 of the switch module 202 to be conducted with the fourth end 2024 of the switch module 202 when it is determined that the USB Type-C male connector of the earphone is not inserted into the USB Type-C female connector 201.
The switch module 202 is further configured to control the first end 2021 of the switch module 202 and the second end 2022 of the switch module 202 to be conducted with the I2C bus and the I2S bus when it is determined that the USB Type-C male plug of the earphone is inserted into the USB Type-C female socket 201, so that the AP module 204 transmits audio data to the first end 2021 of the switch module 202 and the second end 2022 of the switch module 202 through the I2C bus and the I2S bus.
Exemplarily, the commutation module can determine that the USB Type-C male plug of the earphone is inserted into the USB Type-C female socket when the seventh end of the commutation module and the eighth end of the commutation module are grounded simultaneously.
In the technical scheme provided by the embodiment of the disclosure, by setting the switch module, when it is determined that the USB Type-C male head of the earphone is not inserted into the USB Type-C female seat, the first end of the switch module is controlled to be conducted with the third end of the switch module, and the second end of the switch module is controlled to be conducted with the fourth end of the switch module, so that when the USB Type-C male head of the earphone is not inserted into the USB Type-C female seat, the com1 end of the USB Type-C female seat is conducted with the DP end of the PMIC module, the com2 end of the USB Type-C female seat is conducted with the DM end of the PMIC module, and data can be transmitted from the com1 end/com 2 end of the USB Type-C male head to the DP end/DM end of the PMIC module when the USB Type-C male head of the earphone is not inserted into the USB Type-C female seat; and when the USB Type-C male connector of the earphone is inserted into the USB Type-C female connector, the first end of the switching module and the second end of the switching module are controlled to be communicated with the I2C bus and the I2S bus, so that the AP module transmits audio data to the first end of the switching module and the second end of the switching module through the I2C bus and the I2S bus, and the earphone can normally play audio.
In one embodiment, the rerouting module is further configured to control the sixth terminal of the rerouting module to be conducted with the I2C bus and the I2S bus when it is determined that the USB Type-C male plug of the earphone is inserted into the USB Type-C female socket and the impedance between the fifth terminal of the rerouting module and the sixth terminal of the rerouting module is greater than or equal to the preset impedance value, so that the AP module receives audio data from the sixth terminal of the rerouting module through the I2C bus and the I2S bus.
For example, the impedance from the fifth terminal to the sixth terminal of the commutation module may be understood as applying a voltage with a preset voltage value to the fifth terminal, obtaining a detected current value of a current between the fifth terminal and the sixth terminal of the commutation module, and obtaining the impedance from the fifth terminal to the sixth terminal of the commutation module according to the detected current value and the preset voltage value. In contrast, the impedance from the sixth terminal to the fifth terminal of the commutation module may be understood as applying a voltage with a preset voltage value to the sixth terminal, obtaining a detected current value of a current between the sixth terminal and the fifth terminal of the commutation module, and obtaining the impedance from the sixth terminal to the fifth terminal of the commutation module according to the detected current value and the preset voltage value.
When the USB Type-C male head of the earphone is inserted into the USB Type-C female seat and the impedance between the fifth end of the path changing module and the sixth end of the path changing module is larger than or equal to the preset impedance value, it can be considered that the reverse insertion occurs when the male USB Type-C head of the earphone is inserted into the female USB Type-C socket, and at this time, the SBU1 terminal of the male USB Type-C head of the earphone may be erroneously conducted with the SBU2 terminal of the female USB Type-C socket, even if the SBU1 terminal of the male USB Type-C connector cannot be conducted with the SBU1 terminal of the female USB Type-C connector, since the SBU1 terminal of the USB Type-C male of the headset is defined as the MIC terminal, is used for transmitting audio signals collected by a microphone, and the fifth end of the switching module is connected with the SBU1 end of the USB Type-C female seat, therefore, the above-mentioned reverse insertion condition may result in that the AP module cannot receive the audio signal from the fifth end of the switch module through the I2C bus and the I2S bus.
When the fact that the impedance between the USB Type-C male head of the earphone is inserted into the USB Type-C female seat and the fifth end of the path switching module and the sixth end of the path switching module is larger than or equal to the impedance preset value is determined, namely when the fact that the reverse insertion situation occurs when the USB Type-C male head of the earphone is inserted into the USB Type-C female seat is determined, the sixth end of the path switching module is controlled to be communicated with an I2C bus and an I2S bus, namely, the SBU2 end of the USB Type-C female seat is communicated with the I2C bus and the I2S bus, the AP module is enabled to receive audio data from the SBU1 end of the USB Type-C male head connected with the SBU2 end of the USB Type-C female seat through the I2C bus and the I2S bus, the audio signal collected by the microphone is ensured to be transmitted to the AP module, the success rate of audio signal transmission is improved, and user experience is improved.
In an embodiment, the rerouting module is further configured to control the fifth terminal of the rerouting module to be conducted with the I2C bus and the I2S bus when it is determined that the USB Type-C male plug of the earphone is inserted into the USB Type-C female socket and the impedance between the fifth terminal of the rerouting module and the sixth terminal of the rerouting module is smaller than the preset impedance value, so that the AP module receives the audio data from the fifth terminal of the rerouting module through the I2C bus and the I2S bus.
When the impedance between the fifth end of the USB Type-C female seat and the sixth end of the switching module is smaller than the impedance preset value when the USB Type-C male head of the earphone is inserted into the USB Type-C female seat, namely when the impedance between the fifth end of the switching module and the sixth end of the switching module is determined to be smaller than the impedance preset value, namely when the USB Type-C male head of the earphone is inserted into the USB Type-C female seat, the fifth end of the switching module is controlled to be communicated with an I2C bus and an I2S bus, namely the SBU1 end of the USB Type-C female seat is communicated with the I2C bus and the I2S bus, so that the AP module receives audio data from the SBU1 end of the USB Type-C male head connected with the SBU1 end of the USB Type-C female seat through the I2C bus and the I2S bus, the audio signal collected by the microphone is ensured to be transmitted to the AP module, the success rate of audio signal transmission is improved, and the user experience is improved.
In an embodiment, the rerouting module is further configured to control the fifth terminal of the rerouting module to be conducted with the I2C bus and the I2S bus when it is determined that the USB Type-C male plug of the earphone is inserted into the USB Type-C female socket and the impedance between the sixth terminal of the rerouting module and the fifth terminal of the rerouting module is greater than or equal to the preset impedance value, so that the AP module receives audio data from the fifth terminal of the rerouting module through the I2C bus and the I2S bus.
When the fact that the impedance between the sixth end of the switching module and the fifth end of the switching module is larger than or equal to the impedance preset value when the USB Type-C male head of the earphone is inserted into the USB Type-C female seat is determined, namely when the situation that reverse insertion does not occur when the USB Type-C male head of the earphone is inserted into the USB Type-C female seat is determined, the fifth end of the switching module is controlled to be communicated with an I2C bus and an I2S bus, namely the SBU1 end of the USB Type-C female seat is communicated with the I2C bus and the I2S bus, the AP module is enabled to receive audio data from the SBU1 end of the USB Type-C male head of the earphone connected with the SBU1 end of the USB Type-C female seat through the I2C bus and the I2S bus, the audio signal collected by the microphone is ensured to be transmitted to the AP module, the success rate of audio signal transmission is improved, and user experience is improved.
In one embodiment, the rerouting module is further configured to control the sixth terminal of the rerouting module to be conducted with the I2C bus and the I2S bus when it is determined that the USB Type-C male plug of the headset is not inserted into the USB Type-C female socket and the impedance between the sixth terminal of the rerouting module and the fifth terminal of the rerouting module is smaller than the preset impedance value, so that the AP module receives audio data from the sixth terminal of the rerouting module through the I2C bus and the I2S bus.
When the fact that the USB Type-C male head of the earphone is not inserted into the USB Type-C female seat and the impedance between the sixth end of the switching module and the fifth end of the switching module is smaller than the impedance preset value is determined, namely when the fact that the reverse insertion condition occurs when the USB Type-C male head of the earphone is inserted into the USB Type-C female seat is determined, the sixth end of the switching module is controlled to be communicated with an I2C bus and an I2S bus, namely the SBU2 end of the USB Type-C female seat is communicated with the I2C bus and the I2S bus, the AP module is enabled to receive audio data from the SBU1 end of the USB Type-C male head connected with the SBU2 end of the USB Type-C female seat through the I2C bus and the I2S bus, the audio signal collected by the microphone is ensured to be transmitted to the AP module, the success rate of audio signal transmission is improved, and user experience is improved.
In an embodiment, the rerouting module is further configured to control the fifth terminal of the rerouting module to be conducted with the I2C bus and the I2S bus when it is determined that the USB Type-C male plug of the earphone is inserted into the USB Type-C female socket and the voltage difference between the first terminal of the rerouting module and the second terminal of the rerouting module is greater than or equal to a preset voltage difference, so that the AP module receives audio data from the fifth terminal of the rerouting module through the I2C bus and the I2S bus.
For example, the preset voltage difference may be 150 mV.
When the voltage difference value between the first end of the USB Type-C female seat and the second end of the switching module is determined to be inserted into the USB Type-C female seat of the earphone and be greater than or equal to the preset voltage difference value, namely when the situation that reverse insertion does not occur when the USB Type-C male head of the earphone is determined to be inserted into the USB Type-C female seat is determined, the fifth end of the switching module is controlled to be conducted with an I2C bus and an I2S bus, namely, the SBU1 end of the USB Type-C female seat is conducted with the I2C bus and the I2S bus, so that the AP module receives audio data from the SBU1 end of the USB Type-C male head of the earphone connected with the SBU1 end of the USB Type-C female seat through the I2C bus and the I2S bus, the audio signal collected by the microphone is ensured to be transmitted to the AP module, the success rate of audio signal transmission is improved, and the user experience is improved.
In an embodiment, the rerouting module is further configured to control the sixth terminal of the rerouting module to be conducted with the I2C bus and the I2S bus when it is determined that the USB Type-C male connector of the earphone is inserted into the USB Type-C female socket and the voltage difference between the first terminal of the rerouting module and the second terminal of the rerouting module is smaller than the preset voltage difference, so that the AP module receives the audio data from the sixth terminal of the rerouting module through the I2C bus and the I2S bus.
When the voltage difference value between the first end of the USB Type-C male head of the earphone and the second end of the channel switching module is smaller than the preset voltage difference value, namely when the situation that reverse insertion occurs when the USB Type-C male head of the earphone is inserted into the USB Type-C female seat is determined, the sixth end of the channel switching module is controlled to be conducted with an I2C bus and an I2S bus, namely the SBU2 end of the USB Type-C female seat is conducted with the I2C bus and the I2S bus, so that the AP module receives audio data from the SBU1 end of the earphone USB Type-C male head connected with the SBU2 end of the USB Type-C female seat through the I2C bus and the I2S bus, the audio signal collected by the microphone is ensured to be transmitted to the AP module, the success rate of audio signal transmission is improved, and the user experience is improved.
In one embodiment, the USB Type-C female socket and the switching module are arranged on the same circuit board.
Through all setting up USB Type-C female seat and the module of commuting the way on same circuit board, can shorten USBType-C female seat to the module of commuting between the line length of walking to reduce the loss of audio signal when walking the line.
Embodiments of the present disclosure provide an electronic device, such as the electronic device 300 shown in fig. 3, including the USB Type-C interface circuit 301 shown in fig. 2.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A USBType-C interface circuit, comprising: the system comprises a USB Type-C female seat, a path changing module, a PMIC module and an AP module;
the first end of the route changing module is connected with the DP end of the USB Type-C female seat, the second end of the route changing module is connected with the DM end of the USB Type-C female seat, the third end of the route changing module is connected with the DP end of the PMIC module, the fourth end of the route changing module is connected with the DM end of the PMIC module, the fifth end of the route changing module is connected with the SBU1 end of the USB Type-C female seat, the sixth end of the route changing module is connected with the SBU2 end of the USB Type-C female seat, the seventh end of the route changing module is connected with the CC1 end of the USB Type-C female seat, the eighth end of the route changing module is connected with the CC2 end of the USB Type-C female seat, the ninth end of the route changing module is connected with the CC1 end of the PMIC module, and the tenth end of the route changing module is;
the switch module is also connected with the AP module through an I2C bus and an I2S bus;
the switching module is used for controlling the first end of the switching module to be conducted with the third end of the switching module and controlling the second end of the switching module to be conducted with the fourth end of the switching module when the USB Type-C male head of the earphone is not inserted into the USB Type-C female seat;
the switching module is further configured to control the first end of the switching module and the second end of the switching module to be conducted with the I2C bus and the I2S bus when it is determined that the USB Type-C male connector of the headset is inserted into the USB Type-C female socket, so that the AP module transmits audio data to the first end of the switching module and the second end of the switching module through the I2C bus and the I2S bus.
2. The USBType-C interface circuit of claim 1, wherein the rerouting module is further configured to control the sixth terminal of the rerouting module to conduct with the I2C bus and the I2S bus, so that the AP module receives audio data from the sixth terminal of the rerouting module through the I2C bus and the I2S bus, when it is determined that the USB Type-C male connector of the earphone is inserted into the USB Type-C female socket and the impedance between the fifth terminal of the rerouting module and the sixth terminal of the rerouting module is greater than or equal to a preset impedance value.
3. The USBType-C interface circuit of claim 2, wherein the rerouting module is further configured to control the fifth terminal of the rerouting module to conduct with the I2C bus and the I2S bus, so that the AP module receives audio data from the fifth terminal of the rerouting module through the I2C bus and the I2S bus, when it is determined that the USBType-C male connector of the earphone is inserted into the USBType-C female socket and the impedance between the fifth terminal of the rerouting module and the sixth terminal of the rerouting module is smaller than the preset impedance value.
4. The USBType-C interface circuit of claim 1, wherein the rerouting module is further configured to control the fifth terminal of the rerouting module to conduct with the I2C bus and the I2S bus, so that the AP module receives audio data from the fifth terminal of the rerouting module through the I2C bus and the I2S bus, when it is determined that the USBType-C male plug of the earphone is inserted into the USBType-C female socket and the impedance between the sixth terminal of the rerouting module and the fifth terminal of the rerouting module is greater than or equal to the preset impedance value.
5. The USBType-C interface circuit of claim 4, wherein the rerouting module is further configured to control the sixth terminal of the rerouting module to conduct with the I2C bus and the I2S bus, so that the AP module receives audio data from the sixth terminal of the rerouting module through the I2C bus and the I2S bus, when it is determined that the USBType-C male plug of the earphone is not inserted into the USBType-C female socket and the impedance between the sixth terminal of the rerouting module and the fifth terminal of the rerouting module is smaller than a preset impedance value.
6. The USBType-C interface circuit of claim 1, wherein the rerouting module is further configured to control a fifth terminal of the rerouting module to be conducted with the I2C bus and the I2S bus, so that the AP module receives audio data from the fifth terminal of the rerouting module through the I2C bus and the I2S bus, when it is determined that the USBType-C male plug of the earphone is inserted into the USBType-C female socket and the voltage difference between the first terminal of the rerouting module and the second terminal of the rerouting module is greater than or equal to a preset voltage difference.
7. The USBType-C interface circuit of claim 6, wherein the rerouting module is further configured to control a sixth terminal of the rerouting module to be conducted with the I2C bus and the I2S bus, so that the AP module receives audio data from the sixth terminal of the rerouting module through the I2C bus and the I2S bus, when it is determined that the USBType-C male plug of the earphone is inserted into the USBType-C female socket and the voltage difference between the first terminal of the rerouting module and the second terminal of the rerouting module is smaller than the preset voltage difference.
8. The USBType-C interface circuit according to any of the claims 1 to 7, wherein the rerouting module is further configured to determine that the USBType-C male plug of the earphone is inserted into the USB Type-C female socket when the seventh end of the rerouting module and the eighth end of the rerouting module are grounded simultaneously.
9. The USB Type-C interface circuit according to any of claims 1-7, wherein the USB Type-C female socket and the rerouting module are both disposed on the same circuit board.
10. An electronic device comprising the USB Type-C interface circuit of any one of claims 1-9.
CN201810929672.9A 2018-08-15 2018-08-15 USB Type-C interface circuit and electronic equipment Active CN109144933B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810929672.9A CN109144933B (en) 2018-08-15 2018-08-15 USB Type-C interface circuit and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810929672.9A CN109144933B (en) 2018-08-15 2018-08-15 USB Type-C interface circuit and electronic equipment

Publications (2)

Publication Number Publication Date
CN109144933A CN109144933A (en) 2019-01-04
CN109144933B true CN109144933B (en) 2020-06-19

Family

ID=64789564

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810929672.9A Active CN109144933B (en) 2018-08-15 2018-08-15 USB Type-C interface circuit and electronic equipment

Country Status (1)

Country Link
CN (1) CN109144933B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106253010A (en) * 2015-06-10 2016-12-21 三星电子株式会社 For the method and apparatus providing interface
US9949047B2 (en) * 2015-10-29 2018-04-17 Samsung Electronics Co., Ltd. Method for controlling audio signal and electronic device supporting the same

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN207589106U (en) * 2017-11-03 2018-07-06 深圳市冠旭电子股份有限公司 A kind of earphone
CN108038034A (en) * 2017-12-12 2018-05-15 北京小米移动软件有限公司 Electronic equipment adjustment method, adapter, device and storage medium
CN108401498A (en) * 2018-02-06 2018-08-14 万魔声学科技有限公司 Frequency division module earphone and audio control method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106253010A (en) * 2015-06-10 2016-12-21 三星电子株式会社 For the method and apparatus providing interface
US9949047B2 (en) * 2015-10-29 2018-04-17 Samsung Electronics Co., Ltd. Method for controlling audio signal and electronic device supporting the same

Also Published As

Publication number Publication date
CN109144933A (en) 2019-01-04

Similar Documents

Publication Publication Date Title
EP2645737B1 (en) Apparatus and method for interfacing earphone
CN101917497B (en) Method and device for earphone and USB to share micro-USB interface
EP3007464A1 (en) Transmission method, mobile terminal, multi-channel earphone, and audio playing system
CN105578353B (en) By the method for the circuit and reduction crosstalk of usb audio receiver and electronic equipment coupling
JP2020515972A (en) Adapters, terminals, and adapter systems
CN105120404A (en) Audio equipment, terminal equipment and electronic equipment
US8750535B2 (en) Communications headset power provision
US8750534B2 (en) Communications headset power provision
CN108093329B (en) Peripheral type detection circuit and mobile terminal based on shared interface
CN110944076A (en) Electronic equipment and accessory with quick charging and audio transmission functions
US9774152B2 (en) Forward and backward compatible 5 pole audio plug and jack system
CN107209378B (en) Head-mounted display device and head-mounted display system
CN105635902A (en) Audio interface compatible with digital audio device and implementation method
CN111031435A (en) Audio circuit, head-mounted display equipment and head-mounted display system
CN103813228A (en) Earphones and activation method thereof
CN109144933B (en) USB Type-C interface circuit and electronic equipment
CN208863048U (en) A kind of wireless playing equipment and wear-type wireless headphone system
US8655417B2 (en) Video/audio playing apparatus with wireless signal transmission function and wireless video/audio transmission module thereof
CN103974169B (en) Apparatus for processing audio and audio-frequency processing method
CN211378222U (en) Audio circuit, head-mounted display equipment and head-mounted display system
WO2021141174A1 (en) Wireless sound device set compatible with various devices
CN209787420U (en) Circuit switching device, power adapter and electronic equipment
CN207783089U (en) Peripheral type detection circuit based on shared interface and mobile terminal
KR20090041000A (en) Method and apparatus for detecting ear jack of mobile terminal
CN110248271A (en) The playback method being wirelessly transferred using wireless headset

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant