Method and device for charging battery and electronic equipment

During the battery charging process, the charging current is gradually adjusted to improve the charging efficiency in the constant voltage stage by using the coordination control of the switch charging chip and the charge pump chip, and the charging current is solved, and the charging speed and efficiency in the prior art are reduced.

CN120033807APending Publication Date: 2025-05-23FUZHOU ROCKCHIP SEMICON
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510216322.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-26
Publication Date
2025-05-23

AI Technical Summary

Technical Problem

In the existing battery charging solutions, the charging speed and efficiency in the fast charging stage and the constant voltage charging stage are low, and there are problems with power loss.

Method used

The charging current of the switch charging chip and the charge pump chip are used to cooperate with each other. When the battery voltage reaches the constant voltage charging stage, the charging current of the switch charging chip is gradually reduced to zero, and the charging current of the charge pump chip is gradually reduced to less than the cutoff threshold during the constant voltage stage. Then the charge pump chip is turned off, and the switch charging chip is turned on until the battery is fully charged.

Benefits of technology

The charging efficiency in the constant voltage stage is improved, the power loss is reduced, and the overall charging efficiency is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120033807A_ABST
    Figure CN120033807A_ABST
Patent Text Reader

Abstract

The invention discloses a method and a device for charging a battery, and electronic equipment. The method comprises the following steps: charging a battery through a switch charging chip and a charge pump chip; when the battery is charged to a constant-voltage charging stage indicating that the voltage of the battery reaches a battery threshold value, reducing the charging current output by the switch charging chip according to a stepping value until the charging current is reduced to zero; during the constant-voltage charging stage, the charging current output by the charge pump chip is gradually reduced until the charging current output by the charge pump chip is smaller than a cut-off threshold value, and charging of the charge pump chip is closed; and the switch charging chip is turned on, and finally the battery is charged through the switch charging chip until the battery is fully charged. According to the technical scheme, when mixed charging enters the constant voltage stage, charging of the switch charging chip is closed according to the stepping value, the proportion of the switch charging chip in the battery charging current is reduced, the charging efficiency of the constant voltage stage is improved, and the loss of electric energy is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of battery charging, and in particular to a method and device for battery charging, and electronic equipment. Background Art

[0002] In the existing battery charging scheme, in the non-fast charging stage, the switch charging chip charges the battery. In the fast charging stage, the switch charging chip is turned off and the charge pump is turned on, and the charge pump charges the battery. At the end of the fast charging stage, the charge pump is turned off, and the switch charging chip charges the battery until the charging is terminated.

[0003] In addition, the existing battery charging scheme may include two-stage constant voltage charging, and there is a threshold between the first constant voltage charging stage and the second constant voltage charging stage. In the first constant voltage stage, the battery may still be in constant current charging, that is, the switch charging chip is switched in the non-constant voltage stage of the battery, resulting in low charging speed and charging efficiency. Summary of the invention

[0004] The present invention provides a method and device for battery charging, and an electronic device, which can solve the problems of charging speed and charging efficiency in the prior art. Improving these problems will increase the charging efficiency in the constant voltage stage of charging and reduce the loss of charging power.

[0005] In one aspect of the present invention, a method for charging a battery is provided. The method comprises: charging a battery through a switch charging chip and a charge pump chip, when the battery is charged to a constant voltage charging stage indicating that the voltage of the battery reaches a threshold, reducing the charging current output by the switch charging chip according to a step value until it drops to zero; gradually reducing the charging current output by the charge pump chip during the constant voltage charging stage until the charging current output by the charge pump chip is less than a cut-off threshold, turning off the charge pump chip for charging and turning on the switch charging chip for charging; and charging the battery through the switch charging chip until the battery is fully charged.

[0006] In another aspect of the present invention, a device for charging a battery is provided. The device comprises: a power supply device configured to be connected to a power supply for power supply; a switch charging chip and a charge pump chip, both electrically coupled to the power supply device and a battery, and configured to provide a charging current to the battery; and a controller configured to execute the above-mentioned method for charging a battery.

[0007] In another aspect of the present invention, an electronic device is provided, comprising: a memory configured to store information associated with battery charging; and at least one processor electrically coupled to the memory and configured to execute the above-mentioned method for battery charging.

[0008] According to the present invention, the battery is charged through the switch charging chip and the charge pump chip. When the battery is charged to the constant voltage charging stage indicating that the battery voltage reaches the battery threshold, the charging current output by the switch charging chip is reduced by a step value until it drops to zero, and then the charging current output by the charge pump chip is gradually reduced during the constant voltage charging stage until the charging current output by the charge pump chip is less than the cut-off threshold, the charge pump chip is turned off for charging, the switch charging chip is turned on, and finally the battery is charged to full power through the switch charging chip. In this way, when the mixed charging enters the constant voltage stage, the switch charging chip is turned off for charging by a step value, reducing the proportion of the switch charging chip in the battery charging current, so as to improve the charging efficiency in the constant voltage stage and reduce the loss of electric energy. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] Figure 1 A flowchart of a method for charging a battery according to an embodiment of the present invention; Figure 2 A schematic diagram of a battery charging structure according to an embodiment of the present invention; Figure 3 A diagram of a charging module for charging a battery according to an embodiment of the present invention; Figure 4 A process flow chart of charging a battery according to an embodiment of the present invention; Figure 5 4 is a structural diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0010] In order to explain the technical content, achieved objectives and effects of the present invention in detail, the following is an explanation in combination with the implementation modes and the accompanying drawings.

[0011] In the prior art, there are two constant voltage charging stages. There is a threshold between the first constant voltage charging stage and the second constant voltage charging stage, resulting in low charging speed and charging efficiency.

[0012] In order to solve at least the above technical problems, the present disclosure provides a method for charging a battery, wherein the battery is charged through a switch charging chip and a charge pump chip, and when the battery is charged to a constant voltage charging stage indicating that the battery voltage reaches the battery threshold, the charging current output by the switch charging chip is reduced by a step value until it drops to zero, and then the charging current output by the charge pump chip is gradually reduced during the constant voltage charging stage until the charging current output by the charge pump chip is less than the cut-off threshold, the charge pump chip is turned off for charging, the switch charging chip is turned on, and finally the battery is charged to full power through the switch charging chip. In this way, when the mixed charging enters the constant voltage stage, the switch charging chip is turned off for charging by a step value, and the proportion of the switch charging chip in the battery charging current is reduced to improve the charging efficiency in the constant voltage stage and reduce the loss of electric energy.

[0013] In the constant voltage charging stage of this solution, when the battery voltage is detected to be the full battery voltage, the system needs to gradually reduce the charging current. At this time, in order to improve the charging efficiency, the charging current of the switch charging chip is first reduced until the charging current of the switch charging chip is reduced to 0mA. At this time, the battery is only charged by the charge pump. The reason for this is that the charging efficiency of the charge pump is greater than that of the switch charging chip. Since it is still in the constant voltage charging stage, when the voltage of the battery during charging is detected to be the full battery voltage, the current of the charge pump is reduced until the charging current of the charge pump is less than a certain threshold, the charge pump charging is turned off, and the switch charging chip is turned on, so that the switch charging chip can charge the battery until it is fully charged.

[0014] In the constant voltage charging stage, the charge pump drops from the maximum current to the fast charge threshold current, and the charging current of the switch charging chip drops to 0mA. The software monitors the battery voltage in real time, maintains constant voltage charging of the battery, and gradually reduces the charging current of the charge pump until the charging current of the charge pump is less than a certain threshold. Then, the charge pump is turned off and the switch charging chip is turned on. Then, in the constant voltage charging stage, the switch charging chip is turned on for charging alone, and the charge pump is in the off state. The total current value of the switch charging chip is reduced to the charging cut-off current after the charge pump is turned off.

