A charging device and a control method thereof, and a charging system

By interleaving the upper and lower bridge switches in the charging device and detecting abnormal waveforms, the problem of excessive clamping capacitor voltage in the half-bridge charging device is solved, the safety of the device is improved, and the risk of short circuit or open circuit is avoided.

CN114844185BActive Publication Date: 2024-09-24HUAWEI DIGITAL POWER TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210288033.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-04-10
Publication Date
2024-09-24
Estimated Expiration
2040-04-10

AI Technical Summary

Technical Problem

In the half-bridge charging device, the voltage of the clamping capacitor is too high due to the failure of the upper bridge switch to conduct, which may cause a short circuit or open circuit, posing a safety hazard of fire or overheating.

Method used

Design a charging device, including a rectifier circuit, a transformer, a lower-bridge switch, an upper-bridge switch and a clamping capacitor. The controller interleavely controls the conduction of the upper-bridge and lower-bridge switches at different stages of the charging cycle, collects sampling waveforms, and detects abnormal waveform and turn off the low-side switch in the next charging cycle to prevent the leakage inductance from charging the clamping capacitor and avoid excessive voltage.

Benefits of technology

It effectively prevents the clamping capacitor voltage from being too high, avoids short circuit or open circuit problems, improves the safety of the charging device, and reduces potential safety hazards.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114844185B
    Figure CN114844185B
Patent Text Reader

Abstract

The embodiments of the present application provide a charging device and a control method and a charging system, which relate to the field of terminal device charging technology. It is used to avoid the problem of short circuit or open circuit due to the excessive voltage of the clamping capacitor. The charging device includes a rectifier circuit, a transformer, a lower bridge switch, a clamping capacitor, an upper bridge switch and a controller. Among them, the transformer includes a primary coil and at least one secondary coil. The controller is used to control the staggered conduction of the upper bridge switch and the lower bridge switch. The controller is also used to obtain a sampling waveform at the electrical connection between the controller and the transformer when the lower bridge switch is turned off, and when the sampling waveform is abnormal, the lower bridge switch is turned off in the next charging cycle. Among them, the sampling waveform includes the voltage waveform of the primary coil or the voltage waveform of the secondary coil.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application. The application number of the original application is 202010279469.9, and the original application date is April 10, 2020. The entire contents of the original application are incorporated into this application by reference. Technical Field

[0002] The present application relates to the technical field of terminal device charging, and in particular to a charging device and a control method thereof, and a charging system. Background Art

[0003] There are many half-bridge applications in the field of charging devices, such as the active clamp flyback (ACF) topology. However, there are often some problems with charging devices with half-bridges during use. For example, the voltage of the clamp capacitor in the half-bridge circuit structure is too high due to the upper bridge switch not being turned on, exceeding its withstand voltage value. This will cause the clamp capacitor to short-circuit or open-circuit, resulting in safety hazards such as fire or overheating. Summary of the invention

[0004] The embodiments of the present application provide a charging device and a control method thereof, and a charging system, which are used to prevent the voltage of the clamping capacitor from being too high, thereby preventing problems such as short circuit or open circuit from occurring.

[0005] In order to achieve the above objectives, this application adopts the following technical solutions:

[0006] In a first aspect of an embodiment of the present application, a charging device is provided, which is used to supply power to a load. The charging device includes a rectifier circuit, a transformer, a lower bridge switch, a clamping capacitor, and an upper bridge switch. The rectifier circuit is used to rectify the received alternating current. The transformer is used to step down the output voltage of the rectifier circuit and provide it to the load. In addition, the transformer includes a primary coil and at least one secondary coil, and the first end of the primary coil is electrically connected to the rectifier circuit. The first end of the lower bridge switch is electrically connected to the second end of the primary coil, and the second end of the lower bridge switch is electrically connected to the ground. The lower bridge switch is used to turn on in the first stage of the charging cycle of the charging device, so that the current output by the rectifier circuit is transmitted to the primary coil to charge the primary coil. In addition, the first end of the clamping capacitor is electrically connected to the first end of the primary coil. The first end of the upper bridge switch is electrically connected to the second end of the clamping capacitor. The second end of the upper bridge switch is electrically connected to the second end of the primary coil. The upper bridge switch is used to turn on in the second stage of the charging cycle, so that the leakage inductance of the primary coil is charged to the clamping capacitor, and the clamping capacitor is discharged to the primary coil. The charging device also includes a controller. The processor is used to control the staggered conduction of the upper bridge switch and the lower bridge switch in the first stage and the second stage. The controller is also used to obtain a sampling waveform at the electrical connection between the controller and the transformer when the lower bridge switch is turned off. When the sampling waveform of the current charging cycle is abnormal, the controller turns off the lower bridge switch in the first stage of the next charging cycle. The sampling waveform includes the voltage waveform of the primary coil or the voltage waveform of the secondary coil. This prevents the leakage inductance in the primary coil from charging the clamping capacitor again, avoiding problems such as the voltage of the clamping capacitor being too high, short circuit or open circuit, etc.

[0007] Optionally, the electrical connection between the controller and the transformer is located between the second end of the primary coil and the first end of the lower bridge switch, or between the second end of the upper bridge switch and the first end of the lower bridge switch, and by testing the Vds voltage value when the lower tube switch is turned off, it is determined whether the sampled waveform is an abnormal waveform.

[0008] Optionally, the transformer includes a first secondary coil, and the transformer also includes a first rectifier diode. The first end of the first secondary coil is electrically connected to the anode of the first rectifier diode, the cathode of the first rectifier diode is used to be electrically connected to the load, and the second end of the first secondary coil is grounded. Based on this, the first secondary coil and the primary coil are used to step down the voltage of the primary coil by electromagnetic induction and generate a first output voltage. The sampling point at the electrical connection between the controller and the transformer is located at the first end of the first secondary coil. Since the first output voltage is synchronized with the voltage waveform of the primary coil, it is possible to determine whether the sampled waveform is an abnormal waveform by collecting a waveform diagram of the first output voltage when the lower bridge switch is turned off.

[0009] Optionally, the charging device also includes a power supply circuit, which is electrically connected to the controller and is used to supply power to the controller. In addition, the transformer also includes a second secondary coil and a second rectifier diode, wherein the first end of the second secondary coil is electrically connected to the anode of the second rectifier diode, the cathode of the second rectifier diode is electrically connected to the power supply circuit, and the second pole of the second secondary coil is grounded. Based on this, the second secondary coil and the primary coil are used to step down the voltage of the primary coil by electromagnetic induction and generate a second output voltage, and the second output voltage is used to supply power to the power supply circuit. In this case, the electrical connection between the controller and the transformer is located at the first end of the second secondary coil. Since the second output voltage is synchronized with the voltage waveform of the primary coil, it is possible to determine whether the sampled waveform is an abnormal waveform by collecting the waveform diagram of the second output voltage when the lower bridge switch is turned off.

[0010] Optionally, the sampling waveform of the current charging cycle is abnormal, including: the controller obtains the platform voltage Vt of the sampling waveform in the second stage of the Nth charging cycle. In the second stage, it is detected that the peak voltage Vp of the sampling waveform is greater than the platform voltage Vt; or, in the second stage, the integral area S of the portion of the sampling waveform that exceeds the platform voltage Vt in the second stage is calculated, and S>0. Wherein N≥1, N is a positive number. In this way, in the case of an abnormal waveform, the peak voltage Vp will become larger than the platform voltage Vt. Therefore, it is possible to determine whether the sampling waveform is an abnormal waveform by detecting the area of ​​the same cycle Vp or the portion that exceeds the platform voltage.

[0011] Optionally, the sampling waveform of the current charging cycle is abnormal, including: the controller obtains the platform voltage Vt of the sampling waveform in the second stage of the Nth charging cycle, continuously obtains the Nth charging cycle, and the second stage of the M charging cycles before the Nth charging cycle, the integral area S of the second stage of the part exceeding the platform voltage Vt, and calculates the area difference △S between the integral areas S of two adjacent charging cycles from the M+1 integral areas S, and △S≠0. Wherein, N≥1, N is a positive number, M≥1, M is a positive number. In the case of an abnormal waveform, the peak voltage Vp will become larger than the platform voltage Vt. Therefore, it can be determined whether the sampling waveform is an abnormal waveform by detecting the area of ​​the part exceeding the platform voltage in different cycles.

[0012] Optionally, the sampling waveform of the current charging cycle is abnormal, including: the controller obtains the platform voltage Vt of the sampling waveform in the second stage of the N-1th charging cycle, and obtains the peak voltage Vp of the sampling waveform in the second stage of the Nth charging cycle, and Vp>Vt. Wherein, N≥2, N is a positive number. In the case of an abnormal waveform, the peak voltage Vp will be larger than the platform voltage Vt, so it can be determined whether the sampling waveform is an abnormal waveform by detecting Vt and Vp of the two cycles before and after.

[0013] Optionally, when the controller is electrically connected to the primary coil, the platform voltage Vt = (Vo + Vo1 × T1). Wherein, Vo is the output voltage of the rectifier circuit, Vo1 is the output voltage provided by the transformer to the load, and T1 is the turns ratio of the primary coil in the transformer to the secondary coil used to supply power to the load. Alternatively, when the controller is electrically connected to the secondary coil, the platform voltage Vt = -Vo / T2. Wherein, T2 is the turns ratio of the primary coil in the transformer to the secondary coil electrically connected to the controller. In this way, the value of the platform voltage can be used to determine the abnormal waveform.

[0014] Optionally, the sampling waveform of the current charging cycle is abnormal, including: the controller continuously obtains the peak voltage Vp of the sampling waveform in the second stage of the Nth charging cycle and the M charging cycles before the Nth charging cycle, and calculates the voltage difference △V between the peak voltages Vp of the sampling waveforms of two adjacent charging cycles from the M+1 peak voltages Vp, and △V≠0. Wherein, N≥1, N is a positive number, M≥1, M is a positive number. The peak voltage value of the abnormal waveform is different from that of the normal waveform. Therefore, it can be determined whether the sampling waveform is an abnormal waveform by calculating the peak voltage Vp of different cycles.

[0015] Optionally, the sampling waveform of the current charging cycle is abnormal, including: the controller obtains the end of the third stage of the Nth charging cycle, and the voltage of the sampling waveform is greater than or equal to 30V. N≥1, N is a positive number. Due to the normal waveform, the voltage at the end of the third stage of the Nth charging cycle, that is, the voltage at the starting end of the first stage of the N+1th cycle, will generate a negative current at the position of the primary coil due to the opening of the upper bridge switch. Under the action of this current, the charge in the parasitic capacitor in the lower bridge switch is drawn away, so that the voltage value quickly drops to 0 or close to 0, while in the abnormal waveform. The upper bridge switch is turned off, and the above-mentioned negative current does not exist, resulting in a larger voltage at the end of the third stage of the Nth charging cycle. Therefore, it is possible to determine whether the sampling waveform of the current charging cycle is an abnormal waveform by detecting the voltage value at the end of the third stage of the Nth charging cycle.

[0016] Optionally, the charging device further includes a sampling circuit, which is electrically connected between the controller and the transformer. The sampling circuit is used to reduce the voltage at the electrical connection between the sampling circuit and the transformer and provide it to the controller. This ensures that the voltage value at the electrical connection between the sampling circuit and the transformer does not exceed the withstand voltage value of the controller.

[0017] Optionally, the sampling circuit includes a first resistor and a second resistor, wherein the first end of the first resistor is electrically connected to the transformer. The first end of the second resistor is electrically connected to the second end of the first resistor and the controller, and the second end of the second resistor is grounded. The voltage value collected by the controller can be changed by adjusting the resistance ratio of the first resistor and the second resistor to ensure that the voltage value does not exceed the withstand voltage of the controller. When the resistance ratio of the first resistor to the second resistor is larger, the collected voltage value is smaller.

[0018] Optionally, the sampling circuit includes a first coil and a second coil, wherein a first end of the first coil is electrically connected to a transformer, and a second end of the first coil is grounded. A first end of the second coil is electrically connected to a controller, and the other end is grounded. In addition, the number of turns of the first coil is greater than the number of turns of the second coil. The voltage value collected by the controller can be changed by controlling the turns ratio of the first coil and the second coil. When the turns ratio of the first coil and the second coil is larger, the collected voltage value is smaller.

[0019] Optionally, the sampling circuit includes a third resistor and a second capacitor, wherein a first end of the third resistor is electrically connected to the controller, and a second end of the third resistor is grounded. A first end of the second capacitor is electrically connected to the transformer, and a second end of the second capacitor is electrically connected to the controller. The voltage value collected by the controller can be changed by adjusting the capacitance of the second capacitor or the resistance of the third resistor, and when the capacitance of the second capacitor or the resistance of the third resistor is larger, the collected voltage value is larger.

[0020] According to a second aspect of an embodiment of the present application, a charging system is provided, which includes an electronic device and any one of the charging devices described above, wherein the electronic device includes a battery, and the battery is electrically connected to the charging device.

[0021] In a third aspect of an embodiment of the present application, a control method for a charging device is provided, and the control method for the charging device is applied to the charging device. The charging device includes a rectifier circuit, a transformer, a lower bridge switch, a clamping capacitor, an upper bridge switch, and a controller. Among them, the transformer includes a primary coil and at least one secondary coil, and the first end of the primary coil is electrically connected to the rectifier circuit. The controller is electrically connected to the transformer. In addition, the first end of the lower bridge switch is electrically connected to the second end of the primary coil, and the second end of the lower bridge switch is electrically connected to the ground terminal. The first end of the clamping capacitor is electrically connected to the first end of the primary coil. The first end of the upper bridge switch is electrically connected to the second end of the clamping capacitor, and the second end of the upper bridge switch is electrically connected to the second end of the primary coil. The control method of the charging device includes: in the first stage of the charging cycle of the charging device, the controller controls the lower bridge switch to turn on and the upper bridge switch to turn off, so that the current output by the rectifier circuit charges the primary coil. In the second stage of the charging cycle, the controller controls the lower bridge switch to turn off and the upper bridge switch to turn on, so that the primary coil is discharged, the transformer steps down the output voltage of the rectifier circuit and provides it to the load, and the leakage inductance of the primary coil charges the clamping capacitor. When the leakage inductance has no current output, the clamping capacitor discharges to the primary coil. The control method of the charging device also includes a waveform processing step: in the second stage of the charging cycle, the controller obtains a sampled waveform at the electrical connection between the controller and the transformer, wherein the sampled waveform includes a voltage waveform of the primary coil or a voltage waveform of the secondary coil. When the sampled waveform of the current charging cycle is abnormal, the controller turns off the lower bridge switch in the first stage of the next charging cycle. In this way, it is possible to promptly detect whether the upper bridge switch is abnormal, and turn off the lower bridge switch of the next cycle, thereby preventing the leakage inductance in the primary coil from charging the clamping capacitor again, thereby avoiding problems such as excessive voltage of the clamping capacitor, short circuit or open circuit.

[0022] Optionally, the sampling waveform of the current charging cycle is abnormal, including: the controller obtains the platform voltage Vt of the sampling waveform in the second stage of the Nth charging cycle, and in the second stage, it is detected that the peak voltage Vp of the sampling waveform is greater than the platform voltage Vt; or, in the second stage, the integral area S of the portion of the sampling waveform that exceeds the platform voltage Vt in the second stage is calculated, and S>0. Wherein, N≥1, N is a positive number. In the case of an abnormal waveform, the peak voltage Vp will be larger than the platform voltage Vt. Therefore, it can be determined whether the sampling waveform is an abnormal waveform by detecting the area of ​​the same cycle Vp or the portion that exceeds the platform voltage.

[0023] Optionally, the sampling waveform of the current charging cycle is abnormal, including: the controller obtains the platform voltage Vt of the sampling waveform in the second stage of the Nth charging cycle, continuously obtains the integral area S of the second stage of the portion exceeding the platform voltage Vt in the Nth charging cycle and the M charging cycles before the Nth charging cycle, and calculates the area difference △S between the integral areas S of two adjacent charging cycles from the M+1 integral areas S, and △S≠0. Wherein, N≥1, N is a positive number, M≥1, M is a positive number. In the case of an abnormal waveform, the peak voltage Vp will become larger than the platform voltage Vt. Therefore, it can be determined whether the sampling waveform is an abnormal waveform by detecting the area of ​​the portion exceeding the platform voltage in different cycles.

[0024] Optionally, the sampling waveform of the current charging cycle is abnormal, including: the controller obtains the platform voltage Vt of the sampling waveform in the second stage of the N-1th charging cycle, and obtains the peak voltage Vp of the sampling waveform in the second stage of the Nth charging cycle, and Vp>Vt. Wherein, N≥2, N is a positive number. In the case of an abnormal waveform, the peak voltage Vp will be larger than the platform voltage Vt, so it can be determined whether the sampling waveform is an abnormal waveform by detecting Vt and Vp of the two cycles before and after.

