Charging circuit, charging chip and electronic device

By introducing a voltage converter and switching elements into the charging circuit, the problem of uneven charging of dual batteries is solved, enabling both batteries to be fully charged and improving the usable battery capacity of electronic devices.

CN115117951BActive Publication Date: 2025-10-24HONOR DEVICE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110875500.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2021-03-23
Filing Date
2021-07-30
Publication Date
2025-10-24
Estimated Expiration
2041-07-30

AI Technical Summary

Technical Problem

In electronic devices that use a parallel charging and discharging dual-battery circuit, due to the capacity difference and path impedance of the two batteries, one of the batteries may not be fully charged, resulting in a smaller usable battery capacity of the electronic device.

Method used

By introducing a voltage converter, a controller, and first and second switching elements into the charging circuit, the battery voltage difference is detected and a control signal is output to control the conduction state of the switching elements respectively, so as to regulate the charging current and ensure that both batteries can be fully charged.

Benefits of technology

This allows both batteries to reach full charge, improving the battery capacity and performance of electronic devices and avoiding charging problems caused by inconsistent voltage or impedance imbalance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115117951B_ABST
    Figure CN115117951B_ABST
Patent Text Reader

Abstract

The application provides a charging circuit, a charging chip and an electronic device, which can solve the problem of small available capacity of the battery of the electronic device caused by the fact that one of the two batteries cannot be fully charged. The charging circuit comprises a voltage converter, a controller, a first switching element and a second switching element. The first end of the first switching element is used for being coupled with a first battery, and the first end of the second switching element is used for being coupled with a second battery. The second end of the first switching element and the second end of the second switching element are both coupled with the first end of the voltage converter, so as to charge the first battery and the second battery. The second end of the voltage conversion circuit is used for being coupled with a power adapter. In this way, the charging current of the first battery and the second battery can be controlled respectively through the first switching element and the second switching element, so that the first battery and the second battery can both be fully charged, the available capacity of the battery in the electronic device is improved, and the use performance of the battery is improved.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] The present application claims priority to the Chinese Patent Application No. 202110310820.0, filed on March 23, 2021, and entitled "Dual-battery Isolation Charging and Discharging Circuit", the entire contents of which are incorporated herein by reference. TECHNICAL FIELD

[0002] The present application relates to the technical field of electronic device charging and discharging, and in particular to a charging circuit, a charging chip and an electronic device. BACKGROUND

[0003] At present, in order to realize fast charging of an electronic device, the electronic device generally uses dual batteries to supply power to the electronic device. The dual-battery charging and discharging circuit can be divided into several different cases, such as serial charging and serial discharging (i.e., two batteries are charged and discharged in series), serial charging and parallel discharging (i.e., two batteries are charged in series and discharged in parallel), and parallel charging and parallel discharging (i.e., two batteries are charged and discharged in parallel). Among them, the serial charging and serial discharging has large discharging loss. The serial charging and parallel discharging needs to change the form of the dual batteries, and the control is complex. The parallel charging and parallel discharging has simple control and does not need to change the form of the dual batteries.

[0004] However, in the electronic device using the parallel charging and parallel discharging dual-battery charging and discharging circuit, due to the possible difference in capacity of the two batteries and the existence of path impedance, there may be a case that one of the two batteries cannot be fully charged, thereby causing the problem of small available capacity of the battery of the electronic device. SUMMARY

[0005] The present application provides a charging circuit, a charging chip and an electronic device, which can solve the problem of small available capacity of the battery of the electronic device caused by the fact that one of the two batteries cannot be fully charged in the electronic device using dual batteries.

[0006] To achieve the above object, the present application adopts the following technical solutions:

[0007] In a first aspect, an embodiment of the present application provides a charging circuit. The charging circuit includes a voltage converter, a controller, a first switching element and a second switching element. A first end of the first switching element is configured to be coupled with a first battery, and a first end of the second switching element is configured to be coupled with a second battery. A second end of the first switching element and a second end of the second switching element are both coupled with a first end of the voltage converter, so as to charge the first battery and the second battery. A second end of the voltage converter is configured to be coupled with a power adapter. The controller is configured to be coupled with the first battery and the second battery, so as to detect a voltage of the first battery and a voltage of the second battery, and output a first control signal and a second control signal according to a voltage difference between the first battery and the second battery. The controller is further coupled with the first switching element, and configured to control the first switching element to be in a conducting state, an incomplete conducting state or an off state by the first control signal. The controller is further coupled with the second switching element, and configured to control the second switching element to be in a conducting state, an incomplete conducting state or an off state by the second control signal.

[0008] Based on the above charging circuit, when the charging circuit is applied to a charging scenario of an electronic device, the charging current of the first battery and the second battery can be respectively controlled by the first switching element and the second switching element in the charging circuit, so as to avoid the problem that a certain battery cannot be fully charged due to the inconsistency of parameters (such as the cut-off voltage) of the first battery and the second battery or the impedance imbalance of the charging path (such as the charging path formed by the charging circuit to the first battery). Therefore, the first battery and the second battery can both reach a fully charged state, so as to improve the available capacity of the battery in the electronic device and improve the use performance of the battery.

[0009] In a possible implementation, when the first battery and the second battery are in a charging state, if the voltage of the first battery is higher than the voltage of the second battery, and the voltage difference between the first battery and the second battery is greater than a preset threshold, the first control signal is configured to control the first switching element to be in a conducting state, so as to charge the first battery; and the second control signal is configured to control the second switching element to be in an incomplete conducting state, so as to charge the second battery in a voltage regulation mode. In this case, the second switching element is equivalent to a variable resistance, which can draw a large current, so that the second battery can also be charged by the voltage converter, and the large current drawn by the second switching element can regulate the voltage of the second battery, so as to reduce the voltage difference between the first battery and the second battery.

[0010] In one possible implementation, when a first battery and a second battery are in a charging state, if the voltage of the second battery is higher than that of the first battery, and the voltage difference between the first and second batteries is greater than a preset threshold, a first control signal is used to control the first switching element to partially conduct, thereby regulating the voltage and charging the first battery; and a second control signal is used to control the second switching element to conduct, thereby charging the second battery. In this case, the first switching element acts as a variable-resistance resistor capable of carrying a large current, allowing the charging circuit to charge the first battery through a voltage converter. The large current carried by the first switching element regulates the voltage of the first battery, thereby increasing the voltage of the first battery and reducing the voltage difference between the first and second batteries.

[0011] In one possible implementation, when the first and second batteries are in a charging state, if the voltage difference between the first and second batteries is less than or equal to a preset threshold, a first control signal is used to control the first switch element to conduct, thereby charging the first battery; and a second control signal is used to control the second switch element to conduct, thereby charging the second battery. At this point, the paths from the charging circuit to the first and second batteries are both open, and the charging circuit can charge the first and second batteries separately through the voltage converter.

[0012] In one possible implementation, the second end of the first switching element and the second end of the second switching element are both coupled to the working circuit to discharge the first and second batteries. When the charging circuit is used in a discharge scenario for the first and second batteries, the controller of the charging circuit is further configured to detect the voltage of the first and second batteries and output a first control signal and a second control signal based on the voltage difference between the first and second batteries. The first control signal is further configured to control the first switching element to be in the off state. The second control signal is further configured to control the second switching element to be in the off state.

[0013] In one possible implementation, when the first battery and the second battery are in a discharged state, the battery with the larger voltage among the first battery and the second battery can first supply power to the working circuit. After the voltage difference between the first battery and the second battery decreases, both the first battery and the second battery can supply power to the working circuit to avoid the phenomenon of large current mutual charging caused by the large voltage difference between the first battery and the second battery, which may burn out the device or damage the battery.

[0014] Specifically, if the voltage of the first battery is higher than the voltage of the second battery, and the voltage difference between the first battery and the second battery is greater than a preset threshold, the first control signal is used to control the first switching element to turn on, so that the first battery supplies power to the working circuit; the second control signal is used to control the second switching element to turn off, so that the second battery does not supply power to the working circuit.

[0015] If the voltage of the second battery is higher than the voltage of the first battery, and the voltage difference between the first battery and the second battery is greater than a preset threshold, the first control signal is used to control the first switching element to turn off, so that the first battery does not supply power to the working circuit; the second control signal is used to control the second switching element to turn on, so that the second battery supplies power to the working circuit.

[0016] If the voltage difference between the first battery and the second battery is less than or equal to a preset threshold, the first control signal is used to control the first switch element to turn on, so that the first battery supplies power to the working circuit; the second control signal is used to control the second switch element to turn on, so that the second battery supplies power to the working circuit.

[0017] In one possible implementation, when the first battery and the second battery are in a discharging state, the battery with the smaller voltage among the first battery and the second battery can first supply power to the working circuit, while the battery with the larger voltage among the first battery and the second battery is in a voltage regulating state; when the voltage difference between the first battery and the second battery decreases, both the first battery and the second battery supply power to the working circuit, thereby avoiding the phenomenon of large current mutual charging caused by the large voltage difference between the first battery and the second battery, which may burn out components or damage the battery.

