Charging method and electronic device

CN122993173APending Publication Date: 2026-10-27HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510421079.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-03
Publication Date
2026-10-27

AI Technical Summary

Technical Problem

[0003]本申请实施例提供一种充电方法及电子设备,旨在解决如何提升充电效率的问题

Benefits of technology

[0030]本申请实施例第五方面提供一种计算机可读存储介质,其上存储有计算机指令,当处理器执行计算机指令时实现第一方面或第二方面提供的方法。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122993173A_ABST
    Figure CN122993173A_ABST
Patent Text Reader

Abstract

The application provides a charging method and an electronic device, and relates to the technical field of intelligent terminals. The electronic device comprises a charging module and a battery, and the charging module is electrically connected to the battery. The charging method comprises the following steps: when it is detected that the port type of a charging device is a high-voltage dedicated charging port (HVDCP) and it is determined that the charging device does not support a private protocol and a programmable power supply (PPS) protocol, enabling a current regulation protection function of the charging module. The charging module is controlled to charge the battery. The input voltage and the output voltage of the charging module are in a fixed proportional relationship, and the input voltage and the output voltage are not equal. Since the charging module has the current regulation protection function, the charging module has a dynamic power regulation capability, so that the charging mode of the charging module is fast charging. Even if the charging device does not support the private protocol and the PPS protocol, the electronic device can also control the charging module to charge the battery in the fast charging mode, so that the charging efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of smart terminal technology, specifically to a charging method and an electronic device. Background Technology

[0002] Electronic devices are primarily categorized into standard charging and fast charging. When connected to a charging device, an electronic device can choose between standard charging and fast charging based on application requirements, supported power range, required battery charging rate, and compatible fast charging protocols. When the charging device does not support proprietary protocols or Programmable Power Supply (PPS) protocols, the electronic device charges the battery via standard charging. The maximum charging power is a preset power level, which may be lower than the charging device's maximum output power, resulting in lower charging efficiency and longer charging time. Summary of the Invention

[0003] This application provides a charging method and an electronic device, aiming to solve the problem of how to improve charging efficiency.

[0004] The first aspect of this application provides a charging method applied to an electronic device, the electronic device including a charging module and a battery, the charging module being electrically connected to the battery. The method includes: when it is detected that the port type of the charging device is a high-voltage dedicated charging port (HVDCP), and it is determined that the charging device does not support proprietary protocols and programmable power supply (PPS) protocols, enabling the current regulation protection function of the charging module; and controlling the charging module to charge the battery. The input voltage and output voltage of the charging module have a fixed proportional relationship, and the input voltage and output voltage are not equal.

[0005] In this embodiment, since the charging module has a current regulation protection function, such as IBAT regulation, it has dynamic power regulation capability, enabling the charging module to charge in a fast charging mode. Even if the charging device does not support proprietary protocols and PPS protocols, the electronic device can still control the charging module to charge the battery in a fast charging mode, thereby improving charging efficiency.

[0006] In one embodiment, the method further includes: increasing the current threshold when it is determined that the input voltage of the charging module is greater than a voltage threshold, or when it is determined that the current adjustment flag of the charging module indicates that the current adjustment is not complete.

[0007] In this embodiment, when it is determined that the input voltage of the charging module is greater than the voltage threshold, or when it is determined that the current adjustment flag of the charging module indicates that the current adjustment is not completed, the maximum charging current is increased by raising the current threshold, so that the maximum charging power of the electronic device matches the maximum output power of the charging device, thereby making full use of the maximum output power of the charging device to improve charging efficiency.

[0008] In another embodiment, increasing the current threshold includes: gradually increasing the current threshold using current step values.

[0009] In another embodiment, the method further includes: when it is determined that the output current of the charging module is greater than a current threshold, reducing the output current of the charging module.

[0010] In this embodiment, the output current of the charging module is limited to below the current threshold to prevent the battery from being overcharged, thus providing overcharge protection.

[0011] In another embodiment, the method further includes maintaining the current threshold unchanged when it is determined that the input voltage of the charging module is less than or equal to a voltage threshold, or when it is determined that the current adjustment flag of the charging module indicates that current adjustment is complete.

[0012] In another embodiment, the method further includes: enabling the current regulation protection function of the charging module when the port type of the charging device is detected to be a dedicated charging port (DCP). The charging module is then controlled to charge the battery. The input voltage and output voltage of the charging module are equal.

[0013] In another embodiment, the charging module includes a first charging chip, which includes a first switched-capacitor charging chip. Enabling the current regulation protection function of the charging module includes enabling the current regulation protection function of the first switched-capacitor charging chip.

[0014] In another embodiment, the charging module includes a first charging chip and a current limiting chip. The first charging chip includes a second switched-capacitor charging chip, and the current limiting chip is connected between the second switched-capacitor charging chip and the battery. Enabling the current regulation protection function of the charging module includes enabling the current regulation protection function of the current limiting chip.

[0015] In this embodiment, because the first switched-capacitor charging chip has a current regulation protection function, it has dynamic power regulation capability, enabling the first switched-capacitor charging chip to charge in fast charging mode. The second switched-capacitor charging chip does not have a current regulation protection function. A current-limiting chip is added between the second switched-capacitor charging chip and the battery. This current-limiting chip achieves current regulation protection by controlling its internal power switch. Therefore, the combination of the second switched-capacitor charging chip and the current-limiting chip also has dynamic power regulation capability, enabling the second switched-capacitor charging chip to charge in fast charging mode. Even if the charging device does not support proprietary protocols and PPS protocols, the electronic device can still control the second switched-capacitor charging chip to charge the battery via fast charging, thereby improving charging efficiency.

[0016] In another embodiment, the charging module further includes a second charging chip electrically connected to the battery. The method also includes controlling the second charging chip to charge the battery when the battery voltage is below a safe voltage threshold.

[0017] In this embodiment, when the battery voltage is less than the safe voltage threshold, it indicates that the battery is over-discharged. The second charging chip can slowly increase the battery voltage with a small current, which helps to avoid damage to the battery caused by a sudden large current surge.

[0018] A second aspect of this application provides a charging method applied to an electronic device. The electronic device includes a first charging chip and a battery. The first charging chip includes a second switched-capacitor charging chip, and the battery includes a battery cell and a battery protection chip, with the battery protection chip connected between the second switched-capacitor charging chip and the battery cell. The method includes: when it is detected that the port type of the charging device is a high-voltage dedicated charging port (HVDCP), and it is determined that the charging device does not support proprietary protocols and programmable power supply (PPS) protocols, enabling the current regulation protection function of the battery protection chip; and controlling the second switched-capacitor charging chip to charge the battery. The input voltage and output voltage of the second switched-capacitor charging chip have a fixed proportional relationship, and the input voltage and output voltage are not equal.

[0019] In this embodiment, the second switched-capacitor charging chip does not have current regulation protection. Instead, control logic for current regulation protection is added to the battery protection chip. This current regulation protection is achieved through a power switch within the battery protection chip. Therefore, the combination of the second switched-capacitor charging chip and the battery protection chip also possesses dynamic power regulation capability, enabling the second switched-capacitor charging chip to use fast charging. Even if the charging device does not support proprietary protocols and PPS protocols, the electronic device can still control the second switched-capacitor charging chip to charge the battery via fast charging, thereby improving charging efficiency.

[0020] In this embodiment, the method further includes: when it is determined that the input voltage of the battery protection chip is greater than the voltage threshold, or when it is determined that the current adjustment flag of the battery protection chip indicates that the current adjustment is not completed, increasing the current threshold.

[0021] In this embodiment, when it is determined that the input voltage of the battery protection chip is greater than the voltage threshold, or when it is determined that the current adjustment flag of the battery protection chip indicates that the current adjustment is not completed, the maximum charging current is increased by raising the current threshold, so that the maximum charging power of the electronic device matches the maximum output power of the charging device, thereby making full use of the maximum output power of the charging device to improve charging efficiency.

[0022] In another embodiment, increasing the current threshold includes: gradually increasing the current threshold using current step values.

[0023] In another embodiment, the method further includes: when it is determined that the output current of the battery protection chip is greater than a current threshold, reducing the output current of the battery protection chip.

[0024] In another embodiment, the method further includes maintaining the current threshold unchanged when it is determined that the input voltage of the battery protection chip is less than or equal to a voltage threshold, or when it is determined that the current regulation flag of the battery protection chip indicates that current regulation is complete.

