Switching power supply, control method and device thereof, and computer readable storage medium

文档序号:1797488 发布日期:2021-11-05 浏览:27次 中文

阅读说明:本技术 开关电源及其控制方法、装置、计算机可读存储介质 (Switching power supply, control method and device thereof, and computer readable storage medium ) 是由 朱宁 于 2021-08-09 设计创作,主要内容包括:一种开关电源及其控制方法、装置、计算机可读存储介质。所述方法包括:当满足预设开启条件时,控制所述输入电压检测模块开启,以使得所述输入电压检测模块对所述开关电源的输入端电压进行检测;获取所述输入电压检测模块的电压检测结果,并基于所述电压检测结果控制所述开关电源的第二相关模块;所述第二相关模块包括:所述开关电源内部基于所述电压检测结果执行功能操作的至少一个功能模块。采用上述方案,可以有效降低开关电源的功耗。(A switching power supply, a control method and a control device thereof, and a computer readable storage medium. The method comprises the following steps: when a preset starting condition is met, controlling the input voltage detection module to be started so that the input voltage detection module detects the voltage of the input end of the switching power supply; a second correlation module for acquiring a voltage detection result of the input voltage detection module and controlling the switching power supply based on the voltage detection result; the second correlation module comprises: and at least one functional module which executes functional operation based on the voltage detection result is arranged in the switching power supply. By adopting the scheme, the power consumption of the switching power supply can be effectively reduced.)

1. A control method of a switching power supply, the switching power supply comprising an input voltage detection module, the method comprising:

when a preset starting condition is met, controlling the input voltage detection module to be started so that the input voltage detection module detects the voltage of the input end of the switching power supply;

a second correlation module for acquiring a voltage detection result of the input voltage detection module and controlling the switching power supply based on the voltage detection result; the second correlation module comprises: and at least one functional module which executes functional operation based on the voltage detection result is arranged in the switching power supply.

2. The method for controlling a switching power supply according to claim 1, wherein the preset turn-on condition includes: within a first preset time, the voltage of the input end of the switching power supply exceeds a preset first voltage threshold.

3. The control method of the switching power supply according to claim 1, wherein the switching power supply further comprises: and one end of the voltage division module is connected with the input end of the switching power supply, and the other end of the voltage division module is connected with the first related module and is suitable for dividing the voltage of the input end of the switching power supply so as to output the working voltage suitable for the first related module.

4. The method for controlling the switching power supply according to claim 3, further comprising, after the input voltage detection module is turned on:

acquiring load information of the switching power supply;

and adjusting at least one of a voltage division result of the voltage division module and an operating frequency of the input voltage detection module based on the load information of the switching power supply.

5. The control method of the switching power supply according to claim 4, wherein the voltage dividing module includes a plurality of resistors;

the adjusting the voltage division result of the voltage division module based on the load information of the switching power supply comprises: and comparing the load voltage of the switching power supply with a preset second voltage threshold, and adjusting the total resistance value of the voltage division module based on the comparison result.

6. The method for controlling the switching power supply according to claim 5, wherein the adjusting the total resistance value of the voltage dividing module based on the comparison result comprises:

when the load voltage of the switching power supply is greater than a preset second voltage threshold, reducing the total resistance value of the voltage division module; and when the load voltage of the switching power supply is smaller than a preset second voltage threshold, increasing the total resistance value of the voltage division module.

7. The control method of the switching power supply according to claim 4, wherein the voltage dividing module includes a plurality of resistors;

the adjusting the operating frequency of the input voltage detection module based on the load information of the switching power supply includes: and comparing the load voltage of the switching power supply with a preset second voltage threshold, and adjusting the working frequency of the input voltage detection module based on the comparison result.

8. The method for controlling the switching power supply according to claim 7, wherein the adjusting the operating frequency of the input voltage detection module based on the comparison result comprises:

when the load voltage of the switching power supply is greater than a preset second voltage threshold, increasing the working frequency of the input voltage detection module; and when the load voltage of the switching power supply is smaller than a preset second voltage threshold, reducing the working frequency of the input voltage detection module.

9. The control method of the switching power supply according to any one of claims 1 to 8, further comprising:

and when a preset closing condition is met, controlling the input voltage detection module to be closed.

10. The method for controlling a switching power supply according to claim 9, wherein the preset off condition includes: and the voltage of the input end of the switching power supply is lower than a preset second voltage threshold.

11. A control apparatus of a switching power supply including an input voltage detection module, the apparatus comprising:

