CN221551213U - Interface control circuit and electronic equipment - Google Patents
Interface control circuit and electronic equipment Download PDFInfo
- Publication number
- CN221551213U CN221551213U CN202322766277.2U CN202322766277U CN221551213U CN 221551213 U CN221551213 U CN 221551213U CN 202322766277 U CN202322766277 U CN 202322766277U CN 221551213 U CN221551213 U CN 221551213U
- Authority
- CN
- China
- Prior art keywords
- module
- interface
- resistor
- power supply
- tube
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 230000005540 biological transmission Effects 0.000 claims abstract description 54
- 230000000087 stabilizing effect Effects 0.000 claims description 19
- 230000003321 amplification Effects 0.000 claims description 14
- 238000001514 detection method Methods 0.000 claims description 14
- 238000003199 nucleic acid amplification method Methods 0.000 claims description 14
- 238000005070 sampling Methods 0.000 claims description 13
- 239000003990 capacitor Substances 0.000 claims description 8
- 101100451537 Caenorhabditis elegans hsd-1 gene Proteins 0.000 description 3
- 101100451536 Arabidopsis thaliana HSD2 gene Proteins 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- ZCJJIQHVZCFSGZ-UHFFFAOYSA-N 2,8-bis(diphenylphosphoryl)dibenzothiophene Chemical class C=1C=CC=CC=1P(C=1C=C2C3=CC(=CC=C3SC2=CC=1)P(=O)(C=1C=CC=CC=1)C=1C=CC=CC=1)(=O)C1=CC=CC=C1 ZCJJIQHVZCFSGZ-UHFFFAOYSA-N 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000004146 energy storage Methods 0.000 description 1
- 238000002955 isolation Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Landscapes
- Power Sources (AREA)
Abstract
The utility model discloses an interface control circuit and electronic equipment, which comprises a power supply module, a main control module, a switch module and a protocol chip; the power supply module is used for supplying power to external equipment through a power line of the interface; the first connecting end of the switch module is used for connecting external equipment, the second connecting end of the switch module is connected with the main control module, and the third connecting end of the switch module is connected with the protocol chip; and the protocol chip is used for carrying out charging protocol handshake with the external equipment. According to the interface control circuit, the data line of the switching control interface of the switch module is added in the interface control circuit to be connected with the main control module or the protocol chip, so that the switching interface is connected with the protocol chip when no transmission requirement exists in external equipment, the protocol chip can charge the protocol handshake with the external equipment, the circuit charges the external equipment, and the problem that the protocol handshake charging cannot be realized when part of the external equipment is inserted into the interface is solved.
Description
Technical Field
The present utility model relates to the field of interface technologies, and in particular, to an interface control circuit and an electronic device.
Background
With the continuous development of electronic technology, electronic devices such as computers, mobile phones, audio devices, etc. are becoming common tools and entertainment living facilities in people's life. Most of the current electronic devices with independent built-in power supplies, such as mobile phones, notebook computers and the like, can perform data transmission with external devices plugged into interfaces of the electronic devices, and can charge the external devices when the external devices have no transmission requirements. However, some brands of mobile phones and devices need to carry out specific charging protocol handshaking to carry out normal charging when charging, and interfaces of some electronic devices do not have specific charging protocol handshaking functions, so that the phenomenon that the charging functions of the interfaces are incompatible is generated, and inconvenience is brought.
Disclosure of utility model
The embodiment of the utility model provides an interface control circuit and electronic equipment, which are used for solving the problems that an interface in the existing electronic equipment cannot realize handshake of a specific charging protocol and the charging functions are incompatible.
The embodiment of the utility model provides an interface control circuit which comprises a power supply module, a main control module, a switch module and a protocol chip;
The power supply module is used for supplying power to external equipment through a power line of the interface;
The first connecting end of the switch module is used for connecting external equipment, the second connecting end of the switch module is connected with the main control module, and the third connecting end of the switch module is connected with the protocol chip;
The protocol chip is used for carrying out charging protocol handshake with the external equipment;
the main control module is connected with the control end of the switch module and is used for controlling the first connection end of the switch module to be connected with the third connection end when the external equipment does not have transmission requirements, so that the protocol chip carries out charging protocol handshake, and the power supply module supplies power to the external equipment.
Preferably, the first connection end of the switch module is connected with the data line of the interface;
The second connecting end of the switch module is connected with the data line of the main control module;
The third connecting end of the switch module is connected with the data line of the protocol chip;
The switch module is used for connecting the first connecting end with the second connecting end in an initial state, so that the data line of the interface is connected with the data line of the main control module;
The main control module is used for detecting the level state of the data line of the interface when the data line of the interface is connected with external equipment, judging whether the external equipment has data transmission requirements according to the level state, carrying out data transmission on the data line of the interface and the external equipment when the external equipment has the data transmission requirements, and controlling the switch module to connect the first connecting end with the third connecting end when the external equipment has no data transmission requirements, and switching the data line of the interface to be connected with the data line of the protocol chip.
Preferably, the power supply module is connected with a power line of the protocol chip and a power line of the switch module, and is used for supplying power to the protocol chip and the switch module.
Preferably, the power supply module comprises a voltage reduction chip and a protection circuit;
The voltage reduction chip is used for being connected with a built-in power supply, converting the voltage of the charging voltage output by the built-in power supply and outputting the power supply voltage;
The protection circuit is connected with the output end of the buck chip, the power line of the interface and the main control module, and is used for outputting the power supply voltage to the external equipment under the control of the main control module and stopping power supply when the power supply voltage is larger than a preset voltage.
Preferably, the protection circuit comprises a first resistor, a second resistor, a voltage stabilizing tube, a first control tube, a second control tube, a third control tube and a fourth control tube;
The first end of the first resistor is connected with the output end of the voltage reduction chip, the second end of the first resistor is connected with the first end of the voltage stabilizing tube, and the second end of the voltage stabilizing tube is grounded;
The first end of the first control tube is connected with the output end of the buck chip, the second end of the first control tube is connected with the connecting node of the first resistor and the voltage stabilizing tube, the third end of the first control tube is connected with the first end of the second resistor, and the second end of the second resistor is grounded;
The first end of the second control tube is connected with the second end of the first control tube, the second end of the second control tube is connected with the main control module, and the third end of the second control tube is grounded;
The first end of the third control tube is connected with the output end of the buck chip, the second end of the third control tube is connected with the first end of the second resistor, and the third end of the third control tube is connected with the third end of the fourth control tube;
The first end of the fourth control tube is connected with the power line of the interface, and the second end of the fourth control tube is connected with the first end of the second resistor.
Preferably, the protection circuit further comprises a third resistor, a fourth resistor, a fifth resistor and a sixth resistor;
The first end of the third resistor is connected with a connecting node between the first resistor and the voltage stabilizing tube, and the second end of the third resistor is connected with the second end of the first control tube;
two ends of the fourth resistor are respectively connected with the first end and the second end of the third control tube;
Two ends of the fifth resistor are respectively connected with the second end and the third end of the second control tube;
The first end of the sixth resistor is connected with the main control module; the second end of the sixth resistor is connected with the second end of the second control tube.
Preferably, the protection circuit further comprises a first capacitor, and two ends of the first capacitor are respectively connected with the first end and the second end of the third control tube.
Preferably, the interface control circuit further comprises a current detection module;
The current detection module is connected with the ground wire of the interface and the main control module and is used for outputting a feedback control signal to the main control module according to the power supply voltage;
And the main control module controls the power supply module to stop supplying power to the external equipment according to the feedback control signal.
Preferably, the current detection module comprises a sampling resistor and an operational amplification unit;
The first end of the sampling resistor is connected with the ground wire of the interface, and the second end of the sampling resistor is connected with the input end of the operational amplification unit;
The output end of the operational amplification unit is connected with the main control module and is used for outputting a feedback control signal to the main control module.
The embodiment of the utility model also provides electronic equipment which comprises an interface, a built-in power supply and the interface control circuit;
The interface is used for connecting external equipment;
the power supply module is connected with the built-in power supply and the interface.
According to the interface control circuit and the electronic device, the data line for switching the control interface by adding the switch module into the interface control circuit is connected with the main control module or the protocol chip, so that when the main control module detects that the external device has no data transmission requirement, the switch interface is connected with the protocol chip, the protocol chip can charge the protocol handshake with the external device, the circuit charges the external device, and the problem that the protocol handshake charging cannot be realized when the external device is plugged into the interface for charging is solved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present utility model, the drawings that are needed in the description of the embodiments of the present utility model will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present utility model, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a block diagram of an interface control circuit according to an embodiment of the present utility model;
Fig. 2 is a schematic circuit diagram of an interface control circuit according to an embodiment of the utility model.
In the figure: 1. a power supply module; 11. a buck chip; 12. a protection circuit; 2. a main control module; 3. a switch module; 4. a protocol chip; 5. an interface; 6. an external device; 7. a built-in power supply; 8. a current detection module; 81. and an operational amplification unit.
Detailed Description
The following description of the embodiments of the present utility model will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the utility model. All other embodiments, which can be made by those skilled in the art based on the embodiments of the utility model without making any inventive effort, are intended to be within the scope of the utility model.
It should be understood that the present utility model may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the utility model to those skilled in the art. In the drawings, the dimensions and relative dimensions of layers and regions may be exaggerated for the same elements throughout for clarity.
It will be understood that when an element or layer is referred to as being "on" …, "" adjacent to "…," "connected to" or "coupled to" another element or layer, it can be directly on, adjacent to, connected to or coupled to the other element or layer, or intervening elements or layers may be present. In contrast, when an element is referred to as being "directly on" …, "" directly adjacent to "…," "directly connected to" or "directly coupled to" another element or layer, there are no intervening elements or layers present. It will be understood that, although the terms first, second, third, etc. may be used herein to describe various elements, components, regions, layers and/or sections, these elements, components, regions, layers and/or sections should not be limited by these terms. These terms are only used to distinguish one element, component, region, layer or section from another element, component, region, layer or section. Thus, a first element, component, region, layer or section discussed below could be termed a second element, component, region, layer or section without departing from the teachings of the present utility model.
Spatially relative terms, such as "under …," "under …," "below," "under …," "over …," "above," and the like, may be used herein for ease of description to describe one element or feature's relationship to another element or feature as illustrated in the figures. It will be understood that the spatially relative terms are intended to encompass different orientations of the device in use and operation in addition to the orientation depicted in the figures. For example, if the device in the figures is turned over, elements or features described as "under" or "beneath" other elements would then be oriented "on" the other elements or features. Thus, the exemplary terms "below …" and "under …" may include both an upper and a lower orientation. The device may be otherwise oriented (rotated 90 degrees or other orientations) and the spatially relative descriptors used herein interpreted accordingly.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the utility model. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. As used herein, the term "and/or" includes any and all combinations of the associated listed items.
In the following description, for the purpose of providing a thorough understanding of the present utility model, detailed structures and steps are presented in order to illustrate the technical solution presented by the present utility model. Preferred embodiments of the present utility model are described in detail below, however, the present utility model may have other embodiments in addition to these detailed descriptions.
The embodiment of the utility model provides an interface control circuit which comprises a power supply module 1, a main control module 2, a switch module 3 and a protocol chip 4; a power supply module 1 for supplying power to an external device 6 through a power line of an interface 5; the first connecting end of the switch module 3 is used for connecting external equipment 6, the second connecting end of the switch module 3 is connected with the main control module 2, and the third connecting end of the switch module 3 is connected with the protocol chip 4; the protocol chip 4 is used for carrying out charging protocol handshake with the external equipment 6; the main control module 2 is connected with the control end of the switch module 3, and is used for controlling the first connection end and the third connection end of the switch module 3 to connect when the external device 6 has no data transmission requirement, so that the protocol chip 4 carries out charging protocol handshake, and the power supply module 1 supplies power to the external device 6.
The interface 5 may be a USB interface, and the USB interface includes a power line VCC, a data line (positive) d+, a data line (negative) D-, and a ground line GND.
As an example, as shown in fig. 1, the power supply module 1 is connected to a power line VCC of the USB interface, and supplies power to an external device 6 connected to the USB interface under the control of the main control module 2. The switch module 3 is configured to switch the data line of the interface 5 from being connected with the main control module 2 to being connected with the protocol chip 4 under the control of the main control module 2 when the external device 6 has no data transmission requirement. In the initial state, the switch module 3 controls the first connection end and the second connection end to be connected internally, so that the main control module 2 can be connected to the external device 6, and after the external device 6 is accessed, the main control module 2 can judge whether the external device 6 has data transmission requirements. When the external equipment 6 has data transmission requirements, the main control module 2 directly performs data transmission with the external equipment 6 through the switch module 3; when the external device 6 has no data transmission requirement, the main control module 2 controls the switch module 3 to connect the first connection end and the third connection end internally, so that the data line (positive) D+ and the data line (negative) D-of the interface 5 are connected with the main control module 2 and are switched to be connected with the protocol chip 4, the protocol chip 4 and the external device 6 carry out charging protocol handshake, and meanwhile, the main control module 2 controls the power supply module 1 to be started to supply power for the external device 6.
In this example, the data line of the switching control interface 5 is connected with the main control module 2 or the protocol chip 4 through adding the switch module 3, so that when the main control module 2 detects that the external device 6 has no data transmission requirement, the switching interface 5 is connected with the protocol chip 4, the protocol chip 4 can carry out charging protocol handshake with the external device 6, and the circuit charges the external device 6, thereby solving the problem that the charging of the protocol handshake cannot be realized when the external device 6 is plugged into the interface 5 for charging.
In one embodiment, the first connection terminal of the switch module 3 is connected to the data line of the interface 5; the second connecting end of the switch module 3 is connected with a data line of the main control module 2; the third connecting input end of the switch module 3 is connected with the data line of the protocol chip 4; the switch module 3 is used for connecting the first connecting end with the second connecting end in an initial state, so that the data line of the interface 5 is connected with the data line of the main control module 2; the main control module 2 is configured to detect a level state at a data line of the interface 5 when the data line of the interface 5 is connected with the external device 6, determine whether the external device 6 has a data transmission requirement according to the level state, and perform data transmission with the external device 6 through the data line of the interface 5 when the external device 6 has the data transmission requirement, and control the switch module 3 to connect the first connection end with the third connection end when the external device 6 has no data transmission requirement, and switch the data line of the interface 5 to connect with the data line of the protocol chip 4.
The switch module 3 may be an SGM7229YUWQ G/TR double throw (DPDT) analog switch.
As an example, the analog switch includes a first data transmission terminal (positive) d+, a first data transmission terminal (negative) D-, a second data transmission terminal (positive) hsd1+, a second data transmission terminal (negative) hsd1-, a third data transmission terminal (positive) hsd2+, a third data transmission terminal (negative) hsd2-, and a control terminal S. The first data transmission end (positive) D+ of the analog switch is correspondingly connected with the data line (positive) D+ of the USB interface, and the first data transmission end (negative) D-is correspondingly connected with the data line (negative) D-of the USB interface; the second data transmission end (positive) HSD1+ is correspondingly connected with the D+ pin of the main control module 2, and the second data transmission end (negative) HSD 1-is correspondingly connected with the D-pin of the main control module 2; the third data transmission end (positive) HSD2+ is correspondingly connected with the D+ pin of the protocol chip 4, and the third data transmission end (negative) HSD 2-is correspondingly connected with the D-pin of the protocol chip 4.
Under default state, the analog switch controls the first data transmission end (positive) D+ and the second data transmission end (positive) HSD1+, the first data transmission end (negative) D-and the second data transmission end (negative) HSD 1-to be internally connected, so that the data line (positive) D+ of the USB interface is correspondingly connected with the D+ pin of the main control module 2, and the data line (negative) D-of the interface is correspondingly connected with the D-pin of the main control module 2, thereby enabling the external device 6 to handshake with the main control module 2 directly after accessing the USB interface, and enabling the main control module 2 to directly judge whether the external device 6 has data transmission requirements.
When the main control module 2 recognizes that the external device 6 has no data transmission requirement, a high-level signal is output to the control end S of the analog switch, so that the analog switch controls the first data transmission end (positive) D+ and the third data transmission end (positive) HSD2+, the first data transmission end (negative) D-and the third data transmission end (negative) HSD 2-to be internally communicated, the data line (positive) D+ of the USB interface is correspondingly connected with the D+ pin of the protocol chip 4, and the data line (negative) D-of the USB interface is correspondingly connected with the D-pin of the protocol chip 4, so that the protocol chip 4 and the external device 6 carry out charging protocol handshake.
In an embodiment, the power supply module 1 is connected to the power supply line VCC of the protocol chip 4 and the power supply line VCC of the switch module 3, for supplying power to the protocol chip 4 and the switch module 3.
As an example, as shown in fig. 2, the output terminal of the power supply module 1 is connected to the power line of the protocol chip 4 and the power line of the switch module 3. The power supply module 1 supplies power to the external device 6, the protocol chip 4 and the switch module 3, and the electric potentials of the protocol chip 4, the switch module 3 and the external device 6 are conveniently unified, so that the handshake of the charging protocol and the data transmission are smoothly carried out.
In one embodiment, the power supply module 1 includes a buck chip 11 and a protection circuit 12; the step-down chip 11 is connected with the built-in power supply 7, and is used for performing voltage conversion on the charging voltage output by the built-in power supply 7 and outputting a power supply voltage V; the protection circuit 12 is connected with the output end of the buck chip 11, the power line of the interface 5 and the main control module 2, and is used for outputting the power supply voltage V to the external device 6 under the control of the main control module 2, and stopping power supply when the power supply voltage V is greater than the preset voltage.
The built-in power supply 7 may be a built-in power supply module in an electronic device such as a computer, an audio device, or the like.
As an example, the power supply module 1 includes a buck chip 11 and a protection circuit 12, where the buck chip 11 may be an SP1081F buck chip, and an input terminal is connected to the internal power supply 7, and performs voltage conversion on a charging voltage output by the internal power supply 7, and outputs a supply voltage V. The input end of the protection circuit 12 is connected with the output end of the power supply module 1, the control end of the protection circuit 12 is connected with the main control module 2, the output end is connected with the power line VCC of the interface 5, and the power supply voltage V can be output to the external equipment 6 under the control of the main control module 2. During the output of the supply voltage V, the protection circuit 12 can automatically stop outputting the supply voltage V when the supply voltage V is greater than a preset voltage, so as to form overvoltage protection.
In one embodiment, the protection circuit 12 includes a first resistor R1, a second resistor R2, a regulator tube D1, a first control tube Q1, a second control tube Q2, a third control tube Q3, and a fourth control tube Q4; the first end of the first resistor R1 is connected with the output end of the voltage reduction chip 11, the second end of the first resistor R1 is connected with the first end of the voltage stabilizing tube D1, and the second end of the voltage stabilizing tube D1 is grounded; the first end of the first control tube Q1 is connected with the output end of the buck chip 11, the second end of the first control tube Q1 is connected with the connecting node of the first resistor R1 and the voltage stabilizing tube D1, the third end of the first control tube Q1 is connected with the first end of the second resistor R2, and the second end of the second resistor R2 is grounded; the first end of the second control tube Q2 is connected with the second end of the first control tube Q1, the second end of the second control tube Q2 is connected with the main control module 2, and the third end of the second control tube Q2 is grounded; the first end of the third control tube Q3 is connected with the output end of the buck chip 11, the second end of the third control tube Q3 is connected with the first end of the second resistor R2, and the third end of the third control tube Q3 is connected with the third end of the fourth control tube Q4; the first end of the fourth control tube Q4 is connected to the power supply line VCC of the interface 5, and the second end of the fourth control tube Q4 is connected to the first end of the second resistor R2.
As an example, the first control tube Q1 may be a PNP transistor, the second control tube Q2 may be an NPN transistor, and the third and fourth control tubes Q3 and Q4 may be PMOS transistors. The first resistor R1 is a voltage dividing resistor and is matched with the voltage stabilizing tube D1 to form overvoltage protection, the first end of the first resistor R1 is connected with the output end of the voltage reducing chip 11, the second end of the first resistor R1 is connected with the anode of the voltage stabilizing tube D1, and the cathode of the voltage stabilizing tube D1 is grounded. The emitter of the first control tube Q1 is connected with the output end of the buck chip 11, the base electrode of the first control tube Q1 is connected with the connection node of the first resistor R1 and the voltage stabilizing tube D1, the collector electrode of the first control tube Q1 is connected with the first end of the second resistor R2, and the second end of the second resistor R2 is grounded; the collector of the second control tube Q2 is connected with the base electrode of the first control tube Q1, the base electrode of the second control tube Q2 is connected with the main control module 2, and the emitter electrode of the second control tube Q2 is grounded; the source electrode of the third control tube Q3 is connected with the output end of the buck chip 11, the grid electrode of the third control tube Q3 is connected with the first end of the second resistor R2, and the drain electrode of the third control tube Q3 is connected with the drain electrode of the fourth control tube Q4; the source of the fourth control tube Q4 is connected with the power line VCC of the interface 5, the grid of the fourth control tube Q4 is connected with the first end of the second resistor R2, and the second resistor R2 plays roles of pull-down and current limiting.
When the main control module 2 outputs a low level to the base electrode of the second control tube Q2, the second control tube Q2 is cut off, the first control tube Q1 is cut off, the grid electrodes of the third control tube Q3 and the fourth control tube Q4 are conducted to the ground through the second resistor R2, the third control tube Q3 is conducted, the fourth control tube Q4 is conducted, and the protection circuit 12 outputs a power supply voltage V; when the main control module 2 outputs high level to the base electrode of the second control tube Q2, the second control tube Q2 is conducted, the base electrode of the first control tube Q1 is pulled down to the ground, the first control tube Q1 is conducted, and no power supply voltage Vout is generated at the moment. By connecting the third control tube Q3 and the fourth control tube Q4 in series with the common drain, the voltage on the power supply line VCC of the interface 5 can be prevented from being connected to the source side of the third control tube Q3 when the external device 6 is connected in series, thereby forming isolation. When the supply voltage V is greater than the preset voltage, the voltage stabilizing tube D1 is reversely turned on to the ground, so that the first control tube Q1 is turned on, the third control tube Q3 is turned off, and the protection circuit 12 automatically stops outputting the supply voltage V, thereby forming overvoltage protection.
When the main control module 2 recognizes that the external device 6 has no data transmission requirement, the base pin connected to the base of the second control tube Q2 is in a low level state, and when the main control module 2 first outputs a high level to the base of the second control tube Q2, the protection circuit 12 stops outputting the power supply voltage V, and meanwhile, the protocol chip 4 is powered off and continues to be powered off for 300 ms, and then the main control module 2 outputs a low level to the base of the second control tube Q2 again, so that the protection circuit 12 outputs the power supply voltage V, the protocol chip 4 is powered on again and restarted automatically, and at this time, the control end of the main control module 2 outputs a high level to the control end S of the analog switch, the protocol chip 4 and the external device 6 carry out charging protocol handshake, and the protection circuit 12 supplies power to the external device 6 normally.
In an embodiment, the protection circuit 12 further includes a third resistor R3, a fourth resistor R4, a fifth resistor R5, and a sixth resistor R6; the first end of the third resistor R3 is connected with a connecting node between the first resistor R1 and the voltage stabilizing tube D1, and the second end of the third resistor R3 is connected with the second end of the first control tube Q1; two ends of the fourth resistor R4 are respectively connected with the first end and the second end of the third control tube Q3; two ends of the fifth resistor R5 are respectively connected with the second end and the third end of the second control tube Q2; the first end of the sixth resistor R6 is connected with the main control module 2, and the second end of the sixth resistor R6 is connected with the second end of the second control tube Q2.
As an example, the protection circuit 12 further includes a third resistor R3, a fourth resistor R4, a fifth resistor R5, and a sixth resistor R6. The third resistor R3 is a pull-down resistor of the first control tube Q1, the first end of the third resistor R3 is connected with a connecting node between the first resistor R1 and the voltage stabilizing tube D1, and the second end of the third resistor R3 is connected with the base electrode of the first control tube Q1; the fourth resistor R4 is a pull-down resistor of the third control tube Q3, and two ends of the fourth resistor R4 are respectively connected with a source electrode and a grid electrode of the third control tube Q3; the fifth resistor R5 is a pull-down resistor of the second control tube Q2, and two ends of the fifth resistor R5 are respectively connected with a base electrode and a collector electrode of the second control tube Q2; the first end of the sixth resistor R6 is connected with the main control module 2, and the second end of the sixth resistor R6 is connected with the base electrode of the second control tube Q2 to achieve the functions of voltage division and current limitation.
In an embodiment, the protection circuit 12 further includes a first capacitor C1, and two ends of the first capacitor C1 are connected to the first end and the second end of the third control tube Q3, respectively.
As an example, the protection circuit 12 further includes a first capacitor C1. The two ends of the first capacitor C1 are respectively connected with the source electrode and the grid electrode of the third control tube Q3, so that an energy storage effect is achieved, and when external equipment 6 is connected, the power line VCC of the interface 5 generates voltage backflow to the power supply module 1.
In an embodiment, the circuit further comprises a current detection module 8; the current detection module 8 is connected with the ground wire of the interface 5 and the main control module 2 and is used for outputting a feedback control signal to the main control module 2 according to the power supply voltage V; the main control module 2 controls the power supply module 1 to stop supplying power to the external equipment 6 according to the feedback control signal.
As an example, the interface control circuit further comprises a current detection module 8. The current detection module 8 is connected with the ground wire GND of the interface 5 and the main control module 2, when the external device 6 is connected to the interface 5, the power supply module 1 outputs the power supply voltage V to the external device 6, the current detection module 8 can output a feedback control signal to the main control module 2 when the power supply voltage V is greater than a preset voltage, the main control module 2 outputs a high level to the base electrode of the second control tube Q2 after receiving the feedback control signal, so that the protection circuit 12 stops outputting the power supply voltage V, and the power supply module 1 is controlled to stop supplying power to the external device 6.
In one embodiment, the current detection module 8 includes a sampling resistor Rs and an operational amplification unit 81; a first end of the sampling resistor Rs is connected with the ground wire of the interface 5, and a second end of the sampling resistor Rs is connected with the input end of the operational amplification unit 81; the output end of the operational amplification unit 81 is connected with the main control module 2, and is used for outputting a feedback control signal to the main control module 2.
As an example, the current detection module 8 includes a sampling resistor Rs and an operational amplification unit 81. The first end of the sampling resistor Rs is connected with the ground GND of the interface 5, the second end of the sampling resistor Rs is connected with the input end of the operational amplification unit 81, and the output end of the operational amplification unit 81 is connected with the main control module 2. When the power supply voltage V is greater than the preset voltage, the current flowing through the sampling resistor Rs is also greater than the preset current, the operational amplification unit 81 outputs a feedback control signal to the main control module 2, and after receiving the feedback control signal, the main control module 2 outputs a high level to the base electrode of the second control tube Q2, so that the protection circuit 12 stops outputting the power supply voltage V, and the power supply module 1 is controlled to stop supplying power to the external device 6.
The utility model also provides an electronic device, which comprises an interface 5, a built-in power supply 7 and an interface control circuit in any embodiment; an interface 5 for connecting an external device 6; the power supply module 1 is connected with a built-in power supply 7 and an interface 5.
The interface 5 may be a USB interface.
As an example, the electronic device includes a USB interface for plugging in the external device 6, a built-in power supply 7 provided inside the electronic device, and an interface control circuit in the above example. The built-in power supply 7 is connected with the input end of the power supply module 1, and the power line VCC of the USB interface is connected with the output end of the power supply module 1.
After the external device 6 is accessed, the main control module 2 judges whether the external device 6 has data transmission requirements by detecting the level states of the data line (positive) D+ and the data line (negative) D-. When the external equipment 6 has data transmission requirements, the main control module 2 directly performs data transmission with the external equipment 6 at the interface 5 through the switch module 3; when the external device 6 has no data transmission requirement, the main control module 2 controls the switch module 3 to switch the data line of the interface 5 from being connected with the main control module 2 to being connected with the protocol chip 4, so that the protocol chip 4 and the external device 6 carry out charging protocol handshake, and meanwhile, the main control module 2 controls the power supply module 1 to be started for supplying power to the external device 6.
In this example, the data line of the switching control interface 5 is connected with the main control module 2 or the protocol chip 4 through adding the switch module 3, so that when the main control module 2 detects that the external device 6 has no data transmission requirement, the switching interface 5 is connected with the protocol chip 4, the protocol chip 4 can carry out charging protocol handshake with the external device 6, and the circuit charges the external device 6, thereby solving the problem that the charging of the protocol handshake cannot be realized when the external device 6 is plugged into the interface 5 for charging.
The above embodiments are only for illustrating the technical solution of the present utility model, and not for limiting the same; although the utility model has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present utility model, and are intended to be included in the scope of the present utility model.
Claims (10)
1. An interface control circuit is characterized by comprising a power supply module, a main control module, a switch module and a protocol chip;
The power supply module is used for supplying power to external equipment through a power line of the interface;
The first connecting end of the switch module is used for connecting external equipment, the second connecting end of the switch module is connected with the main control module, and the third connecting end of the switch module is connected with the protocol chip;
The protocol chip is used for carrying out charging protocol handshake with the external equipment;
the main control module is connected with the control end of the switch module and is used for controlling the first connection end of the switch module to be connected with the third connection end when the external equipment does not have transmission requirements, so that the protocol chip carries out charging protocol handshake, and the power supply module supplies power to the external equipment.
2. The interface control circuit of claim 1, wherein,
The first connecting end of the switch module is connected with the data line of the interface;
The second connecting end of the switch module is connected with the data line of the main control module;
The third connecting end of the switch module is connected with the data line of the protocol chip;
The switch module is used for connecting the first connecting end with the second connecting end in an initial state, so that the data line of the interface is connected with the data line of the main control module;
The main control module is used for detecting the level state of the data line of the interface when the data line of the interface is connected with external equipment, judging whether the external equipment has data transmission requirements according to the level state, carrying out data transmission on the data line of the interface and the external equipment when the external equipment has the data transmission requirements, and controlling the switch module to connect the first connecting end with the third connecting end when the external equipment has no data transmission requirements, and switching the data line of the interface to be connected with the data line of the protocol chip.
3. The interface control circuit of claim 1, wherein the power module is coupled to a power line of the protocol chip and a power line of the switching module for powering the protocol chip and the switching module.
4. The interface control circuit of claim 1, wherein the power supply module comprises a buck chip and a protection circuit;
The voltage reduction chip is used for being connected with a built-in power supply, converting the voltage of the charging voltage output by the built-in power supply and outputting the power supply voltage;
The protection circuit is connected with the output end of the buck chip, the power line of the interface and the main control module, and is used for outputting the power supply voltage to the external equipment under the control of the main control module and stopping power supply when the power supply voltage is larger than a preset voltage.
5. The interface control circuit of claim 4, wherein the protection circuit comprises a first resistor, a second resistor, a regulator tube, a first control tube, a second control tube, a third control tube, and a fourth control tube;
The first end of the first resistor is connected with the output end of the voltage reduction chip, the second end of the first resistor is connected with the first end of the voltage stabilizing tube, and the second end of the voltage stabilizing tube is grounded;
The first end of the first control tube is connected with the output end of the buck chip, the second end of the first control tube is connected with the connecting node of the first resistor and the voltage stabilizing tube, the third end of the first control tube is connected with the first end of the second resistor, and the second end of the second resistor is grounded;
The first end of the second control tube is connected with the second end of the first control tube, the second end of the second control tube is connected with the main control module, and the third end of the second control tube is grounded;
The first end of the third control tube is connected with the output end of the buck chip, the second end of the third control tube is connected with the first end of the second resistor, and the third end of the third control tube is connected with the third end of the fourth control tube;
The first end of the fourth control tube is connected with the power line of the interface, and the second end of the fourth control tube is connected with the first end of the second resistor.
6. The interface control circuit of claim 5, wherein the protection circuit further comprises a third resistor, a fourth resistor, a fifth resistor, and a sixth resistor;
The first end of the third resistor is connected with a connecting node between the first resistor and the voltage stabilizing tube, and the second end of the third resistor is connected with the second end of the first control tube;
two ends of the fourth resistor are respectively connected with the first end and the second end of the third control tube;
Two ends of the fifth resistor are respectively connected with the second end and the third end of the second control tube;
The first end of the sixth resistor is connected with the main control module; the second end of the sixth resistor is connected with the second end of the second control tube.
7. The interface control circuit of claim 5, wherein the protection circuit further comprises a first capacitor, two ends of the first capacitor being connected to the first end and the second end of the third control tube, respectively.
8. The interface control circuit of claim 4, further comprising a current detection module;
The current detection module is connected with the ground wire of the interface and the main control module and is used for outputting a feedback control signal to the main control module according to the power supply voltage;
And the main control module controls the power supply module to stop supplying power to the external equipment according to the feedback control signal.
9. The interface control circuit of claim 8, wherein the current detection module comprises a sampling resistor and an operational amplification unit;
The first end of the sampling resistor is connected with the ground wire of the interface, and the second end of the sampling resistor is connected with the input end of the operational amplification unit;
The output end of the operational amplification unit is connected with the main control module and is used for outputting a feedback control signal to the main control module.
10. An electronic device comprising an interface, a built-in power supply, and the interface control circuit of any one of claims 1-9;
The interface is used for connecting external equipment;
the power supply module is connected with the built-in power supply and the interface.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202322766277.2U CN221551213U (en) | 2023-10-16 | 2023-10-16 | Interface control circuit and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202322766277.2U CN221551213U (en) | 2023-10-16 | 2023-10-16 | Interface control circuit and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN221551213U true CN221551213U (en) | 2024-08-16 |
Family
ID=92259133
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202322766277.2U Active CN221551213U (en) | 2023-10-16 | 2023-10-16 | Interface control circuit and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN221551213U (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN119557254A (en) * | 2025-02-07 | 2025-03-04 | 深圳市移速科技有限公司 | Storage circuits and devices |
-
2023
- 2023-10-16 CN CN202322766277.2U patent/CN221551213U/en active Active
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN119557254A (en) * | 2025-02-07 | 2025-03-04 | 深圳市移速科技有限公司 | Storage circuits and devices |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10784722B2 (en) | BLUETOOTH headset, charging cabin and charging system thereof | |
CN105790356A (en) | Data line having charging circuit | |
WO2016173202A1 (en) | Tablet pc | |
CN221551213U (en) | Interface control circuit and electronic equipment | |
US20140292257A1 (en) | Electronic device and charging circuit thereof | |
TWI773261B (en) | System with multiple Type-C interfaces and control method thereof | |
US20180109134A1 (en) | Power monitoring for output voltage support | |
CN114285128B (en) | Outdoor equipment power supply control circuit, outdoor equipment power supply system and outdoor equipment | |
US9906053B2 (en) | Energy storage device and control method thereof | |
CN211351757U (en) | A low-power standby circuit, mobile power supply and robot | |
CN211183521U (en) | Dual-battery selection circuit and electronic device | |
CN111399617A (en) | Power supply control device and electronic apparatus | |
CN116252677A (en) | BMS dormancy wake-up circuit, method, BMS and electrical equipment | |
US20230299676A1 (en) | Floating gate driver with programmable drive strength for a wide range of universal serial bus (usb) power delivery applications | |
CN214674403U (en) | Charging and discharging circuit and electronic equipment | |
CN215817607U (en) | Power supply circuit and remote control device | |
CN115622225A (en) | Power supply switching circuit and electronic equipment | |
CN111448738B (en) | Multifunctional charging device and system | |
CN116054300A (en) | Terminal power supply circuit, power supply method and terminal | |
US7205683B2 (en) | Circuit for preventing unintentional power off of mobile terminal and method thereof | |
CN114301119A (en) | Wake-up circuit, battery management system, battery pack and electric device | |
CN220857661U (en) | Charging control circuit and device | |
CN114421446A (en) | Outdoor equipment power supply control method, power supply control system and outdoor equipment | |
CN112737057A (en) | Charging and discharging circuit and electronic equipment | |
WO2005112220A1 (en) | A portable electronic equipment and an extending head of the equipment and a charging interface of the charging device of the equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GR01 | Patent grant | ||
GR01 | Patent grant |