[0025] In another embodiment, the method further includes: enabling the current regulation protection function of the battery protection chip when the port type of the charging device is detected to be a dedicated charging port (DCP). The second switched-capacitor charging chip is controlled to charge the battery, wherein the input voltage and output voltage of the second switched-capacitor charging chip are equal.

[0026] In another embodiment, enabling the current regulation protection function of the battery protection chip includes: lowering the voltage of the enable pin of the battery protection chip.

[0027] In another embodiment, the electronic device further includes a second charging chip connected in parallel with the first charging chip. The method also includes controlling the second charging chip to charge the battery when the battery voltage is below a safe voltage threshold.

[0028] A third aspect of this application provides an electronic device including a charging module, a battery, and a processor. The charging module is electrically connected to the battery and the processor. The processor is configured to: enable the current regulation protection function of the charging module when it detects that the port type of the charging device is a high-voltage dedicated charging port (HVDCP) and determines that the charging device does not support proprietary protocols and programmable power supply (PPS) protocols; and control the charging module to charge the battery. The input voltage and output voltage of the charging module have a fixed proportional relationship, and the input voltage and output voltage are not equal.

[0029] A fourth aspect of this application provides an electronic device including a first charging chip, a battery, and a processor. The first charging chip includes a second switched-capacitor charging chip, and the battery includes a battery cell and a battery protection chip. The battery protection chip is connected between the second switched-capacitor charging chip and the battery cell. The processor is electrically connected to the second switched-capacitor charging chip and the battery protection chip. The processor is configured to: when it detects that the port type of the charging device is a high-voltage dedicated charging port (HVDCP) and determines that the charging device does not support proprietary protocols and programmable power supply (PPS) protocols, enable the current regulation protection function of the battery protection chip; and control the second switched-capacitor charging chip to charge the battery. The input voltage and output voltage of the second switched-capacitor charging chip have a fixed proportional relationship, and the input voltage and output voltage are not equal.

[0030] The fifth aspect of this application provides a computer-readable storage medium having computer instructions stored thereon, which, when executed by a processor, implement the method provided in the first or second aspect.

[0031] A sixth aspect of this application provides a computer program product including computer instructions that, when executed by a processor, implement the method provided in the first or second aspect.

[0032] It is understood that the beneficial effects of the electronic devices provided in the third and fourth aspects, the computer-readable storage medium provided in the fifth aspect, and the computer program product provided in the sixth aspect are substantially the same as the beneficial effects of the methods provided in the first and second aspects, and will not be repeated here. Attached Figure Description

[0033] Figures 1 to 5 This is a schematic diagram of a smartphone charging scenario.

[0034] Figure 6 This is a schematic diagram of the hardware structure of the electronic device provided in the first embodiment.

[0035] Figure 7 This is a schematic diagram illustrating the connection relationship of a charge pump switched capacitor charging chip, as provided as an example.

[0036] Figure 8 This is a flowchart of the charging method provided in the first embodiment.

[0037] Figure 9 This is an example of the current characteristic curve of the first charging chip provided.

[0038] Figure 10 This is a voltage characteristic curve of the first charging chip provided as an example.

[0039] Figure 11 This is a schematic diagram of the hardware structure of the electronic device provided in the second embodiment.

[0040] Figure 12 This is a flowchart of the charging method provided in the second embodiment.

[0041] Figure 13 This is a schematic diagram of the hardware structure of the electronic device provided in the third embodiment.

[0042] Figure 14 This is a flowchart of the charging method provided in the third embodiment.

[0043] Figure 15 This is a schematic diagram of the hardware structure of the electronic device provided in the fourth embodiment.

[0044] Figure 16 This is a flowchart of the charging method provided in the fourth embodiment.

[0045] Figure 17 This is a schematic diagram of the hardware structure of the electronic device provided in the fifth embodiment.

[0046] Figure 18 This is a flowchart of the charging method provided in the fifth embodiment.

[0047] Figure 19 This is a schematic diagram of the hardware structure of the electronic device provided in the sixth embodiment.

[0048] Figure 20 This is a flowchart of the charging method provided in the sixth embodiment. Detailed Implementation

[0049] It should be noted that in the embodiments of this application, "multiple" refers to two or more. The terms "first," "second," "third," "fourth," etc., in the specification, claims, and drawings of this application are used to distinguish similar objects, not to describe a specific order or sequence. The methods disclosed in the embodiments of this application, or the methods shown in the flowcharts, include one or more steps for implementing the method. Without departing from the scope of the claims, the execution order of multiple steps can be interchanged, and some steps can also be deleted.

[0050] In this application embodiment, the electronic device includes, but is not limited to, smartphones, tablets, handheld computers, laptops, intelligent robots, drones, mobile internet devices (MIDs), virtual reality (VR) devices, augmented reality (AR) devices, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, cellular phones, cordless phones, Session Initiation Protocol (SIP) phones, Wireless Local Loop (WLL) stations, personal digital assistants (PDAs), handheld devices with wireless communication capabilities, computing devices or other processing devices connected to a wireless modem, in-vehicle devices, wearable devices, terminal devices in 5G networks, or Public Land Mobile (PLT) networks. Terminal devices in a network (PLMN).

[0051] Electronic devices are mainly charged using two methods: standard charging and fast charging. Standard charging typically has a charging power of 10W or less, while fast charging typically has a charging power of more than 10W.

[0052] The battery management integrated circuit (BMIC) corresponding to slow charging may include a buck charger IC or a buck-boost charger IC.

[0053] A buck converter, also known as a step-down charging chip, reduces the input voltage of a battery to a lower voltage suitable for charging when the input voltage is higher than the battery voltage. The circuitry of a buck converter includes a power switch, inductors, capacitors, diodes, and a controller. The power switch may include a metal-oxide-semiconductor field-effect transistor (MOSFET). The buck converter uses inductors and capacitors for transduction. Based on pulse-width modulation (PWM) technology, the buck converter controls the circuit's operating mode by controlling the on / off state of the power switch, thus achieving a stable step-down output. For example, if a charging device supports a fixed setting of "5V 2A," meaning the output voltage is 5V and the output current is 2A, the buck converter can convert the output voltage of the charging device to an acceptable input voltage for the battery in the electronic device, such as 3V.

[0054] A buck-boost charger IC combines buck and boost voltage functions, charging the battery when the input voltage is higher, lower, or equal to the battery voltage. The circuitry of a buck-boost charger IC includes a power switch, inductors, capacitors, and a controller. The buck-boost charger IC achieves energy conversion through inductors and capacitors. It controls the switching of the power switch by monitoring parameters such as input voltage, output voltage, battery voltage, and charging current, thereby adjusting the power switch's operating mode to achieve precise voltage and current control.

[0055] The BMIC for fast charging supports various fast charging protocols, such as the Universal Fast Charging Specification (UFCS), Power Delivery (PD), Programmable Power Supply (PPS), and proprietary protocols, to adapt to the fast charging needs of different electronic devices. The PPS protocol, part of the PD 3.0 protocol, supports dynamic voltage and current adjustment. Compared to other PD protocols that support fixed voltage levels like 5V, 9V, and 12V, the PPS protocol offers greater flexibility and accuracy. Proprietary protocols are fast charging protocols defined by individual electronic device manufacturers, such as Quick Charge (QC), Adaptive Fast Charging (AFC), Fast Charge Protocol (FCP), and Super Charge Protocol (SCP). The BMIC for fast charging features high-precision battery level monitoring and multiple protection functions, such as overvoltage, overcurrent, and overheat protection, to enhance charging safety.

[0056] Fast charging-compatible battery-controlled charging (BMICs) may include switched-capacitor charger ICs (SCCharger ICs). SCCharger ICs utilize the charge storage characteristic of capacitors, controlling the connection mode of the capacitors by periodically switching them on and off, thereby achieving voltage conversion. SCCharger ICs achieve energy conversion through capacitors. SCCharger ICs operate in two modes: switching mode and bypass mode. In switching mode, the SCCharger IC adjusts its output voltage according to a fixed ratio of the input voltage to match the battery's input voltage. For example, the SCCharger IC can reduce the output voltage of the charging device by half before outputting it to the battery. In bypass mode, the output voltage of the SCCharger IC is equal to its input voltage, without voltage conversion.