[0025] Optionally, when the controller is electrically connected to the primary coil, the platform voltage Vt = (Vo + Vo1 × T1). Wherein, Vo is the output voltage of the rectifier circuit, Vo1 is the output voltage provided by the transformer to the load, and T1 is the turns ratio of the primary coil in the transformer to the secondary coil used to supply power to the load. Alternatively, when the controller is electrically connected to the secondary coil, the platform voltage Vt = -Vo / T2. Wherein, T2 is the turns ratio of the primary coil in the transformer to the secondary coil electrically connected to the controller. In this way, the value of the platform voltage can be used to determine the abnormal waveform.

[0026] Optionally, the sampling waveform of the current charging cycle is abnormal, including: the controller continuously obtains the peak voltage Vp of the sampling waveform in the second stage of the Nth charging cycle and the M charging cycles before the Nth charging cycle, and calculates the voltage difference △V between the peak voltages Vp of the sampling waveforms of two adjacent charging cycles from the M+1 peak voltages Vp, and △V≠0. Wherein, N≥1, N is a positive number, M≥1, M is a positive number. The peak voltage value of the abnormal waveform is different from that of the normal waveform. Therefore, it can be determined whether the sampling waveform is an abnormal waveform by calculating the peak voltage Vp of different cycles.

[0027] Optionally, the sampling waveform of the current charging cycle is abnormal, including: the controller obtains the end of the third stage of the Nth charging cycle, and the voltage of the sampling waveform is greater than or equal to 30V. N≥1, N is a positive number. Due to the normal waveform, the voltage at the end of the third stage of the Nth charging cycle, that is, the voltage at the starting end of the first stage of the N+1th cycle, will generate a negative current at the position of the primary coil due to the opening of the upper bridge switch. Under the action of this current, the charge in the parasitic capacitor in the lower bridge switch is drawn away, so that the voltage value quickly drops to 0 or close to 0, while in the abnormal waveform. The upper bridge switch is turned off, and the above-mentioned negative current does not exist, resulting in a larger voltage at the end of the third stage of the Nth charging cycle. Therefore, it is possible to determine whether the sampling waveform of the current charging cycle is an abnormal waveform by detecting the voltage value at the end of the third stage of the Nth charging cycle. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 A schematic diagram of a charging system structure provided in an embodiment of the present application;

[0029] Figure 2a A schematic diagram of the structure of a charging device provided in an embodiment of the present application;

[0030] Figure 2b A schematic diagram of another charging device structure provided in an embodiment of the present application;

[0031] Figure 2c for Figure 2b A structural schematic diagram of an upper bridge switch;

[0032] Figure 3a A schematic diagram of another charging device structure provided in an embodiment of the present application;

[0033] Figure 3b A waveform diagram of the Vds voltage and period T corresponding to a lower bridge switch (upper half) and a waveform diagram of the current and period of the clamping capacitor Cq (lower half) provided in an embodiment of the present application;

[0034] Figure 3c A schematic diagram of another charging device structure provided in an embodiment of the present application;

[0035] Figure 3d A schematic diagram of another charging device structure provided in an embodiment of the present application;

[0036] Figure 4a A schematic diagram of another charging device structure provided in an embodiment of the present application;

[0037] Figure 4b A schematic diagram of another charging device structure provided in an embodiment of the present application;

[0038] Figure 5A schematic diagram of another charging device structure provided in an embodiment of the present application;

[0039] Figure 6a A waveform diagram of the Vds voltage and the period T corresponding to another lower bridge switch provided in an embodiment of the present application (upper half) and a waveform diagram of the current and the period of the clamping capacitor Cq (lower half);

[0040] Figure 6b A waveform diagram of the Vds voltage and the period T corresponding to another lower bridge switch provided in an embodiment of the present application (upper half) and a waveform diagram of the current and the period of the clamping capacitor Cq (lower half);

[0041] Figure 7a A schematic diagram of another charging device structure provided in an embodiment of the present application;

[0042] Figure 7b A schematic diagram of the structure of a sampling circuit provided in an embodiment of the present application;

[0043] Figure 7c A schematic diagram of the structure of another sampling circuit provided in an embodiment of the present application;

[0044] Figure 7d A schematic diagram of the structure of another sampling circuit provided in an embodiment of the present application;

[0045] Figure 8a A waveform diagram of the Vds voltage and the period T corresponding to another lower bridge switch provided in an embodiment of the present application (upper half) and a waveform diagram of the current and the period of the clamping capacitor Cq (lower half);

[0046] Figure 8b A waveform diagram of the Vds voltage and the period T corresponding to another lower bridge switch provided in an embodiment of the present application (upper half) and a waveform diagram of the current and the period of the clamping capacitor Cq (lower half);

[0047] Figure 8c A waveform diagram of the Vds voltage and the period T corresponding to another lower bridge switch provided in an embodiment of the present application (upper half) and a waveform diagram of the current and the period of the clamping capacitor Cq (lower half);

[0048] Figure 8d A waveform diagram of the Vds voltage and the period T corresponding to another lower bridge switch provided in an embodiment of the present application (upper half) and a waveform diagram of the current and the period of the clamping capacitor Cq (lower half);

[0049] Figure 9a A flowchart of a method for determining a waveform provided in an embodiment of the present application;

[0050] Figure 9bA flowchart of another waveform determination method provided in an embodiment of the present application.

[0051] Reference numerals:

[0052] 01-electronic device; 02-charging device; 101-connector; 102-battery; 301-power supply interface 1; 302-power supply interface 2; 201-rectifier circuit; 202-transformer; 204-upper bridge drive circuit; 205-lower bridge drive circuit; FB-full bridge rectifier circuit; Cst-capacitor; Cq-clamping capacitor; Lr-leakage inductance; Lm-primary coil; Ld-first secondary coil; Tc-upper bridge switch; Cj1-parasitic capacitor 1; Cj2-parasitic capacitor 2; g-gate ;d-drain;s-source;D1-first rectifier diode;QVT-transistor;D-diode;L-live wire;N-neutral wire;203-controller;501-power supply circuit;502-upper bridge power supply unit;503-lower bridge power supply unit;D2-first rectifier diode;Lf-second secondary coil;701-sampling circuit;Td-lower bridge switch;R1-first resistor;R2-second resistor;L1-first coil;L2-second coil;C2-second capacitor;R3-third resistor. DETAILED DESCRIPTION

[0053] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.

[0054] In the following, the terms "first", "second", etc. are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first", "second", etc. may explicitly or implicitly include one or more of the features. In the description of this application, unless otherwise specified, "plurality" means two or more.

[0055] In addition, in the present application, directional terms such as "left" and "right" may be defined including but not limited to the orientation relative to the schematic placement of components in the drawings. It should be understood that these directional terms may be relative concepts, which are used for relative description and clarification, and may change accordingly according to changes in the orientation of the components in the drawings.

[0056] In this application, unless otherwise clearly specified and limited, the term "connection" should be understood in a broad sense. For example, "connection" can be a fixed connection, a detachable connection, or an integral connection; it can be a direct connection or an indirect connection through an intermediate medium. In addition, the term "electrical connection" can be a way of achieving electrical connection for signal transmission. "Electrical connection" can be a direct electrical connection or an indirect electrical connection through an intermediate medium.

[0057] The present application embodiment provides a charging system, such as Figure 1 As shown, the charging system may include an electronic device 01 and a charging device 02. The electronic device 01 may include a mobile phone, a tablet computer, a computer, a smart watch, a camera, etc., which is not limited in this application. The battery 102 in the electronic device 01 is electrically connected to the charging device 02 by connecting to the connector 101, the power supply interface 1 301, and the power supply interface 2 302. In addition, the charging device 02 is connected to 220V AC power and converts the AC power into DC power suitable for the operation of the electronic device 01, thereby charging the battery 102 in the electronic device 01. The battery 102 provides the required power to the load circuit in the electronic device 01 that is electrically connected to the battery 102, so as to realize the normal operation of the electronic device 01.

[0058] The following Figure 1 The structure of the charging device 02 is described in detail. Figure 2a As shown, the charging device 02 may include a rectifier circuit 201 and a transformer 202, wherein the rectifier circuit 201 is electrically connected to the transformer 202, and the right side of the transformer 202 is electrically connected to the load 01. The rectifier circuit 201 is used to rectify the received alternating current and provide voltage to the transformer 202, and the transformer 202 is used to convert the voltage into a working voltage suitable for the load 01 and transmit it to the load 01. Therefore, the transformer 202 plays a role in reducing the voltage.

[0059] like Figure 2b As shown, the rectifier circuit 201 can be electrically connected to the external power supply network through a live wire (L) and a neutral wire (N), so as to rectify the connected AC power. In addition, the rectifier circuit 201 may include a full-bridge rectifier circuit FB and a capacitor Cst. The connected 220V AC power is converted into DC power after passing through the full-bridge rectifier circuit FB and stored in the capacitor Cst, and the capacitor Cst is used to provide a voltage for the transformer 202 electrically connected thereto, and the voltage is called the output voltage Vo of the rectifier circuit 201.

[0060] In order to make the transformer 202 play a role of stepping down, the transformer 202 may include a primary coil Lm and at least one secondary coil. Among them, the transformer 202 may include a first secondary coil Ld. In this case, the first end (upper end) of the primary coil Lm is electrically connected to the rectifier circuit 201, the first end (upper end) of the first secondary coil Ld is electrically connected to the power supply interface 1 301, and is electrically connected to the load 01 through the power supply interface 2 302. Based on this, the first secondary coil Ld and the primary coil Lm are used to step down the voltage Vb of the primary coil Lm by electromagnetic induction, and generate a first output voltage Vo1, that is, the voltage of the first secondary coil Ld. Since the voltage Vb of the primary coil Lm and the voltage Vo1 of the first secondary coil Ld are proportional to the number of turns corresponding to the primary coil Lm and the first secondary coil Ld, the voltage on the first secondary coil Ld can be adjusted by controlling the number of turns of the primary coil Lm and the first secondary coil Ld. At the same time, in order to make the transformer 202 play a role of stepping down, the number of turns of the primary coil Lm should be greater than the number of turns of the first secondary coil Ld.

[0061] In addition, the transformer 202 may further include a first rectifier diode D1, which is used to rectify the current transmitted to the load 01. The first end (upper end) of the first secondary coil Ld is electrically connected to the anode of the first rectifier diode D1, and the cathode of the first rectifier diode D1 is used to be electrically connected to the load 01. In addition, the second end (lower end) of the first secondary coil Ld is grounded.

[0062] It should be noted that, since the voltage transformed by the transformer 202 only changes the voltage value in the same proportion due to the different number of turns of the coil, the voltage change trend is not changed. Therefore, in theory, the voltage Vb of the primary coil Lm and the voltage Vo1 of the first secondary coil Ld have synchronized waveforms and a phase difference of 180°. Among them, waveform synchronization means that the waveforms change simultaneously with the change of time. For example, at the same time, when the voltage waveform of the primary coil Lm increases in the direction of the positive voltage, the voltage Vo1 of the first secondary coil Ld increases in the direction of the negative voltage.

[0063] Based on this, the charging device 02 may also include a clamping capacitor Cq, an upper bridge switch Tc, and a lower bridge switch Td, wherein the first end (upper end) of the primary coil Lm is electrically connected to the first end (upper end) of the clamping capacitor Cq, the second end (lower end) of the primary coil Lm is electrically connected to the second end (lower end) of the upper bridge switch Tc, and the first end (upper end) of the upper bridge switch Tc is electrically connected to the second end (lower end) of the clamping capacitor Cq. In addition, the first end (upper end) of the lower bridge switch Td is electrically connected to the second end (lower end) of the primary coil Lm, and the second end (lower end) of the lower bridge switch Td is electrically connected to the ground.

[0064] It should be noted that the upper bridge switch Tc includes: Figure 2cA transistor QVT and a diode D electrically connected to the source (source, s) and drain (drain, d) of the transistor QVT are shown. The transistor QVT can be a P-type transistor or an N-type transistor (the figure shows an N-type transistor, the upper end corresponds to the drain d, and the lower end corresponds to the source s). In this case, the upper bridge switch Tc has a single-way shutdown function, that is, when the signal received by the gate (gate, g) of the upper bridge switch Tc is used to control the transistor QVT to be turned off, only when the voltage of the cathode of the diode D is greater than the anode, the diode D is turned off, and the entire lower bridge switch is turned off. The above-mentioned transistor QVT can be a field effect transistor (Field Effect Transistor, FET). In addition, when the upper bridge switch Tc is turned off, there is also a Figure 2c The parasitic capacitance Cj1 shown in FIG.

[0065] The structure of the lower bridge switch Td is the same as that of the upper bridge switch Tc, which will not be described in detail here.

[0066] In order to drive the upper bridge switch Tc and the lower bridge switch Td to be turned on, the charging device 02 may further include an upper bridge driving circuit 204 and a lower bridge driving circuit 205. When the upper bridge driving circuit 204 or the lower bridge driving circuit 205 provides a corresponding voltage to the gate (gate, g) of the upper bridge switch Tc or the lower bridge switch Td, the upper bridge switch Tc or the lower bridge switch Td may be turned on under the action of the voltage.

[0067] Based on this, the charging device 02 may go through N charging cycles in the process of charging the transformer 202, where N≥1 and N is a positive number. Any one of the N charging cycles may include the following: Figure 3b The first stage P1, the second stage P2 and the third stage P3 are shown. The working process of the charging device 02 in any one charging cycle T among the N charging cycles is described below.

[0068] In the first phase P1 of the charging cycle T, as Figure 3a As shown, the lower bridge switch Td is turned on, and the upper bridge switch Tc is turned off. At this time, the output voltage Vo of the rectifier circuit 201 is transmitted to the primary coil Lm to charge the primary coil Lm. Figure 3b When the lower bridge switch Td is turned off, the source-drain voltage corresponding to the lower bridge switch Td, that is, the waveform diagram of the Vds voltage and the period T ( Figure 3b The upper part of the figure) and the waveform of the current and period of the clamping capacitor Cq ( Figure 3b The lower half of the figure shows the waveform of Vds and the waveform of the current of the clamping capacitor Cq.

[0069] In the first stage P1, since the lower bridge switch Td is turned on, it is not within the range of the waveform diagram corresponding to the Vds voltage and the period, and is represented by 0 here. Similarly, it is also represented by 0 in the waveform diagram corresponding to the clamping capacitor Cq current and the period.

[0070] In the second phase P2 of the charging cycle T, as Figure 3c As shown in the figure, the lower bridge switch Td is turned off and the upper bridge switch Tc is turned on. In this case, first, the primary coil Lm discharges to the first secondary coil Ld through electromagnetic induction. During the discharge process, a part of the magnetic flux is not coupled to the first secondary coil Ld through the magnetic core, and returns to the primary coil Lm through the air closure, resulting in the following on the primary coil Lm: Figure 3c Based on this, while the primary coil Lm discharges to the first secondary coil Ld, the leakage inductance Lr on the primary coil Lm charges the clamping capacitor Cq, generating Figure 3b The forward current shown in the figure, after which, when the leakage inductance Lr has no current output, the clamping capacitor Cq discharges to the primary coil Lm, and generates the following Figure 3b Negative current shown.

[0071] In the waveform diagram corresponding to the Vds voltage value and the period, since in this stage, the primary coil Lm discharges to the first secondary coil Ld, its voltage value remains unchanged, and the leakage inductance Lr in the primary coil Lm charges and discharges to the clamping capacitor Cq. Since the capacity of the clamping capacitor Cq is large, the voltage value corresponding to the leakage inductance Lr can be ignored. Therefore, the voltage value of the Vds voltage value can remain unchanged in the second stage P2.

[0072] In the third phase P3 of the charging cycle T, Figure 3d As shown, the lower bridge switch Td is turned off and the upper bridge switch Tc is turned off, that is, the dead time. Since there is a current from bottom to top at the position of the primary coil Lm in the second stage P2 of the charging cycle T, when the upper bridge switch Tc is turned off, under the action of this current, the amount of electricity in the parasitic capacitor Cj2 in the lower bridge switch Td can be drawn away, and a negative current is generated. Therefore, in the third stage P3, there is a small negative current in the waveform diagram corresponding to the current of the clamping capacitor Cq and the cycle. Since the amount of electricity in the parasitic capacitor Cj2 in the lower bridge switch Td is drawn away, the voltage value of Vds drops rapidly to 0 or close to 0 at this time.

[0073] The above is an explanation of the charging process of the charging device 02 based on one charging cycle. When the charging device 02 charges the transformer 202, it may include multiple charging cycles. The charging process of each charging cycle is the same as described above and will not be repeated here.

[0074] In addition, if Figure 4aAs shown, the charging device 02 provided in the embodiment of the present application also includes a controller 203. In some embodiments of the present application, the controller 203 can be electrically connected to the gating end of the lower bridge switch Td and the gating end of the upper bridge switch Tc through the lower bridge drive circuit 205 and the upper bridge drive circuit 204. Among them, the gating end is used to control the switch to be turned on or off. When the switch is a transistor, the gating end is the gate g of the transistor. The controller 203 outputs logic signals through the HIN and LIN ports in the first stage P1 and the second stage P2 of the charging cycle to drive the upper bridge drive circuit 204 and the lower bridge drive circuit 205, thereby controlling the upper bridge switch Tc and the lower bridge switch Td to be staggered.

[0075] Based on this, for the convenience of explanation, in the charging device 02, the electrical connection point between the controller 203 and the transformer 202 can be called a sampling point. The controller 203 can obtain the voltage waveform at the electrical connection point between the controller 203 and the transformer 202 as a sampling waveform at the location of the sampling point. For example, Figure 4a As shown, the sampling point A may be located between the second end (lower end) of the primary coil Lm and the first end (upper end) of the lower bridge switch Td, or between the second end (lower end) of the upper bridge switch Tc and the first end (upper end) of the lower bridge switch Td. It should be noted that: Figure 4a The locations are examples only.

[0076] From the above, it can be seen that if the upper bridge switch Tc should be turned on but is not turned on in the second stage P2 of the charging cycle, at this time, the leakage inductance Lr of the primary coil Lm can only charge the clamping capacitor Cq, and the clamping capacitor Cq cannot be discharged to the primary coil Lm through the upper bridge switch Tc, resulting in excessive voltage on the clamping capacitor Cq, and problems such as short circuit or open circuit.

[0077] Based on this, the controller 203 obtains the sampled waveform at the sampling point A through the SN port. In the second stage P2 of the charging cycle, when the lower bridge switch Td is turned off, the voltage of the sampled waveform at the sampling point A is equal to the sum of the output voltage Vo of the rectifier circuit 201 and the voltage Vb of the primary coil Lm. Among them, the output voltage Vo of the rectifier circuit 201 is a DC voltage, so it will not affect the change trend of the voltage waveform of the primary coil Lm. In this case, the sampled waveform obtained by the controller 203 at the sampling point A can include the voltage waveform of the primary coil Lm, so that the sampled waveform of the sampling point A can change simultaneously with the voltage waveform of the primary coil Lm as time changes.

[0078] In this way, if the sampling waveform is abnormal in the current charging cycle, the controller 203 turns off the lower bridge switch Td in the first stage P1 of the next charging cycle, thereby preventing the leakage inductance Lr in the primary coil Lm from charging the clamping capacitor Cq again, avoiding the problem of the voltage of the clamping capacitor Cq being too high, causing a short circuit or an open circuit, etc.

[0079] It should be noted that the above-mentioned next charging cycle refers to a charging cycle that is adjacent to the current charging cycle for determining whether the sampling waveform is abnormal, such as the Nth charging cycle, and a charging cycle that occurs after the Nth charging cycle in chronological order, such as the N+1th charging cycle, which is the next charging cycle of the above-mentioned Nth charging cycle.

[0080] In addition, when the upper bridge switch Tc is not turned on, the parasitic capacitor Cj1 of the upper bridge switch Tc itself will be connected in series with the clamping capacitor Cq. At this time, the capacitance of its equivalent capacitance is less than any one of the parasitic capacitor Cj1 and the clamping capacitor Cq, and is significantly reduced compared to the capacitance when the upper bridge switch Tc is turned on (i.e., the capacitance of the clamping capacitor Cq). Therefore, when the upper bridge switch Tc is not turned on, the leakage inductance Lr can be quickly charged and discharged, thereby generating a higher electromotive force, so that the waveform of the sum of the output voltage Vo of the rectifier circuit 201 and the voltage Vb of the primary coil Lm will change. Therefore, by detecting the waveform of the sum of the output voltage Vo of the rectifier circuit 201 and the voltage Vb of the primary coil Lm, it can be determined whether the voltage of the clamping capacitor Cq is too high.

[0081] The above description is based on the example that the sampling point is set between the second end (lower end) of the primary coil Lm and the first end (upper end) of the lower bridge switch Td. In other embodiments of the present application, since the waveform of the voltage Vb of the primary coil Lm is synchronized with the waveform of the voltage Vo1 of the first secondary coil Ld, and the output voltage Vo value of the rectifier circuit 201 remains unchanged, Figure 4b As shown, the sampling point can also be set at the output voltage side of the transformer 202, that is, the first end C of the first secondary coil Ld (hereinafter referred to as the sampling point C). In this case, the sampling waveform obtained by the controller 203 at the sampling point C can include the voltage waveform of the first secondary coil Ld, so that the sampling waveform of the sampling point C can change simultaneously with the voltage waveform of the first secondary coil Ld as time changes.

[0082] As can be seen from the above, the controller 203 can control the on and off of the upper bridge switch Tc and the lower bridge switch Td. In order to supply power to the controller 203, the charging device 02 provided in the embodiment of the present application may further include: Figure 5 The power supply circuit 501 is shown, wherein the power supply circuit 501 is electrically connected to the controller 203 via a VCC port. In addition, a GND port is provided inside the controller 203, and a voltage difference is formed between the VCC port and the GND port, thereby providing voltage to the controller 203.

[0083] Based on this, in order to supply power to the power supply circuit 501, the transformer 202 may further include a second secondary coil Lf and a second rectifier diode D2. The first end (upper end) of the second secondary coil Lf is electrically connected to the anode of the second rectifier diode D2, and the cathode of the second rectifier diode D2 is electrically connected to the power supply circuit 501. In addition, the second pole of the second secondary coil Lf is grounded.

[0084] In this case, the second secondary coil Lf and the primary coil Lm are used to step down the voltage Vb of the primary coil Lm through electromagnetic induction and generate a second output voltage Vo2. The second output voltage Vo2 is used to supply power to the power supply circuit 501, and the power supply circuit 501 converts the voltage into the working voltage of the controller 203 and transmits it to the VCC port in the controller 203.

[0085] In order to supply power to the upper bridge driving circuit 204 and the lower bridge driving circuit 205, the charging device 02 further includes an upper bridge power supply unit 502 and a lower bridge power supply unit 503, wherein the upper bridge power supply unit 502 is electrically connected to the power supply circuit 501 and the upper bridge driving circuit 204, respectively, and the lower bridge power supply unit 503 is electrically connected to the power supply circuit 501 and the lower bridge driving circuit 205, respectively. In this case, the upper bridge power supply unit 502 and the lower bridge power supply unit 503 are respectively converted into the working voltage of the upper bridge driving circuit 204 and the lower bridge driving circuit 205 by the power supply circuit 501, and then transmitted to the upper bridge power supply unit 502 and the lower bridge power supply unit 503.

[0086] In addition, the controller 203 also includes CS, O1 and O2 ports, wherein the CS port is used to monitor the current in the circuit when the lower bridge switch Td is turned on to prevent abnormality. The O1 and O2 ports are used for other purposes, which can be set according to the specific situation.

[0087] Based on this, in some other embodiments of the present application, the sampling point can also be located at Figure 5 At the first end B of the second secondary coil Lf shown in FIG. 2 (hereinafter referred to as sampling point B). Since the second output voltage Vo2 of the second secondary coil Lf is only obtained by electromagnetic induction of the primary coil Lm of the transformer 202. Similarly, at the same time, the voltage Vb of the primary coil Lm and the voltage Vo2 of the second secondary coil Lf will only differ due to the different number of turns of the coils, so the waveforms of the voltage Vb of the primary coil Lm and the voltage Vo2 of the second secondary coil Lf are synchronized, and the phase difference is 180°. Therefore, when the lower bridge switch Td is turned off, it is also possible to determine whether the upper bridge switch Tc is abnormal by the waveform of the second output voltage Vo2. In this case, the sampling waveform obtained by the controller 203 at the sampling point B can include the voltage waveform of the second secondary coil Lf, so that the sampling waveform of the sampling point B can change simultaneously with the voltage waveform of the second secondary coil Lf as time changes.

[0088] In the following, taking the case where the sampling point is set between the second end (lower end) of the primary coil Lm and the first end (upper end) of the lower bridge switch Td as an example, how the controller 203 determines whether the waveform is abnormal after acquiring the sampled waveform is described:

[0089] Example 1

[0090] In this example, the abnormality of the sampling waveform of the current charging cycle includes: in the second stage P2 of the Nth charging cycle, the controller 203 obtains the peak voltage Vp of the sampling waveform, and the peak voltage Vp is greater than the voltage threshold Vth. In this case, the current charging cycle in the embodiment of the present application is the Nth charging cycle.

[0091] Among them, abnormal waveform refers to Figure 6a As shown, in the second stage P2 and Figure 3b (When the lower bridge switch Td is turned off, the voltage corresponding to the source s of the lower bridge switch Td is 0. Therefore, the voltage corresponding to the drain d of the lower bridge switch Td is the Vds voltage of the lower bridge switch. Therefore, the waveform of the voltage and period corresponding to the sampling point A when the lower bridge switch Td is turned off and the current and period of the clamping capacitor Cq are as follows: Figure 3b The waveforms corresponding to the Vds voltage and period T corresponding to the middle and lower bridge switch Td and the current and period corresponding to the clamping capacitor Cq) have different shapes. Figure 6a The N-1th and N-2th cycles are normal waveforms, and the Nth cycle is an abnormal waveform.

[0092] It should be noted that, for the sake of convenience, N is an integer greater than or equal to 3. In addition, in the case of abnormal waveforms, compared with normal waveforms, similarly, in the second stage P2, the primary coil Lm discharges to the first secondary coil Ld, and its voltage value remains unchanged, but when the leakage inductance Lr in the primary coil Lm charges and discharges to the clamping capacitor Cq, since the upper bridge switch Tc is not turned on, a parasitic capacitor Cj1 is generated. The parasitic capacitor Cj1 and the clamping capacitor Cq are connected in series, which is equivalent to a capacitor smaller than either the parasitic capacitor Cj1 or the clamping capacitor Cq. The leakage inductance Lr can be quickly charged and discharged, and therefore, a higher electromotive force is generated. Therefore, in Figure 6a In the second stage of the abnormal waveform, the voltage value of P2 will increase, and when the leakage inductance Lr gradually decreases due to the damping effect and finally reaches 0, the voltage returns to the same as the normal waveform.

[0093] In the waveform corresponding to the clamping capacitor current and the period, the leakage inductance Lr in the primary coil Lm only charges the clamping capacitor Cq to generate a positive current. Since the upper bridge switch Tc is not turned on, the leakage inductance Lr cannot be discharged, and therefore, a negative current cannot be generated, resulting in an excessively high voltage on the clamping capacitor Cq, which may cause a short circuit or open circuit problem.

[0094] In some embodiments of the present application, Figure 6a As shown, the voltage threshold Vth may be a platform voltage Vt. Since the electrical connection point between the controller 203 and the transformer 200, that is, the sampling point, is the sampling point A. The controller 203 may be electrically connected to the primary coil Lm through the sampling point A, therefore, the platform voltage Vt=Vo+Vo1×T1.

[0095] Among them, Vo is the output voltage of the rectifier circuit 201, Vo1 is the output voltage provided by the transformer 202 to the load 01, that is, the voltage of the first secondary coil Ld, and T1 is the turns ratio of the primary coil in the transformer and the secondary coil used to supply power to the load (that is, the turns ratio of the primary coil Lm and the first secondary coil Ld).

[0096] It should be noted that when the controller 203 is electrically connected to the secondary coil through the sampling point, the platform voltage Vt = -Vo / T2, where T2 is the turns ratio of the secondary coil of the transformer primary coil Lm electrically connected to the controller 203 through the sampling point. Figure 5 When the sampling point is B, T2 is the turns ratio of the primary coil Lm and the second secondary coil Lf. Figure 4b At the sampling point C shown, T2 is the turns ratio of the primary coil Lm and the first secondary coil Ld.

[0097] It should be noted that, due to the influence of factors such as the calculation accuracy of the controller 203, the voltage threshold Vth may be a value near the platform voltage Vt, such as the platform voltage ±20V, and this application does not impose any limitation on this.

[0098] In this case, the controller 203 may include a comparator, which compares the peak voltage Vp with the voltage threshold Vth and then outputs a logic signal to drive the lower bridge driving circuit 205 to operate.

[0099] In other embodiments of the present application, Figure 6b As shown, the sampling waveform of the current charging cycle is abnormal, including: after obtaining the sampling waveform, the controller 203 can calculate the integral area S (corresponding to the shaded area in the figure) of the portion of the sampling waveform of the second stage P2 that exceeds the voltage threshold Vth in the second stage P2, and S>0. As above, the voltage threshold Vth can be the platform voltage Vt (that is, Figure 6b The method shown in the figure) can also be a value near the platform voltage Vt, which is not limited in the present application. The setting method is the same as described above and will not be repeated here.

[0100] In this case, the controller 203 may include an integration unit and a comparison unit, wherein the integration unit is used to integrate the area, and the comparison unit is used to compare the integrated area value with zero and then output a logic signal to drive the lower bridge driving circuit 205 to operate.

[0101] In order to obtain the waveform of the sampling point, the charging device 02 may also include: Figure 7a The sampling circuit 701 shown in the figure can be electrically connected to the controller 203 at one end, and can be electrically connected to the lower end of the primary coil Lm in the transformer 202 at the other end through the sampling point A. The sampling circuit 701 is used to reduce the voltage at the electrical connection point between the sampling circuit 701 and the transformer 202, that is, the sampling point A, and provide it to the controller 203. It should be noted that if the voltage value at the sampling point does not exceed the withstand voltage value of the controller 203, the sampling circuit 701 may not be provided, and this application does not limit this.

[0102] In some embodiments of the present application, the sampling circuit 701 may include: Figure 7b The first resistor R1 and the second resistor R2 are shown, wherein the first end (upper end) of the first resistor R1 is electrically connected to the transformer 202, the first end (upper end) of the second resistor R2 is electrically connected to the second end (lower end) of the first resistor R1 and the controller 203, and the second end (lower end) of the second resistor R2 is grounded. Based on this, the voltage value collected by the controller 203 can be changed by adjusting the resistance ratio of the first resistor R1 and the second resistor R2 to ensure that the voltage value does not exceed the withstand voltage of the controller. When the resistance ratio of the first resistor R1 to the second resistor R2 is larger, the collected voltage value is smaller.

[0103] In some other embodiments of the present application, the sampling circuit 701 may include: Figure 7c The first coil L1 and the second coil L2 are shown, wherein the first end (upper end) of the first coil L1 is electrically connected to the transformer 202, and the second end (lower end) of the first coil L1 is grounded. The first end M of the second coil L2 is electrically connected to the controller 203, and the other end is grounded. In addition, in order to make the sampling circuit 701 play a step-down role, the number of turns of the first coil L1 is greater than the number of turns of the second coil L2. The voltage value collected by the controller 203 can be changed by controlling the turn ratio of the first coil L1 and the second coil L2. When the turn ratio of the first coil L1 and the second coil L2 is larger, the collected voltage value is smaller.

[0104] In some other embodiments of the present application, the sampling circuit 701 may include: Figure 7dThe third resistor R3 and the second capacitor C2 are shown, wherein the first end (upper end) of the third resistor R3 is electrically connected to the controller 203, and the second end (lower end) of the third resistor R3 is grounded. The first end (right end) of the second capacitor C2 is electrically connected to the transformer 202, and the second end (left end) of the second capacitor C2 is electrically connected to the controller 203. The voltage value collected by the controller 203 can be changed by adjusting the capacitance of the second capacitor C2 or the resistance of the third resistor R3. When the capacitance of the second capacitor C2 or the resistance of the third resistor R3 is larger, the voltage value collected is larger.

[0105] It should be noted that the above embodiments are merely examples of how the sampling circuit 701 can be implemented. As long as the voltage reduction function can be achieved, other configurations of the sampling circuit 701 are also possible, and the present application does not limit this.

[0106] Example 2

[0107] In this example, the same as in Example 1, whether the sampling waveform is abnormal refers to whether the sampling waveform of the second stage P2 in the Nth cycle is abnormal, to determine whether the upper bridge switch Tc is turned on. The difference from Example 1 is that in this example, the sampling waveform of the current charging cycle is abnormal including: the controller 203 continuously obtains the following information: Figure 8a In the Nth charging cycle shown in the figure, and in the second stage P2 of the M (as shown in the figure, M is 2) charging cycles before the Nth charging cycle, the peak voltage Vp of the sampling waveform is sampled, and the voltage difference △V between the peak voltages Vp of the sampled waveforms of two adjacent charging cycles is calculated from the M+1 peak voltages Vp, that is, △V=Vp n -Vp n-1 , and △V≠0. In this case, when △V≠0 in the above calculation result, it can be explained that the sampling waveform of the second stage P2 in the current charging cycle (i.e., the Nth charging cycle) is abnormal, and the upper bridge switch Tc is not turned on in the second stage P2 of the Nth charging cycle. Among them, the value of N is the same as above, M≥1, and M is a positive number. For example, in the second stage P2 of the N-2, N-1, and Nth cycles, the peak voltages of the sampling waveforms are Vp1, Vp2, and Vp3 respectively, then:

[0108] △V2=Vp3-Vp2,

[0109] △V1=Vp2-Vp1,

[0110] Since ΔV1 and ΔV2 are not zero, it can be determined that the waveform of the Nth charging cycle is an abnormal waveform.

[0111] In some other embodiments of the present application, the quotient of the peak voltages Vp of the sampling waveforms of two adjacent charging cycles can also be calculated, that is, W=Vp n / Vpn-1 If the ratio W is not 1, it is determined that the sampled waveform is an abnormal waveform.

[0112] In this case, the controller 203 is used to calculate the peak voltage Vp and output a logic signal to drive the lower bridge driving circuit 205. It should be noted that the present application does not limit the specific calculation method, as long as the abnormal waveform can be identified.

[0113] In other embodiments of the present application, Figure 8b As shown, the sampling waveform of the current charging cycle is abnormal, including: the controller 203 can continuously obtain the Nth charging cycle and the M charging cycles before the Nth charging cycle (as shown in the figure, M is 2) in the second stage P2, the portion exceeding the voltage threshold Vth in the second stage. And, from the M+1 integral area S (M+1 refers to the Nth charging cycle and the M charging cycles before the Nth charging cycle, as shown in the figure, M is 2) Figure 8b As shown, M+1 is 3), the area difference △S between the integral areas S of two adjacent charging cycles is calculated, that is, △S=S n -S n-1 , and △S≠0. In this case, when △S≠0 in the above calculation result, it can be explained that the sampling waveform of the second stage P2 in the current charging cycle (i.e., the Nth charging cycle) is abnormal, and the upper bridge switch Tc is not turned on in the second stage P2 of the Nth charging cycle.

