A circuit with USB OTG intelligent identification and voltage / current protection functions
By designing a USB OTG circuit that includes a power supply/power receiving control module and a protection module, the problems of complexity of existing equipment and lack of protection functions are solved, and the stability of the circuit and cost reduction are achieved.
Patent Information
- Application Number
- CN202110996451.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-27
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-08-27
AI Technical Summary
Existing USB OTG functional devices require the use of complex chips to switch states, lack current/voltage protection functions, are easily damaged, and are costly.
A circuit including a USB interface, power supply/power receiving control module, power supply module, power receiving module, overvoltage/undervoltage protection module and overcurrent/current limiting protection module is designed. External devices are identified through the power supply/power receiving control module. signal to realize power supply/power receiving state switching, and provide voltage and current protection through overvoltage/undervoltage protection module and overcurrent/current limiting protection module.
It realizes the power supply/receiving state switching of the circuit, provides current/voltage protection, and improves the stability and cost-effectiveness of the circuit.
Smart Images

Figure CN113824107B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, in particular to a circuit with USB OTG intelligent identification and voltage / current protection functions. Background Art
[0002] USB (Universal Serial Bus) is a universal interface for data exchange, which is now widely used in various communication products. OTG (On The Go Technology) is a technology introduced in USB2.0, which is mainly used for data exchange between various devices or mobile devices.
[0003] In the prior art, the switching of power supply and power receiving of the circuit is realized by the OTG function of the USB interface. When the circuit with the OTG function detects that the OTG ID connected to the USB ID is at a low level, it indicates that the connected peripheral device is a powered device, and the circuit supplies power to the peripheral device through the USB interface; and when the circuit with the OTG function detects that the OTG ID connected to the USB ID is at a high level, it indicates that the connected peripheral device is a power supply device, and the external device supplies power to the circuit through the USB interface.
[0004] At present, general USB OTG function devices need to use special chips to switch states. For example, the commonly used PHILIPS ISP1362 chip is used to implement the USB OTG function. The circuit is complex and does not have current / voltage protection function. The circuit is easily damaged and the cost is high. Summary of the invention
[0005] In order to solve the above problems, an embodiment of the present invention proposes a circuit with USB OTG intelligent identification and voltage / current protection functions, which can realize the switching of the power supply / power receiving state of the circuit, has a simple circuit structure, and has current / voltage protection functions.
[0006] An embodiment of the present invention provides a circuit with USB OTG intelligent identification and voltage / current protection functions, the circuit comprising: a USB interface, a power supply / power receiving control module, a power supply module, a power receiving module, an overvoltage / undervoltage protection module and an overcurrent / current limiting protection module;
[0007] The USB interface is used to connect external devices;
[0008] The USB ID end of the USB interface is connected to the input end of the power supply / power receiving control module, and the output end of the power supply / power receiving control module is connected to the control end of the power supply module;
[0009] The input end of the overcurrent / current limiting protection module is used to connect to the first power supply, the output end of the overcurrent / current limiting protection module is connected to the input end of the power supply module, and the output end of the power supply module is connected to the VBUS end of the USB interface;
[0010] The input end of the power receiving module is connected to the VBUS end of the USB interface, the output end of the power receiving module is connected to the input end of the overvoltage / undervoltage protection module, and the output end of the overvoltage / undervoltage protection module is used to connect a load;
[0011] The power supply / power receiving control module is used to generate and output a power supply control signal to the power supply module according to the level signal of the USB ID terminal;
[0012] The overcurrent / current limiting module is used to reduce the transient current and steady-state current of the power supply signal transmitted by the first power supply to the power supply module;
[0013] The power supply module is used to control the conduction or cutoff of the power supply signal according to the power supply control signal;
[0014] The power receiving module is used to receive the voltage signal of the VBUS end of the USB interface, generate and output the power receiving signal to the overvoltage / undervoltage protection module;
[0015] The overvoltage / undervoltage protection module is used to determine whether the voltage of the power receiving signal is within a preset power receiving voltage range, and to control whether to supply power to the load according to the determination result.
[0016] As a preferred embodiment, the power supply / power receiving control module includes a first resistor, a second resistor, a third resistor, a first switch unit and a second switch unit;
[0017] The first end of the first resistor is used to connect to the second power supply, and the first end of the first resistor is also connected to the first end of the second resistor; the second end of the first resistor is connected to the control end of the first switch unit, and the second end of the first resistor is also connected to the input end of the power supply / power receiving control module;
[0018] The input end of the first switch unit is connected to the second end of the second resistor and the control end of the second switch unit respectively, and the output end of the first switch unit is grounded;
[0019] The first end of the third resistor is used to connect to a third power supply, the second end of the third resistor is respectively connected to the input end of the second switch unit and the output end of the power supply / power receiving control module, and the output end of the second switch unit is grounded.
[0020] As a preferred embodiment, the power supply module includes a third switch unit;
[0021] The control end of the third switch unit is connected to the control end of the power supply module, the input end of the third switch unit is connected to the input end of the power supply module, and the output end of the third switch unit is connected to the output end of the power supply module.
[0022] As a preferred embodiment, the power receiving module includes a diode unit;
[0023] The input end of the diode unit is connected to the input end of the power receiving module, and the output end of the diode unit is connected to the output end of the power receiving module.
[0024] As a preferred embodiment, the first switch unit includes a first switch tube;
[0025] The control end of the first switch tube is connected to the control end of the first switch unit, the input end of the first switch tube is connected to the input end of the first switch unit, and the output end of the first switch tube is connected to the output end of the first switch unit;
[0026] The second switch unit includes a second switch tube;
[0027] The control end of the second switch tube is connected to the control end of the second switch unit, the input end of the second switch tube is connected to the input end of the second switch unit, and the output end of the second switch tube is connected to the output end of the second switch unit.
[0028] As a preferred embodiment, the third switch unit includes a third switch tube;
[0029] The control end of the third switch tube is connected to the control end of the third switch unit, the input end of the third switch tube is connected to the input end of the third switch unit, and the output end of the third switch tube is connected to the output end of the third switch unit.
[0030] As a preferred embodiment, the diode unit includes at least one diode, the anode of the diode is connected to the input end of the diode unit, and the cathode of the diode is connected to the output end of the diode unit.
[0031] As a preferred embodiment, the overcurrent / current limiting protection module includes a fourth resistor, a fifth resistor, a reference voltage source and a fourth switch unit;
[0032] The first end of the fourth resistor is respectively connected to the input end of the overcurrent / current limiting protection module and the input end of the fourth switch unit, and the second end of the fourth resistor is respectively connected to the control end of the fourth switch unit and the positive electrode of the reference voltage source;
[0033] The output end of the fourth switch unit is connected to the reference end of the reference voltage source and the first end of the fifth resistor respectively;
[0034] The negative electrode of the reference voltage source is connected to the second end of the fifth resistor and the output end of the overcurrent / current limiting protection module respectively.
[0035] Preferably, the overvoltage / undervoltage protection module includes a sixth resistor, a seventh resistor, an eighth resistor, a first comparator, a second comparator, an AND gate, a fifth switch unit and a sixth switch unit;
[0036] The inverting input terminal of the first comparator is respectively connected to the input terminal of the overvoltage / undervoltage protection module and the non-inverting input terminal of the second comparator, the non-inverting input terminal of the first comparator is used to connect to a fourth power supply, and the output terminal of the first comparator is connected to the first input terminal of the AND gate;
[0037] The inverting input terminal of the second comparator is used to connect to a fifth power supply, and the output terminal of the second comparator is connected to the second input terminal of the AND gate;
[0038] The output end of the AND gate is connected to the control end of the fifth switch unit through the sixth resistor, the output end of the fifth switch unit is grounded, and the input end of the fifth switch unit is connected to the control end of the sixth switch unit through the seventh resistor;
[0039] The input end of the sixth switch unit is connected to the input end of the overvoltage / undervoltage protection module, the output end of the sixth switch unit is connected to the output end of the overvoltage / undervoltage protection module, and the output end of the sixth switch unit is also connected to the control end of the sixth switch unit through the eighth resistor.
[0040] Preferably, the fourth switch unit comprises a fourth switch tube;
[0041] The control end of the fourth switch tube is connected to the control end of the fourth switch unit, the input end of the fourth switch tube is connected to the input end of the fourth switch unit, and the output end of the fourth switch tube is connected to the output end of the fourth switch unit.
[0042] As a preferred embodiment, the fifth switch unit includes a fifth switch tube;
[0043] The control end of the fifth switch tube is connected to the control end of the fifth switch unit, the input end of the fifth switch tube is connected to the input end of the fifth switch unit, and the output end of the fifth switch tube is connected to the output end of the fifth switch unit;
[0044] The sixth switch unit includes a sixth switch tube;
[0045] The control end of the sixth switch tube is connected to the control end of the sixth switch unit, the input end of the sixth switch tube is connected to the input end of the sixth switch unit, and the output end of the sixth switch tube is connected to the output end of the sixth switch unit.
[0046] The present invention provides a circuit with USB OTG intelligent identification and voltage / current protection functions, the circuit comprising: a USB interface, a power supply / power receiving control module, a power supply module and a power receiving module; the power supply / power receiving control module identifies the signal of the external device, and the power supply module and the power receiving module realize the switching of the power supply and power receiving state of the circuit; the overvoltage / undervoltage protection module performs voltage detection on the power receiving signal of the power receiving module, and only starts the power receiving after detecting that the power supply voltage of the external power supply reaches the system requirement, so as to prevent the external power supply voltage from being too low to cause abnormal load operation, and to prevent the external power supply voltage from being too high to cause circuit damage. The overcurrent / current limiting protection module is used to prevent the external load from being abnormal, causing excessive transient current and steady-state current to cause circuit damage or abnormal operation; the circuit structure is simple, and the power supply / power receiving switching can be realized. The circuit is protected by the overvoltage / undervoltage protection module and the overcurrent / current limiting protection module, thereby improving the stability of the circuit. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 This is a schematic diagram of a circuit with USB OTG intelligent identification and voltage / current protection functions provided by the present invention;
[0048] Figure 2 This is a schematic diagram of a circuit with USB OTG intelligent identification and voltage / current protection functions provided by another embodiment of the present invention. DETAILED DESCRIPTION
[0049] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0050] The embodiment of the present invention provides a circuit with USB OTG intelligent identification and voltage / current protection functions, see Figure 1 , is a structural schematic diagram of a circuit with USB OTG intelligent identification and voltage / current protection functions provided by an embodiment of the present invention.
[0051] The circuit comprises: a USB interface, a power supply / power receiving control module, a power supply module, a power receiving module, an overvoltage / undervoltage protection module and an overcurrent / current limiting protection module;
[0052] The USB interface is used to connect external devices;
[0053] The USB ID end of the USB interface is connected to the input end of the power supply / power receiving control module, and the output end of the power supply / power receiving control module is connected to the control end of the power supply module;
[0054] The input end of the overcurrent / current limiting protection module is used to connect to the first power supply, the output end of the overcurrent / current limiting protection module is connected to the input end of the power supply module, and the output end of the power supply module is connected to the VBUS end of the USB interface;
[0055] The input end of the power receiving module is connected to the VBUS end of the USB interface, the output end of the power receiving module is connected to the input end of the overvoltage / undervoltage protection module, and the output end of the overvoltage / undervoltage protection module is used to connect a load.
[0056] In the specific implementation of this embodiment, the USB interface is connected to the USB' interface of the external device. Specifically, the USB ID end of the USB interface is connected to the USB ID' end of the USB' interface of the external device to identify the USB ID' signal of the external device.
[0057] The USB ID end of the USB interface is connected to the input end of the power supply / power receiving control module, and the output end of the power supply / power receiving control module is connected to the control end of the power supply module;
[0058] The input end of the overcurrent / current limiting protection module is used to connect to the first power supply, which is the power supply device of the circuit, and can be a battery or a power conversion device; the output end of the overcurrent / current limiting protection module is connected to the input end of the power supply module, and the output end of the power supply module is connected to the VBUS end of the USB interface;
[0059] The input end of the power receiving module is connected to the VBUS end of the USB interface, the output end of the power receiving module is connected to the input end of the overvoltage / undervoltage protection module, the output end of the overvoltage / undervoltage protection module is used to connect the load, and the external device supplies power to the load of the circuit through the VBUS end of the USB interface, the power receiving module and the overvoltage / undervoltage protection module.
[0060] The specific working principle of the present invention is:
[0061] The power supply / power receiving control module is used to identify the level signal of the USB ID terminal, and generate and output the power supply control signal to the power supply module according to the level signal of the USB ID terminal;
[0062] The power supply module is used to control the circuit conduction or cutoff of the power supply module according to the power supply control signal;
[0063] The overcurrent / current limiting module is used to limit the current intensity of the signal passing through the power supply module;
[0064] The first power supply limits the intensity of the power supply current through the overcurrent / current limiting module, and supplies power to the external load through the power supply module and the VBUS end of the USB interface;
[0065] The power receiving module is used to receive the power supply voltage of the VBUS end of the USB interface and output a power receiving signal to the overvoltage / undervoltage protection module;
[0066] The overvoltage / undervoltage protection module is used to determine whether the voltage of the power receiving signal is within a preset power receiving voltage range, and turn on / off the overvoltage / undervoltage protection module according to the determination result;
[0067] When the voltage of the power receiving signal is within the preset power receiving voltage range, the overvoltage / undervoltage protection module is turned on, and the external power supply voltage supplies power to the load through the VBUS end of the USB interface, the power receiving module, and the overvoltage / undervoltage protection module;
[0068] When the voltage of the power receiving signal is not within the preset power receiving voltage range, the overvoltage / undervoltage protection module is disconnected, and the external power supply cannot supply power to the load;
[0069] The overvoltage / undervoltage protection module can prevent the external power supply from damaging the system or the voltage from being too low, causing the system to work abnormally; before the external power supply module is switched on and off, the overcurrent / current limiting protection module is used to prevent external load abnormalities, which may cause excessive transient current and steady-state current and cause circuit damage.
[0070] The USB ID end of the USB interface receives the level signal of the USB ID' of the external device. When the external device is a host, the USB ID' end of the external device is left floating. At this time, the USB ID end of the circuit is connected to a high level by default. The input end of the power supply / power receiving control module detects a high level signal, and the output end outputs a high level. At this time, the power supply module control end receives a high level and is not turned on, and the power receiving module is turned on. The external device supplies power to the load of the circuit through the VBUS end of the USB interface, the power receiving module and the overvoltage / undervoltage protection module;
[0071] The USB ID end of the USB interface receives the level signal of the USB ID' of the external device. When the external device is a device, the USB ID' end of the external device is grounded. At this time, the USB ID end of the circuit is grounded, and the input end of the power supply / power receiving control module detects a low level signal, and the output end outputs a low level. At this time, the power supply module control end receives the low level, the power supply module is turned on, and the power receiving module is turned off. The power supply of the circuit supplies power to the external device through the overcurrent / current limiting protection module, the power receiving module, the VBUS end of the USB interface, and the external device.
[0072] The present invention provides a circuit with USB OTG intelligent identification and voltage / current protection functions, the circuit comprising: a USB interface, a power supply / power receiving control module, a power supply module and a power receiving module; the power supply / power receiving control module identifies the signal of an external device, and the power supply module and the power receiving module realize the switching of the power supply and power receiving state of the circuit, the circuit structure is simple, and the cost is low.
[0073] In another embodiment provided by the present invention, the power supply / power receiving control module includes a first resistor, a second resistor, a third resistor, a first switch unit and a second switch unit;
[0074] The first end of the first resistor is used to connect to the second power supply, and the first end of the first resistor is also connected to the first end of the second resistor; the second end of the first resistor is connected to the control end of the first switch unit, and the second end of the first resistor is also connected to the input end of the power supply / power receiving control module;
[0075] The input end of the first switch unit is connected to the second end of the second resistor and the control end of the second switch tube respectively, and the output end of the first switch unit is grounded;
[0076] The first end of the third resistor is used to connect to a third power supply, the second end of the third resistor is respectively connected to the input end of the second switch unit and the output end of the power supply / power receiving control module, and the output end of the second switch unit is grounded.
[0077] When this embodiment is implemented, see Figure 2 , is a schematic diagram of a circuit with USB OTG intelligent identification and voltage / current protection functions provided by another embodiment of the present invention;
[0078] The power supply / power receiving control module includes a first resistor R1, a second resistor R2, a third resistor R3, a first switch unit Q1 and a second switch unit Q2;
[0079] It should be noted that, in this embodiment, the first switch unit Q1 is a PMOS tube, but in other embodiments, the first switch unit Q1 may be a device with a switching function, including at least one transistor, at least one field effect tube or other devices with a switching function, which is not specifically limited in the embodiment of the present invention.
[0080] It should be noted that, in this embodiment, the second switch unit Q2 is a PMOS tube, but in other embodiments, the second switch unit Q2 may be a device with a switching function, including at least one transistor, at least one field effect tube or other devices with a switching function, which is not specifically limited in the embodiment of the present invention.
[0081] The first end of the first resistor R1 is used to connect to the second power supply VCC2, and the first end of the first resistor R1 is also connected to the first end of the second resistor R2; the second end of the first resistor R1 is connected to the control end of the first switch unit Q1, and the second end of the first resistor R1 is also connected to the input end of the power supply / power receiving control module;
[0082] An input end of the first switch unit Q1 is connected to the second end of the second resistor R2 and a control end of the second switch unit Q2 respectively, and an output end of the first switch unit Q1 is grounded;
[0083] The first end of the third resistor R3 is used to connect to the third power supply VCC3, the second end of the third resistor R3 is respectively connected to the input end of the second switch unit Q2 and the output end of the power supply / receiving control module, and the output end of the second switch unit Q2 is grounded.
[0084] The specific working principle of the power supply / power receiving control module is:
[0085] When a high level is input to the input end of the power supply / power receiving control module, the control end of the first switch unit is at a high level, the first switch unit meets the conduction condition, and the first switch unit is turned on. At this time, the control end of the second switch unit is at a low level, and the second switch unit does not meet the conduction condition. Therefore, the power supply / power receiving control end outputs a high level;
[0086] When a low level is input to the input end of the power supply / power receiving control module, the control end of the first switch unit is at a low level, the first switch unit does not meet the conduction condition, the first switch unit is turned on, and the control end of the second switch unit is at a high level. At this time, the second switch unit meets the conduction condition, so the power supply / power receiving control end outputs a low level;
[0087] The power supply / power receiving control module converts the high and low level signals at the input end into output signals to control the power supply module or the power receiving module to achieve power supply / power receiving control.
[0088] In another embodiment provided by the present invention, the power supply module includes a third switch unit;
[0089] The control end of the third switch unit is connected to the control end of the power supply module, the input end of the third switch unit is connected to the input end of the power supply module, and the output end of the third switch unit is connected to the output end of the power supply module.
[0090] When this embodiment is implemented, see Figure 2 As shown, the power supply module includes a third switch unit Q3;
[0091] It should be noted that, in this embodiment, the third switch unit Q3 is a PMOS tube, but in other embodiments, the third switch unit Q3 may be a device with a switching function, including at least one transistor, at least one field effect tube or other devices with a switching function, which is not specifically limited in the embodiment of the present invention.
[0092] The control end of the third switch unit Q3 is connected to the control end of the power supply module, the input end of the third switch unit Q3 is connected to the input end of the power supply module, and the output end of the third switch unit Q3 is connected to the output end of the power supply module;
[0093] The working principle of the power supply module is as follows:
[0094] When a high level is input to the control end of the power supply module, the control end of the third switch unit is at a high level, the third switch unit does not meet the conduction condition, the third switch unit is not turned on, and the power supply module is not turned on;
[0095] When a low level is input to the control end of the power supply module, the control end of the third switch unit is at a low level, the third switch unit meets the conduction condition, the third switch unit is turned on, the power supply module is turned on, and the power supply of the circuit supplies power to the external device through the power supply module.
[0096] The control end of the power supply module controls the on or off state of the power supply module, and the circuit supplies power to the external device through the power supply module.
[0097] In another embodiment provided by the invention, the power receiving module includes a diode unit;
[0098] The input end of the diode unit is connected to the input end of the power receiving module, and the output end of the diode unit is connected to the output end of the power receiving module.
[0099] When this embodiment is implemented, see Figure 2 , the power receiving module includes a diode unit D1;
[0100] It should be noted that, in this embodiment, the diode unit D1 is a diode, but in other embodiments, the diode unit D1 may be a device with a unidirectional conduction function, including at least one diode or other devices with a unidirectional conduction function, which is not specifically limited in the embodiment of the present invention.
[0101] The input end of the diode unit D1 is connected to the input end of the power receiving module, and the output end of the diode unit D1 is connected to the output end of the power receiving module;
[0102] The working principle of the power receiving module is as follows:
[0103] When the input terminal level of the power receiving module is higher than the output terminal level, the input terminal level of the diode unit is higher than the output terminal level, the diode unit meets the conduction condition, the power receiving module is turned on, and the external device supplies power to the load of the circuit through the power receiving module;
[0104] When the input terminal level of the power receiving module is lower than the output terminal level, the input terminal level of the diode unit is lower than the output terminal level, the diode unit does not meet the conduction condition, and the power receiving module is cut off.
[0105] In another embodiment provided by the present invention, the first switch unit includes a first switch tube;
[0106] The control end of the first switch tube is connected to the control end of the first switch unit, the input end of the first switch tube is connected to the input end of the first switch unit, and the output end of the first switch tube is connected to the output end of the first switch unit.
[0107] In the specific implementation of this embodiment, the first switch unit may be a first switch tube, the control end of the first switch tube is connected to the control end of the first switch unit, the input end of the first switch tube is connected to the input end of the first switch unit, and the output end of the first switch tube is connected to the output end of the first switch unit;
[0108] It should be noted that, as a preferred embodiment, the first switch tube may be a PMOS tube, the gate of the PMOS tube is connected to the control end of the first switch unit, the source of the PMOS tube is connected to the input end of the first switch unit, and the drain of the PMOS tube is connected to the output end of the first switch unit;
[0109] It should be noted that, as another preferred embodiment, the first switch tube may be an NMOS tube, the gate of the NMOS tube is connected to the control end of the first switch unit, the drain of the NMOS tube is connected to the input end of the first switch unit, and the source of the NMOS tube is connected to the output end of the first switch unit;
[0110] It should be noted that, as another preferred embodiment, the first switch tube can be a triode, the base of the triode is connected to the control end of the first switch unit, the collector of the triode is connected to the input end of the first switch unit, and the emitter of the triode is connected to the output end of the first switch unit.
[0111] The switch function of the first switch unit is realized by the switch tube, the circuit structure is simple and the working performance is stable.
[0112] In another embodiment provided by the present invention, the second switch unit includes a second switch tube;
[0113] The control end of the second switch tube is connected to the control end of the second switch unit, the input end of the second switch tube is connected to the input end of the second switch unit, and the output end of the second switch tube is connected to the output end of the second switch unit.
[0114] In the specific implementation of this embodiment, the second switch unit may be a second switch tube, the control end of the second switch tube is connected to the control end of the second switch unit, the input end of the second switch tube is connected to the input end of the second switch unit, and the output end of the second switch tube is connected to the output end of the second switch unit;
[0115] It should be noted that, as a preferred embodiment, the second switch tube may be a PMOS tube, the gate of the PMOS tube is connected to the control end of the second switch unit, the source of the PMOS tube is connected to the input end of the second switch unit, and the drain of the PMOS tube is connected to the output end of the second switch unit;
[0116] It should be noted that, as another preferred embodiment, the second switch tube may be an NMOS tube, the gate of the NMOS tube is connected to the control end of the second switch unit, the drain of the NMOS tube is connected to the input end of the second switch unit, and the source of the NMOS tube is connected to the output end of the second switch unit;
[0117] It should be noted that, as another preferred embodiment, the second switch tube can be a triode, the base of the triode is connected to the control end of the second switch unit, the collector of the triode is connected to the input end of the second switch unit, and the emitter of the triode is connected to the output end of the second switch unit.
[0118] The switching function of the second switch unit is realized by the switch tube, the circuit structure is simple and the working performance is stable.
[0119] In another embodiment provided by the present invention, the third switch unit includes a third switch tube;
[0120] The control end of the third switch tube is connected to the control end of the third switch unit, the input end of the third switch tube is connected to the input end of the third switch unit, and the output end of the third switch tube is connected to the output end of the third switch unit.
[0121] In the specific implementation of this embodiment, the third switch unit may be a third switch tube, the control end of the third switch tube is connected to the control end of the third switch unit, the input end of the third switch tube is connected to the input end of the third switch unit, and the output end of the third switch tube is connected to the output end of the third switch unit;
[0122] It should be noted that, as a preferred embodiment, the third switch tube may be a PMOS tube, the gate of the PMOS tube is connected to the control end of the third switch unit, the source of the PMOS tube is connected to the input end of the third switch unit, and the drain of the PMOS tube is connected to the output end of the third switch unit;
[0123] It should be noted that, as another preferred embodiment, the third switch tube may be an NMOS tube, the gate of the NMOS tube is connected to the control end of the third switch unit, the drain of the NMOS tube is connected to the input end of the third switch unit, and the source of the NMOS tube is connected to the output end of the third switch unit;
[0124] It should be noted that, as another preferred embodiment, the third switch tube can be a triode, the base of the triode is connected to the control end of the third switch unit, the collector of the triode is connected to the input end of the third switch unit, and the emitter of the triode is connected to the output end of the third switch unit.
[0125] The switching function of the third switch unit is realized by the switch tube, the circuit structure is simple and the working performance is stable.
[0126] In another embodiment provided by the present invention, the diode unit includes at least one diode, an anode of the diode is connected to an input end of the diode unit, and a cathode of the diode is connected to an output end of the diode unit.
[0127] In a specific implementation of this embodiment, the diode unit includes at least one diode, the anode of the diode is connected to the input end of the diode unit, and the cathode of the diode is connected to the output end of the diode unit.
[0128] It should be noted that the diode unit may also be a device with unidirectional conduction composed of multiple diodes or other devices with unidirectional conduction function, which is not specifically limited in the embodiment of the present invention.
[0129] The function of the power receiving module is realized by a diode, and the circuit structure is simple and the performance is stable.
[0130] In another embodiment provided by the present invention, the overcurrent / current limiting protection module includes a fourth resistor, a fifth resistor, a reference voltage source and a fourth switch unit;
[0131] The first end of the fourth resistor is respectively connected to the input end of the overcurrent / current limiting protection module and the input end of the fourth switch unit, and the second end of the fourth resistor is respectively connected to the control end of the fourth switch unit and the positive electrode of the reference voltage source;
[0132] The output end of the fourth switch unit is connected to the reference end of the reference voltage source and the first end of the fifth resistor respectively;
[0133] The negative electrode of the reference voltage source is connected to the second end of the fifth resistor and the output end of the overcurrent / current limiting protection module respectively.
[0134] When this embodiment is implemented, see Figure 2 As shown, the overcurrent / current limiting protection module includes a fourth resistor R4, a fifth resistor R5, a reference voltage source U and a fourth switch unit Q4;
[0135] The reference voltage source U may be a TL431 reference voltage source component or other reference voltage source components;
[0136] It should be noted that, in this embodiment, the fourth switch unit Q4 is a transistor, but in other embodiments, the fourth switch unit Q4 may be a device with a switching function, including at least one transistor, at least one field effect transistor or other devices with a switching function, which is not specifically limited in the embodiment of the present invention.
[0137] The first end of the fourth resistor R4 is respectively connected to the input end of the overcurrent / current limiting protection module and the input end of the fourth switch unit Q4, and the second end of the fourth resistor R4 is respectively connected to the control end of the fourth switch unit Q4 and the positive electrode of the reference voltage source U;
[0138] The output end of the fourth switch unit Q4 is connected to the reference end of the reference voltage source U and the first end of the fifth resistor R5 respectively;
[0139] The negative electrode of the reference voltage source U is connected to the second end of the fifth resistor R5 and the output end of the overcurrent / current limiting protection module respectively;
[0140] A low-cost overcurrent / current limiting protection module is built by using a reference voltage source and a transistor to prevent abnormal external loads from causing excessive transient current and steady-state current that may lead to circuit damage.
[0141] In another embodiment provided by the present invention, the overvoltage / undervoltage protection module includes a sixth resistor, a seventh resistor, an eighth resistor, a first comparator, a second comparator, an AND gate, a fifth switch unit and a sixth switch unit;
[0142] The inverting input terminal of the first comparator is respectively connected to the input terminal of the overvoltage / undervoltage protection module and the non-inverting input terminal of the second comparator, the non-inverting input terminal of the first comparator is used to connect to a fourth power supply, and the output terminal of the first comparator is connected to the first input terminal of the AND gate;
[0143] The inverting input terminal of the second comparator is used to connect to a fifth power supply, and the output terminal of the second comparator is connected to the second input terminal of the AND gate;
[0144] The output end of the AND gate is connected to the control end of the fifth switch unit through the sixth resistor, the output end of the fifth switch unit is grounded, and the input end of the fifth switch unit is connected to the control end of the sixth switch unit through the seventh resistor;
[0145] The input end of the sixth switch unit is connected to the input end of the overvoltage / undervoltage protection module, the output end of the sixth switch unit is connected to the output end of the overvoltage / undervoltage protection module, and the output end of the sixth switch unit is also connected to the control end of the sixth switch unit through the eighth resistor.
[0146] When this embodiment is implemented, Figure 2 As shown, the overvoltage / undervoltage protection module includes a sixth resistor R6, a seventh resistor R7, an eighth resistor R8, a first comparator A1, a second comparator A2, an AND gate F, a fifth switch unit Q5 and a sixth switch unit Q6;
[0147] It should be noted that, in the drawings of the present embodiment, the fifth switch unit Q5 and the sixth switch unit Q6 are both PMOS tubes, but in other embodiments, the fifth switch unit Q5 and the sixth switch unit Q6 may be devices with a switching function, including at least one transistor, at least one field effect tube or other devices with a switching function, which is not specifically limited in the embodiment of the present invention.
[0148] The inverting input terminal of the first comparator A1 is respectively connected to the input terminal of the overvoltage / undervoltage protection module and the non-inverting input terminal of the second comparator A2, the non-inverting input terminal of the first comparator A1 is used to connect to the fourth power supply VCC4, and the output terminal of the first comparator A1 is connected to the first input terminal of the AND gate F;
[0149] The inverting input terminal of the second comparator A2 is used to connect to the fifth power supply VCC5, and the output terminal of the second comparator A2 is connected to the second input terminal of the AND gate F;
[0150] The voltage of the fourth power supply VCC4 is the maximum voltage of the preset receiving voltage, and the voltage of the fifth power supply VCC5 is the minimum voltage of the preset receiving voltage. The receiving voltage range is set by the supply voltages of the fourth power supply VCC4 and the fifth power supply VCC5. When the supply voltage of the first power supply is not within the receiving voltage range, the overvoltage / undervoltage protection module is cut off to protect the circuit.
[0151] The output end of the AND gate F is connected to the control end of the fifth switch unit Q5 through the sixth resistor R6, the output end of the fifth switch unit Q5 is grounded, and the input end of the fifth switch unit Q5 is connected to the control end of the sixth switch unit Q6 through the seventh resistor R7;
[0152] The input end of the sixth switch unit Q6 is connected to the input end of the overvoltage / undervoltage protection module, the output end of the sixth switch unit Q6 is connected to the output end of the overvoltage / undervoltage protection module, and the output end of the sixth switch unit Q6 is also connected to the control end of the sixth switch unit Q6 through the eighth resistor R8.
[0153] The overvoltage / undervoltage protection module performs voltage detection on the power receiving signal of the power receiving module, and only starts power receiving after detecting that the power supply voltage of the external power supply reaches the system requirement, to prevent the external power supply voltage from being too low and causing abnormal load operation, and to prevent the external power supply voltage from being too high and causing circuit damage.
[0154] In another embodiment provided by the present invention, the fourth switch unit includes a fourth switch tube;
[0155] The control end of the fourth switch tube is connected to the control end of the fourth switch unit, the input end of the fourth switch tube is connected to the input end of the fourth switch unit, and the output end of the fourth switch tube is connected to the output end of the fourth switch unit.
[0156] In the specific implementation of this embodiment, the fourth switch unit may be a fourth switch tube, the control end of the fourth switch tube is connected to the control end of the fourth switch unit, the input end of the fourth switch tube is connected to the input end of the fourth switch unit, and the output end of the fourth switch tube is connected to the output end of the fourth switch unit;
[0157] It should be noted that, as a preferred embodiment, the fourth switch tube may be a PMOS tube, the gate of the PMOS tube is connected to the control end of the fourth switch unit, the source of the PMOS tube is connected to the input end of the fourth switch unit, and the drain of the PMOS tube is connected to the output end of the fourth switch unit;
[0158] It should be noted that, as another preferred embodiment, the fourth switch tube may be an NMOS tube, the gate of the NMOS tube is connected to the control end of the fourth switch unit, the drain of the NMOS tube is connected to the input end of the fourth switch unit, and the source of the NMOS tube is connected to the output end of the fourth switch unit;
[0159] It should be noted that, as another preferred embodiment, the fourth switch tube can be a triode, the base of the triode is connected to the control end of the fourth switch unit, the collector of the triode is connected to the input end of the fourth switch unit, and the emitter of the triode is connected to the output end of the fourth switch unit.
[0160] In another embodiment provided by the present invention, the fifth switch unit includes a fifth switch tube;
[0161] The control end of the fifth switch tube is connected to the control end of the fifth switch unit, the input end of the fifth switch tube is connected to the input end of the fifth switch unit, and the output end of the fifth switch tube is connected to the output end of the fifth switch unit;
[0162] The sixth switch unit includes a sixth switch tube;
[0163] The control end of the sixth switch tube is connected to the control end of the sixth switch unit, the input end of the sixth switch tube is connected to the input end of the sixth switch unit, and the output end of the sixth switch tube is connected to the output end of the sixth switch unit.
[0164] In the specific implementation of this embodiment, the fifth switch unit may be a fifth switch tube, the control end of the fifth switch tube is connected to the control end of the fifth switch unit, the input end of the fifth switch tube is connected to the input end of the fifth switch unit, and the output end of the fifth switch tube is connected to the output end of the fifth switch unit;
[0165] It should be noted that, as a preferred embodiment, the fifth switch tube may be a PMOS tube, the gate of the PMOS tube is connected to the control end of the fifth switch unit, the source of the PMOS tube is connected to the input end of the fifth switch unit, and the drain of the PMOS tube is connected to the output end of the fifth switch unit;
[0166] It should be noted that, as another preferred embodiment, the fifth switch tube may be an NMOS tube, the gate of the NMOS tube is connected to the control end of the fifth switch unit, the drain of the NMOS tube is connected to the input end of the fifth switch unit, and the source of the NMOS tube is connected to the output end of the fifth switch unit;
[0167] It should be noted that, as another preferred embodiment, the fifth switch tube can be a triode, the base of the triode is connected to the control end of the fifth switch unit, the collector of the triode is connected to the input end of the fifth switch unit, and the emitter of the triode is connected to the output end of the fifth switch unit.
[0168] The sixth switch unit may be a sixth switch tube, a control end of the sixth switch tube is connected to a control end of the sixth switch unit, an input end of the sixth switch tube is connected to an input end of the sixth switch unit, and an output end of the sixth switch tube is connected to an output end of the sixth switch unit;
[0169] It should be noted that, as a preferred embodiment, the sixth switch tube may be a PMOS tube, the gate of the PMOS tube is connected to the control end of the sixth switch unit, the source of the PMOS tube is connected to the input end of the sixth switch unit, and the drain of the PMOS tube is connected to the output end of the sixth switch unit;
[0170] It should be noted that, as another preferred embodiment, the sixth switch tube may be an NMOS tube, the gate of the NMOS tube is connected to the control end of the sixth switch unit, the drain of the NMOS tube is connected to the input end of the sixth switch unit, and the source of the NMOS tube is connected to the output end of the sixth switch unit;
[0171] It should be noted that, as another preferred embodiment, the sixth switch tube can be a triode, the base of the triode is connected to the control end of the sixth switch unit, the collector of the triode is connected to the input end of the sixth switch unit, and the emitter of the triode is connected to the output end of the sixth switch unit.
[0172] The present invention provides a circuit with USB OTG intelligent identification and voltage / current protection functions, the circuit comprising: a USB interface, a power supply / power receiving control module, a power supply module and a power receiving module; the power supply / power receiving control module identifies the signal of the external device, and the power supply module and the power receiving module realize the switching of the power supply and power receiving state of the circuit; the overvoltage / undervoltage protection module performs voltage detection on the power receiving signal of the power receiving module, and only starts the power receiving after detecting that the power supply voltage of the external power supply reaches the system requirement, so as to prevent the external power supply voltage from being too low to cause abnormal load operation, and to prevent the external power supply voltage from being too high to cause circuit damage. The overcurrent / current limiting protection module is used to prevent the external load from being abnormal, causing excessive transient current and steady-state current to cause circuit damage or abnormal operation; the circuit structure is simple, and the power supply / power receiving switching can be realized. The circuit is protected by the overvoltage / undervoltage protection module and the overcurrent / current limiting protection module, thereby improving the stability of the circuit.
[0173] It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention, and these improvements and modifications are also considered to be within the protection scope of the present invention.
Claims
1. A circuit with USB OTG intelligent identification and voltage / current protection functions, characterized in that: The circuit comprises: a USB interface, a power supply / power receiving control module, a power supply module, a power receiving module, an overvoltage / undervoltage protection module and an overcurrent / current limiting protection module; The USB interface is used to connect external devices; The USB ID end of the USB interface is connected to the input end of the power supply / power receiving control module, and the output end of the power supply / power receiving control module is connected to the control end of the power supply module; The input end of the overcurrent / current limiting protection module is used to connect to the first power supply, the output end of the overcurrent / current limiting protection module is connected to the input end of the power supply module, and the output end of the power supply module is connected to the VBUS end of the USB interface; The input end of the power receiving module is connected to the VBUS end of the USB interface, the output end of the power receiving module is connected to the input end of the overvoltage / undervoltage protection module, and the output end of the overvoltage / undervoltage protection module is used to connect a load; The power supply / power receiving control module is used to generate and output a power supply control signal to the power supply module according to the level signal of the USB ID terminal; The overcurrent / current limiting protection module is used to reduce the transient current and steady-state current of the power supply signal transmitted by the first power supply to the power supply module; The power supply module is used to control the conduction or cutoff of the power supply signal according to the power supply control signal; The power receiving module is used to receive the voltage signal of the VBUS end of the USB interface, generate and output the power receiving signal to the overvoltage / undervoltage protection module; The overvoltage / undervoltage protection module is used to determine whether the voltage of the power receiving signal is within a preset power receiving voltage range, and to control whether to supply power to the load according to the determination result.
2. The circuit with USB OTG intelligent identification and voltage / current protection function according to claim 1, characterized in that: The power supply / power receiving control module includes a first resistor, a second resistor, a third resistor, a first switch unit and a second switch unit; The first end of the first resistor is used to connect to the second power supply, and the first end of the first resistor is also connected to the first end of the second resistor; the second end of the first resistor is connected to the control end of the first switch unit, and the second end of the first resistor is also connected to the input end of the power supply / power receiving control module; The input end of the first switch unit is connected to the second end of the second resistor and the control end of the second switch unit respectively, and the output end of the first switch unit is grounded; The first end of the third resistor is used to connect to a third power supply, the second end of the third resistor is respectively connected to the input end of the second switch unit and the output end of the power supply / power receiving control module, and the output end of the second switch unit is grounded.
3. The circuit with USB OTG intelligent identification and voltage / current protection function according to claim 1, characterized in that: The power supply module includes a third switch unit; The control end of the third switch unit is connected to the control end of the power supply module, the input end of the third switch unit is connected to the input end of the power supply module, and the output end of the third switch unit is connected to the output end of the power supply module.
4. The circuit with USB OTG intelligent identification and voltage / current protection function according to claim 1, characterized in that: The power receiving module includes a diode unit; The input end of the diode unit is connected to the input end of the power receiving module, and the output end of the diode unit is connected to the output end of the power receiving module.
5. The circuit with USB OTG intelligent identification and voltage / current protection function according to claim 2, characterized in that: The first switch unit includes a first switch tube; The control end of the first switch tube is connected to the control end of the first switch unit, the input end of the first switch tube is connected to the input end of the first switch unit, and the output end of the first switch tube is connected to the output end of the first switch unit; The second switch unit includes a second switch tube; The control end of the second switch tube is connected to the control end of the second switch unit, the input end of the second switch tube is connected to the input end of the second switch unit, and the output end of the second switch tube is connected to the output end of the second switch unit.
6. The circuit with USB OTG intelligent identification and voltage / current protection function according to claim 3, characterized in that: The third switch unit includes a third switch tube; The control end of the third switch tube is connected to the control end of the third switch unit, the input end of the third switch tube is connected to the input end of the third switch unit, and the output end of the third switch tube is connected to the output end of the third switch unit.
7. The circuit with USB OTG intelligent identification and voltage / current protection function according to claim 4, characterized in that: The diode unit includes at least one diode, an anode of the diode is connected to an input end of the diode unit, and a cathode of the diode is connected to an output end of the diode unit.
8. The circuit with USB OTG intelligent identification and voltage / current protection function according to claim 1, characterized in that: The overcurrent / current limiting protection module includes a fourth resistor, a fifth resistor, a reference voltage source and a fourth switch unit; The first end of the fourth resistor is respectively connected to the input end of the overcurrent / current limiting protection module and the input end of the fourth switch unit, and the second end of the fourth resistor is respectively connected to the control end of the fourth switch unit and the positive electrode of the reference voltage source; The output end of the fourth switch unit is connected to the reference end of the reference voltage source and the first end of the fifth resistor respectively; The negative electrode of the reference voltage source is connected to the second end of the fifth resistor and the output end of the overcurrent / current limiting protection module respectively.
9. The circuit with USB OTG intelligent identification and voltage / current protection function according to claim 1, characterized in that: The overvoltage / undervoltage protection module includes a sixth resistor, a seventh resistor, an eighth resistor, a first comparator, a second comparator, an AND gate, a fifth switch unit and a sixth switch unit; The inverting input terminal of the first comparator is respectively connected to the input terminal of the overvoltage / undervoltage protection module and the non-inverting input terminal of the second comparator, the non-inverting input terminal of the first comparator is used to connect to a fourth power supply, and the output terminal of the first comparator is connected to the first input terminal of the AND gate; The inverting input terminal of the second comparator is used to connect to a fifth power supply, and the output terminal of the second comparator is connected to the second input terminal of the AND gate; The output end of the AND gate is connected to the control end of the fifth switch unit through the sixth resistor, the output end of the fifth switch unit is grounded, and the input end of the fifth switch unit is connected to the control end of the sixth switch unit through the seventh resistor; The input end of the sixth switch unit is connected to the input end of the overvoltage / undervoltage protection module, the output end of the sixth switch unit is connected to the output end of the overvoltage / undervoltage protection module, and the output end of the sixth switch unit is also connected to the control end of the sixth switch unit through the eighth resistor.
10. The circuit with USB OTG intelligent identification and voltage / current protection functions according to claim 8, characterized in that: The fourth switch unit includes a fourth switch tube; The control end of the fourth switch tube is connected to the control end of the fourth switch unit, the input end of the fourth switch tube is connected to the input end of the fourth switch unit, and the output end of the fourth switch tube is connected to the output end of the fourth switch unit.
11. The circuit with USB OTG intelligent identification and voltage / current protection functions according to claim 9, characterized in that: The fifth switch unit includes a fifth switch tube; The control end of the fifth switch tube is connected to the control end of the fifth switch unit, the input end of the fifth switch tube is connected to the input end of the fifth switch unit, and the output end of the fifth switch tube is connected to the output end of the fifth switch unit; The sixth switch unit includes a sixth switch tube; The control end of the sixth switch tube is connected to the control end of the sixth switch unit, the input end of the sixth switch tube is connected to the input end of the sixth switch unit, and the output end of the sixth switch tube is connected to the output end of the sixth switch unit.
Citation Information
Patent Citations
Method and device for realizing OTG based on USB socket
CN101944074A
Systems and methods for enabling communication between an accessory charger adapter (ACA) and an ACA-agnostic universal serial bus controller
US20120271979A1
Battery boost apparatus
US20190081472A1