the first control module is suitable for controlling the input voltage detection module to be started when a preset starting condition is met, so that the input voltage detection module detects the voltage of the input end of the switching power supply;

the second control module is suitable for acquiring a voltage detection result of the input voltage detection module and controlling a second relevant module of the switching power supply based on the voltage detection result; the second correlation module comprises: and at least one functional module which executes functional operation based on the voltage detection result is arranged in the switching power supply.

12. The control device of the switching power supply according to claim 11, wherein the preset turn-on condition includes: within a first preset time, the voltage of the input end of the switching power supply exceeds a preset first voltage threshold.

13. The control device of the switching power supply according to claim 12, wherein the first control module includes: a first comparator and a first timer; wherein:

the first comparator is provided with a first input end and a second input end; the first input end of the first comparator is suitable for inputting the input voltage of the switching power supply, and the second input end of the first comparator is suitable for inputting a preset first voltage threshold; the first comparator is suitable for comparing the voltage at the input end of the switching power supply with a preset first voltage threshold value within a first preset time length;

the first timer is connected with the first comparator and is suitable for providing the first preset time length for the first comparator.

14. The control device of the switching power supply according to claim 11, wherein the switching power supply further comprises: and one end of the voltage division module is connected with the input end of the switching power supply, the other end of the voltage division module is connected with the first related module, and the voltage division module is suitable for dividing the voltage of the input end of the switching power supply so as to output the working voltage suitable for the first related module.

15. The control device of the switching power supply according to claim 14, further comprising:

the adjusting module is suitable for acquiring the load information of the switching power supply after the input voltage detecting module is started; and adjusting at least one of a voltage division result of the voltage division module and an operating frequency of the input voltage detection module based on the load information of the switching power supply.

16. The control device of the switching power supply according to claim 15, wherein the voltage dividing module comprises a plurality of resistors; the adjustment module includes:

a second comparator having a first input terminal and a second input terminal; the first input end of the second comparator is suitable for inputting the load voltage of the switching power supply, and the second input end of the second comparator is suitable for inputting a preset second voltage threshold;

and the second comparator is suitable for comparing the load voltage of the switching power supply with a preset second voltage threshold value and outputting a corresponding adjusting signal according to a comparison result.

17. The control device of the switching power supply according to any one of claims 11 to 16, wherein the first control module is further adapted to control the input voltage detection module to turn off when a preset turn-off condition is satisfied.

18. A switching power supply comprising the control device of the switching power supply according to any one of claims 11 to 17.

19. A computer-readable storage medium, on which a computer program is stored, which computer program is executable by a processor for carrying out the steps of the method according to any one of claims 1 to 10.

20. A switching power supply comprising a memory and a processor, the memory having stored thereon a computer program operable on the processor, wherein the processor, when executing the computer program, performs the steps of the method of any of claims 1 to 10.

Technical Field

The invention relates to the technical field of electronic circuits, in particular to a switching power supply, a control method and a control device thereof, and a computer readable storage medium.

Background

With the rapid development of the electronic information industry, the switching power supply is widely applied to the fields of computers, power equipment, instruments and meters, illumination, medical equipment, military equipment and the like. Generally, a switching power supply converts an external alternating current (e.g., 220V, 380V, etc.) into a stable direct current to supply to a load.

The switching power supply is internally provided with an input voltage detection module, and the input voltage detection module is used for detecting the voltage of the input end of the switching power supply. The detection of the power supply at the input end of the switching power supply is the basis for the work of the whole switching power supply.

However, the conventional switching power supply has high overall power consumption due to the overhigh power consumption of the input voltage detection module, and is difficult to meet the requirement of a user on low power consumption.

Disclosure of Invention

The invention aims to solve the problems that: how to reduce the power consumption of the switching power supply.

In order to solve the above problem, an embodiment of the present invention provides a method for controlling a switching power supply, where the switching power supply includes an input voltage detection module, and the method includes: when a preset starting condition is met, controlling the input voltage detection module to be started so that the input voltage detection module detects the voltage of the input end of the switching power supply; a second correlation module for acquiring a voltage detection result of the input voltage detection module and controlling the switching power supply based on the voltage detection result; the second correlation module comprises: and at least one functional module which executes functional operation based on the voltage detection result is arranged in the switching power supply.

