CN109960677B - Extension circuit for USB interface - Google Patents

Extension circuit for USB interface Download PDF

Info

Publication number
CN109960677B
CN109960677B CN201910228946.6A CN201910228946A CN109960677B CN 109960677 B CN109960677 B CN 109960677B CN 201910228946 A CN201910228946 A CN 201910228946A CN 109960677 B CN109960677 B CN 109960677B
Authority
CN
China
Prior art keywords
usb interface
pin
power supply
resistor
connecting seat
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910228946.6A
Other languages
Chinese (zh)
Other versions
CN109960677A (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.)
Amlogic Shanghai Co Ltd
Original Assignee
Amlogic Shanghai 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 Amlogic Shanghai Co Ltd filed Critical Amlogic Shanghai Co Ltd
Priority to CN201910228946.6A priority Critical patent/CN109960677B/en
Publication of CN109960677A publication Critical patent/CN109960677A/en
Application granted granted Critical
Publication of CN109960677B publication Critical patent/CN109960677B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4004Coupling between buses
    • G06F13/4022Coupling between buses using switching circuits, e.g. switching matrix, connection or expansion network
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)

Abstract

The invention relates to the technical field of electronic circuits, in particular to an expansion circuit for a USB interface, which comprises a switch circuit, a control circuit and a control circuit, wherein the switch circuit is used for switching the level state of an ID pin of the USB interface; the host mode unit is connected between the switching mode power supply and an isolation element and is used for outputting the switching mode power supply so as to reduce the level of an ID pin of the USB interface; and the main peripheral mode unit is connected between the isolation element and the USB interface and is used for stopping outputting the switching mode power supply so as to enable the level of the ID pin of the USB interface to be increased. The beneficial effects are that: the on-chip system can control the level change of the ID pin of the USB interface through the USB interface, can meet the requirements of a user for connecting host equipment and external equipment, has simple circuit and lower cost, does not need to additionally increase OTG lines, is convenient to use, and can meet the OTG function of a client.

Description

