CN111190474A - USB interface control circuit and slave device - Google Patents

USB interface control circuit and slave device Download PDF

Info

Publication number
CN111190474A
CN111190474A CN201911390602.1A CN201911390602A CN111190474A CN 111190474 A CN111190474 A CN 111190474A CN 201911390602 A CN201911390602 A CN 201911390602A CN 111190474 A CN111190474 A CN 111190474A
Authority
CN
China
Prior art keywords
module
usb interface
resistor
terminal
voltage stabilizing
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.)
Pending
Application number
CN201911390602.1A
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.)
Shenzhen Xinguodu Tech Co Ltd
Original Assignee
Shenzhen Xinguodu Tech 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 Shenzhen Xinguodu Tech Co Ltd filed Critical Shenzhen Xinguodu Tech Co Ltd
Priority to CN201911390602.1A priority Critical patent/CN111190474A/en
Publication of CN111190474A publication Critical patent/CN111190474A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/266Arrangements to supply power to external peripherals either directly from the computer or under computer control, e.g. supply of power through the communication port, computer controlled power-strips
    • 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/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03FAMPLIFIERS
    • H03F1/00Details of amplifiers with only discharge tubes, only semiconductor devices or only unspecified devices as amplifying elements
    • H03F1/38Positive-feedback circuit arrangements without negative feedback

Abstract

The invention discloses a USB interface control circuit and slave equipment, the circuit includes: the monitoring device comprises a USB interface, a power supply module, a voltage stabilizing module, a monitoring module and a delay module, wherein the power output end of the power supply module is connected with the voltage stabilizing module, the voltage stabilizing module is connected with the power input end of the USB interface and the monitoring module, the monitoring module is connected with the delay module, and the delay module is connected with the communication end of the USB interface; the power supply module is used for outputting electric energy to the USB interface through the voltage stabilizing module when the USB interface is connected to the main equipment; the voltage stabilizing module is used for stabilizing the voltage at two ends of the voltage stabilizing module within a fixed range when the electric energy output passes through the voltage stabilizing module; the monitoring module is used for monitoring the voltages at the two ends of the voltage stabilizing module and outputting a monitoring signal to the delay module; the delay module is used for outputting the monitoring signal to the communication end of the USB interface in a delayed mode. This scheme can realize simultaneously charging to the main equipment based on single USB interface to and carry out the USB communication with the main equipment.

Description

