CN108197060B - USB interface conversion device and method and mobile terminal - Google Patents

USB interface conversion device and method and mobile terminal Download PDF

Info

Publication number
CN108197060B
CN108197060B CN201810100773.5A CN201810100773A CN108197060B CN 108197060 B CN108197060 B CN 108197060B CN 201810100773 A CN201810100773 A CN 201810100773A CN 108197060 B CN108197060 B CN 108197060B
Authority
CN
China
Prior art keywords
pin
pmic
comparator
usb interface
working state
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
CN201810100773.5A
Other languages
Chinese (zh)
Other versions
CN108197060A (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.)
Shenzhen Qimai Electronic Technology Co ltd
Original Assignee
Shenzhen Qimai Electronic Technology 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 Shenzhen Qimai Electronic Technology Co ltd filed Critical Shenzhen Qimai Electronic Technology Co ltd
Priority to CN201810100773.5A priority Critical patent/CN108197060B/en
Publication of CN108197060A publication Critical patent/CN108197060A/en
Application granted granted Critical
Publication of CN108197060B publication Critical patent/CN108197060B/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/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • 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/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/38Universal adapter
    • G06F2213/3852Converter between protocols

Abstract

The invention discloses a USB interface conversion device, a method and a mobile terminal, comprising a PMIC, a USB interface, a converter and a conversion control circuit, wherein a first class pin in the converter is connected with a USB connecting pin in the PMIC, a second class pin is connected with an earphone connecting pin in the PMIC, a control signal pin is connected with an output end of the conversion control circuit, a third class pin is connected with a corresponding working pin in the USB interface, an ID pin in the USB interface is connected with an input end of the conversion control circuit, and an output end of the conversion control circuit is connected with a connecting signal pin in the PMIC; the conversion control circuit outputs a corresponding control signal according to the type of the external equipment connected with the ID pin in the USB interface, controls the converter to enter a first working state or a second working state, and controls the PMIC to enter a third working state or a fourth working state. The invention can realize the function of the earphone by inserting the earphone into the USB interface.

Description

