CN109960677A - A kind of expanded circuit for USB interface - Google Patents
A kind of expanded circuit for USB interface Download PDFInfo
- Publication number
- CN109960677A CN109960677A CN201910228946.6A CN201910228946A CN109960677A CN 109960677 A CN109960677 A CN 109960677A CN 201910228946 A CN201910228946 A CN 201910228946A CN 109960677 A CN109960677 A CN 109960677A
- Authority
- CN
- China
- Prior art keywords
- usb interface
- pin
- triode
- power supply
- attachment base
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4004—Coupling between buses
- G06F13/4022—Coupling between buses using switching circuits, e.g. switching matrix, connection or expansion network
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/0042—Universal serial bus [USB]
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Abstract
The present invention relates to electronic circuit technology field more particularly to a kind of expanded circuits for USB interface, including a switching circuit, switching circuit is used to switch the level state of the ID pin of USB interface;One host mode unit, is connected between switch mode power supply and an isolation element, for exporting switch mode power supply, so that the level of the ID pin of USB interface reduces;One main peripheral mode unit, is connected between isolation element and USB interface, for stopping output switch mode power supply, so that the level of the ID pin of USB interface increases.Beneficial effect is: being able to solve on piece chip system through a USB interface, the level change of the ID pin of USB interface can be controlled, it can satisfy the demand that user connects host equipment and external equipment simultaneously, and route is simple, cost is relatively low, it does not need additionally to increase OTG line, it is easy to use, it is able to satisfy client's OTG function.
Description
Technical field
The present invention relates to electronic circuit technology field more particularly to a kind of expanded circuits for USB interface.
Background technique
USB (Universal Serial Bus, universal serial bus), is an external bus standard, for specification electricity
Brain and external equipment are connected and communicate with.It is the interfacing applied in the field PC.The plug and play of USB interface holding equipment and
Warm connection function.
In the prior art, with the development in electronic circuit technology field, many electronic products pass through function as much as possible
It can meet the needs of users, need to switch between host equipment and external equipment, at present on piece chip system,
The USB interface for needing a connection host equipment needs the USB interface of a connection external equipment.With regard to current development
Speech, only one USB of on piece chip system can only connect host equipment or external equipment, can not meet connection master simultaneously
The demand of machine equipment and external equipment needs to increase in application process additional OTG line, higher cost.
Summary of the invention
For the above-mentioned problems in the prior art, a kind of expanded circuit for USB interface is now provided.
Specific technical solution is as follows:
A kind of expanded circuit for USB interface is used on piece chip system, including:
One switching circuit, the switching circuit are used to switch the level state of the ID pin of the USB interface;
One host mode unit, is connected between switch mode power supply and an isolation element, for exporting the switching mould
Formula power supply, so that the level of the ID pin of the USB interface reduces;
One peripheral mode unit, is connected between the isolation element and the USB interface, cuts described in output for stopping
Mode power is changed, so that the level of the ID pin of the USB interface increases.
Preferably, the switching circuit includes:
One switch block, the input terminal of the switch block connect the output of the switch block by a first resistor
End, the output end of the switch block are connected to the USB interface, and the ground terminal of the switch block connects ground terminal;
The base stage of one first triode, first triode connects the enabled of the switch block by a second resistance
End, the emitter of first triode connect ground terminal, and the collector of first triode is connected by a 3rd resistor
One supply voltage;
The base stage of one second triode, second triode connects the switch mode power supply by one the 4th resistance,
The emitter of second triode connects ground terminal, and the collector of second triode is connected to by one the 5th resistance
USB interface power supply, the USB interface power supply are connected to the input terminal of the switch block.
Preferably, the isolation element is diode, and the anode of the diode connects the switch mode power supply, described
The cathode of diode is connected to the USB interface by one the 6th resistance.
Preferably, the host mode unit includes:
One host attachment base, the first pin of the host attachment base connect the cathode of the diode, and the host connects
The second pin of joint chair is connected to one first differential signal end by one the 7th resistance, and the third pin of the host attachment base is logical
It crosses one the 8th resistance and connects one second differential signal end, the grounding pin of the host attachment base connects ground terminal;
One first capacitor is connected between the 6th resistance and ground terminal;
One second capacitor is connected between the 6th resistance and ground terminal.
Preferably, the peripheral mode unit includes:
First pin of one external equipment attachment base, the external equipment attachment base connects the anode of the diode, institute
The second pin for stating external equipment attachment base connects the second pin of the host attachment base, and the of the external equipment attachment base
Three pins connect the third pin of the host attachment base, and the 4th pin of the external equipment attachment base connects the USB and connects
The grounding pin of the ID pin of mouth, the external equipment attachment base connects ground terminal;
One the 9th resistance is connected between the USB interface power supply and ground terminal.
Preferably, the supply voltage of the supply voltage is 3.3V.
Preferably, the supply voltage of the switch mode power supply is 5V.
Preferably, the supply voltage of the USB interface power supply is 5V.
Preferably, first triode and second triode are NPN type triode.
Technical solution of the present invention beneficial effect is: providing a kind of expanded circuit for USB interface, is able to solve piece
By a USB interface in upper chip system, the level change of the ID pin of USB interface can be controlled, while can satisfy use
Family connects the demand of host equipment and external equipment, and route is simple, and cost is relatively low, does not need additionally to increase OTG line, uses
It is convenient, it is able to satisfy client's OTG function.
Detailed description of the invention
With reference to appended attached drawing, more fully to describe the embodiment of the present invention.However, appended attached drawing be merely to illustrate and
It illustrates, and is not meant to limit the scope of the invention.
Fig. 1 is the circuit connection diagram of the expanded circuit for USB interface of the embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art without creative labor it is obtained it is all its
His embodiment, shall fall within the protection scope of the present invention.
It should be noted that in the absence of conflict, the feature in embodiment and embodiment in the present invention can phase
Mutually combination.
The present invention will be further explained below with reference to the attached drawings and specific examples, but not as the limitation of the invention.
The present invention includes a kind of expanded circuit for USB interface, is used on piece chip system, including:
One switching circuit, switching circuit are used to switch the level state of the ID pin ID of USB interface USB;
One host mode unit is connected between switch mode power supply DEVICE and an isolation element D, for exporting switching
Mode power DEVICE, so that the level of the ID pin ID of USB interface USB reduces;
One peripheral mode unit, is connected between isolation element D and USB interface USB, for stopping output switch mode electricity
Source DEVICE, so that the level of the ID pin ID of USB interface increases.
By the technical solution of the above-mentioned expanded circuit for USB interface, as shown in Figure 1, it is used on piece chip system,
Under default conditions, switch mode power supply DEVICE is 0V, and the level that switching circuit switches the ID pin ID of USB interface USB reduces,
At this point, USB interface USB works in HOST mode, i.e. host mode, and when there is external equipment insertion, switch mode power supply
DEVICE is 5V, and the level that switching circuit switches the ID pin ID of USB interface USB increases, at this point, USB interface USB is worked in
DEVICE mode, i.e. external equipment mode.Also, in above-mentioned technical proposal, the supply voltage of switch mode power supply DEVICE is
5V。
Further, by a USB interface USB, the level change of the ID pin ID of USB interface USB can be controlled, together
When can satisfy the demand that user connects host equipment and external equipment, and route is simple, and cost is relatively low, does not need additionally to increase
Add OTG line, it is easy to use, it is able to satisfy client's OTG function.
In above-mentioned technical proposal, isolation element D is diode, and the anode of diode connects switch mode power supply DEVICE,
The cathode of diode is connected to USB interface USB by one the 6th resistance R6.
Specifically, using the reverse-conducting ability of diode, by the host mode of USB interface USB and external equipment mode
Keep apart, and by a USB interface USB, the level change of the ID pin ID of USB interface USB can be controlled, while can
Meets the needs of user connects host equipment and external equipment, and route is simple, cost is relatively low, does not need additionally to increase OTG
Line, it is easy to use, it is able to satisfy client's OTG function.
In a kind of preferably embodiment, switching circuit includes:
The input terminal VIN of one switch block U1, switch block U1 are defeated by a first resistor R1 connection switch component U1's
The output end VOUT of outlet VOUT, switch block U1 are connected to USB interface USB, the ground terminal GND connection ground connection of switch block U1
Hold GND;
The base stage of one first triode Q1, the first triode Q1 passes through the enabled of a second resistance R2 connection switch component U2
EN is held, the emitter of the first triode Q1 connects ground terminal GND, and the collector of the first triode Q1 is connected by a 3rd resistor R3
Meet a supply voltage VCORN;
The base stage of one second triode Q2, the second triode Q2 passes through one the 4th resistance R4 connection switch mode power supply
The emitter of DEVICE, the second triode Q2 connect ground terminal GND, and the collector of the second triode Q2 passes through one the 5th resistance R5
It is connected to USB interface power supply VUSB, USB interface power supply VUSB is connected to the input terminal VIN of switch block U1.
Specifically, as shown in Figure 1, passing through the reverse-conducting ability of isolation element D, partition host mode and external equipment mould
The power supply of formula connects, and under expanded circuit default conditions, switch mode power supply DEVICE is 0V, is cut using the second triode Q2
Only, the first triode Q1 is connected, and the level that switching circuit switches the ID pin ID of USB interface USB reduces, switch block U1 conducting
5V is exported, at this point, USB interface USB works in HOST mode, i.e. host mode;When there is external equipment insertion, switch mode electricity
Source DEVICE is 5V, the second triode Q2 conducting, the first triode Q1 cut-off, switch block U1 cut-off, switching circuit switching USB
The level of the ID pin ID of interface USB increases, at this point, USB interface USB works in DEVICE mode, i.e. external equipment mode.And
And in above-mentioned technical proposal, the supply voltage of supply voltage VCORN is 3.3V, and the first triode Q1 is with the second triode Q2
NPN type triode.
Further, by a USB interface USB, the level change of the ID pin ID of USB interface USB can be controlled, together
When can satisfy the demand that user connects host equipment and external equipment, and route is simple, and cost is relatively low, does not need additionally to increase
Add OTG line, it is easy to use, it is able to satisfy client's OTG function.
In a kind of preferably embodiment, host mode unit includes:
The cathode of the first pin connection diode D of one host attachment base CON1, host attachment base CON1, host attachment base
The second pin of CON1 is connected to one first differential signal end DM by one the 7th resistance R7, and the third of host attachment base CON1 is drawn
Foot connects ground terminal by one the 8th resistance R8 connection, one second differential signal end DP, the grounding pin of host attachment base CON1
GND;
One first capacitor C1, is connected between the 6th resistance R6 and ground terminal GND;
One second capacitor C2, is connected between the 6th resistance R6 and ground terminal GND.
Further, it is able to solve on piece chip system through a USB interface, the ID that can control USB interface draws
The level change of foot ID, while can satisfy the demand that user connects host equipment and external equipment, and route is simple, cost
It is lower, it does not need additionally to increase OTG line, it is easy to use, it is able to satisfy client's OTG function.
In a kind of preferably embodiment, peripheral mode unit includes:
The anode of the first pin connection diode D of one external equipment attachment base CON2, external equipment attachment base CON2, outside
Connect the second pin of the second pin connection host attachment base CON1 of equipment attachment base CON2, the of external equipment attachment base CON2
Three pins connect the third pin of host attachment base CON1, and the 4th pin of external equipment attachment base CON2 connects USB interface USB
ID pin ID, the grounding pin of external equipment attachment base CON2 connects ground terminal GND;
One the 9th resistance R9, is connected between USB interface power supply VUSB and ground terminal GND.
In above-mentioned technical proposal, the supply voltage of USB interface power supply VUSB is 5V.
Further, it is able to solve on piece chip system through a USB interface, the ID that can control USB interface draws
The level change of foot ID, while can satisfy the demand that user connects host equipment and external equipment, and route is simple, cost
It is lower, it does not need additionally to increase OTG line, it is easy to use, it is able to satisfy client's OTG function.
The foregoing is merely preferred embodiments of the present invention, are not intended to limit embodiments of the present invention and protection model
It encloses, to those skilled in the art, should can appreciate that all with made by description of the invention and diagramatic content
Equivalent replacement and obviously change obtained scheme, should all be included within the scope of the present invention.
Claims (9)
1. a kind of expanded circuit for USB interface is used on piece chip system characterized by comprising
One switching circuit, the switching circuit are used to switch the level state of the ID pin of the USB interface;
One host mode unit, is connected between switch mode power supply and an isolation element, for exporting the switch mode electricity
Source, so that the level of the ID pin of the USB interface reduces;
One peripheral mode unit, is connected between the isolation element and the USB interface, exports the switching mould for stopping
Formula power supply, so that the level of the ID pin of the USB interface increases.
2. the expanded circuit according to claim 1 for USB interface, which is characterized in that the switching circuit includes:
One switch block, the input terminal of the switch block connect the output end of the switch block by a first resistor, institute
The output end for stating switch block is connected to the USB interface, and the ground terminal of the switch block connects ground terminal;
The base stage of one first triode, first triode connects the enable end of the switch block by a second resistance,
The emitter of first triode connects ground terminal, and the collector of first triode passes through one electricity of 3rd resistor connection
Source voltage;
The base stage of one second triode, second triode connects the switch mode power supply by one the 4th resistance, described
The emitter of second triode connects ground terminal, and the collector of second triode is connected to USB by one the 5th resistance and connects
Mouth power supply, the USB interface power supply are connected to the input terminal of the switch block.
3. the expanded circuit according to claim 1 for USB interface, which is characterized in that the isolation element is two poles
The anode of pipe, the diode connects the switch mode power supply, and the cathode of the diode is connected to by one the 6th resistance
The USB interface.
4. the expanded circuit according to claim 3 for USB interface, which is characterized in that the host mode unit packet
It includes:
One host attachment base, the first pin of the host attachment base connect the cathode of the diode, the host attachment base
Second pin one first differential signal end is connected to by one the 7th resistance, the third pin of the host attachment base passes through one
8th resistance connects one second differential signal end, and the grounding pin of the host attachment base connects ground terminal;
One first capacitor is connected between the 6th resistance and ground terminal;
One second capacitor is connected between the 6th resistance and ground terminal.
5. the expanded circuit according to claim 4 for USB interface, which is characterized in that the peripheral mode unit packet
It includes:
One external equipment attachment base, the first pin of the external equipment attachment base connects the anode of the diode, described outer
The second pin for connecing equipment attachment base connects the second pin of the host attachment base, and the third of the external equipment attachment base is drawn
Foot connects the third pin of the host attachment base, and the 4th pin of the external equipment attachment base connects the USB interface
The grounding pin of ID pin, the external equipment attachment base connects ground terminal;
The end ID is connected to the collector of first triode;
One the 9th resistance is connected between the USB interface power supply and ground terminal.
6. the expanded circuit according to claim 2 for USB interface, which is characterized in that the power supply of the supply voltage
Voltage is 3.3V.
7. the expanded circuit according to claim 2 for USB interface, which is characterized in that the switch mode power supply
Supply voltage is 5V.
8. the expanded circuit according to claim 2 for USB interface, which is characterized in that the electricity of the USB interface power supply
Source voltage is 5V.
9. the expanded circuit according to claim 2 for USB interface, which is characterized in that first triode and institute
Stating the second triode is NPN type triode.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910228946.6A CN109960677B (en) | 2019-03-25 | 2019-03-25 | Extension circuit for USB interface |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910228946.6A CN109960677B (en) | 2019-03-25 | 2019-03-25 | Extension circuit for USB interface |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109960677A true CN109960677A (en) | 2019-07-02 |
CN109960677B CN109960677B (en) | 2023-04-28 |
Family
ID=67025013
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910228946.6A Active CN109960677B (en) | 2019-03-25 | 2019-03-25 | Extension circuit for USB interface |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109960677B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110781111A (en) * | 2019-10-23 | 2020-02-11 | 北京计算机技术及应用研究所 | But real-time supervision's dual-redundancy USB port extension device |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080126593A1 (en) * | 2006-07-11 | 2008-05-29 | Hsuan-Yi Wang | Expansion module for a USB port and a method thereof |
US20120260018A1 (en) * | 2011-04-06 | 2012-10-11 | Oct Technology Co.,Ltd. | Kvm switcher with ability to extend universal serial bus (usb) host interface via serial peripherial interface (spi) |
CN202872406U (en) * | 2012-09-19 | 2013-04-10 | 青岛海信移动通信技术股份有限公司 | Interface multiplexing circuit and mobile terminal |
CN205545308U (en) * | 2016-02-01 | 2016-08-31 | 厦门锐益达电子科技有限公司 | USB power supply switching circuit |
CN106066840A (en) * | 2016-05-27 | 2016-11-02 | 北京小鸟看看科技有限公司 | A kind of method switching electronic equipment master slave mode and a kind of electronic equipment |
CN207037649U (en) * | 2017-06-30 | 2018-02-23 | 深圳市阿龙电子有限公司 | A kind of USB switching circuits of smart machine |
CN108021522A (en) * | 2017-12-14 | 2018-05-11 | 威创集团股份有限公司 | USB device master slave mode switching circuit |
CN208445315U (en) * | 2018-07-09 | 2019-01-29 | 潍坊歌尔电子有限公司 | A kind of charging circuit, headset equipment and system |
-
2019
- 2019-03-25 CN CN201910228946.6A patent/CN109960677B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080126593A1 (en) * | 2006-07-11 | 2008-05-29 | Hsuan-Yi Wang | Expansion module for a USB port and a method thereof |
US20120260018A1 (en) * | 2011-04-06 | 2012-10-11 | Oct Technology Co.,Ltd. | Kvm switcher with ability to extend universal serial bus (usb) host interface via serial peripherial interface (spi) |
CN202872406U (en) * | 2012-09-19 | 2013-04-10 | 青岛海信移动通信技术股份有限公司 | Interface multiplexing circuit and mobile terminal |
CN205545308U (en) * | 2016-02-01 | 2016-08-31 | 厦门锐益达电子科技有限公司 | USB power supply switching circuit |
CN106066840A (en) * | 2016-05-27 | 2016-11-02 | 北京小鸟看看科技有限公司 | A kind of method switching electronic equipment master slave mode and a kind of electronic equipment |
CN207037649U (en) * | 2017-06-30 | 2018-02-23 | 深圳市阿龙电子有限公司 | A kind of USB switching circuits of smart machine |
CN108021522A (en) * | 2017-12-14 | 2018-05-11 | 威创集团股份有限公司 | USB device master slave mode switching circuit |
CN208445315U (en) * | 2018-07-09 | 2019-01-29 | 潍坊歌尔电子有限公司 | A kind of charging circuit, headset equipment and system |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110781111A (en) * | 2019-10-23 | 2020-02-11 | 北京计算机技术及应用研究所 | But real-time supervision's dual-redundancy USB port extension device |
Also Published As
Publication number | Publication date |
---|---|
CN109960677B (en) | 2023-04-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107807892B (en) | Method for converting USB TYPE-C into USB3.0 and adapter | |
CN103561369A (en) | Usb interface circuit and electronic equipment | |
CN103684407A (en) | Otg device | |
CN109960677A (en) | A kind of expanded circuit for USB interface | |
CN105160862A (en) | M-BUS (METER-BUS) slave communication circuit | |
CN208689570U (en) | USB interface built-up circuit and all-in-one machine | |
CN204517690U (en) | Regulator rectifier circuit | |
CN207992988U (en) | A kind of startup configuration multiplex circuit | |
CN102445624A (en) | Plug detection device | |
CN104993815A (en) | General pin multiplex circuit | |
CN215904446U (en) | Unified output foot kicking sensor system | |
CN202798970U (en) | HDMI (high-definition multimedia interface) device | |
TWI521330B (en) | Power supply select circuit | |
CN110535342A (en) | A kind of voltage-operated device and system | |
CN208873140U (en) | Multiplex roles USB circuit based on MTK chip for cell phone | |
CN104423514B (en) | A kind of reset circuit of SCM and microsystem | |
CN216118771U (en) | Circuit for realizing data communication between USB port and RS232 serial port | |
CN110312180A (en) | A method of using earphone base and USB OTG multiplexing functions | |
CN108155531A (en) | The data transmission system of attachment device and the application attachment device | |
CN208689541U (en) | Computer incoming call auto power on device | |
CN216053022U (en) | USB OTG power supply switching circuit | |
CN209625009U (en) | A kind of microcontroller communication control circuit | |
CN211149438U (en) | Interface multiplexing circuit and desktop robot | |
CN105988964B (en) | Interface common circuit | |
CN209658968U (en) | A kind of adjustable QC2.0 spoofer of twin voltage |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |