CN208737453U - Circuit and electronic equipment based on general-purpose serial bus USB interface - Google Patents

Circuit and electronic equipment based on general-purpose serial bus USB interface Download PDF

Info

Publication number
CN208737453U
CN208737453U CN201821047889.9U CN201821047889U CN208737453U CN 208737453 U CN208737453 U CN 208737453U CN 201821047889 U CN201821047889 U CN 201821047889U CN 208737453 U CN208737453 U CN 208737453U
Authority
CN
China
Prior art keywords
switch
pin
unit
usb interface
int1
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.)
Expired - Fee Related
Application number
CN201821047889.9U
Other languages
Chinese (zh)
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.)
Jiangxi Machen Communications Co Ltd
Shenzhen Tinno Mobile Technology Co Ltd
Shenzhen Tinno Wireless Technology Co Ltd
Original Assignee
Jiangxi Machen Communications Co Ltd
Shenzhen Tinno Mobile Technology Co Ltd
Shenzhen Tinno Wireless 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 Jiangxi Machen Communications Co Ltd, Shenzhen Tinno Mobile Technology Co Ltd, Shenzhen Tinno Wireless Technology Co Ltd filed Critical Jiangxi Machen Communications Co Ltd
Priority to CN201821047889.9U priority Critical patent/CN208737453U/en
Application granted granted Critical
Publication of CN208737453U publication Critical patent/CN208737453U/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Details Of Connecting Devices For Male And Female Coupling (AREA)

Abstract

The utility model provides circuit and electronic equipment based on general-purpose serial bus USB interface.The circuit of USB interface includes: usb interface unit, including multiple pins, for connecting a variety of peripheral apparatus;Power Management Unit PMU, and usb interface unit data connection, for managing and detecting the plug of peripheral apparatus;At least one switch unit, it is electrically connected respectively at least one pin in multiple pins, each switch unit in wherein at least one switch unit includes at least one switch, circuit corresponding at least one of a variety of peripheral apparatus peripheral apparatus is electrically connected wherein at least one switch respectively, and at least one peripheral apparatus includes universal asynchronous receiving-transmitting transmitter UART.The utility model integrates four-in-one USB interface, can simplify the structure and appearance of mobile phone by a miniature data line micro USB interface, improves the dust-proof of product, the performances such as waterproof, and then promote user experience.

Description

Circuit and electronic equipment based on general-purpose serial bus USB interface
Technical field
The utility model relates to move field of communication technology, and in particular to a kind of electricity based on general-purpose serial bus USB interface Road and electronic equipment.
Background technique
There are a large amount of mobile phones equipped with miniature data line interface micro USB, 3.0 millimeters of earphone interfaces at present, some mobile phones are also It can be based on micro USB interface, real there are currently no the technologies for the data transmission OTG in the case where host, carrying out equipment room, allow The hosts such as PC PC can not be passed through between equipment when transmitting data.
Meanwhile in engineering machine debugging, UART interface is also reserved in mobile phone, to facilitate debugging, but these interfaces are all It is mutually independent, a large amount of volumes in mobile phone are not only taken up, bring difficulty for Project Realization, and bring much for cell phone appearance Hole both unsightly also influenced the security levels such as dust-proof, waterproof.
Utility model content
In view of this, the utility model embodiment provides a kind of circuit and electricity based on general-purpose serial bus USB interface Earphone interface, UART interface and OTG interface etc. are integrated in by sub- equipment based on micro USB interface common in electronic equipment On one micro USB interface, simplify the structure and design of electronic equipment, and improve the dust-proof of electronic equipment, waterproof etc. Reliability, and then promote user experience.
The first aspect of the utility model embodiment be to provide a kind of circuit based on general-purpose serial bus USB interface and Electronic equipment, which includes: usb interface unit, including multiple pins, for connecting a variety of peripheral apparatus;Power management list First PMU, and the usb interface unit data connection, for managing and detecting the plug of the peripheral apparatus;At least one switch Unit is electrically connected at least one pin in the multiple pin respectively, wherein at least one described switch unit Each switch unit includes at least one switch, wherein at least one described switch respectively in a variety of peripheral apparatus extremely A kind of corresponding circuit of peripheral apparatus is electrically connected less, and at least one peripheral apparatus includes universal asynchronous receiving-transmitting transmitter UART, wherein the Power Management Unit is set at least one peripheral apparatus plug according at least one peripheral hardware At least one is switched described in standby Type Control, the corresponding pin of the switch unit is connected to outer at least one If the corresponding circuit of equipment.
In some embodiments, each switch unit at least one described switch unit includes that a single-pole three throw is opened Pass or three single-pole single-throw switch (SPST)s or a single-pole double-throw switch (SPDT) or two single-pole single-throw switch (SPST)s.
In some embodiments, at least one described switch includes that first switch, second switch and third switch, described Usb interface unit includes 5 pins.
In some embodiments, 5 pins include: power pins VBUS, be electrically connected the usb interface unit with The Power Management Unit PMU;Grounding pin GND is electrically connected ground potential;Data signal pin pair, the data-signal draw Foot to including correction data pin DP and negative data pin DM, the data signal pin to be respectively and electrically connected to it is described at least Two switch units in one switch unit;Integrated driving Integrated Drive ID pin, be electrically connected to it is described extremely A switch unit in a few switch unit.
In some embodiments, a variety of peripheral apparatus include USB interface-based equipment, at least one peripheral hardware Equipment further include: earphone and in the case where no host realizes at least one in the OTG equipment of the data transmission of equipment room Kind.
In some embodiments, the circuit further includes first resistor, second resistance and 3rd resistor, and a resistance connects Connect right channel R pin and reference voltage, the second resistance connects the broken ends of fractured bone in the second of the right channel R pin and the PMU Mouth INT2, the first interruptive port INT1 of 3rd resistor the connection reference voltage and the PMU, wherein the first resistor Resistance value be 470k ohm;The resistance value of the second resistance is 47k ohm;The resistance value of the 3rd resistor is 5k ohm;The default conditions of the first interruptive port INT1 are high level;The default conditions of the second interruptive port INT2 are height Level.
In some embodiments, when the Power Management Unit PMU detects no VBUS insertion and described the When one interruptive port INT1 is high level, the interface default output is universal asynchronous receiving-transmitting transmitter UART, then the switch Unit sends the data that the first switch is connected to the universal asynchronous receiving-transmitting transmitter UART on pin TX, by described the Two switches are connected on the data receiver pin RX of universal asynchronous receiving-transmitting transmitter UART, third switch are connected to described On first interruptive port INT1, the grounding pin GND is grounded;Or when the Power Management Unit has detected the VBUS When insertion, it is inserted into if USB interface device or charger, then the first switch is connected to negative data and drawn by the switch unit On foot DM, the second switch is connected on correction data pin DP, third switch is connected to the first interruptive port On INT1;If detecting, USB interface device or charger are extracted, and the first switch is connected to described by the switch unit On TX, the second switch is connected on the RX, third switch is connected on the INT1.
In some embodiments, when the Power Management Unit PMU detects no VBUS insertion, and described the One interruptive port INT1 is low level and when analog-digital converter ADC detects that input voltage is 0V, the power management Unit PMU detects that OTG equipment is inserted into, and the first switch is connected on the DM by the switch unit, by described second Switch is connected on the DP, and third switch is connected on the INT1;If the Power Management Unit PMU is detected When the first interruptive port INT1 is high level, as OTG equipment is extracted, then the first switch is connected on the TX, The second switch is connected on the RX, and the third switch is connected on the INT1;Or work as the Power Management Unit Detect no VBUS insertion, and the first interruptive port INT1 is low level and ADC detects input voltage It is not 0V, then the Power Management Unit PMU detects that earphone is inserted into, and the first switch is connected to ear by the switch unit On the R pin of machine, the second switch is connected on the L pin of earphone, third switch is connected to ear On machine Mike's MIC pin;If detecting, the second interruptive port INT2 is low level, is judged as that earphone is inserted into, if described Second interruptive port INT2 is high level, then is judged as that the earphone is extracted, then the switch unit connects the first switch It is connected on the TX, the second switch is connected on the RX, third switch is connected to the broken ends of fractured bone in described first On mouth INT1.
In some embodiments, when the Power Management Unit PMU detects no VBUS insertion, and described the One interruptive port INT1 is low level and the ADC detects that input voltage is not 0V, if the second interruptive port INT2 For high level, then judge that insertion is illegal.
The second aspect of the utility model embodiment is to provide a kind of electronic equipment, comprising: electronic equipment itself with it is upper State the circuit based on general-purpose serial bus USB interface described in embodiment.
A kind of route of bicycle provided by the embodiment of the utility model, which hides protective device and bicycle, to be had as follows Technical effect:
A kind of circuit and electronic equipment based on general-purpose serial bus USB interface of the utility model embodiment, based on electricity Common micro USB interface in sub- equipment, by the way that by earphone interface, UART interface, OTG interfacing etc. is integrated in one and connects On mouth, the structure and appearance of mobile phone can simplify, and improve the dust-proof of product, the performances such as waterproof facilitate engineering design, convenient for surveying Examination personnel are tested with different male connectors, and then promote user experience.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing, in which:
Fig. 1 is the circuit diagram according to the general-purpose serial bus USB interface of the utility model embodiment.
Specific embodiment
The following will be combined with the drawings in the embodiments of the present invention, carries out the technical scheme in the embodiment of the utility model It clearly and completely describes, it is clear that described embodiment is only the utility model a part of the embodiment, rather than whole realities Apply example.Based on the embodiments of the present invention, those of ordinary skill in the art institute without making creative work The every other embodiment obtained, fall within the protection scope of the utility model.
Fig. 1 is the circuit diagram according to the general-purpose serial bus USB interface of the utility model embodiment.
As shown in Figure 1, the first aspect of the utility model embodiment is that provide one kind is connect based on general-purpose serial bus USB The circuit and electronic equipment of mouth, which includes: usb interface unit 10, including multiple pins, is set for connecting a variety of peripheral hardwares It is standby;Power Management Unit PMU 11, and 10 data connection of usb interface unit, for managing and detecting the plug of peripheral apparatus;Extremely A few switch unit 12, is electrically connected at least one pin in multiple pins, wherein at least one switch unit respectively Each switch unit in 12 includes at least one switch, wherein at least one switch respectively in a variety of peripheral apparatus at least A kind of corresponding circuit of peripheral apparatus is electrically connected, and at least one peripheral apparatus includes universal asynchronous receiving-transmitting transmitter UART, In, Power Management Unit is when at least one peripheral apparatus plugs, according to the Type Control of at least one peripheral apparatus at least one The corresponding pin of switch unit is connected to circuit corresponding at least one peripheral apparatus by a switch.
Specifically, in this embodiment, each switch unit at least one switch unit 12 includes a hilted broadsword three Throw switch or three single-pole single-throw switch (SPST)s or a single-pole double-throw switch (SPDT) or two single-pole single-throw switch (SPST)s, the utility model The type of switch included by each switch unit at least one switch unit 12 is not particularly limited.
Specifically, in this embodiment, a variety of peripheral apparatus include USB interface-based equipment, and at least one peripheral hardware is set It is standby further include: earphone and at least one of the OTG equipment of data transmission that equipment room is realized in the case where no host.
Based on the embodiments of the present invention, based on micro USB interface common in electronic equipment, by the way that earphone is connect Mouthful, UART interface, OTG interfacing etc. is integrated on one interface, can simplify the structure and appearance of mobile phone, and improve product It is dust-proof, the performances such as waterproof facilitate engineering design, are tested convenient for tester with different male connectors, so promoted user Experience.
As shown in Figure 1, in the utility model one embodiment, at least one switch includes first switch S1 121, the Two switch S2 122 and third switch S3 123, usb interface unit include 5 pins, wherein this 5 pins include: that power supply draws Foot VBUS 101 is electrically connected usb interface unit and Power Management Unit PMU;Grounding pin GND 105 is electrically connected ground electricity Position;Data signal pin pair, data signal pin is to including correction data pin DP 103 and negative data pin DM 102, data Signal pins are to two switch units being respectively and electrically connected at least one switch unit;Integrated driving Integrated 104 pin of Drive ID, a switch unit being electrically connected at least one switch unit 12.
Specifically, first switch S1 121 and DM pin 102 are electrically connected, 103 electricity of second switch S2 122 and DP pin Property connection, third switch S3 123 and ID pin 104 electric connection, according to the access of different peripheral apparatus, switch unit meeting By first switch S1 121, second switch S2 122 and third switch S3 123 are connected respectively to opposite with the peripheral apparatus of access On the pin answered, for example, switch unit is by the interface of micro USB female seat when the male connector of UART accesses micro USB female seat DM pin 102 TX pin 125 is connected to by first switch S1 121, the DP pin 103 of base is passed through into second switch S2 122 are connected to RX pin 128, and the ID pin 104 of base is connected to the first interruptive port INT1 by third switch S3 123 On, the GND pin 105 of base is grounded;For another example when the male connector of common USB accesses the interface of the micro USB female seat When, the DM pin 102 of the interface of micro USB female seat is connected to DM pin 126 by first switch S1 121 by switch unit, The DP pin 103 of base is connected to DP pin 127 by second switch S2 122, the ID pin 104 of base is passed through into third Switch S3 123 is connected on the first interruptive port INT1 131;And when the male connector of OTG accesses the interface of the micro USB female seat When, the DM pin 102 of the interface of micro USB female seat is connected to DM pin 126 by first switch S1 121 by switch unit, The DP pin 103 of base is connected to DP pin 127 by second switch S2 122, the ID pin 104 of base is passed through into third Switch S3 123 is connected on the first interruptive port INT1 131;And when the male connector of common headphones is inserted into the micro USB female seat Interface when, the DM pin 102 of the interface of micro USB female seat is connected to R and is drawn by switch unit by first switch S1 121 The DP pin 103 of base is connected to L pin 129 by second switch S2 122, the ID pin 104 of base is passed through by foot 124 Third switch S3 123 is connected to MIC pin 130.
It, can be real by the control and being used cooperatively for multiple pins of switch unit based on the embodiments of the present invention Now to the accurately identification of a variety of peripheral apparatus and control.
As shown in Figure 1, circuit further includes first resistor 134, second resistance 135 in the utility model one embodiment With 3rd resistor 136, first resistor connects right channel R pin 124 and reference voltage 133, and second resistance connects right channel R pin With the second interruptive port INT2 of PMU, 3rd resistor connects the first interruptive port INT1 of reference voltage and PMU, wherein first The resistance value of resistance is 470k ohm;The resistance value of second resistance is 47k ohm;The resistance value of 3rd resistor is 5k ohm;The The default conditions of one interruptive port INT1 137 are high level;The default conditions of second interruptive port INT2 137 are high level, The utility model does not do specific limit to the specific size of the resistance value of first resistor 134, second resistance 135 and 3rd resistor 136 System.
Specifically, here first resistor 134, second resistance 135 and 3rd resistor 136 be for playing partial pressure, Wherein, first resistor 134 and second resistance 135 are used to divide with R pin 124, to change the level of the second interruptive port 137 State;3rd resistor 136 is used to generate partial pressure with earphone Mike MIC 130, to change the level shape of the first interruptive port 131 State, and the type for the peripheral apparatus for assisting judgement to be inserted into according to the level state measured.
Based on the embodiments of the present invention, it is to be appreciated that high level is exactly that circuit is connected, and low level is exactly circuit It disconnects, the default conditions of the first interruptive port INT1 are high level;The default conditions of second interruptive port INT2 are high level, then First interruptive port and the second interruptive port default the state being to turn on, by connected on right channel R pin first resistor and Second resistance, can by partial pressure so that the level of the second interruptive port INT2 converts between high level and low level, and 3rd resistor is arranged on earphone Mike's MIC pin can make the level of the first interruptive port in high level and low level by partial pressure Between convert, so as to assist Power Management Unit PMU judgement access peripheral apparatus type, thus be micro USB The realization of base four-in-one interface provides support.
As shown in Figure 1, in the utility model one embodiment, when Power Management Unit PMU 11 detects no VBUS 138 insertion and the first interruptive port INT1 131 be high level when, interface default output be universal asynchronous receiving-transmitting transmitter UART, then the data that first switch 121 is connected to universal asynchronous receiving-transmitting transmitter UART are sent pin TX 125 by switch unit On, second switch 122 is connected on the data receiver pin RX 128 of universal asynchronous receiving-transmitting transmitter UART, third is switched 123 are connected on the first interruptive port INT1 131, and grounding pin GND 105 is grounded;Or when Power Management Unit 11 detects To when having the insertion of VBUS 138, it is inserted into if USB interface device or charger, then first switch 121 is connected to by switch unit On negative data pin DM 126, second switch 122 is connected on correction data pin DP 127, third switch 123 is connected to On first interruptive port INT1 131;If detecting, USB interface device or charger are extracted, and switch unit is by first switch 121 are connected on TX 125, and second switch 122 is connected on RX 128, and third switch 123 is connected on INT1 131.
In this embodiment, when Power Management Unit PMU 11 detects no insertion of VBUS 138, and the first interruption Port INT1 131 is low level and when analog-digital converter ADC 132 detects that input voltage is 0V, power management list First PMU 11 detects that OTG equipment is inserted into, and first switch 121 is connected on DM 126, second switch 122 is connected by switch unit It is connected on DP 127, third switch 123 is connected on INT1 131;If Power Management Unit PMU 11 detects the first interruption When port INT1 131 is high level, as OTG equipment is extracted, then first switch 121 is connected on TX 125, second switch 122 are connected on RX 128, and third switch 123 is connected on INT1 131;Or when Power Management Unit 11 detects do not have VBUS 138 is inserted into, and the first interruptive port INT1 131 is low level and ADC 132 detects that input voltage is not 0V, Then Power Management Unit PMU 11 detects that earphone is inserted into, and first switch 121 is connected to the R pin 124 of earphone by switch unit On, second switch 122 is connected on the L pin 129 of earphone, third switch 123 is connected to earphone Mike MIC pin 130 On;If detecting, the second interruptive port INT2 137 is low level, is judged as that earphone is inserted into, if the second interruptive port INT2 137 be high level, then is judged as that earphone is extracted, then first switch 121 is connected on TX pin 125 by switch unit, by second Switch 122 is connected on RX pin 128, and third switch 123 is connected on the first interruptive port INT1 131.
In this embodiment, when Power Management Unit PMU detects no VBUS insertion, and the first interruptive port INT1 For low level and ADC detects that input voltage is not 0V, if the second interruptive port INT2 is high level, judges to be inserted into non- Method.
Specifically, as shown in Figure 1, the interface of micro USB female seat is defaulted as the interface of UART male connector, for example, inhomogeneity The male connector insertion of type judges detection process are as follows:
The insertion detection of UART male connector: due to the interface circuit of the micro USB female seat, default output is UART, is opened at this time S1 121 is closed, S2 122, S3 123 is default conditions, i.e., the DM pin 102 of the interface of micro USB female seat is opened by first It closes S1 121 and is connected to TX pin 125, the DP pin 103 of the interface of base is connected to RX pin by second switch S2 122 128, the ID pin 104 of female seat interface is connected to the first interruptive port INT1 131 by third switch S3 123, and base connects 105 earthing potential of GND pin of mouth;
Generic USB male connector insertion detection: when Power Management Unit PMU 11, which is detected, has 5V voltage on VBUS 138, really Think USB or charger insertion, then switch unit control first switch S1 121, the control pin of second switch S2 122, So that the DM pin 102 of the interface of micro USB female seat is connected to DM pin 126 by first switch S1 121, base is connect The DP pin 103 of mouth is connected to DP pin 127 by second switch S2 122, then starts the judgement process of USB and charger;
The insertion detection of OTG male connector: when the ID pin 104 of the interface of micro USB female seat connects OTG male connector, ID pin 104 0 level can be pulled down to by OTG male connector, third switch S3 123 is default conditions at this time, i.e. the first interruptive port INT1's 131 State can become low level from high level, if analog-digital converter ADC 132 detects that input voltage is 0V, system at this time Be judged as OTG male connector be inserted into, then switch unit can by first switch S1 121, the control pin of second switch S2 122, The DM pin 102 of the interface of micro USB female seat is connected to DM pin 126 by first switch S1 121, by connecing for base The DP pin 103 of mouth is connected to DP pin 127, and the VBUS pipe of Power Management Unit PMU 11 by second switch S2 122 Foot 138 exports 5V power supply, is powered by the VBUS pin 101 of base to OTG male connector;
Earphone insertion detection: when the MIC pin 130 of the 104 lug machine of ID pin of the interface of micro USB female seat, because There are DC impedances for earphone Mike MIC pin 130, generate partial pressure with the 3rd resistor 136 of the first interruptive port INT1131, make The state for obtaining INT1 131 becomes low level from high level, and starting PMU 11 is carried out slotting by analog-digital converter ADC 132 Enter male connector type detection, if ADC 132 detects that input voltage is greater than 0V, is tentatively judged as that earphone is inserted into, switch unit meeting Pass through first switch S1 121, the control pin of second switch S2 122, by the DM pin 102 of the interface of micro USB female seat It is connected to the right channel R pin 124 of earphone by first switch S1 121, the DP pin 103 of the interface of base is passed through second Switch S2 122 is connected to the L channel L pin 129 of earphone, and the ID pin 104 of the interface of base is passed through third switch S3 123 are connected to the earphone Mike MIC pin 130 of earphone, then proceed to the state for judging the second interruptive port INT2 137, if INT2 137 is low level, then is confirmed as earphone insertion, is otherwise the insertion of illegal male connector.
As shown in Figure 1, different types of male connector extraction judges detection process are as follows:
UART male connector extracts detection: micro USB female seat interface circuit, and default output is UART, does not need detection and extracts;
USB male joint extracts detection: after system detection to USB male joint insertion, if PMU detects micro USB female seat Voltage on VBUS pin 101 is 0V, after the stabilization time, it is believed that USB male joint is extracted, and passes through switch unit control first First switch S1 121 is connected to TX pin 125, by second switch by the control foot of switch S1 121, second switch S2 122 S2 is connected to RX pin 128;
OTG male connector extracts detection: after system detection to OTG male connector insertion, if PMU 11 detects the first interruptive port The state of INT1 131 becomes high level from low level, then system judges that OTG male connector is extracted, and PMU 11 stops to VBUS 138 pins export the power supply of 5V, and first switch S1 121 is connected to TX pin 125, second switch S2 122 is connected to RX Pin 128;
Headset detection: after system detection to earphone insertion, if PMU 11 detects the second interruptive port INT2's 137 State becomes high level from low level, then it is assumed that earphone is extracted, and by the connection TX of first switch S1 121 pin 125, by second The connection RX of switch S2 122 pin 128, by the first interruptive port INT1 131 of the connection male connector of third switch S3 123.
Based on the embodiments of the present invention, pass through 5 pins on the interface of micro USB female seat and switch unit It is electrically connected, and mating connection and and the power management of R, TX, DM, DP, RX, L and MIC pin being connected with same male connector Module PMU cooperation may be implemented through a micro USB interface, the integrated interface that can be compatible with the access of 4 kinds of male connectors, Remove the extra interface of appearance, greatly simplifies the structure design of the products such as electronic equipment, improve waterproof, the security performances such as dust-proof.
The second aspect of the utility model embodiment is to provide a kind of electronic equipment, comprising: electronic equipment itself with it is upper State the circuit based on general-purpose serial bus USB interface of embodiment.
Based on the embodiments of the present invention, the electronic equipment of the utility model can be mobile phone or tablet computer, this reality It is not particularly limited with the novel type to electronic equipment.
The embodiments of the present invention, based on micro USB common in electronic equipment, by earphone interface, UART interface It is integrated on a micro USB interface with OTG interface etc., simplifies the structure and design of electronic equipment, and improve electronics Dust-proof, the reliabilities such as waterproof of equipment, and then promote user experience.
Specifically, the circuit based on general-purpose serial bus USB interface has 5 to draw on the interface of micro USB female seat Foot, is power pins VBUS, negative data pin DM, correction data pin DP respectively, and integrated driving Integrated Drive ID draws Foot, grounding pin GND.When the male connector of UART accesses the interface of the micro USB female seat, switch unit is female by micro USB The DM pin of the interface of seat is connected to TX pin by first switch S1, and the DP pin of base is connected to by second switch S2 The ID pin of base is connected on the first interruptive port INT1 by third switch S3, the GND pin of base is connect by RX pin Ground;
In addition, when the male connector of common USB accesses the interface of the micro USB female seat, switch unit is by micro USB The DM pin of the interface of base is connected to DM pin by first switch S1, and the DP pin of base is connected by second switch S2 To DP pin, the ID pin of base is connected on the first interruptive port INT1 by third switch S3;And when the male connector of OTG connects When entering the interface of the micro USB female seat, the DM pin of the interface of micro USB female seat is passed through first switch S1 by switch unit It is connected to DM pin, the DP pin of base is connected to DP pin by second switch S2, the ID pin of base is passed through into third Switch S3 is connected on the first interruptive port INT1;And when the male connector of common headphones is inserted into the interface of the micro USB female seat, The DM pin of the interface of micro USB female seat is connected to R pin by first switch S1 by switch unit, by the DP pin of base It is connected to L pin by second switch S2, the ID pin of base is connected to MIC pin by third switch S3.
Specifically, the interface of micro USB female seat is defaulted as the interface of UART male connector, for example, different types of male connector is inserted Enter to judge detection process are as follows:
The insertion detection of UART male connector: due to the interface circuit of the micro USB female seat, default output is UART, is opened at this time S1 121 is closed, S2 122, S3 123 is default conditions, i.e., the DM pin 102 of the interface of micro USB female seat is opened by first It closes S1 121 and is connected to TX pin 125, the DP pin 103 of the interface of base is connected to RX pin by second switch S2 122 128, the ID pin 104 of female seat interface is connected to the first interruptive port INT1 131 by third switch S3 123, and base connects 105 earthing potential of GND pin of mouth;
Generic USB male connector insertion detection: when Power Management Unit PMU 11, which is detected, has 5V voltage on VBUS 138, really Think USB or charger insertion, then switch unit control first switch S1 121, the control pin of second switch S2 122, So that the DM pin 102 of the interface of micro USB female seat is connected to DM pin 126 by first switch S1 121, base is connect The DP pin 103 of mouth is connected to DP pin 127 by second switch S2 122, then starts the judgement process of USB and charger;
The insertion detection of OTG male connector: when the ID pin 104 of the interface of micro USB female seat connects OTG male connector, ID pin 104 0 level can be pulled down to by OTG male connector, third switch S3 123 is default conditions at this time, i.e. the first interruptive port INT1's 131 State can become low level from high level, if analog-digital converter ADC 132 detects that input voltage is 0V, system at this time Be judged as OTG male connector be inserted into, then switch unit can by first switch S1 121, the control pin of second switch S2 122, The DM pin 102 of the interface of micro USB female seat is connected to DM pin 126 by first switch S1 121, by connecing for base The DP pin 103 of mouth is connected to DP pin 127, and the VBUS pipe of Power Management Unit PMU 11 by second switch S2 122 Foot 138 exports 5V power supply, is powered by the VBUS pin 101 of base to OTG male connector;
Earphone insertion detection: when the MIC pin 130 of the 104 lug machine of ID pin of the interface of micro USB female seat, because There are DC impedances for earphone Mike MIC pin 130, generate partial pressure with the 3rd resistor 136 of the first interruptive port INT1 131, make The state for obtaining INT1 131 becomes low level from high level, and starting PMU 11 is carried out slotting by analog-digital converter ADC 132 Enter male connector type detection, if ADC132 detects that input voltage is greater than 0V, is tentatively judged as that earphone is inserted into, switch unit can lead to First switch S1 121 is crossed, the control pin of second switch S2 122 leads to the DM pin 102 of the interface of micro USB female seat The right channel R pin 124 that first switch S1 121 is connected to earphone is crossed, the DP pin 103 of the interface of base is opened by second The L channel L pin 129 that S2 122 is connected to earphone is closed, the ID pin 104 of the interface of base is passed through into third switch S3 123 It is connected to the earphone Mike MIC pin 130 of earphone, the state for judging the second interruptive port INT2 137 is then proceeded to, if INT2 137 be low level, then is confirmed as earphone insertion, is otherwise the insertion of illegal male connector.
Different types of male connector extraction judges detection process are as follows:
UART male connector extracts detection: micro USB female seat interface circuit, and default output is UART, does not need detection and extracts;
USB male joint extracts detection: after system detection to USB male joint insertion, if PMU detects micro USB female seat Voltage on VBUS pin 101 is 0V, after the stabilization time, it is believed that USB male joint is extracted, and passes through switch unit control first First switch S1 121 is connected to TX pin 125, by second switch by the control foot of switch S1 121, second switch S2 122 S2 is connected to RX pin 128;
OTG male connector extracts detection: after system detection to OTG male connector insertion, if PMU 11 detects the first interruptive port The state of INT1 131 becomes high level from low level, then system judges that OTG male connector is extracted, and PMU 11 stops to VBUS 138 pins export the power supply of 5V, and first switch S1 121 is connected to TX pin 125, second switch S2 122 is connected to RX Pin 128;
Headset detection: after system detection to earphone insertion, if PMU 11 detects the second interruptive port INT2's 137 State becomes high level from low level, then it is assumed that earphone is extracted, and by first switch S1121 connection TX pin 125, second is opened The connection RX of S2 122 pin 128 is closed, by the first interruptive port INT1 131 of the connection male connector of third switch S3 123.
More than, only specific embodiment of the present utility model, but protection scope of the utility model is not limited thereto, Anyone skilled in the art within the technical scope disclosed by the utility model, can readily occur in variation or replace It changes, should be covered within the scope of the utility model.Therefore, the protection scope of the utility model should be with claim Subject to protection scope.