USB interface conversion device and method and mobile terminal
Technical Field
The invention relates to the technical field of mobile terminals, in particular to a USB interface conversion device, a USB interface conversion method and a mobile terminal.
Background
With the improvement of the living standard of modern people, mobile terminals such as smart phones and PADs (PAD computers) are necessities in life.
At present, most mobile terminals have independent USB interfaces and earphone interfaces, the USB interfaces are used for USB equipment to be inserted for charging or reading and writing functions, the earphone interfaces are used for earphones to be inserted for realizing earphone functions, the USB interfaces cannot be used for earphones to be inserted for realizing earphone functions, and the earphone interfaces cannot be used for inserting USB equipment. .
Disclosure of Invention
The invention mainly aims to provide a USB interface conversion device, a USB interface conversion method and a mobile terminal, and aims to insert an earphone through a USB interface so as to realize the function of the earphone.
In order to achieve the above object, the present invention provides a USB interface conversion device, which includes a power management integrated circuit PMIC, a USB interface, a converter and a conversion control circuit,
a first pin in the converter is connected with a USB connecting pin in the PMIC, a second pin is connected with an earphone connecting pin in the PMIC, a control signal pin is connected with an output end of the conversion control circuit, a third pin is connected with a corresponding working pin in the USB interface,
an ID pin in the USB interface is connected with an input end of the conversion control circuit, and an output end of the conversion control circuit is also connected with a connection signal pin in the PMIC;
The conversion control circuit outputs a corresponding control signal according to the type of external equipment connected with the ID pin in the USB interface, controls the converter to enter a first working state or a second working state, and controls the PMIC to enter a third working state corresponding to the first working state or a fourth working state corresponding to the second working state.
Optionally, the conversion control circuit includes: a first comparator, a second comparator, a first OR gate, a second OR gate, a first diode, a second diode, a mos tube, a linear voltage output chip LDO,
one end of the LDO is respectively connected with the ID pin in the USB interface by taking one end of a first resistor as an input end, is connected with the first input end of the first comparator by a second resistor and is connected with the third input end of the second comparator by a third resistor,
the ID pin in the USB interface is also respectively connected with the second input end of the first comparator and the fourth input end of the second comparator,
the output end of the first comparator is respectively connected with one input end of the first OR gate and one input end of the second OR gate;
the output end of the second comparator is respectively connected with the other input end of the second OR gate and the grid electrode of the mos tube;
The drain electrode of the mos tube is connected with the other end of the LDO through a fourth resistor, and the source electrode of the mos tube is connected to the ground wire;
the output end of the second or gate is connected with the cathode of the second diode, and the anode of the second diode is used as the output end to be respectively connected with the control signal pin and the earphone connecting pin in the PMIC;
the output end of the first OR gate is connected with the cathode of the first diode, and the anode of the first diode is connected with the USB connecting pin in the PMIC.
Optionally, the first input terminal of the first comparator is further connected to a ground line through a fifth resistor, and the first input terminal of the second comparator is further connected to the ground line through a sixth resistor.
Optionally, a power output terminal of the PMIC is further connected to a power supply terminal of the converter and the other end of the LDO, respectively.
Optionally, the first operating state is a state in which the first class pin and the third class pin are conducted, and the second operating state is a state in which the second class pin and the third class pin are conducted.
In addition, to achieve the above object, the present invention further provides a USB interface converting method, which is applied to the USB interface converting apparatus described above, and the USB interface converting method includes:
When the USB interface is inserted into the external equipment, the conversion control circuit receives a corresponding signal;
the conversion control circuit outputs a corresponding control signal to the converter and the power management integrated circuit PMIC according to the received signal;
the converter enters a corresponding first working state or a second working state according to the received control signal, and the PMIC enters a third working state corresponding to the first working state or a fourth working state corresponding to the second working state according to the received control signal.
Optionally, the step of outputting, by the conversion control circuit according to the received information, a corresponding control signal to the converter and the power management integrated circuit PMIC includes:
a first comparator and a second comparator in the conversion control circuit are compared according to the received voltage and respectively output corresponding levels;
a second OR gate in the conversion control circuit outputs a corresponding first control signal to the converter and power management integrated circuit PMIC according to the level output by the first comparator and the second comparator;
a first OR gate in the conversion control circuit outputs a corresponding second control signal to the PMIC according to the level output by a first comparator and the voltage of a drain electrode of a mos tube in the conversion control circuit, wherein the voltage of the drain electrode of the mos tube is obtained according to the level output by the second comparator and the level of one end of the drain electrode of the mos tube, which is connected with a fourth resistor in the conversion control circuit;
The step that the PMIC enters a third working state corresponding to the first working state or a fourth working state corresponding to the second working state according to the received control signal comprises the following steps:
and the PMIC enters a third working state or a fourth working state according to the received first control signal and the second control signal.
In addition, to achieve the above object, the present invention also provides a mobile terminal, including: a power management integrated circuit PMIC, a USB interface, a converter and a conversion control circuit,
a first pin in the converter is connected with a USB connecting pin in the PMIC, a second pin is connected with an earphone connecting pin in the PMIC, a control signal pin is connected with an output end of the conversion control circuit, a third pin is connected with a corresponding working pin in the USB interface,
an ID pin in the USB interface is connected with an input end of the conversion control circuit, and an output end of the conversion control circuit is also connected with a connecting signal pin in the PMIC;
the conversion control circuit outputs a corresponding control signal according to the type of external equipment connected with an ID pin in the USB interface, controls the converter to enter a first working state or a second working state, and controls the PMIC to enter a third working state corresponding to the first working state or a fourth working state corresponding to the second working state
Optionally, the conversion control circuit includes: a first comparator, a second comparator, a first OR gate, a second OR gate, a first diode, a second diode, a mos tube, a linear voltage output chip LDO,
one end of the LDO is respectively connected with the ID pin in the USB interface by taking one end of a first resistor as an input end, is connected with the first input end of the first comparator by a second resistor and is connected with the third input end of the second comparator by a third resistor,
the ID pin in the USB interface is also respectively connected with the second input end of the first comparator and the fourth input end of the second comparator,
the output end of the first comparator is respectively connected with one input end of the first OR gate and one input end of the second OR gate;
the output end of the second comparator is respectively connected with the other input end of the second OR gate and the grid electrode of the mos tube;
the drain electrode of the mos tube is connected with the other end of the LDO through a fourth resistor, and the source electrode of the mos tube is connected to the ground wire;
the output end of the second or gate is connected with the cathode of the second diode, and the anode of the second diode is respectively connected with the control signal pin and the earphone connecting pin in the PMIC;
And the output end of the first OR gate is connected with the cathode of the first diode, and the anode of the first diode is used as the output end to be connected with a USB connecting pin in the PMIC.
Optionally, the first input terminal of the first comparator is further connected to a ground through a fifth resistor, the first input terminal of the second comparator is further connected to the ground through a sixth resistor, and a power output terminal of the PMIC is further connected to a power supply terminal of the converter and the other end of the LDO, respectively.
The embodiment of the invention provides a USB interface conversion device, a method and a mobile terminal, wherein the USB interface conversion device comprises: the device comprises a Power Management Integrated Circuit (PMIC), a USB interface, a converter and a conversion control circuit, wherein a first pin in the converter is connected with a USB connecting pin in the PMIC, a second pin is connected with an earphone connecting pin in the PMIC, a control signal pin is connected with an output end of the conversion control circuit, a third pin is connected with a corresponding working pin in the USB interface, an ID pin in the USB interface is connected with an input end of the conversion control circuit, and an output end of the conversion control circuit is also connected with a connecting signal pin in the PMIC; the conversion control circuit outputs a corresponding control signal according to the type of external equipment connected with the ID pin in the USB interface, controls the converter to enter a first working state or a second working state, and controls the PMIC to enter a third working state corresponding to the first working state or a fourth working state corresponding to the second working state. Through the mode, the PMIC provided by the invention is provided with the earphone connecting pin and the USB connecting pin, the earphone connecting pin and the USB connecting pin are respectively connected with the corresponding first type interface and the second type interface in the converter, the third type interface in the converter is connected with the USB interface, then the conversion control circuit is arranged to output the corresponding control signal according to the external equipment accessed by the USB interface, and the converter is controlled to enter the corresponding working state, so that the first type interface or the second type interface and the third type interface in the conversion are conducted and enter the corresponding working state, and therefore, the earphone can be inserted into the USB interface, and the function of the earphone is further realized.
Drawings
Fig. 1 is a schematic hardware structure diagram of a mobile terminal for implementing various embodiments of the present invention;
fig. 2 is a diagram illustrating a communication network architecture according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a USB interface conversion device according to a first embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a USB interface conversion device according to a second embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a USB interface conversion apparatus in a first operating state according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram illustrating an embodiment of a USB interface conversion apparatus in a second operating state;
FIG. 7 is a flowchart illustrating a USB interface conversion method according to a first embodiment of the present invention;
fig. 8 is a detailed flowchart of the step of outputting the corresponding control signal to the converter and the power management integrated circuit PMIC by the conversion control circuit according to the received information according to the embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex Long Term Evolution), and TDD-LTE (Time Division duplex Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 107 may include other input devices 1072 in addition to the touch panel 1071. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation on or near the touch panel, the touch panel is transmitted to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 1, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, etc. Further, memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module and the like, which will not be described in detail herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present invention, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Among them, the eNodeB2021 may be connected with other eNodeB2022 through backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a PGW (PDN gateway) 2035, and a PCRF (Policy and Charging Rules Function) 2036, and the like. The MME2031 is a control node for processing signaling between the UE201 and the EPC203, and provides bearer and connection management. HSS2032 is used to provide some registers to manage functions such as home location register (not shown) and holds some user-specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address allocation and other functions for UE201, PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for policy and charging enforcement function (not shown).
IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present invention is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems, and the like.
Based on the hardware structure of the mobile terminal and the communication network system, the embodiments of the method of the invention are provided.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a USB interface conversion apparatus according to a first embodiment of the present invention, the USB interface conversion apparatus includes:
a power management integrated circuit PMIC10, a USB interface 20, a converter 30 and a conversion control circuit 40, wherein the power management integrated circuit PMIC10 includes a headset connection pin 13, a USB connection pin 12 and a connection signal pin 11; the converter comprises a first pin 31, a second pin 32, a control signal pin 34 and a third pin 33; the conversion control circuit 40 comprises an input pin 41 and an output pin 42.
The first pin 31 of the converter is connected with the USB connecting pin 12 of the PMIC10, the second pin 32 is connected with the earphone connecting pin 13 of the PMIC10, the control signal pin 34 is connected with the output end 42 of the conversion control circuit 40, the third pin 33 is connected with the corresponding working pin 22 of the USB interface 20,
The ID pin 21 of the USB interface 20 is connected to the input terminal 41 of the conversion control circuit 40, and the output terminal 42 of the conversion control circuit 40 is further connected to the connection signal pin 11 of the PMIC 10;
the conversion control circuit 40 outputs a corresponding control signal according to the type of the external device connected to the ID pin 21 in the USB interface 20, controls the converter 30 to enter a first operating state or a second operating state, and controls the PMIC10 to enter a third operating state corresponding to the first operating state or a fourth operating state corresponding to the second operating state.
In this embodiment, the USB interface 20 is the interface unit 108 in fig. 1. The USB interface 20 includes an operation pin 22 and an ID pin, where the operation pin 22 includes Vbus, GND, DP, and DM pins, the Vbus, GND, DP, and DM pins in the operation pin 22 are respectively connected to corresponding pins of a third class pin 33 in the converter 30, the third class pin 33 in the converter 30 is default to be conducted with the first class pin 31 and can be switched to be conducted with the second class pin 32 according to a control signal, and of course, the third class pin 33 in the converter 30 can also be default to be conducted with the second class pin 32 and can be switched to be conducted with the first class pin 31 according to the control signal. The first pin 31 is connected to the USB connection pin 12 of the PMIC10, and the second pin 32 is connected to the headset connection pin 13 of the PMIC 10. The conversion control circuit 40 outputs a corresponding control signal according to the type of the external device connected to the ID pin 21 in the USB interface 20.
Specifically, when the USB interface 20 is not plugged into an external device, each type of interface in the converter 20 may be in a default state, when a USB cable is plugged (at this time, a USB power source may be plugged for charging, or a USB-OTG device may be plugged, or an earphone may be plugged), for example, when a charger is plugged, the charger may send a corresponding signal through an ID pin in the USB interface 20, the conversion control circuit 40 outputs a corresponding control signal to the converter 30 and the PMIC10 according to the received signal, the converter 30 enters a corresponding working state according to the received control signal, if the default state of the converter 30 is not a USB connection state, the converter 30 is switched to the corresponding state, and if the default state of the converter 30 is a USB connection state, the original state is saved; for example, when the earphone is plugged in, the earphone can send a corresponding signal through the ID pin in the USB interface 20, the switch control circuit 40 outputs a corresponding control signal to the switch 30 and the PMIC10 according to the received signal, the switch 30 enters a corresponding working state according to the received control signal, if the default state of the switch 30 is not the earphone state, the switch is switched to the corresponding earphone state, and if the default state of the switch 30 is the earphone state, the switch is saved.
At present, many external devices may not be able to send corresponding signals to the USB interface 20, and at this time, the conversion control circuit may generate corresponding control signals according to the voltage change of the input terminal when the external device is connected.
Further, referring to fig. 4, the conversion control circuit includes: a first comparator 41, a second comparator 42, a first or gate 43, a second or gate 44, a first diode 45, a second diode 46, a mos transistor Q1, and a linear voltage output chip LDO47, wherein one end of the LDO47 is connected to the pin 21 of the ID transistor in the USB interface 20 through one end of a first resistor R0 as an input end, the second resistor RHU is connected to the first input end of the first comparator 41, and the third resistor RLU is connected to the third input end of the second comparator 42, the ID pin 21 in the USB interface 20 is further connected to the second input end of the first comparator 42 and the fourth input end of the second comparator 42, respectively, and the output end of the first comparator 41 is connected to one input end of the first or gate 43 and the second or gate 44, respectively; the output end of the second comparator 42 is respectively connected with the other input end of the second or gate 44 and the gate of the mos transistor Q1; the drain electrode of the mos tube Q1 is connected with the other end of the LDO47 through a fourth resistor, and the source electrode of the mos tube Q1 is connected to the ground wire; an output terminal of the second or gate 44 is connected to a cathode of the second diode 46, and an anode of the second diode 46 is connected as an output terminal to the control signal DET pin 34 of the converter 30 and the earphone connection pin HS _ DET of the PMIC10, respectively; the output terminal of the first or gate 43 is connected to the cathode of the first diode 45, and the anode of the first diode 45 is connected to the USB connection pin, USB _ ID, in the PMIC. The first input terminal of the first comparator 41 is further connected to ground through a fifth resistor RHD, and the first input terminal of the second comparator 42 is further connected to ground through a sixth resistor RLD. The power output terminal LX _1V8 of the PMIC10 is further connected to the power supply terminal VCC of the converter 30 and the other end of the LDO47, respectively. In this embodiment, the first working state is a state in which the first class pin and the third class pin are turned on by default, and the second working state is a state in which the second class pin and the third class pin are turned on by default. The first operating state and the second operating state may be interchanged in the implementation. The PMIC enters a corresponding third working state or a fourth working state to perform power management under the corresponding situation.
In the embodiment, the LDO output is 0.3V, and in the default state, the USB ID pin is pulled up to 0.3VLDO output through the R0 resistor, that is, the voltage of the USB connector ID signal is 300mV, the first comparator outputs high level, the second comparator outputs low level, so the NMOS transistor Q1 is turned off, so the first or gate outputs high level, the second or gate 44 outputs high level, the first diode and the second diode are turned off and turned on, so the PMIC HS _ DET and the USB _ ID pin are both high level. Since the pin HS _ DET in the PMIC is high, the pin 34 of the control signal in the converter is high, and the pins D1, D2, D3, and D4 of the converter are connected to the pins DA1, DA2, DA3, and DA4, respectively, so that this state is the default state. When the mobile terminal is connected to the charger and inserted, the ID pin in the USB interface is still pulled up to 0.3VLDO output through the R0 resistor, i.e. the signal voltage of the ID pin in the USB interface is still 300mV at this time, so the outputs of the comparator and the or gate are all kept in the default state, the first diode and the second diode are still turned off and conducted, so the PMIC HS _ DET and the USB _ ID pin are both high level. Therefore, the pin 34 of the control signal pin in the converter 30 is still at the high level, so the converter still maintains the existing default connection state, i.e., the pins D1, D2, D3, and D4 of the converter are connected to the pins DA1, DA2, DA3, and DA4, respectively, and the operation path diagram is shown in fig. 5. When the mobile terminal is connected to the charger and inserted, the charger and the mobile terminal carry out charging protocol communication, and after the communication is finished, the mobile terminal is charged according to the current and voltage of the communication protocol content.
When the headset is inserted, the Vbus, GND, DP, DM, ID pins of the USB connector are connected to MIC, GND, HS _ L, HS _ R, HS _ DET signals of the headset, respectively. Therefore, when the earphone is inserted, the HS _ DET signal of the earphone is connected to the HS _ L, and the HS _ L signal of the earphone section is connected to the GND signal through the 32-ohm loudspeaker, so that the USB _ ID pin on the PMIC motherboard is pulled down to the GND signal through the 32-ohm loudspeaker of the HS _ L, and the voltage of the USB _ ID pin is 150mV after the USB _ ID pin is divided by the pull-up resistor R0 and the 32-ohm loudspeaker. The first comparator outputs a low level and the second comparator outputs a low level, so the NMOS transistor Q1 is turned off, so the first or gate outputs a high level, the second or gate 44 outputs a low level, the second diode 46 is turned on, so PMIC HS _ DET goes low. Since the pin HS _ DET in the PMIC is at low level, the pin signal of the control signal pin 34 in the converter 30 goes low, and the pins D1, D2, D3, and D4 of the converter are connected to DB1, DB2, DB3, and DB4, respectively, and the schematic diagram of the operation path thereof is shown in fig. 6. When the HS _ DET pin signal of the PMIC changes from high level to low level, the mobile terminal enters a normal earphone identification process. The schematic workflow diagram is shown in fig. 6. When the earphone is pulled out, the ID pin in the USB interface is pulled up to 0.3VLDO output through the R0 resistor, that is, the voltage of the USB connector ID signal is 300mV, the first comparator outputs high level, the second comparator outputs low level, so the NMOS transistor Q1 is turned off, so the first or gate outputs high level, the second or gate 44 outputs high level, the first diode and the second diode are turned off and on, so the HS _ DET and USB _ ID pins in the PMIC are both high level. Since the pin HS _ DET in the PMIC is at high level, the pin 34 of the control signal pin in the converter is at high level, and the pins D1, D2, D3, and D4 of the converter are connected to the pins DA1, DA2, DA3, and DA4, respectively, to restore the default connection state. Meanwhile, the HS _ DET pin signal of the PMIC changes from low level to high level, and the mobile terminal executes an earphone dialing-out process.
When the USB interface is inserted into the OTG equipment, the ID pin on the mainboard is pulled down to a GND signal, and the voltage of the ID pin in the USB interface is 0mv at the moment. The first comparator outputs a low level, the second comparator outputs a high level, so the NMOS transistor Q1 is turned on, so the first or gate outputs a low level, the second or gate 44 outputs a high level, the diode Did is turned on, so the USB _ ID signal in the PMIC goes low. When the USB _ ID pin signal of the PMIC changes from high level to low level, the mobile terminal enters OTG mode. When the OTG device is unplugged, the USB ID pin is pulled up to 0.3VLDO output through the R0 resistor, that is, the voltage of the USB connector ID signal is 300mV, the first comparator outputs high level, the second comparator outputs low level, so the NMOS transistor Q1 is turned off, so the first or gate outputs high level, the first diode and the second diode are turned on, so the HS _ DET and USB _ ID pins in the PMIC are both high level. Since the pin HS _ DET of the PMIC is at high level, the pin 34 of the control signal of the converter 30 is at high level, and the pins D1, D2, D3, and D4 of the converter 30 are connected to the pins DA1, DA2, DA3, and DA4, respectively, to restore the default connection state. Meanwhile, the USB _ ID pin signal of the PMIC changes from low level to high level, and the mobile terminal exits the OTG mode, and the process is similar to the charging process.
The embodiment of the invention provides a USB interface conversion device, a method and a mobile terminal, wherein the USB interface conversion device comprises: the power management system comprises a power management integrated circuit PMIC, a USB interface, a converter and a conversion control circuit, wherein a first pin in the converter is connected with a USB connecting pin in the PMIC, a second pin is connected with an earphone connecting pin in the PMIC, a control signal pin is connected with an output end of the conversion control circuit, a third pin is connected with a corresponding working pin in the USB interface, an ID pin in the USB interface is connected with an input end of the conversion control circuit, and an output end of the conversion control circuit is also connected with a connecting signal pin in the PMIC; the conversion control circuit outputs a corresponding control signal according to the type of external equipment connected with the ID pin in the USB interface, controls the converter to enter a first working state or a second working state, and controls the PMIC to enter a third working state corresponding to the first working state or a fourth working state corresponding to the second working state. Through the mode, the PMIC provided by the invention is provided with the earphone connecting pin and the USB connecting pin, the earphone connecting pin and the USB connecting pin are respectively connected with the corresponding first type interface and the second type interface in the converter, the third type interface in the converter is connected with the USB interface, then the conversion control circuit is arranged to output the corresponding control signal according to the external equipment accessed by the USB interface, and the converter is controlled to enter the corresponding working state, so that the first type interface or the second type interface and the third type interface in the conversion are conducted and enter the corresponding working state, and therefore, the earphone can be inserted into the USB interface, and the function of the earphone is further realized.
Further, referring to fig. 7, fig. 7 is a flowchart illustrating a USB interface conversion method according to a first embodiment of the present invention.
In this embodiment, the USB interface conversion method includes:
step S10, when the USB interface is inserted into the external device, the conversion control circuit receives the corresponding signal;
the method is applied to the USB interface conversion device in the embodiment, in the using process, a user can insert an external device into the USB interface, at the moment, the user can insert a USB power supply for charging, or insert a USB-OTG device, or insert an earphone, after the external device is inserted, the external device can send a corresponding signal to the conversion control circuit through an ID pin of the USB interface, and the conversion control circuit can receive the corresponding signal.
Step S20, the conversion control circuit outputs a corresponding control signal to the converter and the power management integrated circuit PMIC according to the received signal;
step S30, the converter enters a corresponding first operating state or second operating state according to the received control signal, and the PMIC enters a third operating state corresponding to the first operating state or a fourth operating state corresponding to the second operating state according to the received control signal.
The converter 30 enters a corresponding working state according to the received control signal, if the default state of the converter is not the USB connection state, the converter is switched to the corresponding state, and if the default state of the converter is the USB connection state, the converter saves the original state; for example, when a charger is inserted, the charger may send a corresponding signal through an ID pin in the USB interface, the conversion control circuit outputs a corresponding control signal to the converter and the PMIC10 according to the received signal, the converter enters a corresponding working state according to the received control signal, if the default state of the converter is not the USB connection state, the converter is switched to the corresponding state, and if the default state of the converter is the USB connection state, the converter stores the original state; for example, when the earphone is inserted, the earphone can send a corresponding signal through an ID pin in the USB interface, the conversion control circuit outputs a corresponding control signal to the converter and the PMIC according to the received signal, the converter enters a corresponding working state according to the received control signal, if the default state of the converter is not the earphone state, the converter is switched to the corresponding earphone state, and if the default state of the converter is the earphone state, the converter stores the original state.
Furthermore, many external devices may not be able to send corresponding signals to the USB interface, and the conversion control circuit may generate corresponding control signals according to the voltage change at the input end when the external device is connected. Referring to fig. 8, step S20 may include:
Step S21, comparing the first comparator and the second comparator in the conversion control circuit according to the received voltage, and outputting corresponding levels respectively;
step S22, the second or gate in the conversion control circuit outputs a corresponding first control signal to the converter and power management integrated circuit PMIC according to the levels output by the first comparator and the second comparator;
step S23, outputting, by a first or gate in the conversion control circuit, a second control signal corresponding to a voltage of a drain of a mos transistor in the conversion control circuit to the PMIC according to a level output by a first comparator and the voltage, where the voltage of the drain of the mos transistor is obtained according to the level output by the second comparator and a level at which a fourth resistor in the conversion control circuit is connected to one end of the drain of the mos transistor;
step S30 includes:
and the PMIC enters a third working state or a fourth working state according to the received first control signal and the second control signal.
The conversion control circuit includes: a first comparator 41, a second comparator 42, a first or gate 43, a second or gate 44, a first diode 45, a second diode 46, a mos transistor Q1, and a linear voltage output chip LDO47, wherein one end of the LDO47 is connected to the pin 21 of the ID transistor in the USB interface 20 through one end of a first resistor R0 as an input end, the second resistor RHU is connected to the first input end of the first comparator 41, and the third resistor RLU is connected to the third input end of the second comparator 42, the ID pin 21 in the USB interface 20 is further connected to the second input end of the first comparator 42 and the fourth input end of the second comparator 42, respectively, and the output end of the first comparator 41 is connected to one input end of the first or gate 43 and the second or gate 44, respectively; the output end of the second comparator 42 is respectively connected with the other input end of the second or gate 44 and the gate of the mos transistor Q1; the drain electrode of the mos tube Q1 is connected with the other end of the LDO47 through a fourth resistor, and the source electrode of the mos tube Q1 is connected to the ground wire; an output terminal of the second or gate 44 is connected to a cathode of the second diode 46, and an anode of the second diode 46 is connected as an output terminal to the control signal DET pin 34 of the converter 30 and the earphone connection pin HS _ DET of the PMIC10, respectively; the output terminal of the first or gate 43 is connected to the cathode of the first diode 45, and the anode of the first diode 45 is connected to the USB connection pin, USB _ ID, in the PMIC. The first input terminal of the first comparator 41 is further connected to ground through a fifth resistor RHD, and the first input terminal of the second comparator 42 is further connected to ground through a sixth resistor RLD. The power output terminal LX _1V8 of the PMIC10 is further connected to the power supply terminal VCC of the converter 30 and the other end of the LDO47, respectively. In this embodiment, the first working state is a state in which the first class pin and the third class pin are turned on by default, and the second working state is a state in which the second class pin and the third class pin are turned on by default. The first operating state and the second operating state may be interchanged in the implementation. The PMIC enters a corresponding third working state or a fourth working state to perform power management under the corresponding situation.
In the embodiment, the LDO output is 0.3V, and in the default state, the USB ID pin is pulled up to 0.3VLDO output through the R0 resistor, that is, the voltage of the USB connector ID signal is 300mV, the first comparator outputs high level, the second comparator outputs low level, so the NMOS transistor Q1 is turned off, so the first or gate outputs high level, the second or gate 44 outputs high level, the first diode and the second diode are turned off and turned on, so the PMIC HS _ DET and the USB _ ID pin are both high level. Since the pin HS _ DET of the PMIC is high, the pin 34 of the control signal pin in the converter is high, and the pins D1, D2, D3, and D4 of the converter are connected to the pins DA1, DA2, DA3, and DA4, respectively, so that this state is the default state. When the mobile terminal is connected to the charger and inserted, the ID pin in the USB interface is still pulled up to 0.3VLDO output through the R0 resistor, i.e. the signal voltage of the ID pin in the USB interface is still 300mV at this time, so the outputs of the comparator and the or gate are all kept in the default state, the first diode and the second diode are still turned off and conducted, so the PMIC HS _ DET and the USB _ ID pin are both high level. Therefore, the pin 34 of the control signal pin in the converter 30 is still at the high level, so the converter still maintains the existing default connection state, i.e., the pins D1, D2, D3, and D4 of the converter are connected to the pins DA1, DA2, DA3, and DA4, respectively, and the operation path diagram is shown in fig. 5. When the mobile terminal is connected to the charger and inserted, the charger and the mobile terminal carry out charging protocol communication, and after the communication is finished, the mobile terminal is charged according to the current and voltage of the communication protocol content.
When the headset is plugged in, the Vbus, GND, DP, DM, ID pins of the USB connector are connected to MIC, GND, HS _ L, HS _ R, HS _ DET signals of the headset, respectively. Therefore, when the earphone is inserted, the HS _ DET signal of the earphone is connected to the HS _ L, and the HS _ L signal of the earphone section is connected to the GND signal through the 32 ohm loudspeaker, so that the USB _ ID pin on the PMIC mainboard is pulled down to the GND signal through the 32 ohm loudspeaker of the HS _ L at the moment, and the voltage of the USB _ ID pin is 150mV after the USB _ ID pin is divided by the pull-up resistor R0 and the 32 ohm loudspeaker. The first comparator outputs a low level, the second comparator outputs a low level, so the NMOS transistor Q1 is turned off, so the first or gate outputs a high level, the second or gate 44 outputs a low level, the second diode 46 is turned on, so PMIC HS _ DET becomes a low level. Since the pin HS _ DET in the PMIC is at low level, the pin signal at the pin 34 of the control signal in the converter 30 goes low, and the pins D1, D2, D3 and D4 of the converter are connected to the pins DB1, DB2, DB3 and DB4, respectively, and the operation path diagram is shown in fig. 6. When the HS _ DET pin signal of the PMIC changes from high level to low level, the mobile terminal enters a normal earphone identification process. The work flow diagram is shown in fig. 6. When the earphone is pulled out, the ID pin in the USB interface is pulled up to 0.3VLDO output through the R0 resistor, that is, the voltage of the USB connector ID signal is 300mV, the first comparator outputs high level, the second comparator outputs low level, so the NMOS transistor Q1 is turned off, so the first or gate outputs high level, the second or gate 44 outputs high level, the first diode and the second diode are turned off and on, so the HS _ DET and USB _ ID pins in the PMIC are both high level. Since the pin HS _ DET in the PMIC is at high level, the pin 34 of the control signal pin in the converter is at high level, and the pins D1, D2, D3, and D4 of the converter are connected to the pins DA1, DA2, DA3, and DA4, respectively, to restore the default connection state. Meanwhile, the HS _ DET pin signal of the PMIC changes from low level to high level, and the mobile terminal executes an earphone dialing-out process.
When the USB interface is inserted into the OTG equipment, the ID pin on the mainboard is pulled down to a GND signal, and the voltage of the ID pin in the USB interface is 0mv at the moment. The first comparator outputs a low level, the second comparator outputs a high level, so the NMOS transistor Q1 is turned on, so the first or gate outputs a low level, the second or gate 44 outputs a high level, the diode Did is turned on, so the USB _ ID signal in the PMIC goes low. When the USB _ ID pin signal of the PMIC changes from high level to low level, the mobile terminal enters into OTG mode. When the OTG device is unplugged, the USB ID pin is pulled up to 0.3VLDO output through the R0 resistor, that is, the voltage of the USB connector ID signal is 300mV, the first comparator outputs high level, the second comparator outputs low level, so the NMOS transistor Q1 is turned off, so the first or gate outputs high level, the first diode and the second diode are turned on, so the HS _ DET and USB _ ID pins in the PMIC are both high level. Since the pin HS _ DET of the PMIC is at high level, the pin 34 of the control signal of the converter 30 is at high level, and the pins D1, D2, D3, and D4 of the converter 30 are connected to the pins DA1, DA2, DA3, and DA4, respectively, to restore the default connection state. Meanwhile, the USB _ ID pin signal of the PMIC changes from low level to high level, and the mobile terminal exits the OTG mode, and the process is similar to the charging process.
In addition, an embodiment of the present invention further provides a mobile terminal, where the mobile terminal includes: a power management integrated circuit PMIC, a USB interface, a converter and a conversion control circuit,
a first pin in the converter is connected with a USB connecting pin in the PMIC, a second pin is connected with an earphone connecting pin in the PMIC, a control signal pin is connected with an output end of the conversion control circuit, a third pin is connected with a corresponding working pin in the USB interface,
an ID pin in the USB interface is connected with an input end of the conversion control circuit, and an output end of the conversion control circuit is also connected with a connection signal pin in the PMIC;
the conversion control circuit outputs a corresponding control signal according to the type of external equipment connected with the ID pin in the USB interface, controls the converter to enter a first working state or a second working state, and controls the PMIC to enter a third working state corresponding to the first working state or a fourth working state corresponding to the second working state
Further, the conversion control circuit includes: a first comparator, a second comparator, a first OR gate, a second OR gate, a first diode, a second diode, a mos tube, a linear voltage output chip LDO,
One end of the LDO is respectively connected with the ID pin in the USB interface by taking one end of a first resistor as an input end, is connected with the first input end of the first comparator by a second resistor and is connected with the third input end of the second comparator by a third resistor,
the ID pin in the USB interface is also respectively connected with the second input end of the first comparator and the fourth input end of the second comparator,
the output end of the first comparator is respectively connected with one input end of the first OR gate and one input end of the second OR gate;
the output end of the second comparator is respectively connected with the other input end of the second OR gate and the grid electrode of the mos tube;
the drain electrode of the mos tube is connected with the other end of the LDO through a fourth resistor, and the source electrode of the mos tube is connected to the ground wire;
the output end of the second or gate is connected with the cathode of the second diode, and the anode of the second diode is respectively connected with the control signal pin and the earphone connecting pin in the PMIC;
and the output end of the first OR gate is connected with the cathode of the first diode, and the anode of the first diode is used as the output end to be connected with a USB connecting pin in the PMIC.
Further, the first input end of the first comparator is further connected to a ground line through a fifth resistor, the first input end of the second comparator is further connected to the ground line through a sixth resistor, and a power output end of the PMIC is further connected to a power supply end of the converter and the other end of the LDO.
The specific embodiment of the mobile terminal of the present invention is substantially the same as the embodiments of the USB interface conversion apparatus described above, and will not be described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or system in which the element is included.
The above-mentioned serial numbers of the embodiments of the present invention are only for description, and do not represent the advantages and disadvantages of the embodiments.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all equivalent structures or equivalent processes performed by the present invention or directly or indirectly applied to other related technical fields are also included in the scope of the present invention.

Claims (7)

1. A USB interface conversion device is characterized in that the USB interface conversion device comprises a power management integrated circuit PMIC, a USB interface, a converter and a conversion control circuit,
a first pin in the converter is connected with a USB connecting pin in the PMIC, a second pin is connected with an earphone connecting pin in the PMIC, a control signal pin is connected with an output end of the conversion control circuit, a third pin is connected with a corresponding working pin in the USB interface,
an ID pin in the USB interface is connected with an input end of the conversion control circuit, and an output end of the conversion control circuit is also connected with a connecting signal pin in the PMIC;
the conversion control circuit outputs a corresponding control signal according to the type of external equipment connected with an ID pin in the USB interface, controls the converter to enter a first working state or a second working state, and controls the PMIC to enter a third working state corresponding to the first working state or a fourth working state corresponding to the second working state;
the conversion control circuit includes: a first comparator, a second comparator, a first OR gate, a second OR gate, a first diode, a second diode, a mos tube, a linear voltage output chip LDO,
One end of the LDO is respectively connected with the ID pin in the USB interface by taking one end of a first resistor as an input end, is connected with the first input end of the first comparator by a second resistor and is connected with the third input end of the second comparator by a third resistor,
the ID pin in the USB interface is also respectively connected with the second input end of the first comparator and the fourth input end of the second comparator,
the output end of the first comparator is respectively connected with one input end of the first OR gate and one input end of the second OR gate;
the output end of the second comparator is respectively connected with the other input end of the second OR gate and the grid electrode of the mos tube;
the drain electrode of the mos tube is connected with the other end of the LDO through a fourth resistor, and the source electrode of the mos tube is connected to the ground wire;
the output end of the second or gate is connected with the cathode of the second diode, and the anode of the second diode is used as the output end to be respectively connected with the control signal pin and the earphone connecting pin in the PMIC;
the output end of the first OR gate is connected with the cathode of the first diode, and the anode of the first diode is connected with the USB connecting pin in the PMIC.
2. The USB interface converting apparatus according to claim 1, wherein the first input terminal of the first comparator is further connected to ground via a fifth resistor, and the first input terminal of the second comparator is further connected to ground via a sixth resistor.
3. The USB interface conversion apparatus according to claim 1, wherein the power output terminal of the PMIC is further connected to a power supply terminal of the converter and the other end of the LDO, respectively.
4. The USB interface conversion device according to any one of claims 1-3, wherein the first operating state is a state in which the first class pins and the third class pins are conducted, and the second operating state is a state in which the second class pins and the third class pins are conducted.
5. A USB interface conversion method, wherein the USB interface conversion method is applied to the USB interface conversion apparatus according to any one of claims 1 to 4, and the USB interface conversion method includes:
when the USB interface is inserted into the external equipment, the conversion control circuit receives a corresponding signal;
the conversion control circuit outputs a corresponding control signal to the converter and the power management integrated circuit PMIC according to the received signal;
the converter enters a corresponding first working state or a second working state according to a received control signal, and the PMIC enters a third working state corresponding to the first working state or a fourth working state corresponding to the second working state according to the received control signal;
The step of outputting the corresponding control signal to the converter and the power management integrated circuit PMIC by the conversion control circuit according to the received information comprises the following steps:
a first comparator and a second comparator in the conversion control circuit are used for comparing according to the received voltage and respectively outputting corresponding levels;
a second or gate in the conversion control circuit outputs a corresponding first control signal to the converter and power management integrated circuit PMIC according to the level output by the first comparator and the second comparator;
a first OR gate in the conversion control circuit outputs a corresponding second control signal to the PMIC according to the level output by a first comparator and the voltage of a drain electrode of a mos tube in the conversion control circuit, wherein the voltage of the drain electrode of the mos tube is obtained according to the level output by the second comparator and the level of one end of the drain electrode of the mos tube, which is connected with a fourth resistor in the conversion control circuit;
the step that the PMIC enters a third working state corresponding to the first working state or a fourth working state corresponding to the second working state according to the received control signal comprises the following steps:
and the PMIC enters a third working state or a fourth working state according to the received first control signal and the second control signal.
6. A mobile terminal, characterized in that the mobile terminal comprises: a power management integrated circuit PMIC, a USB interface, a converter and a conversion control circuit,
a first pin in the converter is connected with a USB connecting pin in the PMIC, a second pin is connected with an earphone connecting pin in the PMIC, a control signal pin is connected with an output end of the conversion control circuit, a third pin is connected with a corresponding working pin in the USB interface,
an ID pin in the USB interface is connected with an input end of the conversion control circuit, and an output end of the conversion control circuit is also connected with a connection signal pin in the PMIC;
the conversion control circuit outputs a corresponding control signal according to the type of external equipment connected with an ID pin in the USB interface, controls the converter to enter a first working state or a second working state, and controls the PMIC to enter a third working state corresponding to the first working state or a fourth working state corresponding to the second working state;
the conversion control circuit includes: a first comparator, a second comparator, a first OR gate, a second OR gate, a first diode, a second diode, a mos tube, a linear voltage output chip LDO,
One end of the LDO is respectively connected with the ID pin in the USB interface by taking one end of a first resistor as an input end, is connected with the first input end of the first comparator by a second resistor and is connected with the third input end of the second comparator by a third resistor,
the ID pin in the USB interface is also respectively connected with the second input end of the first comparator and the fourth input end of the second comparator,
the output end of the first comparator is respectively connected with one input end of the first OR gate and one input end of the second OR gate;
the output end of the second comparator is respectively connected with the other input end of the second OR gate and the grid electrode of the mos tube;
the drain electrode of the mos tube is connected with the other end of the LDO through a fourth resistor, and the source electrode of the mos tube is connected to the ground wire;
the output end of the second or gate is connected with the cathode of the second diode, and the anode of the second diode is respectively connected with the control signal pin and the earphone connecting pin in the PMIC;
and the output end of the first OR gate is connected with the cathode of the first diode, and the anode of the first diode is used as the output end to be connected with a USB connecting pin in the PMIC.
7. The mobile terminal of claim 6, wherein the first input terminal of the first comparator is further coupled to ground via a fifth resistor, the first input terminal of the second comparator is further coupled to ground via a sixth resistor, and the power output terminal of the PMIC is further coupled to a power supply terminal of the converter and the other terminal of the LDO, respectively.
CN201810100773.5A 2018-01-30 2018-01-30 USB interface conversion device and method and mobile terminal Active CN108197060B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810100773.5A CN108197060B (en) 2018-01-30 2018-01-30 USB interface conversion device and method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810100773.5A CN108197060B (en) 2018-01-30 2018-01-30 USB interface conversion device and method and mobile terminal

Publications (2)

Publication Number Publication Date
CN108197060A CN108197060A (en) 2018-06-22
CN108197060B true CN108197060B (en) 2022-06-28

Family

ID=62592302

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810100773.5A Active CN108197060B (en) 2018-01-30 2018-01-30 USB interface conversion device and method and mobile terminal

Country Status (1)

Country Link
CN (1) CN108197060B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101917497A (en) * 2010-07-23 2010-12-15 惠州Tcl移动通信有限公司 Method and device for earphone and USB to share micro-USB interface
CN101931674A (en) * 2010-09-01 2010-12-29 惠州Tcl移动通信有限公司 Method and device for sharing Micro-USB interface
CN203573341U (en) * 2013-11-29 2014-04-30 南京智中信息技术有限公司 Wireless digital patrol system
CN104023294A (en) * 2014-05-30 2014-09-03 广东欧珀移动通信有限公司 Interface multiplexing apparatus in terminal, and adaptor panel
CN104035357A (en) * 2014-06-27 2014-09-10 广东欧珀移动通信有限公司 Headset, charging and OTG equipment circuit design based on USB socket
CN204014026U (en) * 2014-07-04 2014-12-10 杭州纳雄科技有限公司 Audio transmission circuit
CN105071795A (en) * 2015-08-17 2015-11-18 广东欧珀移动通信有限公司 Multiplex circuit based on USB interface
CN105635885A (en) * 2016-03-21 2016-06-01 青岛海信移动通信技术股份有限公司 USB interface multiplex circuit, mobile terminal and earphone

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101917497A (en) * 2010-07-23 2010-12-15 惠州Tcl移动通信有限公司 Method and device for earphone and USB to share micro-USB interface
CN101931674A (en) * 2010-09-01 2010-12-29 惠州Tcl移动通信有限公司 Method and device for sharing Micro-USB interface
CN203573341U (en) * 2013-11-29 2014-04-30 南京智中信息技术有限公司 Wireless digital patrol system
CN104023294A (en) * 2014-05-30 2014-09-03 广东欧珀移动通信有限公司 Interface multiplexing apparatus in terminal, and adaptor panel
CN104035357A (en) * 2014-06-27 2014-09-10 广东欧珀移动通信有限公司 Headset, charging and OTG equipment circuit design based on USB socket
CN204014026U (en) * 2014-07-04 2014-12-10 杭州纳雄科技有限公司 Audio transmission circuit
CN105071795A (en) * 2015-08-17 2015-11-18 广东欧珀移动通信有限公司 Multiplex circuit based on USB interface
CN105635885A (en) * 2016-03-21 2016-06-01 青岛海信移动通信技术股份有限公司 USB interface multiplex circuit, mobile terminal and earphone

Also Published As

Publication number Publication date
CN108197060A (en) 2018-06-22

Similar Documents

Publication Publication Date Title
CN108572764B (en) Character input control method and device and computer readable storage medium
CN107546808B (en) Charging identification circuit, identification method and terminal equipment
CN108966085B (en) Self-adaptive audio circuit and mobile terminal
CN110365347B (en) Power amplifier control method, device and computer readable storage medium
CN107888768B (en) Unlocking control method, terminal and computer readable storage medium
CN108009116B (en) MicroUSB interface circuit and mobile terminal thereof
CN112712815A (en) Software-based pop sound suppression method, terminal and computer readable medium
CN112423211A (en) Multi-audio transmission control method, equipment and computer readable storage medium
CN109684020B (en) Theme switching method, device and computer readable storage medium
CN110955397A (en) Method for setting frame rate of game terminal, game terminal and storage medium
CN112463659B (en) Docking station identification detection circuit and terminal equipment
CN108197060B (en) USB interface conversion device and method and mobile terminal
CN109980724B (en) Method and device for charging double-screen mobile terminal, mobile terminal and storage medium
CN107863795B (en) Parallel battery module charging method, mobile terminal and computer readable storage medium
CN109742608B (en) Connecting line and mobile terminal downtime processing method
CN108430005B (en) Audio circuit, audio judgment method and mobile terminal
CN109144747B (en) Data processing method, terminal and computer readable storage medium
CN109980721B (en) Quick charge detection circuit and method and computer storage medium
CN113824176A (en) Charging method, earphone, terminal and storage medium
CN108574324B (en) Power management method, wearable device and storage medium
CN112888084A (en) Full-band communication method and device and mobile terminal
CN110650413B (en) Hearing aid implementation circuit and method and mobile terminal
CN216959895U (en) Protection circuit and mobile terminal
CN112416169B (en) Touch control color-changing film display device and display method
CN112288069B (en) Price tag base station power supply circuit and price tag base station

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20220610

Address after: 518100 401-402, building 63, Longwangmiao Industrial Zone, baishixia community, Fuyong street, Bao'an District, Shenzhen City, Guangdong Province

Applicant after: Shenzhen Qimai Electronic Technology Co.,Ltd.

Address before: 518057 Dazu Innovation Building, 9018 Beihuan Avenue, Nanshan District, Shenzhen City, Guangdong Province, 6-8, 10-11, 6 and 6-10 floors in Area A, B and C

Applicant before: NUBIA TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant