A dual-Type-C charge and discharge protection circuit, device, and protection method
By independently controlling the TypeC charging and discharging logic, using the protection control module to obtain the discharge capability, and configuring the discharge equipment and the power receiving equipment, the problem of short circuit in the traditional dual TypeC circuit is solved and the safety protection of the equipment is achieved.
Patent Information
- Application Number
- CN202210478278.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-29
- Publication Date
- 2025-07-08
- Estimated Expiration
- 2042-04-29
AI Technical Summary
The traditional dual TypeC charging and discharging circuit controls the same switch module to switch the charging and discharging logic through software, resulting in the device being easily short-circuited at different voltage levels, causing the device to burn and damage.
The protection control module is used to independently control the charging and discharging logic. By obtaining the maximum discharge capacity of the TypeC source, the discharge equipment and the power receiving equipment are configured to avoid short circuits, and the voltage output is ensured by using independent charging and discharging modules and transformer control modules.
It realizes independent control of charging and discharging, avoids circuit short circuit caused by malfunctioning of switches, protects TypeC equipment, and extends service life.
Smart Images

Figure CN114825534B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of dual Type-C, and particularly to a dual Type-C charge and discharge protection circuit, device and protection method. Background Art
[0002] USB Type-C is a USB interface form factor standard with a smaller size than both Type-A and Type-B. It can be used as an interface type for both PCs (host devices) and external devices (slave devices, such as mobile phones). USB Type-C has 4 pairs of TX / RX lines, 2 pairs of USBD+ / D-, one pair of SBU, 2 CC lines, and in addition, 4 VBUS lines and 4 ground lines.
[0003] In traditional dual Type-C charging and discharging circuits, the charge and discharge logic is switched by software controlling the same switch module. The charging device and the discharging device must be at the same voltage level. When the two devices are at different levels and the software judgment logic is incorrect, it will cause a direct short circuit between the two Type-C ports, resulting in device burnout. For example, if source C0 requires 20V discharge and source C1 requires 9V charging, and the software logic is incorrect, it will cause a short circuit between 20V and 9V, resulting in the burnout of source C1. Therefore, inventing a reliable dual Type-C charge and discharge protection circuit is an urgent problem for those skilled in the art. Summary of the Invention
[0004] The purpose of this application is to provide a dual Type-C charge and discharge protection circuit, device and protection method. In this solution, when only one Type-C source is inserted, the protection control module obtains the maximum discharge capacity of the Type-C source and controls the discharge module to discharge the system power module; when two Type-C sources are inserted simultaneously, the protection control module judges the discharge capacity of the two Type-C sources and configures the two Type-C sources as a discharging device and a power receiving device. In this application, the charge and discharge control is independent, and there will be no short circuit between the two Type-C female sockets, avoiding circuit burnout caused by incorrect switch operation, achieving the purpose of protecting Type-C devices.
[0005] To solve the above technical problems, this application provides a dual Type-C charge and discharge protection circuit, including: a first Type-C female socket, a second Type-C female socket, a protection control module, a charging module, a voltage conversion control module, a system power module, and a discharge module;
[0006] The first Type-C female socket is electrically connected to the protection control module, the charging module, and the discharge module respectively; the protection control module is electrically connected to the charging module, the voltage conversion control module, and the discharge module respectively;
[0007] The discharge module is electrically connected to the voltage transformation control module and the second Type-C female socket respectively; the charging module is electrically connected to the voltage transformation control module and the second Type-C female socket respectively;
[0008] When the first Type-C female socket is electrically connected to the first Type-C power source and the second Type-C female socket is inserted without power, the protection control module is used to obtain the maximum discharge capacity of the first Type-C power source, and the discharge module is used to discharge to the system power module;
[0009] When the second Type-C female socket is electrically connected to the second Type-C power source and the first Type-C female socket is inserted without power, the protection control module is used to obtain the maximum discharge capacity of the second Type-C power source, and the discharge module is used to discharge to the system power module;
[0010] When the first Type-C female socket and the second Type-C female socket are simultaneously connected to the Type-C power source, the protection control module is used to judge the magnitude of the discharge capacities of the first Type-C power source and the second Type-C power source, set the Type-C power source with the larger discharge capacity as the discharging device, and the discharge module is used to discharge to the system power module; set the Type-C power source with the smaller discharge capacity as the charging device, and the charging module is used to perform charging control;
[0011] The protection control module is used to control the voltage transformation control module to output the rated power supply voltage during charging.
[0012] Preferably, when the first Type-C female socket and the second Type-C female socket are simultaneously connected to the Type-C power source, the protection control module is used to judge the magnitude of the discharge capacities of the first Type-C power source and the second Type-C power source. If the discharge capacities of the first Type-C power source and the second Type-C power source are the same, set the first inserted Type-C power source as the discharging device and the later inserted Type-C power source as the charging device.
[0013] Preferably, the dual Type-C charge and discharge protection circuit further includes a voltage detection module, and the voltage detection module includes a first voltage detection unit and a second voltage detection unit;
[0014] The first voltage detection unit is electrically connected to the first Type-C female socket and the protection control module respectively;
[0015] The second voltage detection unit is electrically connected to the second Type-C female socket and the protection control module respectively.
[0016] Preferably, the discharge module includes a first switch control unit and a second switch control unit;
[0017] The first switch control unit is electrically connected to the first Type-C female socket, the protection control module, and the system power supply module respectively;
[0018] The second switch control unit is electrically connected to the second Type-C female socket, the protection control module, the system power supply module, and the first switch control unit respectively.
[0019] Preferably, the voltage transformation control module includes a voltage transformation control unit, an input control unit, and an output control unit;
[0020] The voltage transformation control unit is electrically connected to the protection control module, the input control unit, and the output control unit respectively;
[0021] The input control unit is electrically connected to the discharge module, and the output control unit is electrically connected to the charging module.
[0022] Preferably, the charging module includes a third switch control unit and a fourth switch control unit;
[0023] The third switch control unit is electrically connected to the protection control module and the system power supply module respectively;
[0024] The fourth switch control unit is electrically connected to the protection control module, the system power supply module, and the third switch control unit respectively.
[0025] Preferably, the first switch control unit includes a first PMOS transistor, a second PMOS transistor, a first NMOS transistor, a second NMOS transistor, and a first diode;
[0026] The gate of the first PMOS transistor is electrically connected to the protection control module. The drain of the first PMOS transistor is electrically connected to the second switch control unit, the system power supply module, and the gate of the first NMOS transistor respectively. The source of the first PMOS transistor is grounded;
[0027] The gate of the second PMOS transistor is electrically connected to the second switch control unit. The drain of the second PMOS transistor is electrically connected to the system power supply module and the gate of the second NMOS transistor respectively. The source of the second PMOS transistor is grounded;
[0028] The drain of the first NMOS transistor is electrically connected to the first Type-C female socket and the charging module respectively. The source of the first NMOS transistor is electrically connected to the source of the second NMOS transistor, the anode of the first diode, and the charging control module respectively. The drain of the second NMOS transistor is electrically connected to the anode of the first diode and the second switch control unit respectively.
[0029] Preferably, the second switch control unit includes a third PMOS transistor, a fourth PMOS transistor, a third NMOS transistor, a fourth NMOS transistor and a second diode;
[0030] The gate of the third PMOS transistor is electrically connected to the protection control module, the drain of the third PMOS transistor is electrically connected to the first switch control unit, the system power supply module and the gate of the third NMOS transistor respectively, and the source of the third PMOS transistor is grounded;
[0031] The gate of the fourth PMOS transistor is electrically connected to the first switch control unit, the drain of the fourth PMOS transistor is electrically connected to the system power supply module and the gate of the fourth NMOS transistor respectively, and the source of the fourth PMOS transistor is grounded;
[0032] The drain of the third NMOS transistor is electrically connected to the first Type-C female socket and the charging module respectively, the source of the third NMOS transistor is electrically connected to the source of the fourth NMOS transistor, the anode of the second diode and the charging control module respectively, and the drain of the fourth NMOS transistor is electrically connected to the anode of the second diode and the first switch control unit respectively.
[0033] To solve the above technical problems, the present application provides a dual Type-C charge and discharge protection device, including the above-mentioned dual Type-C charge and discharge protection circuit. The dual Type-C charge and discharge protection device is provided with a first Type-C female socket and a second Type-C female socket. The first Type-C female socket is used to connect to a first Type-C source, and the second Type-C female socket is used to connect to a second Type-C source.
[0034] To solve the above technical problems, the present application provides a dual Type-C charge and discharge protection method, which is applied to the above-mentioned dual Type-C charge and discharge protection circuit. The dual Type-C charge and discharge protection method includes:
[0035] When the first Type-C source is connected to the first Type-C female socket and the second Type-C female socket is inserted without power, control the protection control module to obtain the maximum discharge capacity of the first Type-C source;
[0036] Control the discharge module to discharge the system power supply module according to the maximum discharge capacity of the first Type-C source;
[0037] When the second Type-C source is connected to the second Type-C female socket and the first Type-C female socket is inserted without power, control the protection control module to obtain the maximum discharge capacity of the second Type-C source;
[0038] Control the discharge module to discharge the system power module according to the maximum discharge capacity of the second Type-C source;
[0039] When the first Type-C female socket and the second Type-C female socket are simultaneously connected to a Type-C source, control the protection control module to judge the discharge capacity of the first Type-C source and the second Type-C source;
[0040] Set the Type-C source with a larger discharge capacity as the discharging device, and control the discharge module to discharge to the system power module;
[0041] Set the Type-C source with a smaller discharge capacity as the charging device, and the charging module performs charging control;
[0042] Control the protection control module to control the voltage conversion control module to output the rated power supply voltage during charging.
[0043] A dual-Type-C charge and discharge protection circuit, device and protection method of the present invention have the following beneficial effects. A dual-Type-C charge and discharge protection circuit disclosed by the present invention includes: a first Type-C female socket, a second Type-C female socket, a protection control module, a charging module, a voltage conversion control module, a system power module and a discharge module; when the first Type-C female socket is electrically connected to a first Type-C source and the second Type-C female socket is inserted without power, the protection control module is used to obtain the maximum discharge capacity of the first Type-C source, and the discharge module is used to discharge to the system power module; when the second Type-C female socket is electrically connected to a second Type-C source and the first Type-C female socket is inserted without power, the protection control module is used to obtain the maximum discharge capacity of the second Type-C source, and the discharge module is used to discharge to the system power module; when the first Type-C female socket and the second Type-C female socket are simultaneously connected to a Type-C source, the protection control module is used to judge the discharge capacity of the first Type-C source and the second Type-C source, set the Type-C source with a larger discharge capacity as the discharging device, and the discharge module is used to discharge to the system power module; set the Type-C source with a smaller discharge capacity as the charging device, and the charging module is used to perform charging control; the protection control module is used to control the voltage conversion control module to output the rated power supply voltage during charging. Therefore, the present invention separately controls charging and discharging, and the charging logic and the discharging logic do not affect each other when they fail, the charge and discharge control is independent, avoiding the circuit from being burned due to misoperation of the switch, and there is no short circuit between the two Type-C female sockets, achieving the purpose of protecting the Type-C device. Description of the Drawings
[0044] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will further explain the present invention in conjunction with the drawings and embodiments. The drawings in the following description are only partial embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings:
[0045] Figure 1 is a schematic structural diagram of a dual Type-C charge and discharge protection circuit according to a preferred embodiment of the present invention;
[0046] Figure 2 is a schematic structural diagram of a dual Type-C charge and discharge protection circuit according to a preferred embodiment of the present invention;
[0047] Figure 3 is a schematic structural diagram of a dual Type-C charge and discharge protection circuit according to a preferred embodiment of the present invention;
[0048] Figure 4 is a schematic structural diagram of a voltage detection module according to a preferred embodiment of the present invention;
[0049] Figures 5 to 7 is a schematic structural diagram of a discharge module according to a preferred embodiment of the present invention.
[0050] Figure 8 is a schematic structural diagram of a voltage conversion control module according to a preferred embodiment of the present invention.
[0051] Figure 9 is a flowchart of a dual Type-C charge and discharge protection method according to a preferred embodiment of the present invention. Detailed implementation manners
[0052] The core of this application is to provide a dual Type-C charge and discharge protection circuit, device and method. The present invention controls charging and discharging separately, and the charging logic and discharging logic do not affect each other when they fail. The charge and discharge controls are independent, and there will be no short circuit between the two Type-C female sockets, achieving the purpose of protecting Type-C devices.
[0053] To make the objectives, technical solutions and advantages of the embodiments of this application clearer, the following will clearly and completely describe the technical solutions in the embodiments of this application in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, rather than all of them. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of this application.
[0054] Please refer to Figure 1 , Figure 1The figure is a schematic structural diagram of a dual Type-C charge and discharge protection circuit provided by this application, which includes a first Type-C female socket 1, a second Type-C female socket 2, a protection control module 3, a charging module 4, a voltage conversion control module 5, a system power module 6, and a discharge module 7;
[0055] The first Type-C female socket 1 is electrically connected to the protection control module 3, the charging module 4, and the discharge module 7 respectively; the protection control module 3 is electrically connected to the charging module 4, the voltage conversion control module 5, and the discharge module 7 respectively;
[0056] The discharge module 7 is electrically connected to the voltage conversion control module 5 and the second Type-C female socket 2 respectively; the charging module 4 is electrically connected to the voltage conversion control module 5 and the second Type-C female socket 2 respectively;
[0057] When the first Type-C female socket 1 is electrically connected to the first Type-C power source and the second Type-C female socket 2 is inserted without power, the protection control module 3 is used to obtain the maximum discharge capacity of the first Type-C power source, and the discharge module 7 is used to discharge to the system power module 6;
[0058] When the second Type-C female socket 2 is electrically connected to the second Type-C power source and the first Type-C female socket 1 is inserted without power, the protection control module 3 is used to obtain the maximum discharge capacity of the second Type-C power source, and the discharge module 7 is used to discharge to the system power module 6;
[0059] When the first Type-C female socket 1 and the second Type-C female socket 2 are both connected to the Type-C power source at the same time, the protection control module 3 is used to judge the magnitude of the discharge capacities of the first Type-C power source and the second Type-C power source, set the Type-C power source with the larger discharge capacity as the discharging device, and the discharge module 7 is used to discharge to the system power module 6; set the Type-C power source with the smaller discharge capacity as the charging device, and the charging module 4 is used to perform charging control;
[0060] The protection control module 3 is used to control the voltage conversion control module 5 to output the rated supply voltage during charging.
[0061] In the prior art, the charging device and the discharging device connected to the two Type-C interfaces of the dual Type-C device must be at the same voltage level. When the charging device and the discharging device are at different levels and the software judgment logic is incorrect, it will cause the two Type-C interfaces to be directly short-circuited, resulting in device burnout. For example, if the first Type-C power source requires 20V discharge and the second Type-C power source C1 requires 9V charging, if the software logic is incorrect, it will cause a short circuit between 20V and 9V, burning out the second Type-C power source.
[0062] In view of the above disadvantages, in this application, the independent control of dual Type-C is achieved through the cooperation of the first Type-C female socket 1, the second Type-C female socket 2, the protection control module 3, the charging module 4, the voltage conversion control module 5, the system power supply module 6 and the discharge module 7, effectively avoiding the short-circuit fault of the Type-C interface, protecting the dual Type-C interface and extending the service life of the dual Type-C device.
[0063] Specifically, when the first Type-C source is inserted into the Type-C female socket 1 and the second Type-C female socket 2 is inserted without power, the protection control module 3 conducts CC communication with the first Type-C source through Pin3 / Pin4, informing the first Type-C source to provide the maximum discharge capacity. At this time, the first Type-C source serves as a discharge device and discharges through the discharge module 7 to supply the system power supply module 6.
[0064] Specifically, when the second Type-C source is inserted into the second Type-C female socket 2 and the first Type-C female socket 1 is inserted without power, the protection control module 3 conducts CC communication with the second Type-C source through Pin6 / Pin7, informing the second Type-C source to provide the maximum discharge capacity. At this time, the second Type-C source serves as a discharge device and discharges through the discharge module 7 to supply the system power supply module 6.
[0065] Specifically, when both the first Type-C female socket 1 and the second Type-C female socket 2 have Type-C sources connected, the protection control module 3 conducts CC communication with C0 through Pin3 / Pin4 and with the second Type-C source through Pin6 / Pin7. The one with the larger discharge capacity among the first Type-C source and the second Type-C source serves as the discharge device, and the other serves as the charging device. The discharge device supplies power to the system power supply module 6 through the discharge module 7; the protection control module 3 controls the voltage conversion control module 5 to convert into a suitable power supply, and then charges the device at the Type-C source end through the charging module 4.
[0066] In summary, the present application provides a dual-TypeC charge and discharge protection circuit. In this solution, the first TypeC female socket 1 is electrically connected to the protection control module 3, the charging module 4, and the discharge module 7 respectively; the protection control module 3 is electrically connected to the charging module 4, the voltage conversion control module 5, and the discharge module 7 respectively; the discharge module 7 is electrically connected to the voltage conversion control module 5 and the second TypeC female socket 2 respectively; the charging module 4 is electrically connected to the voltage conversion control module 5 and the second TypeC female socket 2 respectively; when only one TypeC source is inserted, the protection control module obtains the maximum discharge capacity of the TypeC source and controls the discharge module to discharge the system power supply module; when two TypeC sources are inserted simultaneously, the protection control module judges the discharge capacity of the two TypeC sources, configures the two TypeC sources as a discharge device and a power receiving device. In the present application, the charge and discharge control is independent, and there is no short circuit between the two TypeC female sockets, achieving the purpose of protecting TypeC devices.
[0067] Based on the above embodiments:
[0068] As a preferred embodiment, when the first TypeC female socket 1 and the second TypeC female socket 2 are both connected to a TypeC source at the same time, the protection control module 3 is used to judge the discharge capacity of the first TypeC source and the second TypeC source. If the discharge capacities of the first TypeC source and the second TypeC source are the same, the first inserted TypeC source is set as the discharge device, and the later inserted TypeC source is set as the charging device.
[0069] Specifically, when both the first TypeC female socket 1 and the second TypeC female socket 2 are connected to a TypeC source, the protection control module 3 performs CC communication through Pin3 / Pin4 and C0, and performs CC communication with the second TypeC source through Pin6 / Pin7. If the first TypeC source is inserted first, the protection control module 3 sets the first TypeC source as the discharge device, that is, discharges the system power supply module 6 through the first TypeC source, and at the same time sets the second TypeC source as the charging device, that is, charges the second TypeC source with the electric energy in the system power supply module 6 through the second TypeC female socket. It can be understood that in another preferred embodiment, the first inserted TypeC source can be set as the charging device, and the later inserted TypeC source can be set as the discharge device, which is not specifically limited herein.
[0070] Please refer to Figure 2 , Figure 2 , which is a schematic structural diagram of a dual-TypeC charge and discharge protection circuit provided by the present application.
[0071] As a preferred embodiment, a dual Type-C charge and discharge protection circuit further includes a voltage detection module, which includes a first voltage detection unit 81 and a second voltage detection unit 82;
[0072] The first voltage detection unit 81 is electrically connected to the first Type-C female socket 1 and the protection control module 3 respectively;
[0073] The second voltage detection unit 82 is electrically connected to the second Type-C female socket 2 and the protection control module 3 respectively.
[0074] Specifically, the voltage detection module is used to detect the instantaneous voltage when the Type-C source is inserted, so as to prevent the Type-C female socket from being damaged by the mutated high voltage. Among them, the first voltage detection unit 81 is used to detect the voltage of the first Type-C female socket 1, the second voltage detection unit 82 is used to detect the voltage of the second Type-C female socket 2, and the protection control module is used to obtain the voltage division of the first voltage detection unit 81 and the second voltage detection unit 82, and determine whether the voltage division is within the preset range.
[0075] Please refer to Figure 3 , Figure 3 , which is a schematic structural diagram of a dual Type-C charge and discharge protection circuit provided by this application.
[0076] As a preferred embodiment, the discharge module 7 includes a first switch control unit 71 and a second switch control unit 72;
[0077] The first switch control unit 71 is electrically connected to the first Type-C female socket 1, the protection control module 3 and the system power supply module 6 respectively;
[0078] The second switch control unit 72 is electrically connected to the second Type-C female socket 2, the protection control module 3, the system power supply module 6 and the first switch control unit 71 respectively.
[0079] Specifically, when the Type-C source has been inserted into the Type-C female socket and the protection control module 3 has completed communication with the Type-C source, the discharge module 7 starts to work, and there are the following situations:
[0080] 1) The first Type-C source is a discharging device, Pin22 of the protection control module 3 becomes high level, and Pin21 of the protection control module 3 becomes low level. At this time, it is in the first discharge mode, the first switch control unit 71 is turned on, the second switch control unit 72 is turned off, and the first Type-C female socket 1 discharges to the system power supply module 6;
[0081] 2) The second Type-C source is a discharging device. Pin 22 of the protection control module 3 becomes low level, and Pin 21 of the protection control module 3 becomes high level. At this time, it is in the second discharging mode. The first switch control unit 71 is cut off, and the second switch control unit 72 is turned on. The second Type-C female socket 2 discharges power to the system power module 6;
[0082] 3) When the first Type-C source or the second Type-C source needs to be switched from a charging device to a discharging device, the protection control module 3 first changes Pin 22 and Pin 21 to high level. At this time, it is in the third discharging mode. The first switch control unit 71 is cut off, and the second switch control unit 72 is cut off. The first switch control unit 71 or the second switch control unit 72 provides freewheeling for the system. After the first Type-C source or the second Type-C source is switched, it is then switched to the first discharging mode or the second discharging mode to ensure that the system will not suddenly lose power.
[0083] As a preferred embodiment, the voltage transformation control module 5 includes a voltage transformation control unit 51, an input control unit 52, and an output control unit 53;
[0084] The voltage transformation control unit 51 is electrically connected to the protection control module 3, the input control unit 52, and the output control unit 53 respectively;
[0085] The input control unit 52 is electrically connected to the discharging module 7, and the output control unit 53 is electrically connected to the charging module 4.
[0086] Specifically, when the Type-C source is inserted into the Type-C female socket and the protection control module 3 has completed communication with the Type-C source, the voltage transformation control module 5 starts to work. There are the following situations:
[0087] 1) Only 1 Type-C source is inserted or the CC protocol communication fails. The protection control module 3 closes the voltage transformation control module 5 through Pin 29 / Pin 30 / Pin 31, and the voltage transformation control module 5 does not work;
[0088] 2) 2 Type-C sources are inserted. The protection control module 3 has determined one party as the discharging device and the other party as the charging device through CC communication. The protection control module 3 controls the voltage transformation control module 5 to output the required voltage to the charging module 4 through Pin 29 / Pin 30 / Pin 31.
[0089] Among them, if the first Type-C source is the discharging device and the second Type-C source is the charging device, the protection control module 3 controls the electric energy to pass through the input control unit 52 from the first Type-C source through Pin 29 / Pin 30 / Pin 31. The voltage transformation control unit 51 adjusts the voltage and outputs it to the output control unit 53. The charging module 4 then supplies the electric energy to the device connected to the second Type-C source.
[0090] As a preferred embodiment, the charging module 4 includes a third switch control unit 41 and a fourth switch control unit 42;
[0091] The third switch control unit 41 is electrically connected to the protection control module 3 and the system power supply module 6 respectively;
[0092] The fourth switch control unit 42 is electrically connected to the protection control module 3, the system power supply module 6 and the third switch control unit 41 respectively.
[0093] Specifically, when the TypeC source is inserted into the TypeC female socket and the protection control module 3 has completed communication with the TypeC source, there are the following situations:
[0094] 1) The first TypeC source is a charging device. The Pin18 of the protection control module 3 becomes high level, and the Pin17 of the protection control module 3 becomes low level. At this time, it is in the first charging mode. The third switch control unit 41 is turned on, the fourth switch control unit 42 is turned off, and the first TypeC source charges;
[0095] 2) The second TypeC source is a charging device. The Pin18 of the protection control module 3 becomes low level, and the Pin17 of the protection control module 3 becomes high level. At this time, it is in the second charging mode. The third switch control unit 41 is turned off, the fourth switch control unit 42 is turned on, and the second TypeC source charges;
[0096] 3) When the first TypeC source or the second TypeC source needs to be switched from a charging device to a discharging device, the protection control module 3 first makes Pin18 and Pin17 become low level. At this time, it is in the third charging mode (not charging). The third switch control unit 41 is turned off, the fourth switch control unit 42 is turned off. After the first TypeC source or the second TypeC source is switched, it is then switched to the first charging mode or the second charging mode to buffer the charging system.
[0097] Please refer to Figures 5 to 7 , Figures 5 to 7 which is the structural schematic diagram of the discharging module 7 provided by this application.
[0098] As a preferred embodiment, the first switch control unit 71 includes a first PMOS transistor QP18, a second PMOS transistor QP22, a first NMOS transistor QP29A, a second NMOS transistor QP29B and a first diode DP3;
[0099] The gate of the first PMOS transistor QP18 is electrically connected to the protection control module 3. The drain of the first PMOS transistor QP18 is electrically connected to the second switch control unit 72, the system power supply module 6, and the gate of the first NMOS transistor QP29A respectively. The source of the first PMOS transistor QP18 is grounded.
[0100] The gate of the second PMOS transistor QP22 is electrically connected to the second switch control unit 72. The drain of the second PMOS transistor QP22 is electrically connected to the system power supply module 6 and the gate of the second NMOS transistor respectively. The source of the second PMOS transistor QP22 is grounded.
[0101] The drain of the first NMOS transistor QP29A is electrically connected to the first Type-C female socket 1 and the charging module 4 respectively. The source of the first NMOS transistor QP29A is electrically connected to the source of the second NMOS transistor QP29B, the anode of the first diode DP3, and the charging control module respectively. The drain of the second NMOS transistor QP29B is electrically connected to the anode of the first diode DP3 and the second switch control unit 72 respectively.
[0102] As a preferred embodiment, the second switch control unit 72 includes a third PMOS transistor QP17, a fourth PMOS transistor QP21, a third NMOS transistor QP30A, a fourth NMOS transistor QP30B, and a second diode DP2.
[0103] The gate of the third PMOS transistor QP17 is electrically connected to the protection control module 3. The drain of the third PMOS transistor QP17 is electrically connected to the first switch control unit 71, the system power supply module 6, and the gate of the third NMOS transistor QP30A respectively. The source of the third PMOS transistor QP17 is grounded.
[0104] The gate of the fourth PMOS transistor QP21 is electrically connected to the first switch control unit 71. The drain of the fourth PMOS transistor QP21 is electrically connected to the system power supply module 6 and the gate of the fourth NMOS transistor QP30B respectively. The source of the fourth PMOS transistor QP21 is grounded.
[0105] The drain of the third NMOS transistor QP30A is electrically connected to the first Type-C female socket 1 and the charging module 4 respectively. The source of the third NMOS transistor QP30A is electrically connected to the source of the fourth NMOS transistor QP30B, the anode of the second diode DP2, and the charging control module respectively. The drain of the fourth NMOS transistor QP30B is electrically connected to the anode of the second diode DP2 and the first switch control unit 71 respectively.
[0106] Specifically, when the Type-C source is inserted into the Type-C female socket and the protection control module 3 has completed communication with the Type-C source, the discharge module 7 starts to work, and there are the following situations:
[0107] 1) The first Type-C source is a discharging device. Pin22 of the protection control module 3 becomes high level, and Pin21 of the protection control module 3 becomes low level. At this time, it is in the first discharging mode. The first NMOS transistor QP29A and the second NMOS transistor QP29B are turned on, and the third NMOS transistor QP30A and the fourth NMOS transistor QP30B are turned off. The first Type-C female socket 1 discharges to the system power module 6;
[0108] 2) The second Type-C source is a discharging device. Pin22 of the protection control module 3 becomes low level, and Pin21 of the protection control module 3 becomes high level. At this time, it is in the second discharging mode. The first NMOS transistor QP29A and the second NMOS transistor QP29B are turned off, and the third NMOS transistor QP30A and the fourth NMOS transistor QP30B are turned on. The second Type-C female socket 2 discharges to the system power module 6;
[0109] 3) When the first Type-C source or the second Type-C source needs to be switched from a charging device to a discharging device, the protection control module 3 first makes Pin22 and Pin21 become high level. At this time, it is in the third discharging mode. The first NMOS transistor QP29A, the second NMOS transistor QP29B, the third NMOS transistor QP30A, and the fourth NMOS transistor QP30B are all turned off. DP2 or DP3 provides freewheeling for the system. After the first Type-C source or the second Type-C source is switched, it is then switched to the first discharging mode or the second discharging mode to ensure that the system will not suddenly power off.
[0110] As a preferred embodiment, the principles and structures of the third switch control unit 41 and the fourth switch control unit 42 in the charging module 4 of the present application are the same as those in the discharging module. The enabling logic of the charging module is controlled by four MOS transistors QP27A / QP27B / QP28A / QP28B, which will not be elaborated here.
[0111] As a preferred embodiment, the chip model of the protection control module 3 is LDR6282, which functions as the protocol communication and the main control IC as described above. The chip model of the protection control module 3 is not specifically limited herein.
[0112] As a preferred embodiment, please refer to Figure 4 , the voltage detection module 8 performs voltage division through resistors. The protection control module is used to obtain the voltage division of the first voltage detection unit 81 and the second voltage detection unit 82 and determine whether the voltage division is within the preset range.
[0113] Please refer to Figure 8 , Figure 8 is the structural schematic diagram of the voltage conversion control module 5 provided by the present application.
[0114] As a preferred embodiment, the chip model of the voltage conversion control unit 51 is IM5200. The input control unit 52 processes the input power signal through capacitor filtering, and then controls the on / off of the switch through a MOS transistor to enable the input. The output control unit 53 processes the output power signal through capacitor filtering, and then controls the on / off of the switch through a MOS transistor to enable the output.
[0115] Specifically, when only 1 Type-C source is inserted or the CC protocol communication fails, the protection control module 3 turns off the voltage conversion control unit 51 through Pin29 / Pin30 / Pin31, and the voltage conversion control unit 51 does not work. When 2 Type-C sources are inserted, the protection control module 3 determines one party as the discharging device and the other party as the charging device through CC communication. The protection control module 3 controls the voltage conversion control unit 51 through Pin29 / Pin30 / Pin31 to output the required voltage to the charging module 4.
[0116] In summary, in this solution, QP29A / QP29B / QP30A / QP30B in the discharging module 7 will not conduct simultaneously, and QP27A / QP27B / QP28A / QP28B in the charging module 4 will not conduct simultaneously; once the voltage conversion control module 5 gets out of control, no voltage will be output. Therefore, in this application, Pin17, Pin18, Pin21, and Pin22 are set through software to control the on / off states of QP27 to QP30 respectively, forming a control logic, so that QP27 to QP30 will not malfunction and cause burnout; therefore, there will be no short circuit between the two Type-C female connectors in this application, thus achieving the purpose of protecting Type-C devices.
[0117] This application also provides a dual-Type-C charge and discharge protection device, including a dual-Type-C charge and discharge protection circuit. The dual-Type-C charge and discharge protection device is provided with a first Type-C female connector 1 and a second Type-C female connector 2. The first Type-C female connector 1 is used to connect to a first Type-C source, and the second Type-C female connector 2 is used to connect to a second Type-C source.
[0118] This application provides a dual-Type-C charge and discharge protection method, which is applied to a dual-Type-C charge and discharge protection circuit.
[0119] Please refer to Figure 9 , Figure 9 which is the flowchart of a dual-Type-C charge and discharge protection method provided by this application.
[0120] The dual-Type-C charge and discharge protection method includes:
[0121] S1. When the first Type-C source is connected to the first Type-C female socket 1 and the second Type-C female socket 2 is inserted passively, the control and protection control module 3 obtains the maximum discharge capacity of the first Type-C source;
[0122] S2. Control the discharge module 7 to discharge the system power module 6 according to the maximum discharge capacity of the first Type-C source;
[0123] S3. When the second Type-C source is connected to the second Type-C female socket 2 and the first Type-C female socket 1 is inserted passively, the control and protection control module 3 obtains the maximum discharge capacity of the second Type-C source;
[0124] S4. Control the discharge module 7 to discharge the system power module 6 according to the maximum discharge capacity of the second Type-C source;
[0125] S5. When the first Type-C female socket 1 and the second Type-C female socket 2 are connected to the Type-C source at the same time, the control and protection control module 3 judges the magnitude of the discharge capacities of the first Type-C source and the second Type-C source;
[0126] S6. Set the Type-C source with the larger discharge capacity as the discharging device, and control the discharge module 7 to discharge to the system power module 6;
[0127] S7. Set the Type-C source with the smaller discharge capacity as the charging device, and the charging module 4 performs charging control;
[0128] S8. When charging, the control and protection control module 3 controls the voltage conversion control module 5 to output the rated supply voltage.
[0129] As a preferred embodiment, the dual Type-C charge and discharge protection method further includes:
[0130] When the first Type-C female socket and the second Type-C female socket are connected to the Type-C source at the same time, the control and protection control module is used to judge the magnitude of the discharge capacities of the first Type-C source and the second Type-C source;
[0131] If the discharge capacities of the first Type-C source and the second Type-C source are the same, set the first inserted Type-C source as the discharging device and the later inserted Type-C source as the charging device.
[0132] Or, set the later inserted Type-C source as the discharging device and the first inserted Type-C source as the charging device.
[0133] For the introduction of a dual Type-C charge and discharge protection circuit provided in this application, please refer to the above embodiments, and details are not described herein again.
[0134] It should be noted that, in this specification, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0135] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A dual-Type-C charge and discharge protection circuit, characterized in that, Comprising: A first Type-C female socket, a second Type-C female socket, a protection control module, a charging module, a voltage transformation control module, a system power supply module, and a discharging module; The first Type-C female socket is electrically connected to the protection control module, the charging module, and the discharging module respectively; The protection control module is electrically connected to the charging module, the voltage transformation control module, and the discharging module respectively; The discharging module is electrically connected to the voltage transformation control module and the second Type-C female socket respectively; The charging module is electrically connected to the voltage transformation control module and the second Type-C female socket respectively; When the first Type-C female socket is electrically connected to a first Type-C power source and the second Type-C female socket is inserted without power, the protection control module is used to obtain the maximum discharging capacity of the first Type-C power source, and the discharging module is used to discharge to the system power supply module; When the second Type-C female socket is electrically connected to a second Type-C power source and the first Type-C female socket is inserted without power, the protection control module is used to obtain the maximum discharging capacity of the second Type-C power source, and the discharging module is used to discharge to the system power supply module; When the first Type-C female socket and the second Type-C female socket are simultaneously connected to a Type-C power source, the protection control module is used to judge the discharging capacity of the first Type-C power source and the second Type-C power source, set the Type-C power source with a larger discharging capacity as the discharging device, and the discharging module is used to discharge to the system power supply module; Set the Type-C power source with a smaller discharging capacity as the charging device, and the charging module is used to perform charging control; The protection control module is used to control the voltage transformation control module to output a rated power supply voltage during charging.
2. The dual Type-C charge and discharge protection circuit according to claim 1, wherein, When the first Type-C female socket and the second Type-C female socket are simultaneously connected to a Type-C power source, the protection control module is used to judge the discharging capacity of the first Type-C power source and the second Type-C power source. If the discharging capacities of the first Type-C power source and the second Type-C power source are the same, set the first inserted Type-C power source as the discharging device and the later inserted Type-C power source as the charging device.
3. The dual Type-C charge and discharge protection circuit according to claim 1, characterized in that, The dual Type-C charge and discharge protection circuit further includes a voltage detection module, and the voltage detection module includes a first voltage detection unit and a second voltage detection unit; The first voltage detection unit is electrically connected to the first Type-C female socket and the protection control module respectively; The second voltage detection unit is electrically connected to the second Type-C female socket and the protection control module respectively.
4. A dual Type-C charge and discharge protection circuit according to claim 1, characterized in that, The discharging module includes a first switch control unit and a second switch control unit; The first switch control unit is electrically connected to the first Type-C female socket, the protection control module, and the system power supply module respectively; The second switch control unit is electrically connected to the second Type-C female socket, the protection control module, the system power supply module, and the first switch control unit respectively.
5. A dual Type-C charge and discharge protection circuit according to claim 1, characterized in that The voltage transformation control module includes a voltage transformation control unit, an input control unit, and an output control unit; The variable voltage control unit is electrically connected to the protection control module, the input control unit, and the output control unit respectively; The input control unit is electrically connected to the discharge module, and the output control unit is electrically connected to the charging module.
6. The dual Type-C charge and discharge protection circuit according to claim 1, wherein The charging module includes a third switch control unit and a fourth switch control unit; The third switch control unit is electrically connected to the protection control module and the system power supply module respectively; The fourth switch control unit is electrically connected to the protection control module, the system power supply module, and the third switch control unit respectively.
7. A dual Type-C charging and discharging protection circuit according to claim 4, wherein The first switch control unit includes a first PMOS transistor, a second PMOS transistor, a first NMOS transistor, a second NMOS transistor, and a first diode; The gate of the first PMOS transistor is electrically connected to the protection control module. The drain of the first PMOS transistor is electrically connected to the second switch control unit, the system power supply module, and the gate of the first NMOS transistor respectively. The source of the first PMOS transistor is grounded; The gate of the second PMOS transistor is electrically connected to the second switch control unit. The drain of the second PMOS transistor is electrically connected to the system power supply module and the gate of the second NMOS transistor respectively. The source of the second PMOS transistor is grounded; The drain of the first NMOS transistor is electrically connected to the first Type-C female socket and the charging module respectively. The source of the first NMOS transistor is electrically connected to the source of the second NMOS transistor, the anode of the first diode, and the charging control module respectively. The drain of the second NMOS transistor is electrically connected to the anode of the first diode and the second switch control unit respectively.
8. A dual Type-C charge and discharge protection circuit according to claim 4, characterized in that, The second switch control unit includes a third PMOS transistor, a fourth PMOS transistor, a third NMOS transistor, a fourth NMOS transistor, and a second diode; The gate of the third PMOS transistor is electrically connected to the protection control module. The drain of the third PMOS transistor is electrically connected to the first switch control unit, the system power supply module, and the gate of the third NMOS transistor respectively. The source of the third PMOS transistor is grounded; The gate of the fourth PMOS transistor is electrically connected to the first switch control unit. The drain of the fourth PMOS transistor is electrically connected to the system power supply module and the gate of the fourth NMOS transistor respectively. The source of the fourth PMOS transistor is grounded; The drain of the third NMOS transistor is electrically connected to the first Type-C female socket and the charging module respectively. The source of the third NMOS transistor is electrically connected to the source of the fourth NMOS transistor, the anode of the second diode, and the charging control module respectively. The drain of the fourth NMOS transistor is electrically connected to the anode of the second diode and the first switch control unit respectively.
9. A dual-Type C charge and discharge protection device, characterized in that, A dual Type-C charge and discharge protection circuit according to any one of claims 1-8, wherein the dual Type-C charge and discharge protection device is provided with a first Type-C female socket and a second Type-C female socket, the first Type-C female socket is used for connecting to a first Type-C source, and the second Type-C female socket is used for connecting to a second Type-C source.
10. A dual-Type-C charge and discharge protection method, characterized in that, Applied to a dual Type-C charge and discharge protection circuit according to any one of claims 1-8, the dual Type-C charge and discharge protection method includes: When the first Type-C source is connected to the first Type-C female socket and the second Type-C female socket is inserted without power, controlling the protection control module to obtain the maximum discharge capacity of the first Type-C source; Controlling the discharge module to discharge the system power supply module according to the maximum discharge capacity of the first Type-C source; When the second Type-C source is connected to the second Type-C female socket and the first Type-C female socket is inserted without power, controlling the protection control module to obtain the maximum discharge capacity of the second Type-C source; Controlling the discharge module to discharge the system power supply module according to the maximum discharge capacity of the second Type-C source; When the first Type-C female socket and the second Type-C female socket are simultaneously connected to Type-C sources, controlling the protection control module to judge the magnitude of the discharge capacities of the first Type-C source and the second Type-C source; Setting the Type-C source with a larger discharge capacity as the discharge device, and controlling the discharge module to discharge to the system power supply module; Setting the Type-C source with a smaller discharge capacity as the charging device, and the charging module performs charging control; Controlling the protection control module to control the voltage conversion control module to output a rated supply voltage during charging.
Citation Information
Patent Citations
Interface circuit and intelligent equipment
CN112838635A
Battery protection controller and battery charging and discharging protection circuit
WO2021008357A1