[0015] Hereinafter, the technical solution according to the present disclosure will be described with reference to specific embodiments and in conjunction with the accompanying drawings.

[0016] Figure 1 is a flow chart showing a method 100 for battery charging according to an embodiment of the present disclosure. Figure 1 The method 100 includes the following steps 102 to 108.

[0017] In step 102, the battery is charged through a switch charging chip and a charge pump chip.

[0018] In some embodiments, when the battery is quickly charged, the switch charging chip and the charge pump chip are parameterized according to the charging capacity parameter of the power supply device, the charging capacity parameter of the switch charging chip, and the charging capacity parameter of the charge pump chip. If the charging capacity parameter of the power supply device is less than or equal to the charging capacity parameter of the charge pump chip, the charge pump chip is controlled to be in an on state, and the switch charging chip is controlled to be in an off state.

[0019] In some embodiments, the input current of the charge pump chip is configured as the maximum input current value of the charge pump chip, and the input current of the switch charging chip is calculated based on the difference between the maximum output current of the power supply device and the input current of the charge pump chip. In this way, the charging capacity of the charge pump chip is first satisfied, and then the charging capacity of the switch charging chip is satisfied, and the high charging efficiency of the charge pump is utilized to reduce the consumption of electric energy and improve the charging efficiency.

[0020] In some embodiments, the output voltage value of the power supply device is adjusted according to the target current value of the battery fast charging and the current voltage value of the battery, so that the current when the charge pump chip and the switch charging chip charge the battery is the target current value.

[0021] In step 104, when the battery is charged to a constant voltage charging stage indicating that the voltage of the battery reaches a voltage threshold, the charging current output by the switch charging chip is reduced in steps until it drops to zero.

[0022] In some embodiments, the current temperature of the battery is detected, and it is determined whether to fast charge the battery based on the current temperature. If not, the charge pump chip is controlled to be in an off state, and the switch charging chip is controlled to be in an on state. In some embodiments, when the voltage of the battery reaches the full-charge voltage threshold corresponding to the current temperature of the voltage and enters the constant-voltage charging stage, the charging current output by the switch charging chip is reduced by a step value. In some embodiments, the charging current output by the charge pump chip drops from its maximum current to the fast-charging threshold current, and the charging current output by the switch charging chip drops to zero. In this way, it is possible to decide whether to enter the constant-voltage charging stage based on information such as the current temperature, thereby improving the flexibility of fast charging and maintaining constant-voltage charging of the battery.

[0023] In some embodiments, the step value in the charging current register of the switch charging chip is obtained, and the charging current of the switch charging chip is reduced according to the step value. In this way, the voltage mutation caused by directly shutting down the switch charging chip is avoided.

[0024] In some embodiments, when the charging current of the battery drops to the cut-off threshold, the battery charging current of the switch charging chip is turned off. In this way, the battery charging current of the switch charging chip is turned off to improve the charging efficiency and reduce the waste of electric energy.

[0025] In step 106, during the constant voltage charging stage, the charging current output by the charge pump chip is gradually reduced until the charging current output by the charge pump chip is less than a cut-off threshold, the charge pump chip is turned off for charging, and the switch charging chip is turned on for charging.

[0026] In some embodiments, the voltage of the battery is monitored in real time and constant voltage charging is maintained for the battery, and the charging current of the charge pump is gradually reduced. In this process, since the charging current is reduced, the input current of the charge pump chip is also reduced. At this time, the input current value of the switch charging chip is gradually increased to ensure the power supply of the system.

[0027] In step 108, the battery is charged to full power by the switch charging chip. In some embodiments, during the constant voltage charging stage, the charging current output by the switch charging chip drops to a charging cut-off current. In some embodiments, the battery is charged by the switch charging chip until the battery drops to a charging cut-off current.