USB interface control circuit and slave device
Technical Field
The invention relates to the field of USB interface control, in particular to a USB interface control circuit and slave equipment.
Background
USB devices with USB HOST interface are classified into HOST (master device) and SLAVE (SLAVE device), and data transmission can be realized only when one HOST is connected to one SLAVE device.
At present, more and more products supporting the function of the USB HOST interface have the advantages of high portability and hot plugging in and out in electronic products. But based on the characteristics of the USB protocol, the slave device requires the master device to power it using the USB interface. At this time, the host device cannot use the USB interface to charge the host device. However, in most cases, a use scenario in which charging and communication coexist exists, and particularly, the extended base type device exists. The conventional solution is to add an additional charging interface and to make the charging circuit separately.
In the existing solution, an additional interface is added, so that the product breaks away from the design principle of light, thin and clean appearance, and the design of the structure appearance is difficult; in addition, the additionally added charging circuit not only increases the manufacturing cost of the product, but also increases the failure rate, so that the reliability of the product is reduced, and the difficulty is increased for hardware design.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a USB interface control circuit and slave equipment.
In order to achieve the purpose, the invention adopts the following technical scheme: a USB interface control circuit comprises a USB interface, a power supply module, a voltage stabilizing module, a monitoring module and a time delay module, wherein the power supply output end of the power supply module is connected with the voltage stabilizing module, the voltage stabilizing module is connected with the power supply input end of the USB interface and the monitoring module, the monitoring module is connected with the time delay module, and the time delay module is connected with the communication end of the USB interface;
the power supply module is used for outputting electric energy to the USB interface through the voltage stabilizing module when the USB interface is connected to the main equipment;
the voltage stabilizing module is used for stabilizing the voltage at two ends of the voltage stabilizing module within a fixed range when the electric energy output passes through the voltage stabilizing module;
the monitoring module is used for monitoring the voltages at the two ends of the voltage stabilizing module and outputting a monitoring signal to the delay module;
the delay module is used for outputting the monitoring signal to a communication end of the USB interface in a delayed mode and informing the master device that the slave device is connected so that the master device can communicate with the USB interface control circuit through the USB interface.
Further, the voltage stabilizing module comprises a diode D6 and a resistor R63, the power output end of the power supply module is connected with the anode of the diode D6 and the first end of the resistor R63, and the cathode of the diode D6 and the second end of the resistor R63 are connected with the power input end of the USB interface.
Further, the detection module includes resistors R121, R64, R119, R118, and R102, and an operational amplifier U33a, a first end of the resistor R121 is connected to the first end of the resistor R63, a second end of the resistor R121 is connected to the inverting input terminal of the operational amplifier U33a and the first end of the resistor R119, a second end of the resistor R119 and the GND terminal of the operational amplifier U33a are grounded, a first end of the resistor R64 is connected to the second end of the resistor R63, a second end of the resistor R64 is connected to the common-direction input terminal of the operational amplifier U33a and the first end of the resistor R102, a first end of the resistor R118 and the VCC power input terminal of the operational amplifier U33a are connected to the delay module, and an output end of the operational amplifier U33a, a second end of the resistor R118 and the second end of the resistor R102 are connected to the delay module.
Further, the delay module is an RC circuit.
Further, the delay module includes a resistor R120 and a capacitor C49, a first end of the resistor R120 is connected to the output terminal of the operational amplifier U33a, a second end of the resistor R120 is connected to the first end of the capacitor C49 and the communication terminal of the USB interface, and a second end of the capacitor C49 is grounded.
Furthermore, the USB interface voltage stabilizing device further comprises a filtering module, and the filtering module is connected with the voltage stabilizing module and the USB interface.
Further, the filtering module includes a capacitor C337 and a capacitor C111, first terminals of the capacitor C337 and the capacitor C111 are connected to the second terminal of the resistor R63, and second terminals of the capacitor C337 and the capacitor C111 are connected to ground.
The invention also provides a slave device which comprises the USB interface control circuit.
Compared with the prior art, the invention has the beneficial effects that: the USB interface control circuit provided by the invention can realize charging of the main equipment and USB communication with the main equipment based on a single USB interface, has a simple circuit structure, does not need to add an additional interface, and improves the communication and charging efficiency of the main equipment and the slave equipment while ensuring the cost.
The foregoing description is only an overview of the technical solutions of the present invention, and in order to make the technical means of the present invention more clearly understood, the present invention may be implemented according to the content of the description, and in order to make the above and other objects, features, and advantages of the present invention more apparent, the following detailed description will be given of preferred embodiments.
Drawings
FIG. 1 is a schematic block diagram of a USB interface control circuit according to the present invention;
fig. 2 is a circuit diagram of a USB interface control circuit according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in detail with reference to the accompanying drawings and the detailed description.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, it is to be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", and the like, indicate orientations and positional relationships based on those shown in the drawings, and are used only for convenience of description and simplicity of description, and do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be considered as limiting the present invention.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
In the present invention, unless otherwise expressly stated or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be connected or detachably connected or integrated; can be mechanically or electrically connected; either directly or indirectly through intervening media, either internally or in any other relationship. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the present invention, unless otherwise expressly stated or limited, "above" or "below" a first feature means that the first and second features are in direct contact, or that the first and second features are not in direct contact but are in contact with each other via another feature therebetween. Also, the first feature being "on," "above" and "over" the second feature includes the first feature being directly on and obliquely above the second feature, or merely indicating that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature includes the first feature being directly under and obliquely below the second feature, or simply meaning that the first feature is at a lesser elevation than the second feature.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above should not be understood to necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples described in this specification can be combined and combined by one skilled in the art.
Referring to fig. 1 and 2, the present invention provides a USB interface control circuit, which includes a USB interface 30, a power supply module 10, a voltage regulation module 20, a monitoring module 40, and a delay module 50, wherein a power output end of the power supply module 10 is connected to the voltage regulation module 20, the voltage regulation module 20 is connected to a power input end of the USB interface 30 and the monitoring module 40, the monitoring module 40 is connected to the delay module 50, and the delay module 50 is connected to a communication end of the USB interface 30.
The power supply module 10 is configured to output the electric energy to the USB interface 30 through the voltage stabilizing module 20 when the USB interface 30 is connected to the host device; the voltage stabilizing module 20 is used for stabilizing the voltage at two ends of the voltage stabilizing module 20 in a fixed range when the electric energy output passes through the voltage stabilizing module 20; the monitoring module 40 is configured to monitor the voltage across the voltage regulator module 20 and output a monitoring signal to the delay module 50; the delay module 50 is configured to delay and output the monitoring signal to the communication terminal of the USB interface 30, and notify the master device that the slave device is connected, so that the master device communicates with the control circuit of the USB interface 30 through the USB interface 30.
When the USB interface 30 is connected to the host device and the host device is powered through the USB interface 30, the power supply module 10 outputs a power supply to form a voltage drop at two ends of the voltage stabilizing module 20, at this time, the voltage at two ends of the voltage stabilizing module 20 is stabilized within a fixed range, and the voltage at two ends of the voltage stabilizing module 20 is within the range, which represents that the USB interface 30 is connected to and supplies power to the host device; if the monitoring module 40 monitors that the voltage value of the voltage stabilizing module 20 is within the fixed range, the monitoring signal is output to the delay module 50, and the delay module 50 delays to notify the USB interface 30, so that the USB interface 30 and the host device perform USB communication while supplying power, thereby improving the utilization efficiency of the USB interface 30.
Specifically, as shown in fig. 2, the voltage regulator module 20 includes a diode D6 and a resistor R63, the power output terminal of the power supply module 10 is connected to the positive terminal of the diode D6 and the first terminal of the resistor R63, and the negative terminal of the diode D6 and the second terminal of the resistor R63 are connected to the power input terminal of the USB interface 30.
Specifically, as shown in fig. 2, the detection module includes resistors R121, R64, R119, R118, and R102, and an operational amplifier U33a, a first terminal of the resistor R121 is connected to a first terminal of the resistor R63, a second terminal of the resistor R121 is connected to an inverting input terminal of the operational amplifier U33a and a first terminal of the resistor R119, a second terminal of the resistor R119 and a GND terminal of the operational amplifier U33a are grounded, a first terminal of the resistor R64 is connected to a second terminal of the resistor R63, a second terminal of the resistor R64 is connected to a common input terminal of the operational amplifier U33a and a first terminal of the resistor R102, a first terminal of the resistor R118 and a VCC power supply input of the operational amplifier U33a are connected, and an output terminal of the operational amplifier U33a, a second terminal of the resistor R118 and a second terminal of the resistor R102 are connected to the delay module.
Specifically, the delay module 50 is an RC circuit. The RC circuit is called as a resistance-capacitance circuit, and the primary RC circuit consists of a resistor and a capacitor. The RC circuit is widely applied to analog circuits and pulse digital circuits, and if the RC parallel circuit is connected in series in the circuit, the RC parallel circuit has the function of attenuating low-frequency signals, and if the RC parallel circuit is connected in parallel in the circuit, the RC parallel circuit has the function of attenuating high-frequency signals, namely the function of filtering.
Specifically, as shown in fig. 2, the delay module 50 includes a resistor R120 and a capacitor C49, a first end of the resistor R120 is connected to the output terminal of the operational amplifier U33a, a second end of the resistor R120 is connected to the first end of the capacitor C49 and the communication terminal of the USB interface 30, and a second end of the capacitor C49 is grounded. Specifically referring to fig. 2, the delay module may pull down the USB _ SEL terminal pin signal of the USB interface 30 after charging the master device for tens of milliseconds, and notify the master device that the slave device has been connected, so that the USB communication may be performed while charging.
In this embodiment, the control circuit for the USB interface 30 further includes a filtering module, the filtering module is connected to the voltage stabilizing module 20 and the USB interface 30, and the filtering module is configured to filter out ripples in the rectified output voltage. As shown in fig. 2, the filtering module includes a capacitor C337 and a capacitor C111, a first terminal of the capacitor C337 and the capacitor C111 is connected to the second terminal of the resistor R63, and a second terminal of the capacitor C337 and the capacitor C111 is connected to ground.
The USB interface control circuit provided by the invention can simultaneously realize the charging of the main equipment and the communication of the USB interface 30 with the main equipment based on the single USB interface 30, has a simple circuit structure, does not need to add an additional interface, and improves the communication and charging efficiency of the main equipment and the slave equipment while ensuring the cost.
The invention also provides the slave device, which comprises the USB interface control circuit, and the slave device can perform USB communication while supplying power to the master device by applying the USB interface control circuit in the slave device, so that the use efficiency is improved.
The slave device provided by the invention can simultaneously realize the charging of the master device and the USB communication with the master device based on the single USB interface 30, has a simple circuit structure, does not need to add an additional interface, and improves the communication and charging efficiency of the master device and the slave device while ensuring the cost.
The technical contents of the present invention are further illustrated by the examples only for the convenience of the reader, but the embodiments of the present invention are not limited thereto, and any technical extension or re-creation based on the present invention is protected by the present invention. The protection scope of the invention is subject to the claims.