[0018] Specifically, if the voltage of the first battery is higher than the voltage of the second battery, and the voltage difference between the first battery and the second battery is greater than a preset threshold, the first control signal is used to control the first switching element to be partially turned on, so that the first battery supplies power to the working circuit and regulates the voltage; the second control signal is used to control the second switching element to be turned on, so that the second battery supplies power to the working circuit.

[0019] If the voltage of the second battery is higher than that of the first battery, and the voltage difference between the first and second batteries is greater than a preset threshold, the first control signal is used to control the first switching element to conduct, so that the first battery supplies power to the working circuit; the second control signal is used to control the second switching element to partially conduct, so that the second battery supplies power to the working circuit and regulates the voltage.

[0020] If the voltage difference between the first battery and the second battery is less than or equal to a preset threshold, the first control signal is used to control the first switch element to turn on, so that the first battery supplies power to the working circuit; the second control signal is used to control the second switch element to turn on, so that the second battery supplies power to the working circuit.

[0021] In a possible implementation, the controller comprises a driving circuit and a voltage detection circuit; the voltage detection circuit is configured to be coupled with the first battery to detect the voltage of the first battery; the voltage detection circuit is further configured to be coupled with the second battery to detect the voltage of the second battery; the driving circuit is coupled with the voltage detection circuit to obtain the voltage of the first battery and the voltage of the second battery; a first output terminal of the driving circuit is configured to output a first control signal and is coupled with a control terminal of the first switch element; and a second output terminal of the driving circuit is configured to output a second control signal and is coupled with a control terminal of the second switch element.

[0022] It should be understood that the controller is implemented by means of the hardware structure such as the driving circuit and the voltage detection circuit, the response speed of the controller is faster, and the damage of the instantaneous large current generated in the moment of switching of the control signal to the devices in the charging circuit or to the battery can be effectively avoided, so that the reliability of the charging circuit is higher.

[0023] In a possible implementation, the controller is further configured to be connected with a communication control bus, and the communication control bus is configured to control the controller to perform voltage detection and output the first control signal and the second control signal. It should be understood that, since the controller is implemented by means of the hardware circuit structure such as the driving circuit and the voltage detection circuit, the working state of the controller and the execution of data detection can be controlled through the communication control bus (such as an I2C bus).

[0024] In a possible implementation, the controller is further configured to be connected with a communication control bus, and the communication control bus is configured to control the controller to perform voltage detection and output the first control signal and the second control signal. It should be understood that, since the controller is implemented by means of the hardware circuit structure such as the driving circuit and the voltage detection circuit, the working state of the controller and the execution of data detection can be controlled through the communication control bus (such as an I2C bus).

[0025] In a possible implementation, the charging chip further comprises a communication control interface configured to be coupled with a communication control bus and the controller.

[0026] In a possible implementation, the controller is further configured to be connected with a communication control bus, and the communication control bus is configured to control the controller to perform voltage detection and output the first control signal and the second control signal. It should be understood that, since the controller is implemented by means of the hardware circuit structure such as the driving circuit and the voltage detection circuit, the working state of the controller and the execution of data detection can be controlled through the communication control bus (such as an I2C bus).

[0027] In a fourth aspect, an electronic device is provided. The electronic device includes a power supply battery, a working circuit, and a charging chip as in any possible implementation of the second aspect. The power supply battery includes a first positive electrode and a second positive electrode. The first positive electrode is coupled to the third interface of the charging chip to supply power to the working circuit. The second positive electrode is coupled to the fourth interface of the charging chip to supply power to the working circuit.

[0028] In a fifth aspect, a control method of a charging circuit is provided. The control method is applicable to the charging circuit as in any possible implementation of the first aspect. The control method includes detecting, by a controller, a voltage of a first battery and a voltage of a second battery. The controller outputs a first control signal and a second control signal according to a voltage difference between the first battery and the second battery. The first control signal controls a first switching element to be in a conducting state, an incomplete conducting state, or an off state. The second control signal controls a second switching element to be in a conducting state, an incomplete conducting state, or an off state.

[0029] In a possible implementation, the first control signal controls the first switching element to be in a conducting state, an incomplete conducting state, or an off state, and the second control signal controls the second switching element to be in a conducting state, an incomplete conducting state, or an off state, including: in a case where the first battery and the second battery are in a charging state, if the voltage of the first battery is higher than the voltage of the second battery, and the voltage difference between the first battery and the second battery is greater than a preset threshold, the first control signal is used to control the first switching element to be in a conducting state to charge the first battery; and the second control signal is used to control the second switching element to be in an incomplete conducting state to charge the second battery in a voltage regulation mode.

[0030] In a possible implementation, the first control signal controls the first switching element to be in a conducting state, an incomplete conducting state, or an off state, and the second control signal controls the second switching element to be in a conducting state, an incomplete conducting state, or an off state, including: in a case where the first battery and the second battery are in a charging state, if the voltage of the second battery is higher than the voltage of the first battery, and the voltage difference between the first battery and the second battery is greater than a preset threshold, the first control signal is used to control the first switching element to be in an incomplete conducting state to charge the first battery in a voltage regulation mode; and the second control signal is used to control the second switching element to be in a conducting state to charge the second battery.

[0031] In a possible implementation, in a case where the first battery and the second battery are in a charging state, if the voltage difference between the first battery and the second battery is less than or equal to a preset threshold, the first control signal is used to control the first switching element to be in a conducting state to charge the first battery; and the second control signal is used to control the second switching element to be in a conducting state to charge the second battery.

[0032] In a possible implementation, the second end of the first switch element and the second end of the second switch element are further configured to be coupled to the working circuit to discharge the first battery and the second battery. The first control signal controls the first switch element to be in a conducting state, an incomplete conducting state or an off state, and the second control signal controls the second switch element to be in a conducting state, an incomplete conducting state or an off state, and the control includes: in the case that the first battery and the second battery are in a discharging state, if the voltage of the first battery is higher than the voltage of the second battery, and the voltage difference between the first battery and the second battery is greater than a preset threshold, the first control signal is used to control the first switch element to be in a conducting state, so that the first battery supplies power to the working circuit; and the second control signal is used to control the second switch element to be in an off state, so that the second battery does not supply power to the working circuit.

[0033] In a possible implementation, the second end of the first switch element and the second end of the second switch element are further configured to be coupled to the working circuit to discharge the first battery and the second battery. The first control signal controls the first switch element to be in a conducting state, an incomplete conducting state or an off state, and the second control signal controls the second switch element to be in a conducting state, an incomplete conducting state or an off state, and the control includes: in the case that the first battery and the second battery are in a discharging state, if the voltage of the first battery is higher than the voltage of the second battery, and the voltage difference between the first battery and the second battery is greater than a preset threshold, the first control signal is used to control the first switch element to be in an off state, so that the first battery does not supply power to the working circuit; and the second control signal is used to control the second switch element to be in a conducting state, so that the second battery supplies power to the working circuit.

[0034] In a possible implementation, the second end of the first switch element and the second end of the second switch element are further configured to be coupled to the working circuit to discharge the first battery and the second battery. The first control signal controls the first switch element to be in a conducting state, an incomplete conducting state or an off state, and the second control signal controls the second switch element to be in a conducting state, an incomplete conducting state or an off state, and the control includes: in the case that the first battery and the second battery are in a discharging state, if the voltage of the first battery is higher than the voltage of the second battery, and the voltage difference between the first battery and the second battery is greater than a preset threshold, the first control signal is used to control the first switch element to be in an incomplete conducting state, so that the first battery supplies power to the working circuit and regulates voltage; and the second control signal is used to control the second switch element to be in a conducting state, so that the second battery supplies power to the working circuit.

[0035] In a possible implementation, the second end of the first switch element and the second end of the second switch element are further configured to be coupled to the working circuit to discharge the first battery and the second battery. The first control signal controls the first switch element to be in a conducting state, an incomplete conducting state or an off state, and the second control signal controls the second switch element to be in a conducting state, an incomplete conducting state or an off state, and the method comprises: in the case that the first battery and the second battery are in a discharging state, if the voltage of the second battery is higher than the voltage of the first battery and the voltage difference between the first battery and the second battery is greater than a preset threshold, the first control signal is used to control the first switch element to be in a conducting state to enable the first battery to supply power to the working circuit; and the second control signal is used to control the second switch element to be in an incomplete conducting state to enable the second battery to supply power to the working circuit and to perform voltage regulation.

[0036] In a possible implementation, the second end of the first switch element and the second end of the second switch element are further configured to be coupled to the working circuit to discharge the first battery and the second battery. The first control signal controls the first switch element to be in a conducting state, an incomplete conducting state or an off state, and the second control signal controls the second switch element to be in a conducting state, an incomplete conducting state or an off state, and the method comprises: in the case that the first battery and the second battery are in a discharging state, if the voltage of the second battery is higher than the voltage of the first battery and the voltage difference between the first battery and the second battery is greater than a preset threshold, the first control signal is used to control the first switch element to be in a conducting state to enable the first battery to supply power to the working circuit; and the second control signal is used to control the second switch element to be in an incomplete conducting state to enable the second battery to supply power to the working circuit and to perform voltage regulation.

[0037] In a sixth aspect, an electronic device is provided. The electronic device comprises a first battery, a second battery, a charging circuit and a working circuit. The first battery and the second battery are coupled to the working circuit through the charging circuit. When the electronic device is running, the charging circuit is configured to perform the method in any of the possible implementation manners of the fifth aspect.

[0038] It can be understood that the control method of the charging circuit, the charging chip and the electronic device provided above can be implemented by or associated with the corresponding charging circuit provided above, and thus the beneficial effects thereof can refer to the beneficial effects of the charging circuit provided above, which will not be described herein again. BRIEF DESCRIPTION OF DRAWINGS

[0039] Figure 1 Structure of an electronic device with double batteries and charging and discharging Figure 1 ;

[0040] Figure 2 Structure of an electronic device with double batteries and charging and discharging Figure 2 ;

[0041] Figure 3A structure diagram of an electronic device including a charging circuit provided for an embodiment of the present application Figure 1 ;

[0042] Figure 3A A waveform of a first control signal and a second control signal provided for an embodiment of the present application Figure 1 ;

[0043] Figure 3B A waveform of a first control signal and a second control signal provided for an embodiment of the present application Figure 3 ; An equivalent circuit diagram formed by a waveform diagram of Figure 3A ;

[0044] Figure 3C A waveform of a first control signal and a second control signal provided for an embodiment of the present application Figure 2 ;

[0045] Figure 3D A waveform of a first control signal and a second control signal provided for an embodiment of the present application Figure 3 ; An equivalent circuit diagram formed by a waveform diagram of Figure 3C ;

[0046] Figure 3E A waveform of a first control signal and a second control signal provided for an embodiment of the present application Figure 3 ;

[0047] Figure 3F A waveform of a first control signal and a second control signal provided for an embodiment of the present application Figure 3 ; An equivalent circuit diagram formed by a waveform diagram of Figure 3E ;

[0048] Figure 3G A waveform of a first control signal and a second control signal provided for an embodiment of the present application Figure 4 ;

[0049] Figure 3H A waveform of a first control signal and a second control signal provided for an embodiment of the present application Figure 3 ; An equivalent circuit diagram formed by a waveform diagram of Figure 3G ;

[0050] Figure 3I A waveform of a first control signal and a second control signal provided for an embodiment of the present application Figure 5 ;

[0051] Figure 3J A waveform of a first control signal and a second control signal provided for an embodiment of the present application Figure 3 ; An equivalent circuit diagram formed by a waveform diagram of Figure 3I ;

[0052] Figure 4 A structure diagram of an electronic device including a charging circuit provided for an embodiment of the present application Figure 2 ;

[0053] Figure 5A flow chart of a control method of a charging circuit provided for an embodiment of the present application;

[0054] Figure 6 A flow chart of a charging and discharging method of an electronic device including a charging circuit provided for an embodiment of the present application;

[0055] Figure 7 A structural schematic of an electronic device including a charging circuit provided for an embodiment of the present application Figure 3 ;

[0056] Figure 8 A structural schematic of a charging chip provided for an embodiment of the present application. DETAILED DESCRIPTION

[0057] The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments of the present application.

[0058] Hereinafter, the terms "first", "second", and the like are used only for the purpose of description, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined with "first", "second", and the like can explicitly or implicitly include one or more features. In the description of the present application, unless otherwise specified, the meaning of "a plurality of" is two or more.

[0059] In addition, in the present application, the orientation terms such as "up", "down", "left", "right", etc. can include but not limited to the orientation defined by the relative position of the components in the drawing. It should be understood that these directional terms can be relative concepts, which are used for relative description and clarification, and can be changed accordingly according to the change of the position of the components in the drawing.

[0060] In the present application, unless otherwise specified and limited, the term "connection" should be understood broadly, for example, "connection" can be fixed connection, or detachable connection, or integral; can be directly connected, or indirectly connected through intermediate medium. In addition, the terms "coupling", "coupling" or "coupling" can be an electrically connected manner for realizing signal transmission.

[0061] The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments of the present application.

[0062] Figure 1 A structural schematic of an electronic device including a charging circuit provided for an embodiment of the present application Figure 1 . As Figure 1As shown, the electronic device includes a charging circuit, a working circuit, a first battery and a second battery. The first battery and the second battery can be coupled to a power adapter via the charging circuit, and the first battery and the second battery can also be coupled to the working circuit via the charging circuit.

[0063] When the two batteries are charged in parallel, the power adapter converts 220V AC power into DC power via an AC-DC converter to charge the first and second batteries. When the two batteries are discharged in parallel, the first and second batteries supply power to the working circuit. The working circuit may include a processor, memory, a communication interface, etc. The working circuit may also be a power management integrated circuit (PMIC) or a system-on-a-chip (SoC), and is not specifically limited in this embodiment of the present application.

[0064] Figure 2 A schematic diagram of the structure of an electronic device with dual batteries that can be charged and discharged simultaneously Figure 2 .like Figure 1 As shown, the first battery and the second battery in the electronic device can also use two independent charge pump chips to charge the first battery and the second battery respectively, so as to quickly charge the first battery and the second battery to increase the charging speed. Specifically, the above-mentioned electronic device also includes a first charge pump chip and a second charge pump chip. Among them, one end of the first charge pump chip is coupled to the output terminal Vbus of the power adapter, and the other end of the first charge pump chip is coupled to the first battery. One end of the second charge pump chip is coupled to the output terminal Vbus of the power adapter, and the other end of the first charge pump chip is coupled to the second battery.

[0065] It should be noted that Figure 2 and Figure 1 In the electronic device shown, a power adapter simultaneously charges the first and second batteries through a charging circuit, or uses a charge pump chip to charge the first and second batteries. Due to inconsistencies in parameters (such as cutoff voltage) between the first and second batteries, as well as the presence of path impedance, it is possible that one of the first and second batteries cannot be fully charged, resulting in a low usable battery capacity in the electronic device.

[0066] In order to solve the above problems, the present invention provides a method for Figure 2 and Figure 3 The charging circuit of the electronic device detects and compares the voltages of two batteries and adjusts the charging voltages of the two batteries through a switching element so that both batteries of different capacities can be fully charged, thereby increasing the available capacity of the battery of the electronic device.

[0067] like Figure 1As shown, the charging circuit includes a voltage converter, a controller, a first switching element Q1, and a second switching element Q2. The first end of the first switching element Q1 is coupled to the first battery, and the first end of the second switching element Q2 is coupled to the second battery. The second end of the first switching element Q1 and the second end of the second switching element Q2 are both coupled to the first end of the voltage converter, allowing the voltage converter to charge the first and second batteries. The second end of the voltage conversion circuit is coupled to a power adapter to obtain the DC power Vbus output by the power adapter.

[0068] The voltage converter can convert the DC power Vbus output from the power adapter into a DC power suitable for the working circuit of the electronic device (such as Figure 3A The Vsys voltage shown). The voltage converter can be a circuit that performs DC voltage conversion, such as a DC-DC conversion circuit (such as a BUCK circuit) or a DC-DC conversion chip (such as a BUCK chip), and is not specifically limited in this application. The first switching element Q1 and the second switching element Q2 can be devices with switching functions, such as metal-oxide-semiconductor field-effect transistors (MOSFETs). For example, the first switching element Q1 and the second switching element Q2 can both be N-type MOS transistors or P-type MOS transistors. The first end of the first switching element Q1 can be the source (source, S) of the MOS transistor or the drain (drain, D) of the MOS transistor; the second end of the first switching element Q1 can be the drain or the source of the MOS transistor. Correspondingly, the first end of the second switching element Q2 can be the source or the drain of the MOS transistor; the second end of the second switching element Q2 can be the drain or the source of the MOS transistor. The control end of the first switching element Q1 and the control end of the second switching element Q2 can be the gate (gate, G) of the MOS transistor.

[0069] The controller is coupled to a first battery and a second battery to detect the voltage Vbat1 of the first battery and the voltage Vbat2 of the second battery, and output a first control signal and a second control signal based on the voltage difference between the first battery and the second battery. The controller is also coupled to the control terminal of the first switching element Q1, and is configured to output a first control signal to the first switching element Q1, and control the first switching element Q1 to be in a conducting or partially conducting state via the first control signal, thereby placing the first battery in a charging state or a voltage regulating state. The controller is also coupled to the control terminal of the second switching element Q2, and is configured to output a second control signal to the second switching element Q2, and control the second switching element Q2 to be in a conducting or partially conducting state via the second control signal, thereby placing the second battery in a charging state or a voltage regulating state.

[0070] In particular, the controller can include a driving circuit and a voltage detection circuit. The voltage detection circuit is coupled with the first battery to detect the voltage Vbat1 of the first battery. The voltage detection circuit is also coupled with the second battery to detect the voltage Vbat2 of the second battery.

[0071] The driving circuit is coupled with the voltage detection circuit to obtain the voltage Vbat1 of the first battery and the voltage Vbat2 of the second battery from the voltage detection circuit, and output the first control signal and the second control signal according to the voltage difference between the first battery and the second battery, so as to control the first switch element Q1 and the second switch element Q2 to be in the conducting or not fully conducting state.

[0072] The driving circuit includes two output terminals. The first output terminal of the driving circuit is used to output the first control signal and is coupled with the control terminal of the first switch element Q1, so that the first control signal controls the first switch element Q1 to be in the conducting or not fully conducting state. The second output terminal of the driving circuit is used to output the second control signal and is coupled with the control terminal of the second switch element Q2, so that the second control signal controls the second switch element Q2 to be in the conducting or not fully conducting state.

[0073] Since the controller is implemented by the hardware circuit structure such as the driving circuit and the voltage detection circuit, in order to control the working state of the controller and perform data detection, the controller is also connected with a communication control bus, for example, an inter-integrated circuit (I2C) bus. The I2C bus can be used to control the voltage detection circuit of the controller to perform voltage detection, and can also be used to control the voltage detection circuit to output the first control signal and the second control signal.

[0074] It should be understood that the controller can also be implemented by software. For example, a first sensor (sensor1) can be coupled on the path where the first battery is located, and a second sensor (sensor2) can be coupled on the path where the second battery is located. The first sensor can detect the voltage Vbat1 of the first battery, and the second sensor can detect the voltage Vbat2 of the second battery. A voltage detection control module can be coupled with the first sensor and the second sensor to obtain the detection data of the first sensor and the second sensor. The detection data can include the voltage Vbat1 of the first battery and the voltage Vbat2 of the second battery, etc.

[0075] The controller can acquire the voltage Vbat1 of the first battery and the voltage Vbat2 of the second battery detected by the first detector, and output the first control signal and the second control signal according to the voltage difference between the voltage Vbat1 of the first battery and the voltage Vbat2 of the second battery, so that the first control signal controls the first switching element Q1 to be in a conductive or not fully conductive state, and the second control signal controls the second switching element Q2 to be in a conductive or not fully conductive state.

[0076] It should be noted that, compared with the controller realized by software, the above-mentioned controller is realized by hardware structures such as a driving circuit and a voltage detection circuit, the response speed of the controller is faster, the damage of the instantaneous large current generated in the moment of switching of the control signal to the devices in the charging circuit or to the battery can be effectively avoided, and thus the reliability of the charging circuit is higher.

[0077] Hereinafter, taking the first switching element Q1 and the second switching element Q2 as NMOS tubes as an example, how the first control signal and the second control signal control the first switching element Q1 and the second switching element Q2 to be in a conductive or not conductive state is described in detail.

[0078] For the NMOS tube, the gate voltage of the NMOS tube can be controlled to control the NMOS tube to be in a conductive, not fully conductive or off state respectively. Therefore, for the first control signal to control the first switching element Q1 to be in a conductive or not conductive state, and for the second control signal to control the second switching element Q2 to be in a conductive or not conductive state, the duty cycle of the first control signal output by the driving circuit can be adjusted, and the duty cycle of the second control signal output by the driving circuit can be adjusted. The duty cycle refers to the proportion of the time occupied by the high level pulse in the entire pulse period, for example, the duty cycle of the control signal with 1 second high level pulse and 1 second low level pulse is 50%. Exemplarily, when the duty cycle of the first control signal is 100%, that is, the first control signal is a continuous high level signal, the first switching element Q1 is in a conductive state, when the duty cycle of the control signal is less than a certain value (such as 35%), the first switching element Q1 is in an off state, and when the duty cycle of the control signal is greater than a certain value (such as 35%) and less than 100%, the first switching element Q1 is in a not fully conductive state. The same is true for the second control signal, which will not be described here.

[0079] It should be understood that the above-mentioned first control signal and second control signal can be pulse width modulation (PWM) signals output by a pulse power supply. Therefore, the above-mentioned driving circuit is provided with a pulse power supply.

[0080] When the above charging circuit is applied to the charging scenario of an electronic device, that is, when the charging circuit charges the first battery and the second battery, the voltage detection circuit in the controller can detect the voltage Vbat1 of the first battery and the voltage Vbat2 of the second battery. The drive circuit in the controller can obtain the voltage Vbat1 of the first battery and the voltage Vbat2 of the second battery from the voltage detection circuit, compare the voltage Vbat1 of the first battery and the voltage Vbat2 of the second battery, and respectively output a first control signal and a second control signal according to the comparison result of the voltage Vbat1 of the first battery and the voltage Vbat2 of the second battery.

[0081] Specifically, if the voltage of the first battery is greater than the voltage of the second battery, and the voltage difference between the first battery and the second battery is greater than a preset threshold (denoted as Vth1), that is, Vbat1 > Vbat2 + Vth1, then as Figure 3A shown, the first control signal is a continuous high-level signal, which can control the first switching element Q1 to conduct, so that the first switching element Q1 is in a fully conducting state; the second control signal is a pulse signal with a duty cycle between a certain value (such as 35%) and 100%, such as Figure 3 the pulse signal with a duty cycle of 65% shown, which can control the second switching element Q2 not to conduct completely, so that the first switching element Q1 is in a voltage regulation state. At this time, the above Figure 3B can form an equivalent circuit diagram as Figure 3C shown, that is, the path from the charging circuit to the first battery is opened, and the charging circuit can charge the first battery through the voltage converter; and the second switching element Q2 is equivalent to a variable resistor R2 with a variable resistance value, which can carry a large current, so that it can also charge the second battery through the voltage converter, and adjust the voltage of the second battery by the large current carried by the second switching element Q2, so as to reduce the voltage difference between the first battery and the second battery.

[0082] On the contrary, if the voltage of the first battery is less than the voltage of the second battery, and the voltage difference between the first battery and the second battery is greater than the preset threshold, that is, Vbat1 < Vbat2 - Vth1, then as Figure 3C shown, the first control signal is a pulse signal with a duty cycle between a certain value (such as 35%) and 100%, such as Figure 3 the pulse signal with a duty cycle of 65% shown, which can control the first switching element Q1 not to conduct completely, so that the first switching element Q1 is in a voltage regulation state; the second control signal is a continuous high-level signal, which can control the second switching element Q2 to conduct completely, so that the first switching element Q1 is in a fully conducting state. At this time, the above Figure 3D can form as Figure 3EAs shown in the equivalent circuit diagram, the first switch element Q1 corresponds to the variable resistance R1, which can carry a large current, so that the charging circuit can charge the first battery through the voltage converter, and the first battery is voltage-regulated by the large current carried by the first switch element Q1, so that the voltage of the first battery is increased to reduce the voltage difference between the first battery and the second battery, and the path of the charging circuit to the second battery is opened, and the charging circuit can charge the second battery through the voltage converter.

[0083] If the voltage difference between the first battery and the second battery is less than the preset threshold, i.e., Vbat1≤Vbat2+Vth1 or Vbat1≥Vbat2-Vth1, then as shown in Figure 3 the first control signal is a continuous high-level signal, which can control the first switch element Q1 to be fully conductive, so that the first switch element Q1 is in a fully conductive state; and the second control signal is a continuous high-level signal, which can control the second switch element Q2 to be fully conductive, so that the second switch element Q2 is in a fully conductive state. At this time, the above Figure 3F can form an equivalent circuit diagram as shown in Figure 3 that is, the paths of the charging circuit to the first battery and the second battery are both opened, and the charging circuit can charge the first battery and the second battery through the voltage converter, respectively.

[0084] It should be understood that the above-mentioned preset threshold is set in advance according to the actual situation of the first battery and the second battery, for example, the above-mentioned preset threshold can be 100 mV.

[0085] In this way, when the above-mentioned charging circuit is applied to the charging scene of the electronic device, the charging current of the first battery and the second battery can be controlled by the first switch element Q1 and the second switch element Q2 in the charging circuit, respectively, to avoid the problem that a certain battery cannot be fully charged due to the inconsistency of the parameters (such as the cutoff voltage) of the first battery and the second battery or the impedance imbalance of the charging path (such as the charging path formed by the charging circuit to the first battery), so that the first battery and the second battery can both reach a fully charged state, to improve the available capacity of the battery in the electronic device and improve the use performance of the battery.

[0086] As another embodiment of the present application, the above-mentioned charging circuit as shown in Figure 1 can also be used in the discharge scene of the first battery and the second battery, and the second end of the first switch element Q1 and the second end of the second switch element Q2 can also be used to be coupled with the working circuit in the Figure 3G electronic device to discharge the first battery and the second battery and supply power to the working circuit in the electronic device.

[0087] When the charging circuit is used in a discharging scenario of the first battery and the second battery, the controller of the charging circuit is further configured to detect the voltage of the first battery and the voltage of the second battery, and output the first control signal and the second control signal according to the voltage difference between the first battery and the second battery. The first control signal is further configured to control the first switch element Q1 to be in an off state. The second control signal is further configured to control the second switch element Q2 to be in an off state.

[0088] The following takes the first switch element Q1 and the second switch element Q2 as NMOS tubes as an example to explain how the first control signal and the second control signal control the first battery and the second battery to discharge.

[0089] Similar to the charging scenario of the electronic device, in the entire discharging scenario of the electronic device, the voltage detection circuit in the controller can detect the voltage Vbat1 of the first battery and the voltage Vbat2 of the second battery. The driving circuit in the controller can obtain the voltage Vbat1 of the first battery and the voltage Vbat2 of the second battery from the voltage detection circuit, and compare the voltage Vbat1 of the first battery and the voltage Vbat2 of the second battery, and output the first control signal and the second control signal according to the comparison result of the voltage Vbat1 of the first battery and the voltage Vbat2 of the second battery.

[0090] It should be understood that the specific control logic is different in the shutdown state and the startup state of the electronic device. The following will be discussed in different cases:

[0091] In the electronic device assembly or shutdown state, the above charging circuit can isolate the first battery and the second battery, thereby preventing the large voltage difference between the first battery and the second battery from causing large current to burn the device or damage the battery. Specifically, in the electronic device assembly or shutdown state, a battery with a higher voltage can be used for power supply, or a battery with a lower voltage can be used for power supply.

[0092] The following takes the battery with a higher voltage for power supply when the electronic device is in the shutdown state as an example for description.

[0093] If the voltage Vbat1 of the first battery is higher than the voltage Vbat2 of the second battery, as shown in FIG. 6, the first control signal is a continuous high-level signal, which can control the first switch element Q1 to be turned on, so that the first switch element Q1 is in a completely conductive state. The second control signal is a continuous low-level signal, which can control the second switch element Q2 to be turned off, so that the second switch element Q2 is in an off state. At this time, the above charging circuit can form an equivalent circuit diagram as shown in FIG. 7, that is, the path from the first battery to the working circuit is opened, the path from the second battery to the working circuit is turned off, and the working circuit of the electronic device is powered by the first battery. Figure 3 Figure 3H Figure 3I ​​​

[0094] If the voltage Vbat1 of the first battery is lower than the voltage Vbat2 of the second battery, then as Figure 3 shown, the first control signal is a continuous low-level signal, which can control the first switching element Q1 to turn off, so that the first switching element Q1 is in the off state. The second control signal is a continuous high-level signal, which can control the second switching element Q2 to conduct, so that the second switching element Q2 is in the fully conducting state. At this time, the above Figure 3J can form an equivalent circuit diagram as Figure 3G shown, that is, the path from the first battery to the working circuit is turned off, and the path from the second battery to the working circuit is opened, and the second battery supplies power to the working circuit of the electronic device.

[0095] In this way, the path between the first battery and the second battery can be cut off, thus avoiding the phenomenon of large current mutual charging caused by a large voltage difference between the first battery and the second battery, resulting in device burnout or battery damage.

[0096] After the electronic device is powered on, in some embodiments, when the first battery and the second battery are in the discharging state, if the voltage difference between the first battery and the second battery is large, the battery with the larger voltage among the first battery and the second battery can first supply power to the working circuit. After the voltage difference between the first battery and the second battery decreases, both the first battery and the second battery supply power to the working circuit, thus avoiding the phenomenon of large current mutual charging caused by a large voltage difference between the first battery and the second battery, resulting in device burnout or battery damage. The specific control process is as follows:

[0097] If the voltage of the first battery is higher than the voltage of the second battery, and the voltage difference between the first battery and the second battery is greater than the preset threshold, that is, Vbat1 > Vbat2 + Vth1, then the first control signal and the second control signal as Figure 3 shown can be adopted, and the above Figure 3H can form an equivalent circuit diagram as Figure 3I shown, that is, the first control signal is a continuous high-level signal, which can control the first switching element Q1 to be fully conductive, so that the first switching element Q1 is in the fully conductive state, the path between the first battery and the working circuit is opened, and the first battery can supply power to the working circuit. The second control signal is a continuous low-level signal, which can control the second switching element Q2 to turn off, so that the second switching element Q2 is in the off state, the path between the first battery and the working circuit is disconnected, and the second battery does not supply power to the working circuit temporarily.

[0098] If the voltage of the first battery is less than the voltage of the second battery, and the voltage difference between the first battery and the second battery is greater than the preset threshold, that is, Vbat1 < Vbat2 - Vth1, then the first control signal and the second control signal as Figure 3 shown can be adopted, and the above Figure 3J can form an equivalent circuit diagram asFigure 3E The equivalent circuit diagram shown in FIG. 6, i.e., the first control signal is a continuous low-level signal, can control the first switch element Q1 to be off, so that the first switch element Q1 is in an off state, the path between the first battery and the working circuit is disconnected, and the first battery does not supply power to the working circuit temporarily. The second control signal is a continuous high-level signal, which can control the second switch element Q2 to be fully on, so that the second switch element Q2 is in a fully on state, the path between the first battery and the working circuit is opened, and the second battery can supply power to the working circuit.

[0099] If the voltage difference between the first battery and the second battery is less than the preset threshold, i.e., Vbat1≤Vbat2+Vth1 or Vbat1≥Vbat2-Vth1, the first control signal and the second control signal shown in FIG. 5 can be used, and the above Figure 3 The equivalent circuit diagram shown in FIG. 5 is formed, i.e., the first control signal is a continuous high-level signal, which can control the first switch element Q1 to be fully on, so that the first switch element Q1 is in a fully on state, the path between the first battery and the working circuit is opened, and the first battery can supply power to the working circuit. The second control signal is also a continuous high-level signal, which can control the second switch element Q2 to be fully on, so that the second switch element Q2 is in a fully on state, the path between the first battery and the working circuit is opened, and the second battery can also supply power to the working circuit. Figure 3F Figure 3C The equivalent circuit diagram shown in FIG. 5 is formed, i.e., the first control signal is a continuous high-level signal, which can control the first switch element Q1 to be fully on, so that the first switch element Q1 is in a fully on state, the path between the first battery and the working circuit is opened, and the first battery can supply power to the working circuit. The second control signal is also a continuous high-level signal, which can control the second switch element Q2 to be fully on, so that the second switch element Q2 is in a fully on state, the path between the first battery and the working circuit is opened, and the second battery can also supply power to the working circuit.

[0100] When the electronic device is powered on, in some other embodiments, in the case that the first battery and the second battery are in a discharging state, if the voltage difference between the first battery and the second battery is large, the working circuit can be supplied with power by the battery with a smaller voltage among the first battery and the second battery, while the battery with a larger voltage among the first battery and the second battery is in a voltage regulating state; when the voltage difference between the first battery and the second battery decreases, the working circuit is supplied with power by both the first battery and the second battery, thereby avoiding the phenomenon of burning devices or damaging batteries caused by large current mutual charging due to large voltage difference between the first battery and the second battery. The specific control process is as follows:

[0101] If the voltage of the first battery is higher than the voltage of the second battery, and the voltage difference between the first battery and the second battery is greater than the preset threshold, i.e., Vbat1>Vbat2+Vth1, the first control signal and the second control signal shown in FIG. 6 can be used, and the above Figure 3 The equivalent circuit diagram shown in FIG. 6 is formed, i.e., the first control signal is a continuous low-level signal, which can control the first switch element Q1 to be off, so that the first switch element Q1 is in an off state, the path between the first battery and the working circuit is disconnected, and the first battery does not supply power to the working circuit temporarily. The second control signal is a continuous high-level signal, which can control the second switch element Q2 to be fully on, so that the second switch element Q2 is in a fully on state, the path between the first battery and the working circuit is opened, and the second battery can supply power to the working circuit. Figure 3D Figure 3A ​​The equivalent circuit diagram shown, where the first control signal is a pulse signal with a duty cycle between a certain value (e.g., 35%) and 100%, can control the first switching element Q1 to conduct incompletely, making the first switching element Q1 in a voltage regulation state. At this time, the first switching element Q1 can be equivalent to a variable resistor R1, and the first battery can charge the second battery to adjust the voltages of the first battery and the second battery. The second control signal is a continuous high-level signal, which can control the second switching element Q2 to conduct, making the second switching element Q2 in a conducting state, opening the path between the first battery and the working circuit, and the second battery supplies power to the working circuit.

[0102] If the voltage of the first battery is less than the voltage of the second battery, and the voltage difference between the first battery and the second battery is greater than the preset threshold, that is, Vbat1 < Vbat2 - Vth1, then the first control signal and the second control signal as shown in Figure 3 can be adopted, and the above Figure 3B forms an equivalent circuit diagram as shown in Figure 3E That is, the first control signal is a continuous high-level signal, which can control the first switching element Q1 to conduct, making the first switching element Q1 in a conducting state, opening the path between the first battery and the working circuit, and the first battery supplies power to the working circuit. The second control signal is a pulse signal with a duty cycle between a certain value (e.g., 35%) and 100%, which can control the second switching element Q2 to conduct incompletely, making the second switching element Q2 in a voltage regulation state. At this time, the second switching element Q2 can be equivalent to a variable resistor R2, and the first battery can charge the second battery to adjust the voltages of the first battery and the second battery.

[0103] If the voltage difference between the first battery and the second battery is less than the preset threshold, that is, Vbat1 ≤ Vbat2 + Vth1 or Vbat1 ≥ Vbat2 - Vth1, then the first control signal and the second control signal as shown in Figure 3 can be adopted, and the above Figure 3F forms an equivalent circuit diagram as shown in Figure 4 That is, the first control signal is a continuous high-level signal, which can control the first switching element Q1 to conduct completely, making the first switching element Q1 in a completely conducting state, opening the path between the first battery and the working circuit, and the first battery can supply power to the working circuit. The second control signal is a continuous high-level signal, which can control the second switching element Q2 to conduct completely, making the second switching element Q2 in a completely conducting state, opening the path between the first battery and the working circuit, and the second battery can also supply power to the working circuit.

[0104] In some other embodiments, as shown in Figure 3 the first battery and the second battery of the electronic device can both use Figure 4The charging circuit shown can also use two independent charge pump chips to charge the first battery and the second battery respectively. Specifically, the electronic device further comprises a first charge pump chip and a second charge pump chip. One end of the first charge pump chip is coupled to the output terminal Vbus of the power adapter, and the other end of the first charge pump chip is coupled to the first battery. One end of the second charge pump chip is coupled to the output terminal Vbus of the power adapter, and the other end of the first charge pump chip is coupled to the second battery.

[0105] In Figure 4 In the electronic device shown, when the first battery or the second battery meets the charging condition of the charge pump chip, for example, the voltage of the first battery reaches 3.5V, the first charge pump chip can be used to charge the first battery. The voltage of the second battery reaches 3V, and the second charge pump chip can be used to charge the second battery.

[0106] In this case, in the above charging circuit, the voltage detection circuit in the controller can detect the voltage Vbat1 of the first battery and the voltage Vbat2 of the second battery. When the voltage Vbat1 of the first battery reaches 3.5V, the first control signal output by the driver in the controller can control the first switch element Q1 to be in the off state, and the first battery stops charging using the charging circuit and uses the first charge pump chip to charge. When the voltage Vbat2 of the second battery reaches 3V, the second control signal output by the driver in the controller can control the second switch element Q2 to be in the off state, and the second battery stops charging using the charging circuit and uses the second charge pump chip to charge. In this way, the above electronic device can use the charge pump chip to quickly charge the first battery and the second battery, so as to improve the charging speed.

[0107] When it is detected that the charging current of the first battery is small, such as less than the cutoff current of the first battery, if the voltage of the first battery has not reached the cutoff voltage, the controller in the above charging circuit can also output the first control signal to control the first switch element Q1 to be in the on state and continue to charge the first battery using the charging circuit.

[0108] Correspondingly, when it is detected that the charging current of the second battery is small, such as less than the cutoff current of the second battery, if the voltage of the second battery has not reached the cutoff voltage, the controller in the above charging circuit can also output the second control signal to control the second switch element Q2 to be in the on state and continue to charge the second battery using the charging circuit.

[0109] It should be understood that the charging current of the first battery can be detected by the first detector as shown in Figure 4 The charging current of the second battery can be detected by the second detector as shown in Figure 5The second detector detects. The first detector is arranged on a path where the first battery is located, and the second detector is arranged on a path where the second battery is located.

[0110] As shown in Figure 6 The application also provides a control method of the charging circuit, which comprises S501-S503.

[0111] S501, the controller detects the voltage of the first battery and the voltage of the second battery.

[0112] S502, the controller outputs a first control signal according to the voltage difference between the first battery and the second battery, so as to control the first switch element Q1 to be in a conducting state, an incomplete conducting state or an off state.

[0113] The specific control process is described in the above embodiment, which will not be repeated here.

[0114] S503, the controller outputs a second control signal according to the voltage difference between the first battery and the second battery, so as to control the second switch element Q2 to be in a conducting state, an incomplete conducting state or an off state.

[0115] The specific control process and technical effects are described in the above embodiment, which will not be repeated here.

[0116] As shown in Figure 7 The application also provides a charge-discharge control method of an electronic device. In the charge-discharge control method of the electronic device, when the electronic device is in a shutdown state, S601 is performed to control the charging circuit to supply power to the working circuit of the electronic device by the battery with higher voltage among the first battery and the second battery. For example, the voltage Vbat1 of the first battery is higher than the voltage Vbat2 of the second battery, and the working circuit of the electronic device is supplied with power by the first battery. For another example, the voltage Vbat1 of the first battery is lower than the voltage Vbat2 of the second battery, and the working circuit of the electronic device is supplied with power by the second battery. The specific control method is described in the above embodiment, which will not be repeated here.

[0117] When the electronic device is powered on, the first battery and the second battery in the electronic device discharge, and the controller in the charging circuit can perform S602 to compare the voltage Vbatl of the first battery and the voltage Vbat2 of the second battery. Exemplarily, when the voltage Vbatl of the first battery is higher than the voltage Vbat2 of the second battery, and the voltage difference between the first battery and the second battery is greater than a preset threshold, the charging circuit performs S603 to control the first battery to supply power to the working circuit of the electronic device. When the voltage Vbatl of the first battery is lower than the voltage Vbat2 of the second battery, and the voltage difference between the first battery and the second battery is greater than the preset threshold, the charging circuit performs S604 to control the second battery to supply power to the working circuit of the electronic device. When the voltage difference between the first battery and the second battery is less than or equal to the preset threshold, the control circuit performs S605 to control the first battery and the second battery to supply power to the working circuit.

[0118] When the first battery and the second battery finish discharging, the user can connect the electronic device to a power adapter, and the electronic device responds to the user's operation to perform S606 to make the first battery and the second battery in a charging state and be charged by the charging circuit. At this time, the controller in the charging circuit can perform S607 to compare the voltage Vbatl of the first battery and the voltage Vbat2 of the second battery, and control the state of the first battery and the second battery according to the difference between the voltage Vbatl of the first battery and the voltage Vbat2 of the second battery. Exemplarily, when the voltage Vbatl of the first battery is higher than the voltage Vbat2 of the second battery, and the voltage difference between the first battery and the second battery is greater than a preset threshold, the charging circuit performs S608 to control the first battery to be in a charging state and the second battery to be in a voltage regulation state. When the voltage Vbatl of the first battery is lower than the voltage Vbat2 of the second battery, and the voltage difference between the first battery and the second battery is greater than the preset threshold, the charging circuit performs S609 to control the first battery to be in a voltage regulation state and the second battery to be in a charging state. When the voltage difference between the first battery and the second battery is less than or equal to the preset threshold, the control circuit performs S610 to control the first battery and the second battery to be in a charging state.

[0119] During the charging process of the first and second batteries, the controller of the charging circuit may further execute S611 to determine whether the voltage of the first battery meets the charging condition of the first charge pump chip. For example, assume that the charging condition of the first charge pump chip is that the voltage Vbat1 of the first battery reaches 3.5V. When the voltage Vbat1 of the first battery reaches 3.5V, the controller of the charging circuit controls the first switch element Q1 to turn off and executes S612 to have the first charge pump chip charge the first battery. The charging chip may then execute S613 to determine whether the voltage of the first battery has reached the charging cutoff voltage. If the voltage of the first battery has reached the charging cutoff voltage, the controller of the charging circuit may execute S619 to terminate charging of the first battery. During the charging process of the first charge pump chip charging the first battery, if the charging current of the first battery is low, such as less than the cutoff current of the first battery, and the voltage of the first battery has not yet reached the cutoff voltage, the controller of the charging circuit may further execute S617 to control the first switch element Q1 to remain on and continue charging the first battery using the charging circuit.

