Charging method, charging circuit and electronic equipment
By using impedance modules in electronic devices to adjust the impedance size and charging in stages, the battery charging unbalanced caused by impedance differences is solved, and the charging efficiency and actual capacity are improved.
Patent Information
- Application Number
- CN202311101503.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-29
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2043-08-29
AI Technical Summary
In an electronic device, since the impedance between the first battery and the charging chip is greater than the impedance between the second battery and the charging chip, when the charging chip stops outputting electrical energy when the second battery is fully charged, the first battery is not fully charged, resulting in a voltage difference. , affects the actual capacity when full.
A charging method is adopted to adjust the impedance size through the impedance module, which is divided into the first charging stage and the second charging stage. In the first stage, it is charged with the minimum impedance, and in the second stage, the impedance is adjusted according to the battery voltage difference value to make the voltage difference value Stay within the preset range to ensure that both batteries are charged equally.
It effectively improves the actual capacity of multiple battery electronic devices when full charge, reduces the battery voltage difference, and improves charging efficiency and safety.
Smart Images

Figure CN117375139B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic products, and in particular to a charging method, a charging circuit and an electronic device. Background Art
[0002] An electronic device such as a mobile phone, a tablet computer, a laptop computer, etc. may include two batteries, which may be referred to as a first battery and a second battery. The electronic device also includes a charging chip. When the electronic device is charged, the charger may charge the first battery and the second battery through the charging chip. When the first battery and the second battery are both fully charged, the voltage of the first battery is equal to the voltage of the second battery.
[0003] In the related art, the length of the wire connecting the first battery and the charging chip is usually different from the length of the wire connecting the second battery and the charging chip, which results in the impedance between the first battery and the charging chip being different from the impedance between the second battery and the charging chip. For example, the impedance between the first battery and the charging chip may be greater than the impedance between the second battery and the charging chip.
[0004] However, the impedance between the first battery and the charging chip is greater than the impedance between the second battery and the charging chip, which will result in the first battery not being fully charged when the second battery is fully charged and the charging chip stops outputting power to the first battery and the second battery. As a result, the voltage of the first battery is lower than the voltage of the second battery and the difference is large, which will affect the actual capacity of the electronic device when it is fully charged. Summary of the invention
[0005] The present application provides a charging method, a charging circuit and an electronic device, which can improve the actual capacity of an electronic device with multiple batteries when fully charged. The technical solution is as follows:
[0006] In a first aspect, a charging method is provided, which is applied to a processing module in an electronic device.
[0007] The electronic device includes a processing module, an impedance module, a first battery, a second battery and a charging chip. Among them, the first end of the impedance module is connected to the first battery, the second end of the impedance module is connected to the second battery and the output end of the charging chip, and the input end of the charging chip is used to connect to the charger. In this way, when the electronic device is charged, the charging chip can output electric energy to the second battery, and can also output electric energy to the first battery through the impedance module. The first detection end of the processing module is connected to the first battery to detect the voltage of the first battery. The second detection end of the processing module is connected to the second battery to detect the voltage of the second battery. The output end of the processing module is connected to the control end of the impedance module to adjust the impedance size of the impedance module. Here, the processing module uses the charging method of the present application to adjust the impedance size of the impedance module, and the method is described below.
[0008] The method comprises: in a first charging stage, the processing module controls the impedance of the impedance module to be a minimum value; in a second charging stage, the processing module adjusts the impedance of the impedance module according to the voltage difference between the voltage of the first battery and the voltage of the second battery, so that the voltage difference is within a preset voltage range. The second charging stage is located after the first charging stage.
[0009] In the present application, the charging stage of the electronic device is divided into a first charging stage and a second charging stage. In the first charging stage, the processing module can control the impedance of the impedance module to be a minimum value, thereby ensuring the charging speed of the first battery and the second battery. In the second charging stage, the processing module can adjust the impedance of the impedance module according to the voltage difference between the voltage of the first battery and the voltage of the second battery, so that the voltage difference remains within a preset voltage range. In this way, when the electronic device is fully charged, the voltage difference between the two batteries will be within the preset voltage range, that is, the voltage difference between the two batteries is small, so that the actual capacity of the electronic device with multiple batteries when fully charged can be increased.
[0010] The method is described in detail below.
[0011] In some embodiments, the method further includes: if it is detected that the charging current value of the first battery is less than the first current value, or / and if it is detected that the charging current value of the second battery is less than the second current value, the processing module determines that the electronic device is in the second charging stage.
[0012] In other embodiments, the electronic device includes multiple charging stages when charging, such as a constant current charging stage, a constant voltage charging stage, and a voltage reduction charging stage which is the last in chronological order. In this embodiment, the second charging stage may be a voltage reduction charging stage.
[0013] In some embodiments, the method further includes: when switching from the first charging stage to the second charging stage, the processing module adjusts the impedance of the impedance module to an intermediate value between the maximum value and the minimum value.
[0014] Based on this, the process of adjusting the impedance of the impedance module according to the voltage difference by the processing module in the second charging stage is described in three cases below.
[0015] The first case: the impedance of the impedance module needs to be reduced in the second charging stage. In this case, in the second charging stage, the processing module adjusts the impedance of the impedance module according to the voltage difference between the voltage of the first battery and the voltage of the second battery. Specifically, the step may include: in the second charging stage, the processing module periodically determines whether the voltage difference is within a preset voltage range; if the voltage difference is not within the preset voltage range and the voltage of the first battery is less than the voltage of the second battery, the processing module reduces the impedance of the impedance module.
[0016] Specifically, if the voltage difference is not within the preset voltage range, and the voltage of the first battery is less than the voltage of the second battery, the processing module reduces the impedance of the impedance module. This step specifically includes: if the voltage difference is not within the preset voltage range, and the voltage of the first battery is less than the voltage of the second battery, and the charging current value of the first battery is greater than the first current threshold, and the charging current value of the second battery is greater than the second current threshold, the processing module reduces the impedance of the impedance module.
[0017] Optionally, the method also includes: when the voltage difference is not within a preset voltage range and the voltage of the first battery is less than the voltage of the second battery, if the charging current value of the first battery is less than or equal to a first current threshold, or / and, if the charging current value of the second battery is less than or equal to a second current threshold, the processing module keeps the impedance of the impedance module unchanged.
[0018] The second situation: the impedance of the impedance module needs to be increased in the second charging stage. In this case, in the second charging stage, the processing module adjusts the impedance of the impedance module according to the voltage difference between the voltage of the first battery and the voltage of the second battery. Specifically, the step may include: in the second charging stage, the processing module periodically determines whether the voltage difference is within a preset voltage range; if the voltage difference is not within the preset voltage range and the voltage of the first battery is greater than the voltage of the second battery, the processing module increases the impedance of the impedance module.
[0019] Specifically, if the voltage difference is not within the preset voltage range, and the voltage of the first battery is greater than the voltage of the second battery, the processing module increases the impedance of the impedance module. This step specifically includes: if the voltage difference is not within the preset voltage range, and the voltage of the first battery is greater than the voltage of the second battery, and the charging current value of the first battery is greater than the first current threshold, and the charging current value of the second battery is greater than the second current threshold, the processing module increases the impedance of the impedance module.
[0020] Optionally, the method also includes: when the voltage difference is not within a preset voltage range and the voltage of the first battery is greater than the voltage of the second battery, if the charging current value of the first battery is less than or equal to a first current threshold, or / and, if the charging current value of the second battery is less than or equal to a second current threshold, the processing module keeps the impedance of the impedance module unchanged.
[0021] The third case: the impedance of the impedance module needs to be kept unchanged in the second charging stage. In this case, in the second charging stage, the processing module adjusts the impedance of the impedance module according to the voltage difference between the voltage of the first battery and the voltage of the second battery. Specifically, the processing module periodically determines whether the voltage difference is within a preset voltage range in the second charging stage; if the voltage difference is within the preset voltage range, the processing module keeps the impedance of the impedance module unchanged.
[0022] As an optional implementation, the impedance module includes a first transistor and a second transistor. The first end of the first transistor is connected to the first battery. The second end of the first transistor is connected to the second end of the second transistor. The first end of the second transistor is connected to the second battery. The first transistor and the second transistor are both P-type transistors. In this way, the processing module can reduce the impedance of the impedance module by reducing the voltage of the control end of the first transistor and the control end of the second transistor. The processing module can also increase the impedance of the impedance module by increasing the voltage of the control end of the first transistor and the control end of the second transistor. Alternatively, the processing module controls the voltage of the control end of the first transistor and the control end of the second transistor to remain unchanged to keep the impedance of the impedance module unchanged.
[0023] In the second aspect, a charging circuit is also provided, including an impedance module, a first battery, a second battery, a charging chip and a processing module. The first end of the impedance module is connected to the first battery, the second end of the impedance module is connected to the second battery and the output end of the charging chip, and the input end of the charging chip is used to connect to the charger. In this way, when the electronic device is charged, the charging chip can output electrical energy to the second battery, and can also output electrical energy to the first battery through the impedance module. The first detection end of the processing module is connected to the first battery to detect the voltage of the first battery. The second detection end of the processing module is connected to the second battery to detect the voltage of the second battery. The output end of the processing module is connected to the control end of the impedance module to adjust the impedance of the impedance module. When the processing module is working, it executes any method as in the first aspect.
[0024] In some embodiments, the impedance module includes a first transistor and a second transistor. The first end of the first transistor is connected to the first battery. The second end of the first transistor is connected to the second end of the second transistor. The first end of the second transistor is connected to the second battery. The first transistor and the second transistor are both P-type transistors. The output end of the processing module is connected to the control end of the first transistor and the control end of the second transistor. The processing module is used to adjust the voltage of the control end of the first transistor and the control end of the second transistor to adjust the impedance size of the impedance module.
[0025] In some embodiments, the impedance module further includes: a first resistor, a third transistor, a first capacitor, a second resistor, a second capacitor, and a third resistor.
[0026] The first end of the first resistor is connected to the second end of the first transistor and the first end of the second transistor. The second end of the first resistor is connected to the first end of the third transistor. The second end of the third transistor is connected to the ground line. The first plate of the first capacitor is connected to the first end of the third transistor, and the second plate of the first capacitor is connected to the second end of the third transistor. The first end of the second resistor is connected to the output end of the processing module, and the second end of the second resistor is connected to the control end of the third transistor. The first plate of the second capacitor is connected to the control end of the third transistor, and the second plate of the second capacitor is connected to the second end of the third transistor. The first end of the third resistor is connected to the control end of the third transistor, and the second end of the third resistor is connected to the second end of the third transistor.
[0027] In a third aspect, an electronic device is also provided, comprising a charging circuit as described in any one of the second aspects.
[0028] The technical effects obtained by the above-mentioned second and third aspects are similar to the technical effects obtained by the corresponding technical means in the above-mentioned first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 is a schematic diagram of the appearance of a first electronic device provided in an embodiment of the present application;
[0030] Figure 2 is a schematic diagram of the appearance of a second electronic device provided in an embodiment of the present application;
[0031] Figure 3 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application;
[0032] Figure 4 is a schematic diagram of the appearance of an electronic device along a first direction in the related art;
[0033] Figure 5 is a schematic diagram of the appearance of an electronic device along a second direction in the related art;
[0034] Figure 6 It is a schematic diagram of the structure of an electronic device in the related art;
[0035] Figure 7 is a structural schematic diagram of a first charging circuit provided in an embodiment of the present application;
[0036] Figure 8 is a structural schematic diagram of a second charging circuit provided in an embodiment of the present application;
[0037] Fig. 9 is a charging curve diagram of an electronic device provided in an embodiment of the present application;
[0038] Fig.10 is a structural schematic diagram of a third charging circuit provided in an embodiment of the present application;
[0039] Fig.11 is a circuit structure diagram of a first charging circuit provided in an embodiment of the present application;
[0040] Fig.12 is a waveform diagram of a PWM signal provided in an embodiment of the present application;
[0041] Fig.13 is a waveform diagram of an output signal of a filtering unit provided in an embodiment of the present application;
[0042] Fig.14 is a circuit structure diagram of a second charging circuit provided in an embodiment of the present application;
[0043] Fig.15 is a flow chart of a first charging method provided in an embodiment of the present application;
[0044] Fig.16 is a structural schematic diagram of a fourth charging circuit provided in an embodiment of the present application;
[0045] Fig.17 is a flow chart of a second charging method provided in an embodiment of the present application;
[0046] Fig.18 is a flow chart of a third charging method provided in an embodiment of the present application;
[0047] Fig.19 It is a structural schematic diagram of the fifth charging circuit provided in an embodiment of the present application. DETAILED DESCRIPTION
[0048] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.
[0049] It should be understood that the "multiple" mentioned in this application refers to two or more. In the description of this application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in order to facilitate the clear description of the technical solution of this application, the words "first" and "second" are used to distinguish between the same items or similar items with basically the same functions and effects. Those skilled in the art can understand that the words "first" and "second" do not limit the quantity and execution order, and the words "first" and "second" do not limit them to be different.
[0050] Before explaining the charging method provided in the embodiment of the present application in detail, the application scenario of the charging method is first explained.
[0051] The electronic device 10 includes a mobile phone, a tablet computer, a laptop computer, etc. Figure 1 and Figure 2 1 is a schematic diagram of the appearance of two different electronic devices 10 provided in the embodiments of the present application. Figure 1 The electronic device 10 shown in the figure is a mobile phone. Figure 2 The electronic device 10 shown in FIG. 1 is a tablet computer.
[0052] Figure 3 1 is a schematic diagram of the structure of an electronic device 10 provided in an embodiment of the present application. Figure 3 As shown, the electronic device 10 may include a processing unit 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging chip 140, a power management module 141, a battery 142, a fuel gauge 143, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a SIM card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint recognition device 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0053] The processing unit 110 may include one or more processing units, for example, the processing unit 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated into one or more processors. In some embodiments, the processing unit 110 may be a system on chip (SOC) in the electronic device 10. In other embodiments, the processing unit 110 may also be other devices with processing functions in the electronic device 10 that are independent of the SOC.
[0054] The controller may be the nerve center and command center of the electronic device 10. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0055] A memory may also be provided in the processing unit 110 for storing instructions and data. In some embodiments, the memory in the processing unit 110 is a cache memory. The memory may store instructions or data that the processing unit 110 has just used or circulated. If the processing unit 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processing unit 110, and thus improves the efficiency of the system.
[0056] In some embodiments, the processing unit 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0057] The wireless communication function of the electronic device 10 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, the baseband processor, and the like.
[0058] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Figure 3 The structures of antenna 1 and antenna 2 in the electronic device 10 are only examples. Each antenna in the electronic device 10 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0059] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 10. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be arranged in the processing unit 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be arranged in the same device as at least some of the modules of the processing unit 110.
[0060] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 10. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and filters it, and sends the processed signal to the processing unit 110. The wireless communication module 160 can also receive the signal to be sent from the processing unit 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0061] In some embodiments, the antenna 1 of the electronic device 10 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 10 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM and / or IR technology, etc. GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (QZSS) and / or satellite based augmentation system (SBAS).
[0062] The electronic device 10 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which is connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processing unit 110 may include one or more GPUs, which execute program instructions to generate or change display information.
[0063] The internal memory 121 can be used to store computer executable program codes, and the executable program codes include instructions. The processing unit 110 executes various functional applications and data processing of the electronic device 10 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area can store data created during the use of the electronic device 10 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0064] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 10 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The electronic device 10 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 10 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 10 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 10 and cannot be separated from the electronic device 10.
[0065] The charging chip 140 is connected to the battery 142. When the electronic device 10 is connected to the charger, the electric energy output by the charger needs to be input to the battery 142 through the charging chip 140. The charging chip 140 is used to adjust the charging voltage and charging current input to the battery 142.
[0066] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 10. In other embodiments of the present application, the electronic device 10 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0067] The relevant technologies of this application are described below.
[0068] With the rapid development of electronic devices, electronic devices such as foldable screen mobile phones may include two batteries. Taking the electronic device 10 as an example, a foldable screen mobile phone, Figure 4 is a schematic diagram of the appearance of an electronic device 10 along a first direction in the related art, Figure 5 1 is a schematic diagram of the appearance of an electronic device 10 along the second direction in the related art, and the first direction and the second direction are two opposite directions. Figure 4 and Figure 5 As shown, the electronic device 10 may include a first structure 12 and a second structure 14 connected by a hinge 16 .
[0069] Figure 6 1 is a schematic diagram of the structure of an electronic device 10 in the related art. Figure 6 As shown, for ease of description, the two batteries in the electronic device 10 are respectively referred to as a first battery 1422 and a second battery 1424. The first battery 1422 may be located in the first structural member 12, and the second battery 1424 may be located in the second structural member 14. The electronic device 10 further includes a charging chip 140, which may be located in the first structural member 12 or the second structural member 14. Figure 6 In the illustrated embodiment, the charging chip 140 is located in the second structural member 14. The first battery 1422 and the second battery 1424 need to be connected to the output end of the charging chip 140, so that when the electronic device 10 is charged, the electric energy output by the charger can be input to the first battery 1422 and the second battery 1424 through the charging chip 140.
[0070] Generally, when both the first battery 1422 and the second battery 1424 are fully charged, the voltage of the first battery 1422 is equal to the voltage of the second battery 1424. In the relevant description of the present application, a battery (including the first battery 1422 and the second battery 1424) is fully charged means that the voltage of the battery is equal to the rated voltage of the battery. Taking the first battery 1422 as an example, if the rated voltage of the first battery 1422 is 4.5V (volts), when the voltage of the first battery 1422 is 4.5V, it indicates that the first battery 1422 is fully charged, when the voltage of the first battery 1422 is less than 4.5V, it indicates that the first battery 1422 is not fully charged, and when the voltage of the first battery 1422 is greater than 4.5V, it indicates that the first battery 1422 is overcharged.
[0071] In the related art, the length of the wire connecting the first battery 1422 and the output terminal of the charging chip 140 is usually different from the length of the wire connecting the second battery 1424 and the output terminal of the charging chip 140, which results in the impedance between the first battery 1422 and the output terminal of the charging chip 140 being different from the impedance between the second battery 1424 and the output terminal of the charging chip 140. Figure 6Taking the embodiment shown as an example, when the first battery 1422 is located in the first structural member 12, the second battery 1424 and the charging chip 140 are located in the second structural member 14, the second battery 1424 can be directly connected to the output end of the charging chip 140, and the first battery 1422 needs to be connected to the output end of the charging chip 140 through a flexible printed circuit (FPC). Since the FPC needs to bypass the hinge 16 and extend from the first structural member 12 to the second structural member 14, the length is long and the impedance is large. In other words, the impedance between the first battery 1422 and the output end of the charging chip 140 is greater than the impedance between the second battery 1424 and the output end of the charging chip 140.
[0072] However, the impedance between the first battery 1422 and the charging chip 140 is greater than the impedance between the second battery 1424 and the charging chip 140, which will cause the current output by the charging chip 140 to the first battery 1422 to be less than the current output by the charging chip 140 to the second battery 1424, that is, the charging speed of the first battery 1422 is less than the charging speed of the second battery 1424. In addition, affected by the form of the folding screen mobile phone, the capacities of the first battery 1422 and the second battery 1424 may be different. For these reasons, the two batteries in the electronic device 10 cannot be fully charged at the same time. Taking the second battery 1424 as an example, when the second battery 1424 is fully charged, in order to prevent the second battery 1424 from overcharging, the charging chip 140 will stop outputting power to the first battery 1422 and the second battery 1424, thereby causing the first battery 1422 to be unable to be fully charged, resulting in the voltage of the first battery 1422 being less than the voltage of the second battery 1424 and the difference being large, which will affect the actual capacity of the electronic device 10 when fully charged. Here, the electronic device 10 is fully charged when the electronic device 10 includes multiple batteries, and one of the multiple batteries is fully charged first, so that the charging chip 140 stops outputting power to the multiple batteries. According to the actual detection of the electronic device 10, a folding screen mobile phone including two electronic devices 10, when the rated voltage of the two batteries is 4.5V, when the voltage of one of the batteries is charged to 4.5V, the voltage of the other battery is about 4.46V. In other words, the voltage of the battery that is not fully charged is 40mV (millivolts) different from the rated voltage, that is, the voltage difference with the fully charged battery is 40mV, and the actual capacity of the battery is reduced by about 1%.
[0073] To this end, the embodiments of the present application provide a charging method, a charging circuit, and an electronic device. The charging method is applied to an electronic device with multiple batteries, and can make the voltage difference between any two batteries of the electronic device within a preset voltage range when the electronic device is fully charged, even if the voltage difference between the two batteries is small, so that the actual capacity of the electronic device with multiple batteries when fully charged can be increased.
[0074] The electronic device has a charging circuit. The charging method provided in the embodiment of the present application is applied to a processing module in the charging circuit of the electronic device. The electrical structure of the charging circuit is first described below. In the embodiment of the present application, the connection between two electronic devices / electrical modules refers to an electrical connection. The electrical connection here refers to a connection through a wire so that electrical signals can be transmitted between the two electronic devices / electrical modules. The electrical connection between the two electronic devices / electrical modules can be a direct connection or an indirect connection through other electronic devices / electrical modules.
[0075] Figure 7 is a schematic diagram of a charging circuit provided in an embodiment of the present application. Figure 7 As shown, the charging circuit includes a processing module 11 , an impedance module 13 , a first battery 1422 , a second battery 1424 and a charging chip 140 .
[0076] The charging chip 140 has an input end (not shown in the figure) and an output end. The input end of the charging chip 140 is used to connect to the charger, and the output end of the charging chip 140 is used to connect to the first battery 1422 and the second battery 1424, so that when the electronic device is charged, the electric energy output by the charger can be input to the first battery 1422 and the second battery 1424 through the charging chip 140. In the embodiment of the present application, an impedance module 13 is also connected between the output end of the charging chip 140 and the first battery 1422.
[0077] The impedance module 13 is an electrical module with adjustable impedance. The impedance module 13 has a first end a, a second end b and a control end c. The first end a of the impedance module 13 is connected to the first battery 1422, and the second end b of the impedance module 13 is connected to the second battery 1424 and the output end of the charging chip 140. In this way, by adjusting the impedance of the impedance module 13, the impedance between the output end of the charging chip 140 and the first battery 1422 can be adjusted. In this case, the charging chip 140 needs to output electrical energy to the first battery 1422 through the impedance module 13. Therefore, by adjusting the impedance of the impedance module 13, the ratio of the charging current value of the first battery 1422 (i.e., the current value output by the charging chip 140 to the first battery 1422) and the charging current value of the second battery 1424 (i.e., the current value output by the charging chip 140 to the second battery 1424) can be adjusted, thereby adjusting the charging speed of the first battery 1422 and the second battery 1424.
[0078] The processing module 11 refers to a device with processing functions in an electronic device. The processing module 11 here can be a processing unit 110 in an electronic device, or it can be other devices with processing functions in an electronic device. The processing module 11 has a first detection terminal d, a second detection terminal e and a first output terminal f. The first detection terminal d of the processing module 11 is connected to the first battery 1422 to detect the voltage and charging current value of the first battery 1422. The second detection terminal e of the processing module 11 is connected to the second battery 1424 to detect the voltage and charging current value of the second battery 1424. The first output terminal f of the processing module 11 is connected to the control terminal c of the impedance module 13 so that the processing module 11 can adjust the impedance size of the impedance module 13.
[0079] In some embodiments, Figure 8 As shown, the processing module 11 also has a second output terminal g. The second output terminal g of the processing module 11 is connected to the charging chip 140 to control the operation of the charging chip 140. Generally, the charging chip 140 has a step-up and step-down conversion circuit for performing step-up or step-down conversion on electric energy. When the processing module 11 is working, the charging chip 140 can be controlled to work according to the detected voltage and charging current value of the first battery 1422 and the voltage and charging current value of the second battery 1424.
[0080] For example, in a specific embodiment, the processing module 11 can control the charging chip 140 to make the charging curve of the electronic device as follows: Fig. 9 As shown. Fig. 9 In the embodiment shown, curve ① is the output current curve of the charging chip 140, and curve ② is the output voltage curve of the charging chip 140. Fig. 9 As shown, the process of the charging chip 140 outputting electric energy is as follows: from the time when the electronic device is connected to the charger to the time T1, the output current of the charging chip 140 rises rapidly from 0 to I1, and the output voltage of the charging chip 140 increases. From the time T1 to the time T2, the charging chip 140 outputs constant current electricity. At this time, the electronic device is in the constant current charging stage, and the output voltage of the charging chip 140 gradually increases. From the time T2 to the time T3, the charging chip 140 outputs constant voltage electricity. At this time, the electronic device is in the constant voltage charging stage, and the output current of the charging chip 140 gradually decreases. At the time T3, the processing module 11 detects that the first battery 1422 and the second battery 1424 are about to be fully charged, and starts to control the output voltage of the charging chip 140 to decrease. At this time, the electronic device is in the step-down charging stage, and the output current of the charging chip 140 also decreases. At the time T4, the processing module 11 detects that at least one of the first battery 1422 and the second battery 1424 is fully charged, and the electronic device is fully charged. The processing module 11 controls the charging chip 140 to stop outputting electric energy, and the output current of the charging chip 140 decreases rapidly and drops to 0 at the time T5.
[0081] The constant current charging stage may include multiple constant current charging sub-stages, and the output current of the charging chip 140 in different constant current charging sub-stages may be different. Fig. 9 In the illustrated embodiment, the constant current charging stage is from time T1 to time T2, which includes a first constant current charging sub-stage, a second constant current charging sub-stage and a third constant current charging sub-stage. The first constant current charging sub-stage is from time T1 to time T01, and the output current of the charging chip 140 is I1. The second constant current charging sub-stage is from time T01 to time T02, and the output current of the charging chip 140 is I2. The third constant current charging sub-stage is from time T02 to time T2, and the output current of the charging chip 140 is I3. The constant voltage charging stage may also include multiple constant voltage charging sub-stages, which will not be described in detail. Fig. 9 In the illustrated embodiment, the actual capacity of the electronic device when fully charged is equal to the area of the shaded portion, that is, the area of the figure enclosed by the current curve and the abscissa, in units of mAh (milliampere-hour).
[0082] Fig.10 is a schematic diagram of the structure of another charging circuit provided in an embodiment of the present application. Fig.10 As shown, the impedance module 13 may include an impedance transformation unit 1302 , an impedance control unit 1304 and a filtering unit 1306 .
[0083] The filter unit 1306 has an input terminal and an output terminal. The input terminal of the filter unit 1306 is connected to the first output terminal f of the processing module 11. The output terminal of the filter unit 1306 is connected to the input terminal of the impedance control unit 1304. The output terminal of the impedance control unit 1304 is connected to the control terminal of the impedance transformation unit 1302.
[0084] The impedance transformation unit 1302 also has a first end and a second end. The first end of the impedance transformation unit 1302 is connected to the first battery 1422, and the second end of the impedance transformation unit 1302 is connected to the second battery 1424 and the output end of the charging chip 140. In this way, by adjusting the impedance of the impedance transformation unit 1302, the impedance between the output end of the charging chip 140 and the first battery 1422 can be adjusted.
[0085] Specifically, Fig.11 is a circuit structure diagram of a charging circuit provided in an embodiment of the present application. Fig.11 As shown, the impedance transformation unit 1302 includes a first transistor M1 and a second transistor M2; the impedance control unit 1304 includes a first resistor R1, a third transistor M3, a first capacitor C1 and a third resistor R3; the filtering unit 1306 includes a second resistor R2 and a second capacitor C2.
[0086] The first end of the first transistor M1 is connected to the first battery 1422. The second end of the first transistor M1 is connected to the second end of the second transistor M2. The first end of the second transistor M2 is connected to the second battery 1424 and the output end of the charging chip 140. In the embodiment of the present application, the first transistor M1 and the second transistor M2 may be P-type transistors, such as P-type metal oxide semiconductor field effect transistors (MOSFET).
[0087] The first end of the first resistor R1 is connected to the second end of the first transistor M1 and the first end of the second transistor M2. The second end of the first resistor R1 is connected to the first end of the third transistor M3. The second end of the third transistor M3 is connected to the ground line GND. The first capacitor C1 is a parasitic capacitor of the third transistor M3. The first plate of the first capacitor C1 is connected to the first end of the third transistor M3, and the second plate of the first capacitor C1 is connected to the second end of the third transistor M3. The first end of the third resistor R3 is connected to the control end of the third transistor M3, and the second end of the third resistor R3 is connected to the second end of the third transistor M3. In an embodiment of the present application, the third transistor M3 can be an N-type transistor, such as an N-type MOSFET. The third resistor R3 is a pull-down resistor of the third transistor M3.
[0088] The first end of the second resistor R2 is connected to the output end of the processing module 11, and the second end of the second resistor R2 is connected to the control end of the third transistor M3. The first plate of the second capacitor C2 is connected to the control end of the third transistor M3, and the second plate of the second capacitor C2 is connected to the second end of the third transistor M3. In other words, the filtering unit 1306 is an RC filtering circuit composed of the second resistor R2 and the second capacitor C2.
[0089] When the charging circuit is working, the processing module 11 can output a pulse width modulation (PWM) signal to the filter unit 1306 in the impedance module 13. The PWM signal is used to adjust the impedance of the impedance module 13. The PWM signal is a square wave signal composed of a high level signal and a low level signal, and its waveform can be as follows: Fig.12 After the filter unit 1306 inputs the PWM signal, it can filter the PWM signal and output a signal to the control terminal of the third transistor M3. The waveform of the output signal of the filter unit 1306 is as follows: Fig.13As shown. In this embodiment, the voltage of the output signal of the filter unit 1306 can be adjusted by adjusting the duty cycle of the PWM signal. The duty cycle of the PWM signal refers to the percentage of the duration of the high-level signal in a cycle of the PWM signal to the total duration of the cycle. Among them, a cycle of the PWM signal consists of adjacent high-level signals and low-level signals. For example, Fig.12 In the embodiment shown, the period from time t1 to time t2 is one cycle of the PWM signal. The duty cycle of the PWM signal is the percentage of the duration from time t01 to time t2 relative to the duration from time t1 to time t2. The greater the duty cycle of the PWM signal, the higher the voltage of the output signal of the filter unit 1306. Conversely, the smaller the duty cycle of the PWM signal, the lower the voltage of the output signal of the filter unit 1306.
[0090] When the processing module 11 outputs a PWM signal, the frequency of the PWM signal is the same as the operating frequency of the filter unit 1306. Here, the operating frequency of the filter unit 1306 is: Wherein, R is the resistance of the second resistor R2, and C is the capacitance of the second capacitor C2. The frequency of the PWM signal refers to the number of cycles of the PWM signal within 1 second.
[0091] The first resistor R1 and the third transistor M3 are connected in series to form a voltage divider circuit. Since the third transistor M3 is an N-type transistor, the higher the voltage of the output signal of the filter unit 1306, that is, the higher the voltage of the control terminal of the third transistor M3, the greater the conduction degree of the third transistor M3, that is, the smaller the impedance of the third transistor M3. The smaller the impedance of the third transistor M3, the lower the voltage of the node connected to the first end of the third transistor M3 and the second end of the first resistor R1, that is, the lower the voltage of the control terminal of the first transistor M1 and the second transistor M2. Since the first transistor M1 and the second transistor M2 are P-type transistors, the lower the voltage of the control terminal of the first transistor M1 and the second transistor M2, the greater the conduction degree of the first transistor M1 and the second transistor M2, and the smaller the impedance of the first transistor M1 and the second transistor M2.
[0092] Similarly, the lower the voltage of the output signal of the filtering unit 1306, that is, the lower the voltage of the control terminal of the third transistor M3, the smaller the conduction degree of the third transistor M3, that is, the greater the impedance of the third transistor M3. The greater the impedance of the third transistor M3, the higher the voltage of the node connected to the first end of the third transistor M3 and the second end of the first resistor R1, that is, the higher the voltage of the control terminal of the first transistor M1 and the second transistor M2. Since the first transistor M1 and the second transistor M2 are P-type transistors, the higher the voltage of the control terminal of the first transistor M1 and the second transistor M2, the smaller the conduction degree of the first transistor M1 and the second transistor M2, and the greater the impedance of the first transistor M1 and the second transistor M2.
[0093] Therefore, the PWM signal output by the processing module 11 can control the impedance of the impedance conversion unit 1302 formed by the first transistor M1 and the second transistor M2. The larger the duty cycle of the PWM signal, the smaller the impedance of the impedance conversion unit 1302 formed by the first transistor M1 and the second transistor M2. The smaller the duty cycle of the PWM signal, the larger the impedance of the impedance conversion unit 1302 formed by the first transistor M1 and the second transistor M2. In this process, the frequency of the PWM signal remains unchanged.
[0094] The smaller the impedance of the first transistor M1 and the second transistor M2, the smaller the balancing impedance between the first battery 1422 and the second battery 1424. The smaller the balancing impedance between the first battery 1422 and the second battery 1424, the easier it is for the voltage of the first battery 1422 to be equal to the voltage of the second battery 1424.
[0095] It can be understood that in some other embodiments, if the first output terminal f of the processing module 11 can output an analog signal, the impedance module 13 may not include the filtering unit 1306 and the impedance control unit 1304, that is, the impedance module 13 only includes the impedance transformation unit 1302. In this case, the circuit structure of the charging circuit can be as follows: Fig.14 That is to say, the output end of the processing module 11 is directly connected to the control end of the first transistor M1 and the control end of the second transistor M2. When the processing module 11 is working, the voltage of the control end of the first transistor M1 and the control end of the second transistor M2 can be adjusted to adjust the conduction degree of the first transistor M1 and the second transistor M2, thereby adjusting the impedance of the impedance module 13.
[0096] exist Fig.11 and Fig.14In the illustrated embodiment, the first battery 1422 may include a first battery cell CE1 and a first fuel gauge 14220. The positive electrode of the first battery cell CE1 is connected to the first terminal a of the impedance module 13, and the negative electrode of the first battery cell CE1 is connected to the ground line GND. The first fuel gauge 14220 is connected to the positive electrode of the first battery cell CE1 to detect the voltage and charging current value of the first battery cell CE1, that is, the voltage and charging current value of the first battery 1422. In other words, the method for the processing module 11 to detect the voltage and charging current value of the first battery 1422 may be: the first fuel gauge 14220 detects the voltage and charging current value of the first battery cell CE1, and outputs them to the processing module 11, so that the processing module 11 obtains the voltage and charging current value of the first battery 1422.
[0097] The positive electrode of the second battery cell CE2 is connected to the second end b of the impedance module 13, and the negative electrode of the second battery cell CE2 is connected to the ground line GND. The second fuel gauge 14240 is connected to the positive electrode of the second battery cell CE2 to detect the voltage and charging current value of the second battery cell CE2, that is, the voltage and charging current value of the second battery 1424. In other words, the method for the processing module 11 to detect the voltage and charging current value of the second battery 1424 can be: the second fuel gauge 14240 detects the voltage and charging current value of the second battery cell CE2, and outputs it to the processing module 11, so that the processing module 11 obtains the voltage and charging current value of the second battery 1424.
[0098] The charging method is applied to the processing module 11 in the charging circuit of the electronic device. The charging method provided in the embodiment of the present application is explained in detail below.
[0099] Fig.15 is a flow chart of a charging method provided in an embodiment of the present application. Fig.15 As shown, the charging method includes the following steps S110 and S120.
[0100] S110, in the first charging stage, the processing module 11 controls the impedance of the impedance module 13 to be a minimum value.
[0101] The first charging stage in the embodiment of the present application is relative to the second charging stage, wherein the first charging stage is located before the second charging stage. In some specific embodiments, when the charging curve of the electronic device is as follows: Fig. 9 As shown, the first charging stage may include a constant current charging stage and a constant voltage charging stage; or, the first charging stage may also include a constant current charging stage and a portion of a constant voltage charging stage. It is understandable that the first charging stage is continuous in time, and the second charging stage is also continuous in time.
[0102] Since the first charging stage is before the second charging stage, the power of the first battery 1422 and the second battery 1424 is relatively low during the first charging stage. In this case, the processing module 11 can control the impedance of the impedance module to be the minimum value, so as to charge the first battery 1422 and the second battery 1424 at the maximum charging speed. In this case, during the first charging stage, the ratio of the charging current value of the first battery 1422 to the charging current value of the second battery 1424 remains fixed. In some specific embodiments, during the first charging stage, the ratio of the charging current value of the first battery 1422 to the charging current value of the second battery 1424 is 1.
[0103] In some specific embodiments, when the charging circuit is as Fig.11 As shown, in order to minimize the impedance of the impedance module 13, the processing module 11 can adjust the duty cycle of the PWM signal output to the impedance module 13 to 100%. When the duty cycle of the PWM signal is 100%, the voltage of the output signal of the filter unit is the highest, and the conduction degree of the third transistor is the highest, that is, the voltage of the control terminal of the first transistor M1 and the second transistor M2 is the lowest and remains unchanged, the conduction degree of the first transistor M1 and the second transistor M2 is the highest, and the impedance of the first transistor M1 and the second transistor M2 is the lowest.
[0104] In some other specific embodiments, when the charging circuit is as follows Fig.14 As shown, in order to minimize the impedance of the impedance module 13, the processing module 11 can adjust the voltage of the control terminal of the first transistor M1 and the second transistor M2 to the lowest and keep it unchanged. When the voltage of the control terminal of the first transistor M1 and the second transistor M2 is the lowest, the conduction degree of the first transistor M1 and the second transistor M2 is the highest, and the impedance of the first transistor M1 and the second transistor M2 is the lowest.
[0105] S120, in the second charging stage, the processing module 11 adjusts the impedance of the impedance module 13 according to the voltage difference between the voltage of the first battery 1422 and the voltage of the second battery 1424, so that the voltage difference is within a preset voltage range.
[0106] The second charging stage is after the first charging stage. It can be understood that in the embodiment of the present application, the second charging stage can be the last stage of the charging process of the electronic device, that is, the charging stage when the electronic device is about to be fully charged.
[0107] The preset voltage range may be, for example, greater than the first voltage threshold and less than the second voltage threshold. That is, in the second charging stage, the processing module 11 adjusts the impedance of the impedance module 13 so that the voltage difference between the voltage of the first battery 1422 and the voltage of the second battery 1424 is greater than the first voltage threshold and less than the second voltage threshold. The second voltage threshold is greater than the first voltage threshold. Generally, the first voltage threshold is less than 0, the second voltage threshold is greater than 0, and the absolute value of the first voltage threshold is equal to the absolute value of the second voltage threshold. In some other embodiments, the absolute value of the first voltage threshold may not be equal to the absolute value of the second voltage threshold. Here, the absolute value of the maximum value and the absolute value of the minimum value of the preset voltage range should be less than the voltage difference between the two batteries when the electronic device is fully charged in the related art, so that the actual capacity of the electronic device when fully charged can be increased. For example, if the voltage difference between the two batteries when the electronic device is fully charged in the related art is 40mV, the preset voltage range may be -5mV to 5mV, or the preset voltage range may be -10mV to 10mV.
[0108] In the embodiment of the present application, when the charging circuit is as follows Fig.11 or Fig.14 As shown, the processing module 11 can adjust the impedance of the impedance module 13 by adjusting the voltage of the control terminal of the first transistor M1 and the second transistor M2.
[0109] In an embodiment of the present application, the charging stage of the electronic device is divided into a first charging stage and a second charging stage. In the first charging stage, the processing module 11 can control the impedance of the impedance module 13 to be the minimum value, so as to ensure the charging speed of the first battery 1422 and the second battery 1424. In the second charging stage, the processing module 11 can adjust the impedance of the impedance module 13 according to the voltage difference between the voltage of the first battery 1422 and the voltage of the second battery 1424, so as to keep the voltage difference within a preset voltage range. In this way, when the electronic device is fully charged, the voltage difference between the two batteries will be within the preset voltage range, that is, the voltage difference between the two batteries is small, so that the actual capacity of the electronic device with multiple batteries when fully charged can be increased.
[0110] In some specific embodiments, the first battery 1422 of the charging circuit used in the charging method provided in the embodiment of the present application can be a battery that is first fully charged when the electronic device is fully charged in the related art. In other words, the impedance module 13 can be connected between the battery that is fully charged when the electronic device is fully charged in the related art and the output end of the charging chip 140.
[0111] In some other specific embodiments, Fig.16As shown, the charging circuit used in the charging method provided in the embodiment of the present application has a first impedance module 13A connected between the first battery 1422 and the output end of the charging chip 140, and a second impedance module 13B connected between the second battery 1424 and the output end of the charging chip 140. The circuit structures of the first impedance module 13A and the second impedance module 13B are the same as the circuit structure of the above-mentioned impedance module 13. In this case, in step S110, that is, in the first charging stage, the processing module 11 can control the impedance size of the first impedance module 13A and the impedance size of the second impedance module 13B to be the minimum value; in step S120, that is, in the second charging stage, the processing module 11 can adjust the impedance size of the first impedance module 13A and the impedance size of the second impedance module 13B according to the voltage difference, so that the voltage difference is within the preset voltage range. In this way, the voltage difference between the first battery 1422 and the second battery 1424 can be adjusted more conveniently and quickly, so that the voltage difference is kept within the preset voltage range, thereby increasing the actual capacity of the electronic device with multiple batteries when fully charged.
[0112] The division of the first charging stage and the second charging stage is explained in detail below from two different implementations.
[0113] In a first possible implementation, the first charging stage and the second charging stage are divided according to the charging current value (including the charging current value of the first battery 1422, the charging current value of the second battery 1424, and the output current of the charging chip 140). In this case, the charging method may further include the following step S101.
[0114] S101, if it is detected that the charging current value of the first battery 1422 is less than the first current value, or / and, if it is detected that the charging current value of the second battery 1424 is less than the second current value, or / and, if it is detected that the sum of the charging current value of the first battery 1422 plus the charging current value of the second battery 1424 is less than the third current value, the processing module 11 determines that the electronic device is in the second charging stage.
[0115] Step S101 is before step S120. Fig. 9It can be seen from the embodiment shown that, in chronological order, the charging process of the electronic device may include a constant current charging stage, a constant voltage charging stage, and a step-down charging stage. Among them, in the constant voltage charging stage and the step-down charging stage, the output current of the charging chip 140 is continuously reduced. Therefore, in the constant voltage charging stage and the step-down charging stage, the charging current value of the first battery 1422 and the charging current value of the second battery 1424 are also continuously reduced. In this case, the first charging stage and the second charging stage can be divided based on at least one of the charging current value of the first battery 1422, the charging current value of the second battery 1424, and the output current of the charging chip 140.
[0116] The first current value, the second current value and the third current value are all current threshold values preset in the processing module 11. Among them, the first current value is the threshold value corresponding to the charging current value of the first battery 1422, the second current value is the threshold value corresponding to the charging current value of the second battery 1424, and the third current value is the threshold value corresponding to the output current of the charging chip 140. It can be understood that when the charging circuit only includes two batteries (i.e., the first battery 1422 and the second battery 1424), the sum of the charging current value of the first battery 1422 and the charging current value of the second battery 1424 is the output current of the charging chip 140. Based on this, in this embodiment, the third current value can also be equal to the sum of the first current value and the second current value. It should be noted that the third current value should be greater than the threshold value of the output current of the charging chip 140 when the electronic device is fully charged ( Fig. 9 Similarly, the first current value should also be greater than the threshold value of the charging current when the first battery 1422 is fully charged (i.e., the minimum charging current value of the first battery 1422), and the second current value should be greater than the threshold value of the charging current when the second battery 1424 is fully charged (i.e., the minimum charging current value of the second battery 1424).
[0117] As can be seen from the above description, in the first charging stage, the ratio of the charging current value of the first battery 1422 to the charging current value of the second battery 1424 can be equal to 1. In this case, the second current value can also be equal to the first current value. The specific values of the first current value, the second current value and the third current value can be set by those skilled in the art according to needs and experience.
[0118] In this embodiment, the processing module 11 determines that the electronic device is in the second charging stage when it detects that any one or more of condition 1 "the charging current value of the first battery 1422 is less than the first current value", condition 2 "the charging current value of the second battery 1424 is less than the second current value", and condition 3 "the sum of the charging current value of the first battery 1422 plus the charging current value of the second battery 1424 (i.e., the output current of the charging chip 140) is less than the third current value" is met.
[0119] In a second possible implementation, the last charging phase in chronological order among the divided multiple charging phases is determined as the second charging phase.
[0120] Specifically, according to Fig. 9 It can be seen from the illustrated embodiment that, in chronological order, the charging process of the electronic device may include a constant current charging stage, a constant voltage charging stage, and a step-down charging stage. Among them, the step-down charging stage is the last charging stage among multiple charging stages, that is, the charging stage when the electronic device is about to be fully charged. Therefore, the step-down charging stage can be directly determined as the second charging stage. In this embodiment, compared with the first possible implementation, the last charging stage in chronological order among the multiple charging stages that have been divided is determined as the second charging stage, which can reduce the amount of calculation of the processing module 11 and improve the calculation efficiency of the processing module 11.
[0121] In some other possible implementations, the processing module 11 may also determine whether the electronic device is in the second charging stage based on the power level of the first battery 1422 and / or the power level of the second battery 1424. The principle is the same as that of the processing module 11 determining whether the electronic device is in the second charging stage based on the charging current value of the first battery 1422 and / or the charging current value of the second battery 1424, and will not be repeated here.
[0122] The specific implementation process of step S120 is described below by taking the embodiment in which the impedance module 13 is connected between the first battery 1422 and the output end of the charging chip 140 as an example.
[0123] As known from the above description, in step S110, the processing module 11 controls the impedance of the impedance module to be the minimum value. In this case, in order to increase or decrease the impedance of the impedance module 13 in step S120, the charging method may further include the following step S102.
[0124] S102, when switching from the first charging stage to the second charging stage, the processing module 11 adjusts the impedance of the impedance module 13 to an intermediate value between the maximum value and the minimum value.
[0125] Step S102 is located after step S110 and step S101, and before step S120. Specifically, when the electronic device enters the second charging stage, the processing module 11 can first adjust the impedance of the impedance module 13 to an intermediate value between the maximum value and the minimum value, so as to increase or decrease the impedance of the impedance module 13 in the second charging stage.
[0126] For example, when the charging circuit is Fig.11As shown, it can be known from the above description that when the duty cycle of the PWM signal is 100%, the voltage of the control end of the first transistor M1 and the second transistor M2 is the lowest, and the impedance of the impedance module 13 is the smallest; when the duty cycle of the PWM signal is 0%, the voltage of the control end of the first transistor M1 and the second transistor M2 is the highest, and the impedance of the impedance module 13 is the largest. Based on this, in step S102, that is, when switching from the first charging stage to the second charging stage, the duty cycle of the PWM signal output by the processing module 11 can range from 30% to 70%, thereby adjusting the impedance of the impedance module 13 to an intermediate value between the maximum value and the minimum value. For example, when switching from the first charging stage to the second charging stage, the duty cycle of the PWM signal output by the processing module 11 can be 30%, 40%, 50%, 60% or 70%.
[0127] In some specific embodiments, the processing module 11 is used to process binary digital signals when working. At this time, the processing module 11 can divide the duty cycle of the PWM signal (i.e., from 0% to 100%) into 512 (2 to the 9th power) gears. When the processing module 11 adjusts the duty cycle of the PWM signal to 0 gear, the duty cycle of the PWM signal is 0%; when the processing module 11 adjusts the duty cycle of the PWM signal to 511 gears, the duty cycle of the PWM signal is 100%. In this case, when switching from the first charging stage to the second charging stage, the processing module 11 can adjust the duty cycle of the PWM signal to any one of 180 gears to 350 gears. In other specific embodiments, the processing module 11 can also divide the duty cycle of the PWM signal into 216 (2 to the 8th power) gears, which will not be repeated.
[0128] Understandably, for Fig.11 In the charging circuit shown, if the impedance of the impedance module 13 is the minimum value in the first charging stage, then when step S102 is executed (i.e., when the processing module 11 adjusts the impedance of the impedance module 13 to an intermediate value between the maximum value and the minimum value), the voltage of the control end of the first transistor M1 and the second transistor M2 will suddenly change. For example, if the voltage of the control end of the first transistor M1 and the second transistor M2 is 3V in the first charging stage, then in step S102, the voltage of the control end of the first transistor M1 and the second transistor M2 may be 4.5V. At the same time, the ratio of the charging current value of the first battery 1422 to the charging current value of the second battery 1424 will also suddenly change. For example, if the ratio of the charging current value of the first battery 1422 to the charging current value of the second battery 1424 in the first charging stage is 1, then when step S102 is executed, the ratio of the charging current value of the first battery 1422 to the charging current value of the second battery 1424 may be 2 to 8.
[0129] Based on step S102, step S120 is described in detail in three different situations.
[0130] 1. In the second charging stage, it is necessary to reduce the impedance of the impedance module 13. In this case, step S120 may specifically include the following step S122.
[0131] S122, in the second charging stage, the processing module 11 periodically determines whether the voltage difference is within the preset voltage range; if the voltage difference is not within the preset voltage range, and the voltage of the first battery 1422 is less than the voltage of the second battery 1424, the processing module 11 reduces the impedance of the impedance module 13.
[0132] The processing module 11 periodically determines whether the voltage difference is within the preset voltage range, which means that the processing module 11 determines whether the voltage difference is within the preset voltage range once every preset time interval. In some possible embodiments, the periodicity here can be a fixed time length, for example, the processing module 11 determines whether the voltage difference is within the preset voltage range once every 10 seconds. In other possible embodiments, the periodicity here can include two different time lengths, a first preset time length and a second preset time length. For example, if the result obtained when the processing module 11 performs the step of "determining whether the voltage difference is within the preset voltage range" for the Nth time is "no", that is, the voltage difference is not within the preset voltage range, then the processing module 11 can perform the step of "determining whether the voltage difference is within the preset voltage range" for the N+1th time after the first preset time length. If the result obtained when the processing module 11 performs the step of "determining whether the voltage difference is within the preset voltage range" for the Nth time is "yes", that is, the voltage difference is within the preset voltage range, then the processing module 11 can perform the step of "determining whether the voltage difference is within the preset voltage range" for the Nth time after the second preset time length. Here, the second preset time length may be greater than the first preset time length. For example, the second preset time length is 30 seconds, and the first preset time length is 10 seconds. Since the purpose of this solution is to keep the voltage difference between the voltage of the first battery 1422 and the voltage of the second battery 1424 within the preset voltage range, when the judgment result of "determining whether the voltage difference is within the preset voltage range" is yes, the next judgment may be performed after a longer second preset time length, thereby reducing the amount of calculation of the processing module 11 and improving the calculation efficiency of the processing module 11.
[0133] When the voltage difference is not within the preset voltage range, and the voltage of the first battery 1422 is less than the voltage of the second battery 1424, it indicates that the current charging speed of the first battery 1422 is slow. In this case, in order to increase the charging speed of the first battery 1422, the impedance between the first battery 1422 and the output end of the charging chip 140 should be reduced, that is, the impedance of the impedance module 13 should be reduced, thereby increasing the current output from the charging chip 140 to the first battery 1422. In the embodiment of the present application, when the charging circuit is as Fig.11 or Fig.14 As shown, the processing module 11 can reduce the voltage of the control end of the first transistor M1 and the control end of the second transistor M2 to increase the conduction degree of the first transistor M1 and the second transistor M2, thereby reducing the impedance of the impedance module 13.
[0134] In a specific embodiment, step S122 is specifically as follows: in the second charging stage, the processing module 11 periodically determines whether the voltage difference is within a preset voltage range; if the voltage difference is not within the preset voltage range, and the voltage of the first battery 1422 is less than the voltage of the second battery 1424, the processing module 11 increases the duty cycle of the PWM signal by 1% to reduce the impedance of the impedance module 13.
[0135] In another specific embodiment, if the processing module 11 divides the duty cycle of the PWM signal into 512 gears, step S122 can specifically be: in the second charging stage, the processing module 11 periodically determines whether the voltage difference is within the preset voltage range; if the voltage difference is not within the preset voltage range, and the voltage of the first battery 1422 is less than the voltage of the second battery 1424, the processing module 11 increases the duty cycle of the PWM signal by 1 gear to reduce the impedance of the impedance module 13.
[0136] In some embodiments, when the processing module 11 executes step S122, in order to improve charging safety, a current judgment condition may be added, which is described in detail below.
[0137] In this embodiment, the processing module 11 may also be preset with a first current threshold and a second current threshold. The first current threshold is slightly greater than the threshold value of the charging current when the first battery 1422 is fully charged (i.e., the minimum charging current value of the first battery 1422). Different from the first current value in step S101, the first current threshold is a threshold for determining whether the first battery 1422 is about to be fully charged. In other words, the function of the first current threshold is: when the charging current value of the first battery 1422 is greater than the first current threshold, it indicates that the first battery 1422 still has a large margin that is not fully charged, and charging is relatively safe. At this time, the voltage difference can still be adjusted by adjusting the impedance of the impedance module 13; when the charging current value of the first battery 1422 is less than or equal to the first current threshold, it indicates that the first battery 1422 is about to be fully charged, and it is not appropriate to adjust the voltage difference by adjusting the impedance of the impedance module 13. The first current value in step S101 is a threshold for determining whether the electronic device enters the second charging stage. Generally, the first current value is greater than the first current threshold.
[0138] In some specific embodiments, the threshold value of the charging current when the first battery 1422 is fully charged may be 0.025C (Coulomb). In this case, the first current threshold may be 0.026C or 0.027C. The current unit C is the current rate when the battery is charged, and 1C is equal to 1A multiplied by 1 second. That is, for a battery with a rated capacity of 5000mAh, 1C is equal to 5A; for a battery with a rated capacity of 10000mAh, 1C is equal to 10A.
[0139] Similarly, the second current threshold is slightly greater than the threshold value of the charging current when the second battery 1424 is fully charged (i.e., the minimum charging current value of the second battery 1424). Different from the second current value in step S101, the second current threshold is a threshold for determining whether the second battery 1424 is about to be fully charged; and the second current value is a threshold for determining whether the electronic device enters the second charging stage. Generally, the second current value is greater than the second current threshold, which will not be described in detail.
[0140] Based on this, "if the voltage difference is not within the preset voltage range, and the voltage of the first battery 1422 is less than the voltage of the second battery 1424, the processing module 11 reduces the impedance of the impedance module 13" in step S122 can specifically include the following parallel steps S122A and S122B.
[0141] S122A, if the voltage difference is not within the preset voltage range, and the voltage of the first battery 1422 is less than the voltage of the second battery 1424, and the charging current value of the first battery 1422 is greater than the first current threshold, and the charging current value of the second battery 1424 is greater than the second current threshold, then the processing module 11 reduces the impedance of the impedance module 13.
[0142] “The charging current value of the first battery 1422 is greater than the first current threshold value” indicates that the first battery 1422 still has a large amount of remaining charge. “The charging current value of the second battery 1424 is greater than the second current threshold value” indicates that the second battery 1424 still has a large amount of remaining charge. “The voltage difference is not within the preset voltage range, and the voltage of the first battery 1422 is less than the voltage of the second battery 1424” indicates that the voltage of the first battery 1422 is lower.
[0143] When the voltage of the first battery 1422 is low and both the first battery 1422 and the second battery 1424 have a large charging margin, the processing module 11 can speed up the charging speed of the first battery 1422 by reducing the impedance of the impedance module 13, so that the voltage difference between the voltage of the first battery 1422 and the voltage of the second battery 1424 is within a preset voltage range.
[0144] S122B, when the voltage difference is not within the preset voltage range and the voltage of the first battery 1422 is less than the voltage of the second battery 1424, if the charging current value of the first battery 1422 is less than or equal to the first current threshold, or / and, if the charging current value of the second battery 1424 is less than or equal to the second current threshold, the processing module 11 keeps the impedance of the impedance module 13 unchanged.
[0145] "The charging current value of the first battery 1422 is less than or equal to the first current threshold value", indicating that the first battery 1422 is about to be fully charged. "The charging current value of the second battery 1424 is less than or equal to the second current threshold value", indicating that the second battery 1424 is about to be fully charged. When the voltage of the first battery 1422 is low and at least one of the first battery 1422 and the second battery 1424 is about to be fully charged, in order to ensure charging safety, the processing module 11 does not adjust the impedance of the impedance module 13 at this time, and the impedance of the impedance module 13 remains unchanged. Here, when the charging circuit is as Fig.11 or Fig.14 As shown, the processing module 11 can keep the impedance of the impedance module 13 unchanged by controlling the voltage of the control end of the first transistor M1 and the control end of the second transistor M2. Fig.11 In the charging circuit shown, the processing module 11 can control the duty cycle of the output PWM signal to remain unchanged, so as to keep the impedance of the impedance module 13 unchanged.
[0146] Second, in the second charging stage, it is necessary to increase the impedance of the impedance module 13. In this case, step S120 may specifically include the following step S124.
[0147] S124, in the second charging stage, the processing module 11 periodically determines whether the voltage difference is within the preset voltage range; if the voltage difference is not within the preset voltage range, and the voltage of the first battery 1422 is greater than the voltage of the second battery 1424, the processing module 11 increases the impedance of the impedance module 13.
[0148] The "periodicity" in step S124 is the same as the "periodicity" in step S122 and will not be described in detail. When the voltage difference is not within the preset voltage range and the voltage of the first battery 1422 is greater than the voltage of the second battery 1424, it indicates that the current charging speed of the first battery 1422 is faster. In this case, in order to reduce the charging speed of the first battery 1422, the impedance between the first battery 1422 and the output end of the charging chip 140 should be increased, that is, the impedance of the impedance module 13 should be increased, thereby reducing the current output from the charging chip 140 to the first battery 1422. In the embodiment of the present application, when the charging circuit is as Fig.11 or Fig.14 As shown, the processing module 11 can increase the voltage of the control end of the first transistor M1 and the control end of the second transistor M2 to reduce the conduction degree of the first transistor M1 and the second transistor M2, thereby increasing the impedance of the impedance module 13.
[0149] In a specific embodiment, step S124 is specifically as follows: in the second charging stage, the processing module 11 periodically determines whether the voltage difference is within a preset voltage range; if the voltage difference is not within the preset voltage range, and the voltage of the first battery 1422 is greater than the voltage of the second battery 1424, the processing module 11 reduces the duty cycle of the PWM signal by 1% to increase the impedance of the impedance module 13.
[0150] In another specific embodiment, if the processing module 11 divides the duty cycle of the PWM signal into 512 gears, step S124 can specifically be: in the second charging stage, the processing module 11 periodically determines whether the voltage difference is within the preset voltage range; if the voltage difference is not within the preset voltage range, and the voltage of the first battery 1422 is greater than the voltage of the second battery 1424, the processing module 11 reduces the duty cycle of the PWM signal by 1 gear to increase the impedance of the impedance module 13.
[0151] In some embodiments, the processing module 11 may also add a current judgment condition when executing step S124. That is, in step S124, "if the voltage difference is not within the preset voltage range, and the voltage of the first battery 1422 is greater than the voltage of the second battery 1424, the processing module 11 increases the impedance of the impedance module 13" may specifically include the following parallel steps S124A and S124B.
[0152] S124A, if the voltage difference is not within the preset voltage range, and the voltage of the first battery 1422 is greater than the voltage of the second battery 1424, and the charging current value of the first battery 1422 is greater than the first current threshold, and the charging current value of the second battery 1424 is greater than the second current threshold, then the processing module 11 increases the impedance of the impedance module 13.
[0153] S124B, when the voltage difference is not within the preset voltage range and the voltage of the first battery 1422 is greater than the voltage of the second battery 1424, if the charging current value of the first battery 1422 is less than or equal to the first current threshold, or / and, if the charging current value of the second battery 1424 is less than or equal to the second current threshold, the processing module 11 keeps the impedance of the impedance module 13 unchanged.
[0154] 3. In the second charging stage, the impedance of the impedance module 13 needs to be kept unchanged. In this case, step S120 may specifically include the following step S126.
[0155] S126, in the second charging stage, the processing module 11 periodically determines whether the voltage difference is within a preset voltage range; if the voltage difference is within the preset voltage range, the processing module 11 keeps the impedance of the impedance module 13 unchanged.
[0156] The following describes steps S102 and S120 in detail from two specific implementations in conjunction with the accompanying drawings.
[0157] The first specific implementation method.
[0158] In this specific implementation, the purpose of executing the charging method is to make the voltage difference between the voltage of the first battery 1422 and the voltage of the second battery 1424 within a preset voltage range. Fig.17 is a flow chart of another charging method provided in an embodiment of the present application, which is applied to Fig.11 The charging circuit shown in Figure 1 is as follows. Fig.17 As shown, in a specific embodiment, steps S102 and S120 may specifically include the following steps S1 to S9.
[0159] S1 , at the beginning of the second charging stage, the processing module 11 adjusts the duty cycle of the PWM signal to 50%.
[0160] The start of the second charging stage is when the first charging stage switches to the second charging stage. In this embodiment, at the start of the second charging stage, the processing module 11 adjusts the duty cycle of the PWM signal to 50%.
[0161] S2, determining whether the voltage difference is within a preset voltage range.
[0162] VBAT1 is the voltage of the first battery 1422, and VBAT2 is the voltage of the second battery 1424. VBAT1-VBAT2 is the voltage difference between the voltage of the first battery 1422 and the voltage of the second battery 1424. The minimum value of the preset voltage range is -VTH, and the maximum value of the preset voltage range is VTH. Therefore, judging whether the voltage difference is within the preset voltage range is judging whether VBAT1 minus VBAT2 is greater than -VTH and less than VTH.
[0163] If the judgment result of step S2 is yes, that is, the voltage difference is within the preset voltage range, then step S3 is executed. If the judgment result of step S2 is no, that is, the voltage difference is not within the preset voltage range, then step S5 or S7 is executed.
[0164] S3, the duty cycle remains unchanged.
[0165] If the voltage difference is within the preset voltage range, the processing module 11 keeps the duty cycle of the PWM signal unchanged, that is, keeps the impedance of the impedance module 13 unchanged.
[0166] S4, wait 10 seconds.
[0167] After step S3 is completed, step S2 is executed again after waiting for 10 seconds to periodically determine whether the voltage difference is within the preset voltage range.
[0168] S5, VBAT1<VBAT2.
[0169] When the judgment result of step S2 is no, there are two possible situations: (Situation 1) the voltage of the first battery 1422 is less than the voltage of the second battery 1424; (Situation 2) the voltage of the first battery 1422 is greater than the voltage of the second battery 1424.
[0170] Step S5 is (case 1), in which case, step S6 is executed.
[0171] S6, the duty cycle increases by 1%.
[0172] When the voltage of the first battery 1422 is less than the voltage of the second battery 1424, the processing module 11 increases the duty cycle of the PWM signal by 1%. At this time, the impedance of the first transistor M1 and the second transistor M2 decreases, that is, the impedance of the impedance module 13 decreases, and the charging speed of the first battery 1422 is accelerated.
[0173] S7, VBAT1>VBAT2.
[0174] Step S7 is (Case 2), in which case, step S8 is executed.
[0175] S8, duty cycle reduced by 1%.
[0176] When the voltage of the first battery 1422 is greater than the voltage of the second battery 1424, the processing module 11 reduces the duty cycle of the PWM signal by 1%. At this time, the impedance of the first transistor M1 and the second transistor M2 increases, that is, the impedance of the impedance module 13 increases, and the charging speed of the first battery 1422 slows down.
[0177] S9, wait 10 seconds.
[0178] After step S6 and step S8 are completed, wait for 10 seconds and execute step S2 again to periodically determine whether the voltage difference is within the preset voltage range.
[0179] A second specific implementation method.
[0180] In this specific embodiment, the purpose of executing the charging method is to make the voltage difference between the voltage of the first battery 1422 and the voltage of the second battery 1424 within a preset voltage range, and to make the charging current value of the first battery 1422 greater than the first current threshold, and to make the charging current value of the second battery 1424 greater than the second current threshold. Fig.18 This is a flowchart of another charging method provided in an embodiment of the present application, which is applied to Fig.11 The charging circuit shown in Figure 1 is as follows. Fig.18 As shown, in a specific embodiment, steps S102 and S120 may specifically include the following steps S1 to S10.
[0181] S1, at the beginning of the second charging stage, the processing module 11 adjusts the duty cycle of the PWM signal to 255 levels.
[0182] The beginning of the second charging stage is when the first charging stage is switched to the second charging stage. In this embodiment, the processing module 11 divides the duty cycle of the PWM signal into 512 gears from 0 to 511, and the duty cycle of the PWM signal increases arithmetic difference from 0 to 511. When the processing module 11 adjusts the duty cycle of the PWM signal to 0, the duty cycle of the PWM signal is 0%; when the processing module 11 adjusts the duty cycle of the PWM signal to 511, the duty cycle of the PWM signal is 100%. Therefore, at the beginning of the second charging stage, the processing module 11 can adjust the duty cycle of the PWM signal to 255 gears.
[0183] S2, determining whether the voltage difference is within a preset voltage range.
[0184] VBAT1 is the voltage of the first battery 1422, and VBAT2 is the voltage of the second battery 1424. VBAT1-VBAT2 is the voltage difference between the voltage of the first battery 1422 and the voltage of the second battery 1424. The minimum value of the preset voltage range is -VTH, and the maximum value of the preset voltage range is VTH. Therefore, judging whether the voltage difference is within the preset voltage range is judging whether VBAT1 minus VBAT2 is greater than -VTH and less than VTH.
[0185] If the judgment result of step S2 is yes, that is, the voltage difference is within the preset voltage range, then step S3 is executed. If the judgment result of step S2 is no, that is, the voltage difference is not within the preset voltage range, then step S5 or S7 is executed.
[0186] S3, the duty cycle remains unchanged.
[0187] If the voltage difference is within the preset voltage range, the processing module 11 keeps the duty cycle of the PWM signal unchanged, that is, keeps the impedance of the impedance module 13 unchanged.
[0188] S4, wait 30 seconds.
[0189] After step S3 is completed, step S2 is executed again after waiting for 30 seconds to periodically determine whether the voltage difference is within the preset voltage range.
[0190] S5, VBAT1<VBAT2.
[0191] When the judgment result of step S2 is no, there are two possible situations: (Situation 1) the voltage of the first battery 1422 is less than the voltage of the second battery 1424; (Situation 2) the voltage of the first battery 1422 is greater than the voltage of the second battery 1424.
[0192] Step S5 is (Case 1), in which case, step S10A is executed.
[0193] S10A, determining whether the charging current value of the first battery 1422 is greater than a first current threshold, and whether the charging current value of the second battery 1424 is greater than a second current threshold.
[0194] IBAT1 is the charging current value of the first battery 1422, and ITH1 is the first current threshold; IBAT2 is the charging current value of the second battery 1424, and ITH2 is the second current threshold. Therefore, judging "whether the charging current value of the first battery 1422 is greater than the first current threshold, and whether the charging current value of the second battery 1424 is greater than the second current threshold" means judging whether IBAT1 is greater than ITH1, and whether IBAT2 is greater than ITH2.
[0195] If the determination result of step S10A after step S5 is yes, then continue to step S6. If the determination result of step S10A after step S5 is no, then proceed to step S3.
[0196] S6, the duty cycle increases by one gear.
[0197] When the voltage of the first battery 1422 is less than the voltage of the second battery 1424, the processing module 11 increases the duty cycle of the PWM signal by one gear. At this time, the duty cycle of the PWM signal increases, the impedance of the first transistor M1 and the second transistor M2 decreases, that is, the impedance of the impedance module 13 decreases, and the charging speed of the first battery 1422 is accelerated.
[0198] S7, VBAT1>VBAT2.
[0199] Step S7 is (Case 2), in which case, step S10B is executed.
[0200] S10B, determining whether the charging current value of the first battery 1422 is greater than a first current threshold, and whether the charging current value of the second battery 1424 is greater than a second current threshold.
[0201] Step S10B is the same as step S10A and will not be described in detail. If the judgment result of step S10B after step S7 is yes, then step S8 is continued. If the judgment result of step S10B after step S7 is no, then step S3 is executed.
[0202] S8, the duty cycle is reduced by one gear.
[0203] When the voltage of the first battery 1422 is greater than the voltage of the second battery 1424, the processing module 11 reduces the duty cycle of the PWM signal by one gear. At this time, the duty cycle of the PWM signal is reduced, the impedance of the first transistor M1 and the second transistor M2 is increased, that is, the impedance of the impedance module 13 is increased, and the charging speed of the first battery 1422 is slowed down.
[0204] S9, wait 10 seconds.
[0205] After step S6 and step S8 are completed, wait for 10 seconds and execute step S2 again to periodically determine whether the voltage difference is within the preset voltage range.
[0206] The charging method provided in the embodiment of the present application has at least the following beneficial effects: (1) The charging stage of the electronic device is divided into a first charging stage and a second charging stage. In the first charging stage, the processing module 11 can control the impedance of the impedance module 13 to be the minimum value, thereby ensuring the charging speed of the first battery 1422 and the second battery 1424. In the second charging stage, the processing module 11 can adjust the impedance of the impedance module 13 according to the voltage difference between the voltage of the first battery 1422 and the voltage of the second battery 1424, so that the voltage difference remains within a preset voltage range. In this way, when the electronic device is fully charged, the voltage difference between the two batteries will be within the preset voltage range, that is, the voltage difference between the two batteries is small, so that the actual capacity of the electronic device with multiple batteries when fully charged can be increased. (2) The last charging stage in the time sequence of the multiple charging stages of the electronic device that have been divided is determined as the second charging stage, which can reduce the amount of calculation of the processing module 11 and improve the calculation efficiency of the processing module 11. (3) The current judgment condition can also be added to the charging method to improve charging safety.
[0207] The embodiment of the present application also provides a charging circuit. The charging circuit includes an impedance module 13, a first battery 1422, a second battery 1424, a charging chip 140 and a processing module 11. Among them, the first end a of the impedance module 13 is connected to the first battery 1422, the second end b of the impedance module 13 is connected to the second battery 1424 and the output end of the charging chip 140, and the input end of the charging chip 140 is used to connect to the charger. In this way, when the electronic device is charged, the charging chip 140 can output electric energy to the second battery 1424, and can also output electric energy to the first battery 1422 through the impedance module 13. The first detection end d of the processing module 11 is connected to the first battery 1422 to detect the voltage of the first battery 1422. The second detection end e of the processing module 11 is connected to the second battery 1424 to detect the voltage of the second battery 1424. The output end f of the processing module 11 is connected to the control end c of the impedance module 13 to adjust the impedance of the impedance module 13. When the processing module 11 is working, the charging method in any of the above embodiments can be implemented.
[0208] In some embodiments, the impedance module 13 includes a first transistor M1 and a second transistor M2. The first end of the first transistor M1 is connected to the first battery 1422. The second end of the first transistor M1 is connected to the second end of the second transistor M2. The first end of the second transistor M2 is connected to the second battery 1424. The first transistor M1 and the second transistor M2 are both P-type transistors. The output end f of the processing module 11 is connected to the control end of the first transistor M1 and the control end of the second transistor M2. The processing module 11 is used to adjust the voltage of the control end of the first transistor M1 and the control end of the second transistor M2 to adjust the impedance of the impedance module 13.
[0209] It is understandable that in some other embodiments, the first transistor M1 and the second transistor M2 may also be N-type transistors. In this case, the processing module 11 may also adjust the impedance of the impedance module 13 by adjusting the voltage of the control end of the first transistor M1 and the control end of the second transistor M2. In other embodiments, the impedance module 13 may also be a varistor, and the processing module 11 adjusts the impedance of the impedance module 13 by controlling the voltage output to the varistor.
[0210] In some embodiments, when the impedance module 13 includes a first transistor M1 and a second transistor M2, and both the first transistor M1 and the second transistor M2 are P-type transistors, in order to more accurately control the impedance size of the impedance module 13, the impedance module 13 may also include: a first resistor R1, a third transistor M3, a first capacitor C1, a second resistor R2, a second capacitor C2 and a third resistor R3.
[0211] The first end of the first resistor R1 is connected to the second end of the first transistor M1 and the first end of the second transistor M2. The second end of the first resistor R1 is connected to the first end of the third transistor M3. The second end of the third transistor M3 is connected to the ground line GND. The first plate of the first capacitor C1 is connected to the first end of the third transistor M3, and the second plate of the first capacitor C1 is connected to the second end of the third transistor M3. The first end of the second resistor R2 is connected to the output end f of the processing module 11, and the second end of the second resistor R2 is connected to the control end of the third transistor M3. The first plate of the second capacitor C2 is connected to the control end of the third transistor M3, and the second plate of the second capacitor C2 is connected to the second end of the third transistor M3. The first end of the third resistor R3 is connected to the control end of the third transistor M3, and the second end of the third resistor R3 is connected to the second end of the third transistor M3.
[0212] In some specific embodiments, since the impedance of the third transistor M3 is an exponential curve and the impedance changes greatly, the first resistor R1 can be selected to be a resistor with a larger resistance value to increase the adjustment range of the voltage at the second end of the first resistor R1, thereby increasing the adjustment range of the impedance of the first transistor M1 and the second transistor M2. For example, the resistance value of the third transistor M3 can be 100KΩ (kilo ohms), etc.
[0213] It is understandable that in the above description of the charging method and the charging circuit, the electronic device includes two batteries (the first battery 1422 and the second battery 1424) as an example for explanation. In some other embodiments, the electronic device may also include three or more batteries.
[0214] like Fig.19 As shown, taking the electronic device also including the third battery 1426 as an example, the impedance module 13 connected between the first battery 1422 and the output end of the charging chip 140 can be called the first impedance module 13A, and the third impedance module 13C can also be connected between the third battery 1426 and the output end of the charging chip 140. The circuit structure of the third impedance module 13C is the same as that of the first impedance module 13A. In this case, in the second charging stage, the processing module 11 can control the impedance of the third impedance module 13C according to the voltage difference between the voltage of the third battery 1426 and the voltage of the second battery 1424, so that the voltage difference between the voltage of the third battery 1426 and the voltage of the second battery 1424 is within the preset voltage range, which will not be repeated.
[0215] An embodiment of the present application also provides an electronic device, comprising a charging circuit as in any one of the above embodiments.
[0216] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A charging method, applied to a processing module in an electronic device, characterized in that: The electronic device further comprises: an impedance module, a first battery, a second battery and a charging chip; the first end of the impedance module is connected to the first battery, the second end of the impedance module is connected to the second battery and the output end of the charging chip, and the input end of the charging chip is used to connect to the charger; The method comprises: Controlling the impedance of the impedance module to be a minimum value in the first charging stage; In the second charging stage, the impedance of the impedance module is adjusted according to the voltage difference between the voltage of the first battery and the voltage of the second battery, so that the voltage difference is within a preset voltage range, and the second charging stage is located after the first charging stage; The method further comprises: When switching from the first charging stage to the second charging stage, adjusting the impedance of the impedance module to an intermediate value between the maximum value and the minimum value; In the second charging stage, adjusting the impedance of the impedance module according to the voltage difference between the voltage of the first battery and the voltage of the second battery includes: In the second charging stage, periodically determining whether the voltage difference is within the preset voltage range; If the voltage difference is not within the preset voltage range, and the voltage of the first battery is less than the voltage of the second battery, and the charging current value of the first battery is greater than the first current threshold, and the charging current value of the second battery is greater than the second current threshold, then the impedance of the impedance module is reduced; wherein, in the second charging stage, the charging current value of the first battery and the charging current value of the second battery both continue to decrease, the first current threshold is greater than the minimum charging current value of the first battery, and the second current threshold is greater than the minimum charging current value of the second battery.
2. The method according to claim 1, characterized in that The method further comprises: If it is detected that the charging current value of the first battery is less than the first current value, or / and if it is detected that the charging current value of the second battery is less than the second current value, it is determined that the electronic device is in the second charging stage.
3. The method according to claim 1, characterized in that The second charging stage is a step-down charging stage.
4. The method according to claim 1, characterized in that The method further comprises: When the voltage difference is not within the preset voltage range and the voltage of the first battery is less than the voltage of the second battery, if the charging current value of the first battery is less than or equal to the first current threshold, or / and, if the charging current value of the second battery is less than or equal to the second current threshold, the impedance of the impedance module is kept unchanged.
5. The method according to any one of claims 1 to 4, characterized in that: The impedance module includes a first transistor and a second transistor, wherein a first end of the first transistor is connected to the first battery, a second end of the first transistor is connected to a second end of the second transistor, a first end of the second transistor is connected to the second battery, and both the first transistor and the second transistor are P-type transistors; The reducing the impedance of the impedance module includes: The voltages of the control end of the first transistor and the control end of the second transistor are reduced to reduce the impedance of the impedance module.
6. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: If the voltage difference is not within the preset voltage range, and the voltage of the first battery is greater than the voltage of the second battery, the impedance of the impedance module is increased.
7. The method according to claim 6, characterized in that If the voltage difference is not within the preset voltage range and the voltage of the first battery is greater than the voltage of the second battery, increasing the impedance of the impedance module includes: If the voltage difference is not within the preset voltage range, and the voltage of the first battery is greater than the voltage of the second battery, and the charging current value of the first battery is greater than the first current threshold, and the charging current value of the second battery is greater than the second current threshold, then the impedance of the impedance module is increased.
8. The method according to claim 7, characterized in that The method further comprises: When the voltage difference is not within the preset voltage range and the voltage of the first battery is greater than the voltage of the second battery, if the charging current value of the first battery is less than or equal to the first current threshold, or / and, if the charging current value of the second battery is less than or equal to the second current threshold, the impedance of the impedance module is kept unchanged.
9. The method according to claim 6, characterized in that The impedance module includes a first transistor and a second transistor, wherein a first end of the first transistor is connected to the first battery, a second end of the first transistor is connected to a second end of the second transistor, a first end of the second transistor is connected to the second battery, and both the first transistor and the second transistor are P-type transistors; The step of increasing the impedance of the impedance module comprises: The voltages of the control end of the first transistor and the control end of the second transistor are increased to increase the impedance of the impedance module.
10. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: If the voltage difference is within the preset voltage range, the impedance of the impedance module is kept unchanged.
11. A charging circuit, characterized in that: include: An impedance module, a first battery, a second battery, a charging chip and a processing module; The first end of the impedance module is connected to the first battery, the second end of the impedance module is connected to the second battery and the output end of the charging chip, and the input end of the charging chip is used to connect to the charger; The first detection end of the processing module is connected to the first battery to detect the voltage of the first battery, the second detection end of the processing module is connected to the second battery to detect the voltage of the second battery, and the output end of the processing module is connected to the control end of the impedance module to adjust the impedance of the impedance module; The processing module is used to execute the method according to any one of claims 1 to 10.
12. The charging circuit according to claim 11, characterized in that: The impedance module includes a first transistor and a second transistor, wherein a first end of the first transistor is connected to the first battery, a second end of the first transistor is connected to a second end of the second transistor, a first end of the second transistor is connected to the second battery, and both the first transistor and the second transistor are P-type transistors; The output end of the processing module is connected to the control end of the first transistor and the control end of the second transistor, and the processing module is used to adjust the voltage of the control end of the first transistor and the control end of the second transistor to adjust the impedance of the impedance module.
13. The charging circuit according to claim 12, characterized in that: The impedance module further includes: a first resistor, a third transistor, a first capacitor, a second resistor, a second capacitor and a third resistor; The first end of the first resistor is connected to the second end of the first transistor and the first end of the second transistor, the second end of the first resistor is connected to the first end of the third transistor, and the second end of the third transistor is connected to the ground line; The first plate of the first capacitor is connected to the first end of the third transistor, and the second plate of the first capacitor is connected to the second end of the third transistor; A first end of the second resistor is connected to the output end of the processing module, and a second end of the second resistor is connected to the control end of the third transistor; The first plate of the second capacitor is connected to the control terminal of the third transistor, and the second plate of the second capacitor is connected to the second terminal of the third transistor; A first end of the third resistor is connected to the control end of the third transistor, and a second end of the third resistor is connected to the second end of the third transistor.
14. An electronic device, characterized in that: Comprising the charging circuit as claimed in any one of claims 11 to 13.
