Battery charging circuit, charging control method, and electronic device

CN115833307BActive Publication Date: 2026-07-21VIVO MOBILE COMM CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
VIVO MOBILE COMM CO LTD
Filing Date
2022-11-17
Publication Date
2026-07-21

AI Technical Summary

Technical Problem

[0005]本申请实施例的目的是提供一种电池充电电路、充电控制方法和电子设备,能够解决因移动终端充电时MOS管的阻抗较大,使得移动终端的充电功耗较高的问题

Benefits of technology

[0015] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the first aspect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115833307B_ABST
    Figure CN115833307B_ABST
Patent Text Reader

Abstract

The application discloses a battery charging circuit, a charging control method and electronic equipment, and belongs to the field of circuit design. The battery charging circuit comprises at least one charging circuit, and the charging circuit is used for charging one battery; the charging circuit comprises a power supply circuit, a MOS tube, a switch control circuit and a filter capacitor, the first end of the power supply circuit is connected with an external power supply, the second end of the power supply circuit is connected with the drain of the MOS tube, the source of the MOS tube is connected with one pole of the filter capacitor, one pole of the filter capacitor is also connected with the battery, the other pole of the filter capacitor is connected with a grounding end, and the gate of the MOS tube is connected with the switch control circuit; the switch control circuit is used for controlling the MOS tube to be turned on or turned off in one charge and discharge cycle of the filter capacitor according to the maximum charging current value of the battery, the capacitance value of the filter capacitor, the voltage value of the second end of the power supply circuit and the voltage value of the battery, so that the discharge current value output by the filter capacitor to the battery does not exceed the maximum charging current value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of circuit design, specifically relating to a battery charging circuit, a charging control method, and an electronic device. Background Technology

[0002] With the development of mobile devices, battery life has gradually become a focus of attention. Common methods to improve battery life include increasing the total battery capacity and improving charging speed. For example, foldable devices can incorporate two batteries and provide fast charging for both, thereby enhancing the overall battery life of the device.

[0003] Then, because the power supply circuit for charging the battery may output a current greater than the battery's maximum charging current, a MOSFET is typically connected in series between the power supply circuit and the battery. By controlling the MOSFET's gate voltage, the magnitude of its on-state current can be controlled. This limits the battery's input current, ensuring safe charging.

[0004] However, this method of controlling the MOSFET's on-state current keeps the MOSFET in a semi-conducting state for extended periods, resulting in higher impedance. This, in turn, causes the MOSFET to operate at high power for extended periods, leading to significant heat generation and increased charging power consumption in mobile devices. Summary of the Invention

[0005] The purpose of this application is to provide a battery charging circuit, a charging control method, and an electronic device that can solve the problem of high charging power consumption of mobile terminals due to the high impedance of MOS transistors during charging.

[0006] In a first aspect, embodiments of this application provide a battery charging circuit, including: at least one charging circuit, one of the charging circuits being used to charge a battery;

[0007] The charging circuit includes: a power supply circuit, a MOSFET, a switch control circuit, and a filter capacitor. The first terminal of the power supply circuit is connected to an external power source, the second terminal of the power supply circuit is connected to the drain of the MOSFET, the source of the MOSFET is connected to one terminal of the filter capacitor, one terminal of the filter capacitor is also connected to the battery, the other terminal of the filter capacitor is connected to the ground terminal, and the gate of the MOSFET is connected to the switch control circuit.

[0008] The switch control circuit is used to control the MOS transistor to turn on or off within one charge / discharge cycle of the filter capacitor based on the maximum charging current value of the battery, the capacitance value of the filter capacitor, the voltage value at the second terminal of the power supply circuit, and the voltage value of the battery, so that the discharge current value output by the filter capacitor to the battery does not exceed the maximum charging current value.

[0009] Secondly, embodiments of this application provide a charging control method applied to a switch control circuit in a battery charging circuit as described in any of the first aspects, the method comprising:

[0010] Obtain the maximum charging current value of the battery;

[0011] Based on the maximum charging current value, the capacitance value of the filter capacitor, the voltage value at the second terminal of the power supply circuit, and the voltage value of the battery, the MOS transistor is controlled to turn on or off within one charging and discharging cycle of the filter capacitor.

[0012] Thirdly, embodiments of this application provide an electronic device including a battery charging circuit, a processor, and a memory as described in any of the first aspects, wherein the memory stores a program or instructions executable on the processor, and the program or instructions, when executed by the processor, implement the steps of the method described in the second aspect.

[0013] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the second aspect.

[0014] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the second aspect.

[0015] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the first aspect.

[0016] In this embodiment, the battery charging circuit provided includes at least one charging circuit. The charging circuit includes a power supply circuit, a MOSFET, a switch control circuit, and a filter capacitor. A first terminal of the power supply circuit is connected to an external power source, a second terminal of the power supply circuit is connected to the drain of the MOSFET, the source of the MOSFET is connected to one terminal of the filter capacitor, one terminal of the filter capacitor is also connected to the battery, the other terminal of the filter capacitor is connected to ground, and the gate of the MOSFET is connected to the switch control circuit. The switch control circuit controls the MOSFET to turn on or off within one charge / discharge cycle of the filter capacitor based on the battery's maximum charging current, the capacitance of the filter capacitor, the voltage at the second terminal of the power supply circuit, and the battery voltage.

[0017] The output current of the filter capacitor is determined by its capacitance, the voltage at the second terminal of the power supply circuit, the battery voltage, and the discharge duration of the filter capacitor within a charge / discharge cycle. The discharge duration of the filter capacitor within a charge / discharge cycle is determined by the off-duration of the MOSFET within the same cycle. Therefore, by controlling the MOSFET's on / off state based on the battery's maximum charging current, the filter capacitor's capacitance, the voltage at the second terminal of the power supply circuit, and the battery voltage, the on / off duration of the MOSFET within a charge / discharge cycle of the filter capacitor can be controlled. This, in turn, controls the charging and discharging duration of the filter capacitor within a charge / discharge cycle, ensuring that the discharge current output by the filter capacitor to the battery does not exceed the maximum charging current.

[0018] In this battery charging circuit, the switching control circuit utilizes a MOSFET to switch between on and off states to ensure that the filter capacitor outputs a charging current to the battery that does not exceed the maximum charging current value. Furthermore, the impedance of the MOSFET is lower in both the off and on states than in the semi-on state. Therefore, compared to related technologies, the MOSFET generates less heat and operates at lower power during battery charging circuit operation. This, in turn, reduces the overall power consumption of the battery charging circuit, decreases the charging power consumption at the terminal where the battery charging circuit is located, and improves the charging speed. Attached Figure Description

[0019] Figure 1 This is a schematic diagram of a battery charging circuit in related technologies;

[0020] Figure 2 This is a schematic diagram of a battery charging circuit provided in an embodiment of this application;

[0021] Figure 3 This is a schematic diagram of another battery charging circuit provided in an embodiment of this application;

[0022] Figure 4This is a schematic diagram of another battery charging circuit provided in the embodiments of this application;

[0023] Figure 5 This is a flowchart of a charging control method provided in an embodiment of this application;

[0024] Figure 6 This is a block diagram of an electronic device provided in an embodiment of this application;

[0025] Figure 7 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0026] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0027] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0028] With the development of mobile devices, battery life has gradually become a focus of attention. Common methods to improve battery life include increasing the total battery capacity and improving charging speed. For example, foldable devices can incorporate two batteries and provide fast charging for both, thereby enhancing the overall battery life of the device.

[0029] Then, because the power supply circuit for charging the battery may output a current greater than the battery's maximum charging current, a MOSFET is typically connected in series between the power supply circuit and the battery. By controlling the MOSFET's gate voltage, the magnitude of its on-state current can be controlled. This limits the battery's input current, ensuring safe charging.

[0030] For example, please refer to Figure 1 It shows a schematic diagram of a battery charging circuit in the related art. For example... Figure 1As shown, the battery charging circuit includes two charging circuits 100 connected in parallel. Each charging circuit 100 includes a first charging circuit and a second charging circuit.

[0031] The first charging circuit includes a power supply circuit 101, a metal-oxide-semiconductor field-effect transistor (MOS) 102, and a current-limiting integrated circuit (IC) 103. The power supply circuit 101 includes a first power supply circuit 1011 and a second power supply circuit 1012 connected in parallel. Specifically, the first terminals of both the first power supply circuit 1011 and the second power supply circuit 1012 are connected to an external power source via a Universal Serial Bus (USB) interface 200. The second terminals of both the first power supply circuit 1011 and the second power supply circuit 1012 are connected to the drain (D) of the MOS transistor 102. The source (S) of the MOS transistor 102 is connected to the positive terminal of the battery 104. The gate (G) of the MOS transistor 102 is connected to the current-limiting IC 103. The negative terminal of the battery 104 is connected to ground (GND).

[0032] The second charging circuit includes: a second power supply circuit 107, a MOSFET 102, a current limiting IC 103, and a battery 104. The first terminal of the second power supply circuit 107 is connected to an external power source via a USB interface 200. The second terminal of the second power supply circuit 107 is connected to the drain of the MOSFET 102. The source of the MOSFET 102 is connected to the positive terminal of the battery 104. The gate of the MOSFET 102 is connected to the current limiting IC 103. The negative terminal of the battery 104 is connected to ground (GND).

[0033] In this circuit, the first power supply circuit 1011 can be a standard charging IC. The second power supply circuit 1012 and the second power supply circuit 107 can be fast charging ICs. The output current of the standard charging IC is less than that of the fast charging IC. The battery capacity in the first charging circuit is less than that in the second charging circuit; therefore, the battery in the first charging circuit can be called a small battery, and the battery in the second charging circuit can be called a large battery.

[0034] In this battery charging circuit, not only might the first and second power supply circuits output currents exceeding the battery's maximum charging current, but also, because they are connected in parallel and the small and large batteries have unequal capacities, their charging path impedances differ. Consequently, when the second and second power supply circuits are operating—that is, during the fast charging phase—there is a risk that the charging current of the small battery may exceed the battery's rated capacity.

[0035] To limit the charging current of the battery, a current-limiting IC determines the voltage that needs to be applied to the gate of the MOSFET based on the maximum charging current of the battery connected to it, and applies this voltage to the gate of the MOSFET to control the size of the MOSFET's gate-source channel. This ensures that the current allowed through the MOSFET does not exceed the maximum charging current, thus limiting the charging current of the battery.

[0036] However, this method of controlling the MOSFET's on-state current keeps the MOSFET in a semi-conducting state for extended periods, resulting in higher impedance. This, in turn, causes the MOSFET to operate at high power for extended periods, leading to significant heat generation and increased charging power consumption in mobile devices.

[0037] Please refer to Figure 2 This illustration shows a schematic diagram of a battery charging circuit according to an embodiment of this application. The battery charging circuit provided in this embodiment can solve the aforementioned problems to a certain extent. Figure 2 As shown, the battery charging circuit includes at least one charging circuit 100. One charging circuit 100 is used to charge one battery. When there are multiple charging circuits 100, each charging circuit 100 can charge one battery.

[0038] The charging circuit 100 includes a power supply circuit 101, a MOSFET 102, a switch control circuit 105, and a filter capacitor 106. The first terminal of the power supply circuit 101 is connected to an external power source. The second terminal of the power supply circuit 101 is connected to the drain of the MOSFET 102. The source of the MOSFET 102 is connected to one terminal of the filter capacitor 106, and one terminal of the filter capacitor 106 is also connected to the battery 104. The other terminal of the filter capacitor 104 is connected to ground (GND). The gate of the MOSFET 102 is connected to the switch control circuit 105. Optionally, the first terminal of the power supply circuit 100 can be connected to an external power source via a USB interface 200.

[0039] The switch control circuit 105 is used to control the MOSFET to turn on or off within one charge / discharge cycle of the filter capacitor 106 based on the maximum charging current value of the battery 104, the capacitance value of the filter capacitor 106, the voltage value at the second terminal of the power supply circuit 101, and the voltage value of the battery 104, so that the discharge current value output by the filter capacitor 106 to the battery 104 does not exceed the maximum charging current value.

[0040] In this embodiment, the current formula for the filter capacitor is I = dq / dt. I is the discharge current of the filter capacitor, dq is the change in capacitance of the filter capacitor, and dt is the discharge duration of the filter capacitor. The capacitance formula for the filter capacitor is q = C × u. q is the capacitance, C is the capacitance value of the filter capacitor, and u is the voltage across the filter capacitor.