Claims (8)

1. A USB interface control circuit is characterized by comprising a USB interface, a power supply module, a voltage stabilizing module, a monitoring module and a time delay module, wherein the power output end of the power supply module is connected with the voltage stabilizing module;
the power supply module is used for outputting electric energy to the USB interface through the voltage stabilizing module when the USB interface is connected to the main equipment;
the voltage stabilizing module is used for stabilizing the voltage at two ends of the voltage stabilizing module within a fixed range when the electric energy output passes through the voltage stabilizing module;
the monitoring module is used for monitoring the voltages at the two ends of the voltage stabilizing module and outputting a monitoring signal to the delay module;
the delay module is used for outputting the monitoring signal to a communication end of the USB interface in a delayed mode and informing the master device that the slave device is connected so that the master device can communicate with the USB interface control circuit through the USB interface.
2. The USB interface control circuit of claim 1, wherein the voltage regulator module comprises a diode D6 and a resistor R63, the power output terminal of the power supply module is connected to the anode of the diode D6 and the first terminal of the resistor R63, and the cathode of the diode D6 and the second terminal of the resistor R63 are connected to the power input terminal of the USB interface.
3. The USB interface control circuit of claim 2, wherein the detection module comprises resistors R121, R64, R119, R118 and R102, and an operational amplifier U33a, a first end of the resistor R121 is connected to a first end of the resistor R63, a second end of the resistor R121 is connected to an inverting input terminal of the operational amplifier U33a and a first end of the resistor R119, a second end of the resistor R119 and a GND terminal of the operational amplifier U33a are grounded, a first end of the resistor R64 is connected to a second end of the resistor R63, a second end of the resistor R64 is connected to a non-inverting input terminal of the operational amplifier U33a and a first end of the resistor R102, a first end of the resistor R118 and a VCC terminal of the operational amplifier U33a are connected to a power input, and an output terminal of the operational amplifier U33a, a second end of the resistor R118 and a second end of the resistor R102 are connected to the delay module.
4. The USB interface control circuit of claim 3, wherein the delay module is an RC circuit.
5. The USB interface control circuit of claim 4, wherein the delay module comprises a resistor R120 and a capacitor C49, a first terminal of the resistor R120 is connected to the output terminal of the operational amplifier U33a, a second terminal of the resistor R120 is connected to the first terminal of the capacitor C49 and the communication terminal of the USB interface, and a second terminal of the capacitor C49 is connected to ground.
6. The USB interface control circuit of claim 2, further comprising a filter module, wherein the filter module is connected to the voltage regulator module and the USB interface.
7. The USB interface control circuit of claim 6, wherein the filtering module comprises a capacitor C337 and a capacitor C111, first ends of the capacitor C337 and the capacitor C111 are connected to the second end of the resistor R63, and second ends of the capacitor C337 and the capacitor C111 are connected to ground.
8. A slave device comprising a USB interface control circuit according to any one of claims 1 to 7.
CN201911390602.1A 2019-12-30 2019-12-30 USB interface control circuit and slave device Pending CN111190474A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911390602.1A CN111190474A (en) 2019-12-30 2019-12-30 USB interface control circuit and slave device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911390602.1A CN111190474A (en) 2019-12-30 2019-12-30 USB interface control circuit and slave device