Extension circuit for USB interface
Technical Field
The present invention relates to the field of electronic circuits, and in particular, to an expansion circuit for a USB interface.
Background
USB (Universal Serial Bus ), which is an external bus standard, is used to regulate the connection and communication between a computer and external devices. Is an interface technology applied to the PC field. The USB interface supports plug and play and hot plug functions of the device.
In the prior art, with the development of the technical field of electronic circuits, many electronic products meet the demands of users by having as many functions as possible, and need to switch between a host device and an external device. In terms of the current development situation, the chip-on-chip system has only one USB, can only be connected with the host equipment or the external equipment, can not simultaneously meet the requirements of connecting the host equipment and the external equipment, and has higher cost because an additional OTG line is required to be added in the application process.
Disclosure of Invention
In view of the foregoing problems in the prior art, an expansion circuit for a USB interface is now provided.
The specific technical scheme is as follows:
an expansion circuit for a USB interface for a chip-on-chip system, comprising:
the switching circuit is used for switching the level state of the ID pin of the USB interface;
the host mode unit is connected between the switching mode power supply and an isolation element and is used for outputting the switching mode power supply so as to reduce the level of an ID pin of the USB interface;
and the peripheral mode unit is connected between the isolation element and the USB interface and is used for stopping outputting the switching mode power supply so as to enable the level of an ID pin of the USB interface to be increased.
Preferably, the switching circuit includes:
the input end of the switch component is connected with the output end of the switch component through a first resistor, the output end of the switch component is connected to the USB interface, and the grounding end of the switch component is connected with the grounding end;
the base electrode of the first triode is connected with the enabling end of the switch component through a second resistor, the emitting electrode of the first triode is connected with the grounding end, and the collecting electrode of the first triode is connected with a power supply voltage through a third resistor;
the base electrode of the second triode is connected with the switching mode power supply through a fourth resistor, the emitting electrode of the second triode is connected with the grounding end, the collecting electrode of the second triode is connected to the USB interface power supply through a fifth resistor, and the USB interface power supply is connected to the input end of the switch component.
Preferably, the isolation element is a diode, an anode of the diode is connected to the switching mode power supply, and a cathode of the diode is connected to the USB interface through a sixth resistor.
Preferably, the host mode unit includes:
the first pin of the host connecting seat is connected with the cathode of the diode, the second pin of the host connecting seat is connected to a first differential signal end through a seventh resistor, the third pin of the host connecting seat is connected to a second differential signal end through an eighth resistor, and the grounding pin of the host connecting seat is connected to a grounding end;
the first capacitor is connected between the sixth resistor and the grounding end;
and the second capacitor is connected between the sixth resistor and the grounding end.
Preferably, the peripheral mode unit includes:
the first pin of the external equipment connecting seat is connected with the anode of the diode, the second pin of the external equipment connecting seat is connected with the second pin of the host connecting seat, the third pin of the external equipment connecting seat is connected with the third pin of the host connecting seat, the fourth pin of the external equipment connecting seat is connected with the ID pin of the USB interface, and the grounding pin of the external equipment connecting seat is connected with the grounding end;
and the ninth resistor is connected between the USB interface power supply and the ground terminal.
Preferably, the power supply voltage is 3.3V.
Preferably, the power supply voltage of the switching mode power supply is 5V.
Preferably, the power supply voltage of the USB interface power supply is 5V.
Preferably, the first triode and the second triode are NPN type triodes.
The technical scheme of the invention has the beneficial effects that: the utility model provides an expansion circuit for USB interface can solve through a USB interface in the chip-on-chip system, can control the level variation of the ID pin of USB interface, can satisfy the demand that the user connects host computer equipment and external equipment simultaneously to the circuit is simple, and the cost is lower, does not need additionally to increase OTG line, convenient to use, can satisfy customer OTG function.
Drawings
Embodiments of the present invention will now be described more fully with reference to the accompanying drawings. The drawings, however, are for illustration and description only and are not intended as a definition of the limits of the invention.
Fig. 1 is a circuit connection diagram of an expansion circuit for a USB interface according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that, without conflict, the embodiments of the present invention and features of the embodiments may be combined with each other.
The invention is further described below with reference to the drawings and specific examples, which are not intended to be limiting.
The invention includes an expansion circuit for a USB interface for a chip-on-chip system, comprising:
the switching circuit is used for switching the level state of an ID pin ID of the USB interface USB;
the host mode unit is connected between the switching mode power supply DEVICE and an isolation element D and is used for outputting the switching mode power supply DEVICE so that the level of an ID pin ID of the USB interface USB is reduced;
and the peripheral mode unit is connected between the isolation element D and the USB interface USB and is used for stopping outputting the switching mode power supply DEVICE so as to enable the level of the ID pin ID of the USB interface to be increased.
Through the above technical scheme for the expansion circuit of the USB interface, as shown in fig. 1, for the chip-on-chip system, in the default state, the switching mode power source DEVICE is 0V, the level of the ID pin ID of the switching circuit for switching the USB interface USB is reduced, at this time, the USB interface USB operates in the HOST mode, i.e., the HOST mode, when the external DEVICE is plugged in, the switching mode power source DEVICE is 5V, the level of the ID pin ID of the switching circuit for switching the USB interface USB is increased, at this time, the USB interface USB operates in the DEVICE mode, i.e., the external DEVICE mode. In the above-described embodiments, the power supply voltage of the switching mode power supply DEVICE is 5V.
Further, through a USB interface USB, the level change of the ID pin ID of the USB interface USB can be controlled, meanwhile, the requirements of a user for connecting host equipment and external equipment can be met, the circuit is simple, the cost is low, an OTG line is not required to be additionally added, the use is convenient, and the OTG function of a client can be met.
In the above technical solution, the isolation element D is a diode, the anode of the diode is connected to the switching mode power source DEVICE, and the cathode of the diode is connected to the USB interface USB through a sixth resistor R6.
Specifically, the host mode of the USB interface USB is isolated from the mode of the external device by utilizing the reverse conduction capability of the diode, and the level change of the ID pin ID of the USB interface USB can be controlled through one USB interface USB, so that the requirement of a user for connecting the host device and the external device can be met, the circuit is simple, the cost is low, the OTG wire does not need to be additionally added, the use is convenient, and the OTG function of a client can be met.
In a preferred embodiment, the switching circuit comprises:
the input end VIN of the switch part U1 is connected with the output end VOUT of the switch part U1 through a first resistor R1, the output end VOUT of the switch part U1 is connected to the USB interface USB, and the grounding end GND of the switch part U1 is connected with the grounding end GND;
the base electrode of the first triode Q1 is connected with the enable end EN of the switch component U2 through a second resistor R2, the emitter electrode of the first triode Q1 is connected with the ground end GND, and the collector electrode of the first triode Q1 is connected with a power supply voltage VCORN through a third resistor R3;
the base of the second triode Q2 is connected with the switching mode power supply DEVICE through a fourth resistor R4, the emitter of the second triode Q2 is connected with the ground end GND, the collector of the second triode Q2 is connected with the USB interface power supply VUSB through a fifth resistor R5, and the USB interface power supply VUSB is connected with the input end VIN of the switching component U1.
Specifically, as shown in fig. 1, the power connection between the HOST mode and the external DEVICE mode is blocked by the reverse conduction capability of the isolation element D, in the default state of the extension circuit, the switching mode power source DEVICE is 0V, the second triode Q2 is turned off, the first triode Q1 is turned on, the level of the ID pin ID of the switching circuit for switching the USB interface USB is reduced, and the switching component U1 is turned on to output 5V, at this time, the USB interface USB operates in HOST mode, that is, HOST mode; when an external DEVICE is inserted, the switching mode power supply DEVICE is 5V, the second triode Q2 is turned on, the first triode Q1 is turned off, the switching component U1 is turned off, the level of the ID pin ID of the switching circuit switching USB interface USB is increased, and at the moment, the USB interface USB works in the DEVICE mode, namely the external DEVICE mode. In the above technical scheme, the power supply voltage VCORN is 3.3V, and the first triode Q1 and the second triode Q2 are NPN type triodes.
Further, through a USB interface USB, the level change of the ID pin ID of the USB interface USB can be controlled, meanwhile, the requirements of a user for connecting host equipment and external equipment can be met, the circuit is simple, the cost is low, an OTG line is not required to be additionally added, the use is convenient, and the OTG function of a client can be met.
In a preferred embodiment, the host mode unit comprises:
the first pin of the host connection seat CON1 is connected with the cathode of the diode D, the second pin of the host connection seat CON1 is connected to a first differential signal end DM through a seventh resistor R7, the third pin of the host connection seat CON1 is connected to a second differential signal end DP through an eighth resistor R8, and the grounding pin of the host connection seat CON1 is connected to a grounding end GND;
a first capacitor C1 connected between the sixth resistor R6 and the ground GND;
a second capacitor C2 connected between the sixth resistor R6 and the ground GND.
Further, the level change of the ID pin ID of the USB interface can be controlled through the USB interface in the chip-on-chip system, the requirement of connecting host equipment and external equipment by a user can be met, the circuit is simple, the cost is low, the OTG line is not required to be additionally increased, the use is convenient, and the OTG function of a client can be met.
In a preferred embodiment, the peripheral mode unit comprises:
the external device connection seat CON2, the first pin of the external device connection seat CON2 is connected with the positive electrode of the diode D, the second pin of the external device connection seat CON2 is connected with the second pin of the host connection seat CON1, the third pin of the external device connection seat CON2 is connected with the third pin of the host connection seat CON1, the fourth pin of the external device connection seat CON2 is connected with the ID pin ID of the USB interface USB, and the grounding pin of the external device connection seat CON2 is connected with the grounding end GND;
a ninth resistor R9 connected between the USB interface power supply VUSB and the ground GND.
In the above technical scheme, the power supply voltage of the USB interface power supply VUSB is 5V.
Further, the level change of the ID pin ID of the USB interface can be controlled through the USB interface in the chip-on-chip system, the requirement of connecting host equipment and external equipment by a user can be met, the circuit is simple, the cost is low, the OTG line is not required to be additionally increased, the use is convenient, and the OTG function of a client can be met.
The foregoing description is only illustrative of the preferred embodiments of the present invention and is not to be construed as limiting the scope of the invention, and it will be appreciated by those skilled in the art that equivalent substitutions and obvious variations may be made using the description and illustrations of the present invention, and are intended to be included within the scope of the present invention.