[0041] According to the current formula and capacitance formula, the discharge current value I of the filter capacitor satisfies the target formula: I = dq / dt = Cdu / dt = C(V0 - VBAT) / (1 - D). I is the discharge current value of the filter capacitor, which is also the charging current value of the battery. C is the capacitance value of the filter capacitor, V0 is the voltage value at the second terminal of the power supply circuit 101, VBAT is the voltage value of the battery 104, and 1 - D is the discharge duration of the filter capacitor in one charge-discharge cycle. Correspondingly, D is the charging duration of the filter capacitor in one charge-discharge cycle. When the MOSFET is in the on state, the filter capacitor charges. When the MOSFET is in the off state, the filter capacitor discharges. Therefore, 1 - D is the off duration of the MOSFET in one charge-discharge cycle of the filter capacitor. Correspondingly, D is the proportion of the MOSFET's on duration in one charge-discharge cycle of the filter capacitor.

[0042] Based on this, the output current of the filter capacitor is determined by the capacitance of the filter capacitor, the voltage at the second terminal of the power supply circuit, the battery voltage, and the discharge duration of the filter capacitor in one charge-discharge cycle. The discharge duration of the filter capacitor in one charge-discharge cycle is determined by the off-duration of the MOSFET in one charge-discharge cycle. Therefore, by controlling the on-duration or off-duration of the MOSFET in each charge-discharge cycle of the filter capacitor based on the battery's maximum charging current, the filter capacitor's capacitance, the voltage at the second terminal of the power supply circuit, and the battery voltage, the charging and discharging duration of the filter capacitor in each charge-discharge cycle is controlled, thereby ensuring that the discharge current output by the filter capacitor to the battery does not exceed the maximum charging current.

[0043] In summary, the battery charging circuit provided in this application includes at least one charging circuit. The charging circuit includes a power supply circuit, a MOSFET, a switch control circuit, and a filter capacitor. The first terminal of the power supply circuit is connected to an external power source, the second terminal of the power supply circuit is connected to the drain of the MOSFET, the source of the MOSFET is connected to one terminal of the filter capacitor, one terminal of the filter capacitor is also connected to the battery, the other terminal of the filter capacitor is connected to ground, and the gate of the MOSFET is connected to the switch control circuit. The switch control circuit controls the MOSFET to turn on or off within one charge / discharge cycle of the filter capacitor based on the battery's maximum charging current, the capacitance of the filter capacitor, the voltage at the second terminal of the power supply circuit, and the battery voltage.

[0044] The output current of the filter capacitor is determined by its capacitance, the voltage at the second terminal of the power supply circuit, the battery voltage, and the discharge duration of the filter capacitor within a charge / discharge cycle. The discharge duration of the filter capacitor within a charge / discharge cycle is determined by the off-duration of the MOSFET within the same cycle. Therefore, by controlling the MOSFET's on / off state based on the battery's maximum charging current, the filter capacitor's capacitance, the voltage at the second terminal of the power supply circuit, and the battery voltage, the on / off duration of the MOSFET within a charge / discharge cycle of the filter capacitor can be controlled. This, in turn, controls the charging and discharging duration of the filter capacitor within a charge / discharge cycle, ensuring that the discharge current output by the filter capacitor to the battery does not exceed the maximum charging current.

[0045] In this battery charging circuit, the switching control circuit utilizes a MOSFET to switch between on and off states to ensure that the filter capacitor outputs a charging current to the battery that does not exceed the maximum charging current value. Furthermore, the impedance of the MOSFET is lower in both the off and on states than in the semi-on state. Therefore, compared to related technologies, the MOSFET generates less heat and operates at lower power during battery charging circuit operation. This, in turn, reduces the overall power consumption of the battery charging circuit, decreases the charging power consumption at the terminal where the battery charging circuit is located, and improves the charging speed.

[0046] Alternatively, please refer to Figure 3 The switch control circuit 105 includes a control module 1051 and a signal selection module 1052. The control module 1051 is connected to the gate of the MOSFET 102 through the signal selection module 1052.

[0047] The control module 1051 is used to calculate the percentage of the target state duration of the MOSFET 102 within one charge / discharge cycle of the filter capacitor 106 based on the maximum charging current of the battery 104, the capacitance of the filter capacitor 106, the voltage at the second terminal of the power supply circuit 101, and the voltage of the battery 104. The percentage of the target state duration includes either the on-time percentage or the off-time percentage.

[0048] The signal selection module 1052 is used to periodically transmit a turn-on control signal or a turn-off control signal to the gate of the MOSFET 102 according to the proportion of the target state duration and the charging and discharging cycle duration of the filter capacitor 106. The duration of one transmission cycle is equal to the duration of the charging and discharging cycle, and the proportion of the transmission duration of the turn-on control signal in one transmission cycle is equal to the proportion of the turn-on duration, and the proportion of the transmission duration of the turn-off control signal in one transmission cycle is equal to the proportion of the turn-off duration.

[0049] Specifically, control module 1051 calculates the target state duration percentage of the MOSFET using the aforementioned target formula, based on the battery's maximum charging current I, the filter capacitor's capacitance C, the voltage V0 at the second terminal of the power supply circuit, and the battery's voltage VBAT. Control module 1051 then transmits the calculated target state duration percentage to signal selection module 1052.

[0050] In an optional configuration, the target state duration is assumed to be the proportion of the conduction duration. The signal selection module 1052 calculates the product of the conduction duration proportion and the charging / discharging cycle duration of the filter capacitor to obtain the transmission duration of the conduction control signal within one transmission cycle. The signal selection module 1052 can also calculate the turn-off duration of the MOSFET within one charging / discharging cycle based on the conduction duration proportion and the charging / discharging cycle duration; this turn-off duration is the transmission duration of the turn-off control signal within one transmission cycle. Based on the calculated transmission duration of the conduction control signal and the turn-off control signal within one transmission cycle, the signal selection module 1052 alternately transmits the conduction control signal or the turn-off control signal to the gate of the MOSFET 102. The signal selection module 1052 transmits one conduction control signal and one turn-off control signal to the MOSFET in each transmission cycle.

