Charging circuit, electronic equipment and charging control method
By introducing a first switch into the charging circuit and controlling it to turn off when the target charger is present, the problem of common-mode inductor burnout caused by high current in the first communication terminal branch of the processing module is solved, thus achieving the safety and reliability of the charging circuit.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- HONOR DEVICE CO LTD
- Filing Date
- 2024-10-23
- Publication Date
- 2026-05-01
AI Technical Summary
During the charging process, a large current exists in the branch where the first communication terminal of the processing module is located, causing a large current to continuously flow through the common-mode inductor, which may cause the common-mode inductor to burn out.
By introducing a first switch into the charging circuit, the conduction and cutoff of the branch where the first communication terminal of the processing module is located are controlled, so as to avoid large current passing through the common-mode inductor. The specific steps include controlling the first switch to turn off when the charger is determined to be the target charger.
This effectively prevents the common-mode inductor from burning out, ensuring the safety and reliability of the charging circuit.
Smart Images

Figure CN121965890A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of charging technology, and in particular to a charging circuit, electronic device and charging control method. Background Technology
[0002] Electronic devices such as mobile phones, tablets, and smartwatches typically include a battery and a charging circuit for charging the battery. The charging circuit includes a charging port, a processing module, and a charging chip. The charging chip is connected between the power terminal of the charging port and the battery, so that when the charging port is connected to a charger, the charger can charge the battery through the charging chip.
[0003] In related technologies, the first communication terminal of the processing module and the first communication terminal of the charging chip are both connected to the first data terminal of the charging port via a common-mode inductor. Thus, when the charger charges the battery through the charging chip, the charging chip or processing module can communicate with the charger.
[0004] However, in related technologies, when the charging chip communicates with the charger, there is also a large current in the branch where the first communication terminal of the processing module is located. This will cause a large current to continuously flow through the common mode inductor, thereby burning out the common mode inductor. Summary of the Invention
[0005] This application provides a charging circuit, an electronic device, and a charging control method. The charging circuit can disconnect the branch containing the first communication terminal of the processing module when the charging chip is communicating with the charger, thereby preventing a continuous large current from flowing through the common-mode inductor and preventing the common-mode inductor from burning out. The technical solution is as follows:
[0006] In a first aspect, a charging circuit is provided. The charging circuit is applied to an electronic device to charge a battery within the device. The charging circuit includes a charging port, a first inductor, a first switch, a processing module, and a charging chip.
[0007] The first inductor is a common-mode inductor used to filter common-mode noise in the circuit. The first terminal of the first inductor is connected to the first data terminal of the charging port. The second terminal of the first inductor is connected to the first terminal of the first switch. The second terminal of the first switch is connected to the first communication terminal of the processing module. Thus, when the first switch is on, the processing module is connected to the first data terminal of the charging port through the first switch and the first inductor. When the first switch is off, the processing module is disconnected from the first inductor, i.e., the branch containing the processing module is disconnected. The output terminal of the processing module is connected to the control terminal of the first switch to control the on / off state of the first switch.
[0008] The first communication terminal of the charging chip is connected to the first terminal of the first switch. That is, the first communication terminal of the charging chip is connected to the first data terminal of the charging port via a first inductor. The first terminal of the charging chip is connected to the power terminal of the charging port. The second terminal of the charging chip is connected to the battery of the electronic device. Thus, when the charging port is connected to the charger, the charger can charge the battery through the charging chip.
[0009] In this embodiment of the application, the processing module is used to perform the following steps: when it is determined that the charging port is connected to the charger, the processing module determines whether the charger is the target charger; if it is determined that the charger is the target charger, the processing module controls the first switch to turn off.
[0010] The target charger refers to a charger capable of charging the battery via a charging chip, where charging via the charging chip does not require communication with the charger through the first communication terminal of the processing module. For example, when the target charger charges the battery via the charging chip in the charging circuit, communication can occur between the charging chip and the charger, or between the processing module and the charger via communication terminals other than the first communication terminal. In the charging circuit provided in this application embodiment, when the processing module determines that the charging port is connected to the charger and that communication with the charger through the first communication terminal of the processing module is not required, it disconnects the branch containing the first communication terminal of the processing module. This prevents a continuous large current from flowing through the common-mode inductor, thus preventing the common-mode inductor from burning out.
[0011] The steps performed by the processing module are explained below.
[0012] In some embodiments, before performing the step "when determining that the charging port is connected to the charger, the processing module determines whether the charger is the target charger", the processing module is further configured to perform the following step: if a preset voltage is detected at the power supply terminal of the charging port, the processing module determines that the charging port is connected to the charger.
[0013] In the first possible scenario, the step performed by the processing module, "when determining that the charging port is connected to the charger, the processing module determines whether the charger is the target charger," specifically includes:
[0014] When determining that the charging port is connected to the charger, the processing module determines whether the charger's output port is a dedicated charging port; if the charger's output port is a dedicated charging port, the processing module determines whether the charger is an SCP charger; if the charger is an SCP charger, the processing module determines that the charger is the target charger.
[0015] The step "If the charger is determined to be the target charger, the processing module controls the first switch to turn off" executed by the processing module is as follows: If the charger is determined to be the target charger, and the electronic device and the charger meet the preset charging conditions, the processing module controls the first switch to turn off.
[0016] After executing the step "If the charger is determined to be the target charger, the processing module controls the first switch to turn off", the processing module is also used to execute the following step: the processing module controls the charging chip to work so as to charge the battery through the charging chip.
[0017] In some embodiments, the processing module is further configured to perform the following steps: if the output port of the charger is not a dedicated charging port, or if the output port of the charger is a dedicated charging port and the charger is not an SCP charger, then the processing module keeps the first switch on and charges the battery through the charging management unit in the processing module.
[0018] In the second possible scenario, the step performed by the processing module, "when determining that the charging port is connected to the charger, the processing module determines whether the charger is the target charger," specifically includes:
[0019] When the charging port is connected to the charger, the processing module determines whether the charger is a PD charger; if the charger is a PD charger, the processing module determines whether the charger supports programmable power; if the charger supports programmable power, the processing module determines that the charger is the target charger.
[0020] The step "If the charger is determined to be the target charger, the processing module controls the first switch to turn off" executed by the processing module is as follows: If the charger is determined to be the target charger, and the electronic device and the charger meet the preset charging conditions, the processing module controls the first switch to turn off.
[0021] After executing the step "If the charger is determined to be the target charger, the processing module controls the first switch to turn off", the processing module is also used to execute the following step: the processing module controls the charging chip to work so as to charge the battery through the charging chip.
[0022] In some embodiments, the processing module is further configured to perform the following steps: if the charger is not a PD charger, or if the charger is a PD charger and the charger does not support programmable power, the processing module keeps the first switch on and charges the battery through the charging management unit in the processing module.
[0023] In the third possible scenario, the processing module is also used to perform the following steps: when it is determined that the charging port is connected to the charger, the processing module determines whether the charger is a UFCS charger; if the charger is a UFCS charger, and it is determined that the electronic device and the charger meet the preset charging conditions, the processing module keeps the first switch on; the processing module controls the charging chip to work so as to charge the battery through the charging chip.
[0024] In some embodiments, the processing module is further configured to perform the following steps: if it is determined that the charger is not a UFCS charger, the processing module keeps the first switch on and charges the battery through the charging management unit in the processing module.
[0025] In some embodiments, when the charger is disconnected from the charging port, the processing module is further configured to perform the following steps:
[0026] If it is determined that the connection between the charging port and the charger is disconnected, the processing module controls the first switch to turn off within a preset time period; after the preset time period ends, the processing module stops controlling the first switch; the processing module sets the current output to the battery to zero.
[0027] The circuit structure of the charging circuit will be further explained below.
[0028] In some embodiments, the charging circuit further includes a first diode. The first diode is a transient voltage suppressor diode. A first terminal of the first diode is connected to a second terminal of the first switch, and a second terminal of the first diode is connected to ground.
[0029] Furthermore, the charging circuit also includes: a second diode, a notch filter network, and a resistor. The second diode is a transient voltage suppressor diode. The first terminal of the second diode is connected to the second terminal of the first inductor, and the second terminal of the second diode is connected to ground. The notch filter network is connected in series between the second terminal of the first inductor and the first terminal of the first switch. The resistor is connected in series between the second terminal of the first switch and the first communication terminal of the processing module.
[0030] In some embodiments, the charging circuit further includes a second inductor and a second switch. The second inductor is a common-mode inductor used to filter common-mode noise in the circuit. A first terminal of the second inductor is connected to a second data terminal of the charging port. A second terminal of the second inductor is connected to a first terminal of the second switch. A second terminal of the second switch is connected to a second communication terminal of the processing module. Thus, when the second switch is turned on, the processing module is connected to the second data terminal of the charging port through the second switch and the second inductor. When the second switch is turned off, the processing module is disconnected from the second inductor. The output terminal of the processing module is connected to the control terminal of the second switch for controlling the turning on and off of the second switch.
[0031] The second communication terminal of the charging chip is connected to the first terminal of the second switch. That is, the second communication terminal of the charging chip is connected to the second data terminal of the charging port via a second inductor. Here, the processing module is also used to: if it determines that the charger is the target charger, the processing module controls the second switch to turn off. That is, the first switch and the second switch are simultaneously turned on or off.
[0032] In some embodiments, the processing module includes a charging management unit and a processing unit. A first communication terminal of the charging management unit is connected to a second terminal of the first switch.
[0033] The charging management unit includes a third switch and a step-down circuit. The first terminal of the third switch is connected to the power supply terminal of the charging port. The second terminal of the third switch is connected to the first terminal of the step-down circuit and the control terminal of the first switch. The second terminal of the step-down circuit is connected to the battery.
[0034] The processing unit is connected to the charging management unit. The processing unit is used to: determine whether the charger is the target charger when it is determined that the charging port is connected to the charger; if the charger is determined to be the target charger, the processing unit controls the third switch to turn off so that the first switch is turned off.
[0035] Secondly, an electronic device is also provided. The electronic device includes a battery and a charging circuit as described in any embodiment of the first aspect. The battery is connected to a second terminal of a charging chip to charge the battery via the charging chip.
[0036] Thirdly, a charging control method is also provided. This charging control method is applied to the charging circuit in any embodiment of the first aspect.
[0037] The charging control method includes the following steps: when it is determined that the charging port is connected to the charger, the processing module determines whether the charger is the target charger; if it is determined that the charger is the target charger, the processing module controls the first switch to turn off.
[0038] The target charger refers to a charger capable of charging the battery via a charging chip, where charging via the charging chip does not require communication with the charger through the first communication terminal of the processing module. The charging control method may further include the steps performed by the processing module in any of the embodiments of the first aspect.
[0039] The technical effects achieved by the second and third aspects mentioned above are similar to those achieved by the corresponding technical means in the first aspect mentioned above, and will not be repeated here. Attached Figure Description
[0040] Figure 1 This is a schematic diagram of the appearance of an electronic device in related technologies;
[0041] Figure 2 This is a schematic diagram of a charging scenario for an electronic device in related technologies;
[0042] Figure 3 This is a schematic diagram of the exploded structure of an electronic device in related technologies;
[0043] Figure 4 This is the circuit structure diagram of the first charging circuit in the related technology;
[0044] Figure 5 This is a circuit diagram of the second type of charging circuit in the related technology;
[0045] Figure 6 This is a connection structure diagram of a charging management unit and a first switch in related technologies;
[0046] Figure 7 This is a flowchart of the first charging control method in the related technology;
[0047] Figure 8 This is a flowchart of the second charging control method in the related technology;
[0048] Figure 9 This is a flowchart of the third charging control method in related technologies;
[0049] Figure 10 It is a voltage-current characteristic curve of the first diode in the related technology;
[0050] Figure 11 This is a schematic diagram of the female header of the Type-C interface in related technologies;
[0051] Figure 12 This is a schematic diagram of the male connector of the Type-C interface in related technologies;
[0052] Figure 13 This is a circuit diagram of the third type of charging circuit in related technologies;
[0053] Figure 14 This is the circuit structure diagram of the fourth type of charging circuit in related technologies;
[0054] Figure 15 This is a connection structure diagram of a charging management unit and a first switch and a second switch in related technologies;
[0055] Figure 16 This is a circuit structure diagram of a charging circuit provided in an embodiment of this application;
[0056] Figure 17 This is a flowchart of the first charging control method provided in the embodiments of this application;
[0057] Figure 18This is a flowchart of the second charging control method provided in the embodiments of this application;
[0058] Figure 19 This is a flowchart of the third charging control method provided in the embodiments of this application;
[0059] Figure 20 This is a flowchart of the fourth charging control method provided in the embodiments of this application;
[0060] Figure 21 This is a flowchart of the fifth charging control method provided in the embodiments of this application;
[0061] Figure 22 This is an internal structure diagram of a processing unit provided in an embodiment of this application;
[0062] Figure 23 This is a voltage waveform diagram of the first charging circuit provided in the embodiments of this application;
[0063] Figure 24 This is a voltage waveform diagram of the second charging circuit provided in the embodiments of this application;
[0064] Figure 25 This is a voltage waveform diagram of the third charging circuit provided in the embodiments of this application;
[0065] Figure 26 This is a voltage waveform diagram of the fourth charging circuit provided in the embodiments of this application;
[0066] Figure 27 This is a voltage waveform diagram of the fifth charging circuit provided in the embodiments of this application;
[0067] Figure 28 This is a voltage waveform diagram of the sixth charging circuit provided in the embodiments of this application.
[0068] The meanings of the various symbols in the attached icons are as follows:
[0069] 10. Electronic device; 102. Charging icon; 110. Display screen; 120. Mid-frame; 121. Metal plate; 122. Top bezel; 123. Bottom bezel; 124. Left bezel; 125. Right bezel; 132. Motherboard; 134. Small board; 140. Battery; 150. Back cover; 162. Front camera; 164. Rear camera; 20. Charging circuit; 210. Charging port; 220. Processing module; 222. Charging management unit; 2222. Third switch; 2224. Buck circuit; 224. Processing unit; 230. Charging chip; 242. First switch; 244. Second switch; 252. First notch filter network; 254. Second notch filter network; 30. Charger; 32. Power adapter; 34. Charging cable. Detailed Implementation
[0070] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0071] It should be understood that "multiple" as mentioned in this application refers to two or more. In the description of this application, unless otherwise stated, " / " indicates "or," for example, A / B can mean A or B; "and / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist, for example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, to facilitate a clear description of the technical solutions of this application, the terms "first," "second," etc., are used to distinguish identical or similar items with essentially the same function and effect. Those skilled in the art will understand that the terms "first," "second," etc., do not limit the quantity or execution order, and that "first," "second," etc., do not necessarily imply differences.
[0072] Before providing a detailed explanation of the charging circuit provided in the embodiments of this application, the application scenarios and related technologies of the charging circuit will be described first. In the following description, the connection between two electronic devices is an electrical connection. Here, an electrical connection means that the two electronic devices can transmit electrical signals through the connection. The electrical connection between two electronic devices can be a direct connection through a wire or an indirect connection through other electronic devices.
[0073] Electronic devices 10 include mobile phones, tablets, wearable devices, etc. Wearable devices can be, for example, smartwatches, wristbands, etc. Figure 1 This is a schematic diagram of the appearance of an electronic device 10 in the related technology. Figure 2 This is a schematic diagram of a charging scenario for an electronic device 10 in related technologies. The electronic device 10 shown in the diagram is a mobile phone. Figure 1 and Figure 2 As shown, the electronic device 10 has a charging port 210. The charging port 210 is used to connect to a charger 30 to charge the electronic device 10. The charger 30 may include a connected power adapter 32 and a charging cable 34, and the charging port 210 is used to connect to the charging cable 34 of the charger 30. Generally, as... Figure 2 As shown, when the charger 30 charges the electronic device 10, the electronic device 10 will display a charging icon 102. The charging icon 102 is used to indicate that the electronic device 10 is in a charging state.
[0074] Figure 3 This is an exploded structural diagram of an electronic device 10 in related technologies. The electronic device 10 shown in the diagram is still a mobile phone. Figure 3As shown, the electronic device 10 includes: a display screen 110, a mid-frame 120, a motherboard 132, a small board 134, a battery 140, and a back cover 150. The mid-frame 120, motherboard 132, small board 134, and battery 140 are disposed between the display screen 110 and the back cover 150. The motherboard 132, small board 134, and battery 140 may be disposed on the mid-frame 120; for example, the motherboard 132, small board 134, and battery 140 may be disposed on the side of the mid-frame 120 facing the back cover 150. In other embodiments, the motherboard 132, small board 134, and battery 140 may also be disposed on the side of the mid-frame 120 facing the display screen 110.
[0075] The display screen 110 can be an organic light-emitting diode (OLED) display screen or a liquid crystal display (LCD) display screen. The display screen 110 may include a display panel and a touch panel. The display panel is used to output display content to the user; for example, when the charger 30 charges the electronic device 10, the display panel will display a charging icon 102. The touch panel is used to detect touch operations input by the user on the display screen 110.
[0076] The middle frame 120 may include a metal plate 121 and a border. The border surrounds the outer edge of the metal plate 121. Generally, the border can be a rectangle. For example, ... Figure 3 As shown, the frame may include a top frame 122 and a bottom frame 123 disposed opposite to each other, and a left frame 124 and a right frame 125 disposed opposite to each other between the top frame 122 and the bottom frame 123. In this embodiment, the side of the middle frame 120 is the surface enclosed by the top frame 122, the bottom frame 123, the left frame 124, and the right frame 125. The metal plate 121 may be an aluminum plate, an aluminum alloy, or a magnesium alloy. Each frame may be a metal frame, a ceramic frame, or a glass frame. The metal plate 121 and the frame may be connected by welding, snap-fitting, or integral molding, or the metal plate 121 and the frame may be connected by injection molding of plastic parts.
[0077] The motherboard 132 includes a circuit board, functional devices mounted on the circuit board, and other components mounted on the circuit board. The functional devices in the motherboard 132 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), and a baseband processor. Other components include, but are not limited to, resistors, capacitors, inductors, and sensors. The small board 134 also includes a circuit board, functional devices mounted on the circuit board, and other components mounted on the circuit board. The functional devices in the small board 134 include, but are not limited to, a microphone and a speaker. In this embodiment, the charging port 210 can be disposed on the small board 134, and the frame can have an opening so that the charging cable 34 can be connected to the charging port 210 through a switch on the frame. The motherboard 132 and the small board 134 can be connected via a flexible printed circuit (FPC) to allow electrical signal transmission between them. At least one of the motherboard 132 and the small board 134 can also be connected to the battery 140 via an FPC.
[0078] It is understandable that the motherboard 132 and the small board 134 may have protruding and / or recessed positions based on different components. The specific shape, component position, size, etc. of the motherboard 132 and the small board 134 are related to the design layout of the electronic device 10, and this application embodiment does not specifically limit them.
[0079] In some embodiments, such as Figure 3 As shown, the electronic device 10 may also include a camera and a flash (not shown). The camera may include a front-facing camera 162 and a rear-facing camera 164. The rear-facing camera 164 and the flash may be disposed on the side of the metal plate 121 facing the rear cover 150, and the rear cover 150 has mounting holes for mounting the flash and the rear-facing camera 164. The front-facing camera 162 may be disposed on the side of the metal plate 121 facing the display screen 110. In some embodiments, the front-facing camera 162 disposed within the electronic device 10 may include one or more cameras, and the rear-facing camera 164 may also include one or more cameras.
[0080] The electronic device 10 is provided with a charging circuit 20, which is used to charge the battery 140. Figure 4 This is a circuit structure diagram of a charging circuit 20 in related technologies. For example... Figure 4 As shown, in addition to the charging port 210, the charging circuit 20 also includes a first inductor L1, a processing module 220 and a charging chip 230.
[0081] The first inductor L1 is a common-mode inductor used to filter out common-mode noise in the circuit. The first end of the first inductor L1 is connected to the first data terminal DP of the charging port 210. The second end of the first inductor L1 is connected to the first communication terminal a1 of the processing module 220 and the first communication terminal a1 of the charging chip 230. Thus, when the charger 30 is connected to the charging port 210 of the electronic device 10, the charging chip 230 or the processing module 220 can communicate with the charger 30 through the first data terminal DP.
[0082] The processing module 220 also has a third communication terminal a3. The third communication terminal a3 of the processing module 220 is connected to the configuration channel terminal CC of the charging port 210. Thus, when the charger 30 is connected to the charging port 210 of the electronic device 10, the processing module 220 can also communicate with the charger 30 through the configuration channel terminal CC.
[0083] The first terminal b1 of the charging chip 230 is connected to the power terminal VBUS of the charging port 210, and the second terminal b2 of the charging chip 230 is connected to the battery 140 of the electronic device 10. Thus, when the charger 30 is connected to the charging port 210 of the electronic device 10, the charger 30 can charge the battery 140 through the charging chip 230. It is readily understood that in this embodiment, "the charger 30 is connected to the charging port 210 of the electronic device 10" means that the charger 30 can charge the battery 140 of the electronic device 10. In other words, "the charger 30 is connected to the charging port 210 of the electronic device 10" implies that the input terminal of the charger 30 is connected to a power source. For example, the connection of the input terminal of the charger 30 to a power source can mean that the input terminal of the power adapter 32 of the charger 30 is connected to AC power, or it can mean that the power adapter 32 of the charger 30 is replaced by a personal computer (PC) or a power bank capable of outputting electrical energy.
[0084] It's easy to understand that chargers 30 can be categorized according to the charging protocols they support. Common chargers 30 include: SCP chargers supporting the Super Charge Protocol (SCP), PD chargers supporting the Power Delivery Protocol (PD), UFCS chargers supporting the Universal Fast Charging Specification (UFCS), and other chargers. Generally, when charger 30 is an SCP charger and charging chip 230 supports the SCP protocol, charger 30 can charge battery 140 through charging chip 230, and communication between charging chip 230 and charger 30 occurs during the charging process. When charger 30 is a PD charger and supports a programmable power supply (PPS), and processing module 220 supports the PD protocol, charger 30 can charge battery 140 through charging chip 230, and communication between processing module 220 and charger 30 occurs during the charging process via its third communication terminal a3. When charger 30 is a UFCS charger and processing module 220 supports the UFCS protocol, charger 30 can charge battery 140 through charging chip 230, and during charging, processing module 220 communicates with charger 30 through its first communication terminal a1. When charger 30 is a PD charger and does not support programmable power, it will not charge battery 140 through charging chip 230, and during charging, processing module 220 communicates with charger 30 through its third communication terminal a3. When charger 30 is another type of charger, it will not charge battery 140 through charging chip 230, and during charging, processing module 220 communicates with charger 30 through its first communication terminal a1.
[0085] However, in related technologies, when the charging chip 230 communicates with the charger 30, there will also be a large current in the branch where the first communication terminal a1 of the processing module 220 is located. This will cause a large current to continuously flow through the first inductor L1, thereby burning out the first inductor L1.
[0086] The following section provides a detailed explanation of the relevant technologies and their existing problems.
[0087] Figure 5 This is a circuit diagram of another charging circuit 20 in related technologies. For example... Figure 5 As shown, the charging circuit 20 also includes a first switch 242 and a first diode D1.
[0088] The first switch 242 is connected in series between the first inductor L1 and the first communication terminal a1 of the processing module 220, and is also connected in parallel with the charging chip 230. That is, the first end of the first switch 242 is connected to the second end of the first inductor L1, and the second end of the first switch 242 is connected to the first communication terminal a1 of the processing module 220, so that the first communication terminal a1 of the processing module 220 is connected to the first data terminal DP of the charging port 210 through the first switch 242 and the first inductor L1. The first communication terminal a1 of the charging chip 230, the second end of the first inductor L1, and the first end of the first switch 242 are connected to the same node. The output terminal 3 of the processing module 220 is connected to the control terminal of the first switch 242, so that the processing module 220 can control the on / off state of the first switch 242.
[0089] The first diode D1 is a transient voltage suppressor (TVS). A TVS diode is also known as a transient voltage suppressor. The first terminal of the first diode D1 is connected to the second terminal of the first switch 242, and the second terminal of the first diode D1 is connected to ground (GND).
[0090] Furthermore, still as Figure 5 As shown, the charging circuit 20 also includes: a second diode D2, a first notch filter network 252, a first resistor R1, and a second resistor R2. The second diode D2 is also a TVS filter. The first terminal of the second diode D2 is connected to the second terminal of the first inductor L1, and the second terminal of the second diode D2 is connected to ground GND. The notch filter network is a band-stop filter circuit. The first notch filter network 252 is connected in series between the second terminal of the first inductor L1 and the first terminal of the first switch 242. The first resistor R1 is connected in series between the second terminal of the first switch 242 and the first communication terminal a1 of the processing module 220. The second resistor R2 is connected in series between the first terminal of the first switch 242 and the first communication terminal a1 of the charging chip 230.
[0091] Furthermore, such as Figure 5As shown, the processing module 220 also has a first terminal b1 and a second terminal b2. The first terminal b1 of the processing module 220 is connected to the power terminal VBUS of the charging port 210, and the second terminal b2 of the processing module 220 is connected to the battery 140 of the electronic device 10. Thus, when the charger 30 is connected to the charging port 210 of the charging circuit 20 of the electronic device 10, the charger 30 can charge the battery 140 through the processing module 220. Generally, when the charger 30 is a PD charger and does not support a programmable power supply, the charger 30 can charge the battery 140 through the processing module 220, and during the charging process, the processing module 220 communicates with the charger 30 through its third communication terminal a3. When the charger 30 is another type of charger, the charger 30 can charge the battery 140 through the processing module 220, and during the charging process, the processing module 220 communicates with the charger 30 through its first communication terminal a1.
[0092] Here, the processing module 220 may include a charging power management unit (CPMU) 222 and a processing unit 224 connected together. The charging power management unit 222 has a first communication terminal. This first communication terminal of the charging power management unit 222 is the same as the first communication terminal a1 of the processing module 220. That is, the first communication terminal of the charging power management unit 222 is connected to the first data terminal DP of the charging port 210 via a first resistor R1, a first switch 242, a first notch filter network 252, and a first inductor L1. Thus, the processing unit 224 can communicate with the charger 30 through the first communication terminal of the charging power management unit 222. The charging power management unit 222 also has a third communication terminal. This third communication terminal of the charging power management unit 222 is the same as the third communication terminal a3 of the processing module 220. That is, the third communication terminal of the charging power management unit 222 is connected to the configuration channel terminal CC of the charging port 210. Thus, the processing unit 224 can communicate with the charger 30 through the third communication terminal of the charging power management unit 222.
[0093] The charging management unit 222 includes a buck circuit 2224. The first terminal of the buck circuit 2224 is connected to the power terminal VBUS of the charging port 210, and the second terminal is connected to the battery 140. In other words, when the charger 30 charges the battery 140 through the processing module 220, it is actually charging the battery 140 through the buck circuit 2224 in the charging management unit 222 of the processing module 220. It is easy to understand that the charging speed of the charger 30 when charging the battery 140 through the charging chip 230 is greater than the charging speed of the charger 30 when charging the battery 140 through the charging management unit 222. That is, the charging of the battery 140 through the charging chip 230 is fast charging.
[0094] The charging management unit 222 also has an output terminal. The output terminal of the charging management unit 222 is the same as the output terminal 3 of the processing module 220. That is, the output terminal of the charging management unit 222 is connected to the control terminal of the first switch 242 to control the on / off state of the first switch 242. Here, the step-down circuit 2224 in the charging management unit 222 is powered on and off synchronously with the output terminal of the charging management unit 222. That is, when the step-down circuit 2224 receives a preset voltage, the output terminal of the charging management unit 222 is at a high level; when the step-down circuit 2224 does not receive a preset voltage, the output terminal of the charging management unit 222 is at a low level. The preset voltage value can be 5V. The first switch 242 is configured such that: when a high-level signal is received at the control terminal of the first switch 242, the first and second terminals of the first switch 242 are turned on, i.e., the first switch 242 is turned on; when a low-level signal is received at the control terminal of the first switch 242, the first and second terminals of the first switch 242 are turned off, i.e., the first switch 242 is turned off. In other words, when the output terminal of the charging management unit 222 outputs a high-level signal, the first switch 242 is turned on; when the output terminal of the charging management unit 222 outputs a low-level signal, the first switch 242 is turned off.
[0095] In some specific embodiments, such as Figure 6 As shown, the first switch 242 can be a first transistor Q1. The first transistor Q1 can be an N-type transistor. This transistor can be a field-effect transistor (FET), such as a metal-oxide-semiconductor field-effect transistor (MOSFET). The transistor can also be an insulated-gate bipolar transistor (IGBT), a bipolar junction transistor (BJT), etc., which will not be elaborated further.
[0096] The charging management unit 222 includes a third switch 2222 and a step-down circuit 2224.
[0097] The first terminal of the third switch 2222 is connected to the power supply terminal VBUS of the charging port 210. The second terminal of the third switch 2222 is connected to the first terminal of the step-down circuit 2224 and the control terminal of the first transistor Q1. Generally, when the charger 30 is connected to the charging port 210 of the charging circuit 20 of the electronic device 10, the power supply terminal VBUS of the charging port 210 will receive a preset voltage. Thus, when the third switch 2222 is turned on, the step-down circuit 2224 receives the preset voltage, and the control terminal of the first transistor Q1 receives a high-level signal (5V), turning on the first transistor Q1; when the third switch 2222 is turned off, the step-down circuit 2224 does not receive the preset voltage, and the control terminal of the first transistor Q1 receives a low-level signal, turning off the first transistor Q1. The third switch 2222 can be a second transistor Q2. The second transistor Q2 can be an N-type transistor.
[0098] The step-down circuit 2224 includes a third transistor Q3, a fourth transistor Q4, a third inductor L3, and a first capacitor C1. The first terminal of the third transistor Q3 is the first terminal of the step-down circuit 2224. The first terminal of the third transistor Q3 is connected to the second terminal of the third switch 2222. The second terminal of the third transistor Q3 is connected to the first terminal of the fourth transistor Q4 and the first terminal of the third inductor L3. The second terminal of the fourth transistor Q4 is connected to ground GND. The second terminal of the third inductor L3 is the second terminal of the step-down circuit 2224. The second terminal of the third inductor L3 is connected to the first plate of the first capacitor C1 and the battery 140 of the electronic device 10. The second plate of the first capacitor C1 is connected to ground GND. Thus, when a preset voltage is input to the step-down circuit 2224, when the third transistor Q3 is on and the fourth transistor Q4 is off, the preset voltage can charge the third inductor L3; when the third transistor Q3 is off and the fourth transistor Q4 is on, the third inductor L3 can discharge the battery 140. Based on this, the voltage of the third inductor L3 must be less than the preset voltage, which means that the step-down conversion is achieved.
[0099] Here, the control terminals of the third switch 2222, the third transistor Q3, and the fourth transistor Q4 are all connected to the processing unit 224. The processing unit 224 controls whether the step-down voltage is input with a preset voltage by controlling the on / off state of the third switch 2222, and simultaneously controls the on / off state of the first transistor Q1 (i.e., the first switch 242). The processing unit 224 controls the magnitude of the output voltage at the second terminal of the step-down circuit 2224 by controlling the duty cycle of the third transistor Q3 and the fourth transistor Q4, which will not be elaborated further.
[0100] based on Figure 5 and Figure 6In the charging circuit 20 shown, the charger 30 charges the battery 140 in the electronic device 10 in three different scenarios.
[0101] First scenario: Charger 30 is a PD charger but does not support programmable power supply, or Charger 30 is another type of charger (excluding SCP chargers, PD chargers, and UFCS chargers).
[0102] In this scenario, as described above, the charger 30 charges the battery 140 through the step-down circuit 2224 in the charging management unit 222 of the processing module 220, and during the charging process, the processing unit 224 communicates with the charger 30 through the third communication terminal or the first communication terminal of the charging management unit 222.
[0103] Based on this, such as Figure 7 As shown, in this scenario, when the charger 30 charges the battery 140, the processing unit 224 performs the following steps S11 to S13.
[0104] S11, the processing unit 224 determines that the charging port 210 is connected to the charger 30.
[0105] When the charger 30 is connected to the charging port 210 of the charging circuit 20 of the electronic device 10, it outputs a preset voltage to the power supply terminal VBUS of the charging port 210. Therefore, when the processing unit 224 detects the preset voltage at the power supply terminal VBUS of the charging port 210, it can determine that the charging port 210 is connected to the charger 30.
[0106] When executing step S11, the processing unit 224 can also control the display screen 110 of the electronic device 10 to display a charging icon.
[0107] S12, the processing unit 224 controls the step-down circuit 2224 to power on.
[0108] After processing unit 224 determines that charging port 210 is connected to charger 30, it controls the third switch 2222 to turn on. At this time, buck circuit 2224 is powered on, and first switch 242 is turned on. In this case, charger 30 charges battery 140 through power terminal VBUS of charging port 210 and buck circuit 2224 in charging management unit 222. During charging, processing unit 224 communicates with charger 30 through third communication terminal or first communication terminal of charging management unit 222.
[0109] S13, the processing unit 224 keeps the first switch 242 on.
[0110] During the charging process, the processing unit 224 controls the third switch 2222 to remain on, thereby controlling the step-down circuit 2224 to remain powered on, and controlling the first switch 242 to remain on.
[0111] Second, in the second scenario, charger 30 is an SCP charger, or charger 30 is a PD charger that supports programmable power, or charger 30 is a UFCS charger.
[0112] In this scenario, as mentioned earlier, it can be divided into the following three cases:
[0113] 1. When the charger 30 is an SCP charger and the charging chip 230 supports the SCP protocol, the charger 30 charges the battery 140 through the charging chip 230, and the charging chip 230 communicates with the charger 30 during the charging process.
[0114] 2. When the charger 30 is a PD charger and supports programmable power supply, and the processing module 220 (i.e. processing unit 224) supports the PD protocol, the charger 30 charges the battery 140 through the charging chip 230, and during the charging process, the processing module 220 communicates with the charger 30 through the third communication terminal a3.
[0115] 3. When the charger 30 is a UFCS charger and the processing module 220 (i.e., processing unit 224) supports the UFCS protocol, the charger 30 charges the battery 140 through the charging chip 230, and during the charging process, the processing module 220 communicates with the charger 30 through the first communication terminal a1. In other words, when the charger 30 is a UFCS charger, the processing unit 224 needs to communicate with the charger 30 through the first communication terminal of the charging management unit 222. Therefore, when the charger 30 is a UFCS charger, the first switch 242 (i.e., the first transistor Q1) must remain in the ON state.
[0116] Based on this, such as Figure 8 As shown, in this scenario, when the charger 30 charges the battery 140, the processing unit 224 performs the following steps S21 to S25.
[0117] S21, the processing unit 224 determines that the charging port 210 is connected to the charger 30.
[0118] Step S21 is the same as step S11, and will not be described again.
[0119] S22, the processing unit 224 controls the step-down circuit 2224 to power on and controls the first switch 242 to turn on.
[0120] Step S22 is the same as step S12. After the processing unit 224 executes step S22, the charger 30 charges the battery 140 through the power terminal VBUS of the charging port 210 and the step-down circuit 2224 in the charging management unit 222, and the processing unit 224 can communicate with the charger 30 through the first communication terminal of the charging management unit 222.
[0121] S23, Processing unit 224 performs protocol arbitration.
[0122] Processing unit 224 communicates with charger 30 through the first communication terminal of charging management unit 222 to determine whether charger 30 is an SCP charger, a PD charger that supports programmable power, or a UFCS charger. At this time, processing unit 224 continues to execute step S24.
[0123] Here, processing unit 224 can perform protocol arbitration according to the charging chip 230 or the protocol supported by processing unit 224. For example, when charging chip 230 supports the SCP protocol, processing unit 224 can communicate with charger 30 to determine whether charger 30 is an SCP charger. Similarly, when processing unit 224 supports the PD protocol, processing unit 224 can communicate with charger 30 to determine whether charger 30 is a PD charger and supports programmable power. When processing unit 224 supports the UFCS protocol, processing unit 224 can communicate with charger 30 to determine whether charger 30 is a UFCS charger.
[0124] S24, the processing unit 224 sets the current output from the charging management unit 222 to the battery 140 to zero.
[0125] At this time, the step-down circuit 2224 in the charging management unit 222 no longer outputs power to the battery 140. When executing step S24, the processing unit 224 also controls the charging chip 230 to operate, so that the charger 30 charges the battery 140 through the charging chip 230. At this time, the charging chip 230 outputs power to the battery 140.
[0126] It is easy to understand that if, in step S23, the processing unit 224 determines that the charger 30 is not an SCP charger, and the charger 30 is not a PD charger that supports programmable power, and the charger 30 is not a UFCS charger, then the processing unit 224 will not control the charging chip 230 to work. In this case, the charger 30 still charges the battery 140 through the power terminal VBUS of the charging port 210 and the step-down circuit 2224 in the charging management unit 222.
[0127] S25, the processing unit 224 keeps the first switch 242 on.
[0128] In other words, while the charger 30 is charging the battery 140 through the charging chip 230, the processing unit 224 still controls the third switch 2222 to remain on, thereby controlling the first switch 242 to remain on. The purpose of this step is to ensure that the processing unit 224 can communicate with the UFCS charger through the first communication terminal of the charging management unit 222.
[0129] In other words, to ensure compatibility with the UFCS protocol, when the charger 30 charges the battery 140 via the charging chip 230, the processing unit 224 will not control the third switch 2222 to turn off. In this case, a preset voltage is input to the control terminal of the first transistor Q1, which serves as the first switch 242, thereby keeping the first switch 242 on.
[0130] Third, in the third scenario, the connection between the charging port 210 and the charger 30 is disconnected.
[0131] The connection between charging port 210 and charger 30 is broken, meaning charger 30 is unplugged from charging port 210. In this case, such as Figure 9 As shown, the processing unit 224 is used to perform the following steps S31 to S33.
[0132] S31, the processing unit 224 determines that the connection between the charging port 210 and the charger 30 is broken.
[0133] When the processing unit 224 does not detect voltage at the power supply terminal VBUS of the charging port 210, it can determine that the connection between the charging port 210 and the charger 30 is broken.
[0134] S32, the processing unit 224 sets the current output from the charging management unit 222 to the battery 140 to zero.
[0135] S33, the processing unit 224 controls the step-down circuit 2224 to power down and controls the first switch 242 to turn off.
[0136] Processing unit 224 controls the third switch 2222 to turn off. At this time, the step-down circuit 2224 is powered down, and the first switch 242 is turned off.
[0137] However, based on the second and third scenarios mentioned above, the relevant technologies have the following two technical problems:
[0138] 1. The first inductor L1 is easily burned out. Based on the second scenario, after step S24, when the power supply terminal VBUS of the charging port 210 is shorted to the first data terminal DP of the charging port 210, or when a surge voltage is generated at the first data terminal DP of the charging port 210, a spike pulse will be generated. With the first switch 242 remaining on, the spike pulse will break down the first diode D1 through the first switch 242. Figure 10 This is the voltage-current characteristic curve of the first diode D1 in the related technology. For example... Figure 10 As shown, when the first diode D1 breaks down, it clamps the path voltage to around 3V. As mentioned earlier, the preset voltage input to the control terminal of the first transistor Q1, which acts as the first switch 242, is generally 5V. When the first diode D1 clamps the path voltage to 3V, that is, the voltage at the second terminal of the first transistor Q1 is 3V. At this time, the voltage difference between the control terminal and the second terminal of the first transistor Q1 is 2V, which will cause the first transistor Q1, which acts as the first switch 242, to fail to turn off. In this case, a large current will continuously exist in the branch where the processing module 220 is located, which will cause a large current to continuously flow through the first inductor L1, thereby burning out the first inductor L1.
[0139] 2. The charging icon does not disappear after the charger 30 is unplugged. Based on the second scenario, after step S25, the charger 30 does not charge the battery 140 through the buck circuit 2224 in the charging management unit 222, but the charging management unit 222 remains powered on. Research has shown that this causes the charging management unit 222 to jump to an abnormal boost state. In this case, in the third scenario, i.e., after the charger 30 is unplugged, the battery 140 will output a reverse voltage through the buck circuit 2224 in the charging management unit 222, i.e., the battery 140 outputs a preset voltage to the power terminal VBUS of the charging port 210. Based on the description of step S11, in this case, the processing unit 224 will determine that the charging port 210 is connected to the charger 30 and control the display screen 110 of the electronic device 10 to display the charging icon. That is, even after the connection between the charging port 210 and the charger 30 is disconnected, the electronic device 10 still displays the charging icon.
[0140] Therefore, this application provides a charging circuit, an electronic device, and a charging control method. The charging circuit can disconnect the branch where the processing module is located when the charging chip communicates with the charger, thereby preventing a large current from continuously flowing through the first inductor and preventing the first inductor from burning out.
[0141] Before providing a detailed explanation of the charging circuit provided in the embodiments of this application, it is necessary to further explain the circuit structure of the charging circuit.
[0142] Generally, the charging port 210 of electronic device 10 and the output port of charger 30 (i.e., the port of charger 30 used to connect to the charging port 210 of electronic device 10 for outputting power) can be Universal Serial Bus (USB) Type-C ports (hereinafter referred to as Type-C ports). Type-C ports are generally divided into female and male connectors. The male connector of the Type-C port can be inserted into the female connector to achieve structural and electrical connection between the male and female connectors. Among them, the charging port 210 of electronic device 10 is generally a female connector, and the output port of charger 30 is generally a male connector. Figure 11 This is a schematic diagram of the female header structure of a Type-C port in related technologies. Figure 12 This is a schematic diagram of the male connector of a Type-C port in related technologies. See also... Figure 11 and Figure 12 The correspondence between the pins and their names in the Type-C port (including female and male connectors) is shown in Table 1 below.
[0143] Table 1
[0144] pin name pin name GND grounding terminal TX1+ First differential signal positive transmission end TX1- First differential signal negative transmitter VBUS USB power supply CC1 First configuration channel end D+ Positive data terminal D- Negative phase data terminal SBU1 First sideband end RX2- Second differential signal negative receiver RX2+ Second differential signal positive receiver RX1+ First differential signal positive receiver end RX1- First differential signal negative receiver SBU2 Second sideband usage end CC2 Second configuration channel end TX2- Second differential signal negative transmitter TX2+ Second differential signal positive transmission end
[0145] When charging port 210 is a female connector of a Type-C port, the power supply terminal VBUS of charging port 210 is the USB power supply terminal of the Type-C port; the first data terminal DP of charging port 210 is the positive data terminal of the Type-C port. In this case, the charging port 210 of the charging circuit 20 also has a second data terminal DN. The second data terminal DN of charging port 210 is the negative data terminal of the Type-C port. The configuration channel terminal CC of charging port 210 is the first configuration channel terminal and / or the second configuration channel terminal of the Type-C port.
[0146] Figure 13 This is a circuit structure diagram of another charging circuit 20 in related technologies. For example... Figure 13 As shown, compared to Figure 4 The charging circuit 20 shown may further include a second inductor L2, provided that the charging port 210 also has a second data terminal DN. The second inductor L2 is a common-mode inductor used to filter common-mode noise in the circuit. The first end of the second inductor L2 is connected to the second data terminal DN of the charging port 210. The second end of the second inductor L2 is connected to the second communication terminal a2 of the processing module 220 and the second communication terminal a2 of the charging chip 230. Thus, when the charger 30 is connected to the charging port 210 of the electronic device 10, the charging chip 230 or the processing module 220 in the electronic device 10 can communicate with the charger 30 through the first data terminal DP and the second data terminal DN.
[0147] Figure 14 This is a circuit structure diagram of another charging circuit 20 in related technologies. (Comparison) Figure 5 and Figure 14 It can be seen that when the charging port 210 also has a second data terminal DN, the charging circuit 20 corresponding to the first data terminal DP may also include a second notch network 254, a second switch 244, a third resistor R3, a third diode D3, a fourth diode D4 and a fourth resistor R4.
[0148] The second inductor L2, the second notch filter network 254, the second switch 244, and the third resistor R3 are connected in series between the second data terminal DN of the charging port 210 and the second communication terminal a2 of the processing module 220. The first terminal of the third diode D3 is connected to the second terminal of the second switch 244 and the first terminal of the third resistor R3. The second terminal of the third diode D3 is connected to ground GND. The first terminal of the fourth diode D4 is connected to the second terminal of the second inductor L2 and the first terminal of the second notch filter network 254. The second terminal of the fourth diode D4 is connected to ground GND. The first terminal of the fourth resistor R4 is connected to the second terminal of the second notch filter network 254 and the first terminal of the second switch 244. The second terminal of the fourth resistor R4 is connected to the second communication terminal a2 of the charging chip 230.
[0149] In this charging circuit 20, the electrical parameters of corresponding electronic components are identical. These electronic components include inductors, diodes, transistors, and resistors. Electrical parameters include inductance value, resistance value, impedance, conduction threshold, and breakdown threshold. For example, the first inductor L1 and the second inductor L2 are corresponding inductors, and the inductance value of the first inductor L1 is the same as that of the second inductor L2. The first diode D1 and the third diode D3 are corresponding diodes, and the breakdown threshold of the first diode D1 is the same as that of the third diode D3. The first switch 242 and the second switch 244 are corresponding switches, and the conduction threshold of the first switch 242 is the same as that of the second switch 244. The first resistor R1 and the third resistor R3 are corresponding resistors, and their resistance values are identical, for example, both 4.7 ohms. The second resistor R2 and the fourth resistor R4 are corresponding resistors, and their resistance values are identical, for example, both 1 kΩ (kiloohms).
[0150] Here, the control terminals of the second switch 244 and the first switch 242 are connected together, and both are connected to the output terminal 3 of the processing module 220. The processing module 220 can control the first switch 242 and the second switch 244 to be simultaneously turned on or off. In some specific embodiments, such as Figure 15As shown, the second switch 244 can be the fifth transistor Q5. The fifth transistor Q5 is also an N-type transistor. The control terminal of the fifth transistor Q5 and the control terminal of the first transistor Q1 are both connected to the second terminal of the third switch 2222, which will not be described in detail here.
[0151] Generally, such as Figure 14 As shown, the processing unit 224 in the processing module 220 can also be connected to the charging chip 230 so that the processing module 220 and the charging chip 230 can transmit communication signals.
[0152] The charging circuit 20 provided in the embodiments of this application will be explained in detail below.
[0153] Figure 16 This is a circuit structure diagram of a charging circuit 20 provided in an embodiment of this application. For example... Figure 16 As shown, compared to Figure 4 The charging circuit 20 shown in this embodiment further includes a first switch 242. The first switch 242 is connected in series between the second terminal of the first inductor L1 and the first communication terminal a1 of the processing module 220. Thus, when the first switch 242 is on, the processing module 220 is connected to the first data terminal DP of the charging port 210 through the first switch 242 and the first inductor L1. When the first switch 242 is off, the processing module 220 is disconnected from the first inductor L1, i.e., the branch containing the processing module 220 is disconnected. The output terminal 3 of the processing module 220 is connected to the control terminal of the first switch 242 for controlling the on and off states of the first switch 242.
[0154] In this embodiment of the application, when the processing module 220 is working, it is used to execute a charging control method. Figure 17 This is a flowchart of a charging control method provided in an embodiment of this application. Figure 17 As shown, the charging control method includes the following steps S100 to S200.
[0155] S100, when it is determined that the charging port 210 is connected to the charger 30, the processing module 220 determines whether the charger 30 is the target charger.
[0156] The processing module 220 first needs to determine whether the charging port 210 is connected to the charger 30. As mentioned above, in this embodiment, "the charging port 210 is connected to the charger 30" implies that the input terminal of the charger 30 is connected to the power supply. Generally, when the input terminal of the charger 30 is connected to the power supply and the charging port 210 is connected to the charger 30, the charger 30 will output a preset voltage to the charging port 210. Based on this, the charging control method may further include the following step S110 for "determining that the charging port 210 is connected to the charger 30".
[0157] S110, if a preset voltage is detected at the power supply terminal VBUS of the charging port 210, the processing module 220 determines that the charging port 210 is connected to the charger 30.
[0158] In other words, when the processing module 220 detects a preset voltage at the power supply terminal VBUS of the charging port 210, it can determine that the charging port 210 is connected to the charger 30.
[0159] After determining that the charging port 210 is connected to the charger 30, the processing module 220 can communicate with the charger 30 to determine whether the charger 30 is a target charger. Here, a target charger refers to a charger 30 that can charge the battery 140 through the charging chip 230, and which does not need to communicate with the charger 30 through the first communication terminal a1 of the processing module 220 when charging the battery 140 through the charging chip 230. For example, in the aforementioned embodiment, an SCP charger and a PD charger that supports programmable power supplies are target chargers; PD chargers that do not support programmable power supplies, UFCS chargers, and other chargers are not target chargers.
[0160] S200, if it is determined that the charger 30 is the target charger, the processing module 220 controls the first switch 242 to turn off.
[0161] When charger 30 is the target charger, during the charging process, charging chip 230 communicates with charger 30 through its first communication terminal a1, or processing module 220 communicates with charger 30 through its third communication terminal a3. In this case, it is not necessary for processing module 220 to communicate with charger 30 through the first data terminal DP of charging port 210, therefore processing module 220 can control the first switch 242 to turn off. Figure 6 Taking the illustrated embodiment as an example, the processing module 220 can control the third switch 2222 to turn off, thereby powering down both the step-down circuit 2224 in the charging management unit 222 and the output terminal of the charging management unit 222. When the output terminal of the charging management unit 222 is powered down, the control terminal of the first switch 242 is at a low level, and at this time the first switch 242 is turned off.
[0162] When the first switch 242 is turned off, the branch containing the processing module 220 is disconnected. This prevents a continuous large current from flowing through the first inductor L1, thus preventing the first inductor L1 from burning out. Figure 5 and Figure 6Taking the charging circuit 20 shown as an example, the reason why the first inductor L1 is burned out is that after the first diode D1 is broken down, the first transistor Q1, which acts as the first switch 242, remains in a conducting state. At this time, a path is formed from the first data terminal DP of the charging port 210, through the first inductor L1, the first notch network 252, the first switch 242, and the first diode D1 to the ground GND, resulting in a large current continuously flowing through the first inductor L1, thereby burning out the first inductor L1. In this embodiment, by controlling the first switch 242 to turn off, this branch is disconnected, thus preventing a large current from continuously flowing through the first inductor L1 and preventing the first inductor L1 from burning out.
[0163] It is easy to understand that the above charging control method can also be applied to, for example... Figure 5 , Figure 14 The charging circuit 20 is shown. In some embodiments, when the charging circuit 20 is as shown... Figure 14 As shown, when the charging port 210 also has a second data terminal DN, and the second data terminal DN is connected to the second communication terminal a2 of the processing module 220 through the second inductor L2 and the second switch 244, step S200 can specifically be: if the charger 30 is determined to be the target charger, the processing module 220 controls the first switch 242 and the second switch 244 to turn off.
[0164] As is readily understood, the charging control method provided in this application embodiment is executed by the processing unit 224 in the processing module 220.
[0165] It should be noted that, in the above embodiments, for ease of understanding, the battery 140 and charger 30 are introduced to describe the charging circuit 20 and charging control method provided in this application embodiment. In fact, the charging circuit 20 provided in this application embodiment does not include the battery 140 and charger 30. That is to say, the battery 140 and charger 30 exist as environmental components relative to the charging circuit 20, and their existence should not be construed as a limitation on the charging circuit 20 provided in this application embodiment.
[0166] In this embodiment, when the processing module 220 executes step S100 of the charging control method, it can identify the type of the charger 30 based on the charging protocol. This will be explained in detail below in three different scenarios.
[0167] Firstly, the charging chip 230 supports the SCP protocol.
[0168] In this possible scenario, the flowchart of the charging control method can be as follows: Figure 18 As shown below. A detailed explanation follows.
[0169] For the SCP charger, when the input terminal of the charger 30 is connected to the power supply, the charger 30 can output a preset voltage. Based on this, as described in step S110, when the processing module 220 detects the preset voltage at the power supply terminal VBUS of the charging port 210, the processing module 220 can determine that the charging port 210 is connected to the charger 30.
[0170] In this case, the step S100, "processing module 220 determines whether charger 30 is the target charger," includes the following steps S120A to S140A. Steps S120A to S140A are located after step S110.
[0171] S120A, when it is determined that the charging port 210 is connected to the charger 30, the processing module 220 determines whether the output port of the charger 30 is a dedicated charging port.
[0172] The output ports of the charger 30 include a dedicated charging port (DCP), a standard downstream port (SDP), a charging downstream port (CDP), and a non-standard charging port. The dedicated charging port is also referred to as a "dedicated charging port." Generally, the charging circuit 20 will only charge the battery 140 through the charging chip 230 when the output port of the charger 30 is a DCP.
[0173] Processing module 220 can determine whether the output port of charger 30 is a DCP by detecting the output port of charger 30. For example, in some specific embodiments, when both the charging port 210 of electronic device 10 and the output port of charger 30 are Type-C ports, processing module 220 can determine that the output port of charger 30 is a DCP when it detects a short circuit between the positive and negative data terminals of charger 30. The detection of the output port of charger 30 by processing module 220 is called BC1.2 (battery charging v1.2) detection. In other embodiments, processing module 220 can also determine whether the output port of charger 30 is a DCP by communicating with charger 30.
[0174] S130A, if the output port of the charger 30 is DCP, the processing module 220 determines whether the charger 30 is an SCP charger.
[0175] S140A, if charger 30 is an SCP charger, then processing module 220 determines that charger 30 is the target charger.
[0176] After determining that the output port of the charger 30 is a DCP, the processing module 220 can communicate with the charger 30 to determine whether the charger 30 is an SCP charger. When the charger 30 is an SCP charger, the processing module 220 can determine that the charger 30 is the target charger, and at this time, the processing module 220 executes step S200.
[0177] In this possible scenario, step S200 can specifically be: if it is determined that the charger 30 is the target charger, and it is determined that the electronic device 10 and the charger 30 meet the preset charging conditions, then the processing module 220 controls the first switch 242 to turn off.
[0178] After step S200, the charging control method may further include the following step S300A.
[0179] S300A, the processing module 220 controls the charging chip 230 to charge the battery 140 through the charging chip 230.
[0180] Specifically, after determining that the charger 30 is the target charger, the processing module 220 first controls the first switch 242 to turn off, and then controls the charging chip 230 to work, so that the battery 140 is charged through the charging chip 230. During the charging process, the charging chip 230 communicates with the charger 30. In this way, the charging circuit 20 can quickly charge the battery 140.
[0181] Based on this, to improve charging safety, before controlling the first switch 242 to turn off, that is, before the charging circuit 20 performs fast charging on the battery 140, the processing module 220 can also determine whether the electronic device 10 and the charger 30 meet the preset charging conditions. The preset charging conditions are the safety conditions that the charger 30 must meet to perform fast charging on the battery 140 of the electronic device 10 through the charging circuit 20. The preset conditions may include at least one of the following four conditions: 1. Power identification of the charger 30 is completed. That is, the processing module 220 communicates with the charger 30 to determine the output power of the charger 30. 2. The temperature of the battery 140 is within a preset range. 3. The charge level of the battery 140 is within a preset charge level range. 4. The charging cable 34 of the charger 30 meets the specifications for fast charging. Generally, the charge level of the battery 140 is directly related to the voltage of the battery 140, therefore condition 3 can also be replaced with "the voltage of the battery 140 is within a preset voltage range".
[0182] In this possible scenario, the charging control method may also include the following step S400A.
[0183] S400A, if the output port of the charger 30 is not a DCP, or / and the charger 30 is not an SCP charger, or / and the electronic device 10 and / or the charger 30 does not meet the preset charging conditions, the processing module 220 keeps the first switch 242 on and charges the battery 140 through the charging management unit 222 in the processing module 220.
[0184] Specifically, when the processing module 220 executes step S120A, if it determines that the output port of the charger 30 is an SDP, CDP, or a non-standard charging port, the charging circuit 20 will not perform fast charging on the battery 140 through the charging chip 230. In this case, the processing module 220 can control the first switch 242 to remain on and charge the battery 140 through the step-down circuit 2224 in the charging management unit 222.
[0185] When processing module 220 executes step S130A, if it determines that charger 30 is not an SCP charger, meaning that charger 30 and charging chip 230 in charging circuit 20 support different protocols, then charging circuit 20 cannot quickly charge battery 140 through charging chip 230. In this case, processing module 220 can control the first switch 242 to remain on and charge battery 140 through buck circuit 2224 in charging management unit 222.
[0186] When executing step S200, if the processing module 220 determines that at least one of the electronic device 10 or the charger 30 does not meet the preset charging conditions, the charging circuit 20 will not perform fast charging on the battery 140 through the charging chip 230. In this case, the processing module 220 can control the first switch 242 to remain on and charge the battery 140 through the step-down circuit 2224 in the charging management unit 222.
[0187] Second, in the second possible scenario, the processing module 220 supports the PD protocol.
[0188] In this possible scenario, the flowchart of the charging control method can be as follows: Figure 19 As shown below. A detailed explanation follows.
[0189] For a PD charger, when the input terminal of the charger 30 is connected to the power supply and the charging port 210 is connected to the charger 30, the processing module 220 will perform a CC handshake with the charger 30. After the CC handshake is completed, the charger 30 will output a preset voltage to the charging port 210. Based on this, as described in step S110, when the processing module 220 detects the preset voltage at the power supply terminal VBUS of the charging port 210, the processing module 220 can determine that the charging port 210 is connected to the charger 30. Taking the charging port 210 as a Type-C port as an example, the CC handshake can be performed by the third communication terminal a3 of the processing module 220 through the configuration channel terminal CC of the charging port 210.
[0190] In this case, the step S100, "processing module 220 determines whether charger 30 is the target charger," includes the following steps S120B to S140B. Steps S120B to S140B are located after step S110.
[0191] S120B, when it is determined that the charging port 210 is connected to the charger 30, the processing module 220 determines whether the charger 30 is a PD charger.
[0192] After the processing module 220 completes a CC handshake with the charger 30, it can communicate with the charger 30 to determine whether the charger 30 is a PD charger. In this possible scenario, the processing module 220 can communicate with the charger 30 through its third communication terminal a3 and the configuration channel terminal CC of the charging port 210.
[0193] S130B, if the charger 30 is a PD charger, the processing module 220 determines whether the charger 30 supports programmable power.
[0194] S140B, if the charger 30 supports a programmable power supply, the processing module 220 determines that the charger 30 is the target charger.
[0195] After determining that the charger 30 is a PD charger, the processing module 220 can communicate with the charger 30 to further determine whether the charger 30 supports programmable power. When the charger 30 supports programmable power, the processing module 220 can determine that the charger 30 is the target charger, and at this time, the processing module 220 executes step S200.
[0196] In this possible scenario, step S200 can specifically be: if it is determined that the charger 30 is the target charger, and it is determined that the electronic device 10 and the charger 30 meet the preset charging conditions, then the processing module 220 controls the first switch 242 to turn off.
[0197] After step S200, the charging control method may further include the following step S300B.
[0198] S300B, the processing module 220 controls the charging chip 230 to work so as to charge the battery 140 through the charging chip 230.
[0199] Steps S200 and S300B here are the same as steps S200 and S300A in the first case, and will not be repeated here.
[0200] In this possible scenario, the charging control method may also include the following step S400B.
[0201] S400B, if the charger 30 is not a PD charger, or, the charger 30 is a PD charger but does not support programmable power supply, or / and, the electronic device 10 and / or the charger 30 do not meet the preset charging conditions, then the processing module 220 keeps the first switch 242 on and charges the battery 140 through the charging management unit 222 in the processing module 220.
[0202] Specifically, when the processing module 220 executes step S120B, if it determines that the charger 30 is not a PD charger, meaning that the charger 30 and the processing module 220 in the charging circuit 20 support different protocols, then the charging circuit 20 cannot fast charge the battery 140 through the charging chip 230. In this case, the processing module 220 can control the first switch 242 to remain on and charge the battery 140 through the buck circuit 2224 in the charging management unit 222.
[0203] If, during step S130B, the processing module 220 determines that the charger 30 does not support a programmable power supply, then the charging circuit 20 cannot quickly charge the battery 140 via the charging chip 230. In this case, the processing module 220 can control the first switch 242 to remain on and charge the battery 140 via the step-down circuit 2224 in the charging management unit 222.
[0204] When executing step S200, if the processing module 220 determines that at least one of the electronic device 10 or the charger 30 does not meet the preset charging conditions, the charging circuit 20 will not perform fast charging on the battery 140 through the charging chip 230. In this case, the processing module 220 can control the first switch 242 to remain on and charge the battery 140 through the step-down circuit 2224 in the charging management unit 222.
[0205] Thirdly, in the third possible scenario, the processing module 220 supports the UFCS protocol.
[0206] In this possible scenario, the flowchart of the charging control method can be as follows: Figure 20 As shown below. A detailed explanation follows.
[0207] For a UFCS charger, when the input terminal of the charger 30 is connected to a power source, the charger 30 can output a preset voltage. Based on this, as described in step S110, when the processing module 220 detects the preset voltage at the power supply terminal VBUS of the charging port 210, the processing module 220 can determine that the charging port 210 is connected to the charger 30.
[0208] In this case, the charging control method further includes the following steps S510 to S530. Step S510 is parallel to step S110.
[0209] S510, when it is determined that the charging port 210 is connected to the charger 30, the processing module 220 determines whether the charger 30 is a UFCS charger.
[0210] After the charging port 210 is connected to the charger 30, the processing module 220 can communicate with the charger 30 to determine whether the charger 30 is a UFCS charger.
[0211] S520, if the charger 30 is a UFCS charger, and it is determined that the electronic device 10 and the charger 30 meet the preset charging conditions, then the processing module 220 keeps the first switch 242 on.
[0212] S530, the processing module 220 controls the charging chip 230 to work so as to charge the battery 140 through the charging chip 230.
[0213] Specifically, after determining that the charger 30 is a UFCS charger, the processing module 220 controls the charging chip 230 to operate and keeps the first switch 242 on. Thus, the battery 140 can be charged through the charging chip 230, and during the charging process, the processing module 220 communicates with the charger 30 through the first communication terminal a1, thereby enabling the charging circuit 20 to quickly charge the battery 140. Based on this, to improve charging safety, before quickly charging the battery 140, the processing module 220 can also determine whether the electronic device 10 and the charger 30 meet preset charging conditions.
[0214] In this possible scenario, the charging control method may also include the following step S600.
[0215] S600, if it is determined that the charger 30 is not a UFCS charger, or / and the electronic device 10 and / or the charger 30 do not meet the preset charging conditions, the processing module 220 keeps the first switch 242 on and charges the battery 140 through the charging management unit 222 in the processing module 220.
[0216] Specifically, when the processing module 220 executes step S510, if it determines that the charger 30 is not a UFCS charger, meaning that the charger 30 and the processing module 220 in the charging circuit 20 support different protocols, then the charging circuit 20 cannot quickly charge the battery 140 through the charging chip 230. In this case, the processing module 220 can control the first switch 242 to remain on and charge the battery 140 through the buck circuit 2224 in the charging management unit 222.
[0217] When executing step S520, if the processing module 220 determines that at least one of the electronic device 10 or the charger 30 does not meet the preset charging conditions, the charging circuit 20 will not perform fast charging on the battery 140 through the charging chip 230. In this case, the processing module 220 can control the first switch 242 to remain on and charge the battery 140 through the step-down circuit 2224 in the charging management unit 222.
[0218] In this embodiment of the application, in order to solve the problem of "the charging icon does not disappear after the charger 30 is unplugged" in the related technology, the charging control method may further include the following steps S710 to S730.
[0219] S710, if it is determined that the connection between the charging port 210 and the charger 30 is disconnected, the processing module 220 controls the first switch 242 to turn off within a preset time.
[0220] In some embodiments, the processing module 220 can determine that the connection between the charging port 210 and the charger 30 is broken in two different ways. First, the processing module 220 determines that the connection between the charging port 210 and the charger 30 is broken when it detects no voltage at the power supply terminal VBUS of the charging port 210. Second, the connection between the charging port 210 and the charger 30 is broken when neither the processing module 220 nor the charging chip 230 can communicate with the charger 30.
[0221] After the processing module 220 determines the connection port between the charging port 210 and the charger 30, it controls the first switch 242 to turn off continuously for a preset duration. The preset duration can be set by those skilled in the art according to their needs and experience. For example, the preset duration can be any duration between 1 ms (milliseconds) and 1 second (seconds).
[0222] S720, after the preset time has elapsed, the processing module 220 stops controlling the first switch 242.
[0223] S730, the processing module 220 sets the current output to the battery 140 to zero.
[0224] After the processing module 220 stops controlling the first switch 242, it sets the current output from the charging management unit 222 to the battery 140 to zero. Then, because the connection between the charging port 210 and the charger 30 is disconnected, the buck circuit 2224 and the output of the charging management unit 222 are simultaneously powered down, thereby powering down the control terminal of the first switch 242 (remaining at a low level), and the first switch 242 remains off. In this embodiment, the flowchart of the charging control method can be as follows: Figure 21 As shown.
[0225] In this embodiment, by controlling the first switch 242 to turn off within a preset time period via the processing module 220 in step S710, it can be ensured that the charging management unit 222 will not jump to an abnormal boost state. In this case, the battery 140 will not output voltage in reverse through the buck circuit 2224 in the charging management unit 222, that is, after the charger 30 is unplugged, the battery 140 will not output the preset voltage to the power terminal VBUS of the charging port 210. In this way, the problem of the charging icon not disappearing after the charger 30 is unplugged can be avoided.
[0226] This application also provides an electronic device 10, including a battery 140 and a charging circuit 20 as described in any of the above embodiments. The processing unit 224 in the processing module 220 is used to execute the charging control method as described in any of the above embodiments.
[0227] In some embodiments, the processing unit 224 may be a system on chip (SOC). In other embodiments, the processing unit 224 may also be an audio digital signal processor (ADSP).
[0228] Figure 22 This is an internal structural diagram of a processing unit 224 provided in an embodiment of this application. For example... Figure 22As shown, when the processing unit 224 is an ADSP, it can be configured with charging control logic for wired charging management. This charging control logic includes protocol identification and arbitration, a protocol interface, and a protocol IC driver, used to identify the protocols supported by the charger 30. It also includes an SCP charging chip interface and an SCP charging chip driver, used to control the charging chip 230 that supports the SCP protocol. Furthermore, it includes a buck circuit management interface and a buck circuit management driver, used to control the buck circuit 2224. Additionally, it includes a UFCS charging chip interface and a UFCS charging chip driver, used to control the charging chip 230 when communicating with a UFCS charger. It also includes a PD charging chip interface and a PD charging chip driver, used to control the charging chip 230 when communicating with a PD charger. Finally, it includes charging status management, a fuel gauge interface, and a fuel gauge driver, used to control the charging status of the battery 140 and control the circuitry that detects the battery 140 using the fuel gauge. The charging control logic connects to the application processor kernel (AP-kernel) in the SOC via a communication interface to report status and data through the AP-kernel's status and data channels. This communication interface can be a Glink communication interface.
[0229] In this embodiment of the application, the charging port 210 and the first inductor L1 and the second inductor L2 in the charging circuit 20 can be disposed on the small board 134 of the electronic device 10, and the other components in the charging circuit 20 can be disposed on the main board 132 of the electronic device 10.
[0230] The beneficial effects of the charging circuit 20 provided in the embodiments of this application will be explained below.
[0231] Figures 23 to 28 These are voltage waveform diagrams of the charging circuit 20 under various scenarios provided in the embodiments of this application. In each figure, the voltage curve located at the top (yellow voltage curve) is the voltage curve of the power supply terminal VBUS of the charging port 210 of the electronic device 10 (along the plane of the paper); the voltage curve located at the bottom (blue voltage curve) is the voltage curve of the control terminal of the first switch 242. These will be explained separately below.
[0232] Figure 23 The voltage waveform of the charging circuit 20 is shown when the charging chip 230 supports the SCP protocol and the charger 30 is an SCP charger. For example... Figure 23As shown, during the first time period, the charging port 210 is not yet connected to the charger 30, specifically, the voltage of the power supply terminal VBUS of the charging port 210 is 0. In this case, neither the step-down circuit 2224 in the charging management unit 222 nor the output terminal of the charging management unit 222 can be powered on, so the control terminal of the first switch 242 is at a low level. At this time, the first switch 242 is in the off state. During the second time period, the charging port 210 is connected to the charger 30, specifically, the power supply terminal VBUS of the charging port 210 receives a preset voltage (shown as a smaller voltage in the figure). In this case, the processing unit 224 in the processing module 220 controls the step-down circuit 2224 in the charging management unit 222 to be powered on, so as to charge the battery 140 through the step-down circuit 2224. At the same time, the control terminal of the first switch 242 is at a high level, and the first switch 242 is in the on state. During the second time period, processing unit 224 can communicate with charger 30 through the first and second communication terminals of charging management unit 222 to determine that charger 30 is the target charger (in this case, the SCP charger). After determining that charger 30 is the target charger, processing unit 224 can perform fast charging on battery 140 through charging chip 230 during the third time period (during fast charging, the voltage of the power supply terminal VBUS of charging port 210 is greater than the preset voltage), and the charging chip 230 communicates with charger 30 during the charging process. In this case, processing unit 224 in processing module 220 controls the third switch 2222 to turn off, thereby powering down both the step-down circuit 2224 in charging management unit 222 and the output terminal of charging management unit 222. At this time, the control terminal of first switch 242 is at a low level, and first switch 242 is turned off. During the fourth time period, charger 30 is unplugged, and the connection between charging port 210 and charger 30 is disconnected, specifically manifested as the voltage change of the power supply terminal VBUS of charging port 210 being 0. At this time, neither the step-down circuit 2224 in the charging management unit 222 nor the output terminal of the charging management unit 222 can be powered on. Therefore, the control terminal of the first switch 242 is at a low level, and the first switch 242 remains in the off state. The process of the fifth time period is the same as that of the second time period, and the process of the sixth time period is the same as that of the third time period, which will not be described again. In other words, Figure 23 The voltage waveform of the charging circuit 20 during the plug-in-plug-out process of the SCP charger is shown.
[0233] Figure 24 The voltage waveform of the charging circuit 20 is shown when the processing module 220 supports the PD protocol and the charger 30 is a PD charger that supports programmable power. For example... Figure 24As shown, during the first time period, the charging port 210 is not yet connected to the charger 30, specifically, the voltage of the power supply terminal VBUS of the charging port 210 is 0. In this case, neither the step-down circuit 2224 in the charging management unit 222 nor the output terminal of the charging management unit 222 can be powered on, so the control terminal of the first switch 242 is at a low level. At this time, the first switch 242 is in the off state. During the second time period, the charging port 210 is connected to the charger 30, specifically, the power supply terminal VBUS of the charging port 210 receives a preset voltage (shown as a smaller voltage in the figure). In this case, the processing unit 224 in the processing module 220 controls the step-down circuit 2224 in the charging management unit 222 to be powered on, so as to charge the battery 140 through the step-down circuit 2224. At the same time, the control terminal of the first switch 242 is at a high level, and the first switch 242 is in the on state. During the second time period, processing unit 224 can communicate with charger 30 through the third communication terminal of charging management unit 222 to determine that charger 30 is the target charger (in this case, a PD charger that supports programmable power). After determining that charger 30 is the target charger, processing unit 224 can perform fast charging on battery 140 through charging chip 230 during the third time period (during fast charging, the voltage of the power terminal VBUS of charging port 210 is greater than the preset voltage), and during the charging process, processing unit 224 communicates with charger 30 through the third communication terminal of charging management unit 222. In this case, processing unit 224 in processing module 220 controls the third switch 2222 to turn off, thereby powering down the step-down circuit 2224 in charging management unit 222 and the output terminal of charging management unit 222. At this time, the control terminal of first switch 242 is at a low level, and first switch 242 is turned off.
[0234] Figure 25 The voltage waveform of the charging circuit 20 is shown when the processing module 220 supports the UFCS protocol and the charger 30 is a UFCS charger. For example... Figure 25As shown, during the first time period, charging port 210 is not yet connected to charger 30, specifically, the voltage of the power supply terminal VBUS of charging port 210 is 0. In this case, neither the step-down circuit 2224 in charging management unit 222 nor the output terminal of charging management unit 222 can be powered on, so the control terminal of first switch 242 is at a low level. At this time, first switch 242 is in the off state. During the second time period, charging port 210 is connected to charger 30, specifically, the power supply terminal VBUS of charging port 210 receives a preset voltage (shown as a smaller voltage in the figure). In this case, processing unit 224 in processing module 220 controls the step-down circuit 2224 in charging management unit 222 to be powered on, so as to charge battery 140 through step-down circuit 2224. At the same time, the control terminal of first switch 242 is at a high level, and first switch 242 is in the on state. During the second time period, processing unit 224 can communicate with charger 30 through the first communication terminal and second communication terminal of charging management unit 222 to determine that charger 30 is a UFCS charger. After processing unit 224 determines that charger 30 is a UFCS charger, it can quickly charge battery 140 through charging chip 230 during the third time period (during fast charging, the voltage of the power supply terminal VBUS of charging port 210 is greater than the preset voltage). During the charging process, processing unit 224 communicates with charger 30 through the first and second communication terminals of charging management unit 222. In this case, processing unit 224 controls the third switch 2222 to remain on, thereby powering both the step-down circuit 2224 in charging management unit 222 and the output terminal of charging management unit 222. At this time, the control terminal of first switch 242 is at a high level, and first switch 242 is on. It is easy to understand that when the UFCS charger charges battery 140 through charging chip 230, although step-down circuit 2224 is powered on, processing unit 224 controls the current output from step-down circuit 2224 to battery 140 to be zero.
[0235] Figure 26 The voltage waveforms of the charging circuit 20 are shown when the output port of the charger 30 is SDP, CDP, or a non-standard charging port. For example... Figure 26As shown, during the first time period, charging port 210 is not connected to charger 30, specifically, the voltage of the power supply terminal VBUS of charging port 210 is 0. In this case, neither the step-down circuit 2224 in charging management unit 222 nor the output terminal of charging management unit 222 can be powered on, so the control terminal of first switch 242 is at a low level. At this time, first switch 242 is in the off state. During the second time period, charging port 210 is connected to charger 30, specifically, the power supply terminal VBUS of charging port 210 receives a preset voltage. In this case, processing unit 224 in processing module 220 controls step-down circuit 2224 in charging management unit 222 to be powered on, so as to charge battery 140 through step-down circuit 2224. At the same time, the control terminal of first switch 242 is at a high level, and first switch 242 is in the on state. During the third time period, charger 30 is unplugged, and the connection between charging port 210 and charger 30 is disconnected, specifically, the voltage change of the power supply terminal VBUS of charging port 210 is 0. At this time, the first switch 242 is off. During the fourth time period, the charging port 210 is reconnected to the charger 30. At this time, the power supply terminal VBUS of the charging port 210 receives a preset voltage, the control terminal of the first switch 242 is at a high level, and the first switch 242 is turned on. During the fifth time period, the charger 30 is unplugged, and the first switch 242 is off. During the sixth time period, the charging port 210 is reconnected to the charger 30. At this time, the power supply terminal VBUS of the charging port 210 receives a preset voltage, the control terminal of the first switch 242 is at a high level, and the first switch 242 is turned on. That is to say, Figure 26 The voltage waveform of the charging circuit 20 is shown when the UFCS charger is plugged in and unplugged.
[0236] Figure 27 The voltage waveform during the device restart process is shown after the electronic device 10 is connected to the target charger. Figure 27As shown, during the first time period, the charger 30 rapidly charges the battery 140 via the charging chip 230 (specifically, a larger voltage is input to the power supply terminal VBUS of the charging port 210), and during the charging process, the charging chip 230 or the third communication terminal a3 of the processing module 220 communicates with the charger 30. In this case, the processing unit 224 in the processing module 220 controls the third switch 2222 to turn off, thereby powering down the step-down circuit 2224 in the charging management unit 222 and the output terminal of the charging management unit 222. At this time, the control terminal of the first switch 242 is at a low level, and the first switch 242 is off. During the second time period, the electronic device 10 executes a restart program, and the charging chip 230 stops working. At this time, the processing unit 224 in the processing module 220 controls the step-down circuit 2224 in the charging management unit 222 to power on, so as to charge the battery 140 through the step-down circuit 2224 (specifically, a smaller preset voltage is input to the power supply terminal VBUS of the charging port 210). Meanwhile, the control terminal of the first switch 242 is at a high level, and the first switch 242 is in the ON state. At the end of the second time period, the electronic device 10 completes the restart. During the third time period, the charging chip 230 works again, and the charger 30 quickly charges the battery 140 through the charging chip 230. During the charging process, the charging chip 230 or the third communication terminal a3 of the processing module 220 communicates with the charger 30. In this case, the control terminal of the first switch 242 is at a low level, and the first switch 242 is off. During the fourth time period, the electronic device 10 executes the restart program again, and the charging chip 230 stops working. At this time, the processing unit 224 in the processing module 220 controls the step-down circuit 2224 in the charging management unit 222 to power on, so as to charge the battery 140 through the step-down circuit 2224. At the same time, the control terminal of the first switch 242 is at a high level, and the first switch 242 is in the ON state. During the fifth time period, the charger 30 is unplugged, and the connection between the charging port 210 and the charger 30 is broken. Specifically, the voltage change at the power supply terminal VBUS of the charging port 210 is 0. At this time, neither the step-down circuit 2224 in the charging management unit 222 nor the output terminal of the charging management unit 222 can be powered on. Therefore, the control terminal of the first switch 242 is at a low level, and the first switch 242 is in the off state. During the sixth time period, the electronic device 10 completes its restart and the charging port 210 is connected to the target charger. At this time, the charger 30 performs fast charging of the battery 140 through the charging chip 230, and during the charging process, the charging chip 230 or the third communication terminal a3 of the processing module 220 communicates with the charger 30. In this case, the control terminal of the first switch 242 is at a low level, and the first switch 242 is off.
[0237] Figure 28The voltage waveforms during the rapid connection and disconnection (i.e., rapid plugging and unplugging of charger 30) between charging port 210 and the target charger are shown. Figure 28 As shown, during the first time period, the charging port 210 is not yet connected to the charger 30, the control terminal of the first switch 242 is at a low level, and the first switch 242 is off. During the second time period, the charging port 210 is connected to the charger 30. At this time, the processing unit 224 controls the step-down circuit 2224 in the charging management unit 222 to power on, so as to charge the battery 140 through the step-down circuit 2224. At the same time, the control terminal of the first switch 242 is at a high level, and the first switch 242 is in the on state. During the second time period, the processing unit 224 needs to determine whether the charger 30 is the target charger. After the processing unit 224 determines that the charger 30 is the target charger, during the third time period, the battery 140 is quickly charged through the charging chip 230, and during the charging process, the charging chip 230 or the third communication terminal a3 of the processing module 220 communicates with the charger 30. During this time period, processing unit 224 controls the third switch 2222 to turn off, thereby powering down both the step-down circuit 2224 in charging management unit 222 and the output terminal of charging management unit 222. At this time, the control terminal of the first switch 242 is at a low level, and the first switch 242 is off. During the fourth time period, charger 30 is unplugged, and the connection between charging port 210 and charger 30 is broken, specifically, the voltage change at the power supply terminal VBUS of charging port 210 is 0. At this time, the control terminal of the first switch 242 is at a low level, and the first switch 242 is in the off state. The process of the fifth time period is the same as that of the second time period, the process of the sixth time period is the same as that of the third time period, the process of the seventh time period is the same as that of the fourth time period, the process of the eighth time period is the same as that of the fifth time period, and the process of the ninth time period is the same as that of the sixth time period, which will not be described again. That is to say, Figure 28 The voltage waveform of the charging circuit 20 is shown when the target charger is plugged in and unplugged.
[0238] according to Figures 23 to 28It can be seen that in all possible scenarios, when the processing unit 224 in the processing module 220 communicates with the charger 30 through the first communication terminal of the charging management unit 222, the processing unit 224 can control the first switch 242 to be in the on state; while when the processing module 220 determines that the charging chip 230 communicates with the charger 30, or when the processing module 220 determines that the processing unit 224 communicates with the charger 30 through the third communication terminal of the charging management unit 222, that is, when it is determined that communication with the charger 30 through the first communication terminal a1 of the charging management unit 222 in the processing module 220 is not required, the processing unit 224 can control the first switch 242 to be in the off state. In this way, a large current can be continuously flowing through the common-mode inductor (including the first inductor L1 and the second inductor L2), preventing the common-mode inductor from burning out. In addition, in the scenario of rapid plugging and unplugging of the charger 30, the charging icon is also displayed normally, as expected.
[0239] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A charging circuit, applied to electronic devices, characterized in that, The charging circuit includes: a charging port, a first inductor, a first switch, a processing module, and a charging chip; The first end of the first inductor is connected to the first data terminal of the charging port, and the second end of the first inductor is connected to the first end of the first switch; the second end of the first switch is connected to the first communication terminal of the processing module; the output terminal of the processing module is connected to the control terminal of the first switch. The first communication terminal of the charging chip is connected to the first terminal of the first switch; the first terminal of the charging chip is connected to the power terminal of the charging port; and the second terminal of the charging chip is connected to the battery of the electronic device. The processing module is used for: When it is determined that the charging port is connected to the charger, it is determined whether the charger is the target charger. The target charger refers to a charger that can charge the battery through the charging chip, and does not need to communicate with the charger through the first communication terminal of the processing module when charging the battery through the charging chip. If the charger is determined to be the target charger, then the first switch is turned off.
2. The charging circuit as described in claim 1, characterized in that, The first end of the processing module is connected to the power supply end of the charging port, and the second end of the processing module is connected to the battery of the electronic device. The processing module is used for: If a preset voltage is detected at the power supply terminal of the charging port, it is determined that the charging port is connected to the charger.
3. The charging circuit as described in claim 2, characterized in that, The processing module is used for: When it is determined that the charging port is connected to the charger, it is determined whether the output port of the charger is a dedicated charging port; If the output port of the charger is a dedicated charging port, then determine whether the charger is a Supercharger Protocol (SCP) charger. If the charger is an SCP charger, then the charger is determined to be the target charger.
4. The charging circuit as described in claim 3, characterized in that, The processing module is used for: If it is determined that the charger is the target charger, and it is determined that the electronic device and the charger meet the preset charging conditions, then the first switch is controlled to be turned off; The charging chip is controlled to operate so as to charge the battery through the charging chip.
5. The charging circuit as described in claim 3 or 4, characterized in that, The processing module is also used for: If the output port of the charger is not a dedicated charging port, or if the output port of the charger is a dedicated charging port and the charger is not an SCP charger, then the first switch remains on, and the battery is charged through the charging management unit in the processing module.
6. The charging circuit as described in claim 2, characterized in that, The processing module is used for: When it is determined that the charging port is connected to the charger, it is determined whether the charger is a power transfer PD charger; If the charger is a PD charger, then determine whether the charger supports programmable power supply; If the charger supports programmable power, then the charger is determined to be the target charger.
7. The charging circuit as described in claim 6, characterized in that, The processing module is used for: If it is determined that the charger is the target charger, and it is determined that the electronic device and the charger meet the preset charging conditions, then the first switch is controlled to be turned off; The charging chip is controlled to operate so as to charge the battery through the charging chip.
8. The charging circuit as described in claim 6 or 7, characterized in that, The processing module is also used for: If the charger is not a PD charger, or if the charger is a PD charger but the charger does not support programmable power, then the first switch remains on, and the battery is charged through the charging management unit in the processing module.
9. The charging circuit as described in claim 2, characterized in that, The processing module is used for: When it is determined that the charging port is connected to the charger, it is determined whether the charger is a Converged Fast Charging Standard (UFCS) charger. If the charger is a UFCS charger, and it is determined that the electronic device and the charger meet the preset charging conditions, then the first switch remains on. The charging chip is controlled to operate so as to charge the battery through the charging chip.
10. The charging circuit as described in claim 9, characterized in that, The processing module is also used for: If it is determined that the charger is not a UFCS charger, the first switch remains on, and the battery is charged through the charging management unit in the processing module.
11. The charging circuit according to any one of claims 1 to 10, characterized in that, The processing module is also used for: If it is determined that the connection between the charging port and the charger is disconnected, the first switch is controlled to turn off within a preset time period; After the preset time period ends, control of the first switch is stopped; Set the current output to the battery to zero.
12. The charging circuit according to any one of claims 1 to 11, characterized in that, The charging circuit further includes: a first diode; The first diode is a transient voltage suppressor diode; the first terminal of the first diode is connected to the second terminal of the first switch, and the second terminal of the first diode is connected to the ground wire.
13. The charging circuit according to any one of claims 1 to 12, characterized in that, The charging circuit also includes: a second diode, a notch filter network, and a resistor; The second diode is a transient voltage suppressor diode; the first terminal of the second diode is connected to the second terminal of the first inductor, and the second terminal of the second diode is connected to ground. The notch filter network is connected in series between the second terminal of the first inductor and the first terminal of the first switch; the resistor is connected in series between the second terminal of the first switch and the first communication terminal of the processing module.
14. The charging circuit according to any one of claims 1 to 13, characterized in that, The charging circuit also includes: a second inductor and a second switch; The first end of the second inductor is connected to the second data terminal of the charging port, and the second end of the second inductor is connected to the first end of the second switch; the second end of the second switch is connected to the second communication terminal of the processing module; the output terminal of the processing module is connected to the control terminal of the second switch. The second communication terminal of the charging chip is connected to the first terminal of the second switch; The processing module is further configured to: if it is determined that the charger is the target charger, then control the second switch to turn off.
15. The charging circuit according to any one of claims 1 to 14, characterized in that, The processing module includes: a charging management unit and a processing unit; The first communication terminal of the charging management unit is connected to the second terminal of the first switch; The charging management unit includes: a third switch and a step-down circuit; the first end of the third switch is connected to the power supply end of the charging port, the second end of the third switch is connected to the first end of the step-down circuit and the control end of the first switch, and the second end of the step-down circuit is connected to the battery; The processing unit is connected to the charging management unit, and the processing unit is used for: When it is determined that the charging port is connected to the charger, it is determined whether the charger is the target charger; If the charger is determined to be the target charger, the third switch is controlled to turn off, thereby turning off the first switch.
16. An electronic device, characterized in that, Includes a battery and a charging circuit as described in any one of claims 1 to 15; The battery is connected to the second end of the charging chip so that the battery can be charged by the charging chip.
17. A charging control method, applied to the electronic device as described in claim 16, characterized in that, The charging control method includes: When it is determined that the charging port is connected to the charger, it is determined whether the charger is the target charger. The target charger refers to a charger that can charge the battery through the charging chip, and does not need to communicate with the charger through the first communication terminal of the processing module when charging the battery through the charging chip. If the charger is determined to be the target charger, then the first switch is turned off.