Charging circuit control method and device, terminal equipment and storage medium
By adding a step-up and buck conversion circuit to the terminal equipment and controlling its working mode according to the adjustable charge pump, the problem of two series batteries being difficult to achieve voltage equalization under discharge state is solved, and fast voltage equalization and better discharge equalization effect are achieved.
Patent Information
- Application Number
- CN202411563234.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-04
- Publication Date
- 2025-02-25
AI Technical Summary
In terminal devices, voltage equalization is difficult to achieve in the discharged state of two series batteries, especially when an adjustable charge pump is used.
Voltage equalization between the two batteries is achieved by adding a step-up and buck conversion circuit in the terminal device and controlling the working mode of the step-up and buck conversion circuit according to the operating mode of the adjustable charge pump.
It realizes the rapid voltage equalization of the two series batteries in the discharge state, and improves the discharge equalization effect of the two batteries in the terminal equipment.
Smart Images

Figure CN119519034A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of charging technology, and in particular to a charging circuit control method, device, terminal equipment and storage medium. Background Art
[0002] With the development of science and technology, various terminal devices appear in people's daily lives. When the terminal device is low on power, it needs to be charged.
[0003] At present, the number of batteries set in the terminal device may be more than one. For example, in a foldable terminal, the terminal device will arrange a battery on the main board side and another battery on the sub-board side, and use different batteries as power supply in different usage scenarios. As the terminal device is used, the power of these two batteries will also be consumed. When charging, these two batteries are usually charged at the same time, or, when in use, these two batteries are also consumed at the same time. Usually, in some terminal devices, two batteries are connected in series. In order to expand the discharge support of the battery in a larger voltage range, an adjustable charge pump is usually used. The function of this adjustable charge pump is used to achieve support for a lower discharge voltage of the battery. However, how to balance the charge and discharge of these two batteries in series based on the use of an adjustable charge pump is a problem that needs to be solved urgently. Summary of the invention
[0004] In order to solve the problems of the related art, the effect of charging and discharging balance of two series-connected batteries in a terminal device is improved, especially in the discharge state, the voltage balance between the two series-connected batteries can be further quickly achieved. The embodiment of the present application provides a charging circuit control method, device, terminal device and storage medium. The technical solution is as follows:
[0005] In one aspect, the present application provides a charging circuit control method, which is applied to a terminal device, wherein the terminal device includes an adjustable charge pump, a first battery, a second battery, and a buck-boost conversion circuit, wherein a first end of the adjustable charge pump is connected to a positive electrode of the first battery, the first battery and the second battery are connected in series, a first end of the buck-boost conversion circuit is connected between a negative electrode of the first battery and a positive electrode of the second battery, and a second end of the buck-boost conversion circuit is electrically connected to a second end of the adjustable charge pump, and the method includes:
[0006] When the terminal device is in a discharging state, obtaining a first operating mode of the adjustable charge pump;
[0007] According to the first operating mode of the adjustable charge pump, the buck-boost conversion circuit is controlled to be in a second operating mode, wherein, when the buck-boost conversion circuit is in the second operating mode, voltage balance is achieved between the first battery and the second battery; different first operating modes correspond to different second operating modes.
[0008] In one aspect, the present application provides a charging circuit control device, which is applied to a terminal device, wherein the terminal device includes an adjustable charge pump, a first battery, a second battery, and a buck-boost conversion circuit, wherein a first end of the adjustable charge pump is connected to a positive electrode of the first battery, the first battery and the second battery are connected in series, a first end of the buck-boost conversion circuit is connected between a negative electrode of the first battery and a positive electrode of the second battery, a second end of the buck-boost conversion circuit is electrically connected to a second end of the adjustable charge pump, and the device includes:
[0009] A first acquisition module, configured to acquire a first operating mode of the adjustable charge pump when the terminal device is in a discharging state;
[0010] The first control module is used to control the buck-boost conversion circuit to be in a second operating mode according to the first operating mode of the adjustable charge pump, wherein voltage balance is achieved between the first battery and the second battery when the buck-boost conversion circuit is in the second operating mode; different first operating modes correspond to different second operating modes.
[0011] In another aspect, the present application provides a terminal device, the terminal device comprising:
[0012] First battery;
[0013] Second battery;
[0014] An adjustable charge pump; a first end of the adjustable charge pump is connected to the positive electrode of the first battery, and the first battery and the second battery are connected in series;
[0015] A buck-boost conversion circuit, wherein a first end of the buck-boost conversion circuit is connected between the negative electrode of the first battery and the positive electrode of the second battery, and a second end of the buck-boost conversion circuit is electrically connected to a second end of the adjustable charge pump;
[0016] A charging circuit control device, wherein the charging circuit control device is used to obtain a first operating mode of the adjustable charge pump when the terminal device is in a discharging state; and control the buck-boost conversion circuit to be in a second operating mode according to the first operating mode of the adjustable charge pump, wherein voltage balance is achieved between the first battery and the second battery when the buck-boost conversion circuit is in the second operating mode; and different first operating modes correspond to different second operating modes.
[0017] In another aspect, the present application provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program is executed by a processor to implement the charging circuit control method as described in one aspect.
[0018] On the other hand, an embodiment of the present application provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the charging circuit control method as described in one aspect above.
[0019] On the other hand, an embodiment of the present application provides an application publishing platform, which is used to publish a computer program product, wherein when the computer program product runs on a computer, the computer executes the charging circuit control method described in one aspect above.
[0020] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:
[0021] The terminal device of the present application includes an adjustable charge pump, a first battery, a second battery and a buck-boost conversion circuit, wherein the first end of the adjustable charge pump is connected to the positive electrode of the first battery, the first battery and the second battery are connected in series, the first end of the buck-boost conversion circuit is connected between the negative electrode of the first battery and the positive electrode of the second battery, and the second end of the buck-boost conversion circuit is electrically connected to the second end of the adjustable charge pump. When the terminal device is in a discharging state, the first operating mode of the adjustable charge pump is obtained; according to the first operating mode of the adjustable charge pump, the buck-boost conversion circuit is controlled to be in a second operating mode, wherein voltage balance is achieved between the first battery and the second battery when the buck-boost conversion circuit is in the second operating mode; different first operating modes correspond to different second operating modes. The present application aims at the situation where an adjustable charge pump is used in two series-connected batteries of a terminal device. By adding a buck-boost conversion circuit and controlling the working mode of the buck-boost conversion circuit according to the first working mode of the adjustable charge pump, voltage balancing of the two batteries in a discharge state is achieved. Different working modes of the buck-boost conversion circuit are set for the adjustable charge pump under various working modes, thereby quickly balancing the voltages of the two batteries, thereby improving the discharge balancing effect of the two batteries in the terminal device. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0023] Figure 1 is a structural schematic diagram of a terminal device provided by an exemplary embodiment of the present application;
[0024] Figure 2 is a schematic structural diagram of an internal circuit of a foldable terminal involved in an exemplary embodiment of the present application;
[0025] Figure 3 is a method flow chart of a charging circuit control method provided by an exemplary embodiment of the present application;
[0026] Figure 4 It is a schematic diagram of circuit connections inside a terminal device involved in an exemplary embodiment of the present application;
[0027] Figure 5 is a method flow chart of a charging circuit control method provided by an exemplary embodiment of the present application;
[0028] Figure 6 It is a schematic diagram of circuit connections inside a terminal device involved in an exemplary embodiment of the present application;
[0029] Figure 7 is a schematic diagram of a working mode switching of a bidirectional Regulated CP under different total battery voltage conditions involved in an exemplary embodiment of the present application;
[0030] Figure 8 An exemplary embodiment of the present application relates to Figure 6 A circuit diagram of a dual-battery discharge topology circuit;
[0031] Fig. 9 An exemplary embodiment of the present application relates to Figure 6 A circuit diagram of a dual-battery discharge topology circuit;
[0032] Fig.10 An exemplary embodiment of the present application relates to Figure 6 A circuit diagram of a dual-battery discharge topology circuit;
[0033] Fig.11It is a schematic diagram of the operation conversion between the operation mode of a bidirectional Regulated CP and the operation mode of a buck-boost conversion circuit under different total battery voltages involved in an exemplary embodiment of the present application;
[0034] Fig.12 An exemplary embodiment of the present application relates to Figure 6 A schematic diagram of changes in charging current and equalizing current during a charging process;
[0035] Fig.13 This is a schematic diagram of a circuit structure of a terminal device in a charging state according to an exemplary embodiment of the present application;
[0036] Fig.14 It is a schematic diagram of a state in which a bidirectional Regulated CP and a buck-boost conversion circuit respectively work in respective modes in a normal charging mode according to an exemplary embodiment of the present application;
[0037] Fig.15 is a structural block diagram of a charging circuit control device provided by an exemplary embodiment of the present application;
[0038] Fig.16 It is a structural schematic diagram of another example of a charging circuit control device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0039] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0040] The term "multiple" as used herein refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.
[0041] The solution provided by the present application can be used in real-life scenarios where people use terminal devices for charging and discharging in daily life. To facilitate understanding, the application scenarios involved in the embodiments of the present application are first briefly introduced below.
[0042] With the development of science and technology, various terminal devices appear in people's daily lives. People can use terminal devices for work, entertainment, study, etc. When the terminal device is low on power, it needs to be charged.
[0043] Normally, one battery is sufficient in a terminal device, but as the form factor of terminal devices changes, most manufacturers have found it more cost-effective to use multiple batteries, and it is becoming more and more common to have multiple batteries to power terminal devices. For example, in a foldable terminal, when folded, the terminal device can display some daily information such as time on a small screen, and when opened, it can display the corresponding interface content on a larger display.
[0044] In this type of terminal device, the two parts of the foldable terminal are usually divided into a main board and a sub-board. The terminal device manufacturer will arrange a battery on the main board side and another battery on the sub-board side, and use different batteries as power supply in different usage scenarios.
[0045] Please refer to Figure 1 , which shows a schematic diagram of the structure of a terminal device provided by an exemplary embodiment of the present application. Figure 1 As shown, the terminal device may include a processor 110 , an internal memory 121 , a charging management module 140 , a power management module 141 , and an energy storage module 142 .
[0046] It is understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0047] The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and / or a neural network processor (neural-network processing unit, NPU), etc. Among them, different processing units can be independent devices or integrated into one or more processors. Exemplarily, the processor 110 can be a smart terminal CPU, such as a Snapdragon series processor, etc. In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0048] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0049] The charging management module 140 is used to receive charging input from the charger. The charger can be a wireless charger or a wired charger. The power management module 141 is connected to the energy storage module 142, and the charging management module 140 is connected to the processor 110 respectively. The power management module 141 is used to receive input from the energy storage module 142 and / or the charging management module 140, and to power the processor 110, the internal memory 121, etc. The energy storage module 142 is equivalent to a battery module, including batteries, batteries, etc. The power management module 141 includes the buck-boost conversion circuit provided in the subsequent application.
[0050] Although not shown, the terminal device may further include a camera. Optionally, the camera may be located at the front or rear of the terminal device, which is not limited in the embodiment of the present application.
[0051] It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the terminal device. In other embodiments of the present application, the terminal device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0052] Optionally, the terminal device may include but is not limited to wearable devices (such as bracelets, smart watches, smart glasses, etc.), mobile phones, tablet computers, laptop computers, MP3 players (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Compression Standard Audio Layer 3), MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Compression Standard Audio Layer 4) players, desktop computers, laptop computers, etc. The battery module of the terminal device may support wired charging or wireless charging.
[0053] Usually, the above Figure 1 The electronic devices shown need to be equipped with corresponding operating systems and run based on the operating systems. For example, the operating system of the terminal device can be an Android system, an iOS system, a Linux system, etc.
[0054] For foldable terminal devices, it is difficult to have two batteries of the same size and capacity due to shape limitations. The two batteries are divided into two parts by the hinge structure, and the connection is through a flexible circuit board (FPC) through the shaft, and the connection impedance is relatively large. In order to expand the discharge support of the battery in a wider voltage range, an adjustable charge pump is usually used to use the function of this charge pump to support a lower discharge voltage of the battery.
[0055] Please refer to Figure 2 , which shows a schematic diagram of the structure of an internal circuit of a foldable terminal involved in an exemplary embodiment of the present application. Figure 2 As shown, it includes a first battery 201, a second battery 202, an adjustable charge pump 203, a switch circuit 204, a system power supply circuit 205, a fast charging circuit 206, and a USB interface 207.
[0056] exist Figure 2 In the embodiment, the first battery 201 and the second battery 202 are connected in series, and usually, the capacities of the two batteries are different. When the foldable terminal needs to use the power of the first battery 201 and the second battery 202 to power the system, the switch circuit 204 can be closed to control the working mode of the adjustable charge pump 203 (Regulated CP), so as to provide the voltage Vsys output to the system through the system power supply circuit 205.
[0057] In addition, the use of the Universal Serial Bus (USB) interface 207 and the fast charging circuit 206 can enable the foldable terminal to be connected to an external power source through a charger, and the power is supplied by the external power source, and the power is transmitted through the fast charging circuit 206 to charge the first battery 201 and the second battery 202.
[0058] Optional, in the above Figure 2 In the circuit shown, since the voltage Vsys of the foldable terminal using the battery to power the system is limited by the subsequent devices, the currently available Vsys voltage needs to be maintained in the range of 3.2V to 4.6V. Since the current bidirectional CP usually operates in a fixed 2:1 ratio step-down mode, the sum of the two battery voltages needs to be maintained at 6.4V to 9.2V. This is no problem in the current graphite battery power supply system (the current graphite battery discharge voltage range is 3.4V to 4.5V). With the advancement of battery technology, this voltage range can no longer meet the discharge voltage range of future silicon negative electrode batteries, so the application of silicon negative electrode batteries will be greatly restricted.
[0059] Silicon negative electrode batteries add silicon materials to the negative electrode materials of current graphite batteries, which greatly improves the energy density of the battery. However, the discharge voltage range of silicon negative electrode batteries will further drop to 2.5V or even lower. Therefore, the current solution can no longer meet the discharge voltage range of future silicon negative electrode batteries. In such terminal equipment using two silicon negative electrode batteries of unequal capacity, how to combine an adjustable charge pump to balance the charge and discharge of these two batteries is an urgent problem to be solved.
[0060] In order to achieve matching with Regulated CP and improve the discharge balancing effect of unequal-capacity batteries connected in series, the present application provides a charging circuit control method, which can control the actual working mode of the buck-boost conversion circuit according to the first working mode of the charge pump, so that the combined circuit of the two in the terminal device continues to maintain the voltage balance of the two batteries in the discharge state.
[0061] Please refer to Figure 3 , which shows a method flow chart of a charging circuit control method provided by an exemplary embodiment of the present application. The charging circuit control method can be applied to a terminal device, the terminal device includes an adjustable charge pump, a first battery, a second battery and a buck-boost conversion circuit, the first end of the adjustable charge pump is connected to the positive electrode of the first battery, the first battery and the second battery are connected in series, the first end of the buck-boost conversion circuit is connected between the negative electrode of the first battery and the positive electrode of the second battery, and the second end of the buck-boost conversion circuit is electrically connected to the second end of the adjustable charge pump. Figure 3 As shown, the charging circuit control method may include the following steps:
[0062] Step 301: When the terminal device is in a discharging state, a first operating mode of an adjustable charge pump is obtained.
[0063] Optionally, in this solution, the terminal device is provided with a first battery and a second battery, the first battery and the second battery are connected in series, and there is a connection point between the series circuit of the first battery and the second battery for connecting the buck-boost conversion circuit. Figure 4 , which shows a schematic diagram of circuit connections inside a terminal device involved in an exemplary embodiment of the present application. Figure 4 As shown, the charging and discharging circuit 401, the first battery 402, the second battery 403, the buck-boost conversion circuit 404, the adjustable charge pump 405, and the fast charging circuit 406 are included. Figure 4 In the manner shown, the first end is connected between the first battery 402 and the second battery 403, and the second end is electrically connected to the second end of the adjustable charge pump 405. Optionally, the adjustable charge pump 405 can be a bidirectional Regulated CP.
[0064] Optionally, the terminal device is a foldable terminal or a dual-battery device. Figure 2 According to the content in the figure, the terminal device is divided into a main board and a sub-board, so the first folding part can be the main board and the second folding part can be the sub-board.
[0065] In this solution, the terminal device must also include a control chip. Figure 4It is not clearly drawn, but in actual control, it can be controlled by the control chip. For example, the control chip can obtain the charging and discharging state of the terminal device, and if it is currently in the discharging state, further obtain the current working mode (i.e., the first working mode) of the adjustable charge pump in the circuit.
[0066] Optionally, the adjustable charge pump 405 in this solution can operate in multiple operating modes, such as the common traditional 1:2 boost mode and 2:1 buck mode, etc. Under different circuit requirements, the adjustable charge pump 405 can operate in different operating modes.
[0067] Step 302, according to the first working mode of the adjustable charge pump, control the buck-boost conversion circuit to be in the second working mode, wherein, when the buck-boost conversion circuit is in the second working mode, voltage balance is achieved between the first battery and the second battery; different first working modes correspond to different second working modes.
[0068] Optionally, the terminal device controls the working mode of the buck-boost conversion circuit according to the first working mode of the adjustable charge pump obtained. That is, the second working mode of the buck-boost conversion circuit corresponds to the first working mode of the adjustable charge pump. For example, the mapping relationship between different first working modes and different second working modes can be set in advance in the terminal device. When the current working mode of the adjustable charge pump is one of them, the terminal device can control the buck-boost conversion circuit to work in the corresponding second working mode. That is, according to the current working mode of the adjustable charge pump, the current working mode of the buck-boost conversion circuit is controlled.
[0069] Among them, by adjusting the current working mode of the buck-boost conversion circuit, the current working mode of the buck-boost conversion circuit matches the first working mode of the adjustable charge pump, and the two units each work in their respective working modes, the voltage balance between the first battery and the second battery can continue to be maintained. Thus, in the two batteries connected in series, the working mode of the adjustable charge pump is timely adapted, and the voltage balance between the first battery and the second battery can be ensured.
[0070] In summary, the terminal device of the present application includes an adjustable charge pump, a first battery, a second battery and a buck-boost conversion circuit, the first end of the adjustable charge pump is connected to the positive electrode of the first battery, the first battery and the second battery are connected in series, the first end of the buck-boost conversion circuit is connected between the negative electrode of the first battery and the positive electrode of the second battery, the second end of the buck-boost conversion circuit is electrically connected to the second end of the adjustable charge pump, and when the terminal device is in a discharging state, the first operating mode of the adjustable charge pump is obtained; according to the first operating mode of the adjustable charge pump, the buck-boost conversion circuit is controlled to be in a second operating mode, wherein, when the buck-boost conversion circuit is in the second operating mode, voltage balance is achieved between the first battery and the second battery; different first operating modes correspond to different second operating modes. The present application aims at the situation where an adjustable charge pump is used in two series-connected batteries of a terminal device. By adding a buck-boost conversion circuit and controlling the working mode of the buck-boost conversion circuit according to the first working mode of the adjustable charge pump, voltage balancing of the two batteries in a discharge state is achieved. Different working modes of the buck-boost conversion circuit are set for the adjustable charge pump under various working modes, thereby quickly balancing the voltages of the two batteries, thereby improving the discharge balancing effect of the two batteries in the terminal device.
[0071] In one possible implementation, the operating modes of the adjustable charge pump include, in addition to the traditional 1:2 boost mode and 2:1 buck mode (fixed 2:1 ratio mode), a fixed output mode and a fixed special ratio mode; the operating mode of the corresponding buck-boost conversion circuit is pre-set for each operating mode of the adjustable charge pump in the terminal device, so that the buck-boost conversion circuit can be directly controlled to operate in the corresponding operating mode according to the current operating mode of the adjustable charge pump, thereby improving the discharge balancing effect of the two batteries in the terminal device.
[0072] Please refer to Figure 5 , which shows a method flow chart of a charging circuit control method provided by an exemplary embodiment of the present application. The charging circuit control method can be applied to a terminal device, the terminal device includes an adjustable charge pump, a first battery, a second battery and a buck-boost conversion circuit, the first end of the adjustable charge pump is connected to the positive electrode of the first battery, the first battery and the second battery are connected in series, the first end of the buck-boost conversion circuit is connected between the negative electrode of the first battery and the positive electrode of the second battery, and the second end of the buck-boost conversion circuit is electrically connected to the second end of the adjustable charge pump. Figure 5 As shown, the charging circuit control method may include the following steps:
[0073] Step 501, obtaining the charging and discharging status of the terminal device; the charging and discharging status includes the charging state and the discharging state.
[0074] Optionally, the terminal device can obtain its own charge and discharge status by detecting whether it has established a charging connection with the charger. If no charging connection is established with the charger, the charge and discharge status of the terminal device belongs to the discharge state. If a charging connection is established with the charger, the charge and discharge status of the terminal device belongs to the charging state. The charger can be a wired charger or a wireless charger.
[0075] Step 502: When the terminal device is in a discharging state, a first operating mode of an adjustable charge pump is obtained.
[0076] Optionally, the internal circuit structure of the terminal device in this solution can refer to the above Figure 4 The structure shown is not described in detail here.
[0077] In one possible implementation, the terminal device may obtain the first operating mode of its internal adjustable charge pump as follows: based on the respective battery voltages of the first battery and the second battery, obtain the total battery voltage, which is the sum of the battery voltage of the first battery and the battery voltage of the second battery; based on the voltage range in which the total battery voltage is located, determine the first operating mode of the adjustable charge pump; wherein the operating modes of the adjustable charge pump corresponding to different voltage ranges in which the total battery voltage is located are different.
[0078] Optionally, in the terminal device, the current working mode of the adjustable charge pump is determined based on the voltage range in which the total battery voltage of the two batteries is located. For example, the following working mode can be set in the terminal device in advance: when the terminal device is in a discharge state, if the voltage of the dual batteries is high, for example, the sum of the battery voltage of the first battery and the battery voltage of the second battery is greater than the first preset voltage, the adjustable charge pump CP needs to work in working mode one, and if the sum of the battery voltage of the first battery and the battery voltage of the second battery is not greater than the first preset voltage, the adjustable charge pump CP needs to work in working mode two. Here, an example is given in which the adjustable charge pump CP has two working modes and a first preset voltage. In actual applications, the adjustable charge pump CP may have more working modes, and accordingly, there will be more judgment intervals.
[0079] For example, the working modes of the adjustable charge pump include: fixed 2:1 ratio mode, fixed output mode and fixed special ratio mode; wherein the fixed 2:1 ratio mode is a mode in which the ratio between the target output voltage and the total battery voltage is a fixed value; the target output voltage is the power supply voltage provided to the load of the terminal device after the total battery voltage is converted by the adjustable charge pump; the total battery voltage is the sum of the battery voltages of the first battery and the second battery; the fixed output mode is a mode in which the target output voltage is constant; the fixed special ratio mode is a mode in which the ratio between the target output voltage and the total battery voltage is a fixed value; the fixed value is a ratio other than 1:2. wherein the switch duty cycle of the adjustable charge pump refers to the ratio of the time occupied by the high level in the signal within a certain period, that is, the ratio of the conduction time to the entire period length. similar to the switch duty cycle in the direct current-direct current (DCDC) converter. the switch duty cycle of the adjustable charge pump can be adjusted to a constant value, and the input and output of the adjustable charge pump can be realized to be a preset ratio relationship.
[0080] The target output voltage is equivalent to the voltage that the two batteries ultimately provide to the load of the terminal device for operation.
[0081] Please refer to Figure 6 , which shows a schematic diagram of circuit connections inside a terminal device involved in an exemplary embodiment of the present application. Figure 6 As shown, the charging and discharging circuit 601, the first battery 602, the second battery 603, the buck-boost conversion circuit 604, the adjustable charge pump 605, the switch circuit 606, and the fast charging circuit 607 are included. Figure 6 In the manner shown, the first end is connected between the first battery 602 and the second battery 603 , and the second end is electrically connected to the second end of the adjustable charge pump 605 .
[0082] Among them, the charge and discharge circuit 601 is composed of Figure 6 The various electronic devices shown in the figure are composed of the voltage Vsys output by the circuit, which represents the voltage finally provided to the load of the terminal device for operation. The charging and discharging circuit can provide a general charging function and a function of providing an operating voltage to the load of the terminal device.
[0083] The optional, adjustable charge pump CP is a bidirectional Regulated CP. Figure 6In the circuit shown, when the switch S1 in the switch circuit 606 is in a closed state, the bidirectional Regulated CP can operate in a fixed 2:1 ratio mode (including the traditional 2:1 buck and 1:2 boost modes), and the ratio between the target output voltage and the total battery voltage is 1:2. When the switch S1 is in an open state, the bidirectional Regulated CP operates in a fixed output mode, and the target output voltage can be kept constant by adjusting the duty cycle of the bidirectional Regulated CP, maintaining a fixed output value. In a special case, when it is necessary to fix the duty cycle of the switch tube in the bidirectional Regulated CP, the input-output ratio of the bidirectional Regulated CP is fixed, and the adjustment of the working ratio of the bidirectional Regulated CP can be achieved by adjusting the duty cycle.
[0084] In the above case, the terminal device determines the current working mode of the adjustable charge pump according to the voltage range in which the total battery voltage is located as follows: when the total battery voltage is in the first voltage range, the first working mode of the adjustable charge pump is determined to be a fixed 2:1 ratio mode; the first voltage range is a voltage range corresponding to a voltage greater than the first preset voltage threshold; when the total battery voltage is in the second voltage range, the first working mode of the adjustable charge pump is determined to be a fixed output mode; the second voltage range is a voltage range corresponding to a voltage less than the second preset voltage threshold; wherein the first preset voltage threshold is greater than the second preset voltage threshold; when the total battery voltage is in the third voltage range, the first working mode of the adjustable charge pump is determined to be a fixed special ratio mode; the third voltage range is a voltage range corresponding to a voltage greater than the second preset voltage threshold and less than the first preset voltage threshold.
[0085] For example, combining the above Figure 6In the circuit structure shown, the first preset voltage threshold set in the terminal device is 6.8V, and the second preset voltage threshold is 5V. Then, the first voltage interval is the voltage interval corresponding to >6.8V, the second voltage interval is the voltage interval corresponding to <5V, and the third voltage interval is the voltage interval corresponding to greater than or equal to 5V and less than or equal to 6.8V. Vbat1 represents the battery voltage of the first battery, Vbat2 represents the battery voltage of the second battery, and Vbat represents the sum of the voltages of the first battery and the second battery. In the discharge state, if the terminal device obtains Vbat>6.8V, it means that the bidirectional Regulated CP works in a fixed 2:1 ratio mode, and the power supply voltage Vsys provided to the operating system is Vbat / 2. As the discharge continues, the total battery voltage will continue to drop. When the Vbat obtained by the terminal device is greater than or equal to 5V and less than or equal to 6.8V, the bidirectional Regulated CP performs a mode conversion, switching from the previous fixed 2:1 ratio mode corresponding to a voltage higher than 6.8V to a fixed special ratio mode, for example: the input-output ratio of the bidirectional Regulated CP is adjusted to a fixed 3:2 (i.e., a preset ratio relationship), and the power supply voltage Vsys provided to the operating system at this time is Vbat*2 / 3. As the discharge continues, the total battery voltage will continue to drop. When the total battery voltage Vbat obtained by the terminal device is less than 5V, the bidirectional Regulated CP performs a mode conversion again and works in a fixed output mode. At this time, the bidirectional Regulated CP outputs a fixed voltage of 3.3V (i.e., the power supply voltage Vsys provided to the operating system is 3.3V). When the total battery voltage Vbat<5V, the bidirectional Regulated CP maintains this working mode unchanged until the battery discharge is completed.
[0086] Please refer to Figure 7 , which shows a schematic diagram of a bidirectional Regulated CP working mode switching under different total battery voltages involved in an exemplary embodiment of the present application. Figure 7 As shown in the figure, as the battery discharges, the total battery voltage continues to decrease, and the working mode of the bidirectional Regulated CP switches once when it is lower than 6.8V, and switches again when it is lower than 5V. Corresponding to the total battery voltage being in the above three voltage ranges, the bidirectional Regulated CP works in three different working modes.
[0087] Step 503, when the first working mode of the adjustable charge pump is a fixed 2:1 ratio mode, control the working mode of the buck-boost converter circuit to be in a direct-pass working mode.
[0088] Optionally, in the present embodiment, a plurality of operating modes are provided for the buck-boost conversion circuit. For each operating mode of the adjustable charge pump, there is a corresponding operating mode of the buck-boost conversion circuit, thereby controlling the operating mode of the buck-boost conversion circuit based on the current operating mode of the adjustable charge pump.
[0089] Optional, with the above Figure 6 Taking the circuit structure of the buck-boost conversion circuit shown in as an example, the buck-boost conversion circuit includes at least six switching tubes and an inductor device; when the terminal device controls the working mode of the buck-boost conversion circuit to be in the second working mode, the working state of at least six switching tubes in the buck-boost conversion circuit is controlled to be in the on state or the off state, so that the conduction state of the loop composed of the inductor device is different, so that the buck-boost conversion circuit is in the second working mode.
[0090] For example, combining the above Figure 6 The circuit structure shown in the figure is composed of six switch tubes and an inductor device. The six switch tubes are Q6, Q7, Q8, Q9, Q10, and Q11, and the inductor device is L2. The connection method of each component is as follows Figure 6 As shown in . In this scheme, the buck-boost conversion circuit can work in multiple working modes: direct working mode (bypass mode), adjustable output mode, and constant ratio mode. Among them, the direct working mode is a mode in which the positive electrode of the second battery is directly connected to the second end of the adjustable charge pump; the adjustable output mode is a mode in which the output voltage of the buck-boost conversion circuit is increased and the voltage is adjustable; the constant ratio mode is a mode in which the ratio of the input and output voltages of the buck-boost conversion circuit is controlled to be a constant value. Several modes are also bidirectional.
[0091] For example, in a specific application, the default initial condition is that the battery voltages of the two batteries are consistent (i.e. Figure 6 The first battery and the second battery in the embodiment are batteries of different capacities, and the initial battery voltages are consistent), when the current working mode of the above-mentioned adjustable charge pump is a fixed 2:1 ratio mode, the working mode of the buck-boost converter circuit needs to work in a direct working mode. That is, if the working mode of the bidirectional Regulated CP is in the traditional 2:1 buck mode, the working mode of the buck-boost converter circuit can be controlled to be in a bypass mode, so that the battery with a larger capacity among the two batteries and the bidirectional Regulated CP can be discharged in parallel, thereby forming a natural balanced state.
[0092] Please refer to Figure 8 , which shows that an exemplary embodiment of the present application involves Figure 6 A schematic diagram of a dual-battery discharge topology circuit. Figure 8 It includes a first battery 801, a second battery 802, a first resistor 803, an adjustable charge pump 804, and a buck-boost conversion circuit 805. Among them, the first battery 801 and the second battery 802 are connected in series through an FPC. The through-axis FPC has an impedance R, and the first resistor 803 in the figure represents the impedance of the through-axis FPC. As Figure 8 shown, the supply voltage Vsys of the system powered by two batteries with unequal capacitances connected in series is regulated by the adjustable charge pump 804 and the buck-boost conversion circuit 805. For the case of Vbat1 > Vbat2, the current directions of each device are as shown by the dashed arrow directions in 801a. For the case of Vbat1 < Vbat2, the current directions of each device are as shown by the dashed arrow directions in 801b. For the case of Vbat1 approximately equal to Vbat2, the current directions of each device are as shown by the dashed arrow directions in 801c.
[0093] It should be noted that the above Vbat1 approximately equal to Vbat2 means that the absolute value of the difference between the battery voltages of Vbat1 and Vbat2 is less than a preset value. Vbat1 > Vbat2 means that the difference between the battery voltages obtained by subtracting Vbat2 from Vbat1 exceeds the preset value. Vbat1 < Vbat2 means that the difference between the battery voltages obtained by subtracting Vbat2 from Vbat1 is less than the negative preset value. Optionally, the specific value of the preset value can be flexibly set by developers. For example, the preset value is 0.1V.
[0094] Step 504, when the first operating mode of the adjustable charge pump is the fixed output mode, control the operating mode of the buck-boost conversion circuit to be in the adjustable output mode.
[0095] Optionally, the default initial condition is that the battery voltages of two batteries with unequal capacitances are the same (that is, Figure 6 the first battery and the second battery in it are batteries with unequal capacitances and the initial battery voltages are the same). When the current operating mode of the above adjustable charge pump is the fixed output mode, control the operating mode of the buck-boost conversion circuit to be the adjustable output mode. Since the adjustable output mode is a mode that controls the output voltage of the buck-boost conversion circuit to increase, decrease, or remain unchanged, the specific increase, decrease, or remain unchanged is determined based on the detected voltages of the large and small batteries.
[0096] In one possible implementation, the terminal device can obtain the voltage difference between the first battery and the second battery; if the voltage difference is within a preset difference range, the output voltage of the buck-boost conversion circuit is controlled to remain unchanged; if the difference obtained by subtracting the second battery from the first battery is greater than a preset difference threshold, the output voltage of the buck-boost conversion circuit is controlled to decrease so as to reduce the voltage difference between the first battery and the second battery; if the difference obtained by subtracting the first battery from the second battery is greater than the preset difference threshold, the output voltage of the buck-boost conversion circuit is controlled to increase so as to reduce the voltage difference between the first battery and the second battery.
[0097] The preset difference threshold can be preset by the developer. Figure 6 In the circuit structure shown, the terminal device can detect the battery voltages of the two batteries through the AP. When the voltage difference between the two battery voltages is less than the preset difference threshold, the current output voltage is kept unchanged; when VBAT1-VBAT2 is greater than the preset difference threshold, the output voltage of the buck-boost conversion circuit is reduced, so that more discharge current can go through the bidirectional Regulated CP path, so that the voltage of VBAT1 is gradually reduced to reduce the voltage difference between the two batteries; this mode of reducing the output voltage of the buck-boost conversion circuit can also be called a Buck adjustable output mode; when VBAT2-VBAT1 is greater than the preset difference threshold, the output voltage of the buck-boost conversion circuit is increased, so that more discharge current can go through the path of the buck-boost conversion circuit, so that the voltage of VBAT2 is gradually reduced to reduce the voltage difference between the two batteries, and dynamic discharge balance is achieved; this mode of increasing the output voltage of the buck-boost conversion circuit can also be called a Boost adjustable output mode.
[0098] Please refer to Fig. 9 , which shows that an exemplary embodiment of the present application involves Figure 6 A schematic diagram of a dual-battery discharge topology circuit. Fig. 9 In the figure, a first battery 901, a second battery 902, a first resistor 903, an adjustable charge pump 904, and a step-up / step-down conversion circuit 905 are included. The first battery 901 and the second battery 902 are connected in series via an FPC, and the through-axis FPC has an impedance R. The first resistor 903 in the figure represents the impedance of the through-axis FPC. Fig. 9 As shown, when the current working mode of the adjustable charge pump 904 is the fixed output mode, it is necessary to control the working mode of the buck-boost conversion circuit 905 to be the adjustable output mode. The current direction of each device is as follows: Fig. 9 The dotted line direction is shown in .
[0099] Step 505: When the first working mode of the adjustable charge pump is the fixed special ratio mode, control the working mode of the buck-boost conversion circuit to be in the constant ratio mode.
[0100] Optionally, the default initial condition is that the voltages of two batteries with unequal capacities are the same (i.e., Figure 6 the first battery and the second battery in
[0101] are batteries with unequal capacities, and the initial battery voltages are the same). When the current working mode of the adjustable charge pump is the fixed special ratio mode, the working mode of the buck-boost conversion circuit is controlled to be the constant ratio mode. Figure 6 Still taking the circuit structure shown above
[0102] as an example, when the bidirectional Regulated CP works in the fixed special ratio mode, at this time the bidirectional Regulated CP adjusts the input-output ratio to x. Then, it is necessary to set the working mode of the buck-boost conversion circuit to also work in the constant ratio mode. At this time, the buck-boost conversion circuit adjusts the input-output ratio to 2x to achieve dynamic balance of discharge. For example: the bidirectional Regulated CP adjusts the duty cycle of the switching tube and makes Vsys / Vbat constantly equal to 2 / 3. Then, the buck-boost conversion circuit can correspondingly set its own duty cycle so that Vsys / Vbalance = 4 / 3 (i.e., the ratio of the output voltage to the input voltage of the buck-boost conversion circuit). Fig.10 Please refer to Figure 6 which shows a circuit schematic diagram of a dual-battery discharge topology circuit related to an exemplary embodiment of the present application. In Fig.10 , it includes a first battery 1001, a second battery 1002, a first resistor 1003, an adjustable charge pump 1004, and a buck-boost conversion circuit 1005. Among them, the first battery 1001 and the second battery 1002 are connected in series through an FPC. The through-axis FPC has an impedance R, and the first resistor 1003 in the figure represents the impedance of the through-axis FPC. As Fig.10 shown, the supply voltage Vsys of two batteries with unequal capacities in series supplying power to the system is regulated by the adjustable charge pump 1004 and the buck-boost conversion circuit 1005. For the case of Vbat1 > Vbat2, the current directions of each device are as shown by the dotted arrow directions in 1001a. For the case of Vbat1 < Vbat2, the current directions of each device are as shown by the dotted arrow directions in 1001b. For the case of Vbat1 approximately equal to Vbat2, the current directions of each device are as shown by the dotted arrow directions in 1001c. Among them, the magnitude relationship between Vbat1 and Vbat2 is the same as the relevant description in Figure 8 and will not be elaborated here.
[0103] Through the above steps 503 to 505, under the current first working mode of the adjustable charge pump, the working mode of the buck-boost conversion circuit is adjusted to which second working mode, thereby achieving voltage balance between two batteries of unequal capacity.
[0104] In one possible implementation, in an actual control process, a mapping relationship between different operating modes of an adjustable charge pump and different control signals may be stored in a terminal device, and the terminal device executes the first operating mode of the adjustable charge pump to control the operating mode of the buck-boost conversion circuit to be in the second operating mode as follows: according to the first operating mode of the adjustable charge pump and the mapping relationship, a target control signal corresponding to the first operating mode is sent to the buck-boost conversion circuit, and the operating mode of the buck-boost conversion circuit is controlled to be in the second operating mode through the target control signal.
[0105] Please refer to Table 1, which shows a mapping relationship table between different working modes of an adjustable charge pump and different control signals involved in an exemplary embodiment of the present application.
[0106] Table 1
[0107]
[0108] That is, in the above steps 503 to 505, after each first working mode of the adjustable charge pump is determined, the table 1 can be queried and the corresponding control signal can be determined, and the control chip sends the target control signal corresponding to the first working mode to the buck-boost conversion circuit, so as to control the working mode of the buck-boost conversion circuit to be in the corresponding second working mode. For example, if the above working mode 1 is a fixed 2:1 ratio mode, then the first control signal is a signal that needs to control the working mode of the buck-boost conversion circuit to be in the direct working mode, if the above working mode 2 is a fixed output mode, then the first control signal is a signal that needs to control the working mode of the buck-boost conversion circuit to be in the adjustable output mode, and if the above working mode 3 is a fixed special ratio mode, then the first control signal is a signal that needs to control the working mode of the buck-boost conversion circuit to be in the constant ratio mode.
[0109] Please refer to Fig.11 , which shows a schematic diagram of the working transformation of a bidirectional Regulated CP working mode and a buck-boost conversion circuit working mode under different total battery voltages in an exemplary embodiment of the present application. Fig.11As shown, as the battery discharges, the total battery voltage continues to decrease, and the working mode of the bidirectional Regulated CP is switched once when it is lower than 6.8V, then the working mode of the corresponding buck-boost conversion circuit also needs to be switched, and it is switched again when it is lower than 5V, and the working mode of the corresponding buck-boost conversion circuit also needs to be switched. When the total battery voltage is in the above three voltage ranges, the bidirectional Regulated CP works in three different working modes, and the working mode of the buck-boost conversion circuit also needs to be switched among the three different working modes.
[0110] Step 506, when the terminal device is in a charging state, control the working mode of the buck-boost conversion circuit to be in a constant current working mode.
[0111] The constant current working mode is a mode in which the ratio of the battery currents of the first battery and the second battery is controlled to be equal to the ratio of the battery capacities during the charging process.
[0112] Optionally, when the terminal device is in a charging state, the buck-boost conversion circuit provided by this solution needs to be balanced and selected according to the battery capacity difference. This process requires setting the current direction and constant current value of the buck-boost conversion circuit.
[0113] In one possible implementation, the terminal device may determine the constant current value as follows: determine a capacity ratio based on the respective battery capacities of the first battery and the second battery, the capacity ratio being the ratio between the battery capacity of the first battery and the battery capacity of the second battery; determine a constant current value of the balancing current based on the capacity ratio and the current charging current; wherein, the current value between the first end of the buck-boost conversion circuit and the second end of the buck-boost conversion circuit in the constant current working mode is the constant current value.
[0114] For example, taking the above Figure 6 In the circuit structure shown, the capacity of the first battery Vbat1 is 1400mAh, and the capacity of the second battery Vbat2 is 3000mAh. In the charging state, the current charging current of the series-connected batteries is 6A. Then, the balancing current inside the buck-boost conversion circuit needs to allocate a current of 4A, so that the charging current ratio of the two batteries is equal to the capacity ratio, so that the voltages of the two batteries can be almost equal during the charging process. In this process, since the voltages of the two batteries are equal under the initial conditions, due to the existence of the connection resistor R, the buck-boost conversion circuit needs to work in the constant current mode to achieve constant current balancing, and as the charging current decreases, the balancing current should also be reduced accordingly according to the capacity difference to maintain the charging current ratio of the two batteries always equal to the capacity ratio.
[0115] Among them, because the total charging current is constantly changing during the charging process, the corresponding balancing current value also needs to change accordingly. Assuming that the charging current of the smaller capacity battery in the two batteries is x, the balancing current of the buck-boost conversion circuit is y, and the charging current of the larger capacity battery is x+2y, then the current total charging current Y and the battery capacity ratio n satisfy the following relationship:
[0116] Total charging current Y = x + y;
[0117] The capacity ratio of the large and small batteries is n = (x + 2y) / x;
[0118] Under the condition that the charging current ratio of the two batteries is equal to the capacity ratio, by substituting the known total charging current Y and the capacity ratio n of the large and small batteries, the charging current x and the balancing current y of the small-capacity battery can be calculated through the above relationship, and then the charging current of the large-capacity battery can be obtained.
[0119] For example, please refer to Fig.12 , which shows that an exemplary embodiment of the present application involves Figure 6 A schematic diagram of the change of charging current and balancing current during the charging process. Fig.12 As shown, based on Fig.12 As shown in the figure, when the voltages of the two batteries are equal at the beginning of charging and the capacity ratio of the two batteries is 2:1, when the total charging current is 6A, the balancing current needs to be set to a constant current of 4A, that is, when the voltages of the two batteries are almost equal, a constant current of 4A needs to be moved from the small-capacity battery to the large-capacity battery. At this time, the balancing subcircuit must achieve a large current constant current under such a small voltage difference, and overcome the voltage difference caused by the connection impedance, so it must work in the boost mode. Similarly, when the total charging current drops to 4A, the balancing current needs to be set to a constant current of 2.67A, and the ratio of the charging current entering the large-capacity battery to the charging current entering the small-capacity battery is always kept equal to the battery capacity ratio. When the total charging current drops to 2A, the corresponding charging current of the large-capacity battery is 2.67A, and the charging current of the small-capacity battery is 1.33A, that is, when the charging current changes, the balancing current needs to be controlled to change accordingly to meet the capacity ratio. Under this control mode, the charging voltages of the large-capacity batteries will be almost equal during the entire charging process, achieving the purpose of charging balancing.
[0120] It can be understood that during the charging process, the control chip can calculate the currently required balancing current based on the battery capacity ratio and the current charging current, and achieve the corresponding balancing current for different charging currents by controlling the constant current value in the constant current mode of the buck-boost conversion circuit. The balancing current can maintain constant current operation and achieve constant current balancing of large charging currents with small voltage differences during the charging process, ensuring that the voltage difference between large and small batteries is kept within a smaller range during the entire charging process, thereby shortening the charging time.
[0121] In one possible implementation, a terminal device may determine the current direction of a buck-boost conversion circuit as follows: obtain a first node voltage and a second node voltage; the first node voltage is the voltage of the second end of an adjustable charge pump, and the second node voltage is the voltage of the first end of the buck-boost conversion circuit; determine an equalization direction based on the first node voltage and the second node voltage, the equalization direction is the direction of equalizing the higher voltage end of the first node voltage and the second node voltage toward the lower voltage end, and the equalization direction is the current flow direction of the equalization current.
[0122] Please refer to Fig.13 , which shows a schematic diagram of the circuit structure of a terminal device in a charging state according to an exemplary embodiment of the present application. Fig.13 As shown, it includes a fast charging circuit 1301, a first battery 1302, a second battery 1303, a buck-boost conversion circuit 1304, an adjustable charge pump 1305, a first resistor 1306, a first node B1, and a second node B2. Among them, the first resistor 1306 represents the impedance of the through-axis FPC. In actual operation, the voltage of the first node B1 and the voltage of the second node B2 are obtained, and the balancing direction is determined according to the voltage of the first node B1 and the voltage of the second node B2. If the voltage of the first node B1 is higher than the voltage of the second node B2, then it is necessary to step down, and the constant current mode of the buck-boost conversion circuit can be a buck constant current mode (i.e., Buck constant current mode). If the voltage of the first node B1 is lower than the voltage of the second node B2, then it is necessary to step up, and the constant current mode of the buck-boost conversion circuit can be a boost constant current mode (i.e., Boost constant current mode).
[0123] Optional, since current terminal devices can usually be fast-charged or normal-charged. For example, in the above Figure 6 The circuit that provides charging function in the medium charge and discharge circuit is a general charging circuit, which provides general charging function, and a separate fast charging circuit provides fast charging function. That is, the general charging circuit included in the terminal device is equivalent to Figure 6 In the charge and discharge circuit, Figure 6 In the invention, the general charging circuit is connected between the second end of the buck-boost conversion circuit and the second end of the adjustable charge pump.
[0124] In the case of general charging mode charging, the terminal device can also perform the following control: if the terminal device is charged in general charging mode through a general charging circuit, and when the total battery voltage is lower than the power-on voltage, the general charging circuit is set in a constant voltage charging mode and the power supply voltage for the load of the terminal device is the minimum system startup voltage; the adjustable charge pump is set in a forced pulse width modulation (Pulse Width Modulation, PWM) mode, and the working mode of the buck-boost conversion circuit is controlled to be in a constant current working mode; the forced PWM mode is a mode in which the adjustable charge pump uses the power supply voltage for the load of the terminal device through the general charging circuit as input and is converted by the adjustable charge pump to provide it to the first battery and the second battery for charging; the total battery voltage is the sum of the battery voltages of the first battery and the second battery; wherein, the current limiting value of the general charging circuit is greater than the current limiting value of the adjustable charge pump.
[0125] That is to say, when the terminal device is executing the process of controlling the working mode of the buck-boost conversion circuit to be in the constant current working mode, it can first determine whether the charging mode is a fast charging mode or a general charging mode. If it is a fast charging mode, the buck-boost conversion circuit is directly controlled in the above manner. If the charging mode of the terminal device is a general charging mode, it is necessary to combine whether the total battery voltage is lower than the power-on voltage. When the total battery voltage is lower than the power-on voltage, the general charging circuit is set in a constant voltage charging mode and the power supply voltage for the load of the terminal device is the lowest system startup voltage, and the adjustable charge pump is set in the forced PWM mode, and the general charging circuit is controlled in a constant voltage charging mode. In this process, it is necessary to ensure that the current limit value of the general charging circuit is greater than the constant current value of the adjustable charge pump. Until the total battery voltage is charged to a level higher than the power-on voltage, the general charging circuit is controlled in a constant current charging mode. During this period, the working mode of the buck-boost conversion circuit is always in a constant current working mode.
[0126] It should be noted that the above-mentioned forced PWM mode can also be called Force PWM mode. In this mode, the input end of the adjustable charge pump is the side connected to the general charging circuit, and the output end of the adjustable charge pump is the side connected to the battery. In this mode, the power supply voltage for the load of the terminal device is converted by the adjustable charge pump and provided to the first battery and the second battery for charging.
[0127] Optionally, the detection method of fast charging or normal charging can adopt common technical means, which will not be described here.
[0128] Please refer to the above Figure 6In the circuit structure shown, in the case of general charging, the terminal device obtains the current working mode of the general charging circuit charge. If the charger works in the constant voltage charging (Constant Voltage, CV) mode, it is necessary to control the Vsys voltage to be the minimum start-up voltage Vsys_min (for example, 3.3V). At this time, the current limit value of the general charging circuit charge needs to be greater than the constant current value of the adjustable charge pump, and the buck-boost conversion circuit is in the constant current (Constant Current, CC) working mode to achieve balanced charging. If the charger works in CC mode, the buck-boost conversion circuit is in constant current and only needs to work in constant current mode to achieve balance. As for whether the buck-boost conversion circuit works in Buck constant current mode or Boost constant current mode, it depends on the voltage difference between the two batteries. This can refer to the above-mentioned process for determining the direction of balance, which will not be repeated here.
[0129] In the case of general charging, when the bidirectional Regulated CP works in a fixed special ratio mode or the traditional 1:2 mode (fixed 2:1 ratio mode), the charger works in CC mode. For the activation or pre-charging scenario before power on, the bidirectional Regulated CP usually works in Force PWM mode, and the corresponding charger also works in CV mode. The above different logics are used for balancing in different situations. Please refer to Fig.14 , which shows a schematic diagram of a state in which a bidirectional Regulated CP and a buck-boost conversion circuit work in respective modes in a normal charging mode in accordance with an exemplary embodiment of the present application. Fig.14 As shown, at the beginning of charging through general charging, the bidirectional Regulated CP works in Force PWM mode, the charger also works in CV mode, and needs to control the Vsys voltage to be the minimum start-up voltage Vsys_min, and needs to control the current limit value of the general charging circuit charge to be greater than the constant current value of the adjustable charge pump, and control the buck-boost conversion circuit to work in CC mode, so as to achieve the balance of the first stage. As charging continues, the total battery voltage increases, and it will enter the second stage. The bidirectional Regulated CP will switch to the reverse 3:2 boost mode (fixed special ratio mode), the charger also works in CC mode, and the buck-boost conversion circuit works in CC mode, so as to achieve the balance of the second stage. As charging continues, the total battery voltage increases, and it will enter the third stage. The bidirectional Regulated CP will switch to the traditional 2:1 buck mode (fixed 2:1 ratio mode), the charger still works in CC mode, and the buck-boost conversion circuit still works in CC mode, so as to achieve the balance of the third stage until the charging is completed.
[0130] Optionally, when the terminal device enters a shutdown state, the above-mentioned buck-boost conversion circuit is also in a closed state.
[0131] It should be noted that the above embodiments are all based on the case where the capacity of the second battery is greater than the capacity of the first battery. In actual applications, the relationship between the capacities of the two batteries can be opposite, and the working conditions of the corresponding step-up and step-down conversion circuits can also be set oppositely. The principle is similar to the case where the capacity of the second battery is greater than the capacity of the first battery, and will not be repeated here.
[0132] In summary, the terminal device of the present application includes an adjustable charge pump, a first battery, a second battery and a buck-boost conversion circuit, the first end of the adjustable charge pump is connected to the positive electrode of the first battery, the first battery and the second battery are connected in series, the first end of the buck-boost conversion circuit is connected between the negative electrode of the first battery and the positive electrode of the second battery, the second end of the buck-boost conversion circuit is electrically connected to the second end of the adjustable charge pump, and when the terminal device is in a discharging state, the first operating mode of the adjustable charge pump is obtained; according to the first operating mode of the adjustable charge pump, the buck-boost conversion circuit is controlled to be in a second operating mode, wherein, when the buck-boost conversion circuit is in the second operating mode, voltage balance is achieved between the first battery and the second battery; different first operating modes correspond to different second operating modes. The present application aims at the situation where an adjustable charge pump is used in two series-connected batteries of a terminal device. By adding a buck-boost conversion circuit and controlling the working mode of the buck-boost conversion circuit according to the first working mode of the adjustable charge pump, voltage balancing of the two batteries in a discharge state is achieved. Different working modes of the buck-boost conversion circuit are set for the adjustable charge pump under various working modes, thereby quickly balancing the voltages of the two batteries, thereby improving the discharge balancing effect of the two batteries in the terminal device.
[0133] In addition, a bidirectional buck-boost conversion circuit is added on the basis of the bidirectional Regulated CP. During the charging process, the current required balancing current can be calculated according to the battery capacity ratio and the current charging current. By controlling the current direction and constant current value of the buck-boost conversion circuit, the balancing current corresponding to different charging currents can be achieved. The balancing current can maintain constant current operation, realize large current constant current balancing of small voltage difference during charging, ensure that the voltage difference of large and small batteries is kept within a small range during the entire charging process, and shorten the charging time. The new charging balancing method proposed here, especially for the current form of folding machines, can use unequal capacity batteries to charge in series. During the charging process, the balancing control can be used to distribute the charging current of large and small capacity batteries according to the capacity ratio for charging, which can further improve the charging power and charging speed. At the same time, during the discharge process, the buck-boost conversion circuit can also adapt to the different working modes of the bidirectional Regulated CP to achieve balanced discharge, especially the constant ratio mode of the buck-boost conversion circuit can match the fixed special ratio mode of the bidirectional Regulated CP to achieve bidirectional discharge balancing.
[0134] This solution not only supports lower discharge voltage of the battery, but also supports charging and discharging of future silicon negative electrode batteries within the full voltage range, meeting the requirements of future terminal equipment power systems. It also realizes the series charging and discharging of unequal capacity silicon negative electrode batteries, meeting the needs of increasing charging power and charging speed.
[0135] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0136] Please refer to Fig.15 , which shows a structural block diagram of a charging circuit control device provided by an exemplary embodiment of the present application. The charging circuit control device 1500 can be used in a terminal device, and the terminal device includes an adjustable charge pump, a first battery, a second battery and a buck-boost conversion circuit. The first end of the adjustable charge pump is connected to the positive electrode of the first battery, the first battery and the second battery are connected in series, the first end of the buck-boost conversion circuit is connected between the negative electrode of the first battery and the positive electrode of the second battery, and the second end of the buck-boost conversion circuit is electrically connected to the second end of the adjustable charge pump. To execute all or part of the steps performed by the terminal device in the methods provided in each of the illustrated embodiments. The charging circuit control device 1500 includes:
[0137] A first acquisition module 1501, configured to acquire a first operating mode of the adjustable charge pump when the terminal device is in a discharging state;
[0138] The first control module 1502 is used to control the buck-boost conversion circuit to be in a second operating mode according to the first operating mode of the adjustable charge pump, wherein the voltage between the first battery and the second battery is balanced when the buck-boost conversion circuit is in the second operating mode; different first operating modes correspond to different second operating modes.
[0139] To summarize, the terminal device of the present application includes an adjustable charge pump, a first battery, a second battery and a buck-boost conversion circuit, the first end of the adjustable charge pump is connected to the positive electrode of the first battery, the first battery and the second battery are connected in series, the first end of the buck-boost conversion circuit is connected between the negative electrode of the first battery and the positive electrode of the second battery, the second end of the buck-boost conversion circuit is electrically connected to the second end of the adjustable charge pump, and when the terminal device is in a discharging state, the first operating mode of the adjustable charge pump is obtained; according to the first operating mode of the adjustable charge pump, the buck-boost conversion circuit is controlled to be in a second operating mode, wherein the voltage between the first battery and the second battery is balanced when the buck-boost conversion circuit is in the second operating mode; different first operating modes correspond to different second operating modes. The present application aims at the situation where an adjustable charge pump is used in two series-connected batteries of a terminal device. By adding a buck-boost conversion circuit and controlling the working mode of the buck-boost conversion circuit according to the first working mode of the adjustable charge pump, voltage balancing of the two batteries in a discharge state is achieved. Different working modes of the buck-boost conversion circuit are set for the adjustable charge pump under various working modes, thereby quickly balancing the voltages of the two batteries, thereby improving the discharge balancing effect of the two batteries in the terminal device.
[0140] Optionally, the terminal device further stores mapping relationships between different adjustable charge pump operation modes and different control signals, and the first control module 1502 is further used to:
[0141] According to the first operating mode of the adjustable charge pump and the mapping relationship, a target control signal corresponding to the first operating mode is sent to the buck-boost conversion circuit, and the operating mode of the buck-boost conversion circuit is controlled to be in the second operating mode through the target control signal.
[0142] Optionally, the first acquisition module 1501 includes: a first acquisition unit and a first determination unit;
[0143] The first acquisition unit is used to acquire a total battery voltage according to the battery voltages of the first battery and the second battery, wherein the total battery voltage is the sum of the battery voltage of the first battery and the battery voltage of the second battery;
[0144] The first determination unit is used to determine a first operating mode of the adjustable charge pump according to a voltage range in which the total battery voltage is located; wherein the operating modes of the adjustable charge pump corresponding to different voltage ranges in which the total battery voltage is located are different.
[0145] Optionally, the operating modes of the adjustable charge pump include: a fixed 2:1 ratio mode, a fixed output mode, and a fixed special ratio mode;
[0146] The fixed 2:1 ratio mode is a mode in which the ratio between the target output voltage and the total battery voltage is controlled to be a fixed value; the target output voltage is the power supply voltage provided to the load of the terminal device after the total battery voltage is converted by the adjustable charge pump; the total battery voltage is the sum of the battery voltages of the first battery and the second battery;
[0147] The fixed output mode is a mode for controlling the target output voltage to be constant;
[0148] The fixed special ratio mode is a mode in which the ratio between the control target output voltage and the total battery voltage is a fixed value; the fixed value is a ratio other than 1:2;
[0149] The first determining unit is further configured to:
[0150] When the total battery voltage is in a first voltage interval, determining that the first operating mode of the adjustable charge pump is the fixed 2:1 ratio mode; the first voltage interval is a voltage interval greater than a voltage interval corresponding to a first preset voltage threshold;
[0151] When the total battery voltage is in a second voltage interval, determining that the first operating mode of the adjustable charge pump is the fixed output mode; the second voltage interval is a voltage interval corresponding to a second preset voltage threshold that is smaller than the first preset voltage threshold; wherein the first preset voltage threshold is greater than the second preset voltage threshold;
[0152] When the total battery voltage is in a third voltage range, it is determined that the first operating mode of the adjustable charge pump is the fixed special ratio mode; the third voltage range is a voltage range corresponding to a voltage greater than the second preset voltage threshold and less than the first preset voltage threshold.
[0153] Optionally, the first control module is further used to:
[0154] When the first working mode of the adjustable charge pump is the fixed 2:1 ratio mode, controlling the working mode of the buck-boost conversion circuit to be in a direct working mode, wherein the direct working mode is a mode in which the positive electrode of the second battery is directly connected to the second end of the adjustable charge pump;
[0155] When the first working mode of the adjustable charge pump is the fixed output mode, the working mode of the buck-boost conversion circuit is controlled to be in an adjustable output mode, wherein the adjustable output mode is a mode in which the output voltage of the buck-boost conversion circuit is controlled to be increased and the voltage is adjustable;
[0156] When the first operating mode of the adjustable charge pump is the fixed special ratio mode, the operating mode of the buck-boost conversion circuit is controlled to be in a constant ratio mode, and the constant ratio mode is a mode in which the ratio of the input and output voltages of the buck-boost conversion circuit is controlled to be a constant value.
[0157] Optionally, the device further comprises:
[0158] A second acquisition module, configured to acquire a voltage difference between the first battery and the second battery when the working mode of the buck-boost conversion circuit is in an adjustable output mode;
[0159] A second control module is used to control the output voltage of the buck-boost conversion circuit to remain unchanged if the voltage difference is within a preset difference range;
[0160] a third control module, configured to control the output voltage of the buck-boost conversion circuit to decrease if the difference between the first battery and the second battery is greater than a preset difference threshold, so as to reduce the voltage difference between the first battery and the second battery;
[0161] The fourth control module is used to control the output voltage of the buck-boost conversion circuit to increase so as to reduce the voltage difference between the first battery and the second battery if the difference obtained by subtracting the first battery from the second battery is greater than the preset difference threshold.
[0162] Optionally, the device further comprises:
[0163] The fifth control module is used to control the working mode of the buck-boost conversion circuit to a constant current working mode when the terminal device is in a charging state. The constant current working mode is a mode in which the ratio of the battery currents of the first battery and the second battery is controlled to be equal to the ratio of the battery capacities during the charging process.
[0164] Optionally, the device further comprises:
[0165] a first determining module, configured to determine a capacity ratio according to respective battery capacities of the first battery and the second battery, wherein the capacity ratio is a ratio between the battery capacity of the first battery and the battery capacity of the second battery;
[0166] The second determination module is used to determine a constant current value of the balancing current according to the capacity ratio and the current charging current.
[0167] Optionally, the device further comprises:
[0168] A third acquisition module, used to acquire a first node voltage and a second node voltage; the first node voltage is the voltage of the second end of the adjustable charge pump, and the second node voltage is the voltage of the first end of the buck-boost conversion circuit;
[0169] The third determining module is used to determine an equalization direction according to the first node voltage and the second node voltage, where the equalization direction is a current flow direction of the equalization current.
[0170] Optionally, the terminal device further includes a general charging circuit, the general charging circuit is connected between the second end of the buck-boost conversion circuit and the second end of the adjustable charge pump, and the charging mode of the terminal device includes a general charging mode;
[0171] The fifth control module is also used for setting the general charging circuit in a constant voltage charging mode and the power supply voltage for the load of the terminal device to be the minimum system startup voltage if the terminal device is charged in a general charging mode through the general charging circuit and the total battery voltage is lower than the startup voltage; setting the adjustable charge pump in a forced PWM mode, and controlling the working mode of the buck-boost conversion circuit to be in a constant current working mode; the forced PWM mode is a mode in which the adjustable charge pump uses the power supply voltage for the load of the terminal device through the general charging circuit as input and is converted by the adjustable charge pump to charge the first battery and the second battery; the total battery voltage is the sum of the battery voltages of the first battery and the second battery; wherein the current limiting value of the general charging circuit is greater than the current limiting value of the adjustable charge pump;
[0172] When the total battery voltage is higher than the power-on voltage, the adjustable charge pump is adjusted to operate in a corresponding mode according to the voltage range of the total battery voltage, and the general charging circuit and the buck-boost conversion circuit are controlled to operate in a constant current operating mode.
[0173] Optionally, the method further includes:
[0174] The first shutdown module is used to control the buck-boost conversion circuit to correspond to the working mode of the adjustable charge pump when the terminal device enters the shutdown state.
[0175] Optionally, the buck-boost conversion circuit includes at least six switching tubes and an inductor device;
[0176] The first control module is further used for:
[0177] The working state of the at least six switching tubes in the buck-boost conversion circuit is controlled to be in an on state or an off state, so that the conduction state of the loop composed of the inductor device is different, so that the buck-boost conversion circuit is in a second working mode.
[0178] Please refer to Fig.16 , which is a structural diagram of another example of a charging circuit control device provided in an embodiment of the present application. Among them, the charging circuit control device 1600 can be a terminal device, and the terminal device includes an adjustable charge pump, a first battery, a second battery and a buck-boost conversion circuit. The first end of the adjustable charge pump is connected to the positive electrode of the first battery, the first battery and the second battery are connected in series, the first end of the buck-boost conversion circuit is connected between the negative electrode of the first battery and the positive electrode of the second battery, and the second end of the buck-boost conversion circuit is electrically connected to the second end of the adjustable charge pump, which can realize the function of the method provided in an embodiment of the present application. Among them, the charging circuit control device 1600 can be a chip system. In the embodiment of the present application, the chip system can be composed of a chip, or it can include a chip and other discrete devices.
[0179] In terms of hardware implementation, the communication module may be a transceiver, which is integrated into the charging circuit control device 1600 to form a communication interface 1603 .
[0180] The charging circuit control device 1600 includes at least one processor 1601, which is used to implement or support the charging circuit control device 1600 to implement the functions of the terminal device in the method provided in the embodiment of the present application. Exemplarily, the processor 1601 can obtain the first working mode of the adjustable charge pump when the terminal device is in a discharging state, and according to the first working mode of the adjustable charge pump, control the buck-boost conversion circuit to be in the second working mode and other steps. Please refer to the detailed description in the method example for details, which will not be repeated here.
[0181] The charging circuit control device 1600 may also include at least one memory 1602 for storing program instructions and / or data. The memory 1602 is coupled to the processor 1601. The coupling in the embodiment of the present application is an indirect coupling or communication connection between devices, units or modules, which may be electrical, mechanical or other forms for information exchange between devices, units or modules. The processor 1601 may operate in conjunction with the memory 1602. The processor 1601 may execute program instructions stored in the memory 1602. At least one of the at least one memory may be included in the processor.
[0182] The charging circuit control device 1600 may further include a communication interface 1603 for communicating with other devices via a transmission medium, so that the device in the charging circuit control device 1600 can communicate with other devices. Exemplarily, the other device may be a network side device. The processor 1601 may use the communication interface 1603 to send and receive data. The communication interface 1603 may specifically be a transceiver.
[0183] The specific connection medium between the communication interface 1603, the processor 1601 and the memory 1602 is not limited in the embodiment of the present application. Fig.16 In the embodiment, the memory 1602, the processor 1601 and the communication interface 1603 are connected via a bus 1604. Fig.16 The connections between other components are shown in bold lines, which are only for illustration and are not intended to be limiting. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.16 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0184] In the embodiment of the present application, the processor 1601 can be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, and can implement or execute the methods, steps and logic block diagrams disclosed in the embodiment of the present application. The general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware processor to be executed, or can be executed by a combination of hardware and software modules in the processor.
[0185] In an embodiment of the present application, the memory 1602 may be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), etc., or a volatile memory (volatile memory), such as a random access memory (RAM). The memory is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory in the embodiment of the present application may also be a circuit or any other device that can implement a storage function, for storing program instructions and / or data.
[0186] Optionally, an embodiment of the present application further provides a terminal device, the terminal device comprising:
[0187] First battery;
[0188] Second battery;
[0189] An adjustable charge pump; a first end of the adjustable charge pump is connected to the positive electrode of the first battery, and the first battery and the second battery are connected in series;
[0190] A buck-boost conversion circuit, wherein a first end of the buck-boost conversion circuit is connected between the negative electrode of the first battery and the positive electrode of the second battery, and a second end of the buck-boost conversion circuit is electrically connected to a second end of the adjustable charge pump;
[0191] A charging circuit control device, wherein the charging circuit control device is used to obtain a first operating mode of the adjustable charge pump when the terminal device is in a discharging state; and control the buck-boost conversion circuit to be in a second operating mode according to the first operating mode of the adjustable charge pump, wherein voltage balance is achieved between the first battery and the second battery when the buck-boost conversion circuit is in the second operating mode; and different first operating modes correspond to different second operating modes.
[0192] Optionally, an embodiment of the present application further provides a computer-readable medium storing a computer program, which is executed by a processor to implement all or part of the steps performed by the terminal device in the charging circuit control method of each of the above embodiments.
[0193] Optionally, an embodiment of the present application further provides a computer program product, which, when executed on a computer, enables the computer to execute the charging circuit control method of each of the above embodiments, and all or part of the steps executed by the terminal device.
[0194] Optionally, an embodiment of the present application further provides an application publishing platform, which is used to publish a computer program product, wherein when the computer program product runs on a computer, the computer executes the charging circuit control method of each of the above embodiments, and all or part of the steps executed by the terminal device.
[0195] It should be noted that: when the device provided in the above embodiment performs the control of the terminal device, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0196] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0197] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0198] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A charging circuit control method, characterized in that: Applied to a terminal device, the terminal device comprises an adjustable charge pump, a first battery, a second battery and a buck-boost conversion circuit, the first end of the adjustable charge pump is connected to the positive electrode of the first battery, the first battery and the second battery are connected in series, the first end of the buck-boost conversion circuit is connected between the negative electrode of the first battery and the positive electrode of the second battery, the second end of the buck-boost conversion circuit is electrically connected to the second end of the adjustable charge pump, and the method comprises: When the terminal device is in a discharging state, obtaining a first operating mode of the adjustable charge pump; According to the first operating mode of the adjustable charge pump, the buck-boost conversion circuit is controlled to be in a second operating mode, wherein, when the buck-boost conversion circuit is in the second operating mode, voltage balance is achieved between the first battery and the second battery; different first operating modes correspond to different second operating modes.
2. The method according to claim 1, characterized in that: The terminal device also stores a mapping relationship between different working modes of an adjustable charge pump and different control signals, and the step of controlling the buck-boost conversion circuit to be in the second working mode according to the first working mode of the different charge pumps includes: According to the first operating mode of the adjustable charge pump and the mapping relationship, a target control signal corresponding to the first operating mode is sent to the buck-boost conversion circuit, and the operating mode of the buck-boost conversion circuit is controlled to be in the second operating mode through the target control signal.
3. The method according to claim 1, characterized in that: The step of obtaining the first working mode of the adjustable charge pump when the terminal device is in a discharging state includes: acquiring a total battery voltage according to respective battery voltages of the first battery and the second battery, wherein the total battery voltage is the sum of the battery voltage of the first battery and the battery voltage of the second battery; The first operating mode of the adjustable charge pump is determined according to the voltage range in which the total battery voltage is located; wherein the operating modes of the adjustable charge pump corresponding to different voltage ranges in which the total battery voltage is located are different.
4. The method according to claim 3, characterized in that The adjustable charge pump has operating modes including a fixed 2:1 ratio mode, a fixed output mode, and a fixed special ratio mode; The fixed 2:1 ratio mode is a mode in which the ratio between the target output voltage and the total battery voltage is controlled to be 1:2; the target output voltage is the power supply voltage provided to the load of the terminal device after the total battery voltage is converted by the adjustable charge pump; the total battery voltage is the sum of the battery voltages of the first battery and the second battery; The fixed output mode is a mode for controlling the target output voltage to be constant; The fixed special ratio mode is a mode in which the ratio between the control target output voltage and the total battery voltage is a fixed value; the fixed value is a ratio other than 1:2; The step of determining the current operating mode of the adjustable charge pump according to the voltage interval of the total battery voltage includes: When the total battery voltage is in a first voltage interval, determining that the first operating mode of the adjustable charge pump is the fixed 2:1 ratio mode; the first voltage interval is a voltage interval greater than a voltage interval corresponding to a first preset voltage threshold; When the total battery voltage is in a second voltage interval, determining that the first operating mode of the adjustable charge pump is the fixed output mode; the second voltage interval is a voltage interval corresponding to a second preset voltage threshold that is smaller than the first preset voltage threshold; wherein the first preset voltage threshold is greater than the second preset voltage threshold; When the total battery voltage is in a third voltage range, it is determined that the first operating mode of the adjustable charge pump is the fixed special ratio mode; the third voltage range is a voltage range corresponding to a voltage greater than the second preset voltage threshold and less than the first preset voltage threshold.
5. The method according to claim 4, characterized in that According to the first working mode of the adjustable charge pump, controlling the working mode of the buck-boost conversion circuit to be in the second working mode includes: When the first working mode of the adjustable charge pump is the fixed 2:1 ratio mode, controlling the working mode of the buck-boost conversion circuit to be in a direct working mode, wherein the direct working mode is a mode in which the positive electrode of the second battery is directly connected to the second end of the adjustable charge pump; When the first working mode of the adjustable charge pump is the fixed output mode, the working mode of the buck-boost conversion circuit is controlled to be in an adjustable output mode, wherein the adjustable output mode is a mode in which the output voltage of the buck-boost conversion circuit is controlled to be increased and the voltage is adjustable; When the first operating mode of the adjustable charge pump is the fixed special ratio mode, the operating mode of the buck-boost conversion circuit is controlled to be in a constant ratio mode, and the constant ratio mode is a mode in which the ratio of the input and output voltages of the buck-boost conversion circuit is controlled to be a constant value.
6. The method according to claim 5, characterized in that When the working mode of the buck-boost conversion circuit is in an adjustable output mode, the method further includes: obtaining a voltage difference between the first battery and the second battery; If the voltage difference is within a preset difference range, controlling the output voltage of the buck-boost conversion circuit to remain unchanged; If the difference between the first battery and the second battery is greater than a preset difference threshold, controlling the output voltage of the buck-boost conversion circuit to decrease so as to reduce the voltage difference between the first battery and the second battery; If the difference obtained by subtracting the first battery from the second battery is greater than the preset difference threshold, the output voltage of the buck-boost conversion circuit is controlled to increase so as to reduce the voltage difference between the first battery and the second battery.
7. The method according to claim 1, characterized in that The method further comprises: When the terminal device is in a charging state, the working mode of the buck-boost conversion circuit is controlled to be in a constant current working mode. The constant current working mode is a mode in which the ratio of the battery currents of the first battery and the second battery is controlled to be equal to the ratio of the battery capacities during the charging process.
8. The method according to claim 7, characterized in that The method further comprises: determining a capacity ratio according to respective battery capacities of the first battery and the second battery, wherein the capacity ratio is a ratio between the battery capacity of the first battery and the battery capacity of the second battery; A constant current value of the balancing current is determined according to the capacity ratio and the current charging current.
9. The method according to claim 8, characterized in that The method further comprises: Acquire a first node voltage and a second node voltage; the first node voltage is the voltage of the second end of the adjustable charge pump, and the second node voltage is the voltage of the first end of the buck-boost conversion circuit; An balancing direction is determined according to the first node voltage and the second node voltage, where the balancing direction is a current flow direction of the balancing current.
10. The method according to claim 7, characterized in that The terminal device further includes a general charging circuit, which is connected between the second end of the buck-boost conversion circuit and the second end of the adjustable charge pump, and the charging mode of the terminal device includes a general charging mode; the operation mode of controlling the buck-boost conversion circuit to be in a constant current operation mode includes: If the terminal device is charged in general charging mode through the general charging circuit, and when the total battery voltage is lower than the power-on voltage, the general charging circuit is set in constant voltage charging mode and the power supply voltage for the load of the terminal device is the lowest system startup voltage; the adjustable charge pump is set in forced PWM mode, and the working mode of the buck-boost conversion circuit is controlled to be in constant current working mode; the forced PWM mode is a mode in which the adjustable charge pump uses the power supply voltage for the load of the terminal device through the general charging circuit as input and converts it through the adjustable charge pump to charge the first battery and the second battery; the total battery voltage is the sum of the battery voltages of the first battery and the second battery respectively; wherein the current limiting value of the general charging circuit is greater than the current limiting value of the adjustable charge pump; When the total battery voltage is higher than the power-on voltage, the adjustable charge pump is adjusted to operate in a corresponding mode according to the voltage range of the total battery voltage, and the general charging circuit and the buck-boost conversion circuit are controlled to operate in a constant current operating mode.
11. The method according to any one of claims 1 to 10, characterized in that: The method further comprises: When the terminal device enters the shutdown state, the buck-boost conversion circuit is controlled to correspond to the working mode of the adjustable charge pump.
12. The method according to any one of claims 1 to 10, characterized in that: The buck-boost conversion circuit includes at least six switch tubes and an inductor device; The step of controlling the working mode of the buck-boost conversion circuit to be in the second working mode includes: The working state of the at least six switching tubes in the buck-boost conversion circuit is controlled to be in an on state or an off state, so that the conduction state of the loop composed of the inductor device is different, so that the buck-boost conversion circuit is in a different second working mode.
13. A charging circuit control device, characterized in that: Applied to a terminal device, the terminal device comprises an adjustable charge pump, a first battery, a second battery and a buck-boost conversion circuit, the first end of the adjustable charge pump is connected to the positive electrode of the first battery, the first battery and the second battery are connected in series, the first end of the buck-boost conversion circuit is connected between the negative electrode of the first battery and the positive electrode of the second battery, the second end of the buck-boost conversion circuit is electrically connected to the second end of the adjustable charge pump, and the device comprises: A first acquisition module, configured to acquire a first operating mode of the adjustable charge pump when the terminal device is in a discharging state; The first control module is used to control the buck-boost conversion circuit to be in a second operating mode according to the first operating mode of the adjustable charge pump, wherein voltage balance is achieved between the first battery and the second battery when the buck-boost conversion circuit is in the second operating mode; different first operating modes correspond to different second operating modes.
14. A terminal device, characterized in that: The terminal device comprises: First battery; Second battery; An adjustable charge pump; a first end of the adjustable charge pump is connected to the positive electrode of the first battery, and the first battery and the second battery are connected in series; A buck-boost conversion circuit, wherein a first end of the buck-boost conversion circuit is connected between the negative electrode of the first battery and the positive electrode of the second battery, and a second end of the buck-boost conversion circuit is electrically connected to a second end of the adjustable charge pump; A charging circuit control device, wherein the charging circuit control device is used to obtain a first operating mode of the adjustable charge pump when the terminal device is in a discharging state; and control the buck-boost conversion circuit to be in a second operating mode according to the first operating mode of the adjustable charge pump, wherein voltage balance is achieved between the first battery and the second battery when the buck-boost conversion circuit is in the second operating mode; and different first operating modes correspond to different second operating modes.
15. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and the computer program is executed by a processor to implement the charging circuit control method according to any one of claims 1 to 12.
16. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the charging circuit control method according to any one of claims 1 to 12 is implemented.
Citation Information
Cited By
Voltage regulation circuit, circuit control method, chip, and electronic device
WO2026098278A1