[0051] The on-control signal is used to turn on the MOSFET. The off-control signal is used to completely turn off the MOSFET. The voltage value of the on-control signal can be greater than or equal to the MOSFET's on-state voltage (Vgs(on)). Optionally, the voltage value of the on-control signal is the sum of the battery voltage and the MOSFET's on-state voltage (VBAT + Vgs(on)). The voltage value of the off-control signal can be 0.

[0052] For example, assuming the filter capacitor's capacitance C is 4F, the battery voltage VBAT in the current battery charging circuit is 4V, the voltage V0 at the second terminal of the power supply circuit is 4.1V, and the battery's maximum charging current I is 2.4A. According to the target formula I = dq / dt = Cdu / dt = C(V0 - VBAT) / (1 - D), the calculated on-time percentage D is 0.83. If the filter capacitor's charge / discharge cycle is 6s, then the signal selection module calculates the MOSFET's on-time in one charge / discharge cycle to be 5s, and the MOSFET's off-time in one charge / discharge cycle to be 1s. The signal selection module periodically transmits a 5s on-time control signal to the MOSFET's gate, followed by a 1s off-time control signal. That is, the transmission cycle is 6s, and the transmission time of the on-time control signal within one transmission cycle is 5s, while the transmission cycle of the off-time control signal is 1s.

[0053] In another alternative implementation, please refer to [link / reference]. Figure 3 The signal selection module 1052 includes a comparator U. The first terminal of the comparator U is used to receive the turn-on voltage of the MOSFET. The second terminal of the comparator U is connected to ground (GND). The third terminal of the comparator U is connected to the control module 1051. The fourth terminal of the comparator U is connected to the gate of the MOSFET 102.

[0054] Comparator U is used to transmit on / off control signals to MOSFET 102 based on the proportion of the target state duration and the duration of the charge / discharge cycle. The signal period of the on / off control signal is the charge / discharge cycle, and the high-level duty cycle of the on / off control signal is equal to the proportion of the on-time, while the low-level duty cycle of the on-control signal is equal to the proportion of the off-time.

[0055] The on / off control signal is a chopper signal L. A high-level on / off control signal is used to turn on the MOSFET. A low-level on / off control signal is used to turn off the MOSFET. When the on / off control signal is high, its corresponding voltage is greater than or equal to the MOSFET's on-state voltage. When the on / off control signal is low, its corresponding voltage can be 0. Optionally, when the on / off control signal is high, its corresponding voltage is the sum of the battery voltage and the MOSFET's on-state voltage (VBAT + Vgs(on)).

[0056] For example, assume the target duration percentage is the conduction duration percentage, and the conduction duration percentage D is 0.83. Calculate the product of the conduction duration percentage and the charge / discharge cycle duration to obtain the high-level duration within the signal period of the on / off control signal. Calculate the difference between the signal cycle duration and the high-level duration to obtain the low-level duration within the signal period of the on / off control signal. The on / off control signal is then transmitted to the MOSFET based on the high-level and low-level durations.

[0057] Optionally, the power supply circuit 101 includes a first power supply circuit 1011 and a second power supply circuit 1012 connected in parallel. The first terminals of both the first power supply circuit 1011 and the second power supply circuit 1012 are connected to an external power supply terminal. The second terminals of both the first power supply circuit 1011 and the second power supply circuit 1012 are connected to the drain of the MOSFET 102.

[0058] The switch control circuit 105 is also used to acquire the maximum charging current value of the battery corresponding to the first power supply circuit 1011 when the first power supply circuit 1011 is working, and to acquire the maximum charging current value of the battery corresponding to the second power supply circuit 1012 when the second power supply circuit 1012 is working. The maximum charging current value corresponding to the first power supply circuit is different from the maximum charging current value corresponding to the second power supply circuit.

[0059] The first power supply circuit 1011 and the second power supply circuit have different output currents. The charging speeds of the battery using the first and second power supply circuits also differ. The maximum charging current of the battery when using the first power supply circuit can also differ from the maximum charging current of the battery when using the second power supply circuit. The switching control circuit can determine the switching timing of the corresponding MOSFET based on the maximum charging current of the battery in the power supply circuits operating in the first and second power supply circuits.

[0060] Optionally, the first power supply circuit 1011 can be a general-purpose charging IC. The second power supply circuit 1012 can be a fast-charging IC. The output current of the general-purpose charging IC is less than that of the fast-charging IC. When the battery is charged using a general-purpose charging IC, the charging stage can be called the normal charging stage. When the battery is charged using a fast-charging IC, the charging stage can be called the fast-charging stage. When the first power supply circuit 1011 is working, the switch control circuit can obtain the maximum charging current of the battery corresponding to the normal charging stage, and control the MOSFET to turn on or off within one charge / discharge cycle of the filter capacitor during the normal charging stage based on the maximum charging current. When the second power supply circuit 1012 is working, it can obtain the maximum charging current of the battery corresponding to the fast-charging stage, and control the MOSFET to turn on or off within one charge / discharge cycle of the filter capacitor during the fast-charging stage based on the maximum charging current.

[0061] Please refer to some embodiments of this application. Figure 3The switch control circuit 105 further includes a communication interface module 1053 and a power supply module 1054. The first terminal of the communication interface module 1053 is connected to the control module 1051. The second terminal of the communication interface module 1053 is used to receive the maximum charging current value. The power supply module 1054 is connected to the signal selection module 1052 through the control module 1051. The communication interface module 1053 is used to transmit the received maximum charging current value to the control module 1051. The power supply module 1054 is used to supply the signal selection module 1052 with a conduction control signal.

[0062] Optionally, the communication interface module 1053 can be connected to the controller 300. The controller 300 can transmit the maximum charging current value of the battery to the communication interface module when the battery charging circuit is operating. In an optional case, the maximum charging current value of the battery transmitted by the controller 300 can be data stored by the user within the controller.

[0063] Alternatively, the power supply module 1054 can be a charge pump. The power supply module 1054 is used to provide a turn-on voltage to the signal selection module 1052 via the control module 1051, so as to serve as a turn-on drive source for the MOSFET.

[0064] In some embodiments of this application, there can be multiple charging circuits. When there are multiple charging circuits, the multiple charging circuits are connected in parallel. The power supply circuits in the parallel multiple charging circuits 100 are all connected to an external power source, and the batteries in the multiple charging circuits 100 are all connected to the ground terminal GND.

[0065] For ease of understanding, the following description uses two charging circuits as an example to illustrate the battery charging circuit provided in the embodiments of this application.

[0066] Please refer to Figure 3 The battery charging circuit includes two charging circuits 100. These two charging circuits 100 include a first charging circuit and a second charging circuit.

[0067] The first charging circuit includes a power supply circuit 101, a MOSFET 102, a switch control circuit 105, and a filter capacitor 106. The power supply circuit 101 includes a first power supply circuit 1011 and a second power supply circuit 1012 connected in parallel. The first terminals of both the first power supply circuit 1011 and the second power supply circuit 1012 are connected to an external power source via a USB interface 200. The second terminals of both the first power supply circuit 1011 and the second power supply circuit 1012 are connected to the drain of the MOSFET 102. The source of the MOSFET 102 is connected to one terminal of the filter capacitor 106. One terminal of the filter capacitor 106 is also connected to the positive terminal of the battery 104. The other terminal of the filter capacitor 106 is connected to the ground terminal GND. The negative terminal of the battery 104 is connected to the ground terminal GND.

[0068] The gate of MOSFET 102 is connected to the fourth terminal of comparator U in the switch control circuit 105. The first terminal of comparator U is used to receive the turn-on voltage provided by power supply module 1054. The second terminal of comparator U is connected to ground GND. The third terminal of comparator U is connected to power supply module 1054 through control module 1051. Control module 1051 is also connected to communication interface module 1053.

[0069] The second charging circuit includes a power supply circuit 101, a MOSFET 102, a switch control circuit 105, and a filter capacitor 106. The first terminal of the power supply circuit 101 is connected to an external power source via a USB interface 200. The second terminal of the power supply circuit 101 is connected to the drain of the MOSFET 102 in the second charging circuit and the drain of the MOSFET 102 in the first charging circuit. The source of the MOSFET 102 in the second charging circuit is connected to one terminal of the filter capacitor 106. One terminal of the filter capacitor 106 is also connected to the positive terminal of the battery 104. The other terminal of the filter capacitor 106 is connected to ground (GND). The negative terminal of the battery 104 is connected to ground (GND).

[0070] The gate of MOSFET 102 is connected to the fourth terminal of comparator U in the switch control circuit 105. The first terminal of comparator U is used to receive the turn-on voltage provided by power supply module 1054. The second terminal of comparator U is connected to ground GND. The third terminal of comparator U is connected to power supply module 1054 through control module 1051. Control module 1051 is also connected to communication interface module 1053.

[0071] The control module 1051 calculates the target state duration percentage of the MOSFET 102 within one charge / discharge cycle of the filter capacitor 106 based on the maximum charging current of the battery 104 connected to it, the capacitance of the filter capacitor 106, the voltage at the second terminal of the power supply circuit 101, and the voltage of the battery 104. The target state duration percentage includes either the on-time percentage or the off-time percentage. The comparator U transmits an on / off control signal to the MOSFET based on the target state duration percentage and the charge / discharge cycle duration. The signal period of the on / off control signal is the charge / discharge cycle, and the high-level duty cycle of the on / off control signal is equal to the on-time percentage. The MOSFET switches between on and off states in each charge / discharge cycle of the filter capacitor according to the received on / off control signal, ensuring that the discharge current output by the filter capacitor to the battery does not exceed the maximum charging current value.

[0072] In summary, the battery charging circuit provided in this application includes at least one charging circuit. The charging circuit includes a power supply circuit, a MOSFET, a switch control circuit, and a filter capacitor. The first terminal of the power supply circuit is connected to an external power source, the second terminal of the power supply circuit is connected to the drain of the MOSFET, the source of the MOSFET is connected to one terminal of the filter capacitor, one terminal of the filter capacitor is also connected to the battery, the other terminal of the filter capacitor is connected to ground, and the gate of the MOSFET is connected to the switch control circuit. The switch control circuit controls the MOSFET to turn on or off within one charge / discharge cycle of the filter capacitor based on the battery's maximum charging current, the capacitance of the filter capacitor, the voltage at the second terminal of the power supply circuit, and the battery voltage.

[0073] The output current of the filter capacitor is determined by its capacitance, the voltage at the second terminal of the power supply circuit, the battery voltage, and the discharge duration of the filter capacitor within a charge / discharge cycle. The discharge duration of the filter capacitor within a charge / discharge cycle is determined by the off-duration of the MOSFET within the same cycle. Therefore, by controlling the MOSFET's on / off state based on the battery's maximum charging current, the filter capacitor's capacitance, the voltage at the second terminal of the power supply circuit, and the battery voltage, the on / off duration of the MOSFET within a charge / discharge cycle of the filter capacitor can be controlled. This, in turn, controls the charging and discharging duration of the filter capacitor within a charge / discharge cycle, ensuring that the discharge current output by the filter capacitor to the battery does not exceed the maximum charging current.

[0074] In this battery charging circuit, the switching control circuit utilizes a MOSFET to switch between on and off states to ensure that the filter capacitor outputs a charging current to the battery that does not exceed the maximum charging current value. Furthermore, the impedance of the MOSFET is lower in both the off and on states than in the semi-on state. Therefore, compared to related technologies, the MOSFET generates less heat and operates at lower power during battery charging circuit operation. This, in turn, reduces the overall power consumption of the battery charging circuit, decreases the charging power consumption at the terminal where the battery charging circuit is located, and improves the charging speed.

[0075] Please refer to Figure 5 The diagram illustrates a flowchart of a charging control method provided in an embodiment of this application. This charging control method can be applied to the battery charging circuit provided in the embodiments of this application. For example, the charging control method can be executed by a switch control circuit in the battery charging circuit provided in the embodiments of this application. Figure 5 As shown, the method includes:

[0076] Step 501: Obtain the maximum charging current value of the battery.

[0077] Optionally, the switch control circuit can obtain the maximum charging current value of the battery it stores through the controller.

[0078] Step 502: Based on the maximum charging current of the battery, the capacitance of the filter capacitor, the voltage at the second terminal of the power supply circuit, and the voltage of the battery, control the MOSFET to turn on or off within one charging and discharging cycle of the filter capacitor.

