CN105635885B - USB interface multiplex circuit, mobile terminal and earphone - Google Patents

USB interface multiplex circuit, mobile terminal and earphone Download PDF

Info

Publication number
CN105635885B
CN105635885B CN201610162404.XA CN201610162404A CN105635885B CN 105635885 B CN105635885 B CN 105635885B CN 201610162404 A CN201610162404 A CN 201610162404A CN 105635885 B CN105635885 B CN 105635885B
Authority
CN
China
Prior art keywords
pin
circuit
usb
usb connector
processor
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
CN201610162404.XA
Other languages
Chinese (zh)
Other versions
CN105635885A (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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications 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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201610162404.XA priority Critical patent/CN105635885B/en
Publication of CN105635885A publication Critical patent/CN105635885A/en
Application granted granted Critical
Publication of CN105635885B publication Critical patent/CN105635885B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1041Mechanical or electronic switches, or control elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2201/00Details of transducers, loudspeakers or microphones covered by H04R1/00 but not provided for in any of its subgroups
    • H04R2201/10Details of earpieces, attachments therefor, earphones or monophonic headphones covered by H04R1/10 but not provided for in any of its subgroups

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The present invention provides a kind of general-purpose serial bus USB interface multiplexing circuit, mobile terminal and earphone, it include: by the way that USB connector concurrent multiplexing is supported audio-frequency function and data-transformation facility, the quantity of Peripheral Interface can be effectively reduced, and by using the signal of processor detection USB connector, and determine in USB connector whether be inserted into peripheral hardware according to the signal of detection;After processor, which determines, is inserted into peripheral hardware in USB connector, processor can also detect the voltage value of voicefrequency circuit, to determine the peripheral type in insertion USB connector according to the voltage value of detection, wherein, the peripheral type in insertion USB connector is determined by multiplexing USB connector and according to the voltage value of the voicefrequency circuit detected, the reduction of mobile terminal interface and the judgement of peripheral type may be implemented, so as to meet the development trend of mobile terminal.

Description

USB interface multiplex circuit, mobile terminal and earphone
Technical field
The present invention relates to the communication technology more particularly to a kind of USB interface multiplex circuits, mobile terminal and earphone.
Background technique
Along with the continuous development of communications industry, currently, mobile terminal is evolved into from original single call function For the comprehensive intelligent communication device for integrating amusement game.
Therefore, it needs that the interface for being inserted into the peripheral hardware for needing to carry out data interaction is arranged in mobile phone, and in mobile phone also Need to be arranged the interface that audio transmission is carried out for being inserted into the peripheral hardwares such as earphone.
Since the interface of peripheral hardware and the interface duplex of progress audio transmission that will need to carry out data transmission are an interface The quantity of interface in mobile terminal can be effectively reduced, is become to meet mobile terminal towards ultrathin and integrated development Gesture.
But can not detect in the prior art be inserted into the interface of multiplexing be need the peripheral hardware that carries out data transmission or It needs to carry out the peripheral hardware of audio transmission, and then is unable to satisfy the development trend of mobile terminal.
Summary of the invention
The embodiment of the present invention provides a kind of general-purpose serial bus USB interface multiplexing circuit, mobile terminal and earphone, to overcome Can not detect be inserted into the interface of multiplexing in the prior art is to need the peripheral hardware that carries out data transmission or need to carry out audio The peripheral hardware of transmission, thus the problem of being unable to satisfy the development trend of mobile terminal.
The embodiment of the present invention provides a kind of general-purpose serial bus USB interface multiplexing circuit and earphone, comprising:
Processor, voicefrequency circuit, USB connector and voltage follower circuit,
The voltage follower circuit is connect with the voicefrequency circuit, for providing voltage to the voicefrequency circuit;
The processor is connect with the USB connector and the voicefrequency circuit respectively, the USB connector and the sound Frequency circuit connection;
The processor determines the USB connection for detecting the signal of the USB connector, and according to the signal Whether peripheral hardware is inserted into device;
The processor detects the electricity of the voicefrequency circuit after being also used to be inserted into peripheral hardware in determining the USB connector Pressure value;
The processor is also used to determine the peripheral hardware class being inserted into the USB connector according to the voltage value of detection Type.
It, can by being to support audio-frequency function and data-transformation facility by USB connector concurrent multiplexing in the embodiment of the present invention To effectively reduce the quantity of Peripheral Interface, and by using the signal of processor detection USB connector, and according to the signal of detection It determines in USB connector and whether is inserted into peripheral hardware;After processor, which determines, is inserted into peripheral hardware in USB connector, processor can also be detected The voltage value of voicefrequency circuit, to determine the peripheral type in insertion USB connector according to the voltage value of detection, wherein pass through Multiplexing USB connector and the peripheral type in insertion USB connector is determined according to the voltage value of the voicefrequency circuit detected, it can be with The reduction of mobile terminal interface and the judgement of peripheral type are realized, so as to meet the development trend of mobile terminal.
Second aspect of the present invention provides a kind of mobile terminal, connects including general-purpose serial bus USB as described in relation to the first aspect The USB connector of mouth multiplex circuit.
Third aspect present invention provides a kind of earphone, comprising: headset plug and earphone cable, the headset plug and the ear The connection of machine line,
The headset plug is used to be inserted into the USB of general-purpose serial bus USB interface multiplexing circuit as described in relation to the first aspect In connector;
The headset plug includes Mike's pin, sound channel pin, grounding pin, Mike's pin be configured as with it is described First data pin connection in the data transmission pin of USB connector, the sound channel pin are configured as and the USB Second data pin connection in the data transmission pin of connector, the grounding pin are configured as connecting with the USB Connect the first USB_ID pin connection in device;
Wherein, the sound channel pin is left channel pin or right channel pin.
Fourth aspect present invention provides a kind of earphone, comprising: headset plug and earphone cable, the headset plug and the ear The connection of machine line,
The headset plug is used to be inserted into the USB of general-purpose serial bus USB interface multiplexing circuit as described in relation to the first aspect In connector;
The headset plug includes Mike's pin, the first sound channel pin, grounding pin, Mike's pin be configured as with The 2nd USB_ID pin of the USB connector connects, and the sound channel pin is configured as the number with the USB connector According to the third data pin connection in transmission pin, the grounding pin is configured the grounding pin in the USB connector of position Connection.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair Bright some embodiments for those of ordinary skill in the art without any creative labor, can be with It obtains other drawings based on these drawings.
Fig. 1 show the structural schematic diagram of the general-purpose serial bus USB interface multiplexing circuit of the offer of the embodiment of the present invention one;
Fig. 2 show the structural schematic diagram of general-purpose serial bus USB interface multiplexing circuit provided by Embodiment 2 of the present invention;
Fig. 3 show the structural schematic diagram of the general-purpose serial bus USB interface multiplexing circuit of the offer of the embodiment of the present invention three;
Fig. 4 show the structural schematic diagram of the general-purpose serial bus USB interface multiplexing circuit of the offer of the embodiment of the present invention four;
Fig. 5 show the structural schematic diagram of the general-purpose serial bus USB interface multiplexing circuit of the offer of the embodiment of the present invention five;
Fig. 6 show the structural schematic diagram of the general-purpose serial bus USB interface multiplexing circuit of the offer of the embodiment of the present invention six.
Specific embodiment
With the development of communication technology, existing mobile terminal just develops towards ultrathin and integrated direction.Therefore The quantity of Peripheral Interface in mobile terminal is just restricted, thus using the compatible multiple peripheral hardwares of same Peripheral Interface just at The trend of industry development.
In existing mobile terminal, typically USB interface is multiplexed with and realizes data-transformation facility and charge function, and Along with the continuous development of communications industry, just there is demand to be multiplexed with USB interface and realize data-transformation facility and audio transmission function Energy.
The present invention is based on above-mentioned development trends, by multiplexing USB connector, to realize audio-frequency function and data transmission function Can, so as to effectively reduce the Peripheral Interface in terminal, and when USB connector is re-used, pass through detection USB connector Signal determines in USB connector whether be inserted into peripheral hardware, when detect be inserted into peripheral hardware in USB connector after, further pass through inspection The voltage value of acoustic frequency circuit determines the type of the peripheral hardware in insertion USB connector, and then realizes mobile terminal interface Reduction and the judgement of peripheral type, so as to meet the development trend of mobile terminal.
Technical solution of the present invention is described in detail with specifically embodiment below.These specific implementations below Example can be combined with each other, and the same or similar concept or process may be repeated no more in certain embodiments.
Fig. 1 show the structural schematic diagram of the general-purpose serial bus USB interface multiplexing circuit of the offer of the embodiment of the present invention one, As shown in Figure 1, the USB interface multiplex circuit of the offer of the present embodiment includes: processor 11, voicefrequency circuit 12, USB connector 13 With voltage follower circuit 14,
Wherein, voltage follower circuit 14 is connect with voicefrequency circuit 12, for providing voltage to voicefrequency circuit 12;Processor 11 It is connect respectively with USB connector 13 and voicefrequency circuit 12, USB connector 13 and voicefrequency circuit 12 connect;
Specifically, firstly, processor 11 is used to detect the signal of USB connector 13, and USB connector is determined according to signal Whether peripheral hardware is inserted into 13;Then, after processor 11 is inserted into peripheral hardware in determining USB connector 13, detection voicefrequency circuit 12 Voltage value;Finally, processor 11 determines the peripheral type in insertion USB connector 13 according to the voltage value of detection.
In the present embodiment, mobile terminal device can handle standby mode, when processor 11 determines in USB connector 13 After being inserted into peripheral hardware, mobile terminal can be waken up, enters wake-up states from standby mode so as to mobile terminal.And do not have to so that moving Dynamic terminal is always held at positive wake-up states, effectively reduces the power consumption of mobile terminal.And when processor 11 determines USB connector After being inserted into peripheral hardware in 13, the task that meeting interrupt handler 11 is carrying out at this time, and go to execute and determine in insertion USB connector 13 Peripheral type task, to improve real-time.
It, can by being to support audio-frequency function and data-transformation facility by USB connector concurrent multiplexing in the embodiment of the present invention To effectively reduce the quantity of Peripheral Interface, and by using the signal of processor detection USB connector, and according to the signal of detection It determines in USB connector and whether is inserted into peripheral hardware;After processor, which determines, is inserted into peripheral hardware in USB connector, processor can also be detected The voltage value of voicefrequency circuit, to determine the peripheral type in insertion USB connector according to the voltage value of detection, wherein pass through Multiplexing USB connector and the peripheral type in insertion USB connector is determined according to the voltage value of the voicefrequency circuit detected, it can be with The reduction of mobile terminal interface and the judgement of peripheral type are realized, so as to meet the development trend of mobile terminal.
Fig. 2 show the structural schematic diagram of general-purpose serial bus USB interface multiplexing circuit provided by Embodiment 2 of the present invention, As shown in Fig. 2, USB interface multiplex circuit provided in this embodiment further includes the first switching circuit 15, the processor 11 includes: First detection pin 113, first data transmission pin 111;The USB connector 13 includes: the first data pin 133;
Wherein, processor 11 is connect with USB connector 13 specifically: first data transmission pin 111 can be cut by first Circuit 15 is changed to be connected with the first data pin 133.
Processor 11 is connect with voicefrequency circuit 12 specifically: the first detection pin 113 is connected with voicefrequency circuit 12.
USB connector 13 and voicefrequency circuit 12 connect specifically: voicefrequency circuit 12 passes through the first switching circuit 15 and first Data pin 133 is connected.
First switching circuit 15 is also connected with processor 11, what the first switching circuit 15 was used to be issued according to processor 11 Voicefrequency circuit 12 and the first data pin 133 is connected in first switching signal, to realize audio-frequency function;It is issued according to processor 11 First data transmission pin 111 and the first data pin 133 is connected in second switching signal, to realize data-transformation facility.
By increasing above-mentioned first switching circuit 15, so that voicefrequency circuit 12 and data transmission circuit can be connected with multiplexing USB Device 13 is connect, Peripheral Interface is effectively reduced.
In a kind of implementation of the invention, the peripheral type being inserted into USB connector 13 is detected in processor 11 In method, it is necessary to so that voicefrequency circuit 12 and USB connector 13 constitute access, namely voicefrequency circuit 12 and USB must be made to connect The connection of device 13 is connect, therefore, when processor 11 detects and is inserted into peripheral type in USB connector 13 it may first have to guarantee audio-frequency electric Road 12 is connect with USB connector 13.
Specifically, if voicefrequency circuit 12 has been connect with USB connector 13 namely initial setting up under conditions of initial For the first switching circuit 15 be connected voicefrequency circuit 12 and USB connector 13 the first data pin 133 so that voicefrequency circuit 12 and USB connector 13 constitutes access, after processor 11 detects and is inserted into peripheral hardware in USB connector 13, the direct basis of processor 11 Peripheral type is inserted into the voltage value detection USB connector 13 of audio voltage circuit;And if it is processing under conditions of initial Device 11 is connect with USB connector 13, namely is initially set to the first data transmission of the first switching circuit 15 conducting processor 11 First data pin 133 of pin 111 and USB connector 13, is inserted at this point, detecting in USB connector 13 in processor 11 After peripheral hardware, processor 11 sends the first switching signal to the first switching circuit 15, so that the first switching circuit 15 is cut according to first The first data pin 133 for changing signal conduction voicefrequency circuit 12 Yu USB connector 13, so that voicefrequency circuit 12 and USB connector 13 constitute access, and then processor 11 detects in USB connector 13 according to the voltage value of audio voltage circuit and is inserted into peripheral type.
Further, as shown in Fig. 2, above-mentioned voicefrequency circuit 12 includes: first Mike's signal wire 121,
Specifically, the first detection pin 113 is connected with voicefrequency circuit 12, specifically include: first detects pin 113 and the One Mike's signal wire 121 is connected;
Voicefrequency circuit 12 is connected by the first switching circuit 15 with the first data pin 133, is specifically included: the first Mike Signal wire 121 is connected by the first switching circuit 15 with the first data pin 133;
In terms of the voltage value of detection voicefrequency circuit 12, processor 11 is specifically used for: being examined by the first detection pin 113 Survey the voltage value of first Mike's signal wire 121.
After detecting the voltage value of first Mike's signal wire 121 by the first detection pin 113, processor 11 also needs root The peripheral type in insertion USB connector 13 is determined according to the voltage value of detection, detects peripheral type method particularly includes:
If the voltage value in first Mike's signal wire 121 is less than second threshold and is greater than first threshold, processor 11 is true Surely the peripheral type being inserted into USB connector 13 is earphone;If the voltage value in first Mike's signal wire 121 is greater than third threshold Value, then processor 11 determines that the peripheral type in insertion USB connector 13 is data transmission set;If first Mike's signal wire Voltage value in 121 is less than first threshold, or, being less than third threshold value and being greater than second threshold, then processor 11 determines insertion USB Peripheral type in connector 13 is other equipment;Wherein, third threshold value is greater than second threshold.
Further, as shown in Fig. 2, above-mentioned circuit further include: 141 administrative unit 16 of the first power supply, USB connector 13 Further include: the first VBUS pin 131,
First power supply, 141 administrative unit 16 is connect with processor 11 and the first VBUS pin 131 respectively,
Processor 11 is also used to: after determining that the peripheral type in insertion USB connector 13 is data transmission set, to First power supply, 141 administrative unit 16 sends the first power supply signal, and the first power supply signal is used to indicate 141 administrative unit of the first power supply 16 power to the first VBUS pin 131;And the second switching signal is sent to the first switching circuit 15, the second switching signal is for controlling Make the first switching circuit 15 conducting first data transmission pin 111 and the first data pin 133.
Further, as shown in Fig. 2, in a kind of achievable mode, the voltage follower circuit 14 in foregoing circuit is wrapped It includes: the first divider resistance 142 and for providing the first power supply 141 of Mike's bias voltage, wherein voltage follower circuit 14 and sound The connection of frequency circuit 12 specifically includes: the first power supply 141 is connect with one end of the first divider resistance 142, the first partial pressure The other end of resistance 142 is connect with first Mike's signal wire 121.
Further, as shown in Fig. 2, USB connector 13 includes: the first USB_ID pin 132, processor 11 includes: Two detection pins 114;
Specifically, processor 11 is connect with USB connector 13 further include: the second detection pin 114 and the first USB_ID draws Foot 132 connects.
Processor 11 is used to detect the signal of USB connector 13 specifically: the second detection pin 114 is for detecting first The signal of USB_ID pin 132.
In terms of processor 11 determines and is inserted into peripheral hardware in USB connector 13, processor 11 is specifically used for: if the second detection The signal that pin 114 detects the first USB_ID pin 132 is logic-low signal, it is determined that is inserted into USB connector 13 outer If.
Wherein, pin corresponding with the first USB_ID pin 132 in the peripheral hardware of USB connector 13 is inserted into be connected to ground.
Further, as shown in Fig. 2, voicefrequency circuit 12 further include: the first sound channel signal line 122;The USB connector 13 Further include: the second data pin;
First switching circuit 15 is also used to when receiving first switching signal, and the first sound channel letter is connected Second data pin of number line 122 and the USB connector 13.
The first above-mentioned sound channel signal line 122 can be left channel signals line, or right-channel signals line.
According to the description above, it is assumed that the first power supply 141 is set as 1.8V in the embodiment of the present invention, passes through the first of 2.2k Divider resistance 142 provides voltage to first Mike's signal wire 121, namely provides electricity to the Mike of the earphone of insertion voicefrequency circuit 12 Source, since the equivalent resistance of earphone Mike is also in 2k or so, so after being inserted into earphone in USB connector 13, the voltage of 1.8V It can be divided on the first divider resistance 142 and earphone Mike, then the voltage on first Mike's signal wire 121 can be at this time 0.9V or so, it is contemplated that the audio signal fluctuation range of earphone Mike, it is settable for detect outer being set as of being inserted into the present invention When earphone, the detection voltage threshold range on corresponding first Mike signal wire 121 is that (this threshold range can by 0.6V~1.2V To be 1.2V, first threshold 0.6V according to specific earphone progress appropriate adjustment namely second threshold), due to what is do not powered When data transmission set connects, 133 earth impedance of the first data pin is high-impedance state in 500k or more, therefore data are transmitted Voltage after equipment insertion on first Mike's signal wire 121 should be close to the voltage of the first power supply 141, such as the first Mike at this time Voltage on signal wire 121 can be greater than 1.7V (that is, first threshold is 1.7V).
In the present embodiment, if the first detection pin 113 detects the voltage range of first Mike's signal wire 121 in 0.6V Within~1.2V, then it is assumed that outer be set as earphone in insertion USB connector 13;If the first detection pin 113 detects the first wheat The voltage range of gram signal wire 121 is greater than 1.7V, then it is assumed that outer in insertion USB connector 13 is set as data transmission set;Such as Fruit first detects pin 113 and detects the voltage range of first Mike's signal wire 121 less than 1.7V and be greater than 1.2V, or is less than 0.6V, then it is assumed that outer in insertion USB connector 13 is set as other equipment, for example, can be for game paddle etc..
Fig. 3 show the structural schematic diagram of the general-purpose serial bus USB interface multiplexing circuit of the offer of the embodiment of the present invention three, As shown in figure 3, the first data pin 133 in above-mentioned USB connector 13 can be the first USB_D- pin, the second data are drawn Foot can be the first USB_D+ pin;Alternatively, the first data pin 133 in above-mentioned USB connector 13 can be first USB_D+ pin, the second data pin can be the first USB_D- pin;Following embodiments are the according to the first data pin 133 One USB_D+ pin, the second data pin be the first USB_D- pin for be illustrated.
First data pin 133 of above-mentioned processor 11 includes: the first D+ pin and the first D- pin, above-mentioned processing Device 11 further include: the first signal sends pin 112;
It is above-mentioned during realizing data-transformation facility, be by the first switching circuit 15 by the first D+ pin and first The conducting of USB_D+ pin, the first D- pin is connected with the first USB_D- pin;It is logical during above-mentioned realization audio-frequency function Cross the first switching circuit 15 and first Mike's signal wire 121 be connected with the first USB_D+ pin, by the first sound channel signal line 122 with First USB_D- is connected to realize.
As the first switching circuit 15 a kind of, more specifically implementation, the first switching circuit 15 include: first defeated Enter channel, the second input channel, the first output channel and the first control terminal 151, the processor includes: that the transmission of the first signal is drawn Foot 112;
Wherein, one end of the first input channel connects with first Mike's signal wire 121 and the first sound channel signal line 122 respectively It connects, one end of the second input channel is connect with the first D+ pin and the first D- pin respectively, one end difference of the first output channel It being connect with the first USB_D- pin and the first USB_D+ pin, the first control terminal 151 sends pin 112 with the first signal and connect, The first switching signal that pin 112 is sent is sent for receiving the first signal, or is sent out for receiving the first signal transmission pin 112 The second switching signal sent, the first switching signal are used to control the another of the other end of the first input channel and the first output channel End connection, to realize audio-frequency function, the second switching signal is used to control the other end and the first output channel of the second input channel The other end connection so that realize data-transformation facility function.
Further, the first input channel of the first switching circuit 15 includes the first sub- input channel 154 and the second son Input channel 155, the second input channel of the first switching circuit 15 include: that the sub- input channel 156 of third and the 4th son input are logical Road 157, the first output channel of the first switching circuit 15 include: the first sub- output channel 152 and the second sub- output channel 153.
It is specific:
One end of the first above-mentioned output channel is connect with the first USB_D- pin and the first USB_D+ pin respectively, specifically It include: that one end of the first sub- output channel 152 is connect with the first USB_D+ pin, one end of the second sub- output channel 153 and the The connection of one USB_D- pin.
One end of the first above-mentioned input channel with respectively with first Mike's signal wire 121 and the first sound channel signal line 122 Connection, specifically include: one end of the first sub- input channel 154 is connect with first Mike's signal wire 121, the second sub- input channel 155 one end is connect with the first sound channel signal line 122.So, the first control terminal 151 first switching signal based on the received, will The other end of first sub- input channel 154 is connect with the other end of the first sub- output channel 152, the second sub- input channel 155 The other end is connect with the other end of the second sub- output channel 153.
One end of the second above-mentioned input channel is connect with the first D+ pin and the first D- pin respectively, is specifically included:
One end of the sub- input channel 156 of third is connect with the first D+ pin, one end and first of the 4th sub- input channel 157 The connection of D- pin;So, the first control terminal 151 second switching signal based on the received, by the another of the sub- input channel 156 of third End is connect with the other end of the first sub- output channel 152, by the other end and the second sub- output channel of the 4th sub- input channel 157 153 other end connection.
It is worth noting that, above-mentioned the first peripheral hardware insertion detection pin can be general defeated in existing processor 11 Enter/export (General Purpose Input Output, referred to as are as follows: GPIO) pin (being configured to interrupt function), it can also be with For special interrupt requests (Interrupt Request, referred to as are as follows: IRQ) pin.
Fig. 4 show the structural schematic diagram of the USB interface multiplex circuit of the offer of the embodiment of the present invention four, as shown in figure 4, sound Frequency circuit 12 includes: second Mike's signal wire 231, and USB connector 13 includes: the 2nd USB_ID pin 223;Processor 11 wraps Include: third detects pin 211 and the 4th detection pin 212;
Voltage follower circuit 14 is connect with voicefrequency circuit 12, is specifically included for providing voltage to voicefrequency circuit 12: voltage Output circuit 14 is connect with second Mike's signal wire 231, for providing voltage to second Mike's signal wire 231;
Processor 11 is connect with USB connector 13 and voicefrequency circuit 12 respectively, is specifically included: it is logical that third detects pin 211 It crosses second Mike's signal wire 231 to be connected with the 2nd USB_ID pin 223, the 4th detection pin 212 and second Mike's signal wire 231 are connected;
The voltage value of the detection voicefrequency circuit 12 of processor 11 specifically: the 4th detection pin 212 detects second Mike's signal The voltage value of line 231.
Further, in terms of determining the peripheral type in insertion USB connector 13 according to the voltage value of detection, processing Device 11 is specifically used for:
If the voltage value in second Mike's signal wire 231, less than the 4th threshold value, processor 11 determines that insertion micro USB connects Connecing the peripheral type in device 13 is data transmission set;
If the voltage value in second Mike's signal wire 231 less than the 5th threshold value and is greater than the 6th threshold value, processor 11 is true Surely the peripheral type being inserted into Minimized USB connector 13 is earphone;
If the voltage value in second Mike's signal wire 231 less than the 6th threshold value and is greater than the 4th threshold value, or is greater than the 5th threshold Value, then processor 11 determines that the peripheral type in insertion Minimized USB connector 13 is other equipment;
Wherein, the 4th threshold value is less than the 6th threshold value.
It after the type for the peripheral hardware being inserted into insertion USB connector 13 has been determined, also needs to realize corresponding access, to realize The function of peripheral hardware.
Optionally, as shown in figure 4, above-mentioned circuit further include: the second switching circuit 25, further, processor 11 are wrapped Include: the second data transmit pin 214, voicefrequency circuit 12 further include: second sound channel signal wire 232;USB connector 13 includes: Three data pins 222;
Processor 11 is connect with USB connector 13, and USB connector 13 and voicefrequency circuit 12 connect specifically:
Second data transmission pin 214 can be connected by the second switching circuit with third data pin 222;Second sound channel Signal wire 232 can be connected by the second switching circuit with third data pin 222;
Processor 11 is also used to: after determining that the peripheral type in insertion USB connector 13 is earphone, to the second switching Circuit send third switching signal, third switching signal for control the second switching circuit conducting second sound channel signal wire 232 with Third data pin 222;
Or,
Processor 11 is also used to: after determining that the peripheral type in insertion USB connector 13 is data transmission set, to Second switching circuit sends the 4th switching signal, and the transmission of the second data is connected for controlling the second switching circuit in the 4th switching signal Pin 214 and third data pin 222.
As shown in figure 4, above-mentioned circuit further include: second source VDD_IO administrative unit 26;USB connector 13 also wraps It includes: the 2nd VBUS pin 221221;
Second source VDD_IO administrative unit is connect with processor 11 and the 2nd VBUS pin 221 respectively,
Processor 11 is also used to: the peripheral type being inserted into determining USB connector 13 be data transmission set after, to Second source VDD_IO administrative unit sends the second power supply signal, and the second power supply signal is for controlling second source VDD_IO management Unit is powered to the 2nd VBUS.
Above-mentioned third detection pin 211 is connect by second Mike's signal wire 231 with the 2nd USB_ID pin 223, is had Body are as follows: be provided with comparison circuit 21, the output of comparison circuit 21 between third detection pin 211 and second Mike's signal wire 231 End is connected with third detection pin 211, and one end of the input terminal of comparison circuit 21 and second Mike's signal wire 231 is connected, The other end of second Mike's signal wire 231 is connected with the 2nd USB_ID pin 223;
Processor 11 determines in USB connector 13 whether insert for detecting the signal of USB connector 13, and according to signal Enter peripheral hardware to specifically include:
Comparison circuit 21 detects the voltage value of the 2nd USB_ID pin 223;
Comparison circuit 21 judges whether the voltage value of the 2nd USB_ID pin 223 is less than preset voltage value, if the 2nd USB_ The voltage value of ID pin 223 is less than preset voltage value, then comparison circuit 21 is used to indicate USB connector 13 to the transmission of processor 11 The indication signal of middle insertion peripheral hardware;
After processor 11 receives indication signal, is determined in USB connector 13 according to indication signal and be inserted into peripheral hardware.
In a kind of achievable mode of the invention, as shown in figure 5, above-mentioned comparison circuit 21 includes: the second partial pressure electricity Hinder R2, third divider resistance R3, operational amplifier U1 and second source VDD_IO;
The output end of comparison circuit 21 is connected with third detection pin 211, the input terminal of comparison circuit 21 and the second wheat Gram signal wire 231, which is connected, includes:
The output end of operational amplifier U1 is connected with third detection pin 211;The noninverting input of operational amplifier U1 It is connected with second Mike's signal wire 231;The reverse input end of operational amplifier U1 one end with the second divider resistance R2 respectively It is connected with one end of third divider resistance R3, the other end of the second divider resistance R2 is connect with second source VDD_IO, third point The other end of piezoresistance R3 is grounded.
And second source VDD_IO provides power supply simultaneously for operational amplifier U1, the ground terminal of operational amplifier U1 directly connects Ground.The function that the present embodiment realizes comparator using operational amplifier U1 open loop working condition gain is infinitely great principle, Therefore, operational amplifier U1 work in the present embodiment is in open loop working condition.
Comparison circuit 21 judges whether the voltage value of the 2nd USB_ID pin 223 is less than preset voltage value, if the 2nd USB_ The voltage value of ID pin 223 is less than preset voltage value, then comparison circuit 21 is used to indicate USB connector 13 to the transmission of processor 11 The indication signal of middle insertion peripheral hardware, specifically includes:
The noninverting input of operational amplifier U1 obtains the voltage value of the 2nd USB_ID pin 223, and compares the 2nd USB_ The voltage value of ID pin 223 whether the voltage value of the reverse input end of less-than operation amplifier U1, if the 2nd USB_ID pin 223 Voltage value less-than operation amplifier U1 reverse input end voltage value, then the output end of operational amplifier U1 to third detect Pin 211 sends indication signal, and indication signal is logic-low signal.
Voltage follower circuit 14 includes: the 4th divider resistance 241241 and for providing the third power supply of Mike's bias voltage 242,
Voltage follower circuit 14 connect with voicefrequency circuit 12 and specifically includes: third power supply 242 and the 4th divider resistance 241 One end connection, the other end of the 4th divider resistance 241 are connect with second Mike's signal wire 231.
Assuming that the voltage of second source VDD_IO is 1.8V in the present embodiment, the resistance value by choosing R2 and R3 makes operation The voltage of the reverse input end of amplifier U1 (can according to need and be adjusted) in 1.6V, and the voltage value of third power supply 242 For 1.8V.
Since by the 4th divider resistance 241241 of 2.2K to be pulled upward to third power supply 242 right for the 2nd USB_ID pin 223 The voltage answered.When being not inserted into peripheral hardware in USB connector 13, the voltage value on the 2nd USB_ID pin 223 is third power supply 242 voltage value (1.8V), the voltage value (1.8V) of U1 non-inverting input terminal is greater than the voltage value (1.6V) of reverse input end at this time, According to the open-loop gain formula V of operational amplifier U1out=A0(VP-VN), wherein the output end electricity that Vout is operational amplifier U1 Pressure, A0For open-loop gain amplification factor, VPFor the noninverting input voltage of operational amplifier U1, VNFor the anti-of operational amplifier U1 To input terminal voltage, operational amplifier U1 exports logic high to processor 11.
And when being inserted into peripheral hardware in USB connector 13, the voltage value on the 2nd USB_ID pin 223 can be reversely defeated lower than U1 Enter voltage value (the USB_ID pin ground connection of data transmission set, so the 2nd USB_ID draws when data transmission set is inserted at end The voltage value of foot 223 is 0V;When earphone is inserted into, the voltage value on the 2nd USB_ID pin 223 is in 0.9V or so, it is contemplated that speaks When audio signal fluctuate, this voltage can be in 0.6V~1.2V), at this time U1 output end output logic-low signal (instruction letter Number) to the second peripheral hardware insertion detection pin 211 of processor 11, the second peripheral hardware insertion detection pin 211 of processor 11 receives To after logic-low signal, it can determine in USB connector 13 and be inserted into peripheral hardware, to start to execute detection USB connector The step of peripheral type is inserted into 1312.
Assuming that third power supply 242 is set as 1.8V in the embodiment of the present invention, by the divider resistance of 2.2k to voicefrequency circuit 1213 second Mike's signal wire 231 provides voltage, namely powers to the earphone Mike of insertion, due to the equivalent electricity of earphone Mike Resistance is also in 2k or so, so the voltage of 1.8V can be in the 4th divider resistance after being inserted into earphone in USB connector 13 241241241 and earphone Mike on divide respectively, then at this time the voltage on second Mike's signal wire 231 can 0.9V a left side It is right, it is contemplated that the audio signal fluctuation range of earphone Mike, it is settable when being set as earphone for detect be inserted into outer in the present invention, Detection voltage threshold range on corresponding second Mike signal wire 231 is that (this threshold range can basis by 0.6V~1.2V Specific earphone carries out appropriate adjustment, wherein the 5th threshold value is 1.2V, the 6th threshold value is 0.6V), due to second Mike's signal wire 231 and data transmission set USB_ID pin share USB connector 13 the 2nd USB_ID pin 223, and data transmission set Standby USB_ID pin is ground connection, so when being inserted into data transmission set in USB connector 13, what processor 11 detected The voltage of second Mike's signal wire 231 is close to 0V, it is contemplated that error tolerance, the 4th threshold value are chosen for 0.2V.
That is, if the second peripheral type detection pin 212 detects the voltage range of second Mike's signal wire 231 in 0.6V Within~1.2V, then it is assumed that outer be set as earphone in insertion USB connector 13;If processor 11 is examined by the second peripheral type It surveys pin 212 and detects the voltage range of second Mike's signal wire 231 less than 0.2V, then it is assumed that is in insertion USB connector 13 outer It is set as data transmission set, such as: OTG equipment;If processor 11 detects the detection of pin 212 second by the second peripheral type The voltage range of Mike's signal wire 231 is less than 0.6V and is greater than 0.2V, or, being greater than 1.2V, then it is assumed that in insertion USB connector 13 It is outer be set as other kinds of equipment, such as: game paddle etc..
Fig. 6 show the structural schematic diagram of 13 multiplex circuit of USB connector of the offer of the embodiment of the present invention six, such as Fig. 6 institute Show, on the basis of Fig. 4 and Fig. 5,
The third data pin 222 of above-mentioned USB connector 13 includes: the 2nd USB_D+ pin and the 2nd USB_D- pin. The second data transmission pin 214 of above-mentioned processor 11 includes: the 2nd D+ pin and the 2nd D- pin.
It is above-mentioned during realizing data-transformation facility, be by the second switching circuit by the 2nd D+ pin and second The connection of USB_D+ pin, the 2nd D- pin is connect with the 2nd USB_D- pin.
It is above-mentioned during realizing audio-frequency function, be by the second switching circuit 25 by second sound channel signal wire 232 with 2nd USB_D- pin and/or the connection of the 2nd USB_D+ pin.
Further, as a kind of more specifically implementation of the second switching circuit 25, the second switching circuit 25 packet Include: third input channel, the 4th input channel, the second output channel and the second control terminal 255, above-mentioned processor 11 also wrap Include: second signal sends pin 213;
Specifically, one end of third input channel is connect with second sound channel signal wire 232, one end point of the 4th input channel Do not connect with the 2nd D+ pin and the 2nd D- pin, one end of the second output channel respectively with the 2nd USB_D- pin and second The connection of USB_D+ pin, the second control terminal 255 send pin 213 with second signal and connect, and draw for receiving second signal transmission The third switching signal that foot 213 is sent, or the 4th switching signal that pin 213 is sent, third are sent for receiving second signal The other end that switching signal is used to control third input channel is connect with the other end of the second output channel, to realize audio function Can, the other end that the 4th switching signal is used to control the 4th input channel is connect with the other end of the second output channel, to realize Data-transformation facility.
Assuming that being stereosonic earphone, then second sound channel signal wire 232 includes the second left channel signals line and the second right sound Road signal wire, it is above-mentioned to realize audio-frequency function, it is by the second switching circuit 25 by the first USB_D+ pin and the second L channel Signal wire connection, the 2nd USB_D- pin is connect with the second right-channel signals line, or, passing through the second switching circuit 25 for second USB_D+ pin is connect with the second right-channel signals line, and the 2nd USB_D- pin is connect with the second left channel signals line;Assuming that It is the earphone of monophonic, then second sound channel signal wire 232 includes the second left channel signals line or the second right-channel signals line, with the 2-channel signal line 232 is for the second left channel signals line, above-mentioned to realize audio-frequency function, being will by the second switching circuit First USB_D+ pin is connect with the second left channel signals line, or, the 2nd USB_D- pin and the second left channel signals line are connected It connects.Below by taking mono headset as an example.
A kind of more specifically implementation of the second above-mentioned switching circuit 25 are as follows: the 4th of the second switching circuit 25 is defeated Entering channel includes: the 5th sub- input channel 253 and the 6th sub- input channel 254;Second output channel packet of the second switching circuit It includes: the sub- output channel 251 of third and the 4th sub- output channel 252.
One end of third input channel 257 is connect with the second left channel signals line B;One end of 5th sub- input channel 253 It is connect with the 2nd D+ pin, one end of the 6th sub- input channel 254 is connect with the 2nd D- pin;The sub- output channel 251 of third One end is connect with the 2nd USB_D+ pin, and one end of the 4th sub- output channel 252 is connect with the 2nd USB_D- pin;
Above-mentioned realization audio-frequency function method particularly includes: the second control terminal 255 third switching signal based on the received, by The other end of three input channels 257 is connect with the other end of the 4th sub- output channel 252;
Above-mentioned realization data-transformation facility method particularly includes: the second control terminal 255 the 4th switching signal based on the received, The other end of 5th sub- input channel 253 is connect with the other end of the sub- output channel 251 of third, by the 6th sub- input channel 254 other end is connect with the other end of the 4th sub- output channel 252.
After the peripheral type being inserted into determining USB connector 13 is data transmission set, the two the of processor 11 One power supply signal sends pin and sends the second power supply signal to second source VDD_IO administrative unit, so that second source VDD_IO Administrative unit is powered to the 2nd VBUS pin 221.
It is worth noting that, above-mentioned the second peripheral hardware insertion detection pin 211 can be in existing processor 11 GPIO pin (is configured to interrupt function), or special IRQ interrupt pin.
Above-mentioned comparison circuit 21 can also be realized directly using comparator.
The embodiment of the present invention also provides a kind of mobile terminal, including the general string as described in any one embodiment of Fig. 1 to Fig. 6 The USB connector of row bus USB interface multiplex circuit, it is similar that the realization principle and technical effect are similar, and details are not described herein again.
The embodiment of the present invention also provides a kind of earphone, comprising: headset plug and earphone cable, the headset plug and the ear The connection of machine line, the headset plug are used to be inserted into the general-purpose serial bus USB interface as described in any one embodiment of Fig. 1 to Fig. 3 In the USB connector of multiplex circuit;The headset plug includes Mike's pin, sound channel pin, grounding pin, Mike's pin It is configured as connecting with first data pin in the data of USB connector transmission pin, the sound channel pin quilt It is configured to connect with second data pin in the data of USB connector transmission pin, the grounding pin is matched It is set to and is connect with the first USB_ID pin in the USB connector;Wherein, the sound channel pin be left channel pin or Right channel pin.
Its implementing principle and technical effect is similar to the above embodiments, and details are not described herein again.
The embodiment of the present invention also provides a kind of earphone, comprising: headset plug and earphone cable, the headset plug and the ear The connection of machine line, the headset plug are used to be inserted into the general-purpose serial bus USB as described in any one embodiment of Fig. 1, Fig. 5 or Fig. 6 In the USB connector of interface multiplexing circuit;The headset plug includes Mike's pin, the first sound channel pin, grounding pin, described Mike's pin is configured as connecting with the 2nd USB_ID pin of the USB connector, and the sound channel pin is configured as It is connect with the third data pin in the data of USB connector transmission pin, the grounding pin is configured the position USB Grounding pin connection in connector.Wherein, the first sound channel pin can for left channel pin what/or right channel pin.
Its implementing principle and technical effect is similar to the above embodiments, and details are not described herein again.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (16)

1. a kind of general-purpose serial bus USB interface multiplexing circuit characterized by comprising
Processor, voicefrequency circuit, USB connector and voltage follower circuit,
The voltage follower circuit is connect with the voicefrequency circuit, for providing voltage to the voicefrequency circuit;
The processor is connect with the USB connector and the voicefrequency circuit respectively, the USB connector and the audio-frequency electric Road connection;
The processor determines in the USB connector for detecting the signal of the USB connector, and according to the signal Whether peripheral hardware is inserted into;
The processor detects the voltage of the voicefrequency circuit after being also used to be inserted into peripheral hardware in determining the USB connector Value;
The processor is also used to determine the peripheral type being inserted into the USB connector according to the voltage value of detection;
The circuit further include: the first switching circuit, the processor include: the first detection pin, first data transmission pin; The USB connector includes: the first data pin;
The processor is connect with the USB connector specifically: the first data transmission pin can be cut by described first Circuit is changed to be connected with first data pin;
The processor is connect with the voicefrequency circuit specifically: the first detection pin is connected with the voicefrequency circuit;
The USB connector is connected with the voicefrequency circuit specifically:
The voicefrequency circuit is connected by first switching circuit with first data pin;
First switching circuit is also connected with the processor, and first switching circuit is used to be sent out according to the processor The voicefrequency circuit and first data pin is connected in the first switching signal out;Second issued according to the processor cuts Change first data transmission pin described in signal conduction and first data pin;
The voicefrequency circuit includes: first Mike's signal wire,
The first detection pin is connected with the voicefrequency circuit, specifically includes: the first detection pin and described first Mike's signal wire is connected;
The voicefrequency circuit is connected by first switching circuit with first data pin, is specifically included: described One Mike's signal wire is connected by first switching circuit with first data pin;
In terms of the voltage value for detecting the voicefrequency circuit, the processor is specifically used for: passing through the first detection pin Detect the voltage value of the first Mike signal wire.
2. circuit according to claim 1, which is characterized in that determine insertion institute according to the voltage value of detection described The aspect of the peripheral type in USB connector is stated, the processor is specifically used for:
If the voltage value in the first Mike signal wire is less than second threshold and is greater than first threshold, the processor is determined The peripheral type being inserted into the USB connector is earphone;
If the voltage value in the first Mike signal wire is greater than third threshold value, the processor determines that being inserted into the USB connects Connecing the peripheral type in device is data transmission set;
If the voltage value in the first Mike signal wire is less than the first threshold, or, being less than the third threshold value and being greater than The second threshold, then the processor determines that the peripheral type being inserted into the USB connector is other equipment;
Wherein, the third threshold value is greater than the second threshold.
3. circuit according to claim 2, which is characterized in that the circuit further include: the first Power Management Unit, it is described USB connector further include: the first VBUS pin,
First Power Management Unit is connect with the processor and the first VBUS pin respectively,
The processor is also used to: after determining that the peripheral type in the insertion USB connector is data transmission set, to First Power Management Unit sends the first power supply signal, and first power supply signal is used to indicate first power management Unit is to the first VBUS pin powered;And the second switching signal, second switching are sent to first switching circuit The first data transmission pin and first data pin is connected for controlling first switching circuit in signal.
4. circuit according to claim 1-3, which is characterized in that the voltage follower circuit includes: first point Piezoresistance and for providing the first power supply of Mike's bias voltage,
The voltage follower circuit connect with the voicefrequency circuit and specifically includes: first power supply and first divider resistance One end connection, the other end of first divider resistance connect with the first Mike signal wire.
5. circuit according to claim 1, which is characterized in that the USB connector includes: the first USB_ID pin, institute Stating processor includes: the second detection pin;
The processor is connect with the USB connector further include: the second detection pin and the first USB_ID pin Connection;
The processor is used to detect the signal of the USB connector specifically: the second detection pin is described for detecting The signal of first USB_ID pin;
In terms of the processor determines and is inserted into peripheral hardware in the USB connector, the processor is specifically used for:
If the signal that the second detection pin detects the first USB_ID pin is logic-low signal, it is determined that described Peripheral hardware is inserted into USB connector.
6. circuit according to claim 5, which is characterized in that the voicefrequency circuit further include: the first sound channel signal line;Institute State USB connector further include: the second data pin;
First switching circuit is also used to when receiving first switching signal, be connected the first sound channel signal line and Second data pin of the USB connector.
7. circuit according to claim 1, which is characterized in that the voicefrequency circuit includes: second Mike's signal wire, described USB connector includes: the 2nd USB_ID pin;The processor includes: third detection pin, the 4th detection pin;
The voltage follower circuit is connect with the voicefrequency circuit, is specifically included for providing voltage to the voicefrequency circuit: institute It states voltage follower circuit to connect with the second Mike signal wire, for providing voltage to the second Mike signal wire;
The processor is connect with the USB connector and the voicefrequency circuit respectively, is specifically included: the third detects pin It is connected by the second Mike signal wire with the 2nd USB_ID pin, the 4th detection pin and second wheat Gram signal wire is connected;
The processor detects the voltage value of the voicefrequency circuit specifically: the 4th detection pin detects second Mike The voltage value of signal wire.
8. circuit according to claim 7, which is characterized in that determine insertion institute according to the voltage value of detection described The aspect of the peripheral type in USB connector is stated, the processor is specifically used for:
If the voltage value in the second Mike signal wire, less than the 4th threshold value, the processor determines that being inserted into the USB connects Connecing the peripheral type in device is data transmission set;
If the voltage value in the second Mike signal wire less than the 5th threshold value and is greater than the 6th threshold value, the processor is determined The peripheral type being inserted into the USB connector is earphone;
If the voltage value in the second Mike signal wire is less than the 6th threshold value and is greater than the 4th threshold value, or is greater than institute The 5th threshold value is stated, then the processor determines that the peripheral type being inserted into the USB connector is other equipment;
Wherein, the 4th threshold value is less than the 6th threshold value.
9. circuit according to claim 8, which is characterized in that the circuit further include: the second switching circuit, the processing Device includes: the second data transmission pin, the voicefrequency circuit further include: second sound channel signal wire;The USB connector includes: Third data pin;
The processor is connect with the USB connector, and the USB connector is connected with the voicefrequency circuit specifically:
The second data transmission pin can be connected by second switching circuit with the third data pin;Described 2-channel signal line can be connected by second switching circuit with the third data pin;
The processor is also used to: determining that being inserted into the peripheral type in the USB connector is Xiang Suoshu second after earphone Switching circuit sends third switching signal, and the third switching signal is for controlling the second switching circuit conducting described second Sound channel signal line and the third data pin;
Or,
The processor is also used to: after determining that the peripheral type in the insertion USB connector is data transmission set, to Second switching circuit sends the 4th switching signal, and the 4th switching signal is for controlling the second switching circuit conducting The second data transmission pin and the third data pin.
10. circuit according to claim 8 or claim 9, which is characterized in that the circuit further include: second source administrative unit; The USB connector further include: the 2nd VBUS pin;
The second source administrative unit is connect with the processor and the 2nd VBUS pin respectively,
The processor is also used to: the peripheral type being inserted into determining the USB connector be data transmission set after, to The second source administrative unit sends the second power supply signal, and second power supply signal is for controlling the second source management Unit is powered to the 2nd VBUS.
11. circuit according to claim 7, which is characterized in that the third detection pin is believed by second Mike Number line is connect with the 2nd USB_ID pin, specifically: between the third detection pin and the second Mike signal wire Be provided with comparison circuit, the output end of the comparison circuit is connected with third detection pin, the comparison circuit it is defeated Enter end to be connected with one end of the second Mike signal wire, the other end of the second Mike signal wire and the 2nd USB_ ID pin is connected;
The processor determines in the USB connector for detecting the signal of the USB connector, and according to the signal Peripheral hardware whether is inserted into specifically include:
The comparison circuit detects the voltage value of the 2nd USB_ID pin;
The comparison circuit judges whether the voltage value of the 2nd USB_ID pin is less than preset voltage value, if described second The voltage value of USB_ID pin is less than the preset voltage value, then the comparison circuit is used to indicate institute to processor transmission State the indication signal that peripheral hardware is inserted into USB connector;
After the processor receives the indication signal, is determined in the USB connector according to the indication signal and be inserted into peripheral hardware.
12. circuit according to claim 11, which is characterized in that the comparison circuit includes: the second divider resistance, third Divider resistance, operational amplifier and second source;
The output end of the comparison circuit and the third detection pin are connected, the input terminal of the comparison circuit and described the Two Mike's signal wires, which are connected, includes:
The output end of the operational amplifier is connected with third detection pin;
The noninverting input of the operational amplifier is connected with the second Mike signal wire;
The reverse input end of the operational amplifier respectively with one end of second divider resistance and the third divider resistance One end connection, the other end of second divider resistance connect with the second source, the third divider resistance it is another End ground connection;
The comparison circuit judges whether the voltage value of the 2nd USB_ID pin is less than preset voltage value, if described second The voltage value of USB_ID pin is less than the preset voltage value, then the comparison circuit is used to indicate institute to processor transmission The indication signal for being inserted into peripheral hardware in USB connector is stated, is specifically included:
The noninverting input obtains the voltage value of the 2nd USB_ID pin, and the electricity of the 2nd USB_ID pin Whether pressure value is less than the voltage value of the reverse input end, if the voltage value of the 2nd USB_ID pin is reversed defeated less than described Enter the voltage value at end, then the output end of the operational amplifier sends the indication signal, and institute to third detection pin Stating indication signal is logic-low signal.
13. circuit according to claim 12, which is characterized in that the voltage follower circuit includes: the 4th divider resistance With for providing the third power supply of Mike's bias voltage,
The voltage follower circuit connect with the voicefrequency circuit and specifically includes: the third power supply and the 4th divider resistance One end connection, the other end of the 4th divider resistance connect with the second Mike signal wire.
14. a kind of mobile terminal, it is characterised in that:
USB connector including the described in any item general-purpose serial bus USB interface multiplexing circuits of such as claim 1-13.
15. a kind of earphone, comprising: headset plug and earphone cable, the headset plug are connect with the earphone cable, and feature exists In,
The headset plug is used to be inserted into the USB connection of general-purpose serial bus USB interface multiplexing circuit as claimed in claim 6 In device;
The headset plug includes Mike's pin, sound channel pin, grounding pin, and Mike's pin is configured as and the USB First data pin connection in the data transmission pin of connector, the sound channel pin are configured as connecting with the USB Second data pin connection in the data transmission pin of device is connect, the grounding pin is configured as connecting with the USB The first USB_ID pin connection in device;
Wherein, the sound channel pin is left channel pin or right channel pin.
16. a kind of earphone, comprising: headset plug and earphone cable, the headset plug are connect with the earphone cable, and feature exists In,
The headset plug is for being inserted into such as the described in any item general-purpose serial bus USB interface duplexes of the claim 7-13 In the USB connector of circuit;
The headset plug includes Mike's pin, the first sound channel pin, grounding pin, Mike's pin be configured as with it is described The 2nd USB_ID pin of USB connector connects, and the sound channel pin is configured as passing with the data of the USB connector Third data pin connection in defeated pin, the grounding pin are configured the connection of the grounding pin in the USB connector of position.
CN201610162404.XA 2016-03-21 2016-03-21 USB interface multiplex circuit, mobile terminal and earphone Active CN105635885B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610162404.XA CN105635885B (en) 2016-03-21 2016-03-21 USB interface multiplex circuit, mobile terminal and earphone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610162404.XA CN105635885B (en) 2016-03-21 2016-03-21 USB interface multiplex circuit, mobile terminal and earphone

Publications (2)

Publication Number Publication Date
CN105635885A CN105635885A (en) 2016-06-01
CN105635885B true CN105635885B (en) 2019-05-07

Family

ID=56050302

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610162404.XA Active CN105635885B (en) 2016-03-21 2016-03-21 USB interface multiplex circuit, mobile terminal and earphone

Country Status (1)

Country Link
CN (1) CN105635885B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106331946A (en) * 2015-06-30 2017-01-11 宇龙计算机通信科技(深圳)有限公司 Switching circuit for earphone interface and terminal
CN107643994B (en) * 2016-07-20 2021-11-30 中兴通讯股份有限公司 Terminal, terminal peripheral, signal sending and receiving method and data transmission system
CN106207685B (en) * 2016-07-22 2018-11-30 歌尔股份有限公司 A kind of plug interconnecting device
TWI639922B (en) * 2016-09-08 2018-11-01 鈺群科技股份有限公司 Usb type-c connecting module
CN106603755B (en) * 2016-10-26 2019-06-14 珠海格力电器股份有限公司 Mobile terminal and data processing method based on mobile terminal
WO2018113128A1 (en) * 2016-12-20 2018-06-28 华为技术有限公司 Method for recognizing plug-and-play device, and electronic device
CN108052467A (en) * 2017-11-27 2018-05-18 努比亚技术有限公司 A kind of interface self-adaption method, terminal and computer readable storage medium
CN108009116B (en) * 2017-12-22 2021-01-05 努比亚技术有限公司 MicroUSB interface circuit and mobile terminal thereof
CN108197060B (en) * 2018-01-30 2022-06-28 深圳市启迈电子科技有限公司 USB interface conversion device and method and mobile terminal
CN110783777B (en) * 2018-07-12 2022-02-18 中兴通讯股份有限公司 Anti-interference method, device and system
WO2020061941A1 (en) * 2018-09-27 2020-04-02 深圳市大疆创新科技有限公司 Communication method and system, and movable platform
CN110569207A (en) * 2019-04-10 2019-12-13 北京乐驾科技有限公司 Interface multiplexing device and vehicle-mounted equipment
CN110312180A (en) * 2019-05-28 2019-10-08 晶晨半导体(上海)股份有限公司 A method of using earphone base and USB OTG multiplexing functions
CN111124134A (en) * 2019-12-30 2020-05-08 歌尔科技有限公司 Data transmission method and device of head-mounted display equipment and head-mounted display equipment
CN113556642A (en) * 2021-07-09 2021-10-26 维沃移动通信有限公司 Electronic equipment assembly and terminal equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201359725Y (en) * 2009-01-21 2009-12-09 青岛海信移动通信技术股份有限公司 USB interface circuit and portable hand-held device provided with the circuit
US8090894B1 (en) * 2007-09-21 2012-01-03 Cypress Semiconductor Corporation Architectures for supporting communication and access between multiple host devices and one or more common functions
CN203167074U (en) * 2013-01-11 2013-08-28 青岛海信移动通信技术股份有限公司 Mobile terminal configured with reuse interface
CN104023294A (en) * 2014-05-30 2014-09-03 广东欧珀移动通信有限公司 Interface multiplexing apparatus in terminal, and adaptor panel

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8090894B1 (en) * 2007-09-21 2012-01-03 Cypress Semiconductor Corporation Architectures for supporting communication and access between multiple host devices and one or more common functions
CN201359725Y (en) * 2009-01-21 2009-12-09 青岛海信移动通信技术股份有限公司 USB interface circuit and portable hand-held device provided with the circuit
CN203167074U (en) * 2013-01-11 2013-08-28 青岛海信移动通信技术股份有限公司 Mobile terminal configured with reuse interface
CN104023294A (en) * 2014-05-30 2014-09-03 广东欧珀移动通信有限公司 Interface multiplexing apparatus in terminal, and adaptor panel

Also Published As

Publication number Publication date
CN105635885A (en) 2016-06-01

Similar Documents

Publication Publication Date Title
CN105635885B (en) USB interface multiplex circuit, mobile terminal and earphone
EP2597844B1 (en) Method and device for sharing micro-usb interface between earphone and usb
CN103945310B (en) Transmission method, mobile terminal, multi-channel earphones and audio playing system
US9680980B2 (en) Electronic device accessory
CN103222279B (en) Earphone interface is multiplexed with Multipurpose connector and the hand-hold electronic equipments of high resolution video and audio interface
CN205176841U (en) USB -Type -C interface converter
CN101951421B (en) Expansion use method for cell phone earphone interface
CN203167074U (en) Mobile terminal configured with reuse interface
CN209627625U (en) A kind of charging bluetooth earphone box, bluetooth headset and its data transmission system
CN104023294A (en) Interface multiplexing apparatus in terminal, and adaptor panel
CN101426038A (en) Portable electronic device and accessory identification method
CN105933823A (en) Backward compatible system and method for using 4P audio jack to provide power and signal to headset with active noise cancellation
CN105848028A (en) Earphone for charging audio device and method for charging audio device
CN110018976A (en) USB main equipment responds USB from device, method and relevant device
CN203014451U (en) USB charger
CN106658328B (en) A kind of earphone test circuit
EP3804352B1 (en) A headset system with a headset and a control box
CN206195104U (en) Cable connector module
CN209640835U (en) A kind of device of online upgrading Earphone box
CN105049998B (en) A kind of audio communication device
CN206878285U (en) A kind of two-in-one patchcord of audio charging
CN202267960U (en) Debugging device for universal asynchronous receiver/transmitter
CN105049584B (en) Attachment management and data communication are carried out using audio port
CN203912158U (en) USB and audio multiplexing line and Bluetooth sound box circuit
CN204069293U (en) Bluetooth circuit and comprise the blue-tooth device of this Bluetooth circuit

Legal Events

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