A charging and discharging control circuit and electronic equipment
By designing the charge and discharge control circuit in the dual power supply scheme, and using switches and one-way conduction circuits to balance current and voltage, the problem of unbalanced charge and discharge in the existing technology is solved, the life of the power supply is extended, and the standby time of the equipment is improved. .
Patent Information
- Application Number
- CN202211737735.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-31
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2042-12-31
AI Technical Summary
In the existing dual power supply solution, the difference in parasitic impedance and internal resistance of the power supply causes uneven charge and discharge, which affects the life of the power supply and the standby time of the device.
A charging and discharging control circuit is designed. The charging and discharging balance is adjusted between the two power supplies through a parallel control circuit. The switch and the one-way conduction circuit are used to ensure the balanced distribution of current and voltage and avoid self-loss.
It effectively overcomes the problem of uneven charge and discharge, extends the life of the power supply and improves the standby time of the device.
Smart Images

Figure CN116505602B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the technical field of control circuits, and in particular to a charge and discharge control circuit and an electronic device. Background Art
[0002] In recent years, portable electronic devices have increasingly higher requirements for power supplies. While maintaining high-definition, high-speed computing and other high-performance features, mobile phones, tablet computers and other devices have increased their power consumption requirements. In addition, mobile phone manufacturers on the market will also try their best to meet customer needs in terms of standby time, which requires increasing power capacity. Undoubtedly, increasing the capacity of a single power supply or increasing the number of power supplies has become the best solution. Due to the size limitations of some portable electronic devices, they can only compromise with dual power or multi-power solutions. The dual power supply solution will cause power charge and discharge balance problems. At present, the main methods used are dual power hard connection or switching between two power supplies.
[0003] However, in the existing dual power supply solution, hard connection or power switching solution is generally adopted. Since the wiring of the two power supplies connected to the terminal is not completely consistent, this will cause inconsistent charging and discharging. For example, the total charging current is 6A, and the actual distribution to the two power supplies is not completely even. That is, in the case of unbalanced power supply voltage, the charging current of the remote power supply may exceed the expected value, and the low power supply voltage may have a large charging current, which will seriously affect the life of the power supply. In addition, problems such as parasitic impedance of the wiring and difference in internal resistance of the power supply will cause matching deviation of the discharge current of the two power supplies, resulting in different voltages of the two power supplies. After the system is discharged, the two power supplies will be self-balanced, that is, the charging and discharging between the power supplies will cause self-consumption and affect the standby time of the mobile phone. Summary of the invention
[0004] Therefore, the embodiment of the present invention provides a charge and discharge control circuit to overcome the problem of unbalanced charge and discharge caused by parasitics in the prior art.
[0005] In a first aspect, an embodiment of the present application provides a charging control circuit, comprising at least one charging unit;
[0006] The charging unit includes: a first power supply, a second power supply and a first control circuit;
[0007] The first power supply and the second power supply are connected in parallel, and the first control circuit is connected to the first power supply and the second power supply respectively;
[0008] The first control circuit includes a first control unit, a second control unit and a unidirectional conduction circuit;
[0009] The first power source is connected to the first end of the first switch and the first end of the third switch, and the second power source is connected to the first end of the second switch and the first end of the unidirectional conductive circuit;
[0010] The first control unit is connected to the second end of the first switch and the second end of the second switch respectively to control the opening or closing of the first switch and the second switch, the second control unit is connected to the second end of the third switch to control the opening or closing of the third switch, the third end of the first switch is connected to the third end of the second switch, and the second end of the unidirectional conduction circuit is connected to the third end of the third switch;
[0011] When the voltage of the first power source and the second power source is not less than a preset threshold, the first control unit turns on the first switch and the second switch, and the second control unit turns off the third switch, and the first power source and the second power source are charged through the charging path where the first switch and the second switch are located;
[0012] When the fourth power supply voltage is greater than the third power supply voltage, the fifth switch and the sixth switch are opened by the third control unit to start discharging; when the fourth power supply voltage is less than the third power supply voltage, the fifth switch is closed according to the output result of the comparison unit to end discharging.
[0013] As a preferred embodiment of the present application, the first control unit includes a first clamping circuit, a first sampling circuit, a first resistor and a first driving circuit;
[0014] The first driving circuit is connected to the second end of the first switch and the second end of the first sampling circuit, the first end of the first sampling circuit is connected to the first end of the first switch, and the third end of the first sampling circuit is connected to the first end of the first clamping circuit;
[0015] The first end of the first resistor is connected to the third end of the first clamp circuit, the second end of the first clamp circuit is connected to the third end of the first switch, and the second end of the first resistor is connected to a fixed voltage node.
[0016] The second end of the second switch is connected to the output end of the first operational amplifier, the first input end of the first operational amplifier is connected to the second end of the first resistor, and the second input end of the first operational amplifier is connected to the reference voltage.
[0017] As a preferred embodiment of the present application, the first clamping circuit includes a fourth switch and a second operational amplifier;
[0018] The first end of the fourth switch is connected to the third end of the first sampling circuit, the second end of the fourth switch is connected to the first driving circuit, the third end of the fourth switch is connected to the output end of the first operational amplifier, the first input end of the second operational amplifier is connected to the third end of the first sampling circuit, and the second input end of the second operational amplifier is connected to the third end of the second switch.
[0019] As a preferred embodiment of the present application, the first operational amplifier and the second switch form a second clamping circuit.
[0020] As a preferred embodiment of the present application, the first switch, the second switch and the fourth switch are PMOS tubes or NMOS tubes, and the third switch is a PMOS tube.
[0021] Compared with the prior art, the embodiment of the present application provides a charging control circuit. The embodiment of the present application sets a control circuit between two power supplies connected in parallel. The control circuit can perform charging balance adjustment according to the charging conditions of the power supplies, thereby overcoming the problem of charging imbalance caused by parasitism in the prior art.
[0022] In a second aspect, an embodiment of the present application provides a discharge control circuit, comprising at least one discharge unit;
[0023] The discharge unit includes: a third power supply, a fourth power supply and a second control circuit;
[0024] The third power supply and the fourth power supply are connected in parallel, and the second control circuit is connected to the third power supply and the fourth power supply respectively;
[0025] The second control circuit includes a third control unit and a comparison circuit;
[0026] The third power supply is connected to the first end of the fifth switch, and the fourth power supply is connected to the first end of the sixth switch and the first end of the third control unit;
[0027] The first end of the third control unit is connected to the second end of the fifth switch and the second end of the sixth switch for controlling the opening or closing of the fifth switch and the sixth switch, the first end of the third control unit is connected to the second end of the fifth switch and the second end of the sixth switch for controlling the opening or closing of the fifth switch and the sixth switch, the comparison circuit is connected to the second end of the fifth switch, the fifth switch is opened or closed according to the output result of the comparison unit, and the third end of the fifth switch is connected to the third end of the sixth switch;
[0028] When the second power supply voltage is greater than the first power supply voltage, the fifth switch and the sixth switch are opened by the third control unit to start discharging; when the second power supply voltage is less than the first power supply voltage, the fifth switch is closed according to the output result of the comparison unit to end discharging.
[0029] As a preferred embodiment of the present application, the third control unit includes a third clamping circuit, a second sampling circuit, a second resistor and a second driving circuit;
[0030] The second driving circuit is connected to the second end of the fifth switch and the second end of the second sampling circuit, the first end of the second sampling circuit is connected to the first end of the sixth switch, and the third end of the second sampling circuit is connected to the third end of the third clamping circuit;
[0031] The first end of the second resistor is connected to the first end of the third clamp circuit, the second end of the second resistor is connected to the fixed voltage node, and the second end of the third clamp circuit is connected to the third end of the sixth switch;
[0032] The second end of the fifth switch is connected to the output end of the third operational amplifier, the first input end of the third operational amplifier is connected to the first end of the second resistor, and the second input end of the third operational amplifier is connected to the reference voltage.
[0033] As a preferred embodiment of the present application, the third clamping circuit includes a seventh switch and a fourth operational amplifier;
[0034] The third end of the seventh switch is connected to the third end of the second sampling circuit, the second end of the seventh switch is connected to the output end of the fourth operational amplifier, the first end of the seventh switch is connected to the first end of the second resistor, the first input end of the fourth operational amplifier is connected to the third end of the sixth switch, and the second input end of the fourth operational amplifier is connected to the third end of the seventh switch.
[0035] As a preferred embodiment of the present application, the comparison circuit includes an eighth switch and a comparator;
[0036] The first input terminal of the comparator is connected to the third power supply, the second input terminal of the comparator is connected to the fourth power supply, the output terminal of the comparator is connected to the second end of the eighth switch, the first end of the eighth switch is connected to the fixed voltage node, and the third end of the eighth switch is connected to the second end of the fifth switch.
[0037] Compared with the prior art, the embodiment of the present application provides a discharge control circuit. The embodiment of the present application sets a control circuit between two power supplies connected in parallel. The control circuit can adjust the discharge balance according to the discharge conditions of the power supplies, thereby overcoming the problem of discharge imbalance caused by parasitism in the prior art.
[0038] In a third aspect, an embodiment of the present application provides an electronic device, comprising any charging control circuit described in the first aspect and any discharging circuit described in the second aspect.
[0039] Compared with the prior art, the beneficial effects of an electronic device provided by an embodiment of the present application are the same as the first aspect and the second aspect, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the implementation methods of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for the implementation methods or the description of the prior art. Obviously, the drawings in the following description are only exemplary, and for ordinary technicians in this field, other implementation drawings can be derived from the provided drawings without creative work.
[0041] The structures, proportions, sizes, etc. illustrated in this specification are only used to match the contents disclosed in the specification so as to facilitate understanding and reading by persons familiar with the technology. They are not used to limit the conditions under which the present invention can be implemented, and therefore have no substantial technical significance. Any structural modification, change in proportion or adjustment of size shall still fall within the scope of the technical contents disclosed in the present invention without affecting the effects and purposes that can be achieved by the present invention.
[0042] Figure 1 A schematic diagram of a charging control circuit structure provided in an embodiment of the present application;
[0043] Figure 2 A schematic diagram of another charging control circuit structure provided in an embodiment of the present application;
[0044] Figure 3 A schematic diagram of a discharge control circuit structure provided in an embodiment of the present application;
[0045] Figure 4 A schematic diagram of another discharge control circuit structure provided in an embodiment of the present application. DETAILED DESCRIPTION
[0046] The following is a description of the implementation of the present invention by specific embodiments. People familiar with the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0047] like Figure 1 As shown, an embodiment of the present application provides a charging control circuit, wherein the charging unit includes: a first power source 08, a second power source 09 and a first control circuit;
[0048] The first power source 08 and the second power source 09 are connected in parallel, and the first control circuit is connected to the first power source 08 and the second power source 09 respectively;
[0049] The first control circuit includes a first control unit 03, a second control unit 04 and a unidirectional conduction circuit 06;
[0050] The first power source 08 is connected to the first end of the first switch 01 and the first end of the third switch 05, and the second power source 09 is connected to the first end of the second switch 02 and the first end of the unidirectional conductive circuit 06;
[0051] The first control unit 03 is connected to the second end of the first switch 01 and the second end of the second switch 02 respectively to control the opening or closing of the first switch 01 and the second switch 02, the second control unit 04 is connected to the second end of the third switch 05 to control the opening or closing of the third switch 05, the third end of the first switch 01 is connected to the third end of the second switch 02, and the second end of the unidirectional conduction circuit 06 is connected to the third end of the third switch 05;
[0052] When the voltage of the first power source 08 and the second power source 09 is not less than a preset threshold, the first control unit 03 opens the first switch 01 and the second switch 02, and the second control unit 04 closes the third switch 05, and the first power source 08 and the second power source 09 are charged through the charging path where the first switch 01 and the second switch 02 are located;
[0053] When the voltage of the first power source 08 and the second power source 09 is less than a preset threshold, the third switch 05 is opened by the second control unit 04, and the first switch 01 and the second switch 02 are closed by the first control unit 03, and the first power source 08 and the second power source 09 are charged through the charging path where the third switch 05 is located.
[0054] In the embodiment of the present application, the unidirectional conduction circuit 06 is a diode. The unidirectional conduction circuit 06 solves the problem of current flowing in a single direction during the charging process. The unidirectional conduction circuit 06 can avoid discharging through the charging path where the third switch 05 is located when the voltage of the second power supply 09 is low. When the charging path where the first switch 01 and the second switch 02 are located is opened or the first power supply 08 and the second power supply 09 enter the charging mode, the charging path where the third switch 05 is located is closed.
[0055] According to the embodiment of the present application, the first control circuit determines whether to close the path where the first switch 01 and the second switch 02 are located or close the charging path where the third switch 05 is located to charge the first power supply 08 and the second power supply 09 according to the voltage of the first power supply 08 and the second power supply 09. When the voltage of the first power supply 08 and the second power supply 09 is not less than 2.5V, the charging path where the first switch 01 and the second switch 02 are located is opened, and the first power supply 08 and the second power supply 09 are charged through the charging path where the first switch 01 and the second switch 02 are located, and the third switch 05 is closed by the second control unit 04, and then the first power supply 08 and the second power supply 09 are charged with a larger current through the charging path where the first switch 01 and the second switch 02 are located (the specific charging value can be set according to the battery condition). When the voltage of the first power supply 08 and the second power supply 09 is lower than 2.5V, the charging path where the first switch 01 and the second switch 02 are located is closed, and the third switch 05 is opened by the second control unit 04, and the first power supply 08 and the second power supply 09 are charged with a smaller current through the path where the third switch 05 is located (the specific charging value can be set according to the battery condition).
[0056] like Figure 2 As shown, in a specific embodiment of the present application, the first control unit 03 includes a first clamping circuit, a first sampling circuit 03 - 1 , a first resistor 03 - 5 and a first driving circuit 03 - 2 ;
[0057] The first driving circuit 03-2 is connected to the second end of the first switch 01 and the second end of the first sampling circuit 03-1, the first end of the first sampling circuit 03-1 is connected to the first end of the first switch 01, and the third end of the first sampling circuit 03-1 is connected to the first end of the first clamping circuit;
[0058] The first end of the first resistor 03-5 is connected to the third end of the first clamping circuit, the second end of the first clamping circuit is connected to the third end of the first switch 01, and the second end of the first resistor 03-5 is connected to a fixed voltage node;
[0059] The second end of the second switch 02 is connected to the output end of the first operational amplifier 07, the first input end of the first operational amplifier 07 is connected to the second end of the first resistor 03-5, the second input end of the first operational amplifier 07 is connected to the reference voltage, the first input end of the first operational amplifier 07 is the positive end, and the second input end of the second operational amplifier 07 is the negative end.
[0060] In the embodiment of the present application, the first switch 01 and the second switch 02 are PMOS tubes or NMOS tubes, the fourth switch 03-4 is NMOS tubes, the third switch 05 is PMOS tubes, and the first sampling circuit 03-1 is NMOS tubes or PMOS tubes.
[0061] According to the embodiment of the present application, the source-drain voltage of the first switch 01 is equal to the source-drain voltage of the first sampling circuit 03-1 through the first clamping circuit. When the first switch 01 is NMOS, the first driving circuit 03-2 is a charge pump, and the first driving circuit 03-2 is mainly used to provide a driving voltage to the first switch 01 and the first sampling circuit 03-1.
[0062] In one embodiment of the present application, the first clamp circuit includes a fourth switch 03-4 and a second operational amplifier 03-3; wherein the first input terminal of the second operational amplifier 03-3 is a negative terminal, and the second input terminal of the second operational amplifier 03-3 is a positive terminal.
[0063] The first end of the fourth switch 03-4 is connected to the third end of the first sampling circuit 03-1, the second end of the fourth switch 03-4 is connected to the first driving circuit 03-2, the third end of the fourth switch 03-4 is connected to the output end of the first operational amplifier 07, the first input end of the second operational amplifier 03-3 is connected to the third end of the first sampling circuit 03-1, and the second input end of the second operational amplifier 03-3 is connected to the third end of the second switch 02.
[0064] In an embodiment of the present application, the first operational amplifier 07 and the second switch 02 form a second clamping circuit.
[0065] Specifically, when charging the first power supply 08 and the second power supply 09 to limit the charging current, the first switch 01 is fully opened, and the first sampling circuit 03-1 samples the charging current through the voltage across the first switch 01. The sampled current is converted into a voltage and compared with the reference voltage. The gate voltage of the second switch 02 is controlled through the first operational amplifier 07, thereby affecting the conduction degree of the second switch 02 to achieve the purpose of current limiting.
[0066] Second, as Figure 3 and Figure 4 As shown, the embodiment of the present application further provides a discharge control circuit, comprising at least one discharge unit;
[0067] The discharge unit includes: a third power supply 21, a fourth power supply 22 and a second control circuit;
[0068] The third power supply 21 and the fourth power supply 22 are connected in parallel, and the second control circuit is connected to the third power supply 21 and the fourth power supply 22 respectively;
[0069] The second control circuit includes a third control unit 23 and a comparison circuit 18;
[0070] The third power source 21 is connected to the first end of the fifth switch 10, and the fourth power source 22 is connected to the first end of the sixth switch 11 and the first end of the third control unit 23;
[0071] The first end of the third control unit 23 is connected to the second end of the fifth switch 10 and the second end of the sixth switch 11 to control the opening or closing of the fifth switch 10 and the sixth switch 11, the comparison circuit is connected to the second end of the fifth switch 10, the fifth switch 10 is opened or closed according to the output result of the comparison unit, and the third end of the fifth switch 10 is connected to the third end of the sixth switch 11;
[0072] When the voltage of the fourth power supply 22 is greater than the voltage of the third power supply 21, the fifth switch and the sixth switch are opened by the third control unit 23 to start discharging; when the voltage of the third power supply 22 is less than the voltage of the fourth power supply 21, the fifth switch 10 is closed according to the output result of the comparison unit to end discharging.
[0073] The comparison circuit includes an eighth switch 16 and a comparator 18;
[0074] The first input terminal of the comparator 18 is connected to the third power supply 21, the second input terminal of the comparator 18 is connected to the fourth power supply 22, the output terminal of the comparator 18 is connected to the second terminal of the eighth switch 16, the first terminal of the eighth switch 16 is connected to the fixed voltage node, and the third terminal of the eighth switch 16 is connected to the second terminal of the fifth switch 10.
[0075] In an embodiment of the present application, the third control unit 23 includes a third clamping circuit, a second sampling circuit 12, a second resistor 15 and a second driving circuit 19;
[0076] The second driving circuit 19 is connected to the second end of the fifth switch 10 and the second end of the second sampling circuit 12, the first end of the second sampling circuit 12 is connected to the first end of the sixth switch 11, and the third end of the second sampling circuit 12 is connected to the third end of the third clamping circuit;
[0077] The first end of the second resistor 15 is connected to the first end of the third clamping circuit, the second end of the second resistor 15 is connected to the fixed voltage node, and the second end of the third clamping circuit is connected to the third end of the sixth switch 11;
[0078] The second end of the fifth switch 10 is connected to the output end of the third operational amplifier 17, the first input end of the third operational amplifier 17 is connected to the first end of the second resistor 15, the second input end of the third operational amplifier 17 is connected to the reference voltage, the first input end of the third operational amplifier 17 is the positive end, the first input end of the third operational amplifier 17 is the positive end, and the second input end of the third operational amplifier 17 is the negative end.
[0079] In one embodiment of the present application, the third clamping circuit includes a seventh switch 13 and a fourth operational amplifier 20;
[0080] The third end of the seventh switch 13 is connected to the third end of the second sampling circuit 12, the second end of the seventh switch 13 is connected to the output end of the fourth operational amplifier 20, the first end of the seventh switch 13 is connected to the first end of the second resistor 15, the first input end of the fourth operational amplifier 20 is connected to the third end of the sixth switch 11, the second input end of the fourth operational amplifier 20 is connected to the third end of the seventh switch 13, the first input end of the fourth operational amplifier 20 is the positive end, and the second input end of the fourth operational amplifier 20 is the negative end.
[0081] In the embodiment of the present application, the fifth switch 10, the sixth switch 11, the seventh switch 13, the eighth switch 16 and the second sampling circuit 12 are NMOS tubes, and the voltages of the third power supply 21 and the fourth power supply 22 are detected by the comparison circuit 18. When the voltage of the fourth power supply 22 is greater than the voltage of the third power supply 21, the fifth switch and the sixth switch are opened by the third control unit 23 to start discharging; when the voltage of the third power supply 22 is less than the voltage of the fourth power supply 21, the fifth switch 10 is closed according to the output result of the comparison circuit 18, and the discharge ends, forming a unidirectional conduction characteristic. During the power supply discharge process, charging is prevented from occurring, and mutual charging between the two power supplies is effectively avoided. The discharge current limiting of the third power supply 21 and the fourth power supply 22 is consistent with the charging current limiting principle of the first power supply 08 and the second power supply 09 mentioned above. Before the discharge starts, the discharge mode is turned on through the communication interface or other communication methods, and a unidirectional path that only discharges but does not charge is turned on to avoid the problem of battery mutual charging during the discharge process.
[0082] In a third aspect, an embodiment of the present application provides an electronic device, comprising any charging control circuit described in the first aspect and any discharging circuit described in the second aspect.
[0083] Compared with the prior art, the beneficial effects of an electronic device provided by an embodiment of the present application are the same as the first aspect and the second aspect, which will not be repeated here.
[0084] Although the present invention has been described in detail above by general description and specific embodiments, it is obvious to those skilled in the art that some modifications or improvements can be made to the present invention. Therefore, these modifications or improvements made without departing from the spirit of the present invention all belong to the scope of protection claimed by the present invention.
Claims
1. A charging control circuit, characterized in that: comprising at least one charging unit; The charging unit includes: a first power supply, a second power supply and a first control circuit; The first power supply and the second power supply are connected in parallel, and the first control circuit is connected to the first power supply and the second power supply respectively; The first control circuit includes a first control unit, a second control unit and a unidirectional conduction circuit; The first power source is connected to the first end of the first switch and the first end of the third switch, and the second power source is connected to the first end of the second switch and the first end of the unidirectional conductive circuit; The first control unit is connected to the second end of the first switch and the second end of the second switch respectively to control the opening or closing of the first switch and the second switch, the second control unit is connected to the second end of the third switch to control the opening or closing of the third switch, the third end of the first switch is connected to the third end of the second switch, and the second end of the unidirectional conduction circuit is connected to the third end of the third switch; When the voltage of the first power source and the second power source is not less than a preset threshold, the first control unit turns on the first switch and the second switch, and the second control unit turns off the third switch, and the first power source and the second power source are charged through the charging path where the first switch and the second switch are located; When the voltage of the first power supply and the second power supply is less than a preset threshold, the third switch is turned on by the second control unit, the first switch and the second switch are turned off by the first control unit, and the first power supply and the second power supply are charged through the charging path where the third switch is located; the first control unit includes a first clamping circuit, a first sampling circuit, a first resistor and a first driving circuit; The first driving circuit is connected to the second end of the first switch and the second end of the first sampling circuit, the first end of the first sampling circuit is connected to the first end of the first switch, and the third end of the first sampling circuit is connected to the first end of the first clamping circuit; The first end of the first resistor is connected to the third end of the first clamp circuit, the second end of the first clamp circuit is connected to the third end of the first switch, and the second end of the first resistor is connected to a fixed voltage node. The second end of the second switch is connected to the output end of the first operational amplifier, the first input end of the first operational amplifier is connected to the second end of the first resistor, and the second input end of the first operational amplifier is connected to the reference voltage; the first clamping circuit includes a fourth switch and a second operational amplifier; The first end of the fourth switch is connected to the third end of the first sampling circuit, the second end of the fourth switch is connected to the first driving circuit, the third end of the fourth switch is connected to the output end of the first operational amplifier, the first input end of the second operational amplifier is connected to the third end of the first sampling circuit, and the second input end of the second operational amplifier is connected to the third end of the second switch.
2. A charging control circuit as claimed in claim 1, characterized in that: The first operational amplifier and the second switch form a second clamping circuit.
3. A charging control circuit as claimed in claim 2, characterized in that: The first switch, the second switch and the fourth switch are PMOS tubes or NMOS tubes, and the third switch is a PMOS tube.
4. A discharge control circuit, characterized in that: comprising at least one discharge unit; The discharge unit includes: a third power supply, a fourth power supply and a second control circuit; The third power supply and the fourth power supply are connected in parallel, and the second control circuit is connected to the third power supply and the fourth power supply respectively; The second control circuit includes a third control unit and a comparison circuit; The third power supply is connected to the first end of the fifth switch, and the fourth power supply is connected to the first end of the sixth switch and the first end of the third control unit; The first end of the third control unit is connected to the second end of the fifth switch and the second end of the sixth switch for controlling the opening or closing of the fifth switch and the sixth switch, the first end of the third control unit is connected to the second end of the fifth switch and the second end of the sixth switch for controlling the opening or closing of the fifth switch and the sixth switch, the comparison circuit is connected to the second end of the fifth switch, the fifth switch is opened or closed according to the output result of the comparison circuit, and the third end of the fifth switch is connected to the third end of the sixth switch; When the fourth power supply voltage is greater than the third power supply voltage, the fifth switch and the sixth switch are opened by the third control unit to start discharging; when the fourth power supply voltage is less than the third power supply voltage, the fifth switch is closed according to the output result of the comparison circuit to end discharging; the third control unit includes a third clamping circuit, a second sampling circuit, a second resistor and a second driving circuit; The second driving circuit is connected to the second end of the fifth switch and the second end of the second sampling circuit, the first end of the second sampling circuit is connected to the first end of the sixth switch, and the third end of the second sampling circuit is connected to the third end of the third clamping circuit; The first end of the second resistor is connected to the first end of the third clamp circuit, the second end of the second resistor is connected to the fixed voltage node, and the second end of the third clamp circuit is connected to the third end of the sixth switch; The second end of the fifth switch is connected to the output end of the third operational amplifier, the first input end of the third operational amplifier is connected to the first end of the second resistor, and the second input end of the third operational amplifier is connected to the reference voltage; the third clamping circuit includes a seventh switch and a fourth operational amplifier; The third end of the seventh switch is connected to the third end of the second sampling circuit, the second end of the seventh switch is connected to the output end of the fourth operational amplifier, the first end of the seventh switch is connected to the first end of the second resistor, the first input end of the fourth operational amplifier is connected to the third end of the sixth switch, and the second input end of the fourth operational amplifier is connected to the third end of the seventh switch; The comparison circuit includes an eighth switch and a comparator; The first input terminal of the comparator is connected to the third power supply, the second input terminal of the comparator is connected to the fourth power supply, the output terminal of the comparator is connected to the second end of the eighth switch, the first end of the eighth switch is connected to the fixed voltage node, and the third end of the eighth switch is connected to the second end of the fifth switch.
5. An electronic device, characterized in that: It comprises the charging control circuit according to any one of claims 1 to 3 and the discharging circuit according to any one of claim 4.
