Switching power supply control method and control device
Patent Information
- Application Number
- CN202310198692.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-01
- Publication Date
- 2026-10-13
- Estimated Expiration
- 2043-03-01
AI Technical Summary
[0004]但随着开关电源开关频率的提升,开关电源的浪涌干扰也越来越大,浪涌干扰对于开关电源的关键元器件的损害较大,从而导致开关电源无法稳定运行,因此亟需一种提高开关电源抗浪涌能力(EMS,Electromagnetic Susceptibility)的控制方法和控制装置
[0014]基于上述开关电源控制方法和控制装置,在开关电源电路处于工作状态下,控制可控开关闭合并获取开关电源电路的工作电压,此时得到的工作电压记为第一工作电压,而可控开关处于闭合状态时开关电源电路的抗浪涌能力为第一等级,根据第一工作电压与预设电压之间的比对结果控制可控开关的闭合状态,在可控开关的闭合状态变更为断开时,断开开关电源电路的原边地与副边地之间的连接,从而令开关电源电路的抗浪涌能力升级为第二等级,第二等级对应的抗浪涌能力强于第一等级对应的抗浪涌能力,通过控制可控开关来提高开关电源电路的EMS能力,有效的保护开关电源电路的关键元器件,保证了开关电源电路的稳定运行。
Smart Images