[0079] Optionally, the process of controlling the MOSFET to turn on or off within one charge / discharge cycle of the filter capacitor, based on the battery's maximum charging current, the filter capacitor's capacitance, the voltage at the second terminal of the power supply circuit, and the battery's voltage, may include: calculating the target state duration percentage of the MOSFET within one charge / discharge cycle of the filter capacitor, based on the maximum charging current, capacitance, voltage at the second terminal of the power supply circuit, and battery voltage. This target state duration percentage includes either a turn-on duration percentage or a turn-off duration percentage. Based on the target state duration percentage and the duration of the filter capacitor's charge / discharge cycle, a turn-on control signal or a turn-off control signal is periodically transmitted to the MOSFET's gate. The duration of one transmission cycle is equal to the duration of the charge / discharge cycle, and the proportion of the turn-on control signal's transmission duration within one transmission cycle is equal to the proportion of the turn-on duration.

[0080] In some embodiments of this application, a turn-on control signal and a turn-off control signal constitute a turn-on control signal. The process of periodically transmitting a turn-on control signal or a turn-off control signal to the gate of a MOSFET based on the target state duration ratio and the charge / discharge cycle duration of the filter capacitor may include: transmitting a turn-on control signal to the MOSFET based on the target state duration ratio and the charge / discharge cycle duration, wherein the signal period of the turn-on control signal is the charge / discharge cycle, and the high-level duty cycle of the turn-on control signal is equal to the proportion of the turn-on duration.

[0081] Optionally, when the power supply circuit includes a first power supply circuit and a second power supply circuit, before controlling the MOSFET to turn on or off within one charge / discharge cycle of the filter capacitor based on the maximum charging current value, the capacitance value of the filter capacitor, the voltage value at the second terminal of the power supply circuit, and the voltage value of the battery, the method further includes:

[0082] When the first power supply circuit is operating, the maximum charging current value of the battery corresponding to the first power supply circuit is acquired. When the second power supply circuit is operating, the maximum charging current value of the battery corresponding to the second power supply circuit is acquired. The maximum charging current value corresponding to the first power supply circuit is different from the maximum charging current value corresponding to the second power supply circuit.

[0083] It should be noted that the specific explanations and implementation methods of each step in the embodiments of this application can be referred to the explanations of the functions of each part in the aforementioned circuit charging circuit structure, and the embodiments of this application will not elaborate on this.

[0084] In this embodiment, the battery charging circuit includes at least one charging circuit. The charging circuit includes a power supply circuit, a MOSFET, a switch control circuit, and a filter capacitor. A first terminal of the power supply circuit is connected to an external power source, a second terminal of the power supply circuit is connected to the drain of the MOSFET, the source of the MOSFET is connected to one terminal of the filter capacitor, one terminal of the filter capacitor is also connected to the battery, the other terminal of the filter capacitor is connected to ground, and the gate of the MOSFET is connected to the switch control circuit. The switch control circuit controls the MOSFET to turn on or off within one charge / discharge cycle of the filter capacitor based on the battery's maximum charging current, the capacitance of the filter capacitor, the voltage at the second terminal of the power supply circuit, and the battery voltage.

[0085] The output current of the filter capacitor is determined by its capacitance, the voltage at the second terminal of the power supply circuit, the battery voltage, and the discharge duration of the filter capacitor within a charge / discharge cycle. The discharge duration of the filter capacitor within a charge / discharge cycle is determined by the off-duration of the MOSFET within the same cycle. Therefore, by controlling the MOSFET's on / off state based on the battery's maximum charging current, the filter capacitor's capacitance, the voltage at the second terminal of the power supply circuit, and the battery voltage, the on / off duration of the MOSFET within a charge / discharge cycle of the filter capacitor can be controlled. This, in turn, controls the charging and discharging duration of the filter capacitor within a charge / discharge cycle, ensuring that the discharge current output by the filter capacitor to the battery does not exceed the maximum charging current.

[0086] In this battery charging circuit, the switching control circuit utilizes a MOSFET to switch between on and off states to ensure that the filter capacitor outputs a charging current to the battery that does not exceed the maximum charging current value. Furthermore, the impedance of the MOSFET is lower in both the off and on states than in the semi-on state. Therefore, compared to related technologies, the MOSFET generates less heat and operates at lower power during battery charging circuit operation. This, in turn, reduces the overall power consumption of the battery charging circuit, decreases the charging power consumption at the terminal where the battery charging circuit is located, and improves the charging speed.

[0087] Optionally, such as Figure 6 As shown in the illustration, this application also provides an electronic device 600, including a battery charging circuit, a processor 601, and a memory 602 as provided in this application embodiment. The memory 602 stores a program or instructions that can run on the processor 601. When the processor 601 executes the program or instructions, it implements the various steps of the above-described charging control method embodiment and achieves the same technical effect; therefore, to avoid repetition, it will not be described again here. For example, when the processor 601 executes the program or instructions, it can control a switch control circuit to implement the various steps of the above-described charging control method embodiment.

[0088] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.

[0089] Optionally, the electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television set (TV), ATM, or self-service machine, etc. This application does not specifically limit the scope of the electronic device.

[0090] The electronic device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit the specific operating system used.

[0091] Figure 7 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of this application. The electronic device 700 includes, but is not limited to, the following components provided in the embodiments of this application: a battery charging circuit, a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 705, a memory 706, and a processor 710.

[0092] Those skilled in the art will understand that the electronic device 700 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 710 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 7 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.

[0093] The battery charging circuit includes a switch control circuit used to acquire the maximum charging current value of the battery. It is also used to control the MOSFET to turn on or off within one charge / discharge cycle of the filter capacitor based on the maximum charging current value of the battery, the capacitance value of the filter capacitor, the voltage value at the second terminal of the power supply circuit, and the voltage value of the battery, so that the discharge current value output by the filter capacitor to the battery does not exceed the maximum charging current value.