[0114] Wherein, M≥1, M is a positive number. It should be noted that the voltage threshold Vth can be the platform voltage Vt (taken as an example in the figure), or a value near the platform voltage Vt, which is not limited in this application, and the specific setting method is the same as Example 1, which will not be repeated here.

[0115] For example, in the second stage P2 of the N-2, N-1, and N cycles, the integrated areas S of the sampled waveforms are S1, S2, and S3, respectively.

[0116] △S1=S2-S1=S2,

[0117] △S2=S3-S2,

[0118] Since ΔS1 and ΔS2 are not zero, it can be determined that the waveforms of the N charging cycles are abnormal waveforms.

[0119] In some other embodiments of the present application, the sum of the integrated areas S of two adjacent charging cycles can also be calculated, that is, N = S n +S n-1 , if the sum N is not 0, it is concluded that the sampled waveform is an abnormal waveform.

[0120] As above, the present application does not limit the specific operation method, as long as the abnormal waveform can be identified.

[0121] In this case, the controller 203 may include an integration unit and a processing unit, wherein the integration unit is used to integrate the area, and the processing unit is used to output a logic signal after calculating the integrated area value to drive the lower bridge driving circuit 205 to operate.

[0122] In this example, the above-mentioned sampling circuit can also be set. The setting method of the sampling circuit is the same as described above and will not be repeated here.