[0057] Electronic devices may include buck charging chips and switched-capacitor charging chips, or buck-boost charging chips and switched-capacitor charging chips. Taking an electronic device that includes both buck charging chips and switched-capacitor charging chips as an example, when connected to a charging device, the electronic device can choose to charge the battery using either a buck charging chip or a switched-capacitor charging chip, depending on factors such as application requirements, supported power range, required battery charging rate, and compatible fast charging protocols.

[0058] The following is a brief description of the charging scenarios involved in the embodiments of this application, using a smartphone as an example.

[0059] like Figure 1 As shown, when smartphone 10 is connected to a first charger 20 that supports a proprietary protocol, such as the original charger for smartphone 10, smartphone 10 and first charger 20 handshake through the proprietary protocol, and smartphone 10 charges the battery through a switched-capacitor charging chip. The charging mode of smartphone 10 is SuperCharge mode, and the maximum charging power is the maximum power negotiated with the first charger 20. The charging icon 11 displays the SuperCharge icon.

[0060] As is understandable, a handshake refers to the process by which two devices authenticate each other's identities by exchanging information.

[0061] like Figure 2 As shown, when smartphone 10 is connected to a second charger 30 that supports the PPS protocol (e.g., a non-original charger for smartphone 10), smartphone 10 and the second charger 30 handshake via the PPS protocol. The PPS protocol supports dynamic adjustment of voltage and current, and smartphone 10 charges the battery through a switched-capacitor charging chip. The charging mode of smartphone 10 is SuperCharge mode, with the maximum charging power negotiated with the second charger 30. The charging icon 11 displays the SuperCharge icon.

[0062] like Figure 3 As shown, when smartphone 10 is connected to a third charger 40 that supports the PD protocol (excluding the PPS protocol), for example, if the third charger 40 is a non-original charger for smartphone 10, smartphone 10 and third charger 40 handshake via the PD protocol. The PD protocol supports fixed-level output, and smartphone 10 charges the battery through a buck charging chip or a buck-boost charging chip. The charging mode of smartphone 10 is fast charging mode, and the maximum charging power is the preset power corresponding to the fixed level. The charging icon 11 displays a fast charging icon. For example, when the highest power level of the third charger 40 is "9V 2A", the maximum output power of the third charger 40 is 18W, while the fixed level supported by smartphone 10 is "9V 1.4A", meaning the maximum charging power of smartphone 10 is 12.6W. Therefore, the maximum charging power of smartphone 10 is less than the maximum output power of the third charger 40.

[0063] like Figure 4As shown, when smartphone 10 connects to a fourth charger 50 that does not support fast charging protocols (e.g., a non-original charger for smartphone 10), the handshake between smartphone 10 and the fourth charger 50 fails because the fourth charger 50 does not support fast charging protocols. Smartphone 10 then charges its battery via a buck or buck-boost charging chip. Smartphone 10's charging mode is slow charging, with a maximum charging power corresponding to a fixed level. The charging icon 11 displays a slow charging icon. For example, when the highest power level of the fourth charger 50 is "5V 2.4A," its maximum output power is 12W. However, smartphone 10 supports a fixed level of "5V 2A," meaning its maximum charging power is 10W. Therefore, smartphone 10's maximum charging power is less than the fourth charger 50's maximum output power.

[0064] like Figure 5 As shown, when smartphone 10 is connected to power bank 60 (such as a power bank), if power bank 60 does not support a fast charging protocol compatible with smartphone 10, the handshake between smartphone 10 and power bank 60 will fail. Smartphone 10 will then charge the battery via a buck charging chip or a buck-boost charging chip. Smartphone 10's charging mode is slow charging mode, with a maximum charging power of a preset power level corresponding to a fixed level. The charging icon 11 displays a slow charging icon. For example, when the highest power level of power bank 60 is "5V 2.4A", the maximum output power of power bank 60 is 12W, while the fixed level supported by smartphone 10 is "5V 2A", meaning the maximum charging power of smartphone 10 is 10W. Therefore, the maximum charging power of smartphone 10 is less than the maximum output power of power bank 60.

[0065] It is understandable that the charging power corresponding to the super fast charging mode is usually greater than 20W, the charging power corresponding to the fast charging mode is usually greater than 10W and less than or equal to 20W, and the charging power corresponding to the slow charging mode is usually less than or equal to 10W.

[0066] exist Figures 3 to 5 In the charging scenario shown, the maximum charging power of electronic devices (such as smartphones) is less than the maximum output power of charging devices (such as chargers or power banks). As a result, electronic devices cannot fully utilize the maximum output power of charging devices, leading to low charging efficiency and long charging time.

[0067] To improve charging efficiency, this application provides a charging method that increases the maximum charging current to match the maximum charging power of the electronic device with the maximum output power of the charging device, thereby making full use of the maximum output power of the charging device.

[0068] The electronic devices and charging methods involved in the embodiments of this application are described in detail below.

[0069] For example, such as Figure 6 As shown, the electronic device 100 includes a charging interface 110, a charging module 120, a proprietary protocol chip 130, a PD protocol chip 140, a system-on-chip (SoC) 150, a fuel gauge 160, and a battery 170. The charging module 120 includes a first charging chip 121 and a second charging chip 122.

[0070] System-on-a-chip 150 is the control center of electronic device 100. It is electrically connected to first charging chip 121, second charging chip 121, proprietary protocol chip 130, PD protocol chip 140, and fuel gauge 160 via an Inter-Integrated Circuit (I2C) bus. First charging chip 121 and second charging chip 121 are electrically connected to battery 170. Fuel gauge 160 is electrically connected to battery 170 and is used to detect the voltage and current of battery 170.

[0071] The charging interface 110 is electrically connected to the first charging chip 121, the second charging chip 122, the proprietary protocol chip 130, and the PD protocol chip 140. The charging interface 110 may include a Universal Serial Bus (USB) interface, a MiniUSB interface, a Micro USB interface, and a USB Type-C interface (referred to as "Type-C interface"). In this embodiment, the charging interface 110 is described using a Type-C interface as an example.

[0072] The Type-C interface includes data transmission pins and charging pins. The data transmission pins include the DP (D+) pin, the DM (D-) pin, and the CC (Configuration Channel) pin. The charging pins include the VBUS (Voltage Bus) pin.

[0073] For example, when electronic device 100 connects to a charging device via a Type-C interface, system-on-chip 150 can interact with the charging device through the DP and DM pins of the Type-C interface to complete Battery Charging Specification Revision 1.2 (BC1.2) protocol detection. BC1.2 protocol detection includes an initial detection phase and a secondary detection phase. In the initial detection phase, system-on-chip 150 first detects the voltage of the VBUS pin of the Type-C interface to determine if the charging device is connected. If system-on-chip 150 determines that the charging device is connected, it then detects the voltage of the DP and DM pins to preliminarily determine the port type of the charging device. The port type may include a Dedicated Charging Port (DCP), a Charging Downstream Port (CDP), and a Standard Downstream Port (SDP). In the secondary detection phase, system-on-chip 150 further detects the voltage of the DP and DM pins to further determine the port type of the charging device. For example, in the initial detection phase, the system-on-chip 150 identifies the port of the charging device as a DCP. Then, in the secondary detection phase, the system-on-chip 150 identifies the port of the charging device as a High Voltage Dedicated Charging Port (HVDCP).

[0074] After completing the BC1.2 protocol detection, the electronic device 100 and the charging device handshake via the fast charging protocol. The system-on-a-chip 150 can interact with the charging device via the proprietary protocol chip 130 to determine whether the charging device supports the proprietary protocol. The system-on-a-chip 150 can also interact with the charging device via the PD protocol chip 140 to determine whether the charging device supports the PD protocol. In this embodiment, the proprietary protocol chip 130 is described using an SCP chip as an example.

[0075] For example, the process of the system-on-chip 150 interacting with the charging device via the SCP chip may include: the system-on-chip 150 first transmits a first voltage specified by SCP to the charging device through the DP and DM pins of the Type-C interface. When the charging device supports SCP, it transmits a second voltage specified by SCP to the electronic device 100 through the DP and DM lines. If the system-on-chip 150 detects the second voltage between the DP and DM pins, it indicates that the electronic device 100 has successfully handshaked with the charging device. When the charging device does not support SCP, it transmits a third voltage, which is lower than the second voltage, to the electronic device 100 through the DP and DM lines. If the system-on-chip 150 detects the third voltage between the DP and DM pins, it indicates that the handshake between the electronic device 100 and the charging device has failed. After a successful SCP handshake, the charging device supplies power to the electronic device 100 through the VBUS line.