[0094] In this embodiment, the output current of the filter capacitor is determined by its capacitance, the voltage at the second terminal of the power supply circuit, the battery voltage, and the discharge duration of the filter capacitor within one charge / discharge cycle. The discharge duration of the filter capacitor within one charge / discharge cycle is determined by the off-duty duration of the MOSFET within one charge / discharge cycle. Therefore, by controlling the MOSFET's on / off state based on the battery's maximum charging current, the filter capacitor's capacitance, the voltage at the second terminal of the power supply circuit, and the battery voltage, the on / off duration of the MOSFET within one charge / discharge cycle of the filter capacitor can be controlled. This, in turn, controls the charging and discharging duration of the filter capacitor within one charge / discharge cycle, ensuring that the discharge current output by the filter capacitor to the battery does not exceed the maximum charging current.

[0095] In this battery charging circuit, the switching control circuit utilizes a MOSFET to switch between on and off states to ensure that the filter capacitor outputs a charging current to the battery that does not exceed the maximum charging current value. Furthermore, the impedance of the MOSFET is lower in both the off and on states than in the semi-on state. Therefore, compared to related technologies, the MOSFET generates less heat and operates at lower power during battery charging circuit operation. This, in turn, reduces the overall power consumption of the battery charging circuit, decreases the charging power consumption at the terminal where the battery charging circuit is located, and improves the charging speed.

[0096] Optionally, the switch control circuit is further configured to calculate, based on the maximum charging current value, the capacitance value, the voltage value at the second terminal of the power supply circuit, and the voltage value of the battery, the target state duration percentage of the MOS transistor within one charge-discharge cycle of the filter capacitor, wherein the target state duration percentage includes a conduction duration percentage or a turn-off duration percentage; and is further configured to periodically transmit a conduction control signal or a turn-off control signal to the gate of the MOS transistor based on the target state duration percentage and the charge-discharge cycle duration of the filter capacitor, wherein the duration of one transmission cycle is equal to the duration of the charge-discharge cycle, and the proportion of the transmission duration of the conduction control signal within one transmission cycle is equal to the proportion of the conduction duration.

[0097] Optionally, the switch control circuit is further configured to transmit an on / off control signal to the MOS transistor according to the target state duration ratio and the charge / discharge cycle duration, wherein the signal period of the on / off control signal is the charge / discharge cycle, and the high-level duty cycle of the on / off control signal is equal to the conduction duration ratio.

[0098] Optionally, when the power supply circuit includes a first power supply circuit and a second power supply circuit, the switch control circuit is further configured to acquire the maximum charging current value of the battery corresponding to the first power supply circuit when the first power supply circuit is working, and acquire the maximum charging current value of the battery corresponding to the second power supply circuit when the second power supply circuit is working, wherein the maximum charging current value corresponding to the first power supply circuit is different from the maximum charging current value corresponding to the second power supply circuit.

[0099] In this embodiment, the battery charging circuit includes at least one charging circuit. The charging circuit includes a power supply circuit, a MOSFET, a switch control circuit, and a filter capacitor. A first terminal of the power supply circuit is connected to an external power source, a second terminal of the power supply circuit is connected to the drain of the MOSFET, the source of the MOSFET is connected to one terminal of the filter capacitor, one terminal of the filter capacitor is also connected to the battery, the other terminal of the filter capacitor is connected to ground, and the gate of the MOSFET is connected to the switch control circuit. The switch control circuit controls the MOSFET to turn on or off within one charge / discharge cycle of the filter capacitor based on the battery's maximum charging current, the capacitance of the filter capacitor, the voltage at the second terminal of the power supply circuit, and the battery voltage.

[0100] The output current of the filter capacitor is determined by its capacitance, the voltage at the second terminal of the power supply circuit, the battery voltage, and the discharge duration of the filter capacitor within a charge / discharge cycle. The discharge duration of the filter capacitor within a charge / discharge cycle is determined by the off-duration of the MOSFET within the same cycle. Therefore, by controlling the MOSFET's on / off state based on the battery's maximum charging current, the filter capacitor's capacitance, the voltage at the second terminal of the power supply circuit, and the battery voltage, the on / off duration of the MOSFET within a charge / discharge cycle of the filter capacitor can be controlled. This, in turn, controls the charging and discharging duration of the filter capacitor within a charge / discharge cycle, ensuring that the discharge current output by the filter capacitor to the battery does not exceed the maximum charging current.

[0101] In this battery charging circuit, the switching control circuit utilizes a MOSFET to switch between on and off states to ensure that the filter capacitor outputs a charging current to the battery that does not exceed the maximum charging current value. Furthermore, the impedance of the MOSFET is lower in both the off and on states than in the semi-on state. Therefore, compared to related technologies, the MOSFET generates less heat and operates at lower power during battery charging circuit operation. This, in turn, reduces the overall power consumption of the battery charging circuit, decreases the charging power consumption at the terminal where the battery charging circuit is located, and improves the charging speed.

[0102] It should be understood that, in this embodiment, the input unit 704 may include a graphics processing unit (GPU) 7041 and a microphone 7042. The GPU 7041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 706 may include a display panel 7061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 707 includes at least one of a touch panel 7071 and other input devices 7072. The touch panel 7071 is also called a touch screen. The touch panel 7071 may include a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.

[0103] The memory 706 can be used to store software programs and various data. The memory 706 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 706 may include volatile memory or non-volatile memory, or the memory 709 may include both volatile and non-volatile memory. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 706 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.

[0104] Processor 710 may include one or more processing units; optionally, processor 710 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 710.

[0105] This application also provides a readable storage medium storing a program or instructions. When executed by a processor, the program or instructions implement the various processes of the above-described charging control method embodiments and achieve the same technical effects. To avoid repetition, these will not be described again here. For example, when the program or instructions are executed by a processor, they can control a switch control circuit to implement the various processes of the above-described charging control method embodiments.

[0106] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0107] This application also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described charging control method embodiments and achieve the same technical effects. To avoid repetition, it will not be described again here. For example, the processor can be used to control a switch control circuit to implement the various processes of the above-described charging control method embodiments.

[0108] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0109] This application provides a computer program product stored in a storage medium. The program product is executed by at least one processor to implement the various processes described in the charging control method embodiments above, achieving the same technical effects. To avoid repetition, further details are omitted here. For example, the program product is executed by at least one processor to control a switch control circuit to implement the various processes described in the charging control method embodiments above.

[0110] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0111] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0112] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A battery charging circuit, characterized in that, include: At least one charging circuit, one of which is used to charge a battery; The charging circuit includes: a power supply circuit, a MOSFET, a switch control circuit, and a filter capacitor. The first terminal of the power supply circuit is connected to an external power source, the second terminal of the power supply circuit is connected to the drain of the MOSFET, the source of the MOSFET is connected to one terminal of the filter capacitor, one terminal of the filter capacitor is also connected to the battery, the other terminal of the filter capacitor is connected to the ground terminal, and the gate of the MOSFET is connected to the switch control circuit. The switch control circuit is used to control the MOS transistor to be turned on or off within one charge / discharge cycle of the filter capacitor based on the maximum charging current value of the battery, the capacitance value of the filter capacitor, the voltage value of the second terminal of the power supply circuit, and the voltage value of the battery, so that the discharge current value output by the filter capacitor to the battery does not exceed the maximum charging current value. The switch control circuit includes a control module and a signal selection module, wherein the control module is connected to the gate of the MOS transistor through the signal selection module; The control module is used to calculate the percentage of the target state duration of the MOS transistor in one charge-discharge cycle of the filter capacitor based on the maximum charging current value, the capacitance value, the voltage value at the second terminal of the power supply circuit, and the voltage value of the battery. The percentage of the target state duration includes the percentage of the on-time or the percentage of the off-time. The signal selection module is used to periodically transmit a turn-on control signal or a turn-off control signal to the gate of the MOS transistor according to the proportion of the target state duration and the charging and discharging cycle duration of the filter capacitor. The duration of one transmission cycle is equal to the duration of the charging and discharging cycle, and the proportion of the transmission duration of the turn-on control signal within one transmission cycle is equal to the proportion of the turn-on duration.

2. The battery charging circuit according to claim 1, characterized in that, The signal selection module includes: a comparator, the first terminal of which is used to receive the turn-on voltage of the MOS transistor, the second terminal of which is connected to the ground terminal, the third terminal of which is connected to the control module, and the fourth terminal of which is connected to the gate of the MOS transistor; The comparator is used to transmit an on / off control signal to the MOS transistor according to the target state duration ratio and the charge / discharge cycle duration. The signal period of the on / off control signal is the charge / discharge cycle, and the high-level duty cycle of the on / off control signal is equal to the conduction duration ratio.

3. The battery charging circuit according to claim 1, characterized in that, The power supply circuit includes: a first power supply circuit and a second power supply circuit, wherein the first power supply circuit and the second power supply circuit are connected in parallel; The switch control circuit is further configured to acquire the maximum charging current value of the battery corresponding to the first power supply circuit when the first power supply circuit is working, and to acquire the maximum charging current value of the battery corresponding to the second power supply circuit when the second power supply circuit is working, wherein the maximum charging current value corresponding to the first power supply circuit is different from the maximum charging current value corresponding to the second power supply circuit.

4. The battery charging circuit according to claim 1, characterized in that, The switch control circuit further includes a communication interface module and a power supply module. The first end of the communication interface module is connected to the control module, and the second end of the communication interface module is used to receive the maximum charging current value. The power supply module is connected to the signal selection module through the control module. The communication interface module is used to transmit the received maximum charging current value to the control module; The power supply module is used to enable the signal selection module to generate the conduction control signal.

5. The battery charging circuit according to claim 1, characterized in that, When there are multiple charging circuits, the multiple charging circuits are connected in parallel.

6. A charging control method, characterized in that, The method, applied to the switch control circuit in the battery charging circuit according to any one of claims 1 to 5, comprises: Obtain the maximum charging current value of the battery; Based on the maximum charging current value, the capacitance value of the filter capacitor, the voltage value at the second terminal of the power supply circuit, and the voltage value of the battery, the MOS transistor is controlled to be turned on or off within one charging and discharging cycle of the filter capacitor. The step of controlling the MOSFET to turn on or off within one charge / discharge cycle of the filter capacitor based on the maximum charging current value, the capacitance value of the filter capacitor, the voltage value at the second terminal of the power supply circuit, and the voltage value of the battery includes: Based on the maximum charging current value, the capacitance value, the voltage value at the second terminal of the power supply circuit, and the voltage value of the battery, calculate the percentage of the target state duration of the MOS transistor within one charge-discharge cycle of the filter capacitor. The percentage of the target state duration includes the percentage of the on-time or the percentage of the off-time. Based on the target state duration ratio and the charge / discharge cycle duration of the filter capacitor, a turn-on control signal or a turn-off control signal is periodically transmitted to the gate of the MOS transistor. The duration of one transmission cycle is equal to the duration of the charge / discharge cycle, and the proportion of the transmission duration of the turn-on control signal within one transmission cycle is equal to the proportion of the turn-on duration.

7. The method according to claim 6, characterized in that, The turn-on control signal and the turn-off control signal constitute the turn-on control signal; the step of periodically transmitting the turn-on control signal or the turn-off control signal to the gate of the MOS transistor according to the target state duration ratio and the charging and discharging cycle duration of the filter capacitor includes: Based on the target state duration ratio and the charge / discharge cycle duration, an on / off control signal is transmitted to the MOS transistor. The signal period of the on / off control signal is the charge / discharge cycle, and the high-level duty cycle of the on / off control signal is equal to the conduction duration ratio.

8. The method according to any one of claims 6 to 7, characterized in that, When the power supply circuit includes a first power supply circuit and a second power supply circuit, before controlling the MOSFET to turn on or off within one charge / discharge cycle of the filter capacitor based on the maximum charging current value, the capacitance value of the filter capacitor, the voltage value at the second terminal of the power supply circuit, and the voltage value of the battery, the method further includes: When the first power supply circuit is working, the maximum charging current value of the battery corresponding to the first power supply circuit is obtained. When the second power supply circuit is working, the maximum charging current value of the battery corresponding to the second power supply circuit is obtained. The maximum charging current value corresponding to the first power supply circuit is different from the maximum charging current value corresponding to the second power supply circuit.

9. An electronic device, characterized in that, include: The battery charging circuit, processor, and memory according to any one of claims 1 to 5, wherein the memory stores a program or instructions executable on the processor, the program or instructions, when executed by the processor, implement the steps of the charging control method according to any one of claims 6 to 7.

10. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the charging control method as described in any one of claims 6 to 7.