[0123] Example 3

[0124] In this example, the same as in Example 1, whether the above sampling waveform is abnormal refers to whether the sampling waveform of the second stage P2 in the Nth cycle is abnormal, to determine whether the upper bridge switch Tc is turned on. The difference from Example 1 is that in this example, Figure 8c As shown, the sampling waveform of the current charging cycle is abnormal, including: the controller 203 obtains the platform voltage Vt of the sampling waveform in the second stage P2 of the N-1th charging cycle and the peak voltage Vp of the sampling waveform in the second stage P2 of the Nth charging cycle, and Vp>Vt. Figure 8c As shown, the peak voltage Vp of the sampled waveform in the second stage P2 of the current charging cycle, ie, the Nth charging cycle, satisfies the condition of Vp>Vt, so it can be concluded that the Nth charging cycle is an abnormal waveform. Wherein, N≥2, N is an integer.

[0125] In this case, the controller 203 is used to obtain and compare the peak voltage Vp and the platform voltage Vt and then output a logic signal to drive the lower bridge driving circuit 205 to operate.

[0126] In this example, the above-mentioned sampling circuit can also be set. The setting method of the sampling circuit is the same as described above and will not be repeated here.

[0127] Example 4

[0128] In this example, the same as in Example 1, whether the above sampling waveform is abnormal refers to whether the sampling waveform of the second stage P2 in the Nth cycle is abnormal, to determine whether the upper bridge switch Tc is turned on. The difference from Example 1 is that in this example, Figure 8d As shown, the sampling waveform of the current charging cycle is abnormal, including: the controller 203 obtains the end of the third stage P3 of the Nth charging cycle (i.e., the starting end of the first stage P1 of the N+1th charging cycle), and the voltage Vq of the sampling waveform is greater than or equal to the voltage threshold Vth (for example, 30V). When the voltage Vq of the sampling waveform at the end of the third stage P3 is greater than 30V, it will cause a large loss when the lower bridge switch Td is turned on.

[0129] For example Figure 8d In the Nth charging cycle, the voltage at the end of the third stage P3 is Vq2, and in the N-1th charging cycle, the voltage at the end of the third stage P3 is Vq1. Among them, Vq2>30V, Vq1=0V, therefore, the waveform corresponding to the current charging cycle, that is, the Nth charging cycle, is an abnormal waveform, and the waveform corresponding to the N-1th charging cycle is a normal waveform. The value of N is the same as above.

[0130] In the case of a normal waveform, the voltage at the end of the third stage P3 of the Nth charging cycle (i.e., the starting end of the first stage P1 of the N+1th charging cycle) will generate a negative current at the position of the primary coil Lm due to the opening of the upper bridge switch Tc. Under the action of this current, the charge in the parasitic capacitor of the lower bridge switch Td is drawn away, so that the voltage value of the sampled waveform drops rapidly to 0 or close to 0. In the case of an abnormal waveform, the upper bridge switch Tc is turned off, and the above-mentioned negative current does not exist, resulting in a larger voltage at the end of the third stage P3 of the Nth charging cycle. Therefore, the voltage value at the end of the third stage P3 of the Nth charging cycle can be detected to determine whether the sampled waveform of the current charging cycle is an abnormal waveform. In addition, the present application does not limit the voltage threshold Vth, and it can also be set according to requirements.

[0131] In this case, the controller 203 may include a comparator to compare the voltage Vq of the sampled waveform at the end of the third phase P3 with a voltage threshold Vth, such as the aforementioned 30V, and then output a logic signal to drive the lower bridge driving circuit 205 to operate.

[0132] In other embodiments of the present application, at least two of the above four methods may be selected and used in combination, for example: Figure 9a As shown, the method for determining a waveform may include the following steps:

[0133] S101 , the controller 203 obtains the waveform of the Nth charging cycle at the sampling point, where N is an integer.

[0134] S102. Randomly select M methods from Examples 1 to 4 to perform synchronous determination on the waveform. M is greater than or equal to 2, and M is an integer. Example 1 is a method for comparing the peak voltage Vp or integrated area S of the waveform of the same cycle with the threshold value, Example 2 is a method for comparing the peak voltage Vp or integrated area S of the waveform of at least two consecutive cycles with the threshold value after calculation, Example 3 is a method for comparing the platform voltage Vt of the previous cycle with the peak voltage Vp of the next cycle, and Example 4 is a method for comparing the voltage Vq at the end of the third stage P3 of the charging cycle with the threshold value. For example, the three methods of Example 1, Example 2 and Example 3 can be selected for synchronous determination.

[0135] S103, N times out of the M ways are abnormal waveforms (M is greater than or equal to N). For example, the above M ways are judged, and several times out of the M ways, for example, N times out of the M ways are abnormal waveforms.