Publications (1)

Publication Number Publication Date
CN111190474A true CN111190474A (en) 2020-05-22

Family

ID=70707903

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911390602.1A Pending CN111190474A (en) 2019-12-30 2019-12-30 USB interface control circuit and slave device

Country Status (1)

Country Link
CN (1) CN111190474A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104239240A (en) * 2013-06-11 2014-12-24 鸿富锦精密工业(深圳)有限公司 Electronic device with universal serial bus (USB) interface with integration function
CN106201957A (en) * 2016-06-27 2016-12-07 深圳市金立通信设备有限公司 A kind of method identifying storage device and terminal
US20190138281A1 (en) * 2017-11-08 2019-05-09 EPtronics, Inc. Multiple interface led driver programmer

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104239240A (en) * 2013-06-11 2014-12-24 鸿富锦精密工业(深圳)有限公司 Electronic device with universal serial bus (USB) interface with integration function
CN106201957A (en) * 2016-06-27 2016-12-07 深圳市金立通信设备有限公司 A kind of method identifying storage device and terminal
US20190138281A1 (en) * 2017-11-08 2019-05-09 EPtronics, Inc. Multiple interface led driver programmer

Similar Documents

Publication Publication Date Title
US20100064148A1 (en) Universal USB power supply
US20080272741A1 (en) Systems and methods for detecting power sources
US9312576B2 (en) Portable electronic devices capable of obtaining charging current value of charger and charging method thereof
US9252615B2 (en) Automatic mobile device detector
WO2018018916A1 (en) Charging system, terminal, power adapter and charging line
CN113514757A (en) Test equipment
US9673641B2 (en) Voltage detecting device
CN210269975U (en) Power failure detection circuit, chip and electronic equipment
CN208923859U (en) Fast charge circuit and electronic cigarette
CN111190474A (en) USB interface control circuit and slave device
CN109394169B (en) Medical Devices with hysteresis module
CN108631377B (en) Power-on control circuit and mobile power supply device using same
US9793665B2 (en) Bar juice electronic device connection system
CN209805433U (en) Charging circuit and device
CN106549272A (en) A kind of automotive connector and its short-circuit detecting device
CN208849505U (en) Medical Devices with hysteresis module
CN220234228U (en) Vehicle-mounted high-power USB data charging module
CN214954587U (en) Wireless remote monitoring device based on DTU
CN210006036U (en) Main control board circuit of multimedia equipment integrating OPS computer drive and display drive
CN210297888U (en) Electronic equipment charging circuit and television
CN216645509U (en) Liquid level detection circuit and liquid level detection system
CN220421457U (en) Vehicle-mounted high-power charging module supporting USB data and video DP data
CN220527887U (en) Wide voltage input power supply
CN210155657U (en) Serial port power supply circuit and electronic equipment
CN216795255U (en) Earphone charging noise reduction circuit and charging earphone

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200522