Claims (8)

1. An expansion circuit for a USB interface for a chip-on-chip system, comprising:
the switching circuit is used for switching the level state of the ID pin of the USB interface;
the host mode unit is connected between the switching mode power supply and an isolation element and is used for outputting the switching mode power supply so as to reduce the level of an ID pin of the USB interface;
the peripheral mode unit is connected between the isolation element and the USB interface and used for stopping outputting the switching mode power supply so as to enable the level of an ID pin of the USB interface to be increased;
the switching circuit includes:
the input end of the switch component is connected with the output end of the switch component through a first resistor, the output end of the switch component is connected to the USB interface, and the grounding end of the switch component is connected with the grounding end;
the base electrode of the first triode is connected with the enabling end of the switch component through a second resistor, the emitting electrode of the first triode is connected with the grounding end, and the collecting electrode of the first triode is connected with a power supply voltage through a third resistor;
the base electrode of the second triode is connected with the switching mode power supply through a fourth resistor, the emitting electrode of the second triode is connected with the grounding end, the collecting electrode of the second triode is connected to the USB interface power supply through a fifth resistor, and the USB interface power supply is connected to the input end of the switch component.
2. The expansion circuit for USB interface of claim 1, wherein the isolation element is a diode, a positive electrode of the diode is connected to the switching mode power supply, and a negative electrode of the diode is connected to the USB interface through a sixth resistor.
3. The expansion circuit for USB interface of claim 2, wherein the host mode unit comprises:
the first pin of the host connecting seat is connected with the cathode of the diode, the second pin of the host connecting seat is connected to a first differential signal end through a seventh resistor, the third pin of the host connecting seat is connected to a second differential signal end through an eighth resistor, and the grounding pin of the host connecting seat is connected to a grounding end;
the first capacitor is connected between the sixth resistor and the grounding end;
and the second capacitor is connected between the sixth resistor and the grounding end.
4. An expansion circuit for a USB interface according to claim 3, wherein the peripheral mode unit comprises:
the first pin of the external equipment connecting seat is connected with the anode of the diode, the second pin of the external equipment connecting seat is connected with the second pin of the host connecting seat, the third pin of the external equipment connecting seat is connected with the third pin of the host connecting seat, the fourth pin of the external equipment connecting seat is connected with the ID pin of the USB interface, and the grounding pin of the external equipment connecting seat is connected with the grounding end;
the ID pin is connected to the collector of the first triode;
and the ninth resistor is connected between the USB interface power supply and the ground terminal.
5. The expansion circuit for a USB interface of claim 1, wherein the supply voltage is 3.3V.
6. The expansion circuit for USB interface of claim 1, wherein the supply voltage of the switched mode power supply is 5V.
7. The expansion circuit for a USB interface of claim 1, wherein the power supply voltage of the USB interface power supply is 5V.
8. The expansion circuit for USB interface of claim 1, wherein the first transistor and the second transistor are NPN transistors.
CN201910228946.6A 2019-03-25 2019-03-25 Extension circuit for USB interface Active CN109960677B (en)

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 CN109960677A (en) 2019-07-02
CN109960677B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110781111B (en) * 2019-10-23 2020-12-01 北京计算机技术及应用研究所 But real-time supervision's dual-redundancy USB port extension device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
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)

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN109960677A (en) 2019-07-02