[0028] In this embodiment, taking the fully charged battery voltage of 4.4V as an example, when the battery voltage is monitored at 4.4V, the charging current needs to be gradually reduced. At this time, in order to improve the charging efficiency, the charging current of the switch charging chip is first reduced until the charging current of the switch charging chip is reduced to 0mA. At this time, the battery is only charged by the charge pump chip. The reason for this is that the charging efficiency of the charge pump is greater than that of the switch charging chip. Since it is still in the constant voltage stage, when the battery charging voltage is monitored at 4.4V, the current of the charge pump chip is reduced until the charging current of the charge pump chip is less than a certain threshold, the charge pump chip is turned off and the switch charging chip is turned on. The switch charging chip charges the battery until it is fully charged. In this process, since the charging current is reduced, the input current of the charge pump is also reduced. According to "the input current of the charge pump = the maximum output current of the charger that meets the conditions - the input current of the switch chip", the input current value of the switch chip is gradually increased (the register of the switch charging chip is configured), so that the power supply of the system can be guaranteed.

[0029] Hereinafter, application scenarios of the method and apparatus for battery charging and the electronic device according to the embodiments of the present invention will be described by way of examples.

[0030] Figure 2 is a schematic diagram showing the structure of battery charging according to an embodiment of the present invention. Figure 2 The main control chip (not shown in the figure) is respectively connected to the power supply device (through the protocol chip), the charge pump, the fuel meter and the switch charging chip for communication. The charge pump is connected to the power supply device and the battery, the switch charging chip is connected to the power supply device and the battery, and the fuel meter is connected to the battery.

[0031] In this embodiment, the main control chip is the CPU, and the charging chip communicates with the main control chip via I2C. The power supply device is connected via the Type-C interface, so it can be represented by Type-C. The switch charging chip can realize trickle charging, constant current charging and constant voltage charging, and the switch charging chip can be DCDC.

[0032] When it is detected that the battery is in the fast charging stage, the charge pump and the switch charging chip are controlled to be in the on state at the same time, and the charge pump and the switch charging chip are configured according to the charging capacity parameters (power, voltage, current) of the power supply equipment, the charging capacity parameters of the charge pump, the charging capacity parameters of the switch charging chip, and the charging capacity that the battery can accept at the current temperature.

[0033] During the fast charging constant current stage of the battery, the output voltage value of the power supply equipment is adjusted according to the current target current value in the fast charging stage and the current voltage value of the battery, so that the current when the charge pump and the switching charging chip charge the battery is equal to the target current value.

[0034] The entire charging process has only one constant voltage charging stage (i.e., the full-charge voltage threshold of the current battery temperature). In the constant voltage charging stage, that is, when the battery voltage reaches the full-charge threshold, the battery charging current will gradually decrease. The charging current register of the switch charging chip has a step value. The DCDC charging current is reduced according to the step value until the DCDC charging is turned off, reducing the proportion of DCDC in the battery charging current, in order to maximize the charging efficiency, reduce the energy waste caused by heating, and avoid the voltage mutation caused by directly shutting down the chip. The charge pump has no step-by-step shutdown. In the constant voltage stage, the voltage remains unchanged and the current gradually decreases. When the input current of the charge pump is about 500mA, the charging current is 1A. At this time, the charge pump chip is turned off and the charging function of the switch charging chip is turned on until the battery is charged to the charging cut-off current.

[0035] Turning off DCDC charging mentioned here only turns off the charging current. The system power supply is still provided by DCDC charging, so the switch charging chip is involved in the whole stage. The purpose of turning off DCDC charging is to improve charging efficiency and reduce energy waste.

[0036] According to the power supply capacity parameters of the charger and the charging capacity parameters of the charge pump, the maximum current value that can be input to the switch charging chip is configured for the switch charging chip, that is, the input current of the charge pump = the maximum output current of the charger that meets the conditions - the input current of the switch chip. The output current of the charge pump is part of the battery charging current. For example: the input device can provide 5A of current, the charge pump can accept a maximum input current of 4.5A, and the switch charging chip can accept a maximum input current of 3A. Then the charge pump is allocated 4.5A and the switch charging chip is allocated 0.5A. The current premise here is that the battery does not have overcurrent.

[0037] The switch charging chip can control the input current, and the switch charging chip has a corresponding register to control the input current. The input current of the charge pump is determined by the charge current of the charge pump to the battery. The charge current of the charge pump is determined by the input current and input voltage. The charge pump has 1:1, 2:1, 3:1, and 4:1 modes. Taking the 2:1 mode as an example, input voltage*input current=output voltage*output current, where output current=2*input current, output voltage=1 / 2*input voltage.

[0038] If the charging capacity parameter of the power supply device is not greater than that of the charge pump, the charge pump is controlled to be in the on state and the switching charging chip is controlled to be in the off state. This is because the power supply device has insufficient capacity, and the charging efficiency of the charge pump is higher than that of the switching chip. If PPS charging is supported, the charge pump with high charging efficiency can be selected. During the fast charging stage, the output voltage of the charger is adjusted according to the target current value and the current voltage value of the battery during the fast charging stage, so that the charging current value of the charge pump to the battery is equal to the target current value.

[0039] Therefore, during the pre-charging stage, the switching charging chip participates in charging. At this time, the switching charging chip charges with a pre-charging current until the pre-charging voltage threshold is reached.

[0040] During the small current constant current stage, the switching charging chip participates in charging. At this time, the switching charging chip charges with a preset current from the pre-charging voltage threshold to the fast charging voltage threshold.

[0041] During the constant current stage, the switching charging chip and the charge pump chip participate in charging. At this time, the charge pump chip outputs with the maximum capacity, and the switching charging chip supplements the remaining current, charging from the fast charging voltage threshold to the battery full charge cut-off voltage threshold.

[0042] In the first step of the constant voltage stage, the switching charging chip and the charge pump chip participate in charging. The charge pump chip reduces its current from the maximum current to the fast charging threshold current, and the charging current of the switching charging chip drops to 0 mA. The software monitors the battery voltage in real time to keep the battery charging at a constant voltage. When the charging current of the charge pump is gradually reduced until it is less than a certain threshold, the charge pump chip charging is turned off and the switching charging chip charging is turned on. At this time, the voltage is maintained at the battery full charge cut-off voltage threshold.

[0043] In the second step of the constant voltage stage, the switching charging chip is turned on for separate charging. The total current value of the switching charging chip decreases from the value after the charge pump is turned off to the charging cut-off current, and the voltage is maintained at the battery full charge cut-off voltage threshold.

[0044] Figure 3 It is a charging module diagram showing the battery charging of the embodiment of the present invention. Refer to Figure 3 , this charging module includes a charging type identification module 302, a battery state detection module 304, a temperature control module 306, and a charging control module 308.

[0045] The charging type identification module 302 is configured to, after identifying that the charger is inserted, determine the charging type of the current charger, the maximum voltage and maximum current that the charger can output, and integrate and send this information to the charging control module 308.

[0046] The battery state detection module 304 is configured to obtain the voltage and current of the current battery.

[0047] The temperature control module 306 is configured to monitor the temperature of the battery, and can obtain the current operating parameters of the battery, such as the battery voltage value, current value, temperature value, etc., by communicating with the fuel meter. These parameters can also be obtained from the switch charging chip and the charge pump chip, depending on the hardware circuit design, and the fuel meter is not a necessary setting unit.

[0048] The charging control module 308 is configured to charge the battery separately through the switch charging chip according to the maximum charging current and maximum charging voltage provided by the current temperature control module when a PD (USB Power Delivery) charger or a common charger is inserted, and the charge pump chip is in a non-working state. When a PPS (Programmable Power Supply) charger is inserted, it determines whether to start fast charging based on information such as the current battery voltage and temperature.