[0120] During the charging process of the first and second batteries, the controller of the charging circuit may also execute S614 to determine whether the voltage of the second battery meets the charging condition of the second charge pump chip. For example, assume that the charging condition of the second charge pump chip is that the voltage Vbat2 of the second battery reaches 3V. When the voltage Vbat1 of the second battery reaches 3V, the controller of the charging circuit controls the second switch element Q2 to turn off and executes S615 to have the second charge pump chip charge the second battery. The charging chip may then execute S616 to determine whether the voltage of the second battery has reached the charging cutoff voltage. If the voltage of the second battery has reached the charging cutoff voltage, the controller of the charging circuit may execute S619 to terminate charging of the second battery. During the charging process of the second charge pump chip charging the second battery, if the charging current of the second battery is low, such as less than the cutoff current of the second battery, and the voltage of the second battery has not yet reached the cutoff voltage, the controller of the charging circuit may also execute S618 to control the second switch element Q2 to remain on and continue charging the second battery using the charging circuit.

[0121] The present application also provides another electronic device. Figure 3 As shown, the electronic device includes a power supply battery, a working circuit and a charging circuit. The power supply battery includes two positive electrodes, namely a first positive electrode and a second positive electrode, and also includes a negative electrode. The structure of the charging circuit can adopt the above Figure 4 or Figure 3 The structure of the charging circuit in.

[0122] The charging circuit includes a voltage converter, a controller, a first switching element Q1 and a second switching element Q2. The first end of the first switching element Q1 is configured to be coupled with the first positive electrode, and the first end of the second switching element Q2 is configured to be coupled with the second positive electrode. The second end of the first switching element Q1 and the second end of the second switching element Q2 are both coupled with the first end of the voltage converter, so that the voltage converter supplies power to the power supply battery through the first positive electrode and the second positive electrode. The second end of the voltage conversion circuit is configured to be coupled with the power adapter, and is configured to obtain the direct current Vbus output by the power adapter.

[0123] The controller is configured to be coupled with the first positive electrode and the second positive electrode, to detect the voltage of the first positive electrode and the voltage of the second positive electrode, and to output a first control signal and a second control signal according to the voltage difference between the first positive electrode and the second positive electrode. The controller is further coupled with the control end of the first switching element Q1, and is configured to control the first switching element Q1 to be in a conducting state or an incomplete conducting state through the first control signal, so that the first positive electrode is in a charging state or a voltage regulating state. The controller is further coupled with the control end of the second switching element Q2, and is configured to control the second switching element Q2 to be in a conducting state or an incomplete conducting state through the second control signal, so that the second positive electrode is in a charging state or a voltage regulating state.

[0124] The specific control process can refer to the electronic device shown in the above Figure 4 and Figure 7 , and details are not described here.

[0125] It should be understood that the technical effects of the electronic device shown in the above Figure 3 can refer to the technical effects of the charging circuit shown in the above Figure 5 , and details are not described here.

[0126] The embodiment of the present application further provides another electronic device. The electronic device includes a first battery, a second battery, a charging circuit and a working circuit. The first battery and the second battery are coupled with the working circuit through the charging circuit. When the electronic device is running, the charging circuit is configured to perform the method shown in the above Figure 3 . It should be understood that the technical effects of the electronic device can refer to the technical effects of the electronic device shown in the above Figure 4 and Figure 1 , and details are not described here.

[0127] The embodiment of the present application further provides a charging chip. The charging chip can be applied to the electronic device shown in the above Figure 8 . The electronic device includes a first battery, a second battery and a working circuit. As shown in the above Figure 3 , the charging chip includes a first interface, a second interface, a third interface, a fourth interface, and a charging circuit shown in the above Figure 3 .

[0128] The first interface is configured to couple the power adapter and the second end of the voltage conversion circuit.

[0129] The second interface is configured to couple the second end of the first switch element, the second end of the second switch element, the first end of the voltage conversion circuit, and the working circuit.

[0130] The third interface is configured to couple the first battery. The fourth interface is configured to couple the second battery.

[0131] Of course, if the controller in the above charging circuit is realized by the driving circuit and the voltage detection circuit, the charging chip can also include a communication control interface configured to couple the controller and a control bus (such as an I2C bus).

[0132] It should be understood that the technical effects of the above charging chip can refer to the technical effects of the charging circuit shown in the above Figure 3 , and will not be described here. In addition, the charging circuit shown in the above ​ is packaged into a charging chip, which facilitates the assembly and wiring of electronic products and can improve the integration of electronic devices.

[0133] In summary, after the charging circuit or the charging chip provided by the embodiments of the present application is applied to an electronic device, the first battery and the voltage of the first battery do not need to be considered during the generation process of the electronic device, and the electronic device can be directly assembled, thereby improving the production efficiency and reducing the generation cost. Moreover, during the charging and discharging process of the electronic device, the first battery and the second battery can be quickly balanced and isolated under the condition that the voltage difference between the first battery and the second battery is large, thereby improving the charging and discharging performance of the battery, and further improving the safety and reliability of the battery of the electronic device.

[0134] Through the description of the above embodiments, those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above functional modules is taken as an example for illustration. In actual application, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiments, which will not be described here.

[0135] The functional units in each of the embodiments of the present application can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit. The above integrated unit can be realized in the form of hardware, or in the form of a software functional unit.

[0136] The integrated unit, if implemented in the form of a software function unit and sold or used as an independent product, can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application essentially or say the part that contributes to the prior art or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium, and includes a plurality of instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor execute all or part of the steps of the methods described in the embodiments of the present application. The foregoing storage medium includes: flash memory, mobile hard disk, read-only memory, random access memory, magnetic disk or optical disk, and various media that can store program codes.

[0137] The above is only a specific implementation of the embodiments of the present application, but the protection scope of the embodiments of the present application is not limited thereto. Any change or replacement within the technical scope disclosed in the embodiments of the present application should be covered in the protection scope of the embodiments of the present application. Therefore, the protection scope of the embodiments of the present application should be subject to the protection scope of the claims.

Claims

1. A charging circuit, characterized by, The application relates to a voltage converter, a controller, a first switch element and a second switch element. The first end of the first switch element is coupled with a first battery, and the first end of the second switch element is coupled with a second battery; the second end of the first switch element and the second end of the second switch element are both coupled with the first end of the voltage converter; and the second end of the voltage conversion circuit is coupled with a power adapter. The controller is coupled with the first battery and the second battery, used for detecting the voltage of the first battery and the voltage of the second battery and outputting a first control signal and a second control signal; the controller is coupled with the first switch element, used for controlling the first switch element through the first control signal; and the controller is also coupled with the second switch element, used for controlling the second switch element through the second control signal. In the case that the first battery and the second battery are in a charging state, if the voltage of the first battery is higher than the voltage of the second battery, and the voltage difference between the first battery and the second battery is greater than a preset threshold, the first control signal is used for controlling the first switch element to be turned on, so that the first battery is charged; and the second control signal is used for controlling the second switch element to be incompletely turned on, so that the second battery is charged at a regulated voltage. In the case that the first battery and the second battery are in a charging state, if the voltage of the second battery is higher than the voltage of the first battery, and the voltage difference between the first battery and the second battery is greater than a preset threshold, the first control signal is used for controlling the first switch element to be incompletely turned on, so that the first battery is charged at a regulated voltage; and the second control signal is used for controlling the second switch element to be turned on, so that the second battery is charged.

2. The charging circuit of claim 1, wherein, In the case that the first battery and the second battery are in a charging state, if the voltage difference between the first battery and the second battery is less than or equal to a preset threshold, the first control signal is used for controlling the first switch element to be turned on, so that the first battery is charged; and the second control signal is used for controlling the second switch element to be turned on, so that the second battery is charged.

3. The charging circuit according to claim 1 or 2, characterized in that, The second end of the first switch element and the second end of the second switch element are both used for being coupled with a working circuit, so that the first battery and the second battery are discharged.

4. The charging circuit according to claim 1 or 2, characterized in that, In the case that the first battery and the second battery are in a discharging state, if the voltage of the first battery is higher than the voltage of the second battery, and the voltage difference between the first battery and the second battery is greater than a preset threshold, the first control signal is used for controlling the first switch element to be turned on, so that the first battery supplies power to the working circuit; 5. The charging circuit of claim 4, wherein, The second control signal is used for controlling the second switch element to be turned off, so that the second battery does not supply power to the working circuit. ​ 6. The charging circuit of claim 4, wherein, In a case that the first battery and the second battery are in a discharging state, if the voltage of the second battery is higher than the voltage of the first battery, and the voltage difference between the first battery and the second battery is greater than a preset threshold, the first control signal is used to control the first switch element to be off, so that the first battery does not supply power to the working circuit. The second control signal is used to control the second switch element to be on, so that the second battery supplies power to the working circuit.

7. The charging circuit of claim 4, wherein, In a case that the first battery and the second battery are in a discharging state, if the voltage of the first battery is higher than the voltage of the second battery, and the voltage difference between the first battery and the second battery is greater than a preset threshold, the first control signal is used to control the first switch element to be not completely on, so that the first battery supplies power to the working circuit and adjusts voltage; the second control signal is used to control the second switch element to be on, so that the second battery supplies power to the working circuit.

