CN104035357A - Headset, charging and OTG equipment circuit design based on USB socket - Google Patents

Headset, charging and OTG equipment circuit design based on USB socket Download PDF

Info

Publication number
CN104035357A
CN104035357A CN201410301411.4A CN201410301411A CN104035357A CN 104035357 A CN104035357 A CN 104035357A CN 201410301411 A CN201410301411 A CN 201410301411A CN 104035357 A CN104035357 A CN 104035357A
Authority
CN
China
Prior art keywords
pin
module
circuit
usb
charging
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.)
Granted
Application number
CN201410301411.4A
Other languages
Chinese (zh)
Other versions
CN104035357B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201410301411.4A priority Critical patent/CN104035357B/en
Publication of CN104035357A publication Critical patent/CN104035357A/en
Application granted granted Critical
Publication of CN104035357B publication Critical patent/CN104035357B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Headphones And Earphones (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The invention relates to headset, charging and OTG equipment circuit design based on a USB socket. The headset, charging and OTG equipment circuit design comprises a Mirco USB interface module, a Switch Circuit exchange circuit switch module, a charging circuit module, a USB data channel interface, an AUDIO voice channel interface, a VBUS detection circuit module and an MIC/ID diverter switch module. The design problem of current USB/OTG/charging/headsets and the like is mainly solved, the design of a VBUS detection circuit is provided, and the detection problem between the USB/OTG/charging equipment and the headset equipment is solved through VBUS pin signals. The design of MIC/ID channel switching control circuit is further provided. A result is detected through the interrupt signals of the VUBS detection circuit, two sets of selected MIC/ID channel switching control schemes are provided for hardware control and software CPU control, and the multiplexing problem of ID and MIC signals is solved.

Description

The circuit design of the earphone based on USB socket, charging and OTG equipment
Technical field
The present invention relates to the technical field of the circuit design of USB socket, particularly a kind of circuit design of earphone, charging and the OTG equipment based on USB socket.
Background technology
USB (Universal Serial Bus, when USB (universal serial bus)) agreement is located at main frame with other peripheral hardware work outside allowing, be connected configuration, use and remove (plug and play being commonly called as), the application of usb bus simultaneously can be removed the I/O port that PC went up, and with several serial-ports, replace, make between PC and peripheral hardware be connected convenient succinct.
The function that current USB realizes the support of earphone, charging and OTG equipment is multiplexing by MIC and VBUS, but when MIC and VBUS are multiplexing, has the problem of Negative pressure prevention, can not meet the requirement of product to quality.
At present, the problem existing when some specialities device requirements design without 3.5mm earphone base, is mainly to utilize USB socket to realize the function of earphone without 3.5mm earphone, however the problem that can exist some how to design such as MIC signal when USB earphone is multiplexing.
Conventionally VBUS or ID pin can be realized MIC function, yet the two all can have problems when multiplexing: during the multiplexing MIC signal of VBUS, have the isolating problem of Negative pressure prevention and MIC, have the compatibling problem of three-section earphone and OTG equipment during the multiplexing MIC of ID.
Summary of the invention
The shortcoming that the object of the invention is to overcome prior art is with not enough, a kind of circuit design of earphone, charging and the OTG equipment based on USB socket is provided, solution, for the design problem about USB/OTG/ charging/earphone of current general primary demand, first realizes the detection of distinct device by having proposed a kind of design of VBUS testing circuit; Then the design that has also proposed a kind of MIC/ID ON-OFF control circuit solves ID signal as the multiplying question of MIC.
Object of the present invention is achieved through the following technical solutions:
The circuit design of the earphone based on USB socket, charging and OTG equipment, comprise Mirco usb interface module, charging circuit module, usb data channel interface and AUDIO voice channel interface, it is characterized in that, also comprise VBUS testing circuit module, Switch Circuit switched circuit switch module, MIC/ID change-over switch module;
Described Micro usb interface module comprises at least 5 above pins, the corresponding VBUS pin of the first pin wherein, be connected with Switch Circuit switched circuit switch module with charging circuit module respectively, second, the corresponding DM pin of the 3rd pin, DP pin, by being connected with AUDIO voice channel interface with usb data channel interface respectively after the switching of Switch Circuit switched circuit switch module, the corresponding ID pin of the 4th pin, by being also connected with AUDIO voice channel interface with usb data channel interface respectively after the switching of MIC/ID change-over switch module, the corresponding GND pin of the 5th pin, this pin ground connection,
Described VBUS testing circuit module, is connected with charging circuit module, for detection of interrupt level, just distinguishes judgement USB/OTG/ charging equipment and ear speaker device; This VBUS testing circuit module is also connected with Switch Circuit switched circuit switch module with MIC/ID change-over switch module respectively;
Described MIC/ID change-over switch module, be connected with AUDIO voice channel interface with usb data channel interface respectively, this module is switched the conducting of Micro usb interface module the 4th pin and usb data channel interface and AUDIO voice channel interface by the testing result of above-mentioned VBUS testing circuit module.
Preferably, described Micro usb interface module comprises 5 pin specifications and 7 pin specifications, wherein the corresponding VBUS pin of first, second pin of the Micro usb interface module of 7 pin specifications, the corresponding DM pin of the 3rd pin, the corresponding DP pin of the 4th pin, the corresponding ID pin and the 6th of the 5th pin, the 7th pin corresponding GND pin all.
Preferably, the comparer LMV331SQ3T2G that the equipment Inspection function of described VBUS testing circuit module is encapsulated by TSOP5 realizes, the circuit of this module comprises comparer LMV331SQ3T2G, the first diode, the first resistance, the second resistance, the 3rd resistance, the 4th resistance of USB-VCHR pin, VIO18-PMU pin, HP-DET-INT13 pin, TSOP5 encapsulation
Described USB-VCHR pin connects the negative electrode of the first diode; The positive input of the anodic bonding comparer of the first diode, the anode of the first diode is also connected with VIO18-PMU pin by the first resistance; VIO18-PMU pin connects the reverse input end of comparer by the second resistance; The reverse input end of comparer connects ground connection by the 3rd resistance; Meanwhile, the GND of comparer holds ground connection, and the Vcc end of comparer is connected with VIO18-PMU pin; VIO18-PMU pin is also connected with the output terminal of comparer by the 4th resistance, and the output terminal of comparer is connected with HP-DET-INT13 pin.
Preferably, the equipment Inspection function of described VBUS testing circuit module is realized by triode, the circuit of this module comprises USB-VCHR pin, VIO18-PMU pin, HP-DET-INT13 pin, triode 2PC4617, the second diode, the 3rd diode, the 5th resistance, the 6th resistance, the 7th resistance
Described USB-VCHR pin connects the negative electrode of the second diode; The anode of the second diode is also connected with VIO18-PMU pin by the 5th resistance, and the anode of the second diode is connected with the anode of the 3rd diode; The negative electrode of the 3rd diode is connected with the base stage of triode by the 6th resistance; The collector of triode is connected with VIO18-PMU pin by the 7th resistance, is also directly connected with HP-DET-INT13 pin simultaneously; The grounded emitter of triode.
Preferably, described Switch Circuit switched circuit switch module comprises SN74LVC1G3157 single-pole double-throw (SPDT) analog switch chip, realizes the switching over function of ID/MIC passage.
Preferably, described circuit design also comprises CPU control module, and this CPU control module is connected with VBUS testing circuit module, receives the look-at-me testing result of VBUS testing circuit module; Above-mentioned CPU control module is also connected with Switch Circuit switched circuit switch module, the control program that provides MIC/ID passage to switch.
Preferably, described circuit design also provides a kind of earphone card extender of equipment Inspection of the VBUS of cooperation testing circuit module, the S_R pin of wherein said earphone card extender connects Micro usb interface module DM pin, the S_L pin of earphone card extender connects Micro usb interface module DN pin, the ID pin of earphone card extender connects Micro usb interface module MIC pin, the S_L pin of earphone card extender connects Micro usb interface module DN pin, and the GND pin of earphone card extender connects VBUS pin and the GND pin of Micro usb interface module.
Preferably, described circuit design also comprises extended channel interface, and this extended channel interface is connected with the ID passage of MIC/ID change-over switch module with Switch Circuit switched circuit switch module respectively, in order to expand other external apparatus interfaces.
Preferably, described charging circuit module comprises Charger IC charging integrated circuit modules and Battery battery module.
The present invention has following advantage and effect with respect to prior art:
1, the present invention proposes a kind of design of VBUS testing circuit, realize the test problems between the equipment such as USB/OTG/ charging and ear speaker device.
Then 2, a kind of design of MIC/ID ON-OFF control circuit also proposed, by the look-at-me testing result of VBUS testing circuit, provide hardware controls and software cpu to control the technical scheme of the optional MIC/ID passage switching controls of two covers, made implementation flexible and selectable more.
3, simultaneously, the design of MIC/ID ON-OFF control circuit also solves ID signal as the multiplying question of MIC, has the isolating problem of Negative pressure prevention and MIC while effectively having avoided the multiplexing MIC signal of VBUS.
When 4, the design of MIC/ID ON-OFF control circuit also solves the multiplexing MIC of ID simultaneously, there is the compatibling problem of three-section earphone and OTG equipment.
5,, when VBUS testing circuit detects MIC equipment, the circuit design that this invention proposes can also, according to the difference of MIC signal, judge syllogic or four-part form earphone by judgement thresholding is set
Accompanying drawing explanation
Fig. 1 is the application module composition frame chart of the embodiment of the present invention one;
Fig. 2 is the earphone card extender pin corresponding diagram of the embodiment of the present invention one;
Fig. 3 is the VBUS testing circuit schematic diagram of the use comparer of the embodiment of the present invention one;
Fig. 4 is the circuit theory diagrams of the MIC/ID change-over switch module of the embodiment of the present invention one;
Fig. 5 is the application module composition frame chart of the embodiment of the present invention two;
Fig. 6 is the VBUS testing circuit schematic diagram of the use triode of the embodiment of the present invention three.
Embodiment
Below in conjunction with embodiment and accompanying drawing, the present invention is described in further detail, but embodiments of the present invention are not limited to this.
Embodiment mono-
The present invention solves the problem existing when some specialities device requirements design without 3.5mm earphone base, without 3.5mm ear speaker device, be mainly to utilize USB socket to realize the function of earphone, however the problem that can exist some how to design such as MIC signal when USB earphone is multiplexing.
This programme is mainly the design problem solving for the equipment such as USB/OTG/ charging/earphone of current general primary demand, a kind of design of VBUS testing circuit has been proposed, utilize VBUS leg signal to realize the test problems between the equipment such as USB/OTG/ charging and ear speaker device, then a kind of design of MIC/ID ON-OFF control circuit has also been proposed, by the look-at-me testing result of VBUS testing circuit, the control program of hardware controls and the optional MIC/ID ON-OFF control circuit of software cpu control two cover is provided, has solved the multiplying question of ID and MIC signal.
One, define multiplexing USB socket, the socket of USB is defined as follows conventionally, such as mini USB, micro USB etc.Each pin pin of 5pin USB is defined as follows table:
In some designs in order to improve the conveyance capacity of charging, increase accordingly the pin of VBUS and GND at present, such as 7pin USB, also met this design conditions.
Each pin pin of 7pin USB is defined as follows table:
Two, the application module composition frame chart of the embodiment of the present invention, as shown in Figure 1.
The circuit design of the earphone based on USB socket in this example, charging and OTG equipment, comprises MircoUSB interface module, Switch Circuit switched circuit switch module, charging circuit module, usb data channel interface, AUDIO voice channel interface, VBUS testing circuit module, MIC/ID change-over switch module;
Described Micro usb interface module comprises at least 5 above pins, the corresponding VBUS pin of the first pin wherein, be connected with Switch Circuit switched circuit switch module with charging circuit module respectively, second, the corresponding DM pin of the 3rd pin, DP pin, by being connected with AUDIO voice channel interface with usb data channel interface respectively after the switching of Switch Circuit switched circuit switch module, the corresponding ID pin of the 4th pin, by being also connected with AUDIO voice channel interface with usb data channel interface respectively after the switching of MIC/ID change-over switch module, the corresponding GND pin of the 5th pin, this pin ground connection.Under the Micro usb interface module situation of 7 pin specifications, the corresponding VBUS pin of first, second pin, the corresponding DM pin of the 3rd pin, the corresponding DP pin of the 4th pin, the corresponding ID pin and the 6th of the 5th pin, the 7th pin be corresponding GND pin all.
Described VBUS testing circuit module, is connected with charging circuit module, for detection of interrupt level, just distinguishes judgement USB/OTG/ charging equipment and ear speaker device; This VBUS testing circuit module is also connected with Switch Circuit switched circuit switch module with MIC/ID change-over switch module respectively.
Described MIC/ID change-over switch module, be connected with AUDIO voice channel interface with usb data channel interface respectively, this module is switched the conducting of Micro usb interface module the 4th pin and usb data channel interface and AUDIO voice channel interface by the testing result of above-mentioned VBUS testing circuit module.
The problem that the present embodiment mainly solves is exactly the design of VBUS testing circuit and the design of MIC/ID ON-OFF control circuit, by the testing circuit of VBUS testing circuit module, judge the insertion of ear speaker device, thereby control MIC/ID change-over switch, if earphone, open MIC passage, the 2nd DM pin and the 3rd DP pin S_R R channel by AUDIO voice channel interface and S_L L channel are communicated with and carry out relevant portion and communicate by letter; Otherwise open ID passage, the 2nd DM pin and the 3rd DP pin D-by usb data channel interface and D+ pin are communicated with and carry out interlock circuit and communicate by letter, need further to judge again USB or OTG equipment after opening ID passage simultaneously.
In the present embodiment, Switch Circuit switched circuit switch module and MIC/ID change-over switch module are switched by hardware mode gauge tap, by VBUS testing circuit module, detect and interrupt controlling, by the detection of look-at-me, send different control commands, hardware mode also need to design for the logic state of change-over switch simultaneously.
Three, the circuit theory explanation of VBUS testing circuit module
I. circuit theory
Micro usb interface module VBUS pin is 5v power supply when charging, (NC is illustrated in when there is no 5v voltage NC, by utilizing high resistant characteristic, adjust comparator reference level, thereby be high-impedance state in the time of the corresponding OTG look-at-me of assurance acquisition), earphone is due to without 3.5mm earphone Jack, VBUS belongs to high resistant or ground state, and the state in the time of therefore can utilizing VBUS access distinct device is identified equipment.
For charging/USB/OTG equipment, because VBUS pin level is 5v power supply, make diode cut-off, make anti-phase input terminal voltage higher than in-phase input end voltage, thereby guarantee that comparer is output as low level, can be accordingly as hardware controls signal, and now testing circuit interrupts for low level, the two applies corresponding same switching channel, i.e. D+/D-; For earphone, because VBUS pin level is low level (now, corresponding diode current flow, make anti-phase input terminal voltage lower than in-phase input end voltage, thereby guarantee that comparer is output as high level), and detect interruption for high level, therefore can switch to Audio passage.
Under this technical scheme of this embodiment, due to without 3.5mm earphone Jack, need to be by the design of earphone card extender as shown in Figure 2, Micro usb interface module VBUS pin is connected with the GND pin of 3.5mm Audio (earphone) Jack interface after being communicated with GND pin, Micro usb interface module DM pin is connected with S_R (R channel) pin of 3.5mm Audio (earphone) Jack interface, DN pin is connected with S_L (L channel) pin, and ID pin is connected with MIC (microphone) pin.
Ii. reference circuit design
By comparer, realize the function of VBUS testing circuit modular circuit, obtain the state of distinct device, physical circuit figure as shown in Figure 3.In Fig. 3, the VBUS pin of the corresponding Micro usb interface module of the USB-VCHR pin of VBUS testing circuit modular circuit, is input/output signal, is exactly the supply pin of USB, and OTG equipment is out-put supply; The VIO18-PMU pin of VBUS testing circuit modular circuit is a reference voltage, can be understood as input signal, this voltage can be according to the impedance state adjustment of OTG equipment, as long as guarantee that the impedance of OTG equipment meets the requirement that comparer is output as high level; The signal corresponding to HP-DET-INT13 pin of VBUS testing circuit modular circuit is detection look-at-me, for output signal, be used for controlling the switching of MIC/ID passage and the control signal of Switch Circuit switched circuit switch module, simultaneously also as the detection signal of CPU control module in embodiment bis-.Comparer principle in Fig. 3: when the voltage of in-phase end is during higher than end of oppisite phase, output is high level, otherwise is output as low level.
In this embodiment technical scheme, because earphone card extender is when inserting, testing circuit diode can conducting be low level state, now according to the design of comparer, can export low level and interrupt, so come the logic state of gauge tap to reach MIC/ID change-over switch module and Switch Circuit switched circuit switch module according to this state, switch to MIC passage and carry out related communication; When Micro usb interface module is inserted as USB charging equipment, obviously now diode is not conducting, interrupt, thereby MIC/ID passage switches to ID passage so comparer can be exported a high level; Be dexterously, when Micro usb interface module is inserted as OTG equipment, while not exporting due to VBUS, be high-impedance state, thereby now Circuit tuning can obtain a high level MIC/ID switch and also switch to ID passage, at ID, be read as after OTG output high level that can be stable.
Four, the circuit theory of MIC/ID change-over switch module explanation:
I. circuit theory
Output level by detector switch in VBUS testing circuit module is selected corresponding switching channel.
Ii. reference circuit design
As shown in the circuit theory diagrams of the MIC/ID change-over switch module of Fig. 4, the SN74LVC1G3157 chip that MIC/ID change-over switch modular circuit function YouTi company produces is realized, this chip has 6 pins, the corresponding change-over switch power supply of VCC pin, S pin is control pin, high level pin B1, corresponding ID passage; The corresponding MIC passage of low level pin B0; A pin is total signal, and B0/B1 pin is the branch road after switching.This chip need to detect level according to corresponding ear speaker device select different switched path, if USB/OTG equipment now can be opened ID passage, if audio frequency MIC passage.
The circuit design of a kind of earphone, charging and OTG equipment based on USB socket that the present invention proposes, by the insertion of VBUS testing circuit judgement ear speaker device, thereby controls MIC/ID Switch Control circuit, if earphone is opened MIC passage; Otherwise open ID passage, then can further judge again USB device or OTG equipment.
Wherein, it is as follows that USB device judgement detects principle: the equipment of the corresponding 5v of VBUS pin, this voltage is the high level of being exported by comparer, now open ID passage, because the ID pin of USB device is unsettled (NC), correspondence system ID detection port detects as high-impedance state, so will be judged as USB device.
Wherein, OTG equipment judgement detection principle is as follows: OTG needs card extender to carry out communicating by letter with earphone, and in card extender, ID pin is grounding; When system does not detect ID signal, system VBUS pin neither can be exported 5V, outside input does not have voltage yet, for OTG equipment, be exactly now a kind of high-impedance state, according to the reference voltage of comparer, now because can making comparer, high-impedance state is output as height, ID passage can be opened like this, further due to ID ground connection in card extender, so system can be according to this signal the insertion sign as OTG equipment, also will export 5v voltage, then system and OTG equipment have been done identical processing according to usb protocol.
Further, can also be according to difference judgement syllogic or the four-part form earphone of MIC channel signal after opening MIC passage.Detect principle: by MIC channel signal, detect, due to MIC ground connection, so corresponding voltage is very little for three-section earphone; For four-part form earphone, because MIC earth impedance is larger, therefore can detection threshold be set according to this, lower than voltage threshold, be three-section earphone, higher than being four-part form earphone.
Embodiment bis-
In the present embodiment, Switch Circuit switched circuit switch module and MIC/ID change-over switch module are switched by software mode gauge tap, application module composition frame chart under this embodiment also comprises cpu control module, this module detects interrupt level by receiving VBUS testing circuit module, then produces control signal and goes to the control problem that Switch Circuit switched circuit switch module and MIC/ID change-over switch module are switched to solve MIC passage and ID passage.Concrete application module composition frame chart under this embodiment as shown in Figure 5.
Embodiment tri-
In the present embodiment, realize the function of VBUS testing circuit modular circuit by triode, obtain the state of distinct device, physical circuit figure as shown in Figure 3.This circuit is consistent with the function of VBUS testing circuit modular circuit in embodiment mono-, circuit theory is different, when Micro usb interface module is inserted as earphone card extender, because base voltage is low level, triode is in off state, and now corresponding output level is high level; When Micro usb interface module is inserted as USB device or OTG equipment or charging, corresponding base voltage is high level, now triode is on state, therefore output is low level simultaneously, therefore can control the switching of MIC/ID passage and the control signal of Switch Circuit switched circuit switch module by these two kinds of different states, simultaneously also as the detection signal of CPU control module in embodiment bis-.
In Fig. 6, the corresponding Micro usb interface module of USB-VCHR pin VBUS pin, is input/output signal, is exactly the supply pin of USB, and OTG equipment is out-put supply; VIO18-PMU pin is a reference voltage, can be understood as input signal, and this voltage can be according to the impedance state adjustment of OTG equipment, as long as guarantee that the impedance of OTG equipment meets the requirement that transistor collector is output as high level; The signal that HP-DET-INT13 pin is corresponding is detection look-at-me, for output signal, be used for controlling the switching of MIC/ID passage and the control signal of Switch Circuit switched circuit switch module, simultaneously also as the detection signal of CPU control module in embodiment bis-.
In Fig. 6, the principle of work of triode is: when Micro usb interface module inserts USB device or OTG equipment or charging, because base voltage is higher, make BJT in saturated channel status, thereby look-at-me is low level; When Micro usb interface module plugged earphone equipment, base voltage is lower, and BJT is in cut-off state, so look-at-me is output as high level.High and low level in embodiment tri-need to be adjusted according to the parameter request of the saturated of triode and cut-off the size of resistance and base voltage herein.
Above-described embodiment is preferably embodiment of the present invention; but embodiments of the present invention are not restricted to the described embodiments; other any do not deviate from change, the modification done under Spirit Essence of the present invention and principle, substitutes, combination, simplify; all should be equivalent substitute mode, within being included in protection scope of the present invention.

Claims (9)

1. the circuit design of the earphone based on USB socket, charging and OTG equipment, comprise Mirco usb interface module, charging circuit module, usb data channel interface and AUDIO voice channel interface, it is characterized in that, also comprise VBUS testing circuit module, Switch Circuit switched circuit switch module, MIC/ID change-over switch module;
Described Micro usb interface module comprises at least 5 above pins, the corresponding VBUS pin of the first pin wherein, be connected with Switch Circuit switched circuit switch module with charging circuit module respectively, second, the corresponding DM pin of the 3rd pin, DP pin, by being connected with AUDIO voice channel interface with usb data channel interface respectively after the switching of Switch Circuit switched circuit switch module, the corresponding ID pin of the 4th pin, by being also connected with AUDIO voice channel interface with usb data channel interface respectively after the switching of MIC/ID change-over switch module, the corresponding GND pin of the 5th pin, this pin ground connection,
Described VBUS testing circuit module, is connected with charging circuit module, for detection of interrupt level, just distinguishes judgement USB/OTG/ charging equipment and ear speaker device; This VBUS testing circuit module is also connected with Switch Circuit switched circuit switch module with MIC/ID change-over switch module respectively;
Described MIC/ID change-over switch module, be connected with AUDIO voice channel interface with usb data channel interface respectively, this module is switched the conducting of Micro usb interface module the 4th pin and usb data channel interface and AUDIO voice channel interface by the testing result of above-mentioned VBUS testing circuit module.
2. the circuit design of earphone, charging and the OTG equipment based on USB socket according to claim 1, it is characterized in that: described Micro usb interface module comprises 5 pin specifications and 7 pin specifications, wherein the corresponding VBUS pin of first, second pin of the Micro usb interface module of 7 pin specifications, the corresponding DM pin of the 3rd pin, the corresponding DP pin of the 4th pin, the corresponding ID pin and the 6th of the 5th pin, the 7th pin corresponding GND pin all.
3. the circuit design of earphone, charging and the OTG equipment based on USB socket according to claim 1, it is characterized in that: the comparer LMV331SQ3T2G that the equipment Inspection function of described VBUS testing circuit module is encapsulated by TSOP5 realizes, the circuit of this module comprises comparer LMV331SQ3T2G, the first diode, the first resistance, the second resistance, the 3rd resistance, the 4th resistance of USB-VCHR pin, VIO18-PMU pin, HP-DET-INT13 pin, TSOP5 encapsulation
Described USB-VCHR pin connects the negative electrode of the first diode; The positive input of the anodic bonding comparer of the first diode, the anode of the first diode is also connected with VIO18-PMU pin by the first resistance; VIO18-PMU pin connects the reverse input end of comparer by the second resistance; The reverse input end of comparer connects ground connection by the 3rd resistance; Meanwhile, the GND of comparer holds ground connection, and the Vcc end of comparer is connected with VIO18-PMU pin; VIO18-PMU pin is also connected with the output terminal of comparer by the 4th resistance, and the output terminal of comparer is connected with HP-DET-INT13 pin.
4. the circuit design of earphone, charging and the OTG equipment based on USB socket according to claim 1, it is characterized in that: the equipment Inspection function of described VBUS testing circuit module is realized by triode, the circuit of this module comprises USB-VCHR pin, VIO18-PMU pin, HP-DET-INT13 pin, triode 2PC4617, the second diode, the 3rd diode, the 5th resistance, the 6th resistance, the 7th resistance
Described USB-VCHR pin connects the negative electrode of the second diode; The anode of the second diode is also connected with VIO18-PMU pin by the 5th resistance, and the anode of the second diode is connected with the anode of the 3rd diode; The negative electrode of the 3rd diode is connected with the base stage of triode by the 6th resistance; The collector of triode is connected with VIO18-PMU pin by the 7th resistance, is also directly connected with HP-DET-INT13 pin simultaneously; The grounded emitter of triode.
5. the circuit design of earphone, charging and the OTG equipment based on USB socket according to claim 1, it is characterized in that: described Switch Circuit switched circuit switch module comprises SN74LVC1G3157 single-pole double-throw (SPDT) analog switch chip, realizes the switching over function of ID/MIC passage.
6. according to the circuit design of the arbitrary described earphone based on USB socket, charging and OTG equipment of claim 1 to 5, it is characterized in that: described circuit design also comprises CPU control module, this CPU control module is connected with VBUS testing circuit module, receives the look-at-me testing result of VBUS testing circuit module; Above-mentioned CPU control module is also connected with Switch Circuit switched circuit switch module, the control program that provides MIC/ID passage to switch.
7. according to the earphone based on USB socket described in claim 3 or 4, the circuit design of charging and OTG equipment, it is characterized in that, described circuit design also provides a kind of earphone card extender of equipment Inspection of the VBUS of cooperation testing circuit module, the S_R pin of wherein said earphone card extender connects Micro usb interface module DM pin, the S_L pin of earphone card extender connects Micro usb interface module DN pin, the ID pin of earphone card extender connects Micro usb interface module MIC pin, the S_L pin of earphone card extender connects Micro usb interface module DN pin, the GND pin of earphone card extender connects VBUS pin and the GND pin of Micro usb interface module.
8. the circuit design of earphone, charging and the OTG equipment based on USB socket according to claim 1, it is characterized in that: described circuit design also comprises extended channel interface, this extended channel interface is connected with the ID passage of MIC/ID change-over switch module with Switch Circuit switched circuit switch module respectively, in order to expand other external apparatus interfaces.
9. the circuit design of earphone, charging and the OTG equipment based on USB socket according to claim 1, is characterized in that: described charging circuit module comprises Charger IC charging integrated circuit modules and Battery battery module.
CN201410301411.4A 2014-06-27 2014-06-27 Headset, charging and OTG equipment circuit design based on USB socket Expired - Fee Related CN104035357B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410301411.4A CN104035357B (en) 2014-06-27 2014-06-27 Headset, charging and OTG equipment circuit design based on USB socket

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410301411.4A CN104035357B (en) 2014-06-27 2014-06-27 Headset, charging and OTG equipment circuit design based on USB socket

Publications (2)

Publication Number Publication Date
CN104035357A true CN104035357A (en) 2014-09-10
CN104035357B CN104035357B (en) 2017-04-19

Family

ID=51466168

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410301411.4A Expired - Fee Related CN104035357B (en) 2014-06-27 2014-06-27 Headset, charging and OTG equipment circuit design based on USB socket

Country Status (1)

Country Link
CN (1) CN104035357B (en)

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104701933A (en) * 2015-02-09 2015-06-10 深圳市冠旭电子有限公司 OTG selective charging circuit and portable loudspeaker box
CN105071795A (en) * 2015-08-17 2015-11-18 广东欧珀移动通信有限公司 Multiplex circuit based on USB interface
CN105512067A (en) * 2015-11-25 2016-04-20 上海创功通讯技术有限公司 Mobile terminal, port reuse circuit thereof and method
CN105573946A (en) * 2016-03-01 2016-05-11 广东欧珀移动通信有限公司 Universal serial bus interface sharing method and device
WO2016155483A1 (en) * 2015-04-02 2016-10-06 中兴通讯股份有限公司 Interface identification method and terminal
CN106162445A (en) * 2015-04-28 2016-11-23 北京智美传媒股份有限公司 A kind of headset plugging plosive suppression circuit
CN106443252A (en) * 2016-09-20 2017-02-22 无锡力芯微电子股份有限公司 Test circuit for power supply detection of mobile device system and mobile device system
CN106532383A (en) * 2016-10-31 2017-03-22 深圳市金立通信设备有限公司 Compatible design method and circuit
CN106937202A (en) * 2017-05-10 2017-07-07 上海青橙实业有限公司 Headphone interface device and mobile terminal
CN107546808A (en) * 2017-09-27 2018-01-05 努比亚技术有限公司 One kind charging identification circuit, recognition methods and terminal device
CN107942125A (en) * 2018-01-03 2018-04-20 硕诺科技(深圳)有限公司 In-built electrical pool electronic product uses electrical test circuit and its control method
WO2018076628A1 (en) * 2016-10-28 2018-05-03 中兴通讯股份有限公司 Usb interface circuit, terminal, headset circuit and headset, and storage medium
CN108009116A (en) * 2017-12-22 2018-05-08 努比亚技术有限公司 MicroUSB interface circuits and its mobile terminal
CN108040307A (en) * 2017-12-08 2018-05-15 成都野望数码科技有限公司 A kind of digital earphone
CN108052467A (en) * 2017-11-27 2018-05-18 努比亚技术有限公司 A kind of interface self-adaption method, terminal and computer readable storage medium
CN108197060A (en) * 2018-01-30 2018-06-22 努比亚技术有限公司 USB interface conversion equipment, method and mobile terminal
CN109032983A (en) * 2018-09-28 2018-12-18 天津中兴智联科技有限公司 A kind of handheld reader containing usb signal connection circuit
CN110297789A (en) * 2019-05-21 2019-10-01 晶晨半导体(上海)股份有限公司 A method of realizing USB OTG function
CN110312180A (en) * 2019-05-28 2019-10-08 晶晨半导体(上海)股份有限公司 A method of using earphone base and USB OTG multiplexing functions
CN110620602A (en) * 2018-06-19 2019-12-27 Oppo(重庆)智能科技有限公司 Reverse charging and data transmission sharing system, multiplexing data line and electronic device
CN111130596A (en) * 2019-11-14 2020-05-08 华为技术有限公司 Multiplexing circuit, interface circuit system and mobile terminal
CN112468625A (en) * 2020-11-30 2021-03-09 维沃移动通信有限公司 Anti-distortion circuit, control method thereof and electronic equipment
CN113507665A (en) * 2021-07-09 2021-10-15 维沃移动通信有限公司 Electronic equipment assembly and terminal equipment
CN115422102A (en) * 2021-10-08 2022-12-02 无锡宇宁智能科技有限公司 USB, type-C interface circuit and drive plate

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1818889A (en) * 2005-02-08 2006-08-16 台均科技(深圳)有限公司 Audio/USB signal multiplexing line, broadcasting memory and multiplexing transmitting broadcasting memory system
CN101030189A (en) * 2007-03-09 2007-09-05 华为技术有限公司 Method for inspecting connected peripheral apparatus mode, terminal, earphone, charger and USB interface
CN101221546A (en) * 2007-01-12 2008-07-16 奇岩电子股份有限公司 Device for automatically detecting universal serial bus main unit or peripherals
US20090224726A1 (en) * 2008-03-06 2009-09-10 Ricoh Company, Ltd. Charging control circuit capable of constant current charging
CN101917497A (en) * 2010-07-23 2010-12-15 惠州Tcl移动通信有限公司 Method and device for earphone and USB to share micro-USB interface
EP2704286A1 (en) * 2011-04-29 2014-03-05 ZTE Corporation Electronic device with usb interface and usb communication starting method thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1818889A (en) * 2005-02-08 2006-08-16 台均科技(深圳)有限公司 Audio/USB signal multiplexing line, broadcasting memory and multiplexing transmitting broadcasting memory system
CN101221546A (en) * 2007-01-12 2008-07-16 奇岩电子股份有限公司 Device for automatically detecting universal serial bus main unit or peripherals
CN101030189A (en) * 2007-03-09 2007-09-05 华为技术有限公司 Method for inspecting connected peripheral apparatus mode, terminal, earphone, charger and USB interface
US20090224726A1 (en) * 2008-03-06 2009-09-10 Ricoh Company, Ltd. Charging control circuit capable of constant current charging
CN101917497A (en) * 2010-07-23 2010-12-15 惠州Tcl移动通信有限公司 Method and device for earphone and USB to share micro-USB interface
EP2704286A1 (en) * 2011-04-29 2014-03-05 ZTE Corporation Electronic device with usb interface and usb communication starting method thereof

Cited By (36)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104701933A (en) * 2015-02-09 2015-06-10 深圳市冠旭电子有限公司 OTG selective charging circuit and portable loudspeaker box
WO2016155483A1 (en) * 2015-04-02 2016-10-06 中兴通讯股份有限公司 Interface identification method and terminal
CN106162445A (en) * 2015-04-28 2016-11-23 北京智美传媒股份有限公司 A kind of headset plugging plosive suppression circuit
CN105071795A (en) * 2015-08-17 2015-11-18 广东欧珀移动通信有限公司 Multiplex circuit based on USB interface
CN105512067A (en) * 2015-11-25 2016-04-20 上海创功通讯技术有限公司 Mobile terminal, port reuse circuit thereof and method
CN105573946A (en) * 2016-03-01 2016-05-11 广东欧珀移动通信有限公司 Universal serial bus interface sharing method and device
CN106443252A (en) * 2016-09-20 2017-02-22 无锡力芯微电子股份有限公司 Test circuit for power supply detection of mobile device system and mobile device system
CN106443252B (en) * 2016-09-20 2019-07-12 无锡力芯微电子股份有限公司 The test circuit and mobile device system of detection are powered to mobile device system
WO2018076628A1 (en) * 2016-10-28 2018-05-03 中兴通讯股份有限公司 Usb interface circuit, terminal, headset circuit and headset, and storage medium
CN106532383A (en) * 2016-10-31 2017-03-22 深圳市金立通信设备有限公司 Compatible design method and circuit
CN106937202A (en) * 2017-05-10 2017-07-07 上海青橙实业有限公司 Headphone interface device and mobile terminal
CN107546808B (en) * 2017-09-27 2020-11-10 努比亚技术有限公司 Charging identification circuit, identification method and terminal equipment
CN107546808A (en) * 2017-09-27 2018-01-05 努比亚技术有限公司 One kind charging identification circuit, recognition methods and terminal device
CN108052467A (en) * 2017-11-27 2018-05-18 努比亚技术有限公司 A kind of interface self-adaption method, terminal and computer readable storage medium
CN108040307A (en) * 2017-12-08 2018-05-15 成都野望数码科技有限公司 A kind of digital earphone
CN108040307B (en) * 2017-12-08 2020-05-05 北京字节跳动网络技术有限公司 Digital earphone
CN108009116A (en) * 2017-12-22 2018-05-08 努比亚技术有限公司 MicroUSB interface circuits and its mobile terminal
CN108009116B (en) * 2017-12-22 2021-01-05 努比亚技术有限公司 MicroUSB interface circuit and mobile terminal thereof
CN107942125A (en) * 2018-01-03 2018-04-20 硕诺科技(深圳)有限公司 In-built electrical pool electronic product uses electrical test circuit and its control method
CN107942125B (en) * 2018-01-03 2024-04-16 英望科技(山东)有限公司 Power utilization testing circuit of built-in battery type electronic product and control method thereof
CN108197060B (en) * 2018-01-30 2022-06-28 深圳市启迈电子科技有限公司 USB interface conversion device and method and mobile terminal
CN108197060A (en) * 2018-01-30 2018-06-22 努比亚技术有限公司 USB interface conversion equipment, method and mobile terminal
CN110620602B (en) * 2018-06-19 2021-07-06 Oppo(重庆)智能科技有限公司 Reverse charging and data transmission sharing system, multiplexing data line and electronic device
CN110620602A (en) * 2018-06-19 2019-12-27 Oppo(重庆)智能科技有限公司 Reverse charging and data transmission sharing system, multiplexing data line and electronic device
CN109032983B (en) * 2018-09-28 2024-02-20 高新兴智联科技股份有限公司 Handheld reader with USB signal connection circuit
CN109032983A (en) * 2018-09-28 2018-12-18 天津中兴智联科技有限公司 A kind of handheld reader containing usb signal connection circuit
CN110297789B (en) * 2019-05-21 2023-07-28 晶晨半导体(上海)股份有限公司 Method for realizing USB OTG function
CN110297789A (en) * 2019-05-21 2019-10-01 晶晨半导体(上海)股份有限公司 A method of realizing USB OTG function
CN110312180A (en) * 2019-05-28 2019-10-08 晶晨半导体(上海)股份有限公司 A method of using earphone base and USB OTG multiplexing functions
WO2020238704A1 (en) * 2019-05-28 2020-12-03 晶晨半导体(上海)股份有限公司 Method for multiplexing earphone seat and usb otg function
CN111130596A (en) * 2019-11-14 2020-05-08 华为技术有限公司 Multiplexing circuit, interface circuit system and mobile terminal
CN112468625B (en) * 2020-11-30 2022-11-04 维沃移动通信有限公司 Anti-distortion circuit, control method thereof and electronic equipment
CN112468625A (en) * 2020-11-30 2021-03-09 维沃移动通信有限公司 Anti-distortion circuit, control method thereof and electronic equipment
CN113507665A (en) * 2021-07-09 2021-10-15 维沃移动通信有限公司 Electronic equipment assembly and terminal equipment
CN115422102A (en) * 2021-10-08 2022-12-02 无锡宇宁智能科技有限公司 USB, type-C interface circuit and drive plate
CN115422102B (en) * 2021-10-08 2023-10-27 无锡宇宁智能科技有限公司 USB, type-C interface circuit and drive plate

Also Published As

Publication number Publication date
CN104035357B (en) 2017-04-19

Similar Documents

Publication Publication Date Title
CN104035357A (en) Headset, charging and OTG equipment circuit design based on USB socket
CN101102119B (en) A charging detection circuit of appliance device and charging detection method
CN103064489B (en) A kind of method and terminal of carrying out internal circuit selection according to USB interface state
CN202797874U (en) Over-voltage protection circuit and mobile terminal
EP2863652B1 (en) Audio interface self-adaptation device
CN201758417U (en) Earphone compatible device and mobile terminal
CN101841586A (en) Method for expanding earphone interface of mobile phone into serial communication interface
CN108093329B (en) Peripheral type detection circuit and mobile terminal based on shared interface
CN102156681B (en) Mobile terminal and USB interface connection control device thereof
CN202503656U (en) Device used for earphone microphone line sequence changing-over, and mobile terminal thereof
CN201075704Y (en) Detection circuit of electrical equipment and mobile phone having the circuit
CN102073470B (en) Electronic equipment and control method thereof
CN103391495A (en) Automatic earphone adaptation circuit and adaptation method thereof
CN103888873A (en) Electronic device and UART output system and method
CN101990144A (en) Double earphone adapter, main board and method for detecting double earphones
CN105050001A (en) Headset compatible circuit and working method thereof
CN106897241A (en) A kind of usb circuit and mobile terminal being applied in mobile terminal
CN101626412A (en) Mobile terminal circuit with multifunctional earphone socket and implementation method thereof
CN207995366U (en) A kind of earphone compatible circuit and electric terminal
CN103197199B (en) Interrupt detection apparatus and method
CN204350278U (en) Communication device
CN205644528U (en) Connect interface converting circuit and be connected interface connector
CN203466962U (en) Audio port identification circuit and communication device
CN104125173B (en) data communication path switching circuit, vehicle-mounted router and automobile
CN105045751A (en) Serial TTL/RS232 electrical level adaptive apparatus

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
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CP01 Change in the name or title of a patent holder
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170419

CF01 Termination of patent right due to non-payment of annual fee