The embodiment of the invention also provides a control device of the switching power supply, the switching power supply comprises an input voltage detection module, and the device comprises: the first control module is suitable for controlling the input voltage detection module to be started when a preset starting condition is met, so that the input voltage detection module detects the voltage of the input end of the switching power supply; the second control module is suitable for acquiring a voltage detection result of the input voltage detection module and controlling a second relevant module of the switching power supply based on the voltage detection result; the second correlation module comprises: and at least one functional module which executes functional operation based on the voltage detection result is arranged in the switching power supply.

The embodiment of the invention also provides a switching power supply which comprises the control device of the switching power supply in any embodiment.

Embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the steps of the method described in any of the above embodiments.

The embodiment of the present invention further provides a switching power supply, which includes a memory and a processor, where the memory stores a computer program capable of running on the processor, and the processor executes the steps of the method in any of the above embodiments when running the computer program.

Compared with the prior art, the technical scheme of the embodiment of the invention has the following advantages:

by applying the scheme of the invention, the input voltage detection module is controlled to be started only when the preset starting condition is met, so that the second related module of the switching power supply is controlled based on the voltage detection result of the input voltage detection module, and the power consumption of the input voltage detection module can be reduced compared with the situation that the input voltage detection module is always kept in a starting state, thereby reducing the power consumption of the switching power supply.

Furthermore, after the input voltage detection module is started, the voltage division result of the voltage division module is adjusted based on the load information of the switching power supply, so that the voltage division result of the voltage division module can be changed according to the change of the load size instead of being fixed, and the power consumption of the switching power supply can be further reduced.

Furthermore, after the input voltage detection module is started, the working frequency of the input voltage detection module is adjusted based on the load information of the switching power supply, so that the working frequency of the input voltage detection module can be changed according to the change of the load size instead of being fixed, and the power consumption of the switching power supply can be further reduced.

Drawings

Fig. 1 is a partial schematic diagram of a switching power supply according to an embodiment of the invention;

FIG. 2 is a partial schematic diagram of another switching power supply in an embodiment of the invention;

fig. 3 is a flowchart of a control method of a switching power supply according to an embodiment of the present invention.

Detailed Description

The switch power supply has a plurality of protection functions, such as overvoltage and undervoltage protection, overpower protection and the like, and the protection functions avoid the damage of a power integrated IC and the whole switch power supply. In addition, the switching power supply includes a switching device, and whether or not the dc power converted from the ac power is supplied to the load depends on whether or not the switching device is closed.

In practical applications, the basis for the protection function of the switching power supply and the switching action of the switching device is the detection result of the voltage at the input end of the switching power supply. In other words, inside the switching power supply, it is generally determined whether to perform a protection function of the switching power supply and a switching action of the switching device based on a detection result of the voltage at the input terminal of the switching power supply. The detection of the voltage at the input end of the switching power supply is the basis of the operation of the whole switching power supply.

However, in the conventional switching power supply, the input voltage detection module is always kept in an on state, so that the power consumption of the input voltage detection module is too high, the overall power consumption of the switching power supply is high, and the requirement of a user on low power consumption is difficult to meet.

In order to solve the problem, the invention provides a control method of a switching power supply, which is applied to control the input voltage detection module to be started only when a preset starting condition is met, so that a second relevant module of the switching power supply is controlled based on a voltage detection result of the input voltage detection module instead of keeping the input voltage detection module in a starting state all the time, and therefore, the power consumption of the input voltage detection module can be reduced, and the power consumption of the switching power supply is reduced.

In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below.

In a specific implementation, referring to fig. 1, the switching power supply generally comprises an input voltage detection module 10, the input voltage detection module 10 being adapted to detect an input terminal voltage HV of the switching power supply.

Referring to fig. 1, an embodiment of the present invention provides a control apparatus for a switching power supply, where the apparatus may include:

the first control module 11 is adapted to control the input voltage detection module 10 to be turned on when a preset turn-on condition is met, so that the input voltage detection module 10 detects the input end voltage HV of the switching power supply;

and the second control module 12 is adapted to obtain a voltage detection result of the input voltage detection module 10 and control a second relevant module of the switching power supply based on the voltage detection result.

Wherein the second correlation module comprises: and at least one functional module which executes functional operation based on the voltage detection result is arranged in the switching power supply.

In a specific implementation, the input voltage HV of the switching power supply may be as high as 370V, or even 400V. After the input voltage detecting module 10 detects the value of the input terminal voltage HV of the switching power supply, other modules of the switching power supply need to convert the input terminal voltage HV of the switching power supply into a stable direct current. When a switching device in the switching power supply is closed, the converted direct current is supplied to a load. When a switching device in the switching power supply is turned off, the converted direct current stops being supplied to the load.

