Flyback switching circuit, power supply chip, charging protection method and microcontroller
By sampling the electrical signals of the charging node in the flyback switch circuit and controlling the main power tube to be cut off under high voltage, the problem of unreliable operation of the flyback switch circuit in the prior art is solved, and the reliability is improved. Reduced circuit costs.
Patent Information
- Application Number
- CN202411014744.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2024-11-12
AI Technical Summary
The existing flyback switch circuit is prone to damage under high voltage abnormalities, resulting in unreliable operation, and the dual-winding structure increases the circuit volume and cost.
By sampling the electrical signal on the charging node, when the electrical signal is greater than the preset signal threshold, the main power tube is controlled to stop the main power tube from being cut off, avoiding the electrical signal to continuously excessively damage the secondary power tube, and providing the working voltage through the charging circuit, reducing the high voltage to the power chip damage.
It improves the working reliability of the flyback switch circuit, reduces the circuit size and cost, and protects the power chip under high voltage conditions.
Smart Images

Figure CN118944418A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the technical field of flyback switch circuits, and in particular to a flyback switch circuit, a power chip, a charging protection method, and a microcontroller. Background Art
[0002] The flyback switching circuit provided by the related technology supports the self-power supply function. However, the flyback switching circuit of the related technology is limited by the circuit structure of the self-power supply function. When the flyback switching circuit encounters abnormal situations such as high voltage, the high voltage can easily damage the chip of the flyback switching circuit, resulting in unreliable operation of the flyback switching circuit. Summary of the invention
[0003] One purpose of the embodiments of the present application is to provide a flyback switch circuit, a power chip, a charging protection method and a microcontroller to solve the technical problem of unreliable operation of the flyback switch circuit provided by the related art.
[0004] In a first aspect, an embodiment of the present application provides a flyback switching circuit, comprising:
[0005] Control circuit;
[0006] The flyback circuit comprises a primary winding circuit and a secondary winding circuit which are coupled to each other;
[0007] A switch circuit is electrically connected to the primary winding circuit, the switch circuit comprises a main power tube and an auxiliary power tube connected in series, the control circuit is electrically connected to the main power tube and the auxiliary power tube respectively, and controls the main power tube and the auxiliary power tube to be turned on within a preset energy storage cycle, so that a DC power source flows through the primary winding circuit for energy storage, and the energy storage cycle is provided with a charging cycle;
[0008] a charging circuit, electrically connected to a charging node between the main power tube and the auxiliary power tube and electrically connected to the control circuit, wherein the control circuit controls the main power tube to be turned on and the auxiliary power tube to be turned off during the charging cycle, so that the current flowing through the main power tube can charge the charging circuit, and the charging circuit can provide a working voltage for the control circuit;
[0009] A signal processing circuit is electrically connected to the charging node and to the control circuit, and is used to respond to the result that the electrical signal of the charging node is greater than a preset signal threshold, triggering the control circuit to control the main power tube to be cut off during the charging cycle.
[0010] Optionally, after the control circuit controls the auxiliary power tube to enter a cut-off state with a preset cut-off time during the charging cycle, it controls the auxiliary power tube to be turned back on during the energy storage cycle; and / or, when the control circuit detects that the operating voltage provided by the charging circuit to the control circuit is less than or equal to a preset voltage threshold, the charging cycle is set on the energy storage cycle.
[0011] Optionally, the signal processing circuit includes:
[0012] A signal sampling circuit, electrically connected to the charging node, for sampling an electrical signal of the charging node;
[0013] The signal trigger circuit is electrically connected to the signal sampling circuit and the control circuit respectively, and is used to generate a level trigger signal in response to the result that the electrical signal is greater than the preset signal threshold, so that the control circuit controls the main power tube to be cut off during the charging cycle in response to the level trigger signal.
[0014] Optionally, the charging circuit includes:
[0015] an anti-reverse connection circuit, electrically connected to the control circuit;
[0016] The charging unit is electrically connected to the anti-reverse connection circuit and the control circuit respectively. When the control circuit controls the anti-reverse connection circuit to be in a first working state during the charging cycle, the current transmitted by the main power tube is transmitted to the charging unit through the anti-reverse connection circuit. When the control circuit controls the anti-reverse connection circuit to be in a second working state during a non-charging cycle of the energy storage cycle, the anti-reverse connection circuit blocks the current of the charging unit from being reversely fed back to the switch circuit.
[0017] In a second aspect, an embodiment of the present application provides a power chip, comprising a control circuit, a switch circuit, a charging circuit and a signal processing circuit in the above-mentioned flyback switch circuit.
[0018] In a third aspect, an embodiment of the present application provides a charging protection method, which is applied to the above-mentioned flyback switch circuit, and the method includes:
[0019] In response to the arrival of the energy storage cycle, controlling the main power tube and the auxiliary power tube to be turned on, wherein the energy storage cycle is provided with a charging cycle;
[0020] In response to the arrival of the charging cycle, the main power tube is controlled to remain turned on and the auxiliary power tube is turned off, so that the current flowing through the main power tube can charge the charging circuit, and the charging circuit can provide an operating voltage for the control circuit;
[0021] In the charging cycle, in response to the result that the electrical signal of the charging node is greater than a preset signal threshold, the main power tube is controlled to be turned off.
[0022] Optionally, controlling the main power tube to be cut off includes:
[0023] Controlling the main power tube to be cut off according to a preset cut-off time;
[0024] After the main power tube experiences the preset cut-off time, the main power continues to be controlled to be turned on during the energy storage period.
[0025] Optionally, before responding to the arrival of the charging cycle, the method further includes:
[0026] obtaining a working voltage applied by the charging circuit to the control circuit;
[0027] In response to the result that the operating voltage is less than or equal to a preset voltage threshold, the charging cycle is set on the energy storage cycle.
[0028] In a fourth aspect, an embodiment of the present application provides a microcontroller, comprising a memory and a processor, wherein the memory is connected to the processor, and the processor is used to execute one or more computer programs stored in the memory, and when the processor executes the one or more computer programs, the microcontroller implements the above-mentioned charging protection method.
[0029] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the above-mentioned charging protection method.
[0030] The embodiments of the present application can achieve the following technical effects: in the flyback switching circuit provided in the embodiments of the present application, the embodiments of the present application sample the electrical signal of the charging circuit at the charging node, and when the electrical signal is greater than a preset signal threshold, the main power tube is controlled to be cut off, thereby avoiding the electrical signal at the charging node from being continuously too large and damaging the auxiliary power tube, thereby improving working reliability. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0032] Figure 1A schematic diagram of a circuit structure of a flyback switching circuit provided in an embodiment of the present application;
[0033] Figure 2 A schematic diagram of a circuit structure of a flyback switching circuit provided in another embodiment of the present application;
[0034] Figure 3 A schematic diagram of a circuit structure of a flyback switch circuit provided in yet another embodiment of the present application;
[0035] Figure 4 A schematic diagram of a circuit structure of a flyback switch circuit provided in yet another embodiment of the present application;
[0036] Figure 5 A schematic diagram of a circuit structure of a flyback switch circuit provided in yet another embodiment of the present application;
[0037] Figure 6 A schematic diagram of a circuit structure of a flyback switch circuit provided in yet another embodiment of the present application;
[0038] Figure 7 A schematic diagram of a circuit structure of a flyback switch circuit provided in yet another embodiment of the present application;
[0039] Figure 8 A schematic diagram of a circuit structure of a flyback switch circuit provided in yet another embodiment of the present application;
[0040] Fig. 9 A schematic diagram of a circuit structure of a flyback switch circuit provided in yet another embodiment of the present application;
[0041] Fig.10 A schematic diagram of a circuit structure of a flyback switch circuit provided in yet another embodiment of the present application, wherein a power chip is applied to the low-voltage side flyback switch circuit;
[0042] Fig.11 A schematic diagram of a circuit structure of a flyback switch circuit provided in yet another embodiment of the present application, wherein a power chip is applied to the high-voltage side flyback switch circuit;
[0043] Fig.12 for Fig.11 A schematic diagram of the internal circuit topology of the power chip shown;
[0044] Fig.13 A schematic diagram of a charging protection method provided in an embodiment of the present application;
[0045] Fig.14 A schematic diagram of the structure of a charging protection device provided in an embodiment of the present application;
[0046] Fig.15 A schematic diagram of the structure of a microcontroller provided in an embodiment of the present application. DETAILED DESCRIPTION
[0047] In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0048] It should be noted that, if there is no conflict, the various features in the embodiments of the present application can be combined with each other, all within the scope of protection of the present application. In addition, although the functional module division is performed in the device schematic diagram and the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in a sequence different from the module division in the device or the flow chart. Furthermore, the words "first", "second", "third", etc. used in this application do not limit the data and execution order, but only distinguish the same items or similar items with basically the same functions and effects.
[0049] In addition to the technical problems pointed out by the background technology, the inventors also found that the related technology has the following technical problems:
[0050] A related art provides a flyback switch circuit including a primary winding, a secondary winding, a power supply winding and a power chip, wherein the primary winding, the secondary winding and the power supply winding are coupled to each other, wherein the power supply winding is used to couple energy to provide an operating voltage for the power chip. This type of flyback switch circuit requires an additional power supply winding, which makes the flyback switch circuit larger and increases the circuit cost.
[0051] Another related technology provides a flyback switch circuit that adopts a dual-winding structure, wherein the flyback switch circuit includes a primary winding, a secondary winding, a charging circuit and a power chip, wherein the charging circuit can charge and provide an operating voltage to the power chip. This type of related technology does not need to use a power supply winding, and provides an operating voltage to the power chip through a charging circuit, which can reduce the volume of the flyback switch circuit and reduce the circuit cost. However, when this type of related technology encounters abnormal conditions such as high voltage, such as surge current or ESD (Electro Static Discharge) events, the charging circuit is easily in a high-voltage state, and the high voltage output by the charging circuit is easy to damage the switch tube in the power chip, resulting in unreliable operation of the flyback switch circuit.
[0052] The embodiment of the present application samples the electrical signal of the charging circuit at the charging node. When the electrical signal is greater than a preset signal threshold, the main power tube is controlled to be cut off, thereby preventing the electrical signal at the charging node from being continuously too large and damaging the secondary power tube.
[0053] The present application provides a flyback switch circuit. Figure 1 The flyback switch circuit 100 includes a control circuit 200 , a flyback circuit 300 , a switch circuit 400 , a charging circuit 500 and a signal processing circuit 600 .
[0054] The control circuit 200 serves as the control core of the flyback switching circuit 100 and is used to process and analyze various business logics in order to perform overvoltage protection operations, overcurrent protection operations, undervoltage protection operations, undercurrent protection operations, overtemperature protection operations, power-off protection operations, voltage adjustment operations, etc.
[0055] See also Figure 2 The control circuit 200 includes a microcontroller 21 , a logic processing circuit 22 , a driving circuit 23 , a main protection circuit 24 and a feedback circuit 25 .
[0056] The microcontroller 21 is used to process and analyze various business logics. The microcontroller 21 can be a single chip microcomputer, an ARM processor or other types of processors.
[0057] The logic processing circuit 22 is a circuit constructed by various logic devices and has logic processing functions. It is electrically connected to the microcontroller 21 and is used to respond to various sampling signals and generate slope compensation signals and various control signals so that the microcontroller 21 can perform corresponding operations.
[0058] The driving circuit 23 is electrically connected to the microcontroller 21 and is used to drive the switch circuit 400 to work under the control of the microcontroller 21. The driving circuit 23 can be composed of various components to form a circuit with driving function, wherein the circuit topology of the driving circuit 23 is relatively numerous and will not be described in detail here.
[0059] The main protection circuit 24 is electrically connected to the microcontroller 21, and is used to sample various signals and perform corresponding protection operations according to the various signals. In some embodiments, the main protection circuit 24 includes an overvoltage protection circuit, an overcurrent protection circuit, an undervoltage protection circuit, an undercurrent protection circuit, a power failure protection circuit, or an overtemperature protection circuit.
[0060] The overvoltage protection circuit or the undervoltage protection circuit is used to sample the input voltage and / or output voltage of the flyback circuit 300, and trigger the microcontroller 21 to perform an overvoltage protection operation or an undervoltage protection operation according to the input voltage and / or output voltage. The overcurrent protection circuit or the undercurrent protection circuit is used to sample the input current and / or output current of the flyback circuit 300, and trigger the microcontroller 21 to perform an overcurrent protection operation or an undercurrent protection operation according to the input current and / or output current. The power-off protection circuit is used to sample the input voltage of the flyback circuit 300, and trigger the microcontroller 21 to perform a power-off protection operation according to the input voltage. The overtemperature protection circuit is used to sample the operating temperature of the flyback switching circuit 100, and trigger the microcontroller 21 to perform an overtemperature protection operation according to the operating temperature.
[0061] The feedback circuit 25 is electrically connected to the logic processing circuit 22, and is used to sample the output signal of the flyback circuit 300 and generate a feedback signal based on the output signal. The logic processing circuit 22 performs logic analysis in response to the feedback signal and sends a control signal to the microcontroller 21, so that the microcontroller 21 controls the peak current of the transformer in the flyback circuit 300, the switching frequency of the power tube, and the entry and exit of the load skipping mode according to the control signal.
[0062] The feedback circuit 25 includes an optocoupler primary circuit and an optocoupler secondary circuit, wherein the optocoupler primary circuit is arranged on the secondary winding circuit of the flyback circuit 300, and the optocoupler secondary circuit is arranged on the primary winding circuit of the flyback circuit 300. The optocoupler primary circuit is used to sample the output signal of the flyback circuit 300 and trigger the optocoupler secondary circuit to generate a feedback signal.
[0063] The flyback circuit 300 includes a primary winding circuit 31 and a secondary winding circuit 32 which are coupled to each other. The primary winding circuit 31 can transfer energy to the secondary winding circuit 32 .
[0064] See also Figure 3 The primary winding circuit 31 includes a rectifier filter circuit 311, a freewheeling circuit 312 and a primary winding 313. The rectifier filter circuit 311 is used to rectify and filter the AC power supply to obtain a DC power supply. The freewheeling circuit 312 is electrically connected to the rectifier filter circuit 311 and the primary winding 313 respectively, and is used for the freewheeling circuit 312 to release the current of the primary winding 313 when the primary winding 313 releases energy to the secondary winding circuit 32. The primary winding 313 is coupled to the secondary winding circuit 32, and is used to store energy during the energy storage period, and release energy to the secondary winding circuit 32 during the energy release period.
[0065] Please continue reading Figure 3The secondary winding circuit 32 includes a secondary winding 321 and a unidirectional conduction circuit 322. The secondary winding 321 is coupled to the primary winding 313 and electrically connected to the unidirectional conduction circuit 322, and is used to couple the energy transmitted by the primary winding 313 and convert the energy into electrical energy. When the primary winding 313 stores energy, the unidirectional conduction circuit 322 disconnects the voltage output loop of the secondary winding 321, and when the primary winding 313 releases energy, the unidirectional conduction circuit 322 rectifies and outputs the current transmitted by the secondary winding 321. The unidirectional conduction circuit 322 can be an electronic switch tube such as a diode.
[0066] The switch circuit 400 is electrically connected to the primary winding circuit 31, and includes a main power tube 41 and an auxiliary power tube 42 connected in series. The control circuit 200 is electrically connected to the main power tube 41 and the auxiliary power tube 42, respectively. The main power tube 41 and the auxiliary power tube 42 can be electronic switch tubes such as triodes, MOS tubes, and thyristors.
[0067] The control circuit 200 controls the main power tube 41 and the auxiliary power tube 42 to be turned on within a preset energy storage period, so that the primary winding circuit 31 receives the DC power supply for energy storage.
[0068] The energy storage period is the time for controlling the main power tube 41 and the auxiliary power tube 42 to enter the on state, wherein the embodiment of the present application adopts a PWM (Pulse Width Modulation) signal to control the working state of the main power tube 41 and the auxiliary power tube 42. The duty cycle time of a cycle of the PWM signal is the energy storage period, and the non-duty cycle time is the energy release period, that is, the energy storage period and the energy release period constitute a cycle of the PWM signal.
[0069] If the main power tube 41 and the auxiliary power tube 42 are N-channel MOS tubes, the control circuit 200 sends high-level signals to the gate of the main power tube 41 and the gate of the auxiliary power tube 42 respectively during the energy storage period, and the main power tube 41 and the auxiliary power tube 42 meet the conduction condition and enter the conduction state, and the DC power output by the rectifier and filter circuit 311 flows through the primary winding 313, and the primary winding 313 stores the DC power as energy.
[0070] The control circuit 200 sends a low-level signal to the gate of the main power tube 41 and a high-level signal to the gate of the auxiliary power tube 42 during the energy release period. Therefore, the main power tube 41 enters a cut-off state and the auxiliary power tube 42 enters a conduction state. The DC power supply cannot be transmitted to the primary winding 313. However, the primary winding 313 couples the stored energy to the secondary winding 321. The secondary winding 321 couples this energy, and the energy is transmitted to the load in the form of electrical energy and after rectification by the unidirectional conduction circuit 322.
[0071] The energy storage cycle is provided with a charging cycle, and the charging cycle is used to provide charging to the charging circuit 500. For example, the energy storage cycle is 1 μs. In the embodiment of the present application, a cycle with a time length of 400 ns is opened within the 1 μs energy storage cycle as a charging cycle.
[0072] The charging circuit 500 is electrically connected to the charging node N1 between the main power tube 41 and the auxiliary power tube 42 and is electrically connected to the control circuit 200. During the charging cycle, the control circuit 200 controls the main power tube 41 to be turned on and the auxiliary power tube 42 to be turned off, so that the current flowing through the main power tube 41 can charge the charging circuit 500, and the charging circuit 500 can provide a working voltage for the control circuit 200.
[0073] When the energy storage cycle arrives, the control circuit 200 first controls the main power tube 41 and the auxiliary power tube 42 to be turned on, so that the DC power source flows through the primary winding 313 for energy storage. When the charging cycle of the energy storage cycle arrives, the control circuit 200 continues to keep the main power tube 41 turned on, but controls the auxiliary power tube 42 to be turned off, so that the current of the DC power source is transmitted to the charging circuit 500 through the main power tube 41 for charging, so that the voltage of the charging circuit 500 increases, so that the charging circuit 500 can provide the control circuit 200 with the operating voltage required by the control circuit 200 to ensure that the control circuit 200 can work normally. When the charging cycle of the energy storage cycle ends, since the energy storage cycle has not ended, the control circuit 200 controls the auxiliary power tube 42 to be turned on again, and keeps the main power tube 41 turned on, so that the DC power source flows through the primary winding 313 for energy storage.
[0074] The signal processing circuit 600 is electrically connected to the charging node N1 and to the control circuit 200, and is used to respond to the result that the electrical signal of the charging node N1 is greater than the preset signal threshold, trigger the control circuit 200 to control the main power tube 41 to be turned off during the charging cycle, or respond to the result that the electrical signal of the charging node N1 is less than or equal to the preset signal threshold, trigger the control circuit 200 to control the main power tube 41 and the auxiliary power tube 42 to remain turned on during the energy storage cycle. It can be understood that the electrical signal of the charging node N1 can be the charging current transmitted to the charging circuit 500, or it can be the voltage of the charging node N1, and the voltage of the charging node N1 is the source voltage of the main power tube 41.
[0075] In the related art, the flyback switch circuit is prone to abnormal conditions during application, such as the surge current or ESD event mentioned above. During the charging cycle, the main power tube 41 is in the on state, and the auxiliary power tube 42 is in the off state. The excessive charging current easily causes the source voltage of the main power tube 41 to be too large, and the source voltage of the main power tube 41 is applied to the drain of the auxiliary power tube 42. The excessive source voltage easily breaks down the auxiliary power tube 42 or damages the components of the charging circuit 500.
[0076] In an embodiment of the present application, the control circuit 200 monitors the electrical signal of the charging node N1 in real time during the charging cycle. When the electrical signal of the charging node N1 is greater than a preset signal threshold, the control circuit 200 controls the main power tube 41 to enter a cut-off state to avoid the above-mentioned abnormal situation and avoid damaging the auxiliary power tube 42 or the components of the charging circuit 500.
[0077] See also Figure 4 The flyback switch circuit 100 also includes a current sampling circuit 700, which is electrically connected to the current path of the DC power supply flowing through the primary winding circuit 31 and is electrically connected to the control circuit 200, and is used to sample the main current flowing through the current path, so that the control circuit 200 performs an overcurrent protection operation according to the main current and a preset current threshold.
[0078] During the non-charging period of the energy storage cycle, both the main power tube 41 and the auxiliary power tube 42 are in the on state. If the current sampling circuit 700 detects that the current flowing through the main power tube 41 is too large, the control circuit 200 performs an overcurrent protection operation. During the charging cycle, the main power tube 41 remains on, the auxiliary power tube 42 is cut off, and no current passes through the current path. Therefore, the current sampling circuit 700 cannot sample the current. Therefore, the control circuit 200 cannot monitor whether the current flowing through the main power tube 41 is too large according to the sampling signal output by the current sampling circuit 700 during the charging cycle. However, the embodiment of the present application adds a signal processing circuit 600, and the signal processing circuit 600 can monitor whether the electrical signal of the charging node N1 is greater than the preset signal threshold, so as to trigger the control circuit 200 to perform a corresponding operation, so as to protect the auxiliary power tube 42 or the device of the charging circuit 500.
[0079] In some embodiments, the present application uses the cycle starting point of the energy storage cycle as the cycle starting point of the charging cycle, and selects a first target point on the energy storage cycle as the cycle ending point of the charging cycle, wherein the duration between the cycle starting point of the energy storage cycle and the first target point is equal to the duration of the charging cycle. In addition, the cycle after the energy storage cycle excluding the charging cycle is a non-charging cycle.
[0080] In some embodiments, the embodiments of the present application use the second target point of the energy storage cycle as the cycle start point of the charging cycle, and use the cycle end point of the energy storage cycle as the cycle end point of the charging cycle, wherein the duration between the second target point and the cycle end point of the energy storage cycle is equal to the duration of the charging cycle.
[0081] In some embodiments, the embodiments of the present application use the third target point of the energy storage cycle as the cycle starting point of the charging cycle, and use the fourth target point of the energy storage cycle as the cycle ending point of the charging cycle, wherein the third target point is any time point except the cycle starting point of the energy storage cycle, the fourth target point is any time point except the cycle ending point of the energy storage cycle, and the duration between the third target point and the fourth target point is equal to the duration of the charging cycle.
[0082] In some embodiments, after the control circuit 200 controls the auxiliary power tube 42 to enter the cut-off state of the preset cut-off time during the charging cycle, it controls the auxiliary power tube 42 to be turned on again during the energy storage cycle. Among them, the preset cut-off time can be customized by the designer according to engineering experience, for example, the preset cut-off time is 20ns or 200ns. For example, when the energy storage cycle arrives, the control circuit 200 first controls the main power tube 41 and the auxiliary power tube 42 to be turned on for 200ns. Then, when the charging cycle arrives, the control circuit 200 keeps the main power tube 41 turned on, but controls the auxiliary power tube 42 to be turned off for 200ns, and the current flowing through the main power tube 41 is introduced into the charging circuit 500 so that the charging circuit 500 can be charged. At the same time, the signal processing circuit 600 monitors whether the electrical signal of the charging node N1 is greater than the preset signal threshold. After the second 200ns, the charging cycle ends, and the control circuit 200 controls the auxiliary power tube 42 to be turned on again. Thereafter, the main power tube 41 and the auxiliary power tube 42 continue to be turned on for 600ns. In this way, the embodiment of the present application can ensure that the charging circuit 500 has sufficient power for charging, so that the charging circuit 500 has a higher voltage to provide to the control circuit 200, so as to ensure that the control circuit 200 can work normally.
[0083] In some embodiments, when the control circuit 200 detects that the operating voltage provided by the charging circuit 500 to the control circuit 200 is less than or equal to the preset voltage threshold, a charging cycle is set on the energy storage cycle. When the control circuit 200 detects that the operating voltage provided by the charging circuit 500 to the control circuit 200 is greater than the preset voltage threshold, there is no need to set a charging cycle on the energy storage cycle. In this way, in the embodiment of the present application, when the operating voltage is less than or equal to the preset voltage threshold, the control logic of the main power tube 41 and the auxiliary power tube 42 in the energy storage cycle is adjusted to match the control logic of the main power tube 41 and the auxiliary power tube 42 in the charging cycle, thereby reducing the energy loss caused by the switching time, thereby improving the energy storage efficiency.
[0084] See also Figure 5 In some embodiments, the signal processing circuit 600 includes a signal sampling circuit 61 and a signal triggering circuit 62 .
[0085] The signal sampling circuit 61 is electrically connected to the charging node N1 and is used to sample the electrical signal of the charging node N1. The signal sampling circuit 61 may be a current sampling circuit or a voltage sampling circuit. The signal sampling circuit 61 may be a single resistor or a resistor network composed of multiple resistors or a resistor, a capacitor or a resistor, a capacitor and an electronic switch tube.
[0086] The signal trigger circuit 62 is electrically connected to the signal sampling circuit 61 and the control circuit 200 respectively, and is used to respond to the result that the electrical signal is greater than the preset signal threshold, generate a level trigger signal, so that the control circuit 200 controls the main power tube 41 to be turned off during the charging cycle in response to the level trigger signal, or, respond to the result that the electrical signal is less than or equal to the preset signal threshold, generate a level holding signal, so that the control circuit 200 controls the main power tube 41 to remain turned on during the charging cycle in response to the level holding signal.
[0087] See also Figure 6 In some embodiments, the signal trigger circuit 62 includes a voltage comparator U1, an inverting input terminal of the voltage comparator U1 is applied with a preset signal threshold, a non-inverting input terminal is electrically connected to the signal sampling circuit 61 and is applied with an electrical signal, and an output terminal is electrically connected to the control circuit 200.
[0088] When the electrical signal is less than the preset signal threshold, the voltage comparator U1 outputs a low-level signal, which serves as a level holding signal, and the control circuit 200 controls the main power tube 41 to remain turned on during the charging cycle in response to the low-level signal. When the electrical signal is greater than the preset signal threshold, the voltage comparator U1 outputs a high-level signal, which serves as a level trigger signal, and the control circuit 200 controls the main power tube 41 to be turned off during the charging cycle in response to the high-level signal. The embodiment of the present application compares the size between the electrical signal and the preset signal threshold by the voltage comparator U1, so that it can reliably and accurately trigger whether the control circuit 200 needs to control the main power tube 41 to be turned off.
[0089] See also Figure 7 In some embodiments, the signal trigger circuit 62 includes a voltage regulator U2, the positive electrode of the voltage regulator U2 is grounded, and the negative electrode is electrically connected to the signal sampling circuit 61 and the control circuit 200 respectively.
[0090] When the electrical signal is less than the preset signal threshold, the voltage regulator tube U2 is not in a breakdown state, and the voltage across the voltage regulator tube U2 is less than the voltage regulation value. When the control circuit 200 detects that the voltage across the voltage regulator tube U2 is less than the voltage regulation value, the main power tube 41 is controlled to remain turned on during the charging cycle. When the electrical signal is greater than the preset signal threshold, the voltage regulator tube U2 is in a breakdown state. When the control circuit 200 detects that the voltage across the voltage regulator tube U2 is equal to the voltage regulation value, the control circuit 200 controls the main power tube 41 to be turned off during the charging cycle. Since the voltage output by the voltage regulator tube U2 is relatively fast, the control circuit 200 can quickly detect whether the electrical signal is greater than the preset signal threshold, so as to quickly and efficiently determine whether the main power tube 41 needs to be controlled to be turned off.
[0091] See also Figure 8 In some embodiments, the charging circuit 500 includes an anti-reverse connection circuit 51 and a charging unit 52. The anti-reverse connection circuit 51 is electrically connected to the control circuit 200. The charging unit 52 is electrically connected to the anti-reverse connection circuit 51 and the control circuit 200, respectively. When the control circuit 200 controls the anti-reverse connection circuit 51 to be in the first working state during the charging cycle, the current transmitted by the main power tube 41 is transmitted to the charging unit 52 through the anti-reverse connection circuit 51. When the control circuit 200 controls the anti-reverse connection circuit 51 to be in the second working state during the non-charging cycle of the energy storage cycle, the anti-reverse connection circuit 51 blocks the current of the charging unit 52 from being reversely fed back to the switch circuit 400. In this way, the embodiment of the present application can ensure that the charging unit 52 has sufficient power for charging during the charging cycle, and can prevent the current of the charging unit 52 from being reversely fed back to the switch circuit 400 during the non-charging cycle, thereby improving the working reliability of the flyback switch circuit 100.
[0092] See also Fig. 9 In some embodiments, the reverse connection prevention circuit 51 includes an electronic switch tube Q1, which is electrically connected between the charging unit 52 and the charging node N1, and is also electrically connected to the control circuit 200. When the control circuit 200 controls the electronic switch tube Q1 to enter the on state, that is, when the reverse connection prevention circuit 51 is in the first working state, the current transmitted by the main power tube 41 is transmitted to the charging unit 52 through the electronic switch tube Q1. When the control circuit 200 controls the electronic switch tube Q1 to enter the off state, that is, when the reverse connection prevention circuit 51 is in the second working state, the electronic switch tube Q1 blocks the current of the charging unit 52 from being reversely fed back to the switch circuit 400.
[0093] It can be understood that the electronic switch tube Q1 can be an N-type transistor or an N-channel MOS tube or a P-type transistor or a P-channel MOS tube.
[0094] It is also understandable that, in addition to Fig. 9In addition to the electronic switch tube Q1 shown as the anti-reverse connection circuit 51, the anti-reverse connection circuit 51 can also adopt other circuit topology structures, which will not be described here.
[0095] Please continue reading Fig. 9 The charging unit 52 is a charging capacitor C1, one end of the charging capacitor C1 is electrically connected to the electronic switch tube Q1, and the other end is grounded.
[0096] It is understandable that, in addition to Fig. 9 In addition to the charging capacitor C1 shown as the charging unit 52 , the charging unit 52 may also adopt other circuit topology structures, which will not be described in detail here.
[0097] The control circuit 200 , the switch circuit 400 , the charging circuit 500 , and the signal processing circuit 600 provided in the above-mentioned embodiments may be packaged into a power chip.
[0098] In some embodiments, the power chip can be applied to a low-voltage side flyback switching circuit.
[0099] See also Fig.10 , the control circuit 200, the switch circuit 400, the charging circuit 500 and the signal processing circuit 600 are packaged into a power chip X1, wherein the power chip X1 includes a VDD pin, a CS pin, a GATE pin, an S pin, a FB pin and a GND pin. The VDD pin is used to provide an operating voltage, wherein the power chip can detect the VDD voltage in real time to implement operations such as VDD overvoltage protection, undervoltage protection, and self-powered on and off. The CS pin is used to sample the main current flowing through the primary winding circuit. The GATE pin is used to control the main power tube 41 to be turned on or off. The auxiliary power tube 42 is electrically connected to the main power tube 41 through the S pin. The FB pin is used to receive a feedback signal.
[0100] It is understandable that, in some embodiments, the sampling resistor R1 connected to the CS pin may be omitted in some application scenarios.
[0101] Understandably, Fig.10 The main power tube 41 is shown to be disposed outside the power chip X1, and the auxiliary power tube 42 is disposed inside the power chip X1. In some embodiments, both the main power tube 41 and the auxiliary power tube 42 can be disposed inside the power chip X1.
[0102] In some embodiments, the power chip can be applied to a high-voltage side flyback switching circuit.
[0103] Please also read Fig.11 and Fig.12As mentioned above, the control circuit 200, the switch circuit 400, the charging circuit 500 and the signal processing circuit 600 are packaged into a power chip X2, and the VS pin of the power chip X2 is used to detect the output voltage of the secondary winding so as to perform overvoltage protection operation and undervoltage protection operation. Fig.12 As shown, the main power tube 41 and the auxiliary power tube 42 are both arranged inside the power chip X2.
[0104] In general, the power chip provided in the embodiment of the present application can trigger the control circuit 200 to control the main power tube 41 to be cut off during the charging cycle when the electrical signal at the charging node is greater than the preset signal threshold, thereby preventing the abnormal current from causing the voltage at the charging node to rise abnormally and causing the secondary power tube 42 to be broken down or the components of the charging circuit 500 to be damaged.
[0105] As another aspect of the embodiments of the present application, the embodiments of the present application provide a charging protection method, which is applied to the flyback switch circuit described in the above embodiments. Fig.13 , charging protection methods include:
[0106] S131: In response to the arrival of the energy storage cycle, the main power tube and the auxiliary power tube are controlled to be turned on, wherein the energy storage cycle is provided with a charging cycle.
[0107] In this step, the embodiment of the present application starts the energy storage cycle, controls the main power tube and the auxiliary power tube to be turned on at the starting point of the energy storage cycle, and the DC power output by the rectifier and filter circuit flows through the primary winding circuit, and the primary winding circuit stores the DC power as energy.
[0108] S132: In response to the arrival of the charging cycle, the main power tube is controlled to remain turned on and the auxiliary power tube is turned off, so that the current flowing through the main power tube can charge the charging circuit, and the charging circuit can provide an operating voltage for the control circuit.
[0109] In this step, when the charging cycle arrives, the embodiment of the present application controls the main power tube to remain turned on and controls the auxiliary power tube to be turned off. At this time, the embodiment of the present application introduces current into the charging circuit so that the charging circuit can be charged. When the charging circuit has sufficient power, the charging circuit can provide an operating voltage for the control circuit so that the control circuit can work normally.
[0110] S133: During the charging cycle, in response to the result that the electrical signal of the charging node is greater than a preset signal threshold, the main power tube is controlled to be turned off.
[0111] In this step, during the charging cycle, the main power tube is in a floating conduction state. When an abnormal current causes an abnormal current or voltage at the charging node during the charging cycle, the embodiment of the present application detects that the electrical signal at the charging node is greater than a preset signal threshold, and controls the main power tube to be cut off, thereby preventing the current or voltage at the charging node from being continuously too large and damaging the secondary power tube. When the current or voltage at the charging node during the charging cycle is within a normal range, the embodiment of the present application detects that the electrical signal at the charging node is less than or equal to the preset signal threshold, and controls the main power tube to remain on. The embodiment of the present application samples the electrical signal of the charging circuit at the charging node, and when the electrical signal is greater than the preset signal threshold, controls the main power tube to be cut off, thereby preventing the electrical signal at the charging node from being continuously too large and damaging the secondary power tube, thereby improving working reliability.
[0112] In some embodiments, controlling the main power tube to be turned off includes the following steps: controlling the main power tube to be turned off according to a preset cut-off time, and controlling the auxiliary power tube to be turned on again within an energy storage period after the main power tube has experienced the preset cut-off time.
[0113] In some embodiments, before responding to the arrival of the charging cycle, the charging protection method also includes the following steps: obtaining the operating voltage applied by the charging circuit to the control circuit, and in response to the result that the operating voltage is less than or equal to a preset voltage threshold, setting a charging cycle on the energy storage cycle.
[0114] It should be noted that, in each of the above-mentioned embodiments, there is not necessarily a certain order between the above-mentioned steps. A person skilled in the art can understand, based on the description of the embodiments of the present application, that in different embodiments, the above-mentioned steps may have different execution orders, that is, they may be executed in parallel, may be executed interchangeably, and so on.
[0115] As another aspect of the embodiment of the present application, the embodiment of the present application provides a charging protection device, which is applied to the above-mentioned flyback switch circuit. The charging protection device can be a software module, and the software module includes a number of instructions, which are stored in a memory. The processor can access the memory and call the instructions for execution to complete the charging protection method described in the above-mentioned various embodiments.
[0116] In some embodiments, the charging protection device can also be constructed by hardware devices. For example, the charging protection device can be constructed by one or more chips, and each chip can work in coordination with each other to complete the charging protection method described in each of the above embodiments. For another example, the charging protection device can also be constructed by various logic devices, such as a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), a single-chip microcomputer, an ARM (Acorn RISC Machine) or other programmable logic device, a discrete gate or transistor logic, a discrete hardware component, or any combination of these components.
[0117] See also Fig.14 The charging protection device 140 includes a first switch control module 141 , a second switch control module 142 and a third switch control module 143 .
[0118] The first switch control module 141 is used to respond to the arrival of the energy storage cycle, and control the main power tube and the auxiliary power tube to be turned on, wherein the energy storage cycle is provided with a charging cycle. The second switch control module 142 is used to respond to the arrival of the charging cycle, and control the main power tube to remain turned on and the auxiliary power tube to be turned off, so that the current flowing through the main power tube can charge the charging circuit, and the charging circuit can provide the operating voltage for the control circuit. The third switch control module 143 is used to control the main power tube to be turned off in response to the result that the electrical signal of the charging node is greater than the preset signal threshold during the charging cycle. The embodiment of the present application samples the electrical signal of the charging circuit at the charging node, and when the electrical signal is greater than the preset signal threshold, controls the main power tube to be turned off, thereby avoiding the electrical signal at the charging node from being continuously too large and damaging the auxiliary power tube, thereby improving the working reliability.
[0119] In some embodiments, the third switch control module 143 is specifically used to: control the main power tube to be turned off according to a preset cut-off time, and continue to control the main power to be turned on during the energy storage period after the main power tube has experienced the preset cut-off time.
[0120] In some embodiments, before responding to the arrival of a charging cycle, the charging protection device 140 also includes a charging setting module 144, which is used to obtain the operating voltage applied by the charging circuit to the control circuit, and in response to the result that the operating voltage is less than or equal to a preset voltage threshold, sets a charging cycle on the energy storage cycle.
[0121] It should be noted that the above charging protection device can execute the charging protection method provided in the embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method. For technical details not fully described in the embodiment of the charging protection device, please refer to the charging protection method provided in the embodiment of the present application.
[0122] See also Fig.15 , Fig.15 A schematic diagram of the structure of a microcontroller provided in an embodiment of the present application. The microcontroller 150 includes one or more processors 151 and a memory 152. The memory 152 is connected to the one or more processors 151, for example, connected to the processor 151 via a bus.
[0123] Processor 151 is configured to support the microcontroller to perform the corresponding functions in the method in the above method embodiment. The processor can be a central processing unit (CPU), a network processor (NP), a hardware chip or any combination thereof. The above hardware chip can be an application specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The above PLD can be a complex programmable logic device (CPLD), a field programmable gate array (FPGA), a general array logic (GAL) or any combination thereof.
[0124] The memory 152 is used to store program codes, etc. The memory may include a volatile memory (VM), such as a random access memory (RAM); the memory may also include a non-volatile memory (NVM), such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD); the memory may also include a combination of the above-mentioned types of memory.
[0125] The memory 152 can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the charging protection method in the embodiment of the present application. The processor executes the various functional applications and data processing of the charging protection method and the charging protection device by running the non-volatile software programs, instructions and modules stored in the memory, that is, realizing the functions of the charging protection method and each module or unit of the charging protection device provided in the above method embodiment.
[0126] The memory 152 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function. The data storage area may store data created according to the use of the charging protection device, etc. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the charging protection device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0127] The one or more modules are stored in the memory, and when executed by the one or more processors, the charging protection method in any of the above method embodiments is executed, for example, the method steps described in the above method embodiments are executed to realize the functions of the modules described in the above device embodiments.
[0128] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a microcontroller, the microcontroller executes the method described in the above embodiment.
[0129] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0130] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.
Claims
1. A flyback switching circuit, characterized in that: include: Control circuit; The flyback circuit comprises a primary winding circuit and a secondary winding circuit which are coupled to each other; A switch circuit is electrically connected to the primary winding circuit, the switch circuit comprises a main power tube and an auxiliary power tube connected in series, the control circuit is electrically connected to the main power tube and the auxiliary power tube respectively, and controls the main power tube and the auxiliary power tube to be turned on within a preset energy storage cycle, so that the primary winding circuit receives a DC power supply for energy storage, and the energy storage cycle is provided with a charging cycle; a charging circuit, electrically connected to a charging node between the main power tube and the auxiliary power tube and electrically connected to the control circuit, wherein the control circuit controls the main power tube to be turned on and the auxiliary power tube to be turned off during the charging cycle, so that the current flowing through the main power tube can charge the charging circuit, and the charging circuit can provide a working voltage for the control circuit; A signal processing circuit is electrically connected to the charging node and to the control circuit, and is used to respond to the result that the electrical signal of the charging node is greater than a preset signal threshold, triggering the control circuit to control the main power tube to be cut off during the charging cycle.
2. The switch circuit according to claim 1, characterized in that: After the control circuit controls the auxiliary power tube to enter a cut-off state with a preset cut-off time during the charging cycle, the control circuit controls the auxiliary power tube to be turned on again during the energy storage cycle; and / or, When the control circuit detects that the operating voltage provided by the charging circuit to the control circuit is less than or equal to a preset voltage threshold, the charging cycle is set on the energy storage cycle.
3. The switch circuit according to claim 1, characterized in that: The signal processing circuit comprises: A signal sampling circuit, electrically connected to the charging node, for sampling an electrical signal of the charging node; The signal trigger circuit is electrically connected to the signal sampling circuit and the control circuit respectively, and is used to generate a level trigger signal in response to the result that the electrical signal is greater than the preset signal threshold, so that the control circuit controls the main power tube to be cut off during the charging cycle in response to the level trigger signal.
4. The switch circuit according to any one of claims 1 to 3, characterized in that: The charging circuit comprises: an anti-reverse connection circuit, electrically connected to the control circuit; The charging unit is electrically connected to the anti-reverse connection circuit and the control circuit respectively. When the control circuit controls the anti-reverse connection circuit to be in a first working state during the charging cycle, the current transmitted by the main power tube is transmitted to the charging unit through the anti-reverse connection circuit. When the control circuit controls the anti-reverse connection circuit to be in a second working state during a non-charging cycle of the energy storage cycle, the anti-reverse connection circuit blocks the current of the charging unit from being reversely fed back to the switch circuit.
5. A power chip, characterized in that: The invention comprises a control circuit, a switch circuit, a charging circuit and a signal processing circuit in the flyback switch circuit as claimed in any one of claims 1 to 4.
6. A charging protection method, characterized in that: Applied to the flyback switching circuit according to any one of claims 1 to 5, the method comprises: In response to the arrival of the energy storage cycle, controlling the main power tube and the auxiliary power tube to be turned on, wherein the energy storage cycle is provided with a charging cycle; In response to the arrival of the charging cycle, the main power tube is controlled to remain turned on and the auxiliary power tube is turned off, so that the current flowing through the main power tube can charge the charging circuit, and the charging circuit can provide an operating voltage for the control circuit; In the charging cycle, in response to the result that the electrical signal of the charging node is greater than a preset signal threshold, the main power tube is controlled to be turned off.
7. The method according to claim 6, characterized in that The controlling the main power tube to be cut off comprises: Controlling the main power tube to be cut off according to a preset cut-off time; After the main power tube experiences the preset cut-off time, the main power continues to be controlled to be turned on during the energy storage period.
8. The method according to claim 6 or 7, characterized in that: Before responding to the arrival of the charging cycle, the method further comprises: obtaining a working voltage applied by the charging circuit to the control circuit; In response to the result that the operating voltage is less than or equal to a preset voltage threshold, the charging cycle is set on the energy storage cycle.
9. A microcontroller, characterized in that: It includes a memory and a processor, the memory is connected to the processor, the processor is used to execute one or more computer programs stored in the memory, and when the processor executes the one or more computer programs, the microcontroller implements the charging protection method as described in any one of claims 6 to 8.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the charging protection method according to any one of claims 6 to 8.