8. The charging circuit of claim 4, wherein, In a case that the first battery and the second battery are in a discharging state, if the voltage of the second battery is higher than the voltage of the first battery, and the voltage difference between the first battery and the second battery is greater than a preset threshold, the first control signal is used to control the first switch element to be on, so that the first battery supplies power to the working circuit. The second control signal is used to control the second switch element to be not completely on, so that the second battery supplies power to the working circuit and adjusts voltage.

9. The charging circuit of claim 4, wherein, In a case that the first battery and the second battery are in a discharging state, if the voltage difference between the first battery and the second battery is less than or equal to a preset threshold, the first control signal is used to control the first switch element to be on, so that the first battery supplies power to the working circuit. The second control signal is used to control the second switch element to be on, so that the second battery supplies power to the working circuit.

10. The charging circuit according to claim 1 or 2, characterized by The controller comprises a driving circuit and a voltage detection circuit; the voltage detection circuit is used to be coupled with the first battery to detect the voltage of the first battery; the voltage detection circuit is also used to be coupled with the second battery to detect the voltage of the second battery; The driving circuit is coupled with the voltage detection circuit, and is used to acquire the voltage of the first battery and the voltage of the second battery; a first output end of the driving circuit is used to output a first control signal, and is coupled with a control end of the first switch element; a second output end of the driving circuit is used to output a second control signal, and is coupled with a control end of the second switch element.

11. The charging circuit of claim 10, wherein, The controller is also used to be connected with a communication control bus, which is used to control the controller to perform voltage detection, and output the first control signal and the second control signal.

12. A charging chip, characterized by, The application is applied to an electronic device, and the electronic device comprises a first battery, a second battery and a working circuit. The charging chip comprises a first interface, a second interface, a third interface, a fourth interface and a charging circuit as claimed in any one of claims 1 to 11. The first interface is used to couple a power adapter and a second end of the voltage conversion circuit; The second interface is used to couple the first battery and a first end of the voltage conversion circuit; The second interface is used for coupling the second end of the first switch element, the second end of the second switch element, the first end of the voltage conversion circuit, and the working circuit. The third interface is used for coupling the first battery; and the fourth interface is used for coupling the second battery.

13. The charging chip of claim 12, wherein, The charging chip further comprises a communication control interface, which is used for coupling a communication control bus and the controller.

14. An electronic device, comprising: The charging chip comprises a first battery, a second battery, a working circuit, and the charging chip as claimed in claim 12 or 13; the first battery is coupled with the third interface of the charging chip to supply power to the working circuit; and the second battery is coupled with the fourth interface of the charging chip to supply power to the working circuit.

15. An electronic device, comprising: The charging chip comprises a power supply battery, a working circuit, and the charging chip as claimed in claim 12 or 13. The power supply battery comprises a first positive electrode and a second positive electrode. The first positive electrode is coupled with the third interface of the charging chip to supply power to the working circuit; and the second positive electrode is coupled with the fourth interface of the charging chip to supply power to the working circuit.

16. A control method of a charging circuit, characterized by, The charging circuit is suitable for the charging circuit as claimed in any one of claims 1 to 11. The method comprises: The controller detects the voltage of the first battery and the voltage of the second battery; The controller outputs a first control signal and a second control signal according to the voltage difference between the first battery and the second battery; The first control signal controls the first switch element to be in a conducting state, an incomplete conducting state, or an off state; and the second control signal controls the second switch element to be in a conducting state, an incomplete conducting state, or an off state; wherein, in a case where the first battery and the second battery are in a charging state, if the voltage of the first battery is higher than the voltage of the second battery, and the voltage difference between the first battery and the second battery is greater than a preset threshold, the first control signal controls the first switch element to be in a conducting state to charge the first battery; and the second control signal controls the second switch element to be in an incomplete conducting state to charge the second battery.

17. The method of claim 16, wherein, The first control signal controls the first switch element to be in a conducting state, an incomplete conducting state, or an off state; and the second control signal controls the second switch element to be in a conducting state, an incomplete conducting state, or an off state, which comprises: In a case where the first battery and the second battery are in a charging state, if the voltage of the second battery is higher than the voltage of the first battery, and the voltage difference between the first battery and the second battery is greater than a preset threshold, the first control signal controls the first switch element to be in an incomplete conducting state to charge the first battery; and the second control signal controls the second switch element to be in a conducting state to charge the second battery.

18. The method according to claim 16 or 17, characterized in that In a case where the first battery and the second battery are in a charging state, if the voltage difference between the first battery and the second battery is less than or equal to a preset threshold, the first control signal controls the first switch element to be in a conducting state to charge the first battery; and the second control signal controls the second switch element to be in a conducting state to charge the second battery.

19. The method of claim 16 or 17, wherein, The second end of the first switch element and the second end of the second switch element are further used for coupling with a working circuit to discharge the first battery and the second battery; the first control signal controls the first switch element to be in a conducting, incomplete conducting or off state, and the second control signal controls the second switch element to be in a conducting, incomplete conducting or off state, comprising: In the case that the first battery and the second battery are in a discharging state, if the voltage of the first battery is higher than the voltage of the second battery, and the voltage difference between the first battery and the second battery is greater than a preset threshold, the first control signal controls the first switch element to be conducting, so that the first battery supplies power to the working circuit; the second control signal controls the second switch element to be off, so that the second battery does not supply power to the working circuit.

20. The method of claim 16 or 17, wherein, The second end of the first switch element and the second end of the second switch element are further used for coupling with a working circuit to discharge the first battery and the second battery; the first control signal controls the first switch element to be in a conducting, incomplete conducting or off state, and the second control signal controls the second switch element to be in a conducting, incomplete conducting or off state, comprising: In the case that the first battery and the second battery are in a discharging state, if the voltage of the first battery is higher than the voltage of the second battery, and the voltage difference between the first battery and the second battery is greater than a preset threshold, the first control signal controls the first switch element to be off, so that the first battery does not supply power to the working circuit; the second control signal controls the second switch element to be conducting, so that the second battery supplies power to the working circuit.

21. The method of claim 16 or 17, wherein, The second end of the first switch element and the second end of the second switch element are further used for coupling with a working circuit to discharge the first battery and the second battery; the first control signal controls the first switch element to be in a conducting, incomplete conducting or off state, and the second control signal controls the second switch element to be in a conducting, incomplete conducting or off state, comprising: In the case that the first battery and the second battery are in a discharging state, if the voltage of the first battery is higher than the voltage of the second battery, and the voltage difference between the first battery and the second battery is greater than a preset threshold, the first control signal controls the first switch element to be conducting, so that the first battery supplies power to the working circuit; the second control signal controls the second switch element to be off, so that the second battery does not supply power to the working circuit.

22. The method of claim 16 or 17, wherein, The second end of the first switch element and the second end of the second switch element are further used for coupling with a working circuit to discharge the first battery and the second battery; the first control signal controls the first switch element to be in a conducting, incomplete conducting or off state, and the second control signal controls the second switch element to be in a conducting, incomplete conducting or off state, comprising: In the case that the first battery and the second battery are in a discharging state, if the voltage of the first battery is higher than the voltage of the second battery, and the voltage difference between the first battery and the second battery is greater than a preset threshold, the first control signal controls the first switch element to be conducting, so that the first battery supplies power to the working circuit; the second control signal controls the second switch element to be off, so that the second battery does not supply power to the working circuit. In a case where the first battery and the second battery are in a discharging state, if a voltage of the second battery is higher than a voltage of the first battery, and a voltage difference between the first battery and the second battery is greater than a preset threshold, the first control signal controls the first switching element to be conductive, so that the first battery supplies power to the working circuit; and the second control signal controls the second switching element to be incompletely conductive, so that the second battery supplies power to the working circuit and regulates voltage.

23. The method of claim 16 or 17, wherein, The second end of the first switching element and the second end of the second switching element are further configured to be coupled to a working circuit, so that the first battery and the second battery are discharged; the first control signal controls the first switching element to be in a conductive, incompletely conductive or off state, and the second control signal controls the second switching element to be in a conductive, incompletely conductive or off state, including: In a case where the first battery and the second battery are in a discharging state, if a voltage difference between the first battery and the second battery is less than or equal to a preset threshold, the first control signal controls the first switching element to be conductive, so that the first battery supplies power to the working circuit; and the second control signal controls the second switching element to be conductive, so that the second battery supplies power to the working circuit.

24. An electronic device, comprising: The electronic device comprises a first battery, a second battery, a charging circuit and a working circuit; the first battery and the second battery are coupled to the working circuit through the charging circuit; when the electronic device is running, the charging circuit is configured to perform the method in any one of claims 16-23.

Citation Information

Patent Citations

  • Apparatus and method for controlling electricity supply to portable device by multiple batteries

    CN101399450A

  • Charging equalization device, terminal equipment, method and storage medium

    CN111009940A