[0136] S104: The final determination result is an abnormal waveform.

[0137] If the N-times determination results are abnormal waveforms, the final determination result is an abnormal waveform. For example, if N is 3 and the 3-times determination results are all abnormal waveforms, the final determination result is an abnormal waveform.

[0138] S105 , driving the lower bridge switch Td to turn off in the N+1th charging cycle.

[0139] S106: The final determination result is a normal waveform.

[0140] If the result is determined to be an abnormal waveform less than N times (less than 3 times), the final result is determined to be a normal waveform. It should be noted that the values ​​of M and N can be set according to requirements, and this application does not limit this.

[0141] In addition, for example Figure 9b As shown, the method for determining the waveform may further include the following steps:

[0142] S201 , the controller 203 obtains the waveform of the Nth charging cycle at the sampling point, where N is an integer.

[0143] S202, any one of the methods in Examples 1 to 4 is selected to determine the waveform. Example 1 is a method for comparing the peak voltage Vp or the integrated area S of the waveform of the same cycle with the threshold value, Example 2 is a method for comparing the peak voltage Vp or the integrated area S of the waveform of at least two consecutive cycles with the threshold value after calculation, Example 3 is a method for comparing the platform voltage Vt of the previous cycle with the peak voltage Vp of the next cycle, and Example 4 is a method for comparing the voltage Vq at the end of the third stage P3 of the charging cycle with the threshold value. For example, the method in Example 1 can be selected for determination.

[0144] S203: Determine whether the result is an abnormal waveform. Specifically, determine whether the method in S202 is an abnormal waveform.

[0145] S204, any other method selected from Example 1 to Example 4 is selected for determination. If the determination result of S203 is an abnormal waveform, another method is triggered for determination, for example, the method of Example 2 is selected for re-determination.

[0146] S205: Determine whether the result is an abnormal waveform. Specifically, after executing step S204, check whether the result is an abnormal waveform.

[0147] S206: The final determination result is a normal waveform. Specifically, if the determination results of S203 and S205 are normal waveforms, the final determination result is a normal waveform.

[0148] S207: The final determination result is an abnormal waveform. If the determination result in S205 is an abnormal waveform, the final determination result is an abnormal waveform.

[0149] S208 , driving the lower bridge switch Td to turn off in the N+1th charging cycle.

[0150] It should be noted that the present application does not limit the specific mixed method, as long as the result can be determined to be an abnormal waveform by mixing the above methods.

[0151] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A charging device, characterized in that: Used to supply power to a load; the charging device comprises: A rectifier circuit, used for rectifying the received alternating current; A transformer, used for stepping down the output voltage of the rectifier circuit and providing it to the load; the transformer comprises a primary coil and at least one secondary coil; a first end of the primary coil is electrically connected to the rectifier circuit; a lower bridge switch, wherein a first end of the lower bridge switch is electrically connected to a second end of the primary coil, and a second end of the lower bridge switch is grounded; the lower bridge switch is used to be turned on during a charging cycle of the charging device, so that the current output by the rectifier circuit is transmitted to the primary coil to charge the primary coil; a clamping capacitor, a first end of the clamping capacitor being electrically connected to a first end of the primary coil; an upper bridge switch, wherein a first end of the upper bridge switch is electrically connected to a second end of the clamping capacitor; a second end of the upper bridge switch is electrically connected to a second end of the primary coil; the upper bridge switch is configured to be turned on during the charging cycle so that the leakage inductance of the primary coil charges the clamping capacitor and the clamping capacitor discharges to the primary coil; A controller is used to control the upper bridge switch and the lower bridge switch to be turned on or off; the controller is also used to obtain a sampling waveform at the electrical connection between the controller and the transformer when the lower bridge switch is turned off, and when the sampling waveform of the current charging cycle is abnormal, the lower bridge switch is turned off in the next charging cycle; wherein the sampling waveform includes the voltage waveform of the primary coil or the voltage waveform of the secondary coil, and the abnormality of the sampling waveform includes that the peak value of the sampling waveform is greater than the voltage threshold.

2. The charging device according to claim 1, characterized in that: The electrical connection between the controller and the transformer is located between the second end of the primary coil and the first end of the lower bridge switch, or between the second end of the upper bridge switch and the first end of the lower bridge switch.

3. The charging device according to claim 1, characterized in that: The transformer includes a first secondary coil; the transformer also includes a first rectifier diode; a first end of the first secondary coil is electrically connected to an anode of the first rectifier diode, and a cathode of the first rectifier diode is electrically connected to the load; a second end of the first secondary coil is grounded; the first secondary coil and the primary coil are used to step down a voltage of the primary coil through electromagnetic induction and generate a first output voltage; The electrical connection between the controller and the transformer is located at the first end of the first secondary coil.

4. The charging device according to claim 3, characterized in that: The charging device further comprises a power supply circuit, which is electrically connected to the controller and is used to supply power to the controller; The transformer also includes a second secondary coil and a second rectifier diode; The first end of the second secondary coil is electrically connected to the anode of the second rectifier diode, and the cathode of the second rectifier diode is electrically connected to the power supply circuit; the second pole of the second secondary coil is grounded; the second secondary coil and the primary coil are used to step down the voltage of the primary coil through electromagnetic induction and generate a second output voltage; the second output voltage is used to supply power to the power supply circuit; The electrical connection between the controller and the transformer is located at the first end of the second secondary coil.

5. The charging device according to claim 1, characterized in that: The charging device also includes: The sampling circuit is electrically connected between the controller and the transformer; the sampling circuit is used to reduce the voltage at the electrical connection point between the sampling circuit and the transformer and provide it to the controller.

6. The charging device according to claim 5, characterized in that: The sampling circuit comprises: a first resistor, wherein a first end of the first resistor is electrically connected to the transformer; A second resistor, wherein a first end of the second resistor is electrically connected to a second end of the first resistor and the controller, and a second end of the second resistor is grounded.

7. The charging device according to claim 5, characterized in that: The sampling circuit comprises: a first coil, wherein a first end of the first coil is electrically connected to the transformer, and a second end of the first coil is grounded; a second coil, wherein a first end of the second coil is electrically connected to the controller and the other end of the second coil is grounded; The number of turns of the first coil is greater than the number of turns of the second coil.

8. The charging device according to claim 5, characterized in that: The sampling circuit comprises: a third resistor, a first end of the third resistor being electrically connected to the controller, and a second end of the third resistor being grounded; A second capacitor, wherein a first end of the second capacitor is electrically connected to the transformer, and a second end of the second capacitor is electrically connected to the controller.

9. A charging system, characterized in that: It comprises an electronic device and a charging device as described in any one of claims 1 to 8; the electronic device comprises a battery, and the battery is electrically connected to the charging device.

10. A method for controlling a charging device, characterized in that: The control method of the charging device is applied to the charging device, and the charging device includes a rectifier circuit, a transformer, a lower bridge switch, a clamping capacitor, an upper bridge switch and a controller; the transformer includes a primary coil and at least one secondary coil; the first end of the primary coil is electrically connected to the rectifier circuit; the controller is electrically connected to the transformer; the first end of the lower bridge switch is electrically connected to the second end of the primary coil, and the second end of the lower bridge switch is electrically connected to the ground end; the first end of the clamping capacitor is electrically connected to the first end of the primary coil; the first end of the upper bridge switch is electrically connected to the second end of the clamping capacitor; The second end of the upper bridge switch is electrically connected to the second end of the primary coil; The control method of the charging device comprises: During a charging cycle of the charging device, the controller controls the lower bridge switch to be turned on and the upper bridge switch to be turned off, so that the current output by the rectifier circuit charges the primary coil; The controller controls the lower bridge switch to be turned off and the upper bridge switch to be turned on, so that the primary coil is discharged, and the transformer steps down the output voltage of the rectifier circuit and provides it to the load; the leakage inductance of the primary coil charges the clamping capacitor; when the leakage inductance has no current output, the clamping capacitor discharges to the primary coil; The control method of the charging device further includes a waveform processing step: the controller acquires a sampled waveform at an electrical connection between the controller and the transformer, the sampled waveform including a voltage waveform of the primary coil or a voltage waveform of the secondary coil; When the sampling waveform of the current charging cycle is abnormal, the controller turns off the lower bridge switch in the next charging cycle. The abnormality of the sampling waveform includes that the peak value of the sampling waveform is greater than a voltage threshold.