Claims (10)

1. a kind of circuit based on general-purpose serial bus USB interface characterized by comprising
Usb interface unit, including multiple pins, for connecting a variety of peripheral apparatus;
Power Management Unit PMU, and the usb interface unit data connection, for managing and detecting inserting for the peripheral apparatus It pulls out;
At least one switch unit is electrically connected at least one pin in the multiple pin respectively, wherein it is described at least Each switch unit in one switch unit includes at least one switch, wherein at least one described switch respectively with it is described more The corresponding circuit of at least one of kind peripheral apparatus peripheral apparatus is electrically connected, and at least one peripheral apparatus includes general Asynchronous receiving-transmitting transmitter UART,
Wherein, the Power Management Unit is set at least one peripheral apparatus plug according at least one peripheral hardware At least one is switched described in standby Type Control, the corresponding pin of the switch unit is connected to outer at least one If the corresponding circuit of equipment.
2. circuit according to claim 1, which is characterized in that each switch unit at least one described switch unit Including a single-pole three-throw switch or three single-pole single-throw switch (SPST)s or a single-pole double-throw switch (SPDT) or two single-pole single-throw(SPSTs Switch.
3. circuit according to claim 1 or 2, which is characterized in that at least one described switch includes first switch, second Switch and third switch, the usb interface unit include 5 pins.
4. circuit according to claim 3, which is characterized in that 5 pins include:
Power pins VBUS is electrically connected the usb interface unit and the Power Management Unit PMU;
Grounding pin GND is electrically connected ground potential;
Data signal pin pair, the data signal pin is to including correction data pin DP and negative data pin DM, the data Signal pins are to two switch units being respectively and electrically connected at least one described switch unit;
Integrated driving Integrated Drive ID pin, one be electrically connected at least one described switch unit open Close unit.
5. circuit according to claim 4, which is characterized in that a variety of peripheral apparatus include USB interface-based set It is standby, at least one peripheral apparatus further include: earphone and in the case where no host realizes the data transmission of equipment room At least one of OTG equipment.
6. circuit according to claim 5, which is characterized in that further include first resistor, second resistance and 3rd resistor, institute State resistance connection right channel R pin and reference voltage, the second resistance connects the right channel R pin and the PMU Second interruptive port INT2, the first interruptive port INT1 of 3rd resistor the connection reference voltage and the PMU, wherein
The resistance value of the first resistor is 470k ohm;
The resistance value of the second resistance is 47k ohm;
The resistance value of the 3rd resistor is 5k ohm;
The default conditions of the first interruptive port INT1 are high level;
The default conditions of the second interruptive port INT2 are high level.
7. circuit according to claim 6, which is characterized in that
When the Power Management Unit PMU detects no VBUS insertion and the first interruptive port INT1 for high electricity Usually, the interface default output is universal asynchronous receiving-transmitting transmitter UART, then the switch unit connects the first switch The data for being connected to the universal asynchronous receiving-transmitting transmitter UART are sent on pin TX, the second switch are connected to universal asynchronous On the data receiver pin RX of receiving-transmitting transmitter UART, third switch is connected on the first interruptive port INT1, The grounding pin GND is grounded;Or
When the Power Management Unit has detected VBUS insertion, it is inserted into if USB interface device or charger, then institute It states switch unit the first switch is connected on negative data pin DM, the second switch is connected to correction data pin DP On, third switch is connected on the first interruptive port INT1;If detecting, USB interface device or charger are extracted, The first switch is connected on the TX by the switch unit, and the second switch is connected on the RX, will be described Third switch is connected on the INT1.
8. circuit according to claim 6, which is characterized in that
When the Power Management Unit PMU detects no VBUS insertion, and the first interruptive port INT1 is low When level and analog-digital converter ADC detect that input voltage is 0V, the Power Management Unit PMU detects that OTG is set The first switch is connected on the DM, the second switch is connected on the DP by standby insertion, the switch unit, Third switch is connected on the INT1;If the Power Management Unit PMU detects first interruptive port When INT1 is high level, as OTG equipment is extracted, then the first switch is connected on pin TX, the second switch connection Onto pin RX, the third switch is connected on the INT1;Or
When the Power Management Unit detects no VBUS insertion, and the first interruptive port INT1 is low level And ADC detects that input voltage is not 0V, then the Power Management Unit PMU detects that earphone is inserted into, the switch unit The first switch is connected on the R pin of earphone, the second switch is connected on the L pin of earphone, by institute Third switch is stated to be connected on earphone Mike's MIC pin;If detecting, the second interruptive port INT2 is low level, is judged It is judged as that the earphone is extracted, then the switch unit if the second interruptive port INT2 is high level for earphone insertion The first switch is connected on the TX, the second switch is connected on the RX, the third is switched and is connected Onto the first interruptive port INT1.
9. circuit according to claim 8, which is characterized in that
When the Power Management Unit PMU detects no VBUS insertion, and the first interruptive port INT1 is low Level and the ADC detect that input voltage is not 0V, if the second interruptive port INT2 is high level, judge to be inserted into Illegally.
10. a kind of electronic equipment, the circuit including USB interface according to any one of claims 1 to 9.
CN201821047889.9U 2018-07-03 2018-07-03 Circuit and electronic equipment based on general-purpose serial bus USB interface Expired - Fee Related CN208737453U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201821047889.9U CN208737453U (en) 2018-07-03 2018-07-03 Circuit and electronic equipment based on general-purpose serial bus USB interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201821047889.9U CN208737453U (en) 2018-07-03 2018-07-03 Circuit and electronic equipment based on general-purpose serial bus USB interface

Publications (1)

Publication Number Publication Date
CN208737453U true CN208737453U (en) 2019-04-12

Family

ID=66024931

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201821047889.9U Expired - Fee Related CN208737453U (en) 2018-07-03 2018-07-03 Circuit and electronic equipment based on general-purpose serial bus USB interface

Country Status (1)

Country Link
CN (1) CN208737453U (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110247265A (en) * 2019-06-28 2019-09-17 上海创功通讯技术有限公司 Multifunctional data line, switching circuit and switching method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110247265A (en) * 2019-06-28 2019-09-17 上海创功通讯技术有限公司 Multifunctional data line, switching circuit and switching method

Similar Documents

Publication Publication Date Title
CN108666826B (en) Adapter, terminal equipment and adapter system
CN106502939B (en) USB adapter and data transmission equipment
CN103124134B (en) Determining circuit
CN104620567B (en) The system and method for ground wire and microphone input contact for detection in audio jack
EP2089805B1 (en) Enhanced communication via a serial interface
EP2336895B1 (en) Electronic device and method thereof for identifying electronic accessory
EP2860639A1 (en) Communication control pins in a dual row connector
US11611221B2 (en) Electronic device and accessory with quick charging and audio transmission functions
CN102193583B (en) Portable computer
US8995672B2 (en) System and method for microphone polarity detection
CN204576500U (en) A kind of usb communication circuit of compatible I2C communication and system
CN102208721A (en) Universal serial bus connector and converter for universal serial bus connector
CN105868140A (en) A mobile apparatus
CN103888873A (en) Electronic device and UART output system and method
CN202696710U (en) System using impedance to identify peripheral equipment
CN208737453U (en) Circuit and electronic equipment based on general-purpose serial bus USB interface
CN111108654B (en) Data line
CN105281153B (en) A kind of interface, USB plug and mobile terminal
CN106486867B (en) Plug-pull structure and electronic device thereof
CN107706977B (en) Charging current detection method and charging device
CN105893296B (en) A kind of transmitting device and its method of data information
TW200643717A (en) Peripheral equipment of computer system
CN106937202A (en) Headphone interface device and mobile terminal
CN105979422A (en) Mobile terminal, and earphone base control system and method thereof
CN206743496U (en) Headphone interface device and mobile terminal

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190412

Termination date: 20200703

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