Figure CN116317600B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of power electronics technology, and in particular to a switching power supply control method and control device. Background Technology
[0002] Switching power supplies are an indispensable part of power electronic equipment and are closely related to people's lives and work. They are widely used in industrial automation control, military equipment, scientific research equipment, LED lighting, industrial control equipment, communication equipment, power equipment, instrumentation, medical equipment, and semiconductor refrigeration and heating.
[0003] Switching power supplies typically consist of pulse-width modulation (PWM) control and field-effect transistors (FETs). They utilize modern power electronics technology to control the ratio of the turn-off and turn-on times of the switching transistors, maintaining a stable output voltage. The development trend of switching power supplies is towards higher frequencies. Higher frequencies enable miniaturization and wider applicability, especially in high-tech fields, thus promoting the miniaturization and portability of high-tech products. Furthermore, the development and application of switching power supplies are of great significance in energy conservation, resource conservation, and environmental protection.
[0004] However, with the increase in switching frequency of switching power supplies, the surge interference of switching power supplies is also increasing. Surge interference can cause significant damage to the key components of switching power supplies, resulting in unstable operation of the switching power supply. Therefore, there is an urgent need for a control method and device to improve the surge resistance (EMS, Electromagnetic Susceptibility) of switching power supplies. Summary of the Invention
[0005] To address the technical problem of improving the EMS capability of switching power supplies, this application provides a switching power supply control method and control device.
[0006] In a first aspect, this application provides a switching power supply control method, including:
[0007] When the switching power supply circuit is in operation, the controllable switch is closed and the operating voltage of the switching power supply circuit is obtained to obtain the first operating voltage. The closed state of the controllable switch is such that the surge protection capability of the switching power supply circuit is at the first level when it is closed.
[0008] Based on the comparison result between the first working voltage and the preset voltage, the closing state of the controllable switch is controlled;
[0009] When the controllable switch is in the open state, the connection between the primary ground and the secondary ground of the switching power supply circuit is disconnected, and the surge protection capability of the switching power supply circuit is set to the second level, wherein the surge protection capability corresponding to the second level is stronger than the surge protection capability corresponding to the first level.
[0010] Secondly, this application provides a switching power supply control device, which includes a controllable switch, a voltage detection module, and a controller connected to each other. The controllable switch is also electrically connected to the primary ground of the switching power supply circuit, and the voltage detection module is also electrically connected to the secondary ground of the switching power supply circuit, wherein:
[0011] The controllable switch is used to control the surge protection capability of the switching power supply circuit;
[0012] The voltage detection module is used to detect the operating voltage of the switching power supply circuit.
[0013] The controller is used to perform the steps of the method in the first aspect described above.
[0014] Based on the above-mentioned switching power supply control method and control device, when the switching power supply circuit is in the working state, the controllable switch is controlled to close and merge to obtain the working voltage of the switching power supply circuit. The working voltage obtained at this time is recorded as the first working voltage. When the controllable switch is in the closed state, the surge protection capability of the switching power supply circuit is at the first level. The closed state of the controllable switch is controlled according to the comparison result between the first working voltage and the preset voltage. When the closed state of the controllable switch is changed to open, the connection between the primary ground and the secondary ground of the switching power supply circuit is disconnected, thereby upgrading the surge protection capability of the switching power supply circuit to the second level. The surge protection capability corresponding to the second level is stronger than that corresponding to the first level. By controlling the controllable switch, the EMS capability of the switching power supply circuit is improved, effectively protecting the key components of the switching power supply circuit and ensuring the stable operation of the switching power supply circuit. Attached Figure Description
[0015] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0016] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, those skilled in the art can obtain other drawings based on these drawings without creative effort.
[0017] Figure 1 This is a structural block diagram of a switching power supply control device in one embodiment;
[0018] Figure 2 This is a block diagram of a switching power supply circuit in one embodiment;
[0019] Figure 3 This is a structural block diagram of a switching power supply control device in one embodiment;
[0020] Figure 4 This is a structural block diagram of a switching power supply control device in one embodiment;
[0021] Figure 5 This is a flowchart illustrating a switching power supply control method in one embodiment;
[0022] Figure 6 This is a flowchart illustrating a switching power supply control method in one embodiment;
[0023] Figure 7 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0024] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0025] Figure 1 This is a structural block diagram of a switching power supply control device in one embodiment. The switching power supply control device 100 includes a controllable switch 110, a voltage detection module 120, and a controller 130 connected to each other. The controllable switch 110 is also electrically connected to the primary ground (EGND) of the switching power supply circuit 200, and the voltage detection module 120 is also electrically connected to the secondary ground (GND) of the switching power supply circuit 200. The controllable switch 110 is used to control the surge protection capability of the switching power supply circuit 200; the voltage detection module 120 is used to detect the operating voltage of the switching power supply circuit 200.
[0026] like Figure 2As shown, the switching power supply circuit 200 specifically includes an input power supply, an energy storage capacitor, a switching transistor, an snubber circuit (RCD), a transformer, a power output, and a switching power supply chip. The snubber circuit includes a resistor, a snubber capacitor, and a diode. The resistor and snubber capacitor are connected in parallel and then electrically connected to the negative terminal of the diode. The positive terminal of the diode is electrically connected to the first terminal of the primary winding of the transformer. The positive terminal of the input power supply is electrically connected to the positive terminal of the energy storage capacitor, the first terminal of the resistor, the first terminal of the snubber capacitor, and the first terminal of the primary winding of the transformer. The negative terminal of the input power supply serves as the primary ground of the switching power supply circuit 200 and is electrically connected to the negative terminal of the energy storage capacitor and the substrate of the switching transistor. The gate of the switching transistor is electrically connected to the switching power supply chip, and the drain of the switching transistor is electrically connected to the second terminal of the primary winding of the transformer. The secondary winding of the transformer includes multiple power outputs. Figure 2 The diagram only shows three power outputs, with the ground terminal of each power output serving as the secondary ground of the switching power supply circuit 200.
[0027] The input power supply typically ranges from 5 to 1000V depending on the design requirements of the switching power supply chip. Depending on the operating conditions, a typical switching power supply circuit (e.g., 200W) provides 1 to 2 to 10 power outputs. This example uses a 1-to-3 output conversion. Figure 2 As shown. Each power supply output is approximately 5-24V to power each control unit. The switching transistor is generally a MOSFET (Metal-Oxide-Semiconductor Field-Effect Transistor). When the switching power supply chip is working, the switching transistor needs to be continuously turned on / off. The switching frequency of the switching transistor is generally hundreds of kHz, and some high-performance switching power supplies can reach the MHz level. During this on / off process, common-mode interference is generated at the switching transistor. Due to the parasitic capacitance between the primary and secondary sides of the transformer, the common-mode interference generated by the switching transistor can be transmitted from the primary side of the transformer to the secondary side through this parasitic capacitance. There is also a parasitic capacitance between the secondary side ground and the earth ground, so the common-mode interference will flow back to the earth ground through this parasitic capacitance. This forms conducted interference to the external power supply network, which will be detected by the instrument during EMI (Electromagnetic Interference) measurement.
[0028] In one embodiment, the switching power supply control device 100 further includes a filter circuit 140, which is connected between the voltage detection module 120 and the secondary ground of the switching power supply circuit 200.
[0029] Specifically, since the first terminal of the voltage detection module 120 is connected to the primary ground of the switching circuit via the controllable switch 110, and the filter circuit 140 is connected between the voltage detection module 120 and the secondary ground of the switching power supply circuit 200, as shown below... Figure 3As shown, the filter circuit 140 is also connected between the primary ground and the secondary ground of the switching power supply circuit 200. The filter circuit 140 provides a nearby return path for the common-mode interference generated by the switching transistor, which can reduce the energy of the common-mode interference flowing from the primary ground to the ground, thereby reducing the conducted interference to the power supply network and alleviating the EMI problem of the switching power supply circuit 200.
[0030] like Figure 4 As shown, the filter circuit 140 includes multiple filter capacitors. Each power output secondary ground is connected to the voltage detection module 120, meaning that the number of filter capacitors in the filter circuit 140 is the same as the number of power outputs.
[0031] Although the EMI problem of the switching power supply circuit 200 is alleviated by the filter circuit 140, thus improving its EMI capability, the switching power supply circuit 200 will generate surge energy during thunderstorms. This surge energy will couple from the secondary side to the primary side through the parasitic capacitance between the secondary and primary sides of the transformer, affecting the performance of the switching power supply chip. Generally, one or two individual surges will not damage the components in the switching power supply circuit 200, but surge energy is a cumulative process. When the surge energy accumulates to a certain level, the switching power supply chip may burn out, leading to EMS problems in the switching power supply circuit 200. The EMC capability of the switching power supply circuit 200 includes both EMS capability and EMI capability. By controlling the switching transistor in the switching power supply circuit 200 to turn on / off using the controllable switch 110, the EMS capability of the switching power supply circuit 200 can be improved, thereby enhancing its EMC capability.
[0032] In one embodiment, Figure 5 This is a flowchart illustrating a switching power supply control method in one embodiment, with reference to... Figure 5 This invention provides a switching power supply control method. This embodiment primarily applies this method to the aforementioned... Figure 1 Taking controller 130 as an example, the switching power supply control method specifically includes the following steps:
[0033] Step S210: When the switching power supply circuit 200 is in the working state, controllable switch 110 is closed and the working voltage of the switching power supply circuit 200 is obtained to obtain the first working voltage. The closed state of the controllable switch 110 is such that the surge protection capability of the switching power supply circuit 200 is at the first level when it is closed.
[0034] Specifically, once the controller 130 detects that the switching power supply circuit 200 is in operation, it controls the controllable switch 110 to close and obtains the operating voltage of the switching power supply circuit 200 through the voltage detection module 120. The operating voltage obtained when the controllable switch 110 is closed is recorded as the first operating voltage. When the controllable switch 110 is closed, the primary ground and secondary ground of the transformer in the switching power supply circuit 200 are connected through a parasitic capacitance. The common-mode interference generated by the switching transistor can flow back to the ground through the parasitic capacitance. At this time, the EMI capability of the switching power supply circuit 200 is relatively strong, but the surge energy resistance capability is relatively weak, that is, the EMS capability is relatively weak. At this time, the EMS capability of the switching power supply circuit 200 is at the first level.
[0035] Step S220: Based on the comparison result between the first working voltage and the preset voltage, control the closed state of the controllable switch 110.
[0036] Specifically, the preset voltage is used to indicate the presence of surge energy in the switching power supply circuit 200. Based on the comparison between the first operating voltage and the preset voltage, it can be determined whether there is surge energy in the current switching power supply circuit 200. The closed state of the controllable switch 110 is controlled according to the presence or absence of surge energy. When it is determined that there is surge energy in the switching power supply circuit 200, the closed state of the controllable switch 110 is switched from closed to open; when it is determined that there is no surge energy in the switching power supply circuit 200, the closed state of the controllable switch 110 is kept closed.
[0037] Step S230: When the closed state of the controllable switch 110 is open, disconnect the connection between the primary ground and the secondary ground of the switching power supply circuit 200, and set the surge protection capability of the switching power supply circuit 200 to the second level, wherein the surge protection capability corresponding to the second level is stronger than the surge protection capability corresponding to the first level.
[0038] Specifically, when the controller 130 controls the controllable switch 110 to switch from closed to open, since the controllable switch 110 is located between the primary and secondary grounds of the switching power supply circuit 200, the connection between the primary and secondary grounds of the switching power supply circuit 200 is disconnected. This prevents surge energy from coupling from the secondary side of the transformer in the switching power supply circuit 200 to the primary side, thereby reducing the interference of surge energy on the switching power supply chip and improving the surge immunity of the switching power supply circuit 200. At this time, the EMS capability of the switching power supply circuit 200 is at the second level. The surge immunity corresponding to the second level is stronger than that corresponding to the first level. By controlling the controllable switch 110 to improve the EMS capability of the switching power supply circuit 200, the key components of the switching power supply circuit 200 are effectively protected, ensuring the stable operation of the switching power supply circuit 200 and improving the EMI capability and lightning surge immunity of the switching power supply circuit 200.
[0039] In one embodiment, controlling the closing state of the controllable switch 110 based on the comparison result between the first operating voltage and the preset voltage includes:
[0040] Determine whether the first operating voltage is greater than the preset voltage;
[0041] When the first operating voltage is greater than the preset voltage, the surge count is incremented by one to obtain the surge update count;
[0042] Based on the comparison between the surge update count and the preset surge count, the closed state of the controllable switch 110 is controlled.
[0043] Specifically, the first operating voltage is denoted as 'a', and the preset voltage is denoted as 'A'. If 'a' > 'A', it indicates that surge energy has occurred in the current switching power supply circuit 200. The surge count is then incremented by one and updated. The surge count is denoted as 'n', and the surge update count is 'n = n + 1'. That is, every time surge energy is detected in the switching power supply circuit 200, it is counted and accumulated. Then, the comparison result between the surge update count and the preset surge count is determined. The preset surge count is used to indicate the amount of surge energy that the switching power supply circuit 200 can withstand. The preset surge count is denoted as 'N'. When the surge update count exceeds the preset surge count, surge protection needs to be triggered. When the surge update count does not reach the preset surge count, surge protection does not need to be triggered. Therefore, the closing state of the controllable switch 110 can be controlled according to the comparison result between the surge update count and the preset surge count, thereby selecting whether to disconnect the connection between the primary ground and the secondary ground of the switching power supply circuit 200 to provide surge protection.
[0044] In one embodiment, after determining whether the first operating voltage is greater than the preset voltage, the method further includes:
[0045] When the first operating voltage is less than or equal to the preset voltage, the cycle count value is updated by incrementing by one.
[0046] Determine whether the updated loop counter value is greater than the preset reset counter value;
[0047] When the updated loop count value is greater than the preset reset count value, the surge accumulation count is initialized and then the step of obtaining the operating voltage of the switching power supply circuit 200 to obtain the first operating voltage is executed.
[0048] Specifically, if a ≤ A, it indicates that no surge energy has occurred in the current switching power supply circuit 200. The loop count is then incremented by one. The loop count indicates the number of loops required to detect and judge surge energy in the switching power supply circuit 200. The loop count is denoted as m, and the updated loop count is m = m + 1. The preset reset count indicates the number of loops required to restore the controllable switch 110 to its initial state. The preset reset count also indicates when the surge energy in the switching power supply circuit 200 is completely released. The preset reset count is denoted as T. The magnitude of this parameter determines the switching power supply circuit when the controllable switch 110 is closed. The safety time of circuit 200 requires that the time for loop T be greater than or equal to the time required for the surge energy in the switching power supply circuit 200 to be completely released. The updated loop count value is checked to see if it is greater than the preset reset count value. If m>T, it means that the surge energy in the switching power supply circuit 200 has been completely released. Then the surge accumulation count n is initialized, i.e., n=0. The voltage detection module 120 is used to detect the operating voltage of the switching power supply circuit 200 again until the step of checking whether the operating voltage of the switching power supply circuit 200 is greater than the preset voltage is repeated. That is, the loop detection and judgment of whether there is surge energy in the switching power supply circuit 200 is repeated.
[0049] In one embodiment, after determining whether the updated loop counter value is greater than the preset reset counter value, the method further includes:
[0050] When the updated cycle count value is less than or equal to the preset reset count value, the step of obtaining the operating voltage of the switching power supply circuit 200 and obtaining the first operating voltage is executed.
[0051] Specifically, if m≤T, it means that the loop count value has not yet reached the preset reset count value, and there is still accumulated surge energy in the switching power supply circuit 200. There is no need to initialize the surge accumulation count. Then, the loop detection of whether surge energy occurs in the switching power supply circuit 200 continues. Therefore, the voltage detection module 120 continues to detect the working voltage of the switching power supply circuit 200 until the step of determining whether the working voltage of the switching power supply circuit 200 is greater than the preset voltage is performed. That is, the loop detection and determination of whether surge energy exists in the switching power supply circuit 200 is performed.
[0052] In one embodiment, controlling the closing state of the controllable switch 110 based on the comparison result between the surge update count and the preset surge count includes:
[0053] Determine whether the surge update count is greater than the preset surge count;
[0054] When the number of surge updates exceeds the preset number of surges, the closed state of the controllable switch 110 is controlled to be open.
[0055] Specifically, if the surge update count is greater than the preset surge count, it means that the surge energy accumulated by the current switching power supply circuit 200 has exceeded the surge energy accumulation amount it can withstand, and surge protection needs to be triggered. Then, the closed state of the controllable switch 110 is switched from the initial closed state to the open state, thereby disconnecting the connection between the primary ground and the secondary ground of the switching power supply circuit 200, enhancing the EMS capability of the switching power supply circuit 200, weakening the EMI capability of the switching power supply circuit 200, and preventing surge energy from being transmitted to the primary ground through the secondary ground and causing interference and damage to the switching power supply chip.
[0056] In one embodiment, after determining whether the surge update count is greater than the preset surge count, the method further includes:
[0057] When the number of surge updates is less than or equal to the preset number of surges, the step of obtaining the operating voltage of the switching power supply circuit 200 and obtaining the first operating voltage is executed after initializing the loop counter value.
[0058] Specifically, if the surge update count is less than or equal to the preset surge count, the switching power supply circuit 200 can continue to withstand a certain number of surge voltages. At this time, the cycle count value needs to be cleared, that is, m = 0, and the working voltage of the switching power supply circuit 200 is detected again by the voltage detection module 120 until the step of determining whether the working voltage of the switching power supply circuit 200 is greater than the preset voltage is repeated. That is, the cycle detection and determination of whether there is surge energy in the switching power supply circuit 200 is repeated.
[0059] In one embodiment, after disconnecting the connection between the primary ground and the secondary ground of the switching power supply circuit 200 when the controllable switch 110 is in the open state, the method further includes:
[0060] Initialize the loop counter value;
[0061] The operating voltage of the switching power supply circuit 200 is obtained to obtain a second operating voltage, wherein the second operating voltage is the operating voltage obtained when the controllable switch 110 is open;
[0062] When the second operating voltage is less than or equal to the preset voltage, the cycle count value is updated by incrementing by one.
[0063] When the updated cycle count value is greater than the preset value, the closed state of the controllable switch 110 is switched from open to closed, or...
[0064] When the updated cycle count value is less than or equal to the pre-designed value, the step of obtaining the operating voltage of the switching power supply circuit 200 to obtain the second operating voltage is performed.
[0065] Specifically, after the controllable switch 110 is switched from closed to open, the loop counter value is initialized, i.e., the loop counter value m = 0, and the operating voltage of the switching power supply circuit 200 is reacquired. The operating voltage detected after the controllable switch 110 is opened is recorded as the second operating voltage. It is determined whether the second operating voltage is greater than the preset voltage. If the second operating voltage is less than or equal to the preset voltage, the loop counter value is also incremented by one, and it is determined whether the updated loop counter value is greater than the pre-designed value. The pre-designed value determines the operating voltage of the switching power supply circuit 200 when the controllable switch 110 is open. The safe duration of 0 is denoted by the pre-designed value t. If the updated cycle count value is greater than the pre-designed value t, it means that the surge energy accumulated in the switching power supply circuit 200 has been completely released, and the closed state of the controllable switch 110 is switched from open to closed. If the updated cycle count value is less than or equal to the pre-designed value, it means that the surge energy accumulated in the switching power supply circuit 200 has not been completely released, and it is necessary to continue to determine whether there is surge energy passing through the switching power supply circuit 200, that is, to cycle to the step of obtaining the working voltage of the switching power supply circuit 200 and obtaining the second working voltage.
[0066] In one embodiment, after initializing the loop counter value and obtaining the operating voltage of the switching power supply circuit 200, the method further includes:
[0067] When the second operating voltage is greater than the preset voltage, the step of initializing the loop count value to obtain the operating voltage of the switching power supply circuit 200 and thus obtaining the second operating voltage is executed.
[0068] Specifically, if the second operating voltage is greater than the preset voltage, it indicates that there is still surge energy in the switching power supply circuit 200. Then, the loop count value is cleared, and the step of obtaining the operating voltage of the switching power supply circuit 200 and obtaining the second operating voltage is executed to cyclically detect and determine whether there is surge energy in the switching power supply circuit 200.
[0069] In one specific embodiment:
[0070] The first step is to power on the switching power supply circuit 200, which then enters the working state.
[0071] The second step is to set threshold parameters based on environmental conditions.
[0072] Preset voltage A: Sets the surge protection voltage threshold. When the actual surge voltage is greater than A, it is determined that a surge has entered the device.
[0073] Preset surge count N: Sets the number of times surges are detected. When the actual number of surges exceeds N, surge protection is triggered.
[0074] Preset reset count value T: The value of this parameter determines the safe time of the device when the controllable switch 110 is closed. When setting this parameter, it should be noted that the time for T cycles must be greater than or equal to the time when the surge energy in the device must be completely released.
[0075] Pre-design value t: The magnitude of this parameter determines the safe time of the equipment when the controllable switch 110 is disconnected;
[0076] Cycle count value m: Sets the number of cycles required to restore the controllable switch 110 to its initial closed state;
[0077] Surge cumulative count n: The number of times the controller 130 detects an actual surge voltage. Each time a surge voltage is detected, n+1 is performed.
[0078] The third step is to close the controllable switch 110. At this time, the switching power supply circuit 200 has strong EMI capability but weak surge protection capability.
[0079] Fourth step, initialize the surge count by setting n = 0.
[0080] The fifth step is to obtain the operating voltage of the switching power supply circuit 200 through the voltage detection module 120, which is the actual voltage detected by the voltage detection device.
[0081] Step 6: Determine if a is greater than A. If not, the actual detected voltage is less than the set surge threshold voltage, indicating that the surge has not passed through the switching power supply circuit 200. Then set m = m + 1. Next, determine if the safe time m is greater than T. If yes, the surge energy in the device has been completely released, and return to step 4. If no, there is still accumulated surge energy in the device, and return to step 5.
[0082] Determine if a is greater than A. If so, the actual detected working voltage is greater than the preset voltage, indicating that a surge has passed through the switching power supply circuit 200. Let n = n + 1.
[0083] Next, determine whether n is N. If yes, proceed to step seven; otherwise, the switching power supply circuit 200 can continue to withstand a certain number of surge voltages. At this point, m needs to be set to 0, and then return to step five.
[0084] Step 7: Disconnect the controllable switch 110. At this time, the EMI capability of the switching power supply is weakened and the surge protection capability is enhanced.
[0085] Step 8: After clearing m, determine if a is greater than A. If yes, return to the starting point of step 8 and set m = 0. If no, set m = m + 1 and then determine if m is greater than t. If yes, it means that the surge energy accumulated in the switching power supply circuit 200 has been completely released, and return to step 3 to close the controllable switch 110. If no, it means that the switching power supply circuit 200 has not experienced a complete safety time after the arrival of the last surge energy, and it is necessary to continue to determine if a is greater than A, that is, to determine if there is surge energy passing through the switching power supply circuit 200.
[0086] Figure 5 and Figure 6 This is a flowchart illustrating a switching power supply control method in one embodiment. It should be understood that, although... Figure 5 and Figure 6 The steps in the flowchart are shown sequentially as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order in which these steps are executed, and they can be performed in other orders. Figure 5 and Figure 6 At least some of the steps in the process may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
[0087] Figure 7 An internal structural diagram of a computer device in one embodiment is shown. Specifically, this computer device may be... Figure 1 Controller 130 in the middle. For example... Figure 7 As shown, the computer device includes a processor, memory, network interface, input device, and display screen connected via a system bus. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and may also store computer programs. When executed by the processor, these computer programs enable the processor to implement a power-on / off control method. The internal memory may also store computer programs, which, when executed by the processor, enable the processor to implement the power-on / off control method. The display screen can be an LCD screen or an e-ink screen. The input device can be a touch layer covering the display screen, buttons, a trackball, or a touchpad mounted on the computer device's casing, or an external keyboard, touchpad, or mouse.
[0088] Those skilled in the art will understand that Figure 7 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0089] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method described in any of the above embodiments.
[0090] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the method described in any of the above embodiments.
[0091] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double-rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.
[0092] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0093] The above description is merely a specific embodiment of the present invention, enabling those skilled in the art to understand or implement the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A switching power supply control method, characterized in that, An application is made in a switching power supply control device, the switching power supply control device comprising a controllable switch, a voltage detection module, and a controller interconnected thereto, the controllable switch being electrically connected to the primary ground of the switching power supply circuit, and the voltage detection module being electrically connected to the secondary ground of the switching power supply circuit, the method comprising: When the switching power supply circuit is in operation, the controllable switch is closed and the operating voltage of the switching power supply circuit is obtained to obtain the first operating voltage. The closed state of the controllable switch is such that the surge protection capability of the switching power supply circuit is at the first level when it is closed. Based on the comparison result between the first working voltage and the preset voltage, the closing state of the controllable switch is controlled; When the closed state of the controllable switch is open, the connection between the primary ground and the secondary ground of the switching power supply circuit is disconnected, and the surge protection capability of the switching power supply circuit is set to the second level, wherein the surge protection capability corresponding to the second level is stronger than the surge protection capability corresponding to the first level. The step of controlling the closing state of the controllable switch based on the comparison result between the first operating voltage and the preset voltage includes: Determine whether the first operating voltage is greater than the preset voltage; When the first operating voltage is greater than the preset voltage, the surge count is incremented by one to obtain the surge update count; Based on the comparison between the surge update count and the preset surge count, the closed state of the controllable switch is controlled, including: when the surge update count is greater than the preset surge count, the closed state of the controllable switch is controlled to be open; when the surge update count is less than or equal to the preset surge count, the step of obtaining the working voltage of the switching power supply circuit and obtaining the first working voltage is executed after initializing the loop count value.
2. The method according to claim 1, characterized in that, After determining whether the first operating voltage is greater than the preset voltage, the method further includes: When the first operating voltage is less than or equal to the preset voltage, the cycle count value is updated by incrementing by one. Determine whether the updated loop counter value is greater than the preset reset counter value; When the updated cycle count value is greater than the preset reset count value, the step of obtaining the working voltage of the switching power supply circuit and obtaining the first working voltage is executed after initializing the surge accumulation count.
3. The method according to claim 2, characterized in that, After determining whether the updated loop counter value is greater than the preset reset counter value, the method further includes: When the updated cycle count value is less than or equal to the preset reset count value, the step of obtaining the operating voltage of the switching power supply circuit to obtain the first operating voltage is executed.
4. The method according to claim 3, characterized in that, After disconnecting the connection between the primary ground and secondary ground of the switching power supply circuit when the controllable switch is in the open state, the method further includes: Initialize the loop counter value; The operating voltage of the switching power supply circuit is obtained to obtain a second operating voltage, wherein the second operating voltage is the operating voltage obtained when the controllable switch is open; When the second operating voltage is less than or equal to the preset voltage, the cycle count value is updated by incrementing by one. When the updated cycle count value is greater than the preset value, the closed state of the controllable switch is switched from open to closed, or... When the updated cycle count value is less than or equal to the pre-designed value, the step of obtaining the operating voltage of the switching power supply circuit to obtain the second operating voltage is performed.
5. The method according to claim 4, characterized in that, After initializing the loop counter value and obtaining the operating voltage of the switching power supply circuit, the method further includes: When the second operating voltage is greater than the preset voltage, the step of initializing the loop count value until the operating voltage of the switching power supply circuit is obtained is executed to obtain the second operating voltage.
6. A switching power supply control device, characterized in that, The switching power supply control device includes a controllable switch, a voltage detection module, and a controller connected to each other. The controllable switch is also electrically connected to the primary ground of the switching power supply circuit, and the voltage detection module is also electrically connected to the secondary ground of the switching power supply circuit. The controllable switch is used to control the surge protection capability of the switching power supply circuit; The voltage detection module is used to detect the operating voltage of the switching power supply circuit. The controller is used to perform the steps of the method described in any one of claims 1-5.
7. The switching power supply control device according to claim 6, characterized in that, The switching power supply control device further includes a filter circuit, which is connected between the voltage detection module and the secondary ground of the switching power supply circuit.
Citation Information
Patent Citations
Low-frequency signal generating circuit and isolated switching power supply
CN105978535A
Isolated switching circuit and noise control circuit thereof
CN114204800A