Disclosure of Invention
The invention aims to improve the reliability of a switching power supply.
In order to solve the above problem, an embodiment of the present invention provides a method for controlling a switching device in a flyback circuit, where the method includes:
receiving a tracking signal for tracking the switching state of the switching device and a feedback signal for detecting the load size of the flyback circuit;
determining a valley value of the switching action of the switching device based on the feedback signal;
performing valley bottom detection on the tracking signal;
and when the valley bottom detection result of the tracking signal is not matched with the determined valley bottom value, performing overtime compensation on the tracking signal, and controlling the switching device to perform the switching action at the moment after the overtime compensation.
Optionally, the time-out compensation for the tracking signal includes:
and on the basis of the detection result of the valley bottom of the tracking signal, increasing a preset first time length as the time when the switching device performs switching action.
Optionally, the preset first duration is: and multiplying the difference value of the determined valley value and the detection result of the valley bottom of the tracking signal by a preset second time length.
Optionally, the value range of the second duration is 4us to 8 us.
Optionally, the tracking signal valley detection result does not match the determined valley value, including:
and the valley detection result of the tracking signal is smaller than the determined valley value.
An embodiment of the present invention further provides a device for controlling a switching device in a flyback circuit, where the device may include:
a first receiving unit adapted to receive a tracking signal tracking a switching state of the switching device;
the second receiving unit is suitable for receiving a feedback signal for detecting the load size of the flyback circuit;
a determination unit adapted to determine a valley value of a switching action of the switching device based on the feedback signal;
the detection unit is suitable for carrying out valley bottom detection on the tracking signal;
and the control unit is suitable for performing overtime compensation on the tracking signal when the valley bottom detection result of the tracking signal is not matched with the determined valley bottom value, and controlling the switching device to perform the switching action at the moment after the overtime compensation.
Optionally, the control unit is adapted to increase a preset first time length on the basis of the detection result of the valley bottom of the tracking signal, where the preset first time length is used as a time when the switching device performs a switching action.
Optionally, the preset first duration is: and multiplying the difference value of the determined valley value and the detection result of the valley bottom of the tracking signal by a preset second time length.
Optionally, the value range of the second duration is 4us to 8 us.
Optionally, the control unit is implemented by an analog circuit.
Optionally, the control unit includes N compensation modules, each compensation module is configured to compensate the tracking signal for the second duration, where N is a difference between the determined valley bottom value and the detection result of the valley bottom of the tracking signal.
Optionally, the control unit is adapted to perform timeout compensation on the tracking signal when a valley detection result of the tracking signal is smaller than the determined valley value.
The embodiment of the invention also provides a flyback circuit which comprises any one of the control devices of the switching devices in the flyback circuit.
The embodiment of the invention also provides a switching power supply system which comprises the flyback circuit.
Compared with the prior art, the technical scheme of the embodiment of the invention has the following advantages:
by adopting the scheme, when the valley bottom detection result of the tracking signal is not matched with the determined valley bottom value, overtime compensation is carried out on the tracking signal, and the switching device is controlled to carry out switching action at the moment after the overtime compensation, so that the phenomenon that the switching device does not carry out switching action or switches at wrong time can be avoided, the reliability of the switching power supply is improved, and the user requirements are better met.
Detailed Description
Fig. 1 is a schematic circuit diagram of a switching power supply system. Referring to fig. 1, an ac signal is introduced into afilter 10 through a live line L and a neutral line N, and then introduced into a flyback circuit through arectifier 11. The flyback circuit may include: a transformer circuit, afeedback circuit 12, adrive control circuit 13 and a switching device 14.
The transformer circuit comprises a primary winding P1, a secondary winding P2 and an auxiliary winding P3. The primary winding P1 has one end connected to therectifier 31 and the other end connected to the switching circuit 14. The auxiliary winding P3 is connected to thedrive control circuit 13. The auxiliary winding P3 tracks the switching state of the switching device 14 by sensing the voltage change between the switching device 14 and the transformer circuit, and outputs a corresponding tracking signal to thedriving control circuit 13. Thefeedback circuit 12 may detect the magnitude of the flyback circuit load and generate a corresponding feedback signal to thedrive control circuit 13.
Thedrive control circuit 13 may determine which valley of the tracking signal the switching device 14 is turned on or off according to the voltage value of the feedback signal, perform valley detection on the tracking signal, and control the valley of the switching device 14 to be turned on or off when the determined on or off timing comes.
In practical applications, the valley detection result of the tracking signal may not match the determined on or off valley of the switching device 14 due to the interference of the system electrical signal or the improper circuit parameter selection of the auxiliary winding P3. For example, when it is determined that the switching device 14 is turned on at the 6 th valley bottom of the tracking signal, when the valley bottom detection is performed on the tracking signal, only two zero-crossing points may be detected, that is, only the first valley bottom and the second valley bottom are detected, at this time, thedriving control circuit 13 cannot obtain the 6 th valley bottom of the tracking signal, so that the switching device 14 is not controlled to be turned on at the 6 th valley bottom of the tracking signal, and apparently, the switching device 14 does not perform switching action at any moment when needed, which results in poor reliability of the switching power supply, and cannot meet the user requirements.
In view of the above problems, embodiments of the present invention provide a method for controlling a switching device in a flyback circuit, where when a valley detection result of a tracking signal is not matched with a determined valley value, the tracking signal is subjected to timeout compensation, and the switching device is controlled to perform a switching action at a time after the timeout compensation, so that a phenomenon that a switch does not perform a switching action can be avoided, reliability of a switching power supply is improved, and a user requirement is better met.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below.
Referring to fig. 2, an embodiment of the present invention provides a method for controlling a switching device in a flyback circuit, where the method may include the following steps:
andstep 21, receiving a tracking signal for tracking the switching state of the switching device and a feedback signal for detecting the load size of the flyback circuit.
In a specific implementation, as shown in fig. 1, the auxiliary winding P3 for transforming voltage in the flyback circuit tracks the switching state of the switching device 14 and outputs a corresponding tracking signal to thedriving control circuit 13. As shown in fig. 3, acurve 31 represents the voltage variation between the switching device 14 and the transformer circuit, and acurve 32 represents the tracking signal outputted from the auxiliary winding P3. The tracking signal varies with the variation of the voltage at the connection of the switching device 14 and the transformer circuit.
In a specific implementation, as shown in fig. 1, thefeedback circuit 12 may detect the size of the flyback circuit load and generate a corresponding feedback signal to thedriving control circuit 13. The feedback signal is usually a voltage signal, and has a certain corresponding relation with the load size of the flyback circuit.
And step 22, determining a valley value of the switching action of the switching device based on the feedback signal.
In a specific implementation, as shown in fig. 1, the drivingcontrol circuit 13 learns the load condition of the flyback circuit based on the feedback signal, and controls the valley value of the on or off of the switching device 14 based on the load condition of the flyback circuit.
For example, when the load of the flyback circuit is large, the switching device 14 may be controlled to be turned on at the 1 st valley, and when the load of the flyback circuit is small, the switching device may be controlled to be turned on at the 6 th valley.
And step 23, performing valley bottom detection on the tracking signal.
In a specific implementation, the valley detection may be performed on the tracking signal by counting the number of zero crossings of the tracking signal. As shown in fig. 3, the zero crossing of the tracking signal is close to the bottom of the valley of the tracking signal.
And 24, when the valley bottom detection result of the tracking signal is not matched with the determined valley bottom value, performing overtime compensation on the tracking signal, and controlling the switching device to perform the switching action at the moment after the overtime compensation.
In specific implementation, the valley detection result of the tracking signal is often not matched with the determined on or off valley of the switching device 14 due to the interference of the system electrical signal or the improper circuit parameter selection of the auxiliary winding P3. Specifically, the valley detection result of the tracking signal is smaller than the determined valley value. For example, when the determined valley bottom value is the 6 th valley bottom, only 3 valley bottoms are detected in the valley bottom detection result of the tracking signal.
In order to avoid the situation that the switching device 14 does not perform the switching operation at the required time, in the embodiment of the present invention, the drivingcontrol circuit 13 may perform timeout compensation on the tracking signal and control the switching device to perform the switching operation at the time after the timeout compensation. The time when the switching device 14 performs the switching operation after the timeout compensation usually exceeds the valley value determined based on the feedback signal, so as to prevent the switching device 14 from performing the switching operation in advance.
In specific implementations, the timeout compensation for the tracking signal can be performed by various methods, and is not limited in particular.
In an embodiment of the present invention, the compensating for the timeout of the tracking signal may include: on the basis of the detection result of the valley bottom of the tracking signal, a preset first time length is added to be used as the time when the switching device performs switching action.
That is, a first preset time is additionally compensated above the detection result of the valley bottom of the tracking signal, and the compensated time is the time when the switching device performs the switching action. The first preset duration can be obtained according to limited experimental tests.
For example, when the switching device 14 is determined to be turned on at the 6 th valley bottom of the tracking signal, and the tracking signal is subjected to valley bottom detection, only two zero-crossing points, that is, only the first valley bottom and the second valley bottom, may be detected. At this time, thedrive control circuit 13 may compensate for the tracking signal timeout by 10us so that the switching device 14 detects the second valley and turns on after 25 us.
As another example, when it is determined that the switching device 14 performs valley detection on the tracking signal while the 5 th valley of the tracking signal is turned off, only 4 zero-crossings, i.e., only the first to fourth valleys, may be detected. At this time, thedrive control circuit 13 may compensate for the tracking signal timeout by 6us, so that the switching device 14 detects the fourth valley and turns off after 6 us.
In an embodiment of the invention, the preset first duration may be: and multiplying the difference value of the determined valley value and the detection result of the valley bottom of the tracking signal by a preset second time length.
The second preset duration can be obtained according to a limited number of experimental tests and represents a corresponding timeout compensation value when the difference between the determined valley bottom value and the detection result of the valley bottom of the tracking signal is 1. In an embodiment of the present invention, a value of the second duration may range from 4us to 8 us.
For example, the second time duration is 6us, and when the determined valley value is the 4 th valley and the tracking signal valley detection result detects 2 valleys, the first time duration is 2 x 6 us.
In specific implementation, the second time period may also be other values, and is not limited in particular.
As can be seen from the above, in the control method of the switching device in the flyback circuit in the embodiment of the present invention, when the valley detection result of the tracking signal is not matched with the determined valley value, the tracking signal is subjected to timeout compensation, and the switching device is controlled to perform the switching action at the time after the timeout compensation, so that a phenomenon that the switching device does not perform a switching action or performs switching at an incorrect time can be avoided, the reliability of the switching power supply is improved, and the user requirements are better met.
In order to make the present invention more comprehensible and practical for those skilled in the art, the following detailed description is given of the apparatus corresponding to the above-described method.
Referring to fig. 4, an embodiment of the present invention further provides adevice 40 for controlling a switching device in a flyback circuit, where thedevice 40 may include: afirst receiving unit 41, asecond receiving unit 42, a determiningunit 43, a detectingunit 44 and acontrol unit 45. Wherein:
thefirst receiving unit 41 is adapted to receive a tracking signal tracking a switching state of the switching device;
thesecond receiving unit 42 is adapted to receive a feedback signal for detecting the load size of the flyback circuit;
the determiningunit 43 is adapted to determine a valley value of a switching action of the switching device based on the feedback signal;
thedetection unit 44 is adapted to perform valley bottom detection on the tracking signal;
thecontrol unit 45 is adapted to perform timeout compensation on the tracking signal when the valley bottom detection result of the tracking signal is not matched with the determined valley bottom value, and control the switching device to perform the switching operation at the time after the timeout compensation.
In an embodiment of the present invention, thecontrol unit 45 is adapted to increase a preset first time length on the basis of the detection result of the valley bottom of the tracking signal, as a time when the switching device performs a switching operation.
In an embodiment of the present invention, the preset first duration is: and multiplying the difference value of the determined valley value and the detection result of the valley bottom of the tracking signal by a preset second time length.
In an embodiment of the present invention, a value of the second duration ranges from 4us to 8 us.
In an embodiment of the present invention, thecontrol unit 45 is adapted to perform timeout compensation on the tracking signal when the valley detection result of the tracking signal is smaller than the determined valley value.
In a specific implementation, after performing timeout compensation on the tracking signal, thecontrol unit 45 may output a corresponding driving signal at a time after the timeout compensation.
The switching device may perform pulse width modulation on the driving signal to obtain a corresponding switching control signal to control a switching frequency. Specifically, when the switching device is turned off, the voltage transformation circuit supplies energy to the output side (secondary side), and when the switching device is turned on, the voltage transformation circuit accumulates energy at the input side (primary side).
In practical applications, thefirst receiving unit 41, thesecond receiving unit 42, the determiningunit 43, and the detectingunit 44 of theapparatus 40 are usually implemented by analog circuits.
In a specific implementation, thecontrol unit 45 may be implemented by a digital circuit, and may also be implemented by an analog circuit or a digital-analog hybrid circuit, which is not limited specifically.
In an embodiment of the present invention, thecontrol unit 45 implements timeout compensation for the tracking signal by using an analog circuit, so as to avoid adding an analog-to-digital conversion device in theapparatus 40 and a device for processing a digital signal, so as to reduce circuit cost and complexity, improve circuit compatibility, and facilitate chip integration.
In an embodiment of the present invention, referring to fig. 5, thecontrol unit 45 may includeN compensation modules 451, eachcompensation module 451 being configured to compensate the tracking signal for a second duration. Where Sj denotes a signal output by the determiningunit 43 when the determined valley bottom value is the jth valley bottom. Vi denotes a signal output when thedetection unit 44 detects i valleys. The value of N is dependent on the difference (j-i) between the determined valley value and the detection result of the valley bottom of the tracking signal. i. j and N are positive integers.
For example, when i is 3 and j is 5, thecontrol unit 45 includes 2compensation modules 451. If the second duration is 6us, eachcompensation module 451 compensates the tracking signal by 6us, and 2compensation modules 451 compensate the tracking signal by 2 × 6us to 12 us.
As another example, when i is 2 and j is 6, thecontrol unit 45 includes 4compensation modules 451. If the second duration is 6us, eachcompensation module 451 compensates the tracking signal by 6us, and 4compensation modules 451 compensate the tracking signal by 4 ×6us 24 us.
By adopting the circuit shown in fig. 5, theN compensation modules 451 are enabled by the signal Sj, and the overtime compensation is performed on the tracking signal valley bottom detection result Vi, so as to increase N second time durations on the basis of the valley bottom detection result Vi. The circuit is simpler to realize, lower in cost and lower in circuit complexity.
As for detailed functions of each unit of thecontrol apparatus 40 for the switching device in the flyback circuit according to the embodiment of the present invention, reference may be made to the description of the corresponding part in the control method for the switching device in the flyback circuit according to the foregoing embodiment of the present invention, and details are not repeated herein.
The embodiment of the invention also provides a flyback circuit which can comprise any one of the control devices of the switching devices in the flyback circuit.
The embodiment of the invention also provides a switching power supply system which can comprise the flyback circuit.
For the flyback circuit and the switching power supply system, reference may be specifically made to the description of fig. 1, and details are not described here.
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.