[0076] The process of the system-on-chip 150 interacting with the charging device through the PD protocol chip 140 may include: the system-on-chip 150 first detects the voltage of the CC pin of the Type-C interface to determine the connection status and role of the charging device, and then transmits the voltage and current combination specified by the PD protocol to the charging device through the CC pin. Roles include the power supply (Source) and the power receiving (Sink). When the charging device supports the PD protocol, it transmits an acknowledgment message to the electronic device 100 through the CC line. If the system-on-chip 150 receives the acknowledgment message, it indicates that the electronic device 100 and the charging device have successfully handshaked. When the charging device does not support the PD protocol, it transmits a rejection message to the electronic device 100 through the CC line. If the system-on-chip 150 receives the rejection message, it indicates that the handshake between the electronic device 100 and the charging device has failed. After a successful PD protocol handshake, the charging device supplies power to the electronic device 100 through the VBUS line.

[0077] In this embodiment, the first charging chip 121 includes a first switched capacitor charging chip, which has a current regulation protection function. For example, the first switched capacitor charging chip is a charge pump switched capacitor charging chip. The charge pump switched capacitor charging chip realizes the current regulation protection function by controlling an external power switch or an internal power switch, that is, it realizes the IBAT regulation function. The following description uses the charge pump switched capacitor charging chip controlling an external power switch as an example.

[0078] For example, such as Figure 7As shown, the charge pump switched capacitor charging chip has an external power switch Q and a resistor R. The charge pump switched capacitor charging chip includes an EN (Enable) pin, a VBUS pin, an OVP (Over Voltage Protection) pin, a VOUT (Voltage OUT) pin, an SRP (Series Resister Positive) pin, and a SRN (Series Resister Negative) pin. The first terminal of the power switch Q is electrically connected to the charging interface VIN, the second terminal of the power switch Q is electrically connected to the VBUS pin of the charge pump switched capacitor charging chip, and the control terminal of the power switch Q is electrically connected to the OVP pin of the charge pump switched capacitor charging chip. One end of the resistor R is electrically connected to the negative terminal BAT- of the battery and the SRP pin of the charge pump switched capacitor charging chip, and the other end of the resistor R is electrically connected to the SRN pin of the charge pump switched capacitor charging chip and the ground terminal GND. The VOUT pin of the charge pump switched capacitor charging chip is electrically connected to the positive terminal BAT+ of the battery.

[0079] The process by which the charge pump switched capacitor charging chip implements current regulation and protection functions by controlling the power switch Q can be summarized as follows: First, the system-on-a-chip 150 pulls down the voltage of the EN pin of the charge pump switched capacitor charging chip to enable its IBAT regulation function. Then, the charge pump switched capacitor charging chip detects the voltages of the SRP and SRN pins; the voltage difference between these two pins represents the voltage across resistor R. The charge pump switched capacitor charging chip then calculates the output current based on the voltage across resistor R and the resistance value of resistor R. When the output current exceeds a current threshold, the charge pump switched capacitor charging chip adjusts the duty cycle or frequency of the switching signal and transmits a switching signal to the control terminal of the power switch Q through the OVP pin to control the operating mode of the power switch Q, thereby adjusting the output current.

[0080] In this embodiment, based on the current regulation and protection function of the first charging chip 121, the system-on-a-chip 150 executes the charging method. For example, as... Figure 8 As shown, the charging method includes the following steps:

[0081] S101. Detect the port type of the charging device according to the BC1.2 protocol.

[0082] In this embodiment, based on the BC1.2 protocol, the system-on-chip 150 first detects the voltage of the VBUS pin of the charging interface 110 to determine whether the charging device is connected. When the system-on-chip 150 determines that the charging device is connected, it detects the voltage of the DP pin and the DM pin of the charging interface 110 to determine whether the port type of the charging device is DCP. When the system-on-chip 150 determines that the port type of the charging device is DCP, it then detects the voltage of the DP pin and the DM pin to determine whether the port type of the charging device is HVDCP.

[0083] S102. Determine whether the port type of the charging device is HVDCP.

[0084] If yes, proceed to steps S103-S104; otherwise, proceed to step S112, and then proceed to steps S107-S109.

[0085] In this embodiment, when the port type of the charging device is HVDCP, it indicates that the charging device is a high-voltage charging device. When the port type of the charging device is DCP instead of HVDCP, it indicates that the charging device is a non-high-voltage charging device.

[0086] It is understandable that the output voltage of high-voltage charging equipment is usually greater than 5V, while the output voltage of non-high-voltage charging equipment is usually less than or equal to 5V.

[0087] S103, Handshake with charging device via proprietary protocol chip 140.

[0088] In this embodiment, based on a proprietary protocol, the system-on-chip 150 first controls the proprietary protocol chip 130 to transmit a first voltage specified by the proprietary protocol to the charging device. If the charging device supports the proprietary protocol, it transmits a second voltage specified by the proprietary protocol to the electronic device 100. When the system-on-chip 150 detects the second voltage between the DP pin and the DM pin of the charging interface 110, it indicates that the charging device supports the proprietary protocol. If the charging device does not support the proprietary protocol, it transmits a third voltage to the electronic device 100, which is lower than the second voltage. When the system-on-chip 150 detects the third voltage between the DP pin and the DM pin, it indicates that the charging device does not support the proprietary protocol.

[0089] S104. Determine whether the charging device supports a proprietary protocol.

[0090] If yes, proceed to step S105; otherwise, proceed to steps S106-S109.

[0091] In this embodiment, when the charging device supports a proprietary protocol, it indicates that the charging mode of the electronic device 100 is super-fast charging mode. When the charging device does not support a proprietary protocol but is a high-voltage charging device, it indicates that the charging mode of the electronic device 100 is fast charging mode.

[0092] S105, Control the first charging chip 121 to charge the battery 170.

[0093] In this embodiment, since the charging device supports a proprietary protocol, the maximum charging power of the electronic device 100 is the maximum power specified by the proprietary protocol.

[0094] S106, The first charging chip 121 is configured to operate in a switching mode.

[0095] In this embodiment, in the conversion mode, the first charging chip 121 can adjust the output voltage according to the input-output voltage ratio to adapt to the input voltage of the battery 170. For example, when the output voltage of the charging device is 9V and the input-output voltage ratio of the first charging chip 121 is 2, the first charging chip 121 can reduce the output voltage of the charging device by 1 / 2, that is, the output voltage of the first charging chip 121 is 4.5V.

[0096] S107, Enable the current regulation and protection function of the first charging chip 121.

[0097] In this embodiment, the current regulation and protection function of the first charging chip 121 includes: when it is determined that the output current of the first charging chip 121 is greater than a current threshold, reducing the output current of the first charging chip 121. The current threshold can be set as needed, for example, the current threshold is the minimum current value supported by the first charging chip 121.

[0098] S108, control the first charging chip 121 to charge the battery 170.

[0099] S109. Determine whether the first charging chip 121 meets the power matching conditions.

[0100] If yes, proceed to step S110; otherwise, proceed to step S111 and return to step S109.

[0101] In this embodiment, the first charging chip 121 meeting the power matching condition may include the input voltage of the first charging chip 121 being less than or equal to a voltage threshold, or the current adjustment flag bit of the first charging chip 121 indicating that current adjustment is complete.

[0102] Understandably, based on the voltage-current (VI) characteristics of the first charging chip 121, when the input voltage of the first charging chip 121 is less than or equal to the voltage threshold, it indicates that the current regulation protection function of the first charging chip 121 is ineffective. When the input voltage of the first charging chip 121 is greater than the voltage threshold, it indicates that the current regulation protection function of the first charging chip 121 is effective.

[0103] For example, such as Figure 9 and Figure 10 As shown, in order to test the power input supported by the first charging chip 121, from time T0 to time T7, starting from the minimum current value I1 supported by the first charging chip 121, the input current of the first charging chip 121 is gradually increased, and the input voltage of the first charging chip 121 is collected at each time.

[0104] From time T0 to time T3, the input voltage of the first charging chip 121 remains constant. As the input current of the first charging chip 121 gradually increases, the input power of the first charging chip 121 also gradually increases, which is equivalent to the first charging chip 121 working in the linear region.

[0105] From time T3 to time T6, the input voltage of the first charging chip 121 gradually decreases, while the input current of the first charging chip 121 gradually increases, and the input power of the first charging chip 121 fluctuates within a certain range, which is equivalent to the first charging chip 121 working in the saturation region.