Similar Documents

Publication Publication Date Title
US20130181660A1 (en) Charge control circuit for usb device
CN102856933A (en) Universal serial bus (USB) charging circuit
CN104239240A (en) Electronic device with universal serial bus (USB) interface with integration function
CN112088472B (en) Double-interface switching circuit and Type-C concentrator
CN103684407A (en) Otg device
CN109960677B (en) Extension circuit for USB interface
CN103199847A (en) Bi-directional level switching circuit and electronic product
CN212649180U (en) Double-interface switching circuit and Type-C concentrator
CN110502092B (en) Power supply circuit and electronic equipment
CN110096382B (en) Mainboard and electronic device applying same
CN114201430B (en) Double-blind-insertion control circuit and display control method for single-CC interface MCU
CN101626201B (en) Switch power supply circuit
CN104079020B (en) Computer and charging circuit thereof
CN108572936B (en) USB interface control circuit
CN108155531B (en) Connecting device and data transmission system using same
CN214098415U (en) Switching control circuit based on USB interface
CN108572935B (en) USB interface control circuit
CN220798251U (en) Change-over switch circuit
CN214409977U (en) USB automatic switching circuit
CN216751301U (en) Power supply switching circuit and electronic equipment
CN204362018U (en) A kind of USB device power supply circuits and electronic installation
CN204206154U (en) The gate circuit conversion equipment of a kind of universal serial port and ISO7816 agreement
CN214228232U (en) Bidirectional level conversion circuit and electronic equipment
CN210804401U (en) Master-slave USB automatic switching device for DMS equipment
CN218783796U (en) Power-on circuit based on time delay reset chip

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