Unlike the prior art, in the embodiment of the present invention, the input voltage detection module 10 of the switching power supply is turned on only when the preset turn-on condition is met, that is, the input voltage detection module 10 detects the input terminal voltage HV of the switching power supply only when the preset turn-on condition is met.

In a specific implementation, referring to fig. 1, the switching power supply may further include a voltage division module 20. One end of the voltage dividing module 20 is connected to the input end of the switching power supply, and the other end is connected to the first related module, and is adapted to divide the voltage HV at the input end of the switching power supply to output the working voltage suitable for the first related module.

In a specific implementation, the voltage dividing module 20 may include several resistors. The resistance of the voltage divider module 20 may be fixed. For example, referring to fig. 1, the voltage dividing module 20 may include a first resistor Ra and a second resistor Rb. The resistances of the first resistor Ra and the second resistor Rb may be set according to practical experience. At this time, the total resistance of the voltage dividing module 20 is the sum of the resistances of the first resistor Ra and the second resistor Rb.

In particular implementations, the resistance of the voltage divider module 20 may be variable. For example, referring to fig. 2, the voltage dividing module 20 may include: a third resistor Rc, a fourth resistor Rd, a fifth resistor Re, a sixth resistor Rf, and a trim submodule 201. The trim submodule 201 may include a first switch S1, a second switch S2, a third switch S3 and a fourth switch S4.

The resistances of the third resistor Rc, the fourth resistor Rd, the fifth resistor Re and the sixth resistor Rf may be set according to practical applications and experience. Considering the relevant factors such as the overall anti-interference capability, the working voltage, the working frequency and the working environment of the integrated circuit, the third resistor Rc may be set to be 50M ohms, the fourth resistor Rd may be set to be 500K ohms, the fifth resistor Re may be set to be 100M ohms, and the sixth resistor Rf may be set to be 1M ohms.

In one embodiment, the first switch S1 and the third switch S3 may be linked switches, i.e., the first switch S1 and the third switch S3 are turned on or off simultaneously. Accordingly, the second switch S2 and the fourth switch S4 are set to be ganged switches, i.e., the second switch S2 and the fourth switch S4 are closed or opened simultaneously.

When the first switch S1 and the third switch S3 are closed, the second switch S2 and the fourth switch S4 are opened, the fifth resistor Re and the sixth resistor Rf are connected to the circuit, and the total resistance of the voltage divider module 20 is equal to the sum of the resistances of the fifth resistor Re and the sixth resistor Rf. When the second switch S2 and the fourth switch S4 are closed, the first switch S1 and the third switch S3 are opened, the third resistor Rc and the fourth resistor Rd are connected to the circuit, and the total resistance of the voltage divider module 20 is equal to the sum of the resistances of the third resistor Rc and the fourth resistor Rd.

After passing through the voltage dividing module 20, the input voltage HV of the switching power supply is divided, so that the voltage VA at the node a is reduced.

In a specific implementation, the specific structure of the input voltage detection module 10 is not limited as long as the output voltage of the voltage division module 20 can be detected.

Inside the switching power supply, the detection result input to the voltage detection module 10 may be directly or indirectly output to a second correlation module, which is at least one functional module that performs a functional operation inside the switching power supply based on the voltage detection result. The second correlation module may be the same as or different from the first correlation module.

In specific implementation, the preset starting condition may have a plurality of setting methods, and is not limited in particular.

In an embodiment of the present invention, the preset starting condition may be set as: within a first preset time, the voltage HV at the input end of the switching power supply exceeds a preset first voltage threshold. When the preset starting condition is met, that is, within a first preset time period, the input end voltage HV of the switching power supply exceeds a preset first voltage threshold, the input voltage detection module 10 is controlled to be started.

In the above-mentioned starting condition, the structure of the first control module 11 may be various, and is not limited herein.

In an embodiment of the present invention, the first control module 11 may include: a first comparator 111 and a first timer 112. Wherein:

the first comparator 111 has a first input terminal and a second input terminal; a first input end of the first comparator 111 is suitable for inputting the input voltage HV of the switching power supply, and a second input end of the first comparator is suitable for inputting a preset first voltage threshold Vth 1; the first comparator is suitable for comparing the voltage HV at the input end of the switching power supply with a preset first voltage threshold Vth1 within a first preset time period;

the first timer 112 is connected to the first comparator 111, and is adapted to provide the first preset duration to the first comparator 111.

The voltage input to the first input terminal of the first comparator 111 may be a voltage value obtained by dividing the input voltage HV of the switching power supply, that is, the voltage VA at the node a. The first comparator 111 compares the voltage VA with a preset first voltage threshold Vth1, and can output a digital signal representing the magnitude of the comparison result.

In specific implementation, the preset first voltage threshold may be set according to an actual working requirement, for example, the preset first voltage threshold may be set to be 30V. The first preset time period may be set according to actual requirements, for example, the first preset time period may be set to 54ms, and at this time, the first comparator 111 compares the voltage VA with the preset first voltage threshold Vth1 within 54 ms.

In other embodiments, the turn-on condition may be set only according to the voltage HV at the input terminal of the switching power supply, and the setting of the time length requirement is not required. For example, the input voltage detection module 10 is controlled to be turned on as long as the voltage HV at the input terminal of the switching power supply exceeds the preset first voltage threshold Vth 1.

In some embodiments, the turn-on condition may also be set according to the rate of change of the voltage HV at the input of the switching power supply. For example, the input voltage detection module 10 is turned on only when the change rate of the voltage HV at the input terminal of the switching power supply is greater than the preset change rate threshold.

By setting the starting condition, the power consumption can be reduced in many application scenarios of the switching power supply, for example, in the experiment process of slowly electrifying the switching power supply, if the voltage at the input end of the switching power supply is not high enough, the input voltage detection module 10 does not need to be started, so that the overall power consumption of the switching power supply can be reduced.

In order to further reduce power consumption, in an embodiment, referring to fig. 1, after the input voltage detection module 10 is turned on, the first control module 11 is further adapted to control the input voltage detection module to be turned off when a preset turn-off condition is met.

In a specific implementation, the preset shutdown condition may be: the voltage HV at the input end of the switching power supply is lower than a preset second voltage threshold. At this time, as long as the voltage HV at the input end of the switching power supply is lower than the preset third voltage threshold, the first control module controls the input voltage detection module 10 to be turned off, so as to reduce power consumption. Of course, the preset closing condition may also be set as other conditions, and is not limited specifically.

Accordingly, in a specific implementation, referring to fig. 1, the first comparator 111 may also be used to implement the shutdown control of the input voltage detection module 10. At this time, the first comparator 111 may compare the voltage VA with a preset third voltage threshold, thereby outputting a digital signal controlling the input voltage detection module 10 to be turned off.

By setting the turn-off condition, the power consumption can be reduced in many application scenarios of the switching power supply, for example, in the process of performing a power failure test on the switching power supply, if the voltage at the input end of the switching power supply is very low, the input voltage detection module 10 can be turned off, so that the overall power consumption of the switching power supply can be reduced.

The digital signal output by the first comparator 111 can be output to the enable terminal of the input voltage detection module 10 to control the input voltage detection module 10 to be turned on or off, and the digital signal output by the first comparator 111 can be output to the second control module 12.

In specific implementations, the structure of the second control module 12 may be various, and is not limited. The configuration of the second control module 12 may be different in switching power supplies of different configurations. For example, in fig. 1, the second control module 12 may include an and circuit 121. In fig. 2, the second control module 12 may include a third comparator 122 and a second timer 123. The second timer 122 provides an operation time for the third comparator 121, and the second control module 12 may also generate the switch control signal according to other signals.

In a specific implementation, the second correlation module includes: and at least one functional module which executes functional operation based on the voltage detection result is arranged in the switching power supply. The second correlation module may be directly connected to the input voltage detection module 10, or may be indirectly connected to the input voltage detection module 10.

Based on the difference of the control signals output by the second control module 12, the second correlation module will also change accordingly. The second relevant module is a module which executes corresponding operations under the control of the second control module 12.

For example, when the second control module 12 outputs a switch control signal, the switch control signal is used to control a switching device in a switching power supply. At this time, the second correlation module may be a switching device. When the second control module 12 outputs a protection function control signal, such as an overvoltage/undervoltage protection function control signal, an overpower protection function control signal, etc., the second related module may be a module that performs a corresponding protection function on the switching power supply.

It is understood that the second relevant module performing the protection function in different switching power supplies may be different, and is not limited herein.

Referring to fig. 1, when the second control module 12 is directly connected to the input voltage detection module 10, the second control module 12 serves as both the first correlation module and the second correlation module. Referring to fig. 2, when the second control module 12 is directly connected to the voltage dividing module 20, the second control module 12 may serve as a second correlation module, and other modules connected to the second control module 12 may serve as first correlation modules.

In an embodiment of the present invention, referring to fig. 2, the apparatus may further include: and an adjustment module 13. The adjusting module 13 is adapted to obtain load information of the switching power supply after the input voltage detecting module is turned on, and adjust at least one of a voltage dividing result of the voltage dividing module and a working frequency of the input voltage detecting module 10 based on the load information of the switching power supply.

In specific implementation, the adjusting module 13 may be implemented by using various circuit structures, and is not limited in particular.

In an embodiment, referring to fig. 2, the adjusting module 13 may include a second comparator 131. The second comparator 131 has a first input terminal and a second input terminal. The first input terminal of the second comparator 131 is suitable for inputting the load voltage V of the switching power supplyFBThe second input terminal of the second comparator 131 is adapted to input a preset second voltage threshold Vth 2.

The second comparator 131 is adapted to compare the load voltage V of the switching power supplyFBAnd comparing the Vth2 with a preset second voltage threshold, and outputting a corresponding adjusting signal according to the comparison result.

In a specific implementation, the adjusting module 13 may adjust only the voltage division result of the voltage division module 20, only the operating frequency of the input voltage detection module 10, or both the voltage division result of the voltage division module 20 and the operating frequency of the input voltage detection module 10 based on the load information of the switching power supply.

When the adjusting module 13 adjusts the voltage dividing result of the voltage dividing module 20 based on the load information of the switching power supply, if the load voltage V of the switching power supply is the same as the load voltage V of the switching power supplyFBWhen the voltage is greater than the preset second voltage threshold Vth2, the total resistance of the voltage divider module 20 may be decreased, that is, an adjustment signal for decreasing the total resistance of the voltage divider module 20 is output. If the load voltage V of the switching power supplyFBWhen the voltage is less than the preset second voltage threshold Vth2, the total resistance of the voltage divider module 20 may be increased, that is, an adjustment signal for increasing the total resistance of the voltage divider module 20 is output.

In a specific implementation, referring to fig. 2, the adjusting module 13 may output a corresponding control signal through the second comparator 131 to control the switches S1 to S4 to open or close, so as to achieve the purpose of adjusting the total resistance of the voltage dividing module 20.

For example, when the load voltage V of the switching power supply is 50M ohms, the fourth resistor Rd is 500K ohms, the fifth resistor Re is 100M ohms, and the sixth resistor Rf is 1M ohmsFBWhen the voltage is greater than the preset second voltage threshold Vth2, the second comparator 131 can control the first switch S1 and the third switch S3 to be closed, and at this time, the second switch S2 and the fourth switch S4 are opened, so that the total resistance of the voltage dividing module 20 is reduced. When the load voltage V of the switch power supplyFBWhen the voltage is less than the preset second voltage threshold Vth2, the second comparator 131 can control the first switch S1 and the third switch S3 to be turned off, and at this time, the second switch S2 and the fourth switch S4 are turned on, so that the total resistance of the voltage dividing module 20 is increased.

Since the power consumption of the switching power supply is inversely proportional to the total resistance of the voltage dividing module 20, the load voltage V of the switching power supplyFBWhen smaller, the total resistance value of the voltage division module 20 is increased, and power consumption can be reduced. When the load voltage V of the switch power supplyFBLarger, by reducing the voltage divider module 20The total resistance value of the switch power supply can increase the impedance of the switch power supply to the ground, and when the switch power supply has external interference, the impedance to the ground is increased to form relatively high interference voltage, so that the anti-interference capability during high-power operation can be improved. Therefore, by arranging the adjusting module 13, power consumption and interference resistance can be both considered, and the performance of the switching power supply can be improved.

When the adjusting module 13 adjusts the operating frequency of the voltage dividing module 20 based on the load information of the switching power supply, the load voltage of the switching power supply may be compared with a preset second voltage threshold, and the operating frequency of the input voltage detecting module 10 may be adjusted based on the comparison result.

In a specific implementation, referring to fig. 2, the adjusting module 13 may output the comparison result to the operating frequency adjusting port Freq of the input voltage detecting module 10. If the load voltage V of the switching power supplyFBWhen the voltage is greater than the preset second voltage threshold Vth2, the adjusting module 13 outputs an adjusting signal for increasing the operating frequency of the input voltage detecting module 10, and the operating frequency adjusting port Freq of the input voltage detecting module 10 can increase the operating frequency of the input voltage detecting module 10. If the load voltage V of the switching power supplyFBWhen the voltage is smaller than the preset second voltage threshold Vth2, the adjusting module 13 outputs an adjusting signal for decreasing the operating frequency of the input voltage detecting module 10, and the operating frequency adjusting port Freq of the input voltage detecting module 10 may decrease the operating frequency of the input voltage detecting module 10.

In a specific implementation, the operating frequency of the input voltage detection module 10 is increased, for example, the operating frequency of the input voltage detection module 10 may be 5 KhZ. The operating frequency of the input voltage detection module 10 is reduced, for example, the operating frequency of the input voltage detection module 10 may be 2.5 KhZ.

Referring to fig. 2, after the operating frequency of the input voltage detecting module 10 is adjusted, a corresponding control signal may be output to control whether the second control module 12 operates or not.

Specifically, a fifth switch S5 may be provided between the second control module 12 and the voltage divider module 20. The signal output by the input voltage detection module 10 after adjusting the operating frequency may control the fifth switch S5 to open or close, so as to control whether the second control module 12 operates, so that the second control module 12 can control other modules of the switching power supply based on the voltage detection result of the input voltage detection module 10. When the input voltage detection module 10 controls the fifth switch S5 to close, the second control module 12 operates. When the input voltage detection module 10 controls the fifth switch S5 to be turned off, the second control module 12 stops operating.

By matching the working frequency of the input voltage detection module 10 with the load voltage, the power consumption of the load voltage can be reduced, and the purpose of further reducing the power consumption of the switching power supply is achieved.

Note that, in fig. 1, the adjustment module is not shown. In fig. 2, the first control module is not shown.

As can be seen from the above, the control device of the switching power supply in the embodiment of the present invention can reduce the power consumption of the switching power supply by controlling the input voltage detection module 10 to be conditionally turned on or off. In addition, by arranging the adjusting module, the internal circuit structure is optimized, the power consumption can be further reduced, and the noise immunity is improved.

In order to make the present invention better understood and realized by those skilled in the art, the following detailed description is provided for the corresponding method, switching power supply and computer readable storage medium of the above-mentioned apparatus.

Referring to fig. 3, an embodiment of the present invention provides a method for controlling a switching power supply, where the method may include the following steps:

and step 31, when a preset starting condition is met, controlling the input voltage detection module to be started, so that the input voltage detection module detects the voltage of the input end of the switching power supply.

In specific implementation, the preset starting condition may have a plurality of setting methods, and is not limited in particular.

In an embodiment of the present invention, the preset starting condition may be set as: within a first preset time, the voltage of the input end of the switching power supply exceeds a preset first voltage threshold. When the preset starting condition is met, namely within a first preset time period, the voltage of the input end of the switching power supply exceeds a preset first voltage threshold value, the input voltage detection module is controlled to be started.

In other embodiments, the turn-on condition may be set only according to the voltage at the input end of the switching power supply, and the time length requirement does not need to be set. In some embodiments, the turn-on condition may also be set according to the rate of change of the voltage at the input of the switching power supply.

In an embodiment of the present invention, to further reduce power consumption, the method may further include: and when a preset closing condition is met, controlling the input voltage detection module to be closed.

For example, when the voltage at the input end of the switching power supply is lower than a preset second voltage threshold, the input voltage detection module is controlled to be turned off. Therefore, the power consumption generated by the continuous starting of the input voltage detection module can be reduced.

It should be noted that, in the embodiment of the present invention, only the input voltage detection module may be conditionally turned on, only the input voltage detection module may be conditionally turned off, and the input voltage detection module may be conditionally turned on and turned off simultaneously. In other words, only one or both of the preset on condition and the preset off condition may be set. When only the off condition is set, the on condition is not necessarily set. Likewise, when only the on condition is set, the off condition is not necessarily set.

And step 32, acquiring a voltage detection result of the input voltage detection module, and controlling a second relevant module of the switching power supply based on the voltage detection result.

Wherein the second correlation module comprises: and at least one functional module which executes functional operation based on the voltage detection result is arranged in the switching power supply.

When the input voltage detection module is started, the voltage of the input end of the switch power supply is detected, and a detection value of the voltage of the input end of the switch power supply can be output. Based on the detection value of the voltage at the input end of the switching power supply, the controller of the switching power supply can control other related modules of the switching power supply.

In an embodiment, the second correlation module may be a correlation module that generates a switch control signal. The switch control signal is used for controlling a switch device in the switch power supply. Wherein, the second correlation module for generating the switch control signal can be different in different switch power supplies.

In another embodiment, the second correlation module may be a module that performs a protection function on the switching power supply based on the voltage at the input terminal of the switching power supply. For example, the module is used for performing functions such as overvoltage and undervoltage protection, and overpower protection.

It is understood that the second relevant module performing the protection function in different switching power supplies may be different, and is not limited herein.

In a specific implementation, the switching power supply further includes: and one end of the voltage division module is connected with the input end of the switching power supply, and the other end of the voltage division module is connected with the first related module and is suitable for dividing the voltage of the input end of the switching power supply so as to output the working voltage suitable for the first related module.

In a specific implementation, the voltage dividing module may include several resistors. The resistance value of the voltage division module can be fixed or variable.

When the total resistance value of the voltage division module is variable, in an embodiment of the present invention, after the input voltage detection module is turned on, load information of the switching power supply may be further obtained, and at least one of a voltage division result of the voltage division module and a working frequency of the input voltage detection module is adjusted based on the load information of the switching power supply.

Specifically, when the voltage division result of the voltage division module is adjusted based on the load information of the switching power supply, the load voltage of the switching power supply may be compared with a preset second voltage threshold, and the total resistance value of the voltage division module is adjusted based on the comparison result. And when the load voltage of the switching power supply is greater than a preset second voltage threshold, reducing the total resistance value of the voltage division module. And when the load voltage of the switching power supply is smaller than a preset second voltage threshold, increasing the total resistance value of the voltage division module.

When the operating frequency of the input voltage detection module is adjusted based on the load information of the switching power supply, the load voltage of the switching power supply may be compared with a preset second voltage threshold, and the operating frequency of the input voltage detection module is adjusted based on the comparison result. When the load voltage of the switching power supply is greater than a preset second voltage threshold, increasing the working frequency of the input voltage detection module; and when the load voltage of the switching power supply is smaller than a preset second voltage threshold, reducing the working frequency of the input voltage detection module.

In specific implementation, the steps in the method may be implemented with reference to the description of the corresponding functional modules in the control device for the switching power supply, and are not described herein again.

The embodiment of the invention also provides a switching power supply which comprises the control device of the switching power supply. Under the control of the control device of the switching power supply, the open-circuit power supply can convert alternating current into stable direct current and provide the stable direct current for a load.

By adopting the control device of the switching power supply in the embodiment of the invention, the internal input voltage detection module of the switching power supply can be conditionally started or closed, and the power consumption of the switching power supply is reduced. And after the input voltage detection module is started, the total resistance value of the voltage division module or the working frequency of the input voltage detection module can be adjusted based on the load information, so that the power consumption of the input voltage detection module can be further reduced.

The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is run by a processor to implement the steps of any one of the control methods for a switching power supply in the foregoing embodiments, and details are not repeated.

An embodiment of the present invention further provides a switching power supply, where the switching power supply includes a memory and a processor, where the memory stores a computer program capable of running on the processor, and the processor executes the steps of any one of the above-mentioned embodiments when running the computer program.

In particular implementations, the computer-readable storage medium may include: ROM, RAM, magnetic or optical disks, and the like.

Each module/unit included in each apparatus and product described in the above embodiments may be a software module/unit, or may also be a hardware module/unit, or may also be a part of a software module/unit and a part of a hardware module/unit. For example, for each device or product applied to or integrated into a chip, each module/unit included in the device or product may be implemented by hardware such as a circuit, or at least a part of the module/unit may be implemented by a software program running on a processor integrated within the chip, and the rest (if any) part of the module/unit may be implemented by hardware such as a circuit; for each device or product applied to or integrated with the chip module, each module/unit included in the device or product may be implemented by using hardware such as a circuit, and different modules/units may be located in the same component (e.g., a chip, a circuit module, etc.) or different components of the chip module, or at least some of the modules/units may be implemented by using a software program running on a processor integrated within the chip module, and the rest (if any) of the modules/units may be implemented by using hardware such as a circuit; for each device and product applied to or integrated in the terminal, each module/unit included in the device and product may be implemented by using hardware such as a circuit, and different modules/units may be located in the same component (e.g., a chip, a circuit module, etc.) or different components in the terminal, or at least part of the modules/units may be implemented by using a software program running on a processor integrated in the terminal, and the rest (if any) part of the modules/units may be implemented by using hardware such as a circuit.

Although the present invention is disclosed above, the present invention is not limited thereto. Various changes and modifications may be effected therein by one skilled in the art without departing from the spirit and scope of the invention as defined in the appended claims.

15页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种避雷器雷击动作的计数电路

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!