[0106] From time T6 to time T7, the input voltage of the first charging chip 121 drops to 0, and the input power of the first charging chip 121 also drops to 0, which is equivalent to the first charging chip 121 working in the cutoff region.

[0107] Therefore, from time T3 to time T6, a voltage threshold is set between the input voltage V1 and the input voltage V2 of the first charging chip 121. When the input voltage of the first charging chip 121 is less than or equal to the voltage threshold, the input current of the first charging chip 121 is no longer increased, thereby ensuring that the first charging chip 121 works normally.

[0108] Therefore, in order to ensure the normal operation of the first charging chip 121, that is, to maintain the current regulation and protection function of the first charging chip 121, it is necessary to ensure that the input voltage of the first charging chip 121 is greater than the voltage threshold.

[0109] The system-on-a-chip 150 can query the current regulation flag bit by reading the register inside the first charging chip 121. The current regulation flag bit indicates the current regulation status. For example, the current regulation flag bit is a Regulation flag bit, which can be filled with a completion flag or a non-completion flag. When the Regulation flag bit is filled with a completion flag, it indicates that the current regulation is complete. When the Regulation flag bit is filled with a non-completion flag, it indicates that the current regulation is not complete.

[0110] S110, Maintain the current threshold unchanged.

[0111] S111, Use the current step value to increase the current threshold.

[0112] In this embodiment, when the output current of the first charging chip 121 is greater than the current threshold, the first charging chip 121 will adjust the output current to keep it below the current threshold. When the current threshold increases, the maximum output current of the first charging chip 121 increases, thereby increasing the maximum charging power of the electronic device 100 to match the maximum output power of the charging device.

[0113] For example, when the highest power setting of the charging device is "9V 2A", if the current threshold of the first charging chip 121 is 2.8A, then in the conversion mode, the maximum output voltage of the first charging chip 121 is 4.5V, and the maximum output current is 2.8A, resulting in a maximum charging power of 12.6W for the electronic device 100. By increasing the current threshold in a 0.2A step, the maximum output current of the first charging chip 121 increases to 3A, thereby increasing the maximum charging power of the electronic device 100 to 13.5W. Even when the first charging chip 121 does not meet the power matching conditions, by repeatedly increasing the current threshold, the maximum charging power of the electronic device 100 can be made equal to or approach the maximum output power of the charging device.

[0114] Understandably, the current step value can be set as needed.

[0115] S112, The first charging chip 121 is configured to operate in bypass mode.

[0116] In this embodiment, in bypass mode, the output voltage of the first charging chip 121 is equal to the input voltage. For example, when the input voltage of the first charging chip 121 is 5V, its output voltage is also 5V.

[0117] The above combination Figure 6The illustrated electronic device 100 provides a detailed description of the charging method. In this embodiment, even if the charging device does not support the proprietary protocol and the PPS protocol, the electronic device 100 can still control the first charging chip 121 to charge the battery 170 via fast charging, and utilize the current regulation and protection function of the first charging chip 121 to increase the maximum charging current, thereby matching the maximum charging power of the electronic device 100 with the maximum output power of the charging device.

[0118] In this embodiment, the second charging chip 122 includes a buck charging chip or a buck-boost charging chip. Figure 8 The charging method shown also includes: when the voltage of the battery 170 is less than the safe voltage threshold, the electronic device 100 controls the second charging chip 122 to charge the battery 170.

[0119] It is understandable that when the voltage of battery 170 is less than the safe voltage threshold, it means that battery 170 is over-discharged. The second charging chip 122 can slowly increase the voltage of battery 170 with a small current, which helps to avoid damage to battery 170 caused by sudden large current surge.

[0120] exist Figure 6 In the illustrated electronic device 100, the charging module 120 includes a first charging chip 121 and a second charging chip 122. In other embodiments, the charging module 120 may not include the second charging chip 122.

[0121] For example, such as Figure 11 As shown, the electronic device 200 includes a charging interface 210, a charging module 220, a proprietary protocol chip 230, a PD protocol chip 240, a system-on-a-chip 250, a fuel gauge 260, and a battery 270. The charging module 220 includes a first switched-capacitor charging chip 221.

[0122] Charging interface 210 is electrically connected to the first switched-capacitor charging chip 221, the proprietary protocol chip 230, and the PD protocol chip 240. System-on-a-chip 250 is electrically connected via I2C to the first switched-capacitor charging chip 221, the proprietary protocol chip 230, the PD protocol chip 240, and the fuel gauge 260. The first switched-capacitor charging chip 221 is electrically connected to the battery 270. The fuel gauge 260 is electrically connected to the battery 270 and is used to detect the voltage and current of the battery 270.

[0123] In this embodiment, based on the current regulation and protection function of the first switched capacitor charging chip 221, the system-on-a-chip 250 executes the charging method. For example, as... Figure 12 As shown, the charging method includes the following steps:

[0124] S201. Detect the port type of the charging device according to the BC1.2 protocol.

[0125] S202. Determine whether the port type of the charging device is HVDCP.

[0126] If yes, proceed to steps S203-S204; otherwise, proceed to step S212, and then proceed to steps S207-S209.

[0127] S203, Handshake with charging device through proprietary protocol chip 230.

[0128] S204. Determine whether the charging device supports a proprietary protocol.

[0129] If yes, proceed to step S205; otherwise, proceed to steps S206-S208.

[0130] S205, Control the first switched capacitor charging chip 221 to charge the battery 270.

[0131] S206. Configure the first switched capacitor charging chip 221 to operate in switching mode.

[0132] S207 Enables the current regulation and protection function of the first switched capacitor charging chip 221.

[0133] S208, control the first switched capacitor charging chip 221 to charge the battery 270.

[0134] S209. Determine whether the first switched capacitor charging chip 221 meets the power matching conditions.

[0135] If yes, proceed to step S210; otherwise, proceed to step S211 and return to step S209.

[0136] In this embodiment, the first switched capacitor charging chip 221 meeting the power matching conditions may include the input voltage of the first switched capacitor charging chip 221 being less than or equal to a voltage threshold, or the current adjustment flag bit of the first switched capacitor charging chip 221 indicating that current adjustment is complete.

[0137] It is understandable that the VI characteristics of the first switched capacitor charging chip 221 are similar to... Figures 9 to 10 The VI characteristics of the first charging chip 121 shown are roughly the same. Based on the VI characteristics of the first switched capacitor charging chip 221, when the input voltage of the first switched capacitor charging chip 221 is less than or equal to the voltage threshold, it indicates that the current regulation protection function of the first switched capacitor charging chip 221 is ineffective. When the input voltage of the first switched capacitor charging chip 221 is greater than the voltage threshold, it indicates that the current regulation protection function of the first switched capacitor charging chip 221 is effective.

[0138] The system-on-a-chip 250 can query the current regulation flag bit by reading the register inside the first switched capacitor charging chip 221. The current regulation flag bit indicates the current regulation status.

[0139] S210, maintain the current threshold unchanged.

[0140] S211. Use the current step value to increase the current threshold.

[0141] S212. Configure the first switched capacitor charging chip 221 to operate in bypass mode.

[0142] The above combination Figure 11 The illustrated electronic device 200 provides a detailed description of the charging method. In this embodiment, even if the charging device does not support proprietary protocols and PPS protocols, the electronic device 200 can still control the first switched capacitor charging chip 221 to charge the battery 270 via fast charging, and utilize the current regulation protection function of the first switched capacitor charging chip 221 to increase the maximum charging current, thereby matching the maximum charging power of the electronic device 200 with the maximum output power of the charging device. It is understood that in... Figure 6 In the illustrated electronic device 100, when the first charging chip 121 does not have a current regulation protection function, for example, if the first charging chip 121 includes a second switched capacitor charging chip, and the second switched capacitor charging chip is a non-charge pump switched capacitor charging chip, a chip with a current regulation protection function needs to be added to the electronic device. For example, a current limiting chip can be added between the first charging chip 121 and the battery 170. The current limiting chip implements the current regulation protection function by controlling the internal power switch. The process of the current limiting chip implementing the current regulation protection function may include: detecting the output current; when the output current is greater than the current threshold, adjusting the duty cycle or frequency of the power switch to control the operating mode of the power switch, thereby adjusting the output current.

