Multipath charging circuit and electronic equipment
By controlling the switching modules in the multi-channel charging circuit through the gating controller, the short-circuit problem when multiple interface modules are charging at the same time is solved, and the equipment is safely isolated and efficiently powered.
Patent Information
- Application Number
- CN202423182801.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-20
- Publication Date
- 2026-01-23
- Estimated Expiration
- 2034-12-20
AI Technical Summary
When multiple interface modules are connected to external devices at the same time, short circuits between the interfaces can easily occur, causing damage to the equipment.
The gating controller detects the connection status of each interface to the external device and controls at most one switch module to be turned on according to the connection status, so as to avoid short circuits between interfaces.
It effectively avoids short circuits between interfaces, ensures device safety, reduces latency, and achieves isolation of various external devices.
Smart Images

Figure CN223829056U_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application belongs to the technical field of electronics, and particularly relates to a multi-path charging circuit and an electronic device. BACKGROUND
[0002] For a device with multiple interface modules, when multiple interface modules are simultaneously connected with external devices and charging is performed, the switching of the interface modules needs to be reasonably controlled, otherwise short circuits between interfaces can be caused, resulting in damage to the device. CONTENT OF THE UTILITY MODEL
[0003] The present application aims to provide a multi-path charging circuit and an electronic device, and aims to solve the problem of interface switching of multiple interfaces.
[0004] A first aspect of the present application provides a multi-path charging circuit, comprising: a first interface and a second interface, the first interface and the second interface are both used to be connected with an external device, the first interface comprises a power pin and a detection pin, and the second interface comprises a power pin; a plurality of switch modules, the switch modules correspond to the interfaces one by one, and a first end of the switch module is connected with the power pin of the corresponding interface; a gating controller, the gating controller is connected with a control end of each of the switch modules and the first interface and the second interface, and the gating controller is used to control at most one of the switch modules to be turned on according to a level of the detection pin and levels of the power pins, and the level of the detection pin is used to reflect whether the first interface is connected with the external device.
[0005] In one embodiment, a second end of each of the switch modules is used to be connected with an internal power line.
[0006] In one embodiment, the switch module comprises two power switch devices connected in reverse series.
[0007] In one embodiment, the plurality of switch modules comprises a first switch module and a second switch module; a first end of the first switch module is connected with the power pin of the first interface, and a first end of the second switch module is connected with the power pin of the second interface; the gating controller is connected with the first switch module, the second switch module and the detection pin of the first interface, the first switch module and the second switch module are normally open switches, and the gating controller is used to control the second switch module to be turned off according to the level of the power pin of the first interface and control the first switch module to be turned on according to the level of the detection pin of the first interface and the level of the power pin of the second interface in the case that the first interface and the second interface are simultaneously connected with the external device.
[0008] In one embodiment, the gate control includes a first voltage dividing resistor, a second voltage dividing resistor, a third voltage dividing resistor, a fourth voltage dividing resistor, a fifth voltage dividing resistor, a sixth voltage dividing resistor, a seventh voltage dividing resistor, a first detection switch device, and a second detection switch device; a first end of the first detection switch device is connected to a control end of the first switch module, and is connected to a voltage source through the first voltage dividing resistor, a second end of the first detection switch device is grounded, and a control end of the first detection switch device is connected to a detection pin of the first interface through the third voltage dividing resistor, is connected to a power pin of the second interface through the fourth voltage dividing resistor, and is grounded through the second voltage dividing resistor; a first end of the second detection switch device is connected to a control end of the second switch module, and is connected to the voltage source through the fifth voltage dividing resistor, a second end of the second detection switch device is grounded, and a control end of the second detection switch device is connected to the power pin of the first interface through the seventh voltage dividing resistor; the first detection switch device and the second detection switch device are used to be turned on when a voltage at the control end is greater than a first threshold value, and the first switch module and the second switch module are used to be turned on when a voltage at the control end is greater than a second threshold value; and in a case where the first interface is connected to the external device, the detection pin is grounded.
[0009] In one embodiment, the interface further includes a data pin, and the application further includes a data transmission module, which is connected to the data pin of each interface and the gate control; the data transmission module is used to select and transmit a data signal of the corresponding interface according to the turned-on switch module.
[0010] A second aspect of the embodiments of the application provides a multi-channel charging circuit, including: a plurality of interfaces, the interface is used to be connected to an external device, and the interface includes a power pin and a detection pin; a plurality of switch modules, the switch module corresponds to the interface one by one, and a first end of the switch module is connected to the power pin of the corresponding interface; a gate control, which is connected to each detection pin and a control end of each switch module, is used to control the switch module corresponding to one of the interfaces to be turned on and the remaining switch modules to be turned off in each interface whose level of the detection pin is a set level.
[0011] In one embodiment, the gate control unit comprises a detection unit and a plurality of detection switch devices, the plurality of detection switch devices correspond to the plurality of switch modules one by one; each detection switch device is connected to the control end of the corresponding switch module, and the detection unit is connected to each detection pin and the control end of each detection switch device; the detection unit is configured to control the conduction and shutdown of each switch module through each detection switch device according to the level of each detection pin.
[0012] In one embodiment, the detection unit comprises a complex programmable logic device.
[0013] A second aspect of the embodiments of the present application provides an electronic device, which comprises the multi-channel charging circuit as described above.
[0014] In one embodiment, the electronic device comprises an internal power supply circuit, which is connected to the multi-channel charging circuit, and is configured to obtain power from the external device through the multi-channel charging circuit to supply power to other power-consuming modules of the electronic device.
[0015] In one embodiment, the electronic device further comprises an energy storage device, which is connected to the internal power supply circuit.
[0016] Compared with the prior art, the embodiments of the present application have the beneficial effect that, after detecting the connection status of each interface and the external device through the gate control unit, at most one of the switch modules can be controlled to be turned on according to the connection status, so as to avoid the short circuit between the interfaces. BRIEF DESCRIPTION OF DRAWINGS
[0017] Figure 1 A schematic diagram of the multi-channel charging circuit provided by one embodiment of the present application;
[0018] Figure 2 Another schematic diagram of the multi-channel charging circuit provided by one embodiment of the present application;
[0019] Figure 3 A circuit schematic diagram of the multi-channel charging circuit provided by one embodiment of the present application;
[0020] Figure 4 Another circuit schematic diagram of the multi-channel charging circuit provided by one embodiment of the present application. DETAILED DESCRIPTION
[0021] In order to make the technical problems to be solved by the present application, the technical solutions and beneficial effects more clearly understood, the present application will be further described in detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0022] It is to be noted that when an element is referred to as being "fixed" or "disposed" on another element, it can be directly on the other element or indirectly on the other element with intervening elements present. When an element is referred to as being "connected" to another element, it can be directly connected to the other element or indirectly connected to the other element with intervening elements present.
[0023] It is to be understood that the terms "length", "width", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer" and the like, as referring to the orientation or position of an element, are described based on the orientation or position shown in the drawings, and are merely for convenience of description and simplification of description, and do not indicate or imply that the device or element referred to must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be construed as limiting the application.
[0024] In addition, the terms "first", "second", "third", etc. are used only for descriptive purposes and cannot be construed as indicating or implying relative importance or an implied indication of the number of technical features indicated. Therefore, the features defined with "first", "second" can explicitly or implicitly include one or more of the features. In the description of the application, the meaning of "a plurality of" is two or more, unless otherwise specifically limited.
[0025] Figure 1 A schematic diagram of a multi-path charging circuit provided by the first embodiment of the application is shown, only parts related to the embodiment are shown for convenience of description, and are described in detail as follows:
[0026] A multi-path charging circuit 10, comprising: a plurality of interfaces 100, a plurality of switch modules 200 and a gating controller 300.
[0027] The interface 100 is used to connect with the external device 20, and the interface 100 includes a power pin and a detection pin. The switch module 200 corresponds to the interface 100 one by one, and the first end of the switch module 200 is connected with the power pin of the corresponding interface. The level of the detection pin is used to reflect whether the corresponding interface 100 is connected with the external device 20. The external device 20 can be an external power supply in particular, and the power pin is used to transmit the electric energy provided by the external device 20.
[0028] The gating controller 300 is connected with each detection pin and the control end of each switch module 200 respectively, and the gating controller 300 is used to control the switch module 200 corresponding to one of the interfaces 100 to be turned on and the rest of the switch modules 200 to be turned off among the interfaces 100 whose levels are set levels.
[0029] In an embodiment, as Figure 2As shown, the multi-channel charging circuit 10 specifically includes two interfaces 100 (the first interface 110 and the second interface 120, respectively). The selection controller 300 is connected to the control terminal of each switch module 200 and the first interface 110 and the second interface 120, respectively. The selection controller 300 is used to control at most one switch module 200 to be turned on according to the level of the detection pin of the first interface 110 and the level of each power supply pin.
[0030] Specifically, the gating controller 300 can determine the connection status between each interface 100 and the external device 20 based on the level of the detection pin and the level of the power supply pin. The gating controller 300 can then control at most one of the switching modules 200 to be turned on based on the connection status. For example, it can control the switching device in at most one switching module 200 to be turned on and the switching devices in the other switching modules 200 to be turned off, so as to avoid short circuits between the interfaces 100.
[0031] In some embodiments, the interface 100 may be a USB interface, a Type-C interface, or a POGO PIN interface.
[0032] In one embodiment, the second end of each switch module 200 is used to connect to an internal power line.
[0033] It is understandable that when a switch module 200 is turned on, the power pin of the corresponding interface 100 will be connected to the internal power line, so that when the interface 100 is connected to the external device 20, the internal power line is powered by the power provided by the external device 20.
[0034] Among them, such as Figure 3 As shown, the internal power supply line can specifically be a DC bus VBUS. The DC bus VBUS can be connected to other power modules or energy storage modules. It is understood that the energy storage module can also supply power to the external device 20 in reverse through multiple charging circuits.
[0035] In one embodiment, the switching module 200 includes two power switching devices connected in reverse series. The control terminals of both power switching devices connected in reverse series are connected to the gating controller 300.
[0036] For example, the power switching device can be a MOSFET. By connecting two MOSFETs in reverse series between the corresponding interface 100 and the internal power line, the power transmission of their respective body diodes can be avoided when both MOSFETs are turned off, thereby completely disconnecting the connection between the corresponding interface 100 and the internal power line.
[0037] When both the power switch devices are N-type MOS tubes, the reverse series connection of the two power switch devices specifically refers to the series connection of the sources of the two N-type MOS tubes in mutual connection. The power switch devices can also be other types of devices, such as P-type MOS tubes, and the embodiments will not be described again.
[0038] In an embodiment, as shown in FIG. 1, the multi-path charging circuit 10 specifically includes two switch modules 200 (a first switch module 210 and a second switch module 220). Figure 3
[0039] The first end of the first switch module 210 is connected with the power pin of the first interface 110, and the first end of the second switch module 220 is connected with the power pin of the second interface 120; the gating controller 300 is connected with the first switch module 210, the second switch module 220 and the detection pin of the first interface 110, respectively, and is used to control at least one of the first switch module 210 and the second switch module 220 to be turned on and the other switch module 200 to be turned off in the case that the first interface 110 and the second interface 120 are connected with the external device 20. Specifically, the gating controller 300 is used to control the second switch module 220 to be turned off according to the level of the power pin of the first interface 110 and control the first switch module 210 to be turned on according to the level of the detection pin of the first interface 110 and the level of the power pin of the second interface 120 in the case that the first interface 110 and the second interface 120 are simultaneously connected with the external device 20.
[0040] For the convenience of description, in the case that the first interface 110 and the second interface 120 are connected with the external device 20, the first switch module 210 will be controlled to be turned on and the second switch module 220 will be controlled to be turned off in the subsequent embodiments.
[0041] It can be understood that the connection of the interface 100 with the external device 20 can be determined according to the level change of the detection pin, and in some embodiments, the detection pin can be specifically a ground pin used to be connected with the ground end of the external device 20. For the convenience of description, the detection pin is used to be connected with the ground end of the external device 20 in the subsequent embodiments.
[0042] In the implementation process, the first switch module 210 and the second switch module 220 can be set as normally open switches.
[0043] In the case that the first switch module 210 and the second switch module 220 are normally open switches, in the case that both the interfaces 100 are connected with the external device 20, the gating controller 300 controls the second switch module 220 to be turned off to avoid the short circuit between the first switch module 210 and the second switch module 220.
[0044] In the case that the first switch module 210 and the second switch module 220 are both normally closed switches, and both interfaces 100 are connected with the external device 20, the gate controller 300 can control the first switch module 210 to be conductive.
[0045] In the case that the first switch module 210 is a normally open switch, the second switch module 220 is a normally closed switch, and both interfaces 100 are connected with the external device 20, the gate controller 300 does not need to control the first switch module 210 and the second switch module 220.
[0046] In the case that only one interface 100 is connected with the external device 20, the gate controller 300 can also control the switch module 200 corresponding to the other interface 100 to be disconnected.
[0047] In an embodiment, the gate controller 300 includes a first voltage dividing resistor R1, a second voltage dividing resistor R2, a third voltage dividing resistor R3, a fourth voltage dividing resistor R4, a fifth voltage dividing resistor R5, a sixth voltage dividing resistor R6, a seventh voltage dividing resistor R7, a first detection switch device Q1, and a second detection switch device Q2. The first end of the first detection switch device Q1 is connected with the control end of the first switch module 210, and is connected with the voltage source VCC through the first voltage dividing resistor R1. The second end of the first detection switch device Q1 is grounded. The control end of the first detection switch device Q1 is connected with the detection pin of the first interface 110 through the third voltage dividing resistor R3, and is connected with the power pin of the second interface 120 through the fourth voltage dividing resistor R4. The first end of the second detection switch device Q2 is connected with the control end of the second switch module 220, and is connected with the voltage source VCC through the fifth voltage dividing resistor R5. The second end of the second detection switch device Q2 is grounded. The control end of the second detection switch device Q2 is connected with the power pin of the first interface 110 through the seventh voltage dividing resistor R7. The first detection switch device Q1 and the second detection switch device Q2 are used to be conductive when the voltage at the control end is greater than a first threshold value. The first switch module 210 and the second switch module 220 are used to be conductive when the voltage at the control end is greater than a second threshold value.
[0048] The first detection switch device Q1 and the second detection switch device Q2 can both be N-type MOS tubes.
[0049] For example, the first switching module 210 includes N-type MOSFETs Q3 and Q4 connected in reverse series, and the second switching module 220 includes N-type MOSFETs Q5 and Q6 connected in reverse series. Taking the first switching module 210 as an example, the drain of N-type MOSFET Q3 is connected to the power supply transistor of the first interface 110, the source of N-type MOSFET Q3 is connected to the source of N-type MOSFET Q4, the drain of N-type MOSFET Q4 is connected to the internal power supply line, and the gate of N-type MOSFET Q3 is connected to the gate controller 300 and the gate of N-type MOSFET Q4.
[0050] When neither the first interface 110 nor the second interface 120 is connected to the external device 20, both the first detection switch Q1 and the second detection switch Q2 are turned off, and both the first switch module 210 and the second switch module 220 are turned on.
[0051] When the first interface 110 is connected to the external device 20 and the second interface 120 is not connected to the external device 20, the voltage of the power supply pin of the first interface 110 will turn on the second detection switch device Q2, thereby grounding the control terminal of the second switch module 220, and finally turning off the second switch module 220, thus preventing the voltage of the first interface 110 from flowing back to the second interface 120.
[0052] When the second interface 120 is connected to the external device 20 and the first interface 110 is not connected to the external device 20, the voltage of the power supply pin of the second interface 120 will turn on the first detection switch device Q1, thereby grounding the control terminal of the first switch module 210, and finally turning off the first switch module 210, thus preventing the voltage of the second interface 120 from flowing back to the first interface 110.
[0053] When both the first interface 110 and the second interface 120 are connected to the external device 20, the voltage at the power pin of the first interface 110 will turn on the second detection switch Q2, thereby grounding the control terminal of the second switch module 220 and ultimately turning off the second switch module 220. Since the control terminal of the first detection switch Q1 is connected to the detection pin of the first interface 110 through the third voltage divider resistor R3, the first detection switch Q1 will remain off, thus turning on the first switch module 210.
[0054] This embodiment implements the switching of interface 100 only through hardware, which can effectively reduce latency and isolate each external device from each other to avoid security risks.
[0055] In one embodiment, such as Figure 4 As shown, each interface 100 includes a detection pin ( Figure 4The diagram only shows detection pin 1, detection pin 2, ..., detection pin n). The gating controller 300 is connected to each detection pin and the control terminal of each switch module 200. The gating controller 300 is used to control one corresponding switch module 200 to be turned on and the other switch modules 200 to be turned off when one of the interfaces 100 is connected to the external device 20. The gating controller 300 is also used to control one corresponding switch module 200 to be turned on and the other switch modules 200 to be turned off when multiple interfaces 100 are connected to the external device 20.
[0056] Understandably, after interface 100 is connected to external device 20, the voltage of the detection pin will be pulled low, and the gating controller 300 can determine which interfaces 100 are connected to external device 20 based on the voltage of each detection pin.
[0057] Specifically, when only one interface 100 is connected to the external device 20, the gating controller 300 can control the switch module 200 corresponding to that interface 100 to be turned on.
[0058] When multiple interfaces 100 are connected to external devices 20, the selection controller 300 can select one of the corresponding switch modules 200 to be turned on.
[0059] For example, the gating controller 300 can control a designated switch module 200 to conduct based on the voltage levels of each detection pin by querying a preset mapping table. Alternatively, after determining the connection status of each interface 100 to the external device based on the voltage levels of each detection pin, the gating controller 300 can control the switch module 200 corresponding to the interface 100 with the highest charging priority to conduct, and control the remaining switch modules 200 to turn off, when multiple interfaces 100 are connected to the external device 20.
[0060] In one embodiment, the gating controller 300 includes a detection unit U1 and a plurality of detection switching devices ( Figure 4 The diagram shows only detection switches Q7, Q8, and Q9. Each detection switch corresponds to a different switch module 200. Each detection switch is connected to the control terminal of its corresponding switch module 200. The detection unit U1 is connected to each detection pin and the control terminal of each detection switch. The detection unit U1 is used to control the switching modules 200 to turn on and off based on the voltage levels of each detection pin through the detection switches.
[0061] Understandably, when detecting whether a switching device is on or off, the voltage at the control terminal of the switching module 200 can be changed to control the switching module 200 to turn on or off.
[0062] For example, one of the switch modules 200 is taken as an example, the corresponding detection switch device is an N-type MOS tube, the first end of the detection switch device is connected with the control end of the switch module 200, and is connected with the voltage source VCC through the eighth voltage dividing resistor, the second end of the detection switch device is grounded, the control end of the detection switch device is connected with the detection unit U1, and is grounded through the ninth voltage dividing resistor, and the detection unit U1 can control the control end of the detection switch device to control the switch module 200.
[0063] In an embodiment, the detection unit U1 includes a complex programmable logic device (CPLD).
[0064] In some embodiments, the detection unit U1 can include a field programmable gate array (FPGA) and the like microcontroller.
[0065] In an embodiment, a data transmission module S1 is further included, the interface 100 further includes a data pin, the data transmission module S1 is connected with the data pin of each interface 100 and the gating controller 300, and the data transmission module S1 is used for selecting and transmitting the data signal of the corresponding interface 100 according to the switch module 200 that is turned on. The data transmission module S1 is provided with a data output end CC, and the data output end CC can be connected with the internal control module.
[0066] In the case where the multi-channel charging circuit 10 only includes the first interface 110 and the second interface 120, the data transmission module S1 can include a two-way digital switch, the two-way digital switch can be connected with the data pin of the first interface 110, the data pin of the second interface 120, the detection pin of the first interface 110 and the internal control module, the two-way digital switch can be connected with the internal control module through the data pin of the second interface 120 in the case where the detection pin is not grounded, and the two-way digital switch can be connected with the internal control module through the data pin of the first interface 110 in the case where the detection pin is grounded.
[0067] The internal control module can be used for data exchange with the external device 20, for example, the charging parameters can be exchanged so as to charge.
[0068] In the case where the multi-channel charging circuit 10 includes a plurality of interfaces 100, the data transmission module S1 can be a multi-way digital switch, the multi-way digital switch is connected with the data pin of each interface 100, the detection unit U1 and the internal control module, and the multi-way digital switch can be connected with the internal control module through the data pin of the corresponding interface 100 according to the control signal provided by the detection unit U1. It can be understood that the detection unit U1 can output the corresponding control signal to connect the data pin of the corresponding interface 100 with the internal control module while determining the switch module 200 that is turned on.
[0069] An embodiment of the present application provides an electronic device, comprising the multi-path charging circuit according to any one of the preceding embodiments.
[0070] The electronic device can be a smart device such as a mobile phone, a computer or a tablet, or a vehicle-mounted electronic device.
[0071] The electronic device has all the technical features of the multi-path charging circuit, and thus has the beneficial effects of the multi-path charging circuit. Details are not repeated in this embodiment.
[0072] In an embodiment, the electronic device comprises an internal power supply circuit, which is connected to the multi-path charging circuit, and is configured to obtain power from the external device through the multi-path charging circuit to supply power to other power-consuming modules of the electronic device. The power-consuming modules include display devices and sensors, and the internal power supply circuit can be a direct current bus.
[0073] In an embodiment, the electronic device further comprises an energy storage device, such as a battery, which is connected to the internal power supply circuit. The energy storage device can realize bidirectional power transmission after being connected to the external device through the internal power supply circuit and the multi-path charging circuit. The external device can charge the energy storage device, and the energy storage device can supply power to the external device.
[0074] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above functional units and modules is taken as an example for illustration. In actual applications, the above functions can be completed by different functional units or modules according to needs, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit or module in the embodiment can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit. In addition, the specific names of each functional unit or module are only for easy distinction, and do not limit the protection scope of the present application. The specific working process of the units or modules in the system can refer to the corresponding process in the preceding method embodiments, which will not be repeated here.
[0075] In the above embodiments, the description of each embodiment has its own emphasis, and the parts not described or recorded in detail in a certain embodiment can be referred to the relevant description of other embodiments.
[0076] The above examples are only used to illustrate the technical solutions of the present application, but not limit the same; although the present application has been described in detail with reference to the foregoing examples, those skilled in the art should understand that the technical solutions recorded in the foregoing examples can be modified, or some technical features can be replaced by equivalent ones; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application.
Claims
1. A multi-channel charging circuit, characterized in that, include: A first interface and a second interface, both of which are used to connect to external devices. The first interface includes a power pin and a detection pin, and the second interface includes a power pin. Multiple switch modules, each corresponding to an interface, with the first end of each switch module connected to the power pin of the corresponding interface; A gating controller is connected to the control terminals of each of the switch modules, as well as the first interface and the second interface. The gating controller is used to control at most one of the switch modules to be turned on based on the level of the detection pin and the level of each of the power pins. The level of the detection pin is used to reflect whether the first interface is connected to the external device.
2. The multi-channel charging circuit as described in claim 1, characterized in that, The second end of each of the aforementioned switch modules is used to connect to the internal power supply line.
3. The multi-channel charging circuit as described in claim 1, characterized in that, The switching module includes two power switching devices connected in reverse series.
4. The multi-channel charging circuit as described in any one of claims 1 to 3, characterized in that, The plurality of switch modules include a first switch module and a second switch module; a first end of the first switch module is connected to the power pin of the first interface, and a first end of the second switch module is connected to the power pin of the second interface. The gating controller is connected to the detection pins of the first switch module, the second switch module, and the first interface, respectively. The first switch module and the second switch module are normally open switches. The gating controller is used to control the second switch module to turn off according to the power pin level of the first interface when the first interface and the second interface are simultaneously connected to the external device, and to control the first switch module to turn on according to the detection pin level of the first interface and the power pin level of the second interface.
5. The multi-channel charging circuit as described in claim 4, characterized in that, The gating controller includes a first voltage divider resistor, a second voltage divider resistor, a third voltage divider resistor, a fourth voltage divider resistor, a fifth voltage divider resistor, a sixth voltage divider resistor, a seventh voltage divider resistor, a first detection switch device, and a second detection switch device; The first terminal of the first detection switch device is connected to the control terminal of the first switch module and connected to the voltage source through the first voltage divider resistor. The second terminal of the first detection switch device is grounded. The control terminal of the first detection switch device is grounded through the second voltage divider resistor, connected to the detection pin of the first interface through the third voltage divider resistor, and connected to the power pin of the second interface through the fourth voltage divider resistor. The first terminal of the second detection switch is connected to the control terminal of the second switch module and to the voltage source through the fifth voltage divider resistor. The second terminal of the second detection switch is grounded. The control terminal of the second detection switch is grounded through the sixth voltage divider resistor and connected to the power pin of the first interface through the seventh voltage divider resistor. The first detection switch and the second detection switch are configured to conduct when the voltage at the control terminal is greater than a first threshold, and the first switch module and the second switch module are configured to conduct when the voltage at the control terminal is greater than a second threshold. When the first interface is connected to the external device, the detection pin is grounded.
6. The multi-channel charging circuit as described in any one of claims 1 to 3, characterized in that, It also includes a data transmission module, and the interface further includes data pins. The data transmission module is connected to the data pins of each of the interfaces and the gating controller, respectively. The data transmission module is used to select and transmit the data signal of the corresponding interface according to the on switch module.
7. A multi-channel charging circuit, characterized in that, include: Multiple interfaces for connecting to external devices, each interface including a power pin and a detection pin; Multiple switch modules, each corresponding to one of the interfaces, with the first end of each switch module connected to the power pin of the corresponding interface; A gating controller is connected to the control terminals of each of the detection pins and each of the switch modules. The gating controller is used to control one of the switch modules corresponding to the detection pins to be turned on and the other switch modules to be turned off in each of the interfaces where the level of the detection pin is a set level.
8. The multi-channel charging circuit as described in claim 7, characterized in that, The gating controller includes a detection unit and multiple detection switching devices, and the multiple detection switching devices correspond one-to-one with the multiple switching modules; Each of the detection switching devices is connected to the control terminal of the corresponding switching module, and the detection unit is connected to each of the detection pins and the control terminal of each detection switching device. The detection unit is used to control the conduction and cutoff of each switch module through each detection switch device according to the level of each detection pin.
9. The multi-channel charging circuit as described in claim 8, characterized in that, The detection unit includes a complex programmable logic device.
10. An electronic device, characterized in that, Includes the multi-channel charging circuit as described in any one of claims 1 to 9.