[0049] Determine whether the power supply device supports fast charging. If the power supply device does not support fast charging, control the switch charging chip to be in the on state and the charge pump chip to be in the off state. The switch charging chip configuration can input the maximum current value (needs to be determined according to the output current provided by the power supply device) and the minimum voltage value of the switch charging chip as well as the maximum charging voltage and maximum charging current of the battery (determined according to the current battery parameters, the full-charge voltage and maximum charging current are different at different temperatures, and the battery cannot be charged at temperatures less than or equal to 0°C or greater than 60°C), so that the switch charging chip charges the battery until the switch charging chip detects that the current value of the battery is less than the cut-off current threshold, and stops charging the battery.

[0050] If the power supply device supports fast charging and the charging capability parameter is greater than the charging capability parameter of the charge pump chip, the charge pump chip and the switch charging chip are controlled to be in the on state.

[0051] If the charging capability parameter of the power supply device is not greater than the charging capability parameter of the charge pump chip, the charge pump chip is controlled to be in an on state and the switch charging chip is controlled to be in an off state. If the charging capability parameter of the power supply device is not greater than the charging capability parameter of the charge pump and the power supply device supports fast charging, the charge pump chip is controlled to be in an on state and the switch charging chip is controlled to be in an off state. If the charging capability parameter of the power supply device is not greater than the charging capability parameter of the charge pump, the charge pump chip can work normally after being turned on.

[0052] Figure 4 FIG. 1 is a flowchart showing a process of charging a battery according to an embodiment of the present invention. Figure 4 , the processing flow includes the following steps 402 to 412.

[0053] At step 402, a charger is plugged in.

[0054] In step 404 , determine whether the fast charging stage is supported and entered, if so, execute step 406 , otherwise execute step 412 .

[0055] In step 406, it is determined whether the hybrid charging condition is met, if so, step 408 is executed, otherwise, step 410 is executed.

[0056] In step 408, the hybrid charging mode is turned on.

[0057] In step 410, only the charge pump fast charge is turned on.

[0058] In step 412, only the switch charging chip is in the on state according to the current battery information.

[0059] According to another aspect of the present invention, a device for charging a battery is provided. The device comprises: a power supply device configured to be connected to a power supply for power supply; a switch charging chip and a charge pump chip, both electrically coupled to the power supply device and a battery, and configured to provide a charging current to the battery; and a controller configured to execute the above-mentioned method for charging a battery.

[0060] According to yet another aspect of the present invention, Figure 5 1 is a block diagram showing an electronic device 500 according to an embodiment of the present invention. Figure 5 , the electronic device 500 includes a memory 502 and at least one processor 504. The memory 502 is configured to store information associated with battery charging. At least one processor 504 is electrically coupled to the memory and configured to execute the various steps or actions of the method for battery charging as described above.

[0061] In summary, the method and device for battery charging and the electronic device provided by the present invention charge the battery through the switch charging chip and the charge pump chip. When the battery is charged to the constant voltage charging stage indicating that the battery voltage reaches the battery threshold, the charging current output by the switch charging chip is reduced by the step value until it drops to zero, and then the charging current output by the charge pump chip is gradually reduced during the constant voltage charging stage until the charging current output by the charge pump chip is less than the cut-off threshold, the charge pump chip is turned off for charging, the switch charging chip is turned on, and finally the battery is charged to full power through the switch charging chip. In this way, when the mixed charging enters the constant voltage stage, the switch charging chip is turned off for charging according to the step value, reducing the proportion of the switch charging chip in the battery charging current, so as to improve the charging efficiency in the constant voltage stage and reduce the loss of electric energy.

[0062] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent transformations made using the contents of the present invention's specification and drawings, or directly or indirectly applied in related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for charging a battery, characterized in that: include: The battery is charged through a switch charging chip and a charge pump chip; When the battery is charged to a constant voltage charging stage indicating that the voltage of the battery reaches a voltage threshold, reducing the charging current output by the switch charging chip according to a step value until it drops to zero; During the constant voltage charging stage, the charging current output by the charge pump chip is gradually reduced until the charging current output by the charge pump chip is less than a cut-off threshold, the charge pump chip is turned off for charging, and the switch charging chip is turned on for charging; as well as The battery is charged to full capacity via the switch charging chip.