[0143] For example, such as Figure 13 As shown, the electronic device 300 includes a charging interface 310, a charging module 320, a proprietary protocol chip 330, a PD protocol chip 340, a system-on-a-chip 350, a fuel gauge 360, and a battery 370. The charging module 320 includes a first charging chip 321, a second charging chip 322, and a current limiting chip 323.

[0144] Charging interface 310 is electrically connected to the first charging chip 321, the second charging chip 322, the proprietary protocol chip 330, and the PD protocol chip 340. System-on-a-chip 350 is electrically connected via I2C to the first charging chip 321, the second charging chip 322, the current limiting chip 323, the proprietary protocol chip 330, the PD protocol chip 340, and the fuel gauge 360. The current limiting chip 323 is connected between the first charging chip 321 and the battery 370. The second charging chip 322 is electrically connected to the battery 370. The fuel gauge 360 ​​is electrically connected to the battery 370 and is used to detect the voltage and current of the battery 370.

[0145] In this embodiment, the first charging chip 321 includes a second switched capacitor charging chip, which does not have a current regulation protection function. Based on the current regulation protection function of the current limiting chip 323, the system-on-a-chip 350 executes the charging method. For example, as... Figure 14 As shown, the charging method includes the following steps:

[0146] S301. Detect the port type of the charging device according to the BC1.2 protocol.

[0147] S302. Determine whether the port type of the charging device is HVDCP.

[0148] If yes, proceed to steps S303-S304; otherwise, proceed to step S312, and then proceed to steps S307-S309.

[0149] S303 communicates with the charging device via the proprietary protocol chip 330.

[0150] S304. Determine whether the charging device supports proprietary protocols.

[0151] If yes, proceed to step S305; otherwise, proceed to steps S306-S309.

[0152] S305, controls the first charging chip 321 to charge the battery 370.

[0153] S306, the first charging chip 321 is configured to operate in a switching mode.

[0154] S307 enables the current regulation and protection function of the current limiting chip 323.

[0155] In this embodiment, the current limiting chip 323 includes an EN pin. The system-on-a-chip 350 enables the current regulation and protection function of the current limiting chip 323 by pulling down the voltage of the EN pin of the current limiting chip 323.

[0156] S308 controls the first charging chip 321 to charge the battery 370.

[0157] S309. Determine whether the current limiting chip 323 meets the power matching conditions.

[0158] If yes, proceed to step S310; otherwise, proceed to step S311 and return to step S309.

[0159] In this embodiment, the current limiting chip 323 meeting the power matching conditions may include the input voltage of the current limiting chip 323 being less than or equal to a voltage threshold, or the current adjustment flag bit of the current limiting chip 323 indicating that current adjustment is complete.

[0160] It is understandable that the VI characteristics of the current limiting chip 323 are similar to... Figures 9 to 10 The VI characteristics of the first charging chip 121 shown are roughly the same. Based on the VI characteristics of the current limiting chip 323, when the input voltage of the current limiting chip 323 is less than or equal to the voltage threshold, it indicates that the current regulation protection function of the current limiting chip 323 is ineffective. When the input voltage of the current limiting chip 323 is greater than the voltage threshold, it indicates that the current regulation protection function of the current limiting chip 323 is effective.

[0161] The system-on-a-chip 350 can query the current regulation flag bit by reading the register inside the current limiting chip 323. The current regulation flag bit indicates the current regulation status.

[0162] S310, maintain the current threshold unchanged.

[0163] S311, Use current step value to increase current threshold.

[0164] In this embodiment, when the output current of the current limiting chip 323 is greater than the current threshold, the current limiting chip 323 will adjust the output current to keep it below the current threshold. When the current threshold increases, the maximum output current of the current limiting chip 323 increases, thereby increasing the maximum charging power of the electronic device 300 to match the maximum output power of the charging device.

[0165] S312, the first charging chip 321 is configured to operate in bypass mode.

[0166] The above combination Figure 13 The illustrated electronic device 300 provides a detailed description of the charging method. In this embodiment, even if the charging device does not support proprietary protocols and PPS protocols, the electronic device 300 can still control the first charging chip 321 to charge the battery 370 via fast charging, and utilize the current regulation and protection function of the current limiting chip 323 to increase the maximum charging current, thereby matching the maximum charging power of the electronic device 300 with the maximum output power of the charging device.

[0167] In this embodiment, the second charging chip 322 includes a buck charging chip or a buck-boost charging chip. Figure 14The charging method shown also includes: when the voltage of the battery 370 is less than the safe voltage threshold, the electronic device 300 controls the second charging chip 322 to charge the battery 370.

[0168] It is understandable that when the voltage of battery 370 is less than the safe voltage threshold, it means that battery 370 is over-discharged. The second charging chip 322 can slowly increase the voltage of battery 370 with a small current, which helps to avoid damage to battery 370 caused by sudden large current surge.

[0169] exist Figure 13 In the illustrated electronic device 300, the charging module 320 includes a first charging chip 321, a second charging chip 322, and a current limiting chip 323. In other embodiments, the charging module 320 may not include the second charging chip 322.

[0170] For example, such as Figure 15 As shown, the electronic device 400 includes a charging interface 410, a charging module 420, a proprietary protocol chip 430, a PD protocol chip 440, a system-on-a-chip 450, a fuel gauge 460, and a battery 470. The charging module 420 includes a second switched-capacitor charging chip 421 and a current-limiting chip 422.

[0171] Charging interface 410 is electrically connected to the second switched-capacitor charging chip 421, the proprietary protocol chip 430, and the PD protocol chip 440. System-on-a-chip 450 is electrically connected via I2C to the second switched-capacitor charging chip 421, the current limiting chip 422, the proprietary protocol chip 430, the PD protocol chip 440, and the fuel gauge 460. The current limiting chip 422 is connected between the second switched-capacitor charging chip 421 and the battery 470. The fuel gauge 460 is electrically connected to the battery 470 and is used to detect the voltage and current of the battery 470.

[0172] In this embodiment, based on the current regulation and protection function of the current limiting chip 422, the system-on-a-chip 450 executes the charging method.

[0173] For example, such as Figure 16 As shown, the charging method includes the following steps:

[0174] S401. Detect the port type of the charging device according to the BC1.2 protocol.

[0175] S402. Determine whether the port type of the charging device is HVDCP.

[0176] If yes, proceed to steps S403-S404; otherwise, proceed to step S412, and then proceed to steps S407-S409.

[0177] S403 communicates with the charging device via the proprietary protocol chip 430.

[0178] S404. Determine whether the charging device supports proprietary protocols.

[0179] If yes, proceed to step S405; otherwise, proceed to steps S406-S409.

[0180] S405 controls the second switched capacitor charging chip 421 to charge the battery 470.

[0181] S406. Configure the second switched capacitor charging chip 421 to operate in conversion mode.

[0182] S407 enables the current regulation and protection function of the current limiting chip 422.

[0183] S408 controls the second switched capacitor charging chip 421 to charge the battery 470.

[0184] S409. Determine whether the current limiting chip 422 meets the power matching conditions.

[0185] If yes, proceed to step S410; otherwise, proceed to step S411 and return to step S409.

[0186] In this embodiment, the current limiting chip 422 meeting the power matching conditions may include the input voltage of the current limiting chip 422 being less than or equal to a voltage threshold, or the current adjustment flag bit of the current limiting chip 422 indicating that current adjustment is complete.

[0187] It is understandable that the VI characteristics of the current limiting chip 422 are similar to... Figures 9 to 10 The VI characteristics of the first charging chip 121 shown are roughly the same. Based on the VI characteristics of the current limiting chip 422, when the input voltage of the current limiting chip 422 is less than or equal to the voltage threshold, it indicates that the current regulation protection function of the current limiting chip 422 is ineffective. When the input voltage of the current limiting chip 422 is greater than the voltage threshold, it indicates that the current regulation protection function of the current limiting chip 422 is effective.

[0188] The system-on-a-chip 450 can query the current regulation flag bit by reading the register inside the current limiting chip 422. The current regulation flag bit indicates the current regulation status.

[0189] S410, maintain the current threshold unchanged.

[0190] S411. Use current step value to increase current threshold.

[0191] S412, The second switched capacitor charging chip 421 is configured to operate in bypass mode.

[0192] The above combination Figure 15The illustrated electronic device 400 provides a detailed description of the charging method. In this embodiment, even if the charging device does not support the proprietary protocol and the PPS protocol, the electronic device 400 can still control the second switched capacitor charging chip 421 to charge the battery 470 via fast charging, and utilize the current regulation and protection function of the current limiting chip 422 to increase the maximum charging current, thereby matching the maximum charging power of the electronic device 400 with the maximum output power of the charging device.

[0193] Understandably, adding a chip with current regulation and protection functions to electronic devices would occupy additional deployment space on the motherboard, affecting the motherboard layout and routing, thus increasing hardware costs. To reduce hardware costs, control logic for current regulation and protection can be added to the battery protection IC, implementing the current regulation and protection function through the power switch inside the battery protection chip. The process of implementing current regulation and protection in the battery protection chip may include: detecting the output current; when the output current exceeds a current threshold, adjusting the voltage at the control terminal of the power switch to make the power switch operate in the linear region, thereby changing the on-resistance of the power switch and thus adjusting the output current.

[0194] For example, such as Figure 17 As shown, the electronic device 500 includes a charging interface 510, a charging module 520, a proprietary protocol chip 530, a PD protocol chip 540, a system-on-a-chip 550, a fuel gauge 560, and a battery 570. The charging module 520 includes a first charging chip 521 and a second charging chip 522.

[0195] The battery 570 includes a cell 571 and a battery protection chip 572. The battery protection chip 572 is electrically connected to the cell 571 and is deployed on a protection board.

[0196] Charging interface 510 is electrically connected to the first charging chip 521, the second charging chip 522, the proprietary protocol chip 530, and the PD protocol chip 540. System-on-a-chip 550 is electrically connected via I2C to the first charging chip 521, the second charging chip 522, the proprietary protocol chip 530, the PD protocol chip 540, the battery protection chip 572, and the fuel gauge 560. The first charging chip 521 and the second charging chip 522 are electrically connected to the battery protection chip 572. The fuel gauge 560 is electrically connected to the battery cell 571 and is used to detect the voltage and current of the battery cell 571.

[0197] In this embodiment, the first charging chip 521 includes a second switched capacitor charging chip, which does not have a current regulation protection function. Based on the current regulation protection function of the battery protection chip 572, the system-on-a-chip 550 executes the charging method. For example, as... Figure 18As shown, the charging method includes the following steps:

[0198] S501. Detect the port type of the charging device according to the BC1.2 protocol.

[0199] S502. Determine whether the port type of the charging device is HVDCP.

[0200] If yes, proceed to steps S503-S504; otherwise, proceed to step S512, and then proceed to steps S507-S509.

[0201] S503 communicates with the charging device via the proprietary protocol chip 530.

[0202] S504. Determine whether the charging device supports proprietary protocols.

[0203] If yes, proceed to step S505; otherwise, proceed to steps S506-S509.

[0204] S505 controls the first charging chip 521 to charge the battery 570.

[0205] S506, the first charging chip 521 is configured to operate in a switching mode.

[0206] S507 enables the current regulation protection function of the battery protection chip 572.

[0207] In this embodiment, the battery protection chip 572 includes an EN pin. The system-on-a-chip 550 enables the current regulation protection function of the battery protection chip 572 by pulling down the voltage of the EN pin of the battery protection chip 572.

[0208] S508 controls the first charging chip 521 to charge the battery 570.

[0209] S509. Determine whether the battery protection chip 572 meets the power matching conditions.

[0210] If yes, proceed to step S510; otherwise, proceed to step S511 and return to step S509.

[0211] In this embodiment, the battery protection chip 572 meeting the power matching conditions may include the input voltage of the battery protection chip 572 being less than or equal to a voltage threshold, or the current adjustment flag bit of the battery protection chip 572 indicating that current adjustment is complete.

[0212] It is understandable that the VI characteristics of the battery protection chip 572 are similar to... Figures 9 to 10The VI characteristics of the first charging chip 121 shown are roughly the same. Based on the VI characteristics of the battery protection chip 572, when the input voltage of the battery protection chip 572 is less than or equal to the voltage threshold, it indicates that the current regulation protection function of the battery protection chip 572 is ineffective. When the input voltage of the battery protection chip 572 is greater than the voltage threshold, it indicates that the current regulation protection function of the battery protection chip 572 is effective.

[0213] The system-on-a-chip 550 can query the current regulation flag bit by reading the register inside the battery protection chip 572. The current regulation flag bit indicates the current regulation status.

[0214] S510, maintain the current threshold unchanged.

[0215] S511, Use current step value to increase current threshold.

[0216] In this embodiment, when the output current of the battery protection chip 572 exceeds the current threshold, the battery protection chip 572 adjusts the output current to keep it below the current threshold. When the current threshold increases, the maximum output current of the battery protection chip 572 increases, thereby increasing the maximum charging power of the electronic device 500 to match the maximum output power of the charging device.

[0217] S512, the first charging chip 521 is configured to operate in bypass mode.

[0218] The above combination Figure 17 The illustrated electronic device 500 provides a detailed description of the charging method. In this embodiment, even if the charging device does not support the proprietary protocol and the PPS protocol, the electronic device 500 can still control the first charging chip 521 to charge the battery 570 via fast charging, and utilize the current regulation protection function of the battery protection chip 572 to increase the maximum charging current, thereby matching the maximum charging power of the electronic device 500 with the maximum output power of the charging device.

[0219] In this embodiment, the second charging chip 522 includes a buck charging chip or a buck-boost charging chip. Figure 18 The charging method shown also includes: when the voltage of the battery 570 is less than the safe voltage threshold, the electronic device 500 controls the second charging chip 522 to charge the battery 570.

[0220] It is understandable that when the voltage of battery 570 is less than the safe voltage threshold, it means that battery 570 is over-discharged. The second charging chip 522 can slowly increase the voltage of battery 570 with a small current, which helps to avoid damage to battery 570 caused by sudden large current surge.

[0221] exist Figure 17In the illustrated electronic device 500, the charging module 520 includes a first charging chip 521 and a second charging chip 522. In other embodiments, the charging module 520 may not include the second charging chip 522.

[0222] For example, such as Figure 19 As shown, the electronic device 600 includes a charging interface 610, a charging module 620, a proprietary protocol chip 630, a PD protocol chip 640, a system-on-a-chip 650, a fuel gauge 660, and a battery 670. The charging module 620 includes a second switched-capacitor charging chip 621.

[0223] Battery 670 includes cell 671 and battery protection chip 672. Battery protection chip 672 is electrically connected to cell 671 and is deployed on a protection board.

[0224] The charging interface 610 is electrically connected to the second switched-capacitor charging chip 621, the proprietary protocol chip 630, and the PD protocol chip 640. The system-on-a-chip 650 is electrically connected via I2C to the second switched-capacitor charging chip 621, the proprietary protocol chip 630, the PD protocol chip 640, the battery protection chip 672, and the fuel gauge 660. The second switched-capacitor charging chip 621 is electrically connected to the battery protection chip 672. The fuel gauge 660 is electrically connected to the battery cell 671 and is used to detect the voltage and current of the battery cell 671.

[0225] In this embodiment, the second switched capacitor charging chip 621 does not have a current regulation protection function. Based on the current regulation protection function of the battery protection chip 672, the system-on-a-chip 650 executes the charging method. For example, as... Figure 20 As shown, the charging method includes the following steps:

[0226] S601. Detect the port type of the charging device according to the BC1.2 protocol.

[0227] S602. Determine whether the port type of the charging device is HVDCP.

[0228] If yes, proceed to steps S603-S604; otherwise, proceed to step S612, and then proceed to steps S607-S609.

[0229] S603 communicates with the charging device via the proprietary protocol chip 630.

[0230] S604. Determine whether the charging device supports a proprietary protocol.

[0231] If yes, proceed to step S605; otherwise, proceed to steps S606-S609.

[0232] S605 controls the second switched capacitor charging chip 621 to charge the battery 670.

[0233] S606, The second switched capacitor charging chip 621 is configured to operate in a switching mode.

[0234] S607 enables the current regulation protection function of battery protection chip 672.

[0235] S608 controls the second switched capacitor charging chip 621 to charge the battery 670.

[0236] S609. Determine whether the battery protection chip 672 meets the power matching conditions.

[0237] If yes, proceed to step S610; otherwise, proceed to step S611 and return to step S609.

[0238] In this embodiment, the power matching condition of the battery protection chip 672 may include the input voltage of the battery protection chip 672 being less than or equal to a voltage threshold, or the current adjustment flag of the battery protection chip 672 indicating that current adjustment is complete.

[0239] It is understandable that the VI characteristics of the battery protection chip 672 are similar to... Figures 9 to 10 The VI characteristics of the second charging chip 122 shown are largely the same. Based on the VI characteristics of the battery protection chip 672, when the input voltage of the battery protection chip 672 is less than or equal to the voltage threshold, it indicates that the current regulation protection function of the battery protection chip 672 is ineffective. When the input voltage of the battery protection chip 672 is greater than the voltage threshold, it indicates that the current regulation protection function of the battery protection chip 672 is effective.

[0240] The system-on-a-chip 650 can query the current regulation flag bit by reading the register inside the battery protection chip 672. The current regulation flag bit indicates the current regulation status.

[0241] S610, maintain the current threshold unchanged.

[0242] S611, Use current step value to increase current threshold.

[0243] In this embodiment, when the output current of the battery protection chip 672 exceeds the current threshold, the battery protection chip 672 adjusts the output current to keep it below the current threshold. When the current threshold increases, the maximum output current of the battery protection chip 672 increases, thereby increasing the maximum charging power of the electronic device 600 to match the maximum output power of the charging device.

[0244] S612, The second switched capacitor charging chip 621 is configured to operate in bypass mode.

[0245] The above combination Figure 19The illustrated electronic device 600 provides a detailed description of the charging method. In this embodiment, even if the charging device does not support proprietary protocols and PPS protocols, the electronic device 600 can still control the second switched capacitor charging chip 621 to charge the battery 670 via fast charging, and utilize the current regulation protection function of the battery protection chip 672 to increase the maximum charging current, thereby matching the maximum charging power of the electronic device 600 with the maximum output power of the charging device.

[0246] It is understood that the various functions or steps performed by the electronic device in the above embodiments can also be applied to computer-readable storage media or computer program products.

[0247] The computer-readable storage medium stores computer instructions, which, when executed by a processor, implement the various functions or steps performed by the electronic device in the above embodiments.

[0248] Computer-readable storage media include volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer-readable storage media include, but are not limited to, random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer.

[0249] The computer program product includes computer instructions, which, when executed by a processor, implement the various functions or steps performed by the electronic device in the above embodiments.

[0250] The embodiments of this application have been described in detail above with reference to the accompanying drawings. However, this application is not limited to the above embodiments. Within the scope of knowledge possessed by those skilled in the art, various changes can be made without departing from the spirit of this application.

Claims

1. A charging method applied to electronic devices, characterized in that, The electronic device includes a charging module and a battery, the charging module being electrically connected to the battery, and the method includes: When the port type of the charging device is detected to be a high-voltage dedicated charging port HVDCP, and it is determined that the charging device does not support the proprietary protocol and the programmable power supply PPS protocol, the current regulation protection function of the charging module is enabled. The charging module is controlled to charge the battery. The input voltage and output voltage of the charging module have a fixed ratio relationship, and the input voltage and output voltage are not equal.

2. The method as described in claim 1, characterized in that, The method further includes: When it is determined that the input voltage of the charging module is greater than the voltage threshold, or when it is determined that the current adjustment flag of the charging module indicates that the current adjustment is not completed, the current threshold is increased.

3. The method as described in claim 2, characterized in that, Increasing the current threshold includes: The current threshold is gradually increased using current step values.

4. The method as described in claim 3, characterized in that, The method further includes: When it is determined that the output current of the charging module is greater than the current threshold, the output current of the charging module is reduced.

5. The method according to any one of claims 2-4, characterized in that, The method further includes: When it is determined that the input voltage of the charging module is less than or equal to the voltage threshold, or when it is determined that the current adjustment flag of the charging module indicates that the current adjustment is complete, the current threshold is maintained unchanged.

6. The method according to any one of claims 1-5, characterized in that, The method further includes: When the port type of the charging device is detected to be a dedicated charging port (DCP), the current regulation protection function of the charging module is enabled. The charging module is controlled to charge the battery, and the input voltage and output voltage of the charging module are equal.

7. The method according to any one of claims 1-6, characterized in that, The current regulation protection function that enables the charging module includes: Lower the voltage of the enable pin of the charging module.

8. The method according to any one of claims 1-7, characterized in that, The charging module includes a first charging chip, and the first charging chip includes a first switched capacitor charging chip. The current regulation protection function that enables the charging module includes: Enable the current regulation protection function of the first switched capacitor charging chip.

9. The method according to any one of claims 1-7, characterized in that, The charging module includes a first charging chip and a current limiting chip. The first charging chip includes a second switched capacitor charging chip, and the current limiting chip is connected between the second switched capacitor charging chip and the battery. The current regulation protection function that enables the charging module includes: Enable the current regulation and protection function of the current limiting chip.

10. The method as described in claim 8 or 9, characterized in that, The charging module further includes a second charging chip, which is electrically connected to the battery; the method further includes: When the voltage of the battery is lower than the safe voltage threshold, the second charging chip is controlled to charge the battery.

11. A charging method applied to electronic devices, characterized in that, The electronic device includes a first charging chip and a battery. The first charging chip includes a second switched-capacitor charging chip. The battery includes a battery cell and a battery protection chip, wherein the battery protection chip is connected between the second switched-capacitor charging chip and the battery cell. The method includes: When the port type of the charging device is detected to be a high-voltage dedicated charging port HVDCP, and it is determined that the charging device does not support the proprietary protocol and the programmable power supply PPS protocol, the current regulation protection function of the battery protection chip is enabled. The second switched capacitor charging chip is controlled to charge the battery. The input voltage and output voltage of the second switched capacitor charging chip have a fixed ratio relationship, and the input voltage and output voltage are not equal.

12. The method as described in claim 11, characterized in that, The method further includes: When it is determined that the input voltage of the battery protection chip is greater than the voltage threshold, or when it is determined that the current adjustment flag of the battery protection chip indicates that the current adjustment is not completed, the current threshold is increased.

13. The method as described in claim 12, characterized in that, Increasing the current threshold includes: The current threshold is gradually increased using current step values.

14. The method as described in claim 13, characterized in that, The method further includes: When it is determined that the output current of the battery protection chip is greater than the current threshold, the output current of the battery protection chip is reduced.

15. The method according to any one of claims 12-14, characterized in that, The method further includes: When it is determined that the input voltage of the battery protection chip is less than or equal to the voltage threshold, or when it is determined that the current adjustment flag of the battery protection chip indicates that the current adjustment is complete, the current threshold is maintained unchanged.

16. The method according to any one of claims 11-15, characterized in that, The method further includes: When the port type of the charging device is detected to be a dedicated charging port (DCP), the current regulation protection function of the battery protection chip is enabled. The second switched capacitor charging chip is controlled to charge the battery, and the input voltage and output voltage of the second switched capacitor charging chip are equal.

17. The method according to any one of claims 11-16, characterized in that, The current regulation protection function that enables the battery protection chip includes: Lower the voltage of the enable pin of the battery protection chip.

18. The method according to any one of claims 11-17, characterized in that, The electronic device further includes a second charging chip, which is connected in parallel with the first charging chip; the method further includes: When the voltage of the battery is lower than the safe voltage threshold, the second charging chip is controlled to charge the battery.

19. An electronic device, characterized in that, It includes a charging module, a battery, and a processor, wherein the charging module is electrically connected to the battery and the processor; the processor is configured to: When the port type of the charging device is detected to be a high-voltage dedicated charging port (HVDCP), and it is determined that the charging device does not support the proprietary protocol and the programmable power supply (PPS) protocol, the current regulation protection function of the charging module is enabled, and the charging module is controlled to charge the battery; wherein, the input voltage and output voltage of the charging module have a fixed proportional relationship, and the input voltage and the output voltage are not equal.

20. An electronic device, characterized in that, It includes a first charging chip, a battery, and a processor. The first charging chip includes a second switched-capacitor charging chip. The battery includes a battery cell and a battery protection chip. The battery protection chip is connected between the second switched-capacitor charging chip and the battery cell. The processor is electrically connected to the second switched-capacitor charging chip and the battery protection chip. The processor is configured to: When the port type of the charging device is detected to be a high-voltage dedicated charging port (HVDCP), and it is determined that the charging device does not support the proprietary protocol and the programmable power supply (PPS) protocol, the current regulation protection function of the battery protection chip is enabled, and the second switched capacitor charging chip is controlled to charge the battery; wherein, the input voltage and output voltage of the second switched capacitor charging chip have a fixed proportional relationship, and the input voltage and the output voltage are not equal.