2. The method according to claim 1, characterized in that Reducing the charging current output by the switch charging chip according to the step value until it drops to zero includes: When the voltage of the battery reaches a full-charge voltage threshold corresponding to the current temperature of the battery and enters the constant voltage charging stage, the charging current output by the switch charging chip is reduced according to the step value.

3. The method according to claim 1, characterized in that Reducing the charging current output by the switch charging chip according to the step value until it drops to zero includes: The charging current output by the charge pump chip drops from its maximum current to a fast charging threshold current, and the charging current output by the switch charging chip drops to zero.

4. The method according to claim 1, characterized in that Gradually reducing the charging current output by the charge pump chip during the constant voltage charging stage includes: The voltage of the battery is monitored in real time and constant voltage charging of the battery is maintained, and the charging current of the charge pump is gradually reduced.

5. The method according to claim 1, characterized in that Charging the battery to full power through the switch charging chip includes: During the constant voltage charging stage, the charging current output by the switch charging chip drops to a charging cut-off current.

6. The method according to claim 1, characterized in that Charging the battery through a switch charging chip and a charge pump chip includes: During fast charging of the battery, parameters of the switch charging chip and the charge pump chip are configured according to the charging capability parameters of the power supply device, the charging capability parameters of the switch charging chip, and the charging capability parameters of the charge pump chip.

7. The method according to claim 6, characterized in that According to the charging capability parameter of the power supply device, the charging capability parameter of the switch charging chip and the charging capability parameter of the charge pump chip, parameter configuration of the switch charging chip and the charge pump chip includes: The input current of the charge pump chip is configured to be the maximum input current value of the charge pump chip, and the input current of the switch charging chip is calculated based on the difference between the maximum output current of the power supply device and the input current of the charge pump chip.

8. The method according to claim 6, characterized in that According to the charging capability parameter of the power supply device, the charging capability parameter of the switch charging chip and the charging capability parameter of the charge pump chip, parameter configuration of the switch charging chip and the charge pump chip includes: If the charging capability parameter of the power supply device is less than or equal to the charging capability parameter of the charge pump chip, the charge pump chip is controlled to be in an on state, and the switch charging chip is controlled to be in an off state.

9. The method according to claim 6, characterized in that When the battery is fast charged, charging the battery through the switch charging chip and the charge pump chip includes: According to the target current value of the battery fast charging and the current voltage value of the battery, the output voltage value of the power supply device is adjusted so that the current when the charge pump chip and the switch charging chip charge the battery is the target current value.

10. The method according to claim 1, characterized in that Reducing the charging current output by the switch charging chip according to the step value includes: The step value in the charging current register of the switch charging chip is obtained, and the charging current of the switch charging chip is reduced according to the step value.

11. The method according to claim 1, characterized in that: Reducing the charging current output by the switch charging chip according to the step value until it drops to zero includes: When the charging current of the battery drops to a cut-off threshold, the battery charging current of the switch charging chip is turned off.

12. The method according to claim 1, characterized in that Charging the battery to full power through the switch charging chip includes: The battery is charged by the switch charging chip until the battery drops to a charging cut-off current.

13. The method according to claim 1, characterized in that Also includes: Detecting a current temperature of a battery, and determining whether to fast charge the battery according to the current temperature; If not, the charge pump chip is controlled to be in a closed state, and the switch charging chip is controlled to be in an open state.

14. A device for charging a battery, characterized in that: include: A power supply device, configured to be connected to a power source to provide power; A switch charging chip and a charge pump chip, both electrically coupled to the power supply device and the battery, and configured to provide a charging current to the battery; A controller configured to execute the method according to any one of claims 1 to 13.

15. An electronic device, characterized in that: include: a memory configured to store information associated with battery charging; as well as At least one processor is electrically coupled to the memory and is configured to execute the method